SBASIC Trace

Anything QL Software or Programming Related.
Post Reply
Derek_Stewart
Font of All Knowledge
Posts: 3932
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

SBASIC Trace

Post 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...


Regards,

Derek
User avatar
tofro
Font of All Knowledge
Posts: 2685
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: SBASIC Trace

Post 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.


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Derek_Stewart
Font of All Knowledge
Posts: 3932
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: SBASIC Trace

Post 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


Regards,

Derek
Post Reply