~rabbits/public-inbox

1

[BUG uxn] #010e DEO stack printing broken.

Details
Message ID
<CAB3OJbgqpoHjKL7i_AQzCu7u96cBQ_ZwV1y_EayOcp7EqA_4bA@mail.gmail.com>
DKIM signature
pass
Download raw message
Dear Uxners,

The stack printing routine seems to be broken when the stack pointer
wraps around back to -1 from starting position.

Minimal example:

|100 POP #010e DEO BRK

Current behavior: It seems to be printing the complete stack over and
over infinitely.

Expected behavior:  I would expect to either print the stack something like:
WST 00 00 00 00 00 00 00 00|<
RST 00 00 00 00 00 00 00 00|<

Taking into account that the stack "underflowed" either using a marker
or just not printing infinitely.

Or print the complete stack just once, since it is wrapped around and
it attempts to print the whole stack, I would understand that, but the
problem is that it repeats infinitely.

Best regards,
Ismael Venegas Castell├│
Details
Message ID
<88da13ba-2767-496b-af49-305dfe195f76@100r.co>
In-Reply-To
<CAB3OJbgqpoHjKL7i_AQzCu7u96cBQ_ZwV1y_EayOcp7EqA_4bA@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
Hi Snufkin ­čÖé

Thanks for spotting this one!
Pushed a fix to uxnemu and uxn11.

Dll

On 2024-03-03 23:21, Ismael VC wrote:
> Dear Uxners,
> 
> The stack printing routine seems to be broken when the stack pointer
> wraps around back to -1 from starting position.
> 
> Minimal example:
> 
> |100 POP #010e DEO BRK
> 
> Current behavior: It seems to be printing the complete stack over and
> over infinitely.
> 
> Expected behavior:  I would expect to either print the stack something like:
> WST 00 00 00 00 00 00 00 00|<
> RST 00 00 00 00 00 00 00 00|<
> 
> Taking into account that the stack "underflowed" either using a marker
> or just not printing infinitely.
> 
> Or print the complete stack just once, since it is wrapped around and
> it attempts to print the whole stack, I would understand that, but the
> problem is that it repeats infinitely.
> 
> Best regards,
> Ismael Venegas Castell├│
Reply to thread Export thread (mbox)