Datasheet
Semihosting
5-14 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D
5.4.2 SYS_CLOSE (0x02)
Closes a file on the host system. The handle must reference a file that was opened with
SYS_OPEN.
Entry
On entry, r1 contains a pointer to a one-word argument block:
word 1 This is a file handle referring to an open file.
Return
On exit, r0 contains:
• 0 if the call is successful
•–1 if the call is not successful.
5.4.3 SYS_WRITEC (0x03)
Writes a character byte, pointed to by r1, to the debug channel. When executed under
an ARM debugger, the character appears on the display device connected to the
debugger.
Entry
On entry, r1 contains a pointer to the character.
Return
None. Register r0 is corrupted.
5.4.4 SYS_WRITE0 (0x04)
Writes a null-terminated string to the debug channel. When executed under an ARM
debugger, the characters appear on the display device connected to the debugger.
Entry
On entry, r1 contains a pointer to the first byte of the string.
Return
None. Register r0 is corrupted.