Previous 15994 Revisions Next

r12352 Wednesday 27th July, 2011 at 15:49:43 UTC by Angelo Salese
Initial work-around to get Madou Monogatari to enter into gameplay
[src/mame/drivers]saturn.c
[src/mame/machine]stvcd.c
[src/mame/video]stvvdp1.c

src/mame/machine/stvcd.c
r12351r12352
611611//              CDROM_LOG(("WW CR4: %04x\n", data))
612612      cr4 = data;
613613      if(cr1 != 0 && ((cr1 & 0xff00) != 0x5100) && 1)
614          printf("CD: command exec %02x %02x %02x %02x %02x (stat %04x)\n", hirqreg, cr1, cr2, cr3, cr4, cd_stat);
614          printf("CD: command exec %04x %04x %04x %04x %04x (stat %04x)\n", hirqreg, cr1, cr2, cr3, cr4, cd_stat);
615615
616616      if (!cdrom)
617617      {
r12351r12352
808808         }
809809         else   // play until the end of the disc
810810         {
811            UINT32 start_pos;
811            UINT32 start_pos,end_pos;
812812
813813            start_pos = ((cr1&0xff)<<16) | cr2;
814            end_pos = ((cr3&0xff)<<16) | cr4;
814815
815816            if(start_pos != 0xffffff)
816817            {
817               fadstoplay = (cdrom_get_track_start(cdrom, 0xaa)) - cd_curfad;
818               /* Madou Monogatari sets 0xff80xxxx as end position, needs investigation ... */
819               if(end_pos & 0x800000)
820                  fadstoplay = end_pos & 0xfffff;
821               else
822                  fadstoplay = (cdrom_get_track_start(cdrom, 0xaa)) - cd_curfad;
818823               printf("track mode %08x %08x\n",cd_curfad,fadstoplay);
819824            }
820825            else /* Galaxy Fight calls 10ff ffff ffff ffff, resume/restart previously called track */
src/mame/video/stvvdp1.c
r12351r12352
309309      case 0x0a/2:
310310         if ( VDP1_LOG ) logerror( "VDP1: Erase lower-right coord set: %08X\n", data );
311311         break;
312      case 0x0c/2:
313         if ( VDP1_LOG ) logerror( "VDP1: Draw forced termination register write: %08X\n", data );
314         break;
312315      default:
313316         printf("Warning: write to unknown VDP1 reg %08x %08x\n",offset*2,data);
314317         break;
src/mame/drivers/saturn.c
r12351r12352
18101810      else
18111811         state->m_scu.ist |= (IRQ_VBLANK_IN);
18121812
1813      video_update_vdp1(timer.machine());
1814
18131815      if(!(state->m_scu.ism & IRQ_VDP1_END))
18141816      {
18151817         device_set_input_line_and_vector(state->m_maincpu, 0x2, HOLD_LINE, 0x4d);
r12351r12352
18181820      else
18191821         state->m_scu.ist |= (IRQ_VDP1_END);
18201822
1821      video_update_vdp1(timer.machine());
18221823   }
18231824   else if((scanline % y_step) == 0 && scanline < vblank_line*y_step)
18241825   {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team