trunk/src/mame/machine/raiden2cop.c
| r242161 | r242162 | |
| 1485 | 1485 | */ |
| 1486 | 1486 | void raiden2cop_device::LEGACY_execute_d104(address_space &space, int offset, UINT16 data) |
| 1487 | 1487 | { |
| 1488 | | UINT8 *ROM = space.machine().root_device().memregion("maincpu")->base(); |
| 1489 | | UINT32 rom_addr = (m_cop_rom_addr_hi << 16 | m_cop_rom_addr_lo) & ~1; |
| 1490 | | UINT16 rom_data = (ROM[rom_addr + 0]) | (ROM[rom_addr + 1] << 8); |
| 1488 | UINT16 *ROM = (UINT16 *)space.machine().root_device().memregion("maincpu")->base(); |
| 1489 | UINT32 rom_addr = (m_cop_rom_addr_hi << 16 | m_cop_rom_addr_lo); |
| 1490 | UINT16 rom_data = ROM[rom_addr / 2]; |
| 1491 | 1491 | |
| 1492 | 1492 | /* writes to some unemulated COP registers, then puts the result in here, adding a parameter taken from ROM */ |
| 1493 | 1493 | //space.write_word(cop_regs[0]+(0x44 + offset * 4), rom_data); |