Function Call
F²MC-16FX Family, Emulating and Debugging with Softune and MB2198-01, Doc. No. 002-04828 Rev. *B
72
Let us set break point at line no. 29 and line no. 38. Start executing program, at first it halts at first break point.
Now open
Function Call
dialog box (Debug -
> Call…)
When the function definition is,
int multiply (char var1, char var2),
specify the function call as follow
multiply (5, 6);
Where a constant value is directly specified
multiply (a, b);
Where variable ‘a’ & ‘b’ is directly specified
Since break point is set in the called function, the program stops at this breakpoint. When run again at the end of
processing of called function, control is returned, the
Result of call function
dialog box as shown below opens.
The PC then returns to the value before the function was called.