From d1360fb06a436e35055a0f42a1d1cf7b70a3d40b Mon Sep 17 00:00:00 2001 From: "D.Venkatasubramanian" Date: Thu, 20 Mar 2003 06:00:25 +0000 Subject: Added Commandline Support. 2003-03-20 D.Venkatasubramanian * 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. --- sim/h8300/inst.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sim/h8300/inst.h') diff --git a/sim/h8300/inst.h b/sim/h8300/inst.h index 7f6e400..edbee6a 100644 --- a/sim/h8300/inst.h +++ b/sim/h8300/inst.h @@ -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; -- cgit v1.1