
Hitachi Embedded Workshop User Manual
268
Return value (output)
0: Normal completion
–1: Error
File number (input)
The number returned when the file was opened.
Offset (output)
The current position of the file pointer, as a byte count from the start of the file.
The following shows an example for inputting one character as a standard input (from a keyboard)
MOV.W
#H’0101,R0
MOV.W
#PARM,R1
JSR
@SYS_CALL
STOP
NOP
SYS_CALL
NOP
PARM
.DATA.W
INBUF
.RES.B
2
.END
4.23
Synchronizing Multiple Debugging Platforms
Multiple debugging platforms can be operated at the same time in the HEW.
Multiple debugging platforms are synchronized by initiating a HEW from another HEW. The HEW that initiates
another HEW is called the master, and the initiated HEW is called the slave. Choose [Tools -> Launch Slave
HEW...] or click the [Launch Slave HEW] toolbar button
to initiate a slave HEW.
The slave HEW has the same functionality as the master HEW.
The slave HEW is notified of the following actions done in the master HEW to ensure synchronization of the
slave HEW and the master HEW.
Reset go
Go
Stop debugging
Note: The master HEW can initiate multiple slave HEWs, but slave HEWs cannot be nested (no slave
HEW can initiate another slave HEW).