From 31dee56a86d0ff48a6b57dc3193d2c5ba2283d84 Mon Sep 17 00:00:00 2001 From: cam900 Date: Sun, 14 Apr 2024 01:05:08 +0900 Subject: kaneko/sandscrp.cpp: Suppress side effects for debugger reads of sound latches. (#12240) Also give sprite ROM region a more meaningful name. --- src/mame/kaneko/sandscrp.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/mame/kaneko/sandscrp.cpp b/src/mame/kaneko/sandscrp.cpp index 7518cb0ec79..06bd24a7f91 100644 --- a/src/mame/kaneko/sandscrp.cpp +++ b/src/mame/kaneko/sandscrp.cpp @@ -258,7 +258,8 @@ void sandscrp_state::latchstatus_68k_w(u8 data) template u8 sandscrp_state::soundlatch_r() { - m_latch_full[Latch] = false; + if (!machine().side_effects_disabled()) + m_latch_full[Latch] = false; return m_soundlatch[Latch]->read(); } @@ -421,7 +422,7 @@ INPUT_PORTS_END static GFXDECODE_START( gfx_sandscrp_spr ) - GFXDECODE_ENTRY( "gfx1", 0, gfx_8x8x4_row_2x2_group_packed_msb, 0x000, 0x10 ) // [0] Sprites + GFXDECODE_ENTRY( "sprites", 0, gfx_8x8x4_row_2x2_group_packed_msb, 0x000, 0x10 ) // [0] Sprites GFXDECODE_END @@ -497,7 +498,7 @@ ROM_START( sandscrp ) /* Z03VA-003 PCB */ ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 Code */ ROM_LOAD( "8.ic51", 0x00000, 0x20000, CRC(6f3e9db1) SHA1(06a04fa17f44319986913bff70433510c89e38f1) ) - ROM_REGION( 0x100000, "gfx1", 0 ) /* Sprites */ + ROM_REGION( 0x100000, "sprites", 0 ) ROM_LOAD( "5.ic16", 0x000000, 0x080000, CRC(9bb675f6) SHA1(c3f6768cfd99a0e19ca2224fff9aa4e27ec0da24) ) ROM_LOAD( "6.ic17", 0x080000, 0x080000, CRC(7df2f219) SHA1(e2a59e201bfededa92d6c86f8dc1b212527ef66f) ) @@ -517,7 +518,7 @@ ROM_START( sandscrpa ) /* Z03VA-003 PCB, earlier program version */ ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 Code */ ROM_LOAD( "8.ic51", 0x00000, 0x20000, CRC(6f3e9db1) SHA1(06a04fa17f44319986913bff70433510c89e38f1) ) - ROM_REGION( 0x100000, "gfx1", 0 ) /* Sprites */ + ROM_REGION( 0x100000, "sprites", 0 ) ROM_LOAD( "5.ic16", 0x000000, 0x080000, CRC(9bb675f6) SHA1(c3f6768cfd99a0e19ca2224fff9aa4e27ec0da24) ) ROM_LOAD( "6.ic17", 0x080000, 0x080000, CRC(7df2f219) SHA1(e2a59e201bfededa92d6c86f8dc1b212527ef66f) ) @@ -539,7 +540,7 @@ ROM_START( sandscrpb ) /* Different rev PCB */ ROM_REGION( 0x20000, "audiocpu", 0 ) /* Z80 Code */ ROM_LOAD( "8.ic51", 0x00000, 0x20000, CRC(6f3e9db1) SHA1(06a04fa17f44319986913bff70433510c89e38f1) ) - ROM_REGION( 0x100000, "gfx1", 0 ) /* Sprites */ + ROM_REGION( 0x100000, "sprites", 0 ) ROM_LOAD( "ss502.ic16", 0x000000, 0x100000, CRC(d8012ebb) SHA1(975bbb3b57a09e41d2257d4fa3a64097144de554) ) ROM_REGION( 0x100000, "view2", 0 ) /* Layers */ -- cgit v1.2.3