Debug application shown in latest Propeller Live Forum
__deets__
Posts: 203
in Propeller 2
So I just started watching the latest installment of the Parallax Live Forum, and was blown away by that debugging application. Not being on Windows made me of course envious, so I wonder: how does this work? How is the system state transferred? Is this documented somewhere?
Comments
P2 talks to the PC via serial port at 62,63. There is "debug" pseudoinstruction which in reality inserts a brk instruction to the code. This does a software interrupt
There is 16 kB of reserved RAM at $7C000 which can be loaded with a debug code and then write protected, so if BRK happens, the code is executed from there and talks to the PC which does all these fancy debug modes.
Being in Linux and using a Flexprop we can still use debug, in much more limited way but the idea is still the same.
https://docs.google.com/document/d/16qVkmA6Co5fUNKJHF6pBfGfDupuRwDtf-wyieh_fbqw/edit#heading=h.6vozniaah4rp - this Spin manual has several debug instructions described.
I am releasing this today, in about an hour. It will be in PNut.exe which runs in Windows. Soon, we will have it in the Propeller Tool.
Pnut runs fine on Wine. I haven't checked the debug stuff in a while, since it has never worked when using setclk(), but it worked too.
Are you saying that the new debugger is working?
It always has done in the past. Proptool, on the other hand, can't seem to find a comport so can only compile the binary.
Here's the sprites demo running:
What is different about DEBUG? I looked at the Google doc from above and didn’t notice anything new. Does it have the single step capability now and the interface you demonstrated a while back?
Never mind, I saw the information in the other thread!
Chip,
I have no idea about the your very latest. I haven't seen it yet.
Sorry, my initial comment was directed at Deets. Letting know he can use Pnut on Wine if he's keen to give the debugger a spin without the burden of Windoze.
Okay, found the new v35t download ... Yep, the fancy debug GUI seems intact on Wine. Screenshot with demo code:
Thanks, Evan.
Select "MAIN" to single-step.