mirror of
https://github.com/A2osX/A2osX.git
synced 2024-10-09 14:55:05 +00:00
Fix a bug in batch mode (crash when empty line in file)
This commit is contained in:
parent
4acc9d08a6
commit
ab46cb81e6
@ -414,6 +414,9 @@ ReadTxtFile >PUSHWI 127
|
|||||||
>SYSCALL SYS.MLIRead
|
>SYSCALL SYS.MLIRead
|
||||||
bcs .9
|
bcs .9
|
||||||
|
|
||||||
|
tya
|
||||||
|
beq .10
|
||||||
|
|
||||||
lda TmpBuffer256,y Y,A=Bytes read
|
lda TmpBuffer256,y Y,A=Bytes read
|
||||||
cmp #$0D
|
cmp #$0D
|
||||||
bne .10
|
bne .10
|
||||||
@ -422,13 +425,14 @@ ReadTxtFile >PUSHWI 127
|
|||||||
|
|
||||||
.10 tya
|
.10 tya
|
||||||
sta (pData)
|
sta (pData)
|
||||||
|
beq .2
|
||||||
|
|
||||||
.1 lda TmpBuffer256,y
|
.1 lda TmpBuffer256,y
|
||||||
sta (pData),y
|
sta (pData),y
|
||||||
dey
|
dey
|
||||||
bne .1
|
bne .1
|
||||||
|
|
||||||
lda #'>'
|
.2 lda #'>'
|
||||||
>SYSCALL SYS.COutA
|
>SYSCALL SYS.COutA
|
||||||
lda #'"'
|
lda #'"'
|
||||||
>SYSCALL SYS.COutA
|
>SYSCALL SYS.COutA
|
||||||
|
Loading…
Reference in New Issue
Block a user