diff options
author | Aaron Giles <aaron@aarongiles.com> | 2012-09-19 19:48:09 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2012-09-19 19:48:09 +0000 |
commit | 621ac620ae1ca743a66bb52aaf5478da01c3bac6 (patch) | |
tree | 2743a87e9077417af7546970d1ea1cc3b8781a63 /src/mame/drivers/backfire.c | |
parent | 33c77e65bbd4513957f2ece623cee476cf439248 (diff) |
Since nobody checks for NULLs anyway, make
device_memory_interface::space() assert against NULL and
return a reference, and pushed references throughout all
address space usage in the system. Added a has_space()
method to check for those rare case when it is ambiguous.
[Aaron Giles]
Also reinstated the generic space and added fatal error
handlers if anyone tries to actually read/write from it.
Diffstat (limited to 'src/mame/drivers/backfire.c')
-rw-r--r-- | src/mame/drivers/backfire.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/backfire.c b/src/mame/drivers/backfire.c index 75f7c5d9e58..df69ec76310 100644 --- a/src/mame/drivers/backfire.c +++ b/src/mame/drivers/backfire.c @@ -714,7 +714,7 @@ DRIVER_INIT_MEMBER(backfire_state,backfire) deco156_decrypt(machine()); machine().device("maincpu")->set_clock_scale(4.0f); /* core timings aren't accurate */ descramble_sound(machine()); - machine().device("maincpu")->memory().space(AS_PROGRAM)->install_read_handler(0x0170018, 0x017001b, read32_delegate(FUNC(backfire_state::backfire_speedup_r), this)); + machine().device("maincpu")->memory().space(AS_PROGRAM).install_read_handler(0x0170018, 0x017001b, read32_delegate(FUNC(backfire_state::backfire_speedup_r), this)); } GAME( 1995, backfire, 0, backfire, backfire, backfire_state, backfire, ROT0, "Data East Corporation", "Backfire! (set 1)", GAME_SUPPORTS_SAVE ) |