xmodem: don't set up ACIA if closed apple held

This commit is contained in:
mgcaret 2018-10-07 12:41:08 -07:00
parent 464ce2e99d
commit 65c2a4c7d0
1 changed files with 4 additions and 2 deletions

View File

@ -272,8 +272,10 @@ xmentry: php ; Save carry status to select op
lda #ENOSTK ; flag not enough stack
sec ; and error out
rts
: jsr ACIA_Init ; set up ACIA
plp ; and get carry status back
: bit butn1 ; check closed apple key
bmi :+ ; and if held, don't set up ACIA
jsr ACIA_Init ; set up ACIA
: plp ; and get carry status back
ldx #ZPEND ; save ZP locations we are trashing on stack
savelp: lda ZPSTART,x
pha