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