F²MC-16FX Family, Emulating and Debugging with Softune and MB2198-01, Doc. No. 002-04828 Rev. *B
71
11. Function Call
How to Use Function Call Feature
The specified function can be started during debugging without reference to the flow of the program. This
function is known as function call. This feature can be used when execution is stopped. After MCU reset one
should at least execute one instruction before using this feature. The
Function call
dialog box is opened by right
clicking on
Call…
on Debug pull down menu
When the function call dialog box opens, specify the function you want to call with a correct argument. If a
breakpoint is set in the called function, the program stops at this breakpoint. When processing of the called
function is terminated and control is returned, the function call result dialog box opens, if
Display return value
check box
is checked. The PC then returns to the value before the function was called.
To understand the function, let us consider following example code