Fixed cr/lf handling
git-svn-id: svn://svn.cc65.org/cc65/trunk@30 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -21,13 +21,13 @@ _cputcxy:
|
|||||||
|
|
||||||
; Plot a character - also used as internal function
|
; Plot a character - also used as internal function
|
||||||
|
|
||||||
_cputc: cmp #$0D ; CR?
|
_cputc: cmp #$0A ; CR?
|
||||||
bne L1
|
bne L1
|
||||||
lda #0
|
lda #0
|
||||||
sta CURS_X
|
sta CURS_X
|
||||||
beq plot ; Recalculate pointers
|
beq plot ; Recalculate pointers
|
||||||
|
|
||||||
L1: cmp #$0A ; LF?
|
L1: cmp #$0D ; LF?
|
||||||
bne L2
|
bne L2
|
||||||
ldy CURS_Y
|
ldy CURS_Y
|
||||||
iny
|
iny
|
||||||
|
|||||||
@@ -21,13 +21,13 @@ _cputcxy:
|
|||||||
|
|
||||||
; Plot a character - also used as internal function
|
; Plot a character - also used as internal function
|
||||||
|
|
||||||
_cputc: cmp #$0D ; CR?
|
_cputc: cmp #$0A ; CR?
|
||||||
bne L1
|
bne L1
|
||||||
lda #0
|
lda #0
|
||||||
sta CURS_X
|
sta CURS_X
|
||||||
beq plot ; Recalculate pointers
|
beq plot ; Recalculate pointers
|
||||||
|
|
||||||
L1: cmp #$0A ; LF?
|
L1: cmp #$0D ; LF?
|
||||||
bne L2
|
bne L2
|
||||||
ldy CURS_Y
|
ldy CURS_Y
|
||||||
iny
|
iny
|
||||||
|
|||||||
@@ -24,13 +24,13 @@ _cputcxy:
|
|||||||
|
|
||||||
; Plot a character - also used as internal function
|
; Plot a character - also used as internal function
|
||||||
|
|
||||||
_cputc: cmp #$0D ; CR?
|
_cputc: cmp #$0A ; CR?
|
||||||
bne L1
|
bne L1
|
||||||
lda #0
|
lda #0
|
||||||
sta CURS_X
|
sta CURS_X
|
||||||
beq plot ; Recalculate pointers
|
beq plot ; Recalculate pointers
|
||||||
|
|
||||||
L1: cmp #$0A ; LF?
|
L1: cmp #$0D ; LF?
|
||||||
bne L2
|
bne L2
|
||||||
ldy CURS_Y
|
ldy CURS_Y
|
||||||
iny
|
iny
|
||||||
@@ -99,4 +99,4 @@ putchar:
|
|||||||
stx IndReg
|
stx IndReg
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,13 +21,13 @@ _cputcxy:
|
|||||||
|
|
||||||
; Plot a character - also used as internal function
|
; Plot a character - also used as internal function
|
||||||
|
|
||||||
_cputc: cmp #$0D ; CR?
|
_cputc: cmp #$0A ; CR?
|
||||||
bne L1
|
bne L1
|
||||||
lda #0
|
lda #0
|
||||||
sta CURS_X
|
sta CURS_X
|
||||||
beq plot ; Recalculate pointers
|
beq plot ; Recalculate pointers
|
||||||
|
|
||||||
L1: cmp #$0A ; LF?
|
L1: cmp #$0D ; LF?
|
||||||
bne L2
|
bne L2
|
||||||
ldy CURS_Y
|
ldy CURS_Y
|
||||||
iny
|
iny
|
||||||
|
|||||||
@@ -21,13 +21,13 @@ _cputcxy:
|
|||||||
|
|
||||||
; Plot a character - also used as internal function
|
; Plot a character - also used as internal function
|
||||||
|
|
||||||
_cputc: cmp #$0D ; CR?
|
_cputc: cmp #$0A ; CR?
|
||||||
bne L1
|
bne L1
|
||||||
lda #0
|
lda #0
|
||||||
sta CURS_X
|
sta CURS_X
|
||||||
beq plot ; Recalculate pointers
|
beq plot ; Recalculate pointers
|
||||||
|
|
||||||
L1: cmp #$0A ; LF?
|
L1: cmp #$0D ; LF?
|
||||||
bne L2
|
bne L2
|
||||||
ldy CURS_Y
|
ldy CURS_Y
|
||||||
iny
|
iny
|
||||||
|
|||||||
Reference in New Issue
Block a user