rom4x/rom5x/B1_FBE2_rom5x_dispatch.s
2017-03-11 00:19:40 -08:00

18 lines
445 B
ArmAsm

#include "iic+.defs"
.text
* = $fbe2 ; ~29 bytes free here
cmp #$a9 ; reset patch
bne chk2
jmp reset5x
chk2: cmp #$ea ; boot patch
bne dowait
jmp boot5x
dowait: jsr $fcb5 ; do delay if anything else
lda #>($fbe2-1) ; return to other bank here
pha ; by pushing address onto
lda #<($fbe2-1) ; the stack
pha
lda #$00 ; in case someone assumes this
jmp swrts2 ; back to other bank
; 28 bytes, will have to move if we get bigger