Previous 15994 Revisions Next

r6924 Monday 4th January, 2010 at 22:44:44 UTC by Angelo Salese
[ACAN]: Fixed irq mask, allows Super Dragon Force to boot
[src/mess/drivers]supracan.c

src/mess/drivers/supracan.c
r6923r6924
363363static ADDRESS_MAP_START( supracan_sound_mem, ADDRESS_SPACE_PROGRAM, 8 )
364364   AM_RANGE( 0x0000, 0x03ff ) AM_RAM
365365   AM_RANGE( 0x0411, 0x0411 ) AM_READ(soundlatch_r)
366//   AM_RANGE( 0x0420, 0x0420 ) AM_READ(status)
367//   AM_RANGE( 0x0420, 0x0420 ) AM_WRITE(data)
368//   AM_RANGE( 0x0422, 0x0422 ) AM_WRITE(address)
366   AM_RANGE( 0x0420, 0x0420 ) AM_READNOP //AM_READ(status)
367   AM_RANGE( 0x0420, 0x0420 ) AM_WRITENOP //AM_WRITE(data)
368   AM_RANGE( 0x0422, 0x0422 ) AM_WRITENOP //AM_WRITE(address)
369369   AM_RANGE( 0x1000, 0xffff ) AM_RAM AM_BASE( &supracan_soundram )
370370ADDRESS_MAP_END
371371
r6923r6924
690690            // ...
691691         }
692692         break;
693      case 0x1c/2:
694         irq_mask = data & 1; //correct?
695         break;
696693      case 0x08/2:
697694         video_flags = data;
698695         break;
r6923r6924
726723      case ACAN_VID_XFORM16B:
727724         //printf( "%1.4f %1.4f %1.4f %1.4f\n", (INT32)((supracan_video_regs[ACAN_VID_XFORM32A_H] << 16) | supracan_video_regs[ACAN_VID_XFORM32A_L]) / 65536.0f, (INT32)((supracan_video_regs[ACAN_VID_XFORM32B_H] << 16) | supracan_video_regs[ACAN_VID_XFORM32B_L]) / 65536.0f, supracan_video_regs[ACAN_VID_XFORM16A] / 256.0f, supracan_video_regs[ACAN_VID_XFORM16B] / 256.0f);
728725         break;
726      case 0x1f0/2:
727         irq_mask = (data & 8) ? 0 : 1;
728         break;
729729      default:
730         verboselog(space->machine, 0, "supracan_video_w: Unknown register: %08x = %04x & %04x\n", 0xf00000 + (offset << 1), data, mem_mask);
730         //verboselog(space->machine, 0, "supracan_video_w: Unknown register: %08x = %04x & %04x\n", 0xf00000 + (offset << 1), data, mem_mask);
731731         break;
732732   }
733733   supracan_video_regs[offset] = data;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team