mirror of
https://github.com/sheumann/AFPBridge.git
synced 2024-11-01 01:05:06 +00:00
503b15b5e4
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.
42 lines
491 B
NASM
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
|