~rabbits/uxn

Standard debug output format on #010e DEO

Details
Message ID
<9da10fa5-d915-43e3-8347-9fb0608f7a91@100r.co>
DKIM signature
pass
Download raw message
Hello!

A few people have been implementing emulators this week, and they've 
suggested a standard output format for the 01 value to the debug port, 
so they can test their implementation against that output.

I had a different format going for the uxnrepl, uxn5, uxn11, and uxnemu. 
I've started standardizing them to the following format:

Sending a non-null byte to the System/debug port will print the content 
of the stacks or pause the evaluation if the emulator includes a 
step-debugger. The recommended output for the #01 debug value, with a 
working stack containing 3 items, is as follow:

WST 00 00 00 00 00|12 34 56 <
RST 00 00 00 00 00 00 00 00|<

The reason for the lack of a stack pointer in the output, is that some 
emulators implementations start writing at 0, and others at 1. And that 
number seems to vary a bit, but has no real impact on the runtime if it 
is consistent.

Have a good rest of week! The docs have been updated to reflect that:
https://wiki.xxiivv.com/site/varvara.html

Dll
Reply to thread Export thread (mbox)