<--  back   Last regenerated: 2010-09-08 15:25:13 kio

zasm - Z80 Assembler

Source files

Label definitions

Any name which starts in the first column and is not an Source files: Assembler directivesassembler directive (which always starts with a hash '#') or a comment (which always starts with a semicolon ';') is treated as a Source files: Label definitionslabel definition.

Maximum length for Source files: Label definitionslabel names is 9 characters. (v.3.0.16) The Source files: Label definitionslabel name may be followed by a colon ':'. The assembler has no upper limit for the number of Source files: Label definitionslabels.

There a three different types:

Examples for label definitions:
zahl1   Pseudo instructions: defl, equequ     55          ; constant "zahl1"  =  55
Hogo:   Pseudo instructions: defl, equdefl    $+22        ; constant "Hogo"   =  address of current instruction +22
Toto    Pseudo instructions: datadata    4           ; reserves 4 bytes from the Assembler directives: #data#data segment for variable "Toto"
loop1   jp      gaga        ; Source files: Label definitionslabel "loop1"     =  address of current instruction
gaga:   jr      loop1       ; Source files: Label definitionslabel "gaga"      =  address of current instruction

Valid HTML   Valid CSS