mirror of
https://github.com/A2osX/A2osX.git
synced 2025-01-16 13:31:26 +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
|
||||
bcs .9
|
||||
|
||||
tya
|
||||
beq .10
|
||||
|
||||
lda TmpBuffer256,y Y,A=Bytes read
|
||||
cmp #$0D
|
||||
bne .10
|
||||
@ -422,13 +425,14 @@ ReadTxtFile >PUSHWI 127
|
||||
|
||||
.10 tya
|
||||
sta (pData)
|
||||
beq .2
|
||||
|
||||
.1 lda TmpBuffer256,y
|
||||
sta (pData),y
|
||||
dey
|
||||
bne .1
|
||||
|
||||
lda #'>'
|
||||
.2 lda #'>'
|
||||
>SYSCALL SYS.COutA
|
||||
lda #'"'
|
||||
>SYSCALL SYS.COutA
|
||||
|
Loading…
x
Reference in New Issue
Block a user