On 18/12/2022 10:55, Daniel Drotos wrote:
In script, instead of run, you should use expr /n sim_run=1

That did not work - same result.

0> info break 1
Num Type       Disp Hit   Cnt   Address  Cond
1   event      keep 1     1     0x00500a write
     cmd="timer stop benchmark; timer get benchmark; timer set benchmark 0; timer start benchmark; expr /n sim_run=1"

Output when breakpoint is hit:

timer #0("benchmark") OFF 1.611885374669695 sec (12895083 clks)
Event `write' at rom[0x500a]

Stop at 0x008dbc: (112) Event break
V-IHINZC  Flags= 0x29  41 )  A= 0x00   0 .
0-101001  X= 0x0021  33 !    Y= 0xae44 44612 D
SP= 0x17f6 [SP+1]= 80 128 .  Limit= 0x14ff
0x08dbc  ? ae 27 10       ldw    X,#0x2710
F 0x008dbc
Simulated 0 ticks (0.000e+00 sec)
Host usage: 166.877484 sec, rate=0.000000
0>

Even if I issue "expr /n sim_run=1" command manually when it is stopped from the breakpoint, nothing happens, it returns to prompt immediately.

0> expr /n sim_run=1
0> info var
[...]
sim_run simif_0_cfg[0x1] = 0x00000000,0U,0
  WR: sets running state, RD: check if simulation is running
[...]
0>

By the way, what does the "/n" do? It is an undocumented switch as far as I can see.

Also, what is the difference between setting "sim_run=1" and the "run" command? Surely the latter should do what it says regardless of context?

Regards,
Basil Hussain


_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to