|
#!/usr/Assembler directives: #local, #endlocal, .local and .endlocal Pseudo instructions: #local, #endlocal, .local and .endlocal Including C Source Files: #local, #endlocal, .local and .endlocallocal/bin zasm --Command Line Options: --flatops, .flatops Commands for command line options: --flatops, .flatopsflatops -uwy -x
Normally such a line would be the first line in your source file Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endifif you make the file executable. Then line 1 is executed by the shell when the file is run as a command and the whole line (after the shebang) is passed to zasm as command line arguments. This is handy Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endifif lots of Differences from v3 to v4: Command line options Command Line Options Command Line Options: Command line optionscommand line options must be passed to assemble this file.
This feature is also used in the regression selftest of zasm with Differences from v3 to v4: Command line options Command Line Options Command Line Options: Command line optionscommand line option -T / --test.
Formerly any line starting with '#!' was ignored by the assembler.
Since version 4.3.6 line 1 is also examined by the assembler itself and options which modify the assembly are also applied by zasm as Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endifif they were given on the command line. This way they are also applied Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endifif the file is assembled normally and not run as a command. The options zasm looks for are:
--Command Line Options: --z80 Pseudo instructions: .z80, .z180 and .8080 Targets: #target Z80z80, --Command Line Options: --z180 Pseudo instructions: .z80, .z180 and .8080z180, --8080 --asm8080 --Command Line Options: --dotnames, .dotnames Commands for command line options: --dotnames, .dotnames Label definition: --dotnamesdotnames, --reqcolon, --Command Line Options: --casefold, .casefold Commands for command line options: --casefold, .casefold Label definition: --casefoldcasefold, --Command Line Options: --flatops, .flatops Commands for command line options: --flatops, .flatopsflatops --Command Line Options: --ixcbxh, .ixcbxh, _ixcbxh_ --ixcbr2, .ixcbr2, _ixcbr2_ Commands for command line options: --ixcbxh, .ixcbxh, _ixcbxh_ --ixcbr2, .ixcbr2, _ixcbr2_ixcbr2, --Command Line Options: --ixcbxh, .ixcbxh, _ixcbxh_ --ixcbr2, .ixcbr2, _ixcbr2_ Commands for command line options: --ixcbxh, .ixcbxh, _ixcbxh_ --ixcbr2, .ixcbr2, _ixcbr2_ixcbxh
Note: there are also pseudo opcodes for these options, namely .Command Line Options: --z80 Pseudo instructions: .z80, .z180 and .8080 Targets: #target Z80z80, .Command Line Options: --z180 Pseudo instructions: .z80, .z180 and .8080z180, .8080, .asm8080, .Command Line Options: --dotnames, .dotnames Commands for command line options: --dotnames, .dotnames Label definition: --dotnamesdotnames, and so on, which apply after they have been encountered by the assembler in pass 1, which may be a problem Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endifif they are defined too late.
| |