Menu

#784 ucsim: show stats at current program counter

None
closed
None
5
2022-03-02
2022-03-02
Mike St
No

When I execute the step command, the parameter if used must be greater than 0 to have meaning and I see a screen like this:

Stop at 0x000072: (109) stepped 12 ticks
     R0 R1 R2 R3 R4 R5 R6 R7
     fe fe fe fe fe fe fe 00
@R0 fe .  ACC= 0x00   0 .  B= 0x00
@R1 fe .  PSW= 0x00 CY=0 AC=0 OV=0 P=0
SP 0x100000007 -> 00 fe fe fe fe fe fe fe
   DPTR= 0x0000 @DPTR= 0xfe 254 .
0x0072  ? ff       MOV    R7,A
F 0x000072

If I do a run, I can't make the addresses the same.

What I want to do with my program is stop the execution then receive the information like above without advancing or changing the program counter in order to do so.

I can stop execution by executing "sim_run=0" in the simulator. Simulator simply returns a 0.

Discussion

  • Daniel Drotos

    Daniel Drotos - 2022-03-02
    • status: open --> closed
    • Group: -->
     
  • Daniel Drotos

    Daniel Drotos - 2022-03-02

    Dear Mike,
    You can use info reg ("i r" in short) command any time. It can be usefull when you stop background running:

    expr /n sim_run=0;info reg
    

    Daniel

     

Log in to post a comment.

Monday.com Logo