1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-22 01:31:33 +00:00
C02/include/py65min.a02
2018-02-13 19:55:25 -05:00

27 lines
727 B
Plaintext

; py65mon program initialization code for c02 programs
;System Specific ASCII Key Mappings
DELKEY EQU $7F ;Delete/Backspace Key (Delete)
ESCKEY EQU $1B ;Escape/Stop Key (Escape)
RTNKEY EQU $0D ;Return/Enter Key (Carriage Return)
;Memory Mapped I/O
PUTC EQU $F001 ;Write Character to Console
GETC EQU $F004 ;Read Character from Console
ORG $0200 ;Start Directly Above Stack
START: JMP MAIN ;Execute Program
;Wait for Character from Console
RDKEY: LDA GETC ;Read Character from Console
BEQ RDKEY ; Loop if None Received
RTS
;Print Character to Console
PRCHR: STA PUTC ;Write Character to Console
RTS
EXIT: BRK ;Return to Monitor