simulator reset

Bug #579348 reported by Onkar Shinde
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnusim8085
New
Wishlist
Onkar Shinde

Bug Description

while debugging and running the simulator repeatedly, it is getting clear that most runtime values simply stick around between each run. However, when watching the simulator work, it would be better to have a way to reset it to some pre-defined state - i.e. via a toolbar button that allows the user to reset the simulator.
Preferably, this would also allow for certain components to be excluded, so that the user may pick "reset" and then a number of options with checkboxes that shows "stack,memory, registers".

Tags: ui
Revision history for this message
Bug Importer (bug-importer) wrote :

this is available via the menu!

Revision history for this message
Bug Importer (bug-importer) wrote :

reset doesn't however reset the stack trace

Revision history for this message
Bug Importer (bug-importer) wrote :

this might also benefit from being exposed via the toolbar?

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

There is already a reset button. I will see if I can add functionality of resetting stack.
The button is already available on toolbar.

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Sridhar,

Can you please comment on this issue? Do you think it is important to have functionality to reset stack. If you think it is important then please review attached patch.

Revision history for this message
Sridhar Ratnakumar (srid) wrote :

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.

Revision history for this message
The Escapist (wisd00m) wrote :

I think that's a good analysis: the issue is not about resetting the actual stack, but rather about resetting/redrawing the the "data tab".

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.