Previous 199869 Revisions Next

r18255 Wednesday 3rd October, 2012 at 03:07:38 UTC by Angelo Salese
Cleaned up gfx ROM reading, nw
[src/mame/drivers]shangha3.c
[src/mame/includes]shangha3.h

trunk/src/mame/drivers/shangha3.c
r18254r18255
2121- attract mode tries to read at 0x80000-0xfffff area, returning 0 in there
2222  freezes the demo play for some frames (MT #00985). For now I've returned $ff,
2323  but needs HW tests to check out what lies in there (maybe a ROM mirror).
24- how to play screen is bogus, it basically doesn't follow the ball at all.
24- how to play screen is bogus, it basically loses sync pretty soon.
2525
2626***************************************************************************/
2727
r18254r18255
6363}
6464
6565
66READ16_MEMBER(shangha3_state::heberpop_gfxrom_r)
67{
68   UINT8 *ROM = memregion("gfx1")->base();
6966
70   return ROM[2*offset] | (ROM[2*offset+1] << 8);
71}
72
73
74
7567WRITE16_MEMBER(shangha3_state::shangha3_coinctrl_w)
7668{
7769   if (ACCESSING_BITS_8_15)
r18254r18255
157149   AM_RANGE(0x300000, 0x30ffff) AM_RAM AM_SHARE("ram")   /* gfx & work ram */
158150   AM_RANGE(0x340000, 0x340001) AM_WRITE(shangha3_flipscreen_w)
159151   AM_RANGE(0x360000, 0x360001) AM_WRITE(shangha3_gfxlist_addr_w)
160   AM_RANGE(0x800000, 0xb7ffff) AM_READ(heberpop_gfxrom_r)
152   AM_RANGE(0x800000, 0xb7ffff) AM_ROM AM_REGION("gfx1", 0)
161153ADDRESS_MAP_END
162154
163155static ADDRESS_MAP_START( blocken_map, AS_PROGRAM, 16, shangha3_state )
r18254r18255
173165   AM_RANGE(0x300000, 0x30ffff) AM_RAM AM_SHARE("ram")   /* gfx & work ram */
174166   AM_RANGE(0x340000, 0x340001) AM_WRITE(shangha3_flipscreen_w)
175167   AM_RANGE(0x360000, 0x360001) AM_WRITE(shangha3_gfxlist_addr_w)
176   AM_RANGE(0x800000, 0xb7ffff) AM_READ(heberpop_gfxrom_r)
168   AM_RANGE(0x800000, 0xb7ffff) AM_ROM AM_REGION("gfx1", 0)
177169ADDRESS_MAP_END
178170
179171
r18254r18255
616608   ROM_REGION( 0x10000, "audiocpu", 0 )
617609   ROM_LOAD( "hbpic34.bin",  0x0000, 0x10000, CRC(0cf056c6) SHA1(9992cd3879d9a57fcb784fc1e11d6b6d87e5a366) )
618610
619   ROM_REGION( 0x380000, "gfx1", 0 )   /* don't dispose, read during tests */
611   ROM_REGION( 0x380000, "gfx1", ROMREGION_ERASEFF )
620612   ROM_LOAD( "hbpic98.bin",  0x000000, 0x80000, CRC(a599100a) SHA1(f2e517256a42b3fa4a047bbe742d714f568cc117) )
621613   ROM_LOAD( "hbpic99.bin",  0x080000, 0x80000, CRC(fb8bb12f) SHA1(78c1fec1371d312e113d92803dd59acc36604989) )
622614   ROM_LOAD( "hbpic100.bin", 0x100000, 0x80000, CRC(05a0f765) SHA1(4f44cf367c3697eb6c245297c9d05160d7d94e24) )
r18254r18255
637629   ROM_REGION( 0x10000, "audiocpu", 0 )
638630   ROM_LOAD( "ic34.bin",     0x0000, 0x10000, CRC(23e446ff) SHA1(82c03b45b337696b0f8293c446544d7ee080d415) )
639631
640   ROM_REGION( 0x380000, "gfx1", 0 )   /* don't dispose, read during tests */
632   ROM_REGION( 0x380000, "gfx1", ROMREGION_ERASEFF )
641633   ROM_LOAD( "ic98j.bin",    0x000000, 0x80000, CRC(35dda273) SHA1(95850d12ca1557c14bc471ddf925aaf423313ff0) )
642634   ROM_LOAD( "ic99j.bin",    0x080000, 0x80000, CRC(ce43762b) SHA1(e1c51ea0b54b5febdee127619e15f1cda650cb4c) )
643635   /* 100000-1fffff empty */
trunk/src/mame/includes/shangha3.h
r18254r18255
1616   UINT8 m_drawmode_table[16];
1717   DECLARE_READ16_MEMBER(shangha3_prot_r);
1818   DECLARE_WRITE16_MEMBER(shangha3_prot_w);
19   DECLARE_READ16_MEMBER(heberpop_gfxrom_r);
2019   DECLARE_WRITE16_MEMBER(shangha3_coinctrl_w);
2120   DECLARE_WRITE16_MEMBER(heberpop_coinctrl_w);
2221   DECLARE_WRITE16_MEMBER(blocken_coinctrl_w);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team