From 874b728ecd1f0d447ae8ff3a5e67d195ec55808c Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 8 Jun 2000 18:02:13 +0000 Subject: [PATCH] Fixed cr/lf handling git-svn-id: svn://svn.cc65.org/cc65/trunk@30 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/c128/cputc.s | 4 ++-- libsrc/c64/cputc.s | 4 ++-- libsrc/cbm610/cputc.s | 6 +++--- libsrc/pet/cputc.s | 4 ++-- libsrc/plus4/cputc.s | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/libsrc/c128/cputc.s b/libsrc/c128/cputc.s index 99253d04a..c3ffd9ea0 100644 --- a/libsrc/c128/cputc.s +++ b/libsrc/c128/cputc.s @@ -21,13 +21,13 @@ _cputcxy: ; Plot a character - also used as internal function -_cputc: cmp #$0D ; CR? +_cputc: cmp #$0A ; CR? bne L1 lda #0 sta CURS_X beq plot ; Recalculate pointers -L1: cmp #$0A ; LF? +L1: cmp #$0D ; LF? bne L2 ldy CURS_Y iny diff --git a/libsrc/c64/cputc.s b/libsrc/c64/cputc.s index bb7384a6a..79c17abbc 100644 --- a/libsrc/c64/cputc.s +++ b/libsrc/c64/cputc.s @@ -21,13 +21,13 @@ _cputcxy: ; Plot a character - also used as internal function -_cputc: cmp #$0D ; CR? +_cputc: cmp #$0A ; CR? bne L1 lda #0 sta CURS_X beq plot ; Recalculate pointers -L1: cmp #$0A ; LF? +L1: cmp #$0D ; LF? bne L2 ldy CURS_Y iny diff --git a/libsrc/cbm610/cputc.s b/libsrc/cbm610/cputc.s index 4e8d94233..2a2a6fac6 100644 --- a/libsrc/cbm610/cputc.s +++ b/libsrc/cbm610/cputc.s @@ -24,13 +24,13 @@ _cputcxy: ; Plot a character - also used as internal function -_cputc: cmp #$0D ; CR? +_cputc: cmp #$0A ; CR? bne L1 lda #0 sta CURS_X beq plot ; Recalculate pointers -L1: cmp #$0A ; LF? +L1: cmp #$0D ; LF? bne L2 ldy CURS_Y iny @@ -99,4 +99,4 @@ putchar: stx IndReg rts - + diff --git a/libsrc/pet/cputc.s b/libsrc/pet/cputc.s index 3c8b21d14..ed3282928 100644 --- a/libsrc/pet/cputc.s +++ b/libsrc/pet/cputc.s @@ -21,13 +21,13 @@ _cputcxy: ; Plot a character - also used as internal function -_cputc: cmp #$0D ; CR? +_cputc: cmp #$0A ; CR? bne L1 lda #0 sta CURS_X beq plot ; Recalculate pointers -L1: cmp #$0A ; LF? +L1: cmp #$0D ; LF? bne L2 ldy CURS_Y iny diff --git a/libsrc/plus4/cputc.s b/libsrc/plus4/cputc.s index 4bf9d2e86..62e721d91 100644 --- a/libsrc/plus4/cputc.s +++ b/libsrc/plus4/cputc.s @@ -21,13 +21,13 @@ _cputcxy: ; Plot a character - also used as internal function -_cputc: cmp #$0D ; CR? +_cputc: cmp #$0A ; CR? bne L1 lda #0 sta CURS_X beq plot ; Recalculate pointers -L1: cmp #$0A ; LF? +L1: cmp #$0D ; LF? bne L2 ldy CURS_Y iny -- 2.39.5