small keyboard reading fixes
This commit is contained in:
1 parent
a7cb7eb52e
commit
f9e3b57a79
14 files changed
+57
-26
No files matched your search
+2
-19
@@ -8,26 +8,9 @@
|
||||
// CPU registers that has to be preserved (see [RG64]): .X, .Y
|
||||
//
|
||||
|
||||
// XXX currently does not preserve registers, to be fixed!
|
||||
|
||||
GETIN:
|
||||
|
||||
// Wait for a key
|
||||
lda NDX
|
||||
bne !+
|
||||
// XXX this should be a dispatcher for several different devices!
|
||||
|
||||
// Nothing in keyboard buffer to read
|
||||
sec
|
||||
lda #$00
|
||||
rts
|
||||
|
||||
!:
|
||||
lda KEYD
|
||||
pha
|
||||
|
||||
jsr pop_keyboard_buffer
|
||||
|
||||
pla
|
||||
clc
|
||||
|
||||
rts
|
||||
jmp read_kb_buf
|
||||
Reference in new issue
Block a user