struct_pgm_z80 Blog
Use structured programming with Z80 assembler
Status: Abandoned
Brought to you by:
jpelletier
Added some while macros.
_while_equ/_while_neq and mask versions support register pairs.
Example:
_while_neq(bc,0x0000)
nop
_wh_end
I ported the code from Awk into C so the program no longer needs Awk to run. See str-z80
This macro assumes a register increment.
Some examples:
_for(a,#0)
_for_end(a,#20)
;from 10 to 20
ld e,#20
_for(a,#10)
_for_end(a,e)
;16 bit counter
_for(bc,#0)
_for_end(bc,#0x23FF)
_for(de,#0x2000)
_for_end(de,hl)
This release makes it more robust.
The macro '_print' works and can print these caracters: ";:,()[]{}
Labels and comments are allowed on the same line as macros
Problems with labels including '_do' are corrected. Labels are now independent from macros.
Added GNU copyrights, some macros, modified EQU and NEQ macros.