started working on autostart software support
This commit is contained in:
1 parent
80dafcee32
commit
802890ff9c
25 files changed
+129
-9
No files matched your search
@@ -0,0 +1,33 @@
|
||||
|
||||
;;
|
||||
;; Official Kernal routine, described in:
|
||||
;;
|
||||
;; - [RG64] C64 Programmer's Reference Guide - page 283
|
||||
;; - [CM64] Compute's Mapping the Commodore 64 - page 227/228
|
||||
;;
|
||||
;; 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 keys_in_key_buffer
|
||||
bne +
|
||||
|
||||
;; Nothing in keyboard buffer to read
|
||||
sec
|
||||
lda #$00
|
||||
rts
|
||||
|
||||
*
|
||||
lda keyboard_buffer
|
||||
pha
|
||||
|
||||
jsr pop_keyboard_buffer
|
||||
|
||||
pla
|
||||
clc
|
||||
|
||||
rts
|
||||
Reference in new issue
Block a user