From ab46cb81e67581e4a14605890a530c043f471331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20GIBERT?= Date: Wed, 6 Jan 2016 23:06:41 +0100 Subject: [PATCH] Fix a bug in batch mode (crash when empty line in file) --- SBIN/SHELL.S.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SBIN/SHELL.S.txt b/SBIN/SHELL.S.txt index 09a03fbd..8d235b83 100644 --- a/SBIN/SHELL.S.txt +++ b/SBIN/SHELL.S.txt @@ -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