Fixed a bug in LF handling for the CBM machines

git-svn-id: svn://svn.cc65.org/cc65/trunk@156 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-07-16 20:24:10 +00:00
parent c8215a37df
commit f3605c162b
5 changed files with 16 additions and 16 deletions

View File

@@ -6,7 +6,7 @@
; ;
.export _cputcxy, _cputc, cputdirect, putchar .export _cputcxy, _cputc, cputdirect, putchar
.export advance, newline, plot .export plot
.import popa, _gotoxy .import popa, _gotoxy
.import xsize, revers .import xsize, revers
@@ -54,16 +54,16 @@ advance:
iny iny
cpy xsize cpy xsize
bne L9 bne L9
ldy #0 ; new line
newline: newline:
ldy #0 ; new line
clc clc
lda xsize lda xsize
adc SCREEN_PTR adc SCREEN_PTR
sta SCREEN_PTR sta SCREEN_PTR
bcc L4 bcc L4
inc SCREEN_PTR+1 inc SCREEN_PTR+1
L4: clc clc
lda xsize L4: lda xsize
adc CRAM_PTR adc CRAM_PTR
sta CRAM_PTR sta CRAM_PTR
bcc L5 bcc L5

View File

@@ -6,7 +6,7 @@
; ;
.export _cputcxy, _cputc, cputdirect, putchar .export _cputcxy, _cputc, cputdirect, putchar
.export advance, newline, plot .export plot
.import popa, _gotoxy .import popa, _gotoxy
.import xsize, revers .import xsize, revers
@@ -54,16 +54,16 @@ advance:
iny iny
cpy xsize cpy xsize
bne L9 bne L9
ldy #0 ; new line
newline: newline:
ldy #0 ; new line
clc clc
lda xsize lda xsize
adc SCREEN_PTR adc SCREEN_PTR
sta SCREEN_PTR sta SCREEN_PTR
bcc L4 bcc L4
inc SCREEN_PTR+1 inc SCREEN_PTR+1
L4: clc clc
lda xsize L4: lda xsize
adc CRAM_PTR adc CRAM_PTR
sta CRAM_PTR sta CRAM_PTR
bcc L5 bcc L5

View File

@@ -6,7 +6,7 @@
; ;
.export _cputcxy, _cputc, cputdirect, putchar .export _cputcxy, _cputc, cputdirect, putchar
.export advance, newline, plot .export plot
.exportzp CURS_X, CURS_Y .exportzp CURS_X, CURS_Y
.import _gotoxy .import _gotoxy
.import popa .import popa
@@ -57,8 +57,8 @@ advance:
iny iny
cpy xsize cpy xsize
bne L9 bne L9
ldy #0 ; new line
newline: newline:
ldy #0 ; new line
clc clc
lda xsize lda xsize
adc CharPtr adc CharPtr

View File

@@ -6,7 +6,7 @@
; ;
.export _cputcxy, _cputc, cputdirect, putchar .export _cputcxy, _cputc, cputdirect, putchar
.export advance, newline, plot .export plot
.import popa, _gotoxy .import popa, _gotoxy
.import xsize, revers .import xsize, revers
@@ -54,8 +54,8 @@ advance:
iny iny
cpy xsize cpy xsize
bne L9 bne L9
ldy #0 ; new line
newline: newline:
ldy #0 ; new line
clc clc
lda xsize lda xsize
adc SCREEN_PTR adc SCREEN_PTR

View File

@@ -6,7 +6,7 @@
; ;
.export _cputcxy, _cputc, cputdirect, putchar .export _cputcxy, _cputc, cputdirect, putchar
.export advance, newline, plot .export plot
.import popa, _gotoxy .import popa, _gotoxy
.import xsize, revers .import xsize, revers
@@ -54,16 +54,16 @@ advance:
iny iny
cpy xsize cpy xsize
bne L9 bne L9
ldy #0 ; new line
newline: newline:
ldy #0 ; new line
clc clc
lda xsize lda xsize
adc SCREEN_PTR adc SCREEN_PTR
sta SCREEN_PTR sta SCREEN_PTR
bcc L4 bcc L4
inc SCREEN_PTR+1 inc SCREEN_PTR+1
L4: clc clc
lda xsize L4: lda xsize
adc CRAM_PTR adc CRAM_PTR
sta CRAM_PTR sta CRAM_PTR
bcc L5 bcc L5