summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/system1.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-03-27 01:19:26 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-03-27 01:19:26 +0000
commit4b3aa02618def3caec417d71713ab6deb3c965d0 (patch)
tree547277cbe133e3dfec570f7ad6bfee5cc0f64153 /src/mame/video/system1.c
parentd89c4e7b8b522148ceb2d9a655211d74bac8eb84 (diff)
Added device_t::memory() to fetch a reference to the memory interface,
or assert if not present. Split address_space::install_[legacy_]handler into install_[legacy_]read_handler, install_[legacy_]write_handler, and install_[legacy_]readwrite_handler. Added variants of address_space handler installers which don't take mirror or mask parameters, since this is by far the most common case. Deprecated API cleanup. Simple search & replace: cpu_suspend ==> device_suspend cpu_resume ==> device_resume cpu_yield ==> device_yield cpu_spin ==> device_spin cpu_spinuntil_trigger ==> device_spin_until_trigger cpu_spinuntil_time ==> device_spin_until_time cpu_spinuntil_int ==> device_spin_until_interrupt cpu_eat_cycles ==> device_eat_cycles cpu_adjust_icount ==> device_adjust_icount cpu_triggerint ==> device_triggerint cpu_set_input_line ==> device_set_input_line cpu_set_input_line_vector ==> device_set_input_line_vector cpu_set_input_line_and_vector ==> device_set_input_line_and_vector cpu_set_irq_callback ==> device_set_irq_callback More complex changes: device_memory(device) ==> device->memory() device_get_space(device, spacenum) ==> device->memory().space(spacenum) cpu_get_address_space(cpu, spacenum) ==> cpu->memory().space(spacenum) cputag_get_address_space(mach, tag, spacenum) ==> mach->device("tag")->memory().space(spacenum) cputag_get_clock(mach, tag) ==> mach->device("tag")->unscaled_clock() cputag_set_clock(mach, tag, hz) ==> mach->device("tag")->set_unscaled_clock(hz) Some regex'es for the more prevalent cases above: S: cpu_get_address_space( *)\(( *)([^,]+)( *), * R: \3->memory().space\1\(\2 S: cputag_get_address_space( *)\(( *)([^,]+)( *),( *)([^,]+)( *), * R: \3->device\1\(\2\6\7\)->memory().space\1\(\2 S: cputag_get_clock( *)\(( *)([^,]+)( *),( *)([^ )]+) *\) R: \3->device\1\(\2\6\7\)->unscaled_clock\(\)
Diffstat (limited to 'src/mame/video/system1.c')
-rw-r--r--src/mame/video/system1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/video/system1.c b/src/mame/video/system1.c
index cd0b37b2af2..7cc6ca2f96c 100644
--- a/src/mame/video/system1.c
+++ b/src/mame/video/system1.c
@@ -249,7 +249,7 @@ INLINE void videoram_wait_states(cpu_device *cpu)
const UINT32 fixst_offset = 2 * 4;
UINT32 cycles_until_next_fixst = cpu_cycles_per_fixst - ((cpu->total_cycles() - fixst_offset) % cpu_cycles_per_fixst);
- cpu_adjust_icount(cpu, -cycles_until_next_fixst);
+ device_adjust_icount(cpu, -cycles_until_next_fixst);
}
READ8_HANDLER( system1_videoram_r )