Previous 15994 Revisions Next

r9109 Sunday 12th September, 2010 at 14:27:12 UTC by Angelo Salese
[PCE]: Minor clean-up
[src/mess/machine]pce.c

src/mess/machine/pce.c
r9108r9109
395395
396396   if (joystick_port_select <= 4)
397397   {
398      /* Note: six buttons pad just doesn't work with (almost?) every single 2-button-only games, it's really just an after-thought and it is like this on real HW. */
398399      if (joy_6b_packet[joystick_port_select])   // 6 buttons "header" (high 4 bits active low) + III, IV, V, VI
399400         data = ((input_port_read(space->machine, joyname[BIT(joy_type, joystick_port_select)][joystick_port_select]) >> 8) & 0x0f);
400401      else   // directions + I, II, Run, Select
r9108r9109
460461{
461462   static UINT8 msm_data;
462463
463   popmessage("%08x %08x %08x %02x %02x",pce_cd.msm_start_addr,pce_cd.msm_end_addr,pce_cd.msm_half_addr,pce_cd.regs[0x0c],pce_cd.regs[0x0d]);
464//   popmessage("%08x %08x %08x %02x %02x",pce_cd.msm_start_addr,pce_cd.msm_end_addr,pce_cd.msm_half_addr,pce_cd.regs[0x0c],pce_cd.regs[0x0d]);
464465
465466   if ( pce_cd.msm_idle )
466467      return;
r9108r9109
10731074      if ( state == ASSERT_LINE )
10741075      {
10751076         pce_cd.regs[0x03] |= PCE_CD_IRQ_SAMPLE_FULL_PLAY;
1076         printf("x %02x %02x\n",pce_cd.regs[0x02],pce_cd.regs[0x03]);
1077         //printf("x %02x %02x\n",pce_cd.regs[0x02],pce_cd.regs[0x03]);
10771078      }
10781079      else
10791080      {
r9108r9109
10841085      if ( state == ASSERT_LINE )
10851086      {
10861087         pce_cd.regs[0x03] |= PCE_CD_IRQ_SAMPLE_HALF_PLAY;
1087         printf("y %02x %02x\n",pce_cd.regs[0x02],pce_cd.regs[0x03]);
1088         //printf("y %02x %02x\n",pce_cd.regs[0x02],pce_cd.regs[0x03]);
10881089      }
10891090      else
10901091      {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team