<--  back   Last regenerated: 2022-04-20 17:31:36 kio

zasm - Z80 Assembler – Version 4.4

Assembler directives

#! (Shebang)

#!/usr/Assembler directives: #local, #endlocal, .local and .endlocal
Pseudo instructions: #local, #endlocal, .local and .endlocal
Including C Source Files: #local, #endlocal, .local and .endlocal
local/bin zasm --Command Line Options: --flatops, .flatops
Commands for command line options: --flatops, .flatops
flatops -uwy -x

Normally such a line would be the first line in your source file Assembler directives: #if, #elif, #else, #endif
Pseudo instructions: if, endif
if 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, endif
if lots of Differences from v3 to v4: Command line options
Command Line Options
Command Line Options: Command line options
command 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 options
command 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, endif
if they were given on the command line
. This way they are also applied Assembler directives: #if, #elif, #else, #endif
Pseudo instructions: if, endif
if 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 Z80
z80, --Command Line Options: --z180
Pseudo instructions: .z80, .z180 and .8080
z180, --8080
--asm8080
--Command Line Options: --dotnames, .dotnames
Commands for command line options: --dotnames, .dotnames
Label definition: --dotnames
dotnames, --reqcolon, --Command Line Options: --casefold, .casefold
Commands for command line options: --casefold, .casefold
Label definition: --casefold
casefold, --Command Line Options: --flatops, .flatops
Commands for command line options: --flatops, .flatops
flatops
--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 Z80
z80, .Command Line Options: --z180
Pseudo instructions: .z80, .z180 and .8080
z180, .8080, .asm8080, .Command Line Options: --dotnames, .dotnames
Commands for command line options: --dotnames, .dotnames
Label definition: --dotnames
dotnames, 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, endif
if they are defined too late.

Valid HTML   Valid CSS