Previous 15994 Revisions Next

r5640 Tuesday 8th September, 2009 at 09:02:08 UTC by Jonathan Gevaryahu
[dectalk] add another debug message
[src/mess/drivers]dectalk.c

src/mess/drivers/dectalk.c
r5639r5640
152152   return data;
153153}
154154
155static void duart_output(const device_config *device, UINT8 data)
156{
157   // todo: handle the RTS (bit 0) and DTR (bit 2) bits
158#ifdef SERIAL_TO_STDERR
159   fprintf(stderr, "RTS: %01X, DTR: %01X\n", data&1, (data&4)>>2);
160#endif
161}
162
155163static void duart_tx(const device_config *device, int channel, UINT8 data)
156164{
157165#ifdef SERIAL_TO_STDERR
r5639r5640
164172   duart_irq_handler,
165173   duart_tx,
166174   duart_input,
167   NULL
175   duart_output
168176};
169177
170178static struct

Previous 15994 Revisions Next


© 1998-2018 The MESS Team