AFPBridge/asmglue.asm
Stephen Heumann 503b15b5e4 Make afpbridge an init.
This currently uses the run queue to poll for messages from the server, which works OK in typical desktop programs but not in other environments.
2017-04-05 00:24:54 -05:00

42 lines
491 B
NASM

case on
mcopy asmglue.macros
ROMIN gequ $C081
LCBANK2 gequ $C083
STATEREG gequ $C068
ForceLCBank2 start
short i,m
lda >STATEREG ;get original state reg.
tax
lda >LCBANK2 ;force LC bank 2
lda >LCBANK2
long i,m
txa
rtl
end
ForceRomIn start
short i,m
lda >STATEREG ;get original state reg.
tax
lda >ROMIN ;force ROM in to Language Card space
lda >ROMIN
long i,m
txa
rtl
end
RestoreStateReg start
short m
plx
pla
ply
pha
phx
tya
sta >STATEREG
long m
rtl
end