Previous 15994 Revisions Next

r7769 Thursday 8th April, 2010 at 20:00:43 UTC by Wilbert Pol
[SCV] Hooked up PC3 to the uPD1771 PCM pin.
[src/mess/audio]upd1771.c upd1771.h
[src/mess/drivers]scv.c

src/mess/audio/upd1771.c
r7768r7769
106106    UINT8    expected_bytes;
107107
108108    UINT8   state;//0:silence, 1 noise, 2 tone
109   UINT8   pcm;
109110
110111    //tone
111112    UINT8    t_timbre; //[0;  7]
r7768r7769
232233}
233234
234235
236WRITE_LINE_DEVICE_HANDLER( upd1771_pcm_w )
237{
238   upd1771_state *upd1771 = get_safe_token( device );
239
240   logerror( "upd1771_pcm_w: state = %d\n", state );
241   upd1771->pcm = state ? 1 : 0;
242}
243
244
235245static STREAM_UPDATE( upd1771c_update )
236246{
237247    upd1771_state *state = get_safe_token( device );
r7768r7769
331341
332342    state->index = 0;
333343    state->expected_bytes = 0;
344   state->pcm = 0;
334345}
335346
336347
src/mess/audio/upd1771.h
r7768r7769
3333
3434DEVICE_GET_INFO( upd1771c );
3535WRITE8_DEVICE_HANDLER( upd1771_w );
36WRITE_LINE_DEVICE_HANDLER( upd1771_pcm_w );
3637
3738#endif /* __UPD1771_H__ */
src/mess/drivers/scv.c
r7768r7769
309309   state->portc = data;
310310
311311   scv_set_banks( space->machine );
312   upd1771_pcm_w( devtag_get_device( space->machine, "upd1771c" ), state->portc & 0x08 );
312313}
313314
314315

Previous 15994 Revisions Next


© 1998-2018 The MESS Team