New cgetc with apple2enh fix from Oliver Scmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3454 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -16,8 +16,10 @@ _cgetc:
|
|||||||
|
|
||||||
; At this time, the high bit of the key pressed is set
|
; At this time, the high bit of the key pressed is set
|
||||||
bit KBDSTRB ; clear keyboard strobe
|
bit KBDSTRB ; clear keyboard strobe
|
||||||
|
.ifdef __APPLE2ENH__
|
||||||
bit BUTN0 ; check if OpenApple is down
|
bit BUTN0 ; check if OpenApple is down
|
||||||
bmi :+
|
bmi done
|
||||||
|
.endif
|
||||||
and #$7F ; If not down, then clear high bit
|
and #$7F ; If not down, then clear high bit
|
||||||
: ldx #$00
|
done: ldx #$00
|
||||||
rts
|
rts
|
||||||
|
|||||||
Reference in New Issue
Block a user