Previous 15994 Revisions Next

r3362 Wednesday 1st October, 2008 at 18:27:27 UTC by Curt Coder
[Z80DART] Added channel parameter to RI function.
[src/mess/drivers]abc80x.c
[src/mess/machine]z80dart.c z80dart.h
[src/mess/video]abc806.c abc80x.c

src/mess/video/abc80x.c
r3361r3362
207207{
208208   const device_config *z80dart = device_list_find_by_tag(device->machine->config->devicelist, Z80DART, "z80dart");
209209
210   z80dart_set_ri(z80dart, vsync); // TODO: specify channel
210   z80dart_set_ri(z80dart, 1, vsync);
211211}
212212
213213static MC6845_UPDATE_ROW( abc800c_update_row )
r3361r3362
311311{
312312   const device_config *z80dart = device_list_find_by_tag(device->machine->config->devicelist, Z80DART, "z80dart");
313313
314   z80dart_set_ri(z80dart, vsync); // TODO: specify channel
314   z80dart_set_ri(z80dart, 1, vsync);
315315}
316316
317317/* MC6845 Interfaces */
src/mess/video/abc806.c
r3361r3362
344344      state->v50_addr = 0;
345345   }
346346 
347   z80dart_set_ri(z80dart, vsync); // TODO: specify channel
347   z80dart_set_ri(z80dart, 1, vsync);
348348}
349349 
350350/* MC6845 Interfaces */
src/mess/machine/z80dart.c
r3361r3362
550550    line
551551-------------------------------------------------*/
552552
553void z80dart_set_ri(const device_config *device, int state)
553void z80dart_set_ri(const device_config *device, int ch, int state)
554554{
555555   /* operate deferred */
556   timer_set(attotime_zero, (void *)device, (DART_RR0_RI << 8) + (state != 0) * 0x80, change_input_line);
556   timer_set(attotime_zero, (void *)device, (DART_RR0_RI << 8) + (state != 0) * 0x80 + ch, change_input_line);
557557}
558558
559559
src/mess/machine/z80dart.h
r3361r3362
6969int z80dart_get_rts(const device_config *device, int ch);
7070void z80dart_set_cts(const device_config *device, int ch, int state);
7171void z80dart_set_dcd(const device_config *device, int ch, int state);
72void z80dart_set_ri(const device_config *device, int state);
72void z80dart_set_ri(const device_config *device, int ch, int state);
7373void z80dart_receive_data(const device_config *device, int ch, UINT8 data);
7474
7575
src/mess/drivers/abc80x.c
r3361r3362
5656    TODO:
5757
5858   - ABC806 opcodes fetched from 0x7800-0x7fff reads/writes to 0-30K should address the video memory
59   - Z80DART has RI on both channels
6059   - rewrite Z80DART for bit level serial I/O
6160   - connect ABC77 keyboard to DART
6261    - COM port DIP switch
r3361r3362
294293   case 2:
295294      return z80dart_d_r(device, 1);
296295   case 3:
297      return z80dart_c_r(device, 0); // this gets ABC806 booting, should be z80dart_c_r(0, 1)
296      return z80dart_c_r(device, 1);
298297   }
299298
300299   return 0xff;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team