trunk/src/mame/machine/pgmprot_igs027a_type3.c
| r26144 | r26145 | |
| 34 | 34 | 55857G is also used on the Cave single board PGM systems, but in those |
| 35 | 35 | cases it behaves like the 55857E (pgmprot1.c) |
| 36 | 36 | |
| 37 | | |
| 38 | | |
| 39 | 37 | ***********************************************************************/ |
| 40 | 38 | |
| 41 | 39 | #include "emu.h" |
| r26144 | r26145 | |
| 50 | 48 | |
| 51 | 49 | READ32_MEMBER(pgm_arm_type3_state::svg_arm7_shareram_r ) |
| 52 | 50 | { |
| 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; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | WRITE32_MEMBER(pgm_arm_type3_state::svg_arm7_shareram_w ) |
| 57 | 57 | { |
| 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 ); |
| 58 | 59 | COMBINE_DATA(&m_svg_shareram[m_svg_ram_sel & 1][offset]); |
| 59 | 60 | } |
| 60 | 61 | |
| r26144 | r26145 | |
| 409 | 410 | temp16[(base) /2] = 0x105c; base += 2; |
| 410 | 411 | temp16[(base) /2] = 0xE59F; base += 2; |
| 411 | 412 | |
| 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; |
| 412 | 416 | |
| 413 | 417 | |
| 414 | | |
| 415 | | #if 1 |
| 418 | #if 0 |
| 416 | 419 | m_svg_ram_sel = 1; |
| 417 | 420 | |
| 418 | 421 | for (int i = 0; i < 0x8000; i++) |