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