trunk/src/mame/drivers/saturn.c
| r20965 | r20966 | |
| 301 | 301 | res = m_scu.ism; |
| 302 | 302 | break; |
| 303 | 303 | case 0xa4/4: |
| 304 | | if(LOG_SCU && !space.debugger_access()) logerror("(PC=%08x) IRQ status reg read %08x MASK=%08x\n",space.device().safe_pc(),mem_mask,m_scu_regs[0xa0/4]); |
| 305 | | res = m_scu.ist; |
| 304 | if(LOG_SCU && !space.debugger_access()) logerror("(PC=%08x) IRQ status reg read MASK=%08x IST=%08x | ISM=%08x\n",space.device().safe_pc(),mem_mask,m_scu.ist,m_scu.ism); |
| 305 | /* TODO: Bug! trips an HW fault. Basically, it tries to read the IST bit 1 with that irq enabled. */ |
| 306 | res = m_scu.ist | ~m_scu.ism; |
| 307 | // res = m_scu.ist; |
| 306 | 308 | break; |
| 307 | 309 | case 0xc8/4: |
| 308 | 310 | if(LOG_SCU && !space.debugger_access()) logerror("(PC=%08x) SCU version reg read\n",space.device().safe_pc()); |
| r20965 | r20966 | |
| 769 | 771 | return cart_ram_header[m_cart_type]; |
| 770 | 772 | } |
| 771 | 773 | |
| 774 | /* TODO: Bug! accesses this one, if returning 0 the SH-2 hard-crashes. Might be an actual bug with the CD block. */ |
| 775 | READ32_HANDLER( saturn_state::abus_dummy_r ) |
| 776 | { |
| 777 | return -1; |
| 778 | } |
| 779 | |
| 772 | 780 | static ADDRESS_MAP_START( saturn_mem, AS_PROGRAM, 32, saturn_state ) |
| 773 | 781 | AM_RANGE(0x00000000, 0x0007ffff) AM_ROM AM_SHARE("share6") // bios |
| 774 | 782 | AM_RANGE(0x00100000, 0x0010007f) AM_READWRITE8(saturn_SMPC_r, saturn_SMPC_w,0xffffffff) |
| r20965 | r20966 | |
| 780 | 788 | // AM_RANGE(0x02400000, 0x027fffff) AM_RAM //cart RAM area, dynamically allocated |
| 781 | 789 | // AM_RANGE(0x04000000, 0x047fffff) AM_RAM //backup RAM area, dynamically allocated |
| 782 | 790 | AM_RANGE(0x04fffffc, 0x04ffffff) AM_READ8(saturn_cart_type_r,0x000000ff) |
| 791 | AM_RANGE(0x05000000, 0x057fffff) AM_READ(abus_dummy_r) |
| 783 | 792 | AM_RANGE(0x05800000, 0x0589ffff) AM_READWRITE(stvcd_r, stvcd_w) |
| 784 | 793 | /* Sound */ |
| 785 | 794 | AM_RANGE(0x05a00000, 0x05a7ffff) AM_READWRITE16(saturn_soundram_r, saturn_soundram_w,0xffffffff) |
trunk/src/emu/video/stvvdp2.c
| r20965 | r20966 | |
| 4576 | 4576 | |
| 4577 | 4577 | /* Langrisser III bit 3 normal, bit 1 during battle field */ |
| 4578 | 4578 | /* Metal Slug bit 0 during gameplay */ |
| 4579 | | if(STV_VDP2_SFSEL & ~0xb) |
| 4579 | /* Bug! Sega Away Logo onward 0x470 */ |
| 4580 | if(STV_VDP2_SFSEL & ~0x47b) |
| 4580 | 4581 | popmessage("Special Function Code Select enable %04x %04x, contact MAMEdev",STV_VDP2_SFSEL,STV_VDP2_SFCODE); |
| 4581 | 4582 | |
| 4582 | 4583 | /* Albert Odyssey Gaiden 0x0001 */ |
| r20965 | r20966 | |
| 4607 | 4608 | /* Find Love 0x4400 */ |
| 4608 | 4609 | /* Dragon Ball Z 0x3800 - 0x2c00 */ |
| 4609 | 4610 | /* Assault Suit Leynos 2 0x0200*/ |
| 4610 | | if(STV_VDP2_SFPRMD & ~0x7f75) |
| 4611 | /* Bug! 0x8800 */ |
| 4612 | if(STV_VDP2_SFPRMD & ~0xff75) |
| 4611 | 4613 | popmessage("Special Priority Mode enabled %04x, contact MAMEdev",STV_VDP2_SFPRMD); |
| 4612 | 4614 | } |
| 4613 | 4615 | } |