DeskTop S4: Wrap A2D_RELAY use in macros

This commit is contained in:
Joshua Bell 2017-12-30 19:59:27 -08:00
parent 8343a38c4b
commit c20eeb4b3e
3 changed files with 284 additions and 1092 deletions

View File

@ -588,3 +588,11 @@ end:
A2D_GLYPH_RETURN := $0D A2D_GLYPH_RETURN := $0D
A2D_GLYPH_OAPPLE := $1F A2D_GLYPH_OAPPLE := $1F
A2D_GLYPH_CAPPLE := $1E A2D_GLYPH_CAPPLE := $1E
;; Relay for main>aux A2D call (Y=call, X,A=params addr)
.macro A2D_RELAY_CALL call, addr
ldy #(call)
lda #<(addr)
ldx #>(addr)
jsr desktop_A2D_RELAY
.endmacro

View File

@ -8860,14 +8860,6 @@ L859C: sta $D409,x
sta $D40D sta $D40D
sta $D40F sta $D40F
;; Relay for main>aux A2D call (Y=call, X,A=params addr)
.macro A2D_RELAY_CALL call, addr
ldy #(call)
lda #<(addr)
ldx #>(addr)
jsr desktop_A2D_RELAY
.endmacro
A2D_RELAY_CALL A2D_SET_STATE, $D401 A2D_RELAY_CALL A2D_SET_STATE, $D401
rts rts

File diff suppressed because it is too large Load Diff