Previous 199869 Revisions Next

r26145 Wednesday 13th November, 2013 at 20:08:21 UTC by David Haywood
document another finding (nw)
[src/mame/machine]pgmprot_igs027a_type3.c

trunk/src/mame/machine/pgmprot_igs027a_type3.c
r26144r26145
3434 55857G is also used on the Cave single board PGM systems, but in those
3535 cases it behaves like the 55857E (pgmprot1.c)
3636
37
38
3937 ***********************************************************************/
4038
4139#include "emu.h"
r26144r26145
5048
5149READ32_MEMBER(pgm_arm_type3_state::svg_arm7_shareram_r )
5250{
53   return m_svg_shareram[m_svg_ram_sel & 1][offset];
51   UINT32 retdata = m_svg_shareram[m_svg_ram_sel & 1][offset];
52//   printf("(%08x) ARM7: shared read (bank %02x) offset - %08x retdata - %08x mask - %08x\n", space.device().safe_pc(), m_svg_ram_sel, offset*4, retdata, mem_mask );
53   return retdata;
5454}
5555
5656WRITE32_MEMBER(pgm_arm_type3_state::svg_arm7_shareram_w )
5757{
58//   printf("(%08x) ARM7: shared write (bank %02x) offset - %08x retdata - %08x mask - %08x\n", space.device().safe_pc(), m_svg_ram_sel, offset*4, data, mem_mask );
5859   COMBINE_DATA(&m_svg_shareram[m_svg_ram_sel & 1][offset]);
5960}
6061
r26144r26145
409410   temp16[(base) /2] = 0x105c; base += 2;
410411   temp16[(base) /2] = 0xE59F; base += 2;
411412
413   // this is the location of the region in the internal rom, for some reaosn Japan doesn't play attract music (original game feature? bad code flow?)
414   base = 0x3316;
415   temp16[(base) / 2] = 0x0005; base += 2;
412416
413417
414
415#if 1
418#if 0
416419   m_svg_ram_sel = 1;
417420
418421   for (int i = 0; i < 0x8000; i++)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team