F²MC-16FX Family, Emulating and Debugging with Softune and MB2198-01, Doc. No. 002-04828 Rev. *B
70
10. Call Stack
How to Use Call Stack Feature
Usually, a program is a set of several subroutines. For this reason, as debugging advances, function calls of
several stages occur. For example, one routine calls another and the called routine further calls another.
Call stack window can be opened by clicking on
Call…
under
Debug
menu
The call stack retains the relationship between function calls. Clicking a function name from the function name
list immediately displays information for the function in the Source Window.
The function written in the lowermost line of the function name list is the main function. This main function calls
the function above it. The called function further calls a function above it. In this way, the function written in the
uppermost line is the function in which the current PC exists.
When return is executed, functions are deleted in turn from the function name list, starting from the uppermost
line.
When a check mark is set to
Parameter
, an argument value is displayed after each function name, as shown in
above figure. When no check mark is set, only parentheses "( )" are displayed after each function name.