The g command start program execution.
g[-st] [-b addr] [-e addr] [-- args...]
|-s||don't set client stack pointer|
|-b addr||insert a temporary breakpoint at address addr. This breakpoint is removed next time execution halts.|
|-e addr||start execution at address addr. This breakpoint is removed next time execution halts.|
|-- args...||indicates that the argument or arguments args are to be passed to the client program. No more options to the g command itself can be given after this option|
Invoking the g command with no options starts execution at the location given by CPC register.
The g command starts program execution. If the user does not specify a starting address, execution starts at the current value of the CPC register. This command must only be used once after downloading a new program. Use the c command to continue execution after a breakpoint.
If the user specifies the -- option, then PMON2000 will pass all arguments after -- to the client program. See Program run environment for details on argument passing.
A temporary breakpoint may be specified by using the -b addr argument. The temporary breakpoint remains in effect only until the next time that program execution is halted.
When starting a program the called function main will receive four incoming arguments, argc, argv, envp and pmonvecp. The first argument will be the string 'g' to distinguish this start method from the other. Then any args given after the -- switch will follow.
The -e addr option causes PMON2000 to start execution at the address addr instead of the CPC value.
Examples illustrating the use of the g command:
PMON> g Start executing at the current value of the CPC register. PMON> g -e a0020000 Start executing at 0xa0020000. PMON> g -e a0020000 -b a0020008 Start executing at 0xa0020000 and break at 0xa0020008.
The command uses no environment variable.
The continue (c) command.