From 65c2a4c7d04afb69ba622c4156456700c84a7975 Mon Sep 17 00:00:00 2001 From: mgcaret Date: Sun, 7 Oct 2018 12:41:08 -0700 Subject: [PATCH] xmodem: don't set up ACIA if closed apple held --- rom4x/inc/xmodem.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rom4x/inc/xmodem.s b/rom4x/inc/xmodem.s index 6767112..50bb1d5 100644 --- a/rom4x/inc/xmodem.s +++ b/rom4x/inc/xmodem.s @@ -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