small keyboard reading fixes

This commit is contained in:
FeralChild64 committed 2019-10-17 17:41:50 +02:00
1 parent a7cb7eb52e
commit f9e3b57a79
14 files changed
+57 -26

No files matched your search

+2 -19
View File
@@ -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