1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-12 12:29:32 +00:00
cc65/libsrc/sym1/getchar.s
2021-05-09 16:34:53 -05:00

22 lines
673 B
ArmAsm

; ---------------------------------------------------------------------------
; getchar.s
;
; for Sym-1
;
; Wayne Parham
; ---------------------------------------------------------------------------
.include "sym1.inc"
.export _getchar
.segment "CODE"
.proc _getchar: near
; ---------------------------------------------------------------------------
jsr INTCHR ; Get character using Monitor ROM call
and #$7F ; Strip off top bit
ldx #$00 ;
rts ; Return char
; ---------------------------------------------------------------------------
.endproc