mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
3a5fbd34da
keypresses from the keypad. Includes sample program illustrating how to use them. Tested on real KIM-1 hardware.
32 lines
1.2 KiB
PHP
32 lines
1.2 KiB
PHP
; ---------------------------------------------------------------------------
|
|
;
|
|
; KIM-1 definitions
|
|
;
|
|
; ---------------------------------------------------------------------------
|
|
|
|
|
|
RAMSTART := $0200 ; Entry point
|
|
|
|
|
|
; ---------------------------------------------------------------------------
|
|
; Monitor Functions
|
|
; ---------------------------------------------------------------------------
|
|
OUTCHR := $1EA0 ; Output character
|
|
INTCHR := $1E5A ; Input character without case conversion
|
|
DUMPT := $1800 ; Dump memory to tape
|
|
LOADT := $1873 ; Load memory from tape
|
|
START := $1C4F ; Enter KIM-1 monitor
|
|
SCANDS := $1F1F ; Scan 7-segment display
|
|
KEYIN := $1F40 ; Open up keyboard channel
|
|
GETKEY := $1F6A ; Return key from keyboard
|
|
|
|
|
|
; ---------------------------------------------------------------------------
|
|
; System Memory
|
|
; ---------------------------------------------------------------------------
|
|
SAL := $17F5 ; Tape load address low
|
|
SAH := $17F6 ; Tape load address high
|
|
EAL := $17F7 ; Tape address end low
|
|
EAH := $17F8 ; Tape address end high
|
|
ID := $17F9 ; Tape Identification number
|