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ó
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ó