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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user