Removed stdin->stdout echo from read.s
This commit is contained in:
parent
6cf4bd99bb
commit
886e9e83b2
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue