mirror of
https://github.com/mi57730/a2d.git
synced 2024-11-29 07:49:20 +00:00
DeskTop S4: Wrap A2D_RELAY use in macros
This commit is contained in:
parent
8343a38c4b
commit
c20eeb4b3e
8
a2d.inc
8
a2d.inc
@ -588,3 +588,11 @@ end:
|
||||
A2D_GLYPH_RETURN := $0D
|
||||
A2D_GLYPH_OAPPLE := $1F
|
||||
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
|
||||
|
@ -8860,14 +8860,6 @@ L859C: sta $D409,x
|
||||
sta $D40D
|
||||
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
|
||||
rts
|
||||
|
||||
|
1360
desktop/s4_main1.s
1360
desktop/s4_main1.s
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user