diff options
Diffstat (limited to 'src/devices/bus/megadrive/rom.cpp')
-rw-r--r-- | src/devices/bus/megadrive/rom.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/devices/bus/megadrive/rom.cpp b/src/devices/bus/megadrive/rom.cpp index 962033ab5c9..b508b67a036 100644 --- a/src/devices/bus/megadrive/rom.cpp +++ b/src/devices/bus/megadrive/rom.cpp @@ -628,47 +628,47 @@ READ16_MEMBER(md_rom_chinf3_device::read) 04dc10 chifi3, prot_r? 2800 04cefa chifi3, prot_r? 65262 */ - if (space.machine().device("maincpu")->safe_pc() == 0x01782) // makes 'VS' screen appear + if (machine().device("maincpu")->safe_pc() == 0x01782) // makes 'VS' screen appear { - retdat = space.machine().device("maincpu")->state().state_int(M68K_D3) & 0xff; + retdat = machine().device("maincpu")->state().state_int(M68K_D3) & 0xff; retdat <<= 8; return retdat; } - else if (space.machine().device("maincpu")->safe_pc() == 0x1c24) // background gfx etc. + else if (machine().device("maincpu")->safe_pc() == 0x1c24) // background gfx etc. { - retdat = space.machine().device("maincpu")->state().state_int(M68K_D3) & 0xff; + retdat = machine().device("maincpu")->state().state_int(M68K_D3) & 0xff; retdat <<= 8; return retdat; } - else if (space.machine().device("maincpu")->safe_pc() == 0x10c4a) // unknown + else if (machine().device("maincpu")->safe_pc() == 0x10c4a) // unknown { - return space.machine().rand(); + return machine().rand(); } - else if (space.machine().device("maincpu")->safe_pc() == 0x10c50) // unknown + else if (machine().device("maincpu")->safe_pc() == 0x10c50) // unknown { - return space.machine().rand(); + return machine().rand(); } - else if (space.machine().device("maincpu")->safe_pc() == 0x10c52) // relates to the game speed.. + else if (machine().device("maincpu")->safe_pc() == 0x10c52) // relates to the game speed.. { - retdat = space.machine().device("maincpu")->state().state_int(M68K_D4) & 0xff; + retdat = machine().device("maincpu")->state().state_int(M68K_D4) & 0xff; retdat <<= 8; return retdat; } - else if (space.machine().device("maincpu")->safe_pc() == 0x061ae) + else if (machine().device("maincpu")->safe_pc() == 0x061ae) { - retdat = space.machine().device("maincpu")->state().state_int(M68K_D3) & 0xff; + retdat = machine().device("maincpu")->state().state_int(M68K_D3) & 0xff; retdat <<= 8; return retdat; } - else if (space.machine().device("maincpu")->safe_pc() == 0x061b0) + else if (machine().device("maincpu")->safe_pc() == 0x061b0) { - retdat = space.machine().device("maincpu")->state().state_int(M68K_D3) & 0xff; + retdat = machine().device("maincpu")->state().state_int(M68K_D3) & 0xff; retdat <<= 8; return retdat; } else { - logerror("%06x chifi3, prot_r? %04x\n", space.machine().device("maincpu")->safe_pc(), offset); + logerror("%06x chifi3, prot_r? %04x\n", machine().device("maincpu")->safe_pc(), offset); } return 0; } @@ -1304,7 +1304,7 @@ READ16_MEMBER(md_rom_topf_device::read) if (offset == 0x6f5344/2) { if (space.device().safe_pc()==0x4C94E) - return space.machine().device("maincpu")->state().state_int((M68K_D0)) & 0xff; + return machine().device("maincpu")->state().state_int((M68K_D0)) & 0xff; else { m_latch++; |