diff options
author | 2008-12-06 19:47:14 +0000 | |
---|---|---|
committer | 2008-12-06 19:47:14 +0000 | |
commit | 490880419a0dc174c57fb66304dd16ee7d53f295 (patch) | |
tree | dc5399b29dd6be60333ce99b9360e8314ad9fae7 /src/emu/cpu/m6805/m6805.h | |
parent | 7f9c6cb81f2c50b3bbf4ebc02bce11369b72b444 (diff) |
Pointer-ified the m6805. [Andrew Gardner]
(Used cpustate naming convention. Moved iCount into state struct.)
(Tested with arkanoid, bootleg bubble bobble, etc.)
(Next cpu I'll look at is the ARM.)
Diffstat (limited to 'src/emu/cpu/m6805/m6805.h')
-rw-r--r-- | src/emu/cpu/m6805/m6805.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/m6805/m6805.h b/src/emu/cpu/m6805/m6805.h index cffb9feb459..5a2401ee606 100644 --- a/src/emu/cpu/m6805/m6805.h +++ b/src/emu/cpu/m6805/m6805.h @@ -63,26 +63,26 @@ extern CPU_GET_INFO( hd63705 ); /****************************************************************************/ /* Read a byte from given memory location */ /****************************************************************************/ -#define M6805_RDMEM(Addr) ((unsigned)memory_read_byte_8be(m6805.program, Addr)) +#define M6805_RDMEM(Addr) ((unsigned)memory_read_byte_8be(cpustate->program, Addr)) /****************************************************************************/ /* Write a byte to given memory location */ /****************************************************************************/ -#define M6805_WRMEM(Addr,Value) (memory_write_byte_8be(m6805.program, Addr,Value)) +#define M6805_WRMEM(Addr,Value) (memory_write_byte_8be(cpustate->program, Addr,Value)) /****************************************************************************/ /* M6805_RDOP() is identical to M6805_RDMEM() except it is used for reading */ /* opcodes. In case of system with memory mapped I/O, this function can be */ /* used to greatly speed up emulation */ /****************************************************************************/ -#define M6805_RDOP(Addr) ((unsigned)memory_decrypted_read_byte(m6805.program, Addr)) +#define M6805_RDOP(Addr) ((unsigned)memory_decrypted_read_byte(cpustate->program, Addr)) /****************************************************************************/ /* M6805_RDOP_ARG() is identical to M6805_RDOP() but it's used for reading */ /* opcode arguments. This difference can be used to support systems that */ /* use different encoding mechanisms for opcodes and opcode arguments */ /****************************************************************************/ -#define M6805_RDOP_ARG(Addr) ((unsigned)memory_raw_read_byte(m6805.program, Addr)) +#define M6805_RDOP_ARG(Addr) ((unsigned)memory_raw_read_byte(cpustate->program, Addr)) CPU_DISASSEMBLE( m6805 ); |