1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-28 06:30:16 +00:00

Removed stdin->stdout echo from read.s

This commit is contained in:
Wayne Parham 2021-06-07 12:33:29 -05:00
parent 6cf4bd99bb
commit 886e9e83b2

View File

@ -29,11 +29,7 @@ begin: dec ptr2
beq done ; If buffer full, return
getch: jsr INTCHR ; Get character using Monitor ROM call
jsr OUTCHR ; Echo it
and #$7F ; Clear hi bit and check for '\r'
cmp #$0D
bne putch
lda #$0A ; Replace with '\n' and set count to zero
and #$7F ; Clear hi bit
putch: ldy #$00 ; Put char into return buffer
sta (ptr1),y