# HG changeset patch # User William Astle # Date 1669094537 25200 # Node ID 0a476b3e0ec40908cf0923c45fc00821066fabc9 # Parent e74a975b38d913bce16cf277a82b9450954a14d0 Fix STOP to show BREAK message in immediate mode diff -r e74a975b38d9 -r 0a476b3e0ec4 src/lwbasic.s --- a/src/lwbasic.s Mon Nov 21 22:22:01 2022 -0700 +++ b/src/lwbasic.s Mon Nov 21 22:22:17 2022 -0700 @@ -1100,8 +1100,7 @@ ldx curstmt ; get current statement address stx contstmt ; save it for CONT cmd_stop2 rol endflag ; get STOP/END to C (1=STOP) - ldx curline ; immediate mode? - beq cmd_stop3 ; brif so - just return END/STOP status + bcc cmd_stop3 ; brif END - don't do message ldx #breakmsg ; do "BREAK IN" jmp ERROR2 ; the bottom half of the error handler can deal with the details cmd_stop3 puls x,pc ; lose return address and return to caller of interpretation loop