Previous 15994 Revisions Next

r977 Sunday 16th September, 2007 at 10:38:39 UTC by Wilbert Pol
[PCE] Added cd interface stubs
[src/mess/drivers]pce.c
[src/mess/includes]pce.h
[src/mess/machine]pce.c

src/mess/includes/pce.h
r976r977
1919WRITE8_HANDLER ( pce_joystick_w );
2020 READ8_HANDLER ( pce_joystick_r );
2121
22#define PCE_FAST_CLOCK      7195090
22WRITE8_HANDLER( pce_cd_intf_w );
23READ8_HANDLER( pce_cd_intf_r );
2324
2425#define TG_16_JOY_SIG      0x00
2526#define PCE_JOY_SIG         0x40
src/mess/machine/pce.c
r976r977
175175#endif
176176   return (ret);
177177}
178
179WRITE8_HANDLER( pce_cd_intf_w ) {
180   switch( offset & 0x0F ) {
181   case 0x00:   /* CDC status */
182   case 0x01:   /* CDC command / status / data */
183   case 0x02:   /* ADPCM / CD control */
184   case 0x03:   /* BRAM lock / CD status */
185   case 0x04:   /* CD reset */
186   case 0x05:   /* Convert PCM data / PCM data */
187   case 0x06:   /* PCM data */
188   case 0x07:   /* BRAM unlock / CD status */
189   case 0x08:   /* ADPCM address (LSB) / CD data */
190   case 0x09:   /* ADPCM address (MSB) */
191   case 0x0A:   /* ADPCM RAM data port */
192   case 0x0B:   /* ADPCM DMA control */
193   case 0x0C:   /* ADPCM status */
194   case 0x0D:   /* ADPCM address control */
195   case 0x0E:   /* ADPCM playback rate */
196   case 0x0F:   /* ADPCM and CD audio fade timer */
197      break;
198   }
199}
200
201READ8_HANDLER( pce_cd_intf_r ) {
202   UINT8 data = 0xFF;
203
204   switch( offset & 0x0F ) {
205   case 0x00:   /* CDC status */
206   case 0x01:   /* CDC command / status / data */
207   case 0x02:   /* ADPCM / CD control */
208   case 0x03:   /* BRAM lock / CD status */
209   case 0x04:   /* CD reset */
210   case 0x05:   /* Convert PCM data / PCM data */
211   case 0x06:   /* PCM data */
212   case 0x07:   /* BRAM unlock / CD status */
213   case 0x08:   /* ADPCM address (LSB) / CD data */
214   case 0x09:   /* ADPCM address (MSB) */
215   case 0x0A:   /* ADPCM RAM data port */
216   case 0x0B:   /* ADPCM DMA control */
217   case 0x0C:   /* ADPCM status */
218   case 0x0D:   /* ADPCM address control */
219   case 0x0E:   /* ADPCM playback rate */
220   case 0x0F:   /* ADPCM and CD audio fade timer */
221      break;
222   }
223
224   return data;
225}
226
src/mess/drivers/pce.c
r976r977
5151   AM_RANGE( 0x1FEC00, 0x1FEFFF) AM_READWRITE( H6280_timer_r, H6280_timer_w )
5252   AM_RANGE( 0x1FF000, 0x1FF3FF) AM_READWRITE( pce_joystick_r, pce_joystick_w )
5353   AM_RANGE( 0x1FF400, 0x1FF7FF) AM_READWRITE( H6280_irq_status_r, H6280_irq_status_w )
54   AM_RANGE( 0x1FF800, 0x1FFBFF) AM_READWRITE( pce_cd_intf_r, pce_cd_intf_w )
5455ADDRESS_MAP_END
5556
5657ADDRESS_MAP_START( pce_io , ADDRESS_SPACE_IO, 8)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team