Previous 199869 Revisions Next

r32740 Tuesday 14th October, 2014 at 17:26:57 UTC by Ville Linde
model3.c: experimenting with interrupts (nw)
[src/mame/drivers]model3.c

trunk/src/mame/drivers/model3.c
r32739r32740
2626    vs29815 - massive memory trashing and page faults
2727
2828    vs2 - works
29    harley - works, massive slowdown ingame
29    harley - works, wrong textures in many places, correct textures uploaded when the game ends
3030    skichamp - boots after skipping the drive board errors, massive slowdowns
3131    srally2/sraly2dx - works
3232    von2/von254g - works
r32739r32740
4242    dirtdvls/dirtdvla - works
4343    swtrilgy -
4444    swtrilga -
45    magtruck - works
45    magtruck - works, broken FPU values in matrices during 2nd part of attract mode (cpu core bug?)
4646    eca/ecax - cabinet network error
4747
4848===================================================================================
r32739r32740
54005400    0x04: Video (unknown -- has callback hook in scud)
54015401    0x02: Video (VBLANK start?)
54025402    0x01: Video (unused?)
5403
5404   IRQ 0x08 and 0x04 directly affect the game speed in magtruck, once per scanline seems fast enough
5405   Un-syncing the interrupts breaks the progress bar in magtruck
54035406*/
54045407TIMER_DEVICE_CALLBACK_MEMBER(model3_state::model3_interrupt)
54055408{
54065409   int scanline = param;
54075410
54085411   if (scanline == 384)
5412   {
54095413      set_irq_line(0x02, ASSERT_LINE);
5414   }
54105415   else
5411      set_irq_line(0x0d, ASSERT_LINE);
5416   {
5417      //if ((scanline & 0x1) == 0)
5418         set_irq_line(0x0c, ASSERT_LINE);
5419   }
54125420}
54135421
54145422static MACHINE_CONFIG_START( model3_10, model3_state )
r32739r32740
58345842
58355843DRIVER_INIT_MEMBER(model3_state,swtrilgy)
58365844{
5837   //UINT32 *rom = (UINT32*)memregion("user1")->base();
5845   UINT32 *rom = (UINT32*)memregion("user1")->base();
58385846   DRIVER_INIT_CALL(model3_20);
58395847
5840   /*
5841   rom[(0xf0e48^4)/4] = 0x60000000;
5842   rom[(0x043dc^4)/4] = 0x48000090;
5843   rom[(0x029a0^4)/4] = 0x60000000;
5844   rom[(0x02a0c^4)/4] = 0x60000000;
5845   */
5848   // Unemulated JTAG stuff, see srally2
5849   rom[(0xf776c^4)/4] = 0x60000000;
5850   rom[(0xf7770^4)/4] = 0x60000000;
5851   rom[(0xf7774^4)/4] = 0x60000000;
5852
5853   rom[(0x043dc^4)/4] = 0x48000090;      // skip force feedback setup
5854   rom[(0xf6e44^4)/4] = 0x60000000;
58465855}
58475856
58485857DRIVER_INIT_MEMBER(model3_state,swtrilga)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team