Keil Logo

SYS_GET_CMDLINE (0x15)

11.12 SYS_GET_CMDLINE (0x15)

Returns the command line used for the call to the executable, that is, argc and argv.

Entry

On entry, R1 points to a two-word data block to be used for returning the command string and its length:
word 1
a pointer to a buffer of at least the size specified in word two
word 2
the length of the buffer in bytes.

Return

On exit:
  • Register R1 points 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.
    word 1
    a pointer to null-terminated string of the command line
    word 2
    the length of the string.
  • Register R0 contains an error code:
    • 0 if the call is successful
    • –1 if the call is not successful, for example, because of a communications error.
Non-ConfidentialPDF file icon PDF versionARM DUI0375H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.