AFAIK, stack itself is stored in the memory ... and grows downward. The address of stack pointer is stored in the 'SP' register. Try this:
1. Load nqueeus.asm and execute it till first break point
2. Note the stack; and also directly inspect memory addresses of stack
3. Stop the program; note that the stack memory (on left panel 'Memory') is still intact
4. Reset -> Memory
5. Memory is now reset, including the addresses of stack
Therefore we shouldn't need a separate reset for stack.
The 'Stack' tab on the right panel is meant to be useful only when the program is actually running or being debugged. When the program is stopped, it shows the previous stack snapshot (address in last value of 'SP'). I noticed that when 'Reset' is clicked, this stack tab (including the 'Data' tab) is not redrawn ... which is a bug.
AFAIK, stack itself is stored in the memory ... and grows downward. The address of stack pointer is stored in the 'SP' register. Try this:
1. Load nqueeus.asm and execute it till first break point
2. Note the stack; and also directly inspect memory addresses of stack
3. Stop the program; note that the stack memory (on left panel 'Memory') is still intact
4. Reset -> Memory
5. Memory is now reset, including the addresses of stack
Therefore we shouldn't need a separate reset for stack.
The 'Stack' tab on the right panel is meant to be useful only when the program is actually running or being debugged. When the program is stopped, it shows the previous stack snapshot (address in last value of 'SP'). I noticed that when 'Reset' is clicked, this stack tab (including the 'Data' tab) is not redrawn ... which is a bug.