Previous 15994 Revisions Next

r1012 Wednesday 19th September, 2007 at 17:55:23 UTC by Wilbert Pol
[PCE] Little fix to get the internal audio CD player working.
[src/mess/machine]pce.c

src/mess/machine/pce.c
r1011r1012
396396      for( i = 0; pce_cd.command_buffer[0] > pce_cd_commands[i].command_byte; i++ );
397397
398398      /* Check for unknown commands */
399//if ( pce_cd.command_buffer[0] != pce_cd_commands[i].command_byte ) {
400//printf("Unrecognized command: %02X\n", pce_cd.command_buffer[0] );
401//}
399402      assert( pce_cd.command_buffer[0] == pce_cd_commands[i].command_byte );
400403
401404      if ( pce_cd.command_buffer_index == pce_cd_commands[i].command_size ) {
r1011r1012
640643      break;
641644   case 0x03:   /* BRAM lock / CD status */
642645      /* bit 4 set when CD motor is on */
643      /* bit 2 set when less than half of the ADPCM data is remaining */
646      /* bit 2 set when less than half of the ADPCM data is remaining ?? */
644647      pce_cd.bram_locked = 1;
645648      pce_set_cd_bram();
646      data = 0;
649      data = data & 0x16;
647650      data |= ( pce_cd.cd_motor_on ? 0x10 : 0 );
651      pce_cd.regs[0x03] ^= 0x02;         /* TODO: get rid of this hack */
648652      break;
649653   case 0x04:   /* CD reset */
650654      break;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team