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:
committed by
Oliver Schmidt
parent
4971fe312a
commit
d3ef3e1b62
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user