summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/hmcs40/hmcs40.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/hmcs40/hmcs40.h')
-rw-r--r--src/emu/cpu/hmcs40/hmcs40.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/emu/cpu/hmcs40/hmcs40.h b/src/emu/cpu/hmcs40/hmcs40.h
index 0ff2af82267..166688d8cbf 100644
--- a/src/emu/cpu/hmcs40/hmcs40.h
+++ b/src/emu/cpu/hmcs40/hmcs40.h
@@ -68,9 +68,11 @@ protected:
int m_datawidth;
int m_prgmask;
int m_datamask;
+ int m_xmask;
int m_stack_levels; // number of callstack levels
UINT16 m_stack[4]; // max 4
UINT16 m_op;
+ UINT16 m_arg;
int m_icount;
UINT16 m_pc; // Program Counter
@@ -87,6 +89,15 @@ protected:
devcb_read16 m_read_d;
devcb_write16 m_write_d;
+ // misc internal helpers
+ void increment_pc();
+ void fetch_arg();
+
+ UINT8 ram_r();
+ void ram_w(UINT8 data);
+ void pop_stack();
+ void push_stack();
+
// opcode handlers
void op_lab();
void op_lba();
@@ -104,7 +115,7 @@ protected:
void op_ayy();
void op_syy();
void op_xspx();
- void op_sxpy();
+ void op_xspy();
void op_xspxy();
void op_lam();