Added Commandline Support.

2003-03-20  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>

        * compile.c (cmdline_location): Added function to
        return the location of 8-bit (256 locations) where the
        Command Line arguments would be stored.
        (decode): Added a TRAP to 0xcc for Commandline
        processing using pseudo opcode O_SYS_CMDLINE.
        (sim_resume): Added handling of O_SYS_CMDLINE Trap.
        (sim_create_inferior): Setting a pointer to
        Commandline Args array.
        * inst.h: Added a new variable ptr_command_line for
        storing pointer to Commandline array.
This commit is contained in:
D.Venkatasubramanian
2003-03-20 06:00:25 +00:00
parent bef85dc6ef
commit d1360fb06a
3 changed files with 214 additions and 0 deletions

View File

@ -66,6 +66,9 @@ enum h8300_sim_state {
SIM_STATE_RUNNING, SIM_STATE_EXITED, SIM_STATE_SIGNALLED, SIM_STATE_STOPPED
};
/* For Command Line. */
char **ptr_command_line; /* Pointer to Command Line Arguments. */
typedef struct
{
enum h8300_sim_state state;