mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2024-06-11 18:29:31 +00:00
fix apple1 keyboard read
This commit is contained in:
parent
4dc1959c18
commit
8e4bfd194e
6
test.c
6
test.c
|
@ -318,7 +318,11 @@ void woz_mon() {
|
||||||
// reads a key from the apple-1 keyboard
|
// reads a key from the apple-1 keyboard
|
||||||
byte woz_getkey() {
|
byte woz_getkey() {
|
||||||
#ifdef APPLE1
|
#ifdef APPLE1
|
||||||
while((unsigned byte)PEEK(KEY_CTRL)>0);
|
asm {
|
||||||
|
__wait:
|
||||||
|
lda KEY_CTRL
|
||||||
|
bpl __wait
|
||||||
|
}
|
||||||
return PEEK(KEY_DATA) & 0x7f;
|
return PEEK(KEY_DATA) & 0x7f;
|
||||||
#else
|
#else
|
||||||
byte key;
|
byte key;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user