s5u1c33000c Epson Electronics America, Inc., s5u1c33000c Datasheet - Page 376

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
CHAPTER 16: DEBUGGER
call, callh (call)
This command calls up user functions. (An entry program is required.)
The call command’s arguments are in decimal format, whereas those of the callh command are hexadecimal. The
call and callh commands operate in exactly the same way. The difference is only that the argument types are
different.
(1) call
(2) call <function name> <arg1> [<arg2> [<arg3>]]
Format 1)
Format 2)
The command executes the specified user program and receives the return value from %r10. If the return value is
-1 (0xffffffff), the command simply terminates. For any other return value, the command interprets it as the start
address of the packet passed from the function and displays the packet’s internal data as text in the [Command]
window or writes it out to a file as binary data. Specify the output destination using the callmd command. By
default, the data is output to the [Command] window.
Shown below is the structure of the packet returned by the user function.
The packet must always start from the 4-byte boundary. The user program on its part must set the start address of
this packet in %r10. If packets cannot be returned, set -1 in %r10.
360
Function
Formats
Input examples
Operation
User program
callh
callh <function name> <arg1> [<arg2> [<arg3>]]
<function name>:
<arg1–3>:
Data size (4 bytes)
Entering the [^] key returns users to the parameter input one line above.
Enter the [q] key to stop command execution.
Function to call
Arguments (decimal or symbol for call, hexadecimal or symbol for callh)
...Enter a function name.
...Enter argument 1.
...Enter argument 2.
...If argument 3 does not exist, press [Enter].
EPSON
Data
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
(guidance mode)
(direct input mode)
[ICD / ICE / SIM / MON]
S5U1C33000C MANUAL

Related parts for s5u1c33000c