-
Notifications
You must be signed in to change notification settings - Fork 0
BASCOMP toolchain programs
BUILD will take the name of a source file on the commandline (without extension!) and then call BASCOMP, ASMPACK and BASM respectively in order to create a .com file of the same name.
ASMPACK is used to strongly optimize the assembly code generated by BASCOMP by e.g. removing unnecessary or redundant calls, looking for duplicated strings or literals and combining them etc. It expects an .asm file as input and will create an assembly file with the extension .as2. ASMPACK can reduce final binary size by about 30 percent.
BASM is the BASCOMP special assembler. It expects an assembly file to be specified on the command line and then generates a binary .com file out of this source. Apart from .com, no other models are currently supported.
As for the BASCOMP 2.1 release, BASM has two special commandline switches:
- /R: Toggles general jump relaxation mode. This will save some space in the final binary by creating short jumps, but assembly time will significantly increase. This is needed for the self-compilation of BASCOMP currently. By default, /R is not active. The BN.BAT file will enable the switch.
- -D: Defines assembler symbol for %IFDEF/%IFNDEF. At the moment, this is used in BN.BAT to enable a symbol that preloads some strings with the BASCOMP banner and some other initial values in order to save space.