Mercurial > hg > index.cgi
changeset 58:24b123b3e69b
Fix flow error in DATA command skipping
author | William Astle <lost@l-w.ca> |
---|---|
date | Sun, 19 Feb 2023 16:06:07 -0700 |
parents | 6a4c342ac12b |
children | 9bed204d99b9 |
files | src/lwbasic.s |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lwbasic.s Sun Feb 19 15:33:10 2023 -0700 +++ b/src/lwbasic.s Sun Feb 19 16:06:07 2023 -0700 @@ -1326,7 +1326,7 @@ cmd_data0 lda ,x+ ; get character at pointer beq cmd_data1 ; brif end of line cmpa #': ; end of statement? - bne cmd_data1 ; brif not + bne cmd_data2 ; brif not cmd_data1 leax -1,x ; move back to the NUL or colon stx inputptr ; reset input pointer for interpreter rts