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

zasm - Z80 Assembler – Version 4.4

Pseudo instructions

align, .align

    align <value> [, <fillbyte>]

e.g.:

    align 8

Add #code: Fill Byte
#code: Fill Byte
fill bytes until the current logical address is a multiple of the given value.

Base for the alignment is the current logical code address, as accessible with '$'.

Positive addresses can be aligned to any value. Assembler directives: #if, #elif, #else, #endif
Pseudo instructions: if, endif
If you happen to organize your addresses from -0x8000 to +0x7FFF then negative addresses can only be aligned to 2^N.

Assembler directives: #if, #elif, #else, #endif
Pseudo instructions: if, endif
If only one argument is given, then 'align' inserts the default #code: Fill Byte
#code: Fill Byte
fill byte; 0xFF for target ROM and 0x00 for all others.

Assembler directives: #if, #elif, #else, #endif
Pseudo instructions: if, endif
If a different #code: Fill Byte
#code: Fill Byte
fillbyte is required, then it can be appended as a second argument.

    align $100, 'E'|0x80

Valid HTML   Valid CSS