stuff newly read keys into the keyboard buffer
This commit is contained in:
1 parent
1e37babbb7
commit
f37e32f856
3 files changed
+36
No files matched your search
@@ -72,6 +72,18 @@ scan_keyboard:
|
||||
beq +
|
||||
;; Got a key, turn it from matrix position to key value,
|
||||
;; and stuff it in the keyboard buffer
|
||||
|
||||
;; Convert matrix position to key code
|
||||
;; XXX - Add offset of $40, $80 or $C0 if shift, CONTROL or C= are held down
|
||||
tax
|
||||
lda keyboard_matrixes,x
|
||||
|
||||
;; Stash key into keyboard buffer
|
||||
ldx keys_in_key_buffer
|
||||
cpx key_buffer_size
|
||||
beq +
|
||||
sta keyboard_buffer,x
|
||||
inc keys_in_key_buffer
|
||||
|
||||
*
|
||||
|
||||
|
||||
Reference in new issue
Block a user