Datasheet
Semihosting
5-22 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D
5.4.17 SYS_SYSTEM (0x12)
Passes a command to the host command-line interpreter. This enables you to execute a
system command such as
dir
,
ls
, or
pwd
. The terminal I/O is on the host, and is not
visible to the target.
Caution
The command passed to the host is actually executed on the host. Ensure that any
command passed will have no unintended consequences.
Entry
On entry, r1 contains a pointer to a two-word argument block:
word 1 This points to a string that is to be passed to the host command-line
interpreter.
word 2 This is the length of the string.
Return
On exit, r0 contains the return status.