diff options
author | 2012-09-11 15:58:04 +0000 | |
---|---|---|
committer | 2012-09-11 15:58:04 +0000 | |
commit | 0aa418e85b7f7aad5088bc96c9da0c371b15b2f2 (patch) | |
tree | e13bbdf8a2ff82faf97aaa23351668d817628966 /src/mess/machine/mz700.c | |
parent | 6d8c3c9f2d5d30848751a12c2925fbe53ac8bfec (diff) |
In device_state_interface, rename state() to state_int()
and set_state() to set_state_int() for consistency.
Update all callers. Also add set_pc() helper and updated
all callers to use that instead of set_state_int(STATE_GENPC)
[Aaron Giles]
Added device_t::state() method to get the state interface.
Added redundant device_state_interface::state() method to
catch redundant use of it. [Aaron Giles]
Removed cpu_get_reg() and cpu_set_reg() macros in favor of
using the above methods. [Aaron Giles]
Diffstat (limited to 'src/mess/machine/mz700.c')
-rw-r--r-- | src/mess/machine/mz700.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mess/machine/mz700.c b/src/mess/machine/mz700.c index 601949f77c5..9bef533eb92 100644 --- a/src/mess/machine/mz700.c +++ b/src/mess/machine/mz700.c @@ -651,7 +651,7 @@ WRITE8_MEMBER(mz_state::mz800_ramdisk_w) /* port EB */ WRITE8_MEMBER(mz_state::mz800_ramaddr_w) { - m_mz800_ramaddr = (cpu_get_reg(machine().device("maincpu"), Z80_BC) & 0xff00) | (data & 0xff); + m_mz800_ramaddr = (machine().device("maincpu")->state().state_int(Z80_BC) & 0xff00) | (data & 0xff); LOG(1,"mz800_ramaddr_w",("%04X\n", m_mz800_ramaddr),machine()); } |