DB48X-on-DM42
DB48X-on-DM42 copied to clipboard
Stack left dirty in case of error
trafficstars
The stack is left with some intermediary data in case of error:
8 0 / -> 1 [and an error] 8 0 MOD -> +NaN [and an error]
It would be great to have a behavior similar to the RPL calculators where the arguments were restored in case of error.
This behavior will "appear" when I get to implementing the undo stack and LastX.
Until then, you are correct that the state of the stack in case of error is not guaranteed.