Created
September 13, 2022 01:05
-
-
Save kaveenr/b80fc9381371982b05d73680586ca127 to your computer and use it in GitHub Desktop.
Simplified KIM-1 Keypress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;140000D8A90085F985FA85FB201F1F206A1F85F94C090208EE | |
;0000010001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; (2022) Kaveen Rodrigo / ukr.lk | |
; Reference To ROM Routines In The KIM-1 | |
SCANDS = $1f1f | |
GETKEY = $1f6a | |
; Reference to SCANDS values | |
dig12 = $f9 | |
dig34 = $fa | |
dig56 = $fb | |
; Start program at free RAM. | |
.org $0200 | |
init: | |
cld ; Clear Decimal | |
lda #$00 ; Initialize SCANDS Values | |
sta dig12 | |
sta dig34 | |
sta dig56 | |
main_loop: | |
jsr SCANDS | |
jsr GETKEY | |
cmp #$15 ; Handle no key press | |
beq main_loop | |
sta dig12 ; Store valid key press | |
jmp main_loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment