Previous 199869 Revisions Next

r21298 Friday 22nd February, 2013 at 04:04:25 UTC by Angelo Salese
Hook-up proper VDP1 fb erase via coordinates, fixes Gokujou Parodius / Sexy Parodius
[src/emu/machine]stvcd.c
[src/emu/video]stvvdp1.c stvvdp2.c

trunk/src/emu/video/stvvdp2.c
r21297r21298
44724472      /* Magical Drop III 0x200 -> color calculation window */
44734473      /* Ide Yousuke Meijin No Shin Jissen Mahjong 0x0303 */
44744474      /* Decathlete 0x088 */
4475      if(STV_VDP2_WCTLD & 0x2000)
4476         popmessage("Special window enabled %04x, contact MAMEdev",STV_VDP2_WCTLD);
4475      /* Sexy Parodius 0x2300 */
4476//      if(STV_VDP2_WCTLD & 0x2000)
4477//         popmessage("Special window enabled %04x, contact MAMEdev",STV_VDP2_WCTLD);
44774478
44784479      /* Shining Force III, After Burner 2 (doesn't make a proper use tho?) */
44794480      /* Layer Section */
trunk/src/emu/video/stvvdp1.c
r21297r21298
182182
183183void saturn_state::stv_clear_framebuffer( int which_framebuffer )
184184{
185   int start_x, end_x, start_y, end_y;
186
187   /*
188   TODO: needs to check in Hi-Res mode
189   */
190   start_x = STV_VDP1_EWLR_X1 * 8;
191   start_y = STV_VDP1_EWLR_Y1;
192   end_x = STV_VDP1_EWRR_X3 * 8;
193   end_y = STV_VDP1_EWRR_Y3+1;
194//   popmessage("%d %d %d %d",STV_VDP1_EWLR_X1,STV_VDP1_EWLR_Y1,STV_VDP1_EWRR_X3,STV_VDP1_EWRR_Y3);
195
196   for(int y=start_y;y<end_y;y++)
197      for(int x=start_x;x<end_x;x++)
198         m_vdp1.framebuffer[ which_framebuffer ][(x+y*512)] = m_vdp1.ewdr;
199
185200   if ( VDP1_LOG ) logerror( "Clearing %d framebuffer\n", m_vdp1.framebuffer_current_draw );
186   memset( m_vdp1.framebuffer[ which_framebuffer ], m_vdp1.ewdr, 1024 * 256 * sizeof(UINT16) * 2 );
201//   memset( m_vdp1.framebuffer[ which_framebuffer ], m_vdp1.ewdr, 1024 * 256 * sizeof(UINT16) * 2 );
187202}
188203
189204
trunk/src/emu/machine/stvcd.c
r21297r21298
688688            cr2 = 0;
689689            cr3 = 0;
690690            cr4 = 0;
691
692
693            if(machine().input().code_pressed(KEYCODE_Z))
694            {
695               cr1 = cd_stat | (machine().rand() & 0xff);
696               cr2 = machine().rand();
697               cr3 = machine().rand();
698               cr4 = machine().rand();
699            }
700
691701            hirqreg |= (CMOK|ESEL);
692702         }
693703         break;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team