TRSE allows for command-line compiling of individual source files / projects through a command-line interface (CLI). This is especially useful if you intend to use another code editor.
To run TRSE in CLI mode, type
trse.exe -cli
Welcome to the TRSE CLI (command-line interface) assembler/compiler!
Usage:
trse -cli op=[ operation types ] input_file=[ source file ] output_file=[ optional output file ].... [ type specific operation parameters ]
Valid operation types are: project, orgasm
Examples:
compile + assemble a project with a main source file:
trse -cli op=project project=myDemo.trse input_file=main_demo.ras
Use a custom settings file:
trse -cli op=project settings=trse.ini project=myDemo.trse input_file=main_demo.ras
To only compile and not perform any assembling, use the 'assemble=no' option
trse -cli project=myDemo.trse input_file=main_demo.ras no_assembling
Use OrgAsm to assemble an .asm to .prg:
trse -cli op=orgasm input_file=main_demo.asm
In order to compile TRSE projects from the command line, you need to have a project defined. The project (.ini) file contains all necessary information about the project (architecture, zero page values, project settings etc), and must be created either manually or by simply using the TRSE IDE.
The TRSE CLI allows you to either compile + assemble a .ras file within a project, or assemble an .asm file using OrgAsm.
To compile a specific .ras file from a project:
trse -cli op=project project=myProject.trse input_file=file_in_project.ras