src/mess/layout/lx800.lay
| r0 | r5186 | |
| 1 | <?xml version="1.0"?>
|
| 2 | <mamelayout version="2">
|
| 3 | <element name="background">
|
| 4 | <rect>
|
| 5 | <color red="0.1" green="0.1" blue="0.1" />
|
| 6 | </rect>
|
| 7 | </element>
|
| 8 |
|
| 9 | <element name="power_led" defstate="1">
|
| 10 | <rect state="0">
|
| 11 | <color red="0" green="0.2" blue="0" />
|
| 12 | </rect>
|
| 13 | <rect state="1">
|
| 14 | <color red="0" green="0.8" blue="0" />
|
| 15 | </rect>
|
| 16 | </element>
|
| 17 | <element name="green_led" defstate="0">
|
| 18 | <rect state="0">
|
| 19 | <color red="0" green="0.2" blue="0" />
|
| 20 | </rect>
|
| 21 | <rect state="1">
|
| 22 | <color red="0" green="0.8" blue="0" />
|
| 23 | </rect>
|
| 24 | </element>
|
| 25 | <element name="red_led" defstate="0">
|
| 26 | <rect state="0">
|
| 27 | <color red="0.2" green="0" blue="0" />
|
| 28 | </rect>
|
| 29 | <rect state="1">
|
| 30 | <color red="0.8" green="0" blue="0" />
|
| 31 | </rect>
|
| 32 | </element>
|
| 33 |
|
| 34 | <element name="power_str" defstate="0">
|
| 35 | <text string="POWER">
|
| 36 | <color red="1.0" green="1.0" blue="1.0" />
|
| 37 | <bounds x="0" y="0" width="25" height="4" />
|
| 38 | </text>
|
| 39 | </element>
|
| 40 | <element name="ready_str" defstate="0">
|
| 41 | <text string="READY">
|
| 42 | <color red="1.0" green="1.0" blue="1.0" />
|
| 43 | <bounds x="0" y="0" width="25" height="4" />
|
| 44 | </text>
|
| 45 | </element>
|
| 46 | <element name="paperout_str" defstate="0">
|
| 47 | <text string="PAPER OUT">
|
| 48 | <color red="1.0" green="1.0" blue="1.0" />
|
| 49 | <bounds x="0" y="0" width="35" height="4" />
|
| 50 | </text>
|
| 51 | </element>
|
| 52 | <element name="online_str" defstate="0">
|
| 53 | <text string="ONLINE">
|
| 54 | <color red="1.0" green="1.0" blue="1.0" />
|
| 55 | <bounds x="0" y="0" width="35" height="4" />
|
| 56 | </text>
|
| 57 | </element>
|
| 58 |
|
| 59 | <view name="Control panel">
|
| 60 | <bezel element="background">
|
| 61 | <bounds x="0" y="0" width="67" height="52" />
|
| 62 | </bezel>
|
| 63 | <bezel name="power_led" element="power_led">
|
| 64 | <bounds x="8" y="9" width="8" height="4" />
|
| 65 | </bezel>
|
| 66 | <bezel name="power_str" element="power_str">
|
| 67 | <bounds x="18" y="9" width="17" height="4" />
|
| 68 | </bezel>
|
| 69 | <bezel name="ready_led" element="green_led">
|
| 70 | <bounds x="8" y="20" width="8" height="4" />
|
| 71 | </bezel>
|
| 72 | <bezel name="ready_str" element="ready_str">
|
| 73 | <bounds x="18" y="20" width="17" height="4" />
|
| 74 | </bezel>
|
| 75 | <bezel name="paperout_led" element="red_led">
|
| 76 | <bounds x="8" y="31" width="8" height="4" />
|
| 77 | </bezel>
|
| 78 | <bezel name="paperout_str" element="paperout_str">
|
| 79 | <bounds x="18" y="31" width="25" height="4" />
|
| 80 | </bezel>
|
| 81 | <bezel name="online_led" element="green_led">
|
| 82 | <bounds x="8" y="42" width="8" height="4" />
|
| 83 | </bezel>
|
| 84 | <bezel name="online_str" element="online_str">
|
| 85 | <bounds x="18" y="42" width="18" height="4" />
|
| 86 | </bezel>
|
| 87 | </view>
|
| 88 | </mamelayout>
|
src/mess/drivers/lx800.c
| r0 | r5186 | |
| 1 | /***************************************************************************
|
| 2 | |
| 3 | Epson LX-800 dot matrix printer
|
| 4 | |
| 5 | Skeleton driver
|
| 6 | |
| 7 | ***************************************************************************/
|
| 8 | |
| 9 | #include "driver.h"
|
| 10 | #include "cpu/upd7810/upd7810.h"
|
| 11 | #include "sound/beep.h"
|
| 12 | #include "lx800.lh"
|
| 13 | |
| 14 | |
| 15 | /***************************************************************************
|
| 16 | GATE ARRAY
|
| 17 | ***************************************************************************/
|
| 18 | |
| 19 | static READ8_HANDLER( lx800_ga_r )
|
| 20 | {
|
| 21 | logerror("%s: lx800_ga_r(%02x)\n", cpuexec_describe_context(space->machine), offset);
|
| 22 | |
| 23 | return 0xff;
|
| 24 | }
|
| 25 | |
| 26 | static WRITE8_HANDLER( lx800_ga_w )
|
| 27 | {
|
| 28 | logerror("%s: lx800_ga_w(%02x): %02x\n", cpuexec_describe_context(space->machine), offset, data);
|
| 29 | }
|
| 30 | |
| 31 | |
| 32 | /***************************************************************************
|
| 33 | I/O PORTS
|
| 34 | ***************************************************************************/
|
| 35 | |
| 36 | static READ8_HANDLER( lx800_porta_r )
|
| 37 | {
|
| 38 | logerror("%s: lx800_porta_r(%02x)\n", cpuexec_describe_context(space->machine), offset);
|
| 39 | |
| 40 | return 0xff;
|
| 41 | }
|
| 42 | |
| 43 | static WRITE8_HANDLER( lx800_porta_w )
|
| 44 | {
|
| 45 | logerror("%s: lx800_porta_w(%02x): %02x\n", cpuexec_describe_context(space->machine), offset, data);
|
| 46 | }
|
| 47 | |
| 48 | static READ8_HANDLER( lx800_portc_r )
|
| 49 | {
|
| 50 | logerror("%s: lx800_portc_r(%02x)\n", cpuexec_describe_context(space->machine), offset);
|
| 51 | |
| 52 | return 0xff;
|
| 53 | }
|
| 54 | |
| 55 | static WRITE8_HANDLER( lx800_portc_w )
|
| 56 | {
|
| 57 | logerror("%s: lx800_portc_w(%02x): %02x\n", cpuexec_describe_context(space->machine), offset, data);
|
| 58 | }
|
| 59 | |
| 60 | |
| 61 | /***************************************************************************
|
| 62 | ADDRESS MAPS
|
| 63 | ***************************************************************************/
|
| 64 | |
| 65 | static ADDRESS_MAP_START( lx800_mem, ADDRESS_SPACE_PROGRAM, 8 )
|
| 66 | AM_RANGE(0x0000, 0x7fff) AM_ROM /* 32k firmware */
|
| 67 | AM_RANGE(0x8000, 0x9fff) AM_RAM /* 8k external RAM */
|
| 68 | AM_RANGE(0xa000, 0xbfff) AM_NOP /* not used */
|
| 69 | AM_RANGE(0xc000, 0xdfff) AM_MIRROR(0x1ff8) AM_READWRITE(lx800_ga_r, lx800_ga_w)
|
| 70 | AM_RANGE(0xe000, 0xfeff) AM_NOP /* not used */
|
| 71 | AM_RANGE(0xff00, 0xffff) AM_RAM /* internal CPU RAM */
|
| 72 | ADDRESS_MAP_END
|
| 73 | |
| 74 | static ADDRESS_MAP_START( lx800_io, ADDRESS_SPACE_IO, 8 )
|
| 75 | AM_RANGE(UPD7810_PORTA, UPD7810_PORTA) AM_READWRITE(lx800_porta_r, lx800_porta_w)
|
| 76 | AM_RANGE(UPD7810_PORTB, UPD7810_PORTB) AM_READ_PORT("DIPSW1")
|
| 77 | AM_RANGE(UPD7810_PORTC, UPD7810_PORTC) AM_READWRITE(lx800_portc_r, lx800_portc_w)
|
| 78 | ADDRESS_MAP_END
|
| 79 | |
| 80 | |
| 81 | /***************************************************************************
|
| 82 | INPUT PORTS
|
| 83 | ***************************************************************************/
|
| 84 | |
| 85 | static INPUT_PORTS_START( lx800 )
|
| 86 | PORT_START("DIPSW1")
|
| 87 | PORT_DIPNAME(0x01, 0x00, "Typeface")
|
| 88 | PORT_DIPLOCATION("DIP:8")
|
| 89 | PORT_DIPSETTING(0x01, "Condensed")
|
| 90 | PORT_DIPSETTING(0x00, DEF_STR(Normal))
|
| 91 | PORT_DIPNAME(0x02, 0x00, "ZERO font")
|
| 92 | PORT_DIPLOCATION("DIP:7")
|
| 93 | PORT_DIPSETTING(0x02, "0")
|
| 94 | PORT_DIPSETTING(0x00, "0")
|
| 95 | PORT_DIPNAME(0x04, 0x00, "Character Table")
|
| 96 | PORT_DIPLOCATION("DIP:6")
|
| 97 | PORT_DIPSETTING(0x04, "Graphic")
|
| 98 | PORT_DIPSETTING(0x00, "Italic")
|
| 99 | PORT_DIPNAME(0x08, 0x00, "Paper-out detection")
|
| 100 | PORT_DIPLOCATION("DIP:5")
|
| 101 | PORT_DIPSETTING(0x08, "Valid")
|
| 102 | PORT_DIPSETTING(0x00, "Invalid")
|
| 103 | PORT_DIPNAME(0x10, 0x00, "Printing quality")
|
| 104 | PORT_DIPLOCATION("DIP:4")
|
| 105 | PORT_DIPSETTING(0x10, "NLQ")
|
| 106 | PORT_DIPSETTING(0x00, "Draft")
|
| 107 | PORT_DIPNAME(0xe0, 0xe0, "International character set")
|
| 108 | PORT_DIPLOCATION("DIP:3,2,1")
|
| 109 | PORT_DIPSETTING(0xe0, "U.S.A.")
|
| 110 | PORT_DIPSETTING(0x60, "France")
|
| 111 | PORT_DIPSETTING(0xa0, "Germany")
|
| 112 | PORT_DIPSETTING(0x20, "U.K.")
|
| 113 | PORT_DIPSETTING(0xc0, "Denmark")
|
| 114 | PORT_DIPSETTING(0x40, "Sweden")
|
| 115 | PORT_DIPSETTING(0x80, "Italy")
|
| 116 | PORT_DIPSETTING(0x00, "Spain")
|
| 117 | |
| 118 | PORT_START("DIPSW2")
|
| 119 | PORT_DIPNAME(0x01, 0x00, "Page length")
|
| 120 | PORT_DIPLOCATION("DIP:4")
|
| 121 | PORT_DIPSETTING(0x01, "12\"")
|
| 122 | PORT_DIPSETTING(0x00, "11\"")
|
| 123 | PORT_DIPNAME(0x02, 0x00, "Cut sheet feeder mode")
|
| 124 | PORT_DIPLOCATION("DIP:3")
|
| 125 | PORT_DIPSETTING(0x02, "Valid")
|
| 126 | PORT_DIPSETTING(0x00, "Invalid")
|
| 127 | PORT_DIPNAME(0x04, 0x00, "1\" skip over perforation")
|
| 128 | PORT_DIPLOCATION("DIP:2")
|
| 129 | PORT_DIPSETTING(0x04, "Valid")
|
| 130 | PORT_DIPSETTING(0x00, "Invalid")
|
| 131 | PORT_DIPNAME(0x08, 0x00, "AUTO FEED XT control")
|
| 132 | PORT_DIPLOCATION("DIP:1")
|
| 133 | PORT_DIPSETTING(0x08, "Fix to LOW")
|
| 134 | PORT_DIPSETTING(0x00, "Depends on external signal")
|
| 135 | INPUT_PORTS_END
|
| 136 | |
| 137 | |
| 138 | /***************************************************************************
|
| 139 | MACHINE DRIVERS
|
| 140 | ***************************************************************************/
|
| 141 | |
| 142 | static const UPD7810_CONFIG lx800_cpu_config =
|
| 143 | {
|
| 144 | TYPE_7810,
|
| 145 | 0
|
| 146 | };
|
| 147 | |
| 148 | static MACHINE_DRIVER_START( lx800 )
|
| 149 | /* basic machine hardware */
|
| 150 | MDRV_CPU_ADD("maincpu", UPD7810, XTAL_14_7456MHz)
|
| 151 | MDRV_CPU_CONFIG(lx800_cpu_config)
|
| 152 | MDRV_CPU_PROGRAM_MAP(lx800_mem)
|
| 153 | MDRV_CPU_IO_MAP(lx800_io)
|
| 154 | |
| 155 | MDRV_DEFAULT_LAYOUT(layout_lx800)
|
| 156 | |
| 157 | /* audio hardware */
|
| 158 | MDRV_SPEAKER_STANDARD_MONO("mono")
|
| 159 | MDRV_SOUND_ADD("beep", BEEP, 0)
|
| 160 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
| 161 | MACHINE_DRIVER_END
|
| 162 | |
| 163 | |
| 164 | /***************************************************************************
|
| 165 | ROM DEFINITIONS
|
| 166 | ***************************************************************************/
|
| 167 | |
| 168 | ROM_START( lx800 )
|
| 169 | ROM_REGION(0x8000, "maincpu", 0)
|
| 170 | ROM_LOAD("lx800.bin", 0x0000, 0x8000, CRC(da06c45b) SHA1(9618c940dd10d5b43cd1edd5763b90e6447de667))
|
| 171 | ROM_END
|
| 172 | |
| 173 | |
| 174 | /***************************************************************************
|
| 175 | GAME DRIVERS
|
| 176 | ***************************************************************************/
|
| 177 | |
| 178 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */
|
| 179 | COMP( 1987, lx800, 0, 0, lx800, lx800, 0, 0, "Epson", "LX-800", GAME_NOT_WORKING )
|