rom4x/rom4x/B0_CFE5_monrw.s

21 lines
385 B
ArmAsm
Raw Permalink Normal View History

2018-10-01 23:35:21 +00:00
; Monitor R and W command handler for XModem
GETNUM = $FFA7
DISPATCH = $C7FC
.pc02
.include "iic.defs"
.code
.org $CFE5 ; 20 bytes here
.ifdef EN_XMODEM
lp: jsr GETNUM
2018-10-06 06:52:32 +00:00
;sta $00 ; DEBUG, comment out for release
2018-10-01 23:35:21 +00:00
cmp #$EB ; 'R'
beq :+
cmp #$F0 ; 'W'
beq :+
rts
: jsr DISPATCH
bra lp
.endif