outside of main memory refers to the eightbit area (in theory, this
can only happen when simulating H8/300H programs). We make no attempt
to catch overlapping addresses, wrapped addresses, etc etc. */
-#define H8300_MSIZE (1<<16)
-#define H8300H_MSIZE (1<<18)
+#define H8300_MSIZE (1 << 16)
+
+/* avolkov:
+ Next 2 macros are ugly for any workstation, but while they're work.
+ Memory size MUST be configurable. */
+#define H8300H_MSIZE (1 << 18)
+#define H8300S_MSIZE (1 << 24)
#define CSIZE 1000
R_ZERO,
R_PC,
R_CCR,
+ R_EXR,
R_HARD_0,
R_LAST,
} reg_type;
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;
unsigned int regs[9];
int pc;
int ccr;
-
+ int exr;
unsigned char *memory;
unsigned char *eightbit;