Page 1 of 1

SBASIC Trace

Posted: Sat Aug 06, 2022 8:20 pm
by Derek_Stewart
Hi,

I read in Andrew Pennell's book Assembley Language on the QL, there is an attempt at a Superbasic Trace routine.

The ability to single step and trace a SBASIC programme, seems to be lacking, which if implemented woukd be a great enhancement to SBASIC.

I suppose, I can use MasterBasic, which works with SBASIC...

Re: SBASIC Trace

Posted: Sat Aug 06, 2022 8:38 pm
by tofro
Minerva supports single-stepping SuperBASIC. You need to load the trace_bin toolkit from the Minerva utils disk, and can then single-step and have new TRACE (tracing line numbers and statements), SSTEP (single-stepping) and TROFF (tracing off) commands.

Without Minerva, it seems difficult: Minerva provides "user hooks" that allow you to inject machine code into the S*BASIC interpreter.

Re: SBASIC Trace

Posted: Sun Aug 07, 2022 9:29 am
by Derek_Stewart
Hi

Thank you for the information, I did know about the Minerva Trace, which is detailed in the Minerva manual.

I was hoping for a possible addition to SMSQ/E with regards to Basic tracing.

So I will use MasterBasic...

Maybe Minerva should be developed further