src/mess/machine/pce.c
| r9108 | r9109 | |
| 395 | 395 | |
| 396 | 396 | if (joystick_port_select <= 4) |
| 397 | 397 | { |
| 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. */ |
| 398 | 399 | if (joy_6b_packet[joystick_port_select]) // 6 buttons "header" (high 4 bits active low) + III, IV, V, VI |
| 399 | 400 | data = ((input_port_read(space->machine, joyname[BIT(joy_type, joystick_port_select)][joystick_port_select]) >> 8) & 0x0f); |
| 400 | 401 | else // directions + I, II, Run, Select |
| r9108 | r9109 | |
| 460 | 461 | { |
| 461 | 462 | static UINT8 msm_data; |
| 462 | 463 | |
| 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]); |
| 464 | 465 | |
| 465 | 466 | if ( pce_cd.msm_idle ) |
| 466 | 467 | return; |
| r9108 | r9109 | |
| 1073 | 1074 | if ( state == ASSERT_LINE ) |
| 1074 | 1075 | { |
| 1075 | 1076 | 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]); |
| 1077 | 1078 | } |
| 1078 | 1079 | else |
| 1079 | 1080 | { |
| r9108 | r9109 | |
| 1084 | 1085 | if ( state == ASSERT_LINE ) |
| 1085 | 1086 | { |
| 1086 | 1087 | 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]); |
| 1088 | 1089 | } |
| 1089 | 1090 | else |
| 1090 | 1091 | { |