|Non-Confidential||PDF version||ARM DUI0471M|
|Home > What is Semihosting? > SYS_GET_CMDLINE (0x15)|
Returns the command line used for the call to the executable, that is,
R1 points to a two-word data
block to be used for returning the command string and its length:
a pointer to a buffer of at least the size specified in word two
the length of the buffer in bytes.
to a two-word data block:The
debug agent might impose limits on the maximum length of the string
that can be transferred. However, the agent must be able to transfer
a command line of at least 80 bytes.
a pointer to null-terminated string of the command line
the length of the string.
R0 contains an error
0 if the call is successful
–1 if the call is not successful, for example, because of a communications error.