diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-04-14 15:53:59 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-04-14 15:54:18 -0400 |
commit | 5e4432624851c319686171799c739504ab41489f (patch) | |
tree | 8c8a5ae39aefc52c54b652148f867518c12f8f15 | |
parent | 4d480c7aca2e2fda5ac494022b40f7813ea1f6c0 (diff) |
upd7725: Fix disassembly
-rw-r--r-- | src/devices/cpu/upd7725/dasm7725.cpp | 2 | ||||
-rw-r--r-- | src/mame/drivers/ssv.cpp | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/cpu/upd7725/dasm7725.cpp b/src/devices/cpu/upd7725/dasm7725.cpp index 06a9fdd3d16..4298b5d3930 100644 --- a/src/devices/cpu/upd7725/dasm7725.cpp +++ b/src/devices/cpu/upd7725/dasm7725.cpp @@ -19,7 +19,7 @@ u32 necdsp_disassembler::opcode_alignment() const offs_t necdsp_disassembler::disassemble(std::ostream &stream, offs_t pc, const data_buffer &opcodes, const data_buffer ¶ms) { - uint32_t opcode = opcodes.r32(pc); + uint32_t opcode = opcodes.r32(pc) >> 8; uint32_t type = (opcode >> 22); // printf("dasm: PC %x opcode %08x\n", pc, opcode); diff --git a/src/mame/drivers/ssv.cpp b/src/mame/drivers/ssv.cpp index 4427b778d1c..d5dd553a409 100644 --- a/src/mame/drivers/ssv.cpp +++ b/src/mame/drivers/ssv.cpp @@ -3148,8 +3148,8 @@ ROM_START( drifto94 ) ROM_REGION( 0x11000, "st010", 0) ROM_LOAD( "st010.bin", 0x000000, 0x011000, CRC(aa11ee2d) SHA1(cc1984e989cb94e3dcbb5f99e085b5414e18a017) ) - ROM_REGION( 0x10000, "dspprg", ROMREGION_ERASEFF) - ROM_REGION( 0x1000, "dspdata", ROMREGION_ERASEFF) + ROM_REGION32_BE( 0x10000, "dspprg", ROMREGION_ERASEFF) + ROM_REGION16_BE( 0x1000, "dspdata", ROMREGION_ERASEFF) ROM_END @@ -4337,8 +4337,8 @@ ROM_START( stmblade ) ROM_REGION( 0x11000, "st010", 0) ROM_LOAD( "st010.bin", 0x000000, 0x011000, CRC(aa11ee2d) SHA1(cc1984e989cb94e3dcbb5f99e085b5414e18a017) ) - ROM_REGION( 0x10000, "dspprg", ROMREGION_ERASEFF) - ROM_REGION( 0x1000, "dspdata", ROMREGION_ERASEFF) + ROM_REGION32_BE( 0x10000, "dspprg", ROMREGION_ERASEFF) + ROM_REGION16_BE( 0x1000, "dspdata", ROMREGION_ERASEFF) ROM_END ROM_START( stmbladej ) @@ -4366,8 +4366,8 @@ ROM_START( stmbladej ) ROM_REGION( 0x11000, "st010", 0) ROM_LOAD( "st010.bin", 0x000000, 0x011000, CRC(aa11ee2d) SHA1(cc1984e989cb94e3dcbb5f99e085b5414e18a017) ) - ROM_REGION( 0x10000, "dspprg", ROMREGION_ERASEFF) - ROM_REGION( 0x1000, "dspdata", ROMREGION_ERASEFF) + ROM_REGION32_BE( 0x10000, "dspprg", ROMREGION_ERASEFF) + ROM_REGION16_BE( 0x1000, "dspdata", ROMREGION_ERASEFF) ROM_END @@ -4441,8 +4441,8 @@ ROM_START( twineag2 ) ROM_REGION( 0x11000, "st010", 0) ROM_LOAD( "st010.bin", 0x000000, 0x011000, CRC(aa11ee2d) SHA1(cc1984e989cb94e3dcbb5f99e085b5414e18a017) ) - ROM_REGION( 0x10000, "dspprg", ROMREGION_ERASEFF) - ROM_REGION( 0x1000, "dspdata", ROMREGION_ERASEFF) + ROM_REGION32_BE( 0x10000, "dspprg", ROMREGION_ERASEFF) + ROM_REGION16_BE( 0x1000, "dspdata", ROMREGION_ERASEFF) ROM_END |