; -------------------------------------------------------------------
; Macro Definitions
; -------------------------------------------------------------------

#macro  aax     macro
        psha
        pshx
        add 1,sp
        pulx
        tax
        bcc *+7    ; Branch to below
        pshh
        inc 1,sp
        pulh
;  Branch to here
        pula
#macroend
        
#macro  inch    macro
        pshh
        inc 1,sp
        pulh
#macroend
        
#macro  tha     macro
        pshh
        pula
#macroend
        
#macro  tah     macro
        psha
        pulh
#macroend

#macro  pshhx   macro
        pshx
        pshh
#macroend

#macro  pulhx   macro
        pulh
        pulx
#macroend

#macro  ldhxx   macro
        lda ,x
        ldx 1,x
        psha
        pulh
#macroend

