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
I am interested in finding a way that would return TRUE only if a BASIC program is actually running (item 1 from above - but not for items 2 and 3).
Is there any memory address / system variable / whatever that I could check ?