mirror of
https://github.com/A2osX/A2osX.git
synced 2024-06-01 07:41:51 +00:00
EDIT:Save bugfix
This commit is contained in:
parent
340ce51779
commit
e5abc173c6
Binary file not shown.
|
@ -228,37 +228,31 @@ FILE.Save.CRLF sec
|
||||||
.1 lda (BufPtr)
|
.1 lda (BufPtr)
|
||||||
beq .8
|
beq .8
|
||||||
|
|
||||||
ldy #$ff
|
ldy #0
|
||||||
|
|
||||||
.2 iny
|
.2 lda (BufPtr)
|
||||||
lda (BufPtr),y
|
beq .4
|
||||||
sta (LineBufPtr),y
|
|
||||||
beq .3
|
|
||||||
|
|
||||||
|
inc BufPtr
|
||||||
|
bne .3
|
||||||
|
|
||||||
|
inc BufPtr+1
|
||||||
|
|
||||||
|
.3 sta (LineBufPtr),y
|
||||||
|
iny
|
||||||
|
|
||||||
cmp #C.CR
|
cmp #C.CR
|
||||||
bne .2
|
bne .2
|
||||||
|
|
||||||
iny
|
|
||||||
|
|
||||||
bit TmpIndex+1
|
bit TmpIndex+1
|
||||||
bpl .3
|
bpl .4
|
||||||
|
|
||||||
lda #C.LF
|
lda #C.LF
|
||||||
sta (LineBufPtr),y
|
sta (LineBufPtr),y
|
||||||
|
|
||||||
iny
|
iny
|
||||||
|
|
||||||
.3 tya
|
.4 jsr FILE.WriteY
|
||||||
beq .8
|
|
||||||
|
|
||||||
clc
|
|
||||||
adc BufPtr
|
|
||||||
sta BufPtr
|
|
||||||
bcc .7
|
|
||||||
|
|
||||||
inc BufPtr+1
|
|
||||||
|
|
||||||
.7 jsr FILE.WriteY
|
|
||||||
bcs FILE.Save.99
|
bcs FILE.Save.99
|
||||||
|
|
||||||
bra .1
|
bra .1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user