Previous 15994 Revisions Next

r11231 Monday 18th April, 2011 at 12:56:12 UTC by Curt Coder
Refactored the MOS6525 TPI to use device callbacks. (no whatsnew)
[src/mess/drivers]amiga.c cbmb.c
[src/mess/includes]cbmb.h
[src/mess/machine]6525tpi.c 6525tpi.h amigacd.c amigacd.h c1551.c cbmb.c

src/mess/machine/cbmb.c
r11230r11231
236236   return data ^0xff;
237237}
238238
239void cbmb_irq( device_t *device, int level )
239WRITE_LINE_DEVICE_HANDLER( cbmb_irq )
240240{
241   cbmb_state *state = device->machine().driver_data<cbmb_state>();
242   if (level != state->m_old_level)
241   cbmb_state *driver_state = device->machine().driver_data<cbmb_state>();
242   if (state != driver_state->m_old_level)
243243   {
244      DBG_LOG(device->machine(), 3, "mos6509", ("irq %s\n", level ? "start" : "end"));
245      cputag_set_input_line(device->machine(), "maincpu", M6502_IRQ_LINE, level);
246      state->m_old_level = level;
244      DBG_LOG(device->machine(), 3, "mos6509", ("irq %s\n", state ? "start" : "end"));
245      cputag_set_input_line(device->machine(), "maincpu", M6502_IRQ_LINE, state);
246      driver_state->m_old_level = state;
247247   }
248248}
249249
r11230r11231
271271const mos6526_interface cbmb_cia =
272272{
273273   60,
274   DEVCB_DEVICE_LINE("tpi6525_0", tpi6525_irq2_level),
274   DEVCB_DEVICE_LINE("tpi6525_0", tpi6525_i2_w),
275275   DEVCB_NULL,   /* pc_func */
276276   DEVCB_NULL,
277277   DEVCB_NULL,
r11230r11231
302302   return state->m_colorram[offset & 0x3ff];
303303}
304304
305WRITE8_DEVICE_HANDLER( cbmb_change_font )
305WRITE_LINE_DEVICE_HANDLER( cbmb_change_font )
306306{
307   cbmb_vh_set_font(device->machine(), data);
307   cbmb_vh_set_font(device->machine(), state);
308308}
309309
310310static void cbmb_common_driver_init( running_machine &machine )
r11230r11231
390390   int controller2 = input_port_read(machine, "CTRLSEL") & 0x70;
391391#endif
392392
393   tpi6525_irq0_level(tpi_0, state->m_irq_level);
393   tpi6525_i0_w(tpi_0, state->m_irq_level);
394394   state->m_irq_level = !state->m_irq_level;
395395   if (state->m_irq_level) return ;
396396
src/mess/machine/c1551.c
r11230r11231
499499
500500static const tpi6525_interface tpi0_intf =
501501{
502   tpi0_pa_r,
503   tpi0_pb_r,
504   tpi0_pc_r,
505   tpi0_pa_w,
506   tpi0_pb_w,
507   tpi0_pc_w,
508   NULL,
509   NULL,
510   NULL
502   DEVCB_NULL,
503   DEVCB_HANDLER(tpi0_pa_r),
504   DEVCB_HANDLER(tpi0_pa_w),
505   DEVCB_HANDLER(tpi0_pb_r),
506   DEVCB_HANDLER(tpi0_pb_w),
507   DEVCB_HANDLER(tpi0_pc_r),
508   DEVCB_HANDLER(tpi0_pc_w),
509   DEVCB_NULL,
510   DEVCB_NULL
511511};
512512
513513/*-------------------------------------------------
r11230r11231
632632
633633static const tpi6525_interface tpi1_intf =
634634{
635   tpi1_pa_r,
636   tpi1_pb_r,
637   tpi1_pc_r,
638   tpi1_pa_w,
639   NULL,
640   tpi1_pc_w,
641   NULL,
642   NULL,
643   NULL
635   DEVCB_NULL,
636   DEVCB_HANDLER(tpi1_pa_r),
637   DEVCB_HANDLER(tpi1_pa_w),
638   DEVCB_HANDLER(tpi1_pb_r),
639   DEVCB_NULL,
640   DEVCB_HANDLER(tpi1_pc_r),
641   DEVCB_HANDLER(tpi1_pc_w),
642   DEVCB_NULL,
643   DEVCB_NULL
644644};
645645
646646/*-------------------------------------------------
src/mess/machine/amigacd.c
r11230r11231
465465   }
466466}
467467
468void amigacd_tpi6525_irq(device_t *device, int level)
468static void amigacd_tpi6525_irq_trampoline(device_t *device, int level)
469469{
470470   amiga_state *state = device->machine().driver_data<amiga_state>();
471471   LOG(( "TPI6525 Interrupt: level = %d\n", level ));
r11230r11231
484484   }
485485}
486486
487WRITE_LINE_DEVICE_HANDLER( amigacd_tpi6525_irq )
488{
489   amigacd_tpi6525_irq_trampoline(device, state);
490}
491
487492static void cdrom_status_enabled( running_machine &machine, int level )
488493{
489494   device_t *tpi = machine.device("tpi6525");
490495
491496   /* PC3 on the 6525 */
492   tpi6525_irq3_level(tpi, level);
497   tpi6525_i3_w(tpi, level);
493498}
494499
495500static void cdrom_status_change( running_machine &machine, int level )
r11230r11231
500505   level = level ? 0 : 1;
501506
502507   /* PC2 on the 6525 */
503   tpi6525_irq2_level(tpi, level);
508   tpi6525_i2_w(tpi, level);
504509}
505510
506511static void cdrom_subcode_ready( running_machine &machine, int level )
r11230r11231
508513   device_t *tpi = machine.device("tpi6525");
509514
510515   /* PC1 on the 6525 */
511   tpi6525_irq1_level(tpi, level);
516   tpi6525_i1_w(tpi, level);
512517}
513518
514519MACHINE_START( amigacd )
src/mess/machine/amigacd.h
r11230r11231
88/* 6525tpi */
99READ8_DEVICE_HANDLER( amigacd_tpi6525_portc_r );
1010WRITE8_DEVICE_HANDLER( amigacd_tpi6525_portb_w );
11void amigacd_tpi6525_irq(device_t *device, int level);
11WRITE_LINE_DEVICE_HANDLER( amigacd_tpi6525_irq );
1212
1313
1414#endif /* __AMIGACD_H__ */
src/mess/machine/6525tpi.c
r11230r11231
109109typedef struct _tpi6525_state tpi6525_state;
110110struct _tpi6525_state
111111{
112   const tpi6525_interface *intf;
113
112   devcb_resolved_write_line out_irq_func;
113   devcb_resolved_read8 in_pa_func;
114   devcb_resolved_write8 out_pa_func;
115   devcb_resolved_read8 in_pb_func;
116   devcb_resolved_write8 out_pb_func;
117   devcb_resolved_read8 in_pc_func;
118   devcb_resolved_write8 out_pc_func;
119   devcb_resolved_write_line out_ca_func;
120   devcb_resolved_write_line out_cb_func;   
121   
114122   UINT8 port_a, ddr_a, in_a;
115123   UINT8 port_b, ddr_b, in_b;
116124   UINT8 port_c, ddr_c, in_c;
r11230r11231
144152static DEVICE_START( tpi6525 )
145153{
146154   tpi6525_state *tpi6525 = get_safe_token(device);
155   const tpi6525_interface *intf = (const tpi6525_interface*)device->baseconfig().static_config();
147156
157   // resolve callbacks
158   devcb_resolve_write_line(&tpi6525->out_irq_func, &intf->out_irq_func, device);
159   devcb_resolve_read8(&tpi6525->in_pa_func, &intf->in_pa_func, device);
160   devcb_resolve_write8(&tpi6525->out_pa_func, &intf->out_pa_func, device);
161   devcb_resolve_read8(&tpi6525->in_pb_func, &intf->in_pb_func, device);
162   devcb_resolve_write8(&tpi6525->out_pb_func, &intf->out_pb_func, device);
163   devcb_resolve_read8(&tpi6525->in_pc_func, &intf->in_pc_func, device);
164   devcb_resolve_write8(&tpi6525->out_pc_func, &intf->out_pc_func, device);
165   devcb_resolve_write_line(&tpi6525->out_ca_func, &intf->out_ca_func, device);
166   devcb_resolve_write_line(&tpi6525->out_cb_func, &intf->out_cb_func, device);
167
148168   /* verify that we have an interface assigned */
149169   assert(device->baseconfig().static_config() != NULL);
150170
r11230r11231
174194   /* clear old values */
175195   memset(tpi6525, 0, sizeof(*tpi6525));
176196
177   /* copy interface pointer */
178   tpi6525->intf = (const tpi6525_interface*)device->baseconfig().static_config();
179
180197   /* setup some initial values */
181198   tpi6525->in_a = 0xff;
182199   tpi6525->in_b = 0xff;
r11230r11231
220237
221238      DBG_LOG(device->machine(), 3, "tpi6525", ("%s set interrupt\n", device->tag()));
222239
223      if (tpi6525->intf->irq_func != NULL)
224         tpi6525->intf->irq_func(device, tpi6525->interrupt_level);
240      devcb_call_write_line(&tpi6525->out_irq_func, tpi6525->interrupt_level);
225241   }
226242}
227243
r11230r11231
236252
237253      DBG_LOG(device->machine(), 3, "tpi6525", ("%s clear interrupt\n", device->tag()));
238254
239      if (tpi6525->intf->irq_func != NULL)
240         tpi6525->intf->irq_func(device, tpi6525->interrupt_level);
255      devcb_call_write_line(&tpi6525->out_irq_func, tpi6525->interrupt_level);
241256   }
242257}
243258
244259
245void tpi6525_irq0_level(device_t *device, int level)
260WRITE_LINE_DEVICE_HANDLER( tpi6525_i0_w )
246261{
247262   tpi6525_state *tpi6525 = get_safe_token(device);
248263
249   if (INTERRUPT_MODE && (level != tpi6525->irq_level[0]))
264   if (INTERRUPT_MODE && (state != tpi6525->irq_level[0]))
250265   {
251      tpi6525->irq_level[0] = level;
266      tpi6525->irq_level[0] = state;
252267
253      if ((level == 0) && !(tpi6525->air & 1) && (tpi6525->ddr_c & 1))
268      if ((state == 0) && !(tpi6525->air & 1) && (tpi6525->ddr_c & 1))
254269      {
255270         tpi6525->air |= 1;
256271         tpi6525_set_interrupt(device);
r11230r11231
259274}
260275
261276
262void tpi6525_irq1_level(device_t *device, int level)
277WRITE_LINE_DEVICE_HANDLER( tpi6525_i1_w )
263278{
264279   tpi6525_state *tpi6525 = get_safe_token(device);
265280
266   if (INTERRUPT_MODE && (level != tpi6525->irq_level[1]))
281   if (INTERRUPT_MODE && (state != tpi6525->irq_level[1]))
267282   {
268      tpi6525->irq_level[1] = level;
283      tpi6525->irq_level[1] = state;
269284
270      if ((level == 0) && !(tpi6525->air & 2) && (tpi6525->ddr_c & 2))
285      if ((state == 0) && !(tpi6525->air & 2) && (tpi6525->ddr_c & 2))
271286      {
272287         tpi6525->air |= 2;
273288         tpi6525_set_interrupt(device);
r11230r11231
276291}
277292
278293
279void tpi6525_irq2_level(device_t *device, int level)
294WRITE_LINE_DEVICE_HANDLER( tpi6525_i2_w )
280295{
281296   tpi6525_state *tpi6525 = get_safe_token(device);
282297
283   if (INTERRUPT_MODE && (level != tpi6525->irq_level[2]))
298   if (INTERRUPT_MODE && (state != tpi6525->irq_level[2]))
284299   {
285      tpi6525->irq_level[2] = level;
300      tpi6525->irq_level[2] = state;
286301
287      if ((level == 0) && !(tpi6525->air & 4) && (tpi6525->ddr_c & 4))
302      if ((state == 0) && !(tpi6525->air & 4) && (tpi6525->ddr_c & 4))
288303      {
289304         tpi6525->air |= 4;
290305         tpi6525_set_interrupt(device);
r11230r11231
293308}
294309
295310
296void tpi6525_irq3_level(device_t *device, int level)
311WRITE_LINE_DEVICE_HANDLER( tpi6525_i3_w )
297312{
298313   tpi6525_state *tpi6525 = get_safe_token(device);
299314
300   if (INTERRUPT_MODE && (level != tpi6525->irq_level[3]))
315   if (INTERRUPT_MODE && (state != tpi6525->irq_level[3]))
301316   {
302      tpi6525->irq_level[3] = level;
317      tpi6525->irq_level[3] = state;
303318
304      if (((INTERRUPT3_RISING_EDGE && (level == 1))
305         || (!INTERRUPT3_RISING_EDGE && (level == 0)))
319      if (((INTERRUPT3_RISING_EDGE && (state == 1))
320         || (!INTERRUPT3_RISING_EDGE && (state == 0)))
306321         && !(tpi6525->air & 8) && (tpi6525->ddr_c & 8))
307322      {
308323         tpi6525->air |= 8;
r11230r11231
312327}
313328
314329
315void tpi6525_irq4_level(device_t *device, int level)
330WRITE_LINE_DEVICE_HANDLER( tpi6525_i4_w )
316331{
317332   tpi6525_state *tpi6525 = get_safe_token(device);
318333
319   if (INTERRUPT_MODE && (level != tpi6525->irq_level[4]) )
334   if (INTERRUPT_MODE && (state != tpi6525->irq_level[4]) )
320335   {
321      tpi6525->irq_level[4] = level;
336      tpi6525->irq_level[4] = state;
322337
323      if (((INTERRUPT4_RISING_EDGE && (level == 1))
324         ||(!INTERRUPT4_RISING_EDGE&&(level == 0)))
338      if (((INTERRUPT4_RISING_EDGE && (state == 1))
339         ||(!INTERRUPT4_RISING_EDGE&&(state == 0)))
325340         && !(tpi6525->air & 0x10) && (tpi6525->ddr_c & 0x10))
326341      {
327342         tpi6525->air |= 0x10;
r11230r11231
336351   tpi6525_state *tpi6525 = get_safe_token(device);
337352   UINT8 data = tpi6525->in_a;
338353
339   if (tpi6525->intf->in_a_func)
340      data = tpi6525->intf->in_a_func(device, offset);
354   if (tpi6525->in_pa_func.target != NULL)
355      data = devcb_call_read8(&tpi6525->in_pa_func, offset);
341356
342357   data = (data & ~tpi6525->ddr_a) | (tpi6525->ddr_a & tpi6525->port_a);
343358
r11230r11231
358373   tpi6525_state *tpi6525 = get_safe_token(device);
359374   UINT8 data = tpi6525->in_b;
360375
361   if (tpi6525->intf->in_b_func)
362      data = tpi6525->intf->in_b_func(device, offset);
376   if (tpi6525->in_pb_func.target != NULL)
377      data = devcb_call_read8(&tpi6525->in_pb_func, offset);
363378
364379   data = (data & ~tpi6525->ddr_b) | (tpi6525->ddr_b & tpi6525->port_b);
365380
r11230r11231
380395   tpi6525_state *tpi6525 = get_safe_token(device);
381396   UINT8 data = tpi6525->in_c;
382397
383   if (tpi6525->intf->in_c_func)
384      data &= tpi6525->intf->in_c_func(device, offset);
398   if (tpi6525->in_pc_func.target != NULL)
399      data &= devcb_call_read8(&tpi6525->in_pc_func, offset);
385400
386401   data = (data & ~tpi6525->ddr_c) | (tpi6525->ddr_c & tpi6525->port_c);
387402
r11230r11231
407422   case 0:
408423      data = tpi6525->in_a;
409424
410      if (tpi6525->intf->in_a_func)
411         data &= tpi6525->intf->in_a_func(device, 0);
425      if (tpi6525->in_pa_func.target != NULL)
426         data &= devcb_call_read8(&tpi6525->in_pa_func, 0);
412427
413428      data = (data & ~tpi6525->ddr_a) | (tpi6525->ddr_a & tpi6525->port_a);
414429
r11230r11231
417432   case 1:
418433      data = tpi6525->in_b;
419434
420      if (tpi6525->intf->in_b_func)
421         data &= tpi6525->intf->in_b_func(device, 0);
435      if (tpi6525->in_pb_func.target != NULL)
436         data &= devcb_call_read8(&tpi6525->in_pb_func, 0);
422437
423438      data = (data & ~tpi6525->ddr_b) | (tpi6525->ddr_b & tpi6525->port_b);
424439
r11230r11231
442457      {
443458         data = tpi6525->in_c;
444459
445         if (tpi6525->intf->in_c_func)
446            data &= tpi6525->intf->in_c_func(device, 0);
460         if (tpi6525->in_pc_func.target != NULL)
461            data &= devcb_call_read8(&tpi6525->in_pc_func, 0);
447462
448463         data = (data & ~tpi6525->ddr_c) | (tpi6525->ddr_c & tpi6525->port_c);
449464      }
r11230r11231
523538   {
524539   case 0:
525540      tpi6525->port_a = data;
526
527      if (tpi6525->intf->out_a_func)
528         tpi6525->intf->out_a_func(device, 0, tpi6525->port_a & tpi6525->ddr_a);
529
541      devcb_call_write8(&tpi6525->out_pa_func, 0, tpi6525->port_a & tpi6525->ddr_a);
530542      break;
531543
532544   case 1:
533545      tpi6525->port_b = data;
534
535      if (tpi6525->intf->out_b_func)
536         tpi6525->intf->out_b_func(device, 0, tpi6525->port_b & tpi6525->ddr_b);
537
546      devcb_call_write8(&tpi6525->out_pb_func, 0, tpi6525->port_b & tpi6525->ddr_b);
538547      break;
539548
540549   case 2:
541550      tpi6525->port_c = data;
542551
543      if (!INTERRUPT_MODE && tpi6525->intf->out_c_func)
544         tpi6525->intf->out_c_func(device, 0, tpi6525->port_c & tpi6525->ddr_c);
545
552      if (!INTERRUPT_MODE)
553         devcb_call_write8(&tpi6525->out_pc_func, 0, tpi6525->port_c & tpi6525->ddr_c);
546554      break;
547555
548556   case 3:
549557      tpi6525->ddr_a = data;
558      devcb_call_write8(&tpi6525->out_pa_func, 0, tpi6525->port_a & tpi6525->ddr_a);
550559
551      if (tpi6525->intf->out_a_func)
552         tpi6525->intf->out_a_func(device, 0, tpi6525->port_a & tpi6525->ddr_a);
553
554560      break;
555561
556562   case 4:
557563      tpi6525->ddr_b = data;
558
559      if (tpi6525->intf->out_b_func)
560         tpi6525->intf->out_b_func(device, 0, tpi6525->port_b & tpi6525->ddr_b);
561
564      devcb_call_write8(&tpi6525->out_pb_func, 0, tpi6525->port_b & tpi6525->ddr_b);
562565      break;
563566
564567   case 5:
565568      tpi6525->ddr_c = data;
566569
567      if (!INTERRUPT_MODE && tpi6525->intf->out_c_func)
568         tpi6525->intf->out_c_func(device, 0, tpi6525->port_c & tpi6525->ddr_c);
569
570      if (!INTERRUPT_MODE)
571         devcb_call_write8(&tpi6525->out_pc_func, 0, tpi6525->port_c & tpi6525->ddr_c);
570572      break;
571573
572574   case 6:
r11230r11231
579581            if (tpi6525->ca_level != CA_MANUAL_LEVEL)
580582            {
581583               tpi6525->ca_level = CA_MANUAL_LEVEL;
582
583               if (tpi6525->intf->out_ca_func)
584                  tpi6525->intf->out_ca_func(device, 0, tpi6525->ca_level);
584               devcb_call_write_line(&tpi6525->out_ca_func, tpi6525->ca_level);
585585            }
586586         }
587587         if (CB_MANUAL_OUT)
r11230r11231
589589            if (tpi6525->cb_level != CB_MANUAL_LEVEL)
590590            {
591591               tpi6525->cb_level = CB_MANUAL_LEVEL;
592
593               if (tpi6525->intf->out_cb_func)
594                  tpi6525->intf->out_cb_func(device, 0, tpi6525->cb_level);
592               devcb_call_write_line(&tpi6525->out_cb_func, tpi6525->cb_level);
595593            }
596594         }
597595      }
src/mess/machine/6525tpi.h
r11230r11231
3737typedef struct _tpi6525_interface tpi6525_interface;
3838struct _tpi6525_interface
3939{
40   read8_device_func in_a_func;
41   read8_device_func in_b_func;
42   read8_device_func in_c_func;
43   write8_device_func out_a_func;
44   write8_device_func out_b_func;
45   write8_device_func out_c_func;
46   write8_device_func out_ca_func;
47   write8_device_func out_cb_func;
48   void (*irq_func)(device_t *device, int level);
40   devcb_write_line out_irq_func;
41
42   devcb_read8 in_pa_func;
43   devcb_write8 out_pa_func;
44
45   devcb_read8 in_pb_func;
46   devcb_write8 out_pb_func;
47
48   devcb_read8 in_pc_func;
49   devcb_write8 out_pc_func;
50
51   devcb_write_line out_ca_func;
52   devcb_write_line out_cb_func;
4953};
5054
5155
r11230r11231
7680READ8_DEVICE_HANDLER( tpi6525_portc_r );
7781WRITE8_DEVICE_HANDLER( tpi6525_portc_w );
7882
79void tpi6525_irq0_level(device_t *device, int level);
80void tpi6525_irq1_level(device_t *device, int level);
81void tpi6525_irq2_level(device_t *device, int level);
82void tpi6525_irq3_level(device_t *device, int level);
83void tpi6525_irq4_level(device_t *device, int level);
83WRITE_LINE_DEVICE_HANDLER( tpi6525_i0_w );
84WRITE_LINE_DEVICE_HANDLER( tpi6525_i1_w );
85WRITE_LINE_DEVICE_HANDLER( tpi6525_i2_w );
86WRITE_LINE_DEVICE_HANDLER( tpi6525_i3_w );
87WRITE_LINE_DEVICE_HANDLER( tpi6525_i4_w );
8488
8589UINT8 tpi6525_get_ddr_a(device_t *device);
8690UINT8 tpi6525_get_ddr_b(device_t *device);
src/mess/includes/cbmb.h
r11230r11231
5959READ8_DEVICE_HANDLER( cbmb_keyboard_line_a );
6060READ8_DEVICE_HANDLER( cbmb_keyboard_line_b );
6161READ8_DEVICE_HANDLER( cbmb_keyboard_line_c );
62void cbmb_irq(device_t *device, int level);
62WRITE_LINE_DEVICE_HANDLER( cbmb_irq );
6363
6464int cbmb_dma_read(running_machine &machine, int offset);
6565int cbmb_dma_read_color(running_machine &machine, int offset);
6666
67WRITE8_DEVICE_HANDLER( cbmb_change_font );
67WRITE_LINE_DEVICE_HANDLER( cbmb_change_font );
6868
6969DRIVER_INIT( p500 );
7070DRIVER_INIT( cbm600 );
src/mess/drivers/cbmb.c
r11230r11231
22    commodore b series computer
33
44    PeT mess@utanet.at
5
5   
66    documentation
77     vice emulator
88     www.funet.fi
r11230r11231
387387
388388static const tpi6525_interface cbmb_tpi_0_intf =
389389{
390   cbmb_tpi0_port_a_r,
391   cbmb_tpi0_port_b_r,
392   NULL,
393   cbmb_tpi0_port_a_w,
394   cbmb_tpi0_port_b_w,
395   NULL,
396   cbmb_change_font,
397   NULL,
398   cbmb_irq
390   DEVCB_LINE(cbmb_irq),
391   DEVCB_HANDLER(cbmb_tpi0_port_a_r),
392   DEVCB_HANDLER(cbmb_tpi0_port_a_w),
393   DEVCB_HANDLER(cbmb_tpi0_port_b_r),
394   DEVCB_HANDLER(cbmb_tpi0_port_b_w),
395   DEVCB_NULL,
396   DEVCB_NULL,
397   DEVCB_LINE(cbmb_change_font),
398   DEVCB_NULL
399399};
400400
401401static const tpi6525_interface cbmb_tpi_1_intf =
402402{
403   cbmb_keyboard_line_a,
404   cbmb_keyboard_line_b,
405   cbmb_keyboard_line_c,
406   cbmb_keyboard_line_select_a,
407   cbmb_keyboard_line_select_b,
408   cbmb_keyboard_line_select_c,
409   NULL,
410   NULL,
411   NULL
403   DEVCB_NULL,
404   DEVCB_HANDLER(cbmb_keyboard_line_a),
405   DEVCB_HANDLER(cbmb_keyboard_line_select_a),
406   DEVCB_HANDLER(cbmb_keyboard_line_b),
407   DEVCB_HANDLER(cbmb_keyboard_line_select_b),
408   DEVCB_HANDLER(cbmb_keyboard_line_c),
409   DEVCB_HANDLER(cbmb_keyboard_line_select_c),
410   DEVCB_NULL,
411   DEVCB_NULL
412412};
413413
414414static IEEE488_DAISY( ieee488_daisy )
src/mess/drivers/amiga.c
r11230r11231
348348
349349static const tpi6525_interface cdtv_tpi_intf =
350350{
351   NULL,
352   NULL,
353   amigacd_tpi6525_portc_r,
354   NULL,
355   amigacd_tpi6525_portb_w,
356   NULL,
357   NULL,
358   NULL,
359   amigacd_tpi6525_irq
351   DEVCB_LINE(amigacd_tpi6525_irq),
352   DEVCB_NULL,
353   DEVCB_NULL,
354   DEVCB_NULL,
355   DEVCB_HANDLER(amigacd_tpi6525_portb_w),
356   DEVCB_HANDLER(amigacd_tpi6525_portc_r),
357   DEVCB_NULL,
358   DEVCB_NULL,
359   DEVCB_NULL
360360};
361361
362362

Previous 15994 Revisions Next


© 1998-2018 The MESS Team