Previous 15994 Revisions Next

r15833 Thursday 9th August, 2012 at 19:38:30 UTC by Sandro Ronco
digel804: added layout for the VFD. (nw)
[src/mess]mess.mak
[src/mess/drivers]digel804.c
[src/mess/layout]digel804.lay*

src/mess/layout/digel804.lay
r0r15833
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
r15832r15833
6363#include "sound/speaker.h"
6464#include "machine/roc10937.h"
6565#include "machine/6551acia.h"
66#include "digel804.lh"
6667
6768
6869class digel804_state : public driver_device
r15832r15833
323324   // latch vfd data on falling edge of clock only; this should really be part of the 10937 device, not here!
324325   if ((vfd_old&1) && ((data&1)==0))
325326   {
327      m_vfd->shift_data((data & 0x80) ? 0 : 1);
328
326329      vfd_data <<= 1;
327330      vfd_data |= (data&0x80)?1:0;
328331      vfd_count++;
r15832r15833
331334#ifdef VFD_VERBOSE
332335         logerror("Digel804: Full byte written to port 44 vfd: %02X '%c'\n", vfd_data, vfd_data);
333336#endif
334         m_vfd->shift_data(vfd_data? 1 : 0);
335337         vfd_data = 0;
336338         vfd_count = 0;
337339      }
r15832r15833
556558   /* video hardware */
557559   MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, digel804_terminal_intf)
558560
561   MCFG_DEFAULT_LAYOUT(layout_digel804)
562
559563   /* acia */
560564   MCFG_ACIA6551_ADD("acia")
561565
r15832r15833
578582   /* video hardware */
579583   MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, digel804_terminal_intf)
580584
585   MCFG_DEFAULT_LAYOUT(layout_digel804)
586
581587   /* acia */
582588   MCFG_ACIA6551_ADD("acia")
583589
src/mess/mess.mak
r15832r15833
21052105$(MESS_DRIVERS)/cosmicos.o:   $(MESS_LAYOUT)/cosmicos.lh
21062106$(MESS_DRIVERS)/c80.o:      $(MESS_LAYOUT)/c80.lh
21072107$(MESS_DRIVERS)/dectalk.o:   $(MESS_LAYOUT)/dectalk.lh
2108$(MESS_DRIVERS)/digel804.o:   $(MESS_LAYOUT)/digel804.lh
21082109$(MESS_DRIVERS)/dmv.o:      $(MESS_LAYOUT)/dmv.lh
21092110$(MESS_DRIVERS)/dolphunk.o:   $(MESS_LAYOUT)/dolphunk.lh
21102111$(MESS_DRIVERS)/eacc.o:      $(MESS_LAYOUT)/eacc.lh

Previous 15994 Revisions Next


© 1998-2018 The MESS Team