Apple2: Don't depend on apple2enh definition for characters

Up, Down and Del, as well as Open-Apple, exist on
non-enhanced Apple //e.
This commit is contained in:
Colin Leroy-Mira
2025-05-25 16:22:24 +02:00
committed by Oliver Schmidt
parent 4971fe312a
commit d3ef3e1b62
3 changed files with 27 additions and 28 deletions

View File

@@ -51,10 +51,14 @@ put_caret:
; At this time, the high bit of the key pressed is set.
: bit KBDSTRB ; Clear keyboard strobe
.ifdef __APPLE2ENH__
.ifndef __APPLE2ENH__
bit machinetype ; Apple //e or more recent?
bpl clear
.endif
bit BUTN0 ; Check if OpenApple is down
bmi done
.endif
and #$7F ; If not down, then clear high bit
clear: and #$7F ; If not down, then clear high bit
done: ldx #>$0000
rts