as: Z80 Directives
1
1 9.56.4 Z80 Assembler Directives
1 -------------------------------
1
1 'as' for the Z80 supports some additional directives for compatibility
1 with other assemblers.
1
1 These are the additional directives in 'as' for the Z80:
1
1 'db EXPRESSION|STRING[,EXPRESSION|STRING...]'
1 'defb EXPRESSION|STRING[,EXPRESSION|STRING...]'
1 For each STRING the characters are copied to the object file, for
1 each other EXPRESSION the value is stored in one byte. A warning
1 is issued in case of an overflow.
1
1 'dw EXPRESSION[,EXPRESSION...]'
1 'defw EXPRESSION[,EXPRESSION...]'
1 For each EXPRESSION the value is stored in two bytes, ignoring
1 overflow.
1
1 'd24 EXPRESSION[,EXPRESSION...]'
1 'def24 EXPRESSION[,EXPRESSION...]'
1 For each EXPRESSION the value is stored in three bytes, ignoring
1 overflow.
1
1 'd32 EXPRESSION[,EXPRESSION...]'
1 'def32 EXPRESSION[,EXPRESSION...]'
1 For each EXPRESSION the value is stored in four bytes, ignoring
1 overflow.
1
1 'ds COUNT[, VALUE]'
1 'defs COUNT[, VALUE]'
1 Fill COUNT bytes in the object file with VALUE, if VALUE is omitted
1 it defaults to zero.
1
1 'SYMBOL equ EXPRESSION'
1 'SYMBOL defl EXPRESSION'
1 These directives set the value of SYMBOL to EXPRESSION. If 'equ'
1 is used, it is an error if SYMBOL is already defined. Symbols
1 defined with 'equ' are not protected from redefinition.
1
1 'set'
1 This is a normal instruction on Z80, and not an assembler
1 directive.
1
1 'psect NAME'
1 A synonym for ⇒Section, no second argument should be given.
1