mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
Fixed cr/lf handling
git-svn-id: svn://svn.cc65.org/cc65/trunk@30 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
f49423682e
commit
874b728ecd
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user