A function like this
100 DEFine FuNction isBasicRunning
110 RETurn NOT BASIC_B%(111)
120 END DEFine isBasicRunning
will return 1 (aka Basic is running) if either:
- a BASIC program is running
- a BASIC program was running but execution was interrupted with CTRL-SPACE (user can use CONTINUE to resume the execution)
- a BASIC program has run, but there was no STOP command in the program and no CLEAR or NEW command was issued after it ended
Is there any memory address / system variable / whatever that I could check ?