src/mess/layout/digel804.lay
| r0 | r15833 | |
| 1 | <?xml version="1.0"?> |
| 2 | <mamelayout version="2"> |
| 3 | <element name="vfd0"> |
| 4 | <led16segsc> |
| 5 | <color red="0" green="0.6" blue="1.0" /> |
| 6 | </led16segsc> |
| 7 | </element> |
| 8 | |
| 9 | <view name="Default Layout"> |
| 10 | <backdrop name="vfd0" element="vfd0" state="0"> |
| 11 | <bounds x="10" y="10" width="9" height="17"/> |
| 12 | </backdrop> |
| 13 | <backdrop name="vfd1" element="vfd0" state="0"> |
| 14 | <bounds x="19" y="10" width="9" height="17"/> |
| 15 | </backdrop> |
| 16 | <backdrop name="vfd2" element="vfd0" state="0"> |
| 17 | <bounds x="28" y="10" width="9" height="17"/> |
| 18 | </backdrop> |
| 19 | <backdrop name="vfd3" element="vfd0" state="0"> |
| 20 | <bounds x="37" y="10" width="9" height="17"/> |
| 21 | </backdrop> |
| 22 | <backdrop name="vfd4" element="vfd0" state="0"> |
| 23 | <bounds x="46" y="10" width="9" height="17"/> |
| 24 | </backdrop> |
| 25 | <backdrop name="vfd5" element="vfd0" state="0"> |
| 26 | <bounds x="55" y="10" width="9" height="17"/> |
| 27 | </backdrop> |
| 28 | <backdrop name="vfd6" element="vfd0" state="0"> |
| 29 | <bounds x="64" y="10" width="9" height="17"/> |
| 30 | </backdrop> |
| 31 | <backdrop name="vfd7" element="vfd0" state="0"> |
| 32 | <bounds x="73" y="10" width="9" height="17"/> |
| 33 | </backdrop> |
| 34 | <backdrop name="vfd8" element="vfd0" state="0"> |
| 35 | <bounds x="82" y="10" width="9" height="17"/> |
| 36 | </backdrop> |
| 37 | <backdrop name="vfd9" element="vfd0" state="0"> |
| 38 | <bounds x="91" y="10" width="9" height="17"/> |
| 39 | </backdrop> |
| 40 | <backdrop name="vfd10" element="vfd0" state="0"> |
| 41 | <bounds x="100" y="10" width="9" height="17"/> |
| 42 | </backdrop> |
| 43 | <backdrop name="vfd11" element="vfd0" state="0"> |
| 44 | <bounds x="109" y="10" width="9" height="17"/> |
| 45 | </backdrop> |
| 46 | <backdrop name="vfd12" element="vfd0" state="0"> |
| 47 | <bounds x="118" y="10" width="9" height="17"/> |
| 48 | </backdrop> |
| 49 | <backdrop name="vfd13" element="vfd0" state="0"> |
| 50 | <bounds x="127" y="10" width="9" height="17"/> |
| 51 | </backdrop> |
| 52 | <backdrop name="vfd14" element="vfd0" state="0"> |
| 53 | <bounds x="136" y="10" width="9" height="17"/> |
| 54 | </backdrop> |
| 55 | <backdrop name="vfd15" element="vfd0" state="0"> |
| 56 | <bounds x="145" y="10" width="9" height="17"/> |
| 57 | </backdrop> |
| 58 | </view> |
| 59 | |
| 60 | <view name="Terminal"> |
| 61 | <screen index="0"> |
| 62 | <bounds x="0" y="0" width="4" height="3" /> |
| 63 | </screen> |
| 64 | </view> |
| 65 | </mamelayout> |
src/mess/drivers/digel804.c
| r15832 | r15833 | |
| 63 | 63 | #include "sound/speaker.h" |
| 64 | 64 | #include "machine/roc10937.h" |
| 65 | 65 | #include "machine/6551acia.h" |
| 66 | #include "digel804.lh" |
| 66 | 67 | |
| 67 | 68 | |
| 68 | 69 | class digel804_state : public driver_device |
| r15832 | r15833 | |
| 323 | 324 | // latch vfd data on falling edge of clock only; this should really be part of the 10937 device, not here! |
| 324 | 325 | if ((vfd_old&1) && ((data&1)==0)) |
| 325 | 326 | { |
| 327 | m_vfd->shift_data((data & 0x80) ? 0 : 1); |
| 328 | |
| 326 | 329 | vfd_data <<= 1; |
| 327 | 330 | vfd_data |= (data&0x80)?1:0; |
| 328 | 331 | vfd_count++; |
| r15832 | r15833 | |
| 331 | 334 | #ifdef VFD_VERBOSE |
| 332 | 335 | logerror("Digel804: Full byte written to port 44 vfd: %02X '%c'\n", vfd_data, vfd_data); |
| 333 | 336 | #endif |
| 334 | | m_vfd->shift_data(vfd_data? 1 : 0); |
| 335 | 337 | vfd_data = 0; |
| 336 | 338 | vfd_count = 0; |
| 337 | 339 | } |
| r15832 | r15833 | |
| 556 | 558 | /* video hardware */ |
| 557 | 559 | MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, digel804_terminal_intf) |
| 558 | 560 | |
| 561 | MCFG_DEFAULT_LAYOUT(layout_digel804) |
| 562 | |
| 559 | 563 | /* acia */ |
| 560 | 564 | MCFG_ACIA6551_ADD("acia") |
| 561 | 565 | |
| r15832 | r15833 | |
| 578 | 582 | /* video hardware */ |
| 579 | 583 | MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, digel804_terminal_intf) |
| 580 | 584 | |
| 585 | MCFG_DEFAULT_LAYOUT(layout_digel804) |
| 586 | |
| 581 | 587 | /* acia */ |
| 582 | 588 | MCFG_ACIA6551_ADD("acia") |
| 583 | 589 | |