Elmo HARSFEN0602 Network Hardware User Manual


 
HARSFEN0602
The treatment of Run to Cursor is very easy: the IDE sets at the relevant line fake break point with the
number of repetitions as one. When a break point is reached, it has to be removed from the break point list.
There is no need to define special debug command.
6.5.7.2 Step Over
The DB##SO command executes the treatment of Step Over. It runs up to the nearest end of line.
Syntax:
DB##SO[N]
where N is a handle of a specified VAC machine.
This command is implemented inside the Harmonica. The algorithm is following:
Save the current base pointer
Start the loop
Run to the nearest end of line
Compare the current base pointer with the saved base pointer
If both of them are the same, the step is over - jump to the end the loop, otherwise go to
the start of the loop.
End of the loop
When the nearest end of line is reached, the VAC machine enters to the halted state. In case of jump or
infinite loop or other reason inside line execution, the program may not reach end of line, then it just runs
and does not enter halted state.
6.5.7.3 Step In
The DB##SI command executes the treatment of Step In. It enters inside function body and runs up to the
nearest end of line.
Syntax:
DB##SI[N]
where N is a handle of a specified VAC machine.
This command is implemented inside the Harmonica. The algorithm is following:
Start of the loop
Run to the nearest end of line
End of the loop
When the nearest end of line is reached, the VAC machine enters to the halted state.
6.5.7.4 Step Out
The DB##SU command executes the treatment of Step Out. It returns from function body and runs up to the
nearest end of line.
Syntax:
DB##SU[N]
where N is a handle of a specified VAC machine.
This command is implemented inside the Harmonica. The algorithm is following:
Save the current base pointer
Start of the loop
Run to the nearest end of line
Compare the current base pointer with the saved base pointer