
WaitFrame macro
    stop #$2500
    endm
	
align macro 
    cnop 0,\1 
    endm

z80request macro
    move.w #$100, ($A11100)
@waitz80:
    btst.b #0, ($A11100)
    bne.s @waitz80
    endm

z80release macro
    move.w #$000, ($A11100)
    endm

z80reset macro
    move.w #$000, ($A11200)
    rept $10
    nop
    endr
    move.w #$100, ($A11200)
    endm

; EQUATES

VDPControl     EQU $C00004 ; VDP control port
VDPData        EQU $C00000 ; VDP data port
RAM            EQU $FFF000 ; Your RAM
RAM_VINT       EQU $FFF500 ; Vertical interrupt routine space
RAM_HINT       EQU $FFF700 ; Horizontal interrupt routine space