trunk/src/mess/drivers/hh_ucom4.c
| r244641 | r244642 | |
| 4 | 4 | |
| 5 | 5 | NEC uCOM4 MCU handhelds |
| 6 | 6 | |
| 7 | | NOTE!: MESS external artwork is required for most of the games |
| 8 | 7 | |
| 9 | 8 | |
| 10 | 9 | serial device etc |
| r244641 | r244642 | |
| 26 | 25 | #include "cpu/ucom4/ucom4.h" |
| 27 | 26 | #include "sound/speaker.h" |
| 28 | 27 | |
| 29 | | // test-layouts for vfd games |
| 28 | // test-layouts - use external artwork |
| 30 | 29 | #include "alnchase.lh" |
| 31 | 30 | #include "edracula.lh" |
| 32 | 31 | #include "tmpacman.lh" |
| r244641 | r244642 | |
| 48 | 47 | |
| 49 | 48 | // devices |
| 50 | 49 | required_device<cpu_device> m_maincpu; |
| 51 | | optional_ioport_array<4> m_inp_matrix; // max 4 |
| 50 | optional_ioport_array<3> m_inp_matrix; // max 3 |
| 52 | 51 | optional_device<speaker_sound_device> m_speaker; |
| 53 | 52 | |
| 54 | 53 | // misc common |
| r244641 | r244642 | |
| 57 | 56 | UINT8 read_inputs(int columns); |
| 58 | 57 | |
| 59 | 58 | virtual void machine_start(); |
| 60 | | virtual void machine_reset(); |
| 61 | 59 | |
| 62 | 60 | // display common |
| 63 | 61 | int m_display_wait; |
| r244641 | r244642 | |
| 123 | 121 | } |
| 124 | 122 | |
| 125 | 123 | |
| 126 | | void hh_ucom4_state::machine_reset() |
| 127 | | { |
| 128 | | } |
| 129 | 124 | |
| 130 | 125 | /*************************************************************************** |
| 131 | 126 | |
| r244641 | r244642 | |
| 133 | 128 | |
| 134 | 129 | ***************************************************************************/ |
| 135 | 130 | |
| 136 | | // LED segments |
| 137 | | #if 0 |
| 138 | | enum |
| 139 | | { |
| 140 | | lA = 0x01, |
| 141 | | lB = 0x02, |
| 142 | | lC = 0x04, |
| 143 | | lD = 0x08, |
| 144 | | lE = 0x10, |
| 145 | | lF = 0x20, |
| 146 | | lG = 0x40, |
| 147 | | lDP = 0x80 |
| 148 | | }; |
| 149 | | #endif |
| 150 | 131 | |
| 132 | |
| 151 | 133 | // The device strobes the outputs very fast, it is unnoticeable to the user. |
| 152 | 134 | // To prevent flickering here, we need to simulate a decay. |
| 153 | 135 | |
| r244641 | r244642 | |
| 242 | 224 | - USA: Dracula, red case |
| 243 | 225 | - Other: Dracula, yellow case, published by Hales |
| 244 | 226 | |
| 227 | NOTE!: MESS external artwork is recommended |
| 245 | 228 | |
| 246 | 229 | |
| 247 | 230 | ***************************************************************************/ |
| r244641 | r244642 | |
| 330 | 313 | side, player 2 or CPU on the left. Each player has six possible positions |
| 331 | 314 | where to hit the ball. A backdrop behind the VFD shows a tennis court. |
| 332 | 315 | |
| 316 | NOTE!: MESS external artwork is recommended |
| 333 | 317 | |
| 334 | 318 | ***************************************************************************/ |
| 335 | 319 | |
| r244641 | r244642 | |
| 420 | 404 | |
| 421 | 405 | MACHINE_RESET_MEMBER(hh_ucom4_state, tmtennis) |
| 422 | 406 | { |
| 423 | | machine_reset(); // common |
| 424 | 407 | tmtennis_set_clock(); |
| 425 | 408 | } |
| 426 | 409 | |
| r244641 | r244642 | |
| 466 | 449 | - UK: Puckman (Tomy), and also as Munchman, published by Grandstand |
| 467 | 450 | - Australia: Pac Man-1, published by Futuretronics |
| 468 | 451 | |
| 452 | NOTE!: MESS external artwork is recommended |
| 453 | |
| 469 | 454 | ***************************************************************************/ |
| 470 | 455 | |
| 471 | 456 | static INPUT_PORTS_START( tmpacman ) |
| r244641 | r244642 | |
| 503 | 488 | This is a space-themed tabletop VFD electronic game. To start, simply |
| 504 | 489 | press [UP]. Hold a joystick direction to move around. |
| 505 | 490 | |
| 491 | NOTE!: MESS external artwork is recommended |
| 492 | |
| 506 | 493 | ***************************************************************************/ |
| 507 | 494 | |
| 508 | 495 | |
trunk/src/mess/layout/ebball.lay
| r244641 | r244642 | |
| 16 | 16 | |
| 17 | 17 | <!-- build screen --> |
| 18 | 18 | |
| 19 | | <view name="Internal Layout"> |
| 19 | <view name="Test Layout"> |
| 20 | 20 | <bounds left="0" right="64" top="0" bottom="64" /> |
| 21 | 21 | <bezel element="static_black"> |
| 22 | 22 | <bounds left="0" right="64" top="0" bottom="64" /> |
| 23 | 23 | </bezel> |
| 24 | 24 | |
| 25 | <bezel name="digit8" element="digit"><bounds x="0" y="0" width="10" height="15" /></bezel> |
| 25 | 26 | |
| 27 | <!-- 7*9 matrix --> |
| 28 | |
| 29 | <bezel name="lamp0" element="led"><bounds x="0" y="20" width="1" height="1" /></bezel> |
| 30 | <bezel name="lamp1" element="led"><bounds x="2" y="20" width="1" height="1" /></bezel> |
| 31 | <bezel name="lamp2" element="led"><bounds x="4" y="20" width="1" height="1" /></bezel> |
| 32 | <bezel name="lamp3" element="led"><bounds x="6" y="20" width="1" height="1" /></bezel> |
| 33 | <bezel name="lamp4" element="led"><bounds x="8" y="20" width="1" height="1" /></bezel> |
| 34 | <bezel name="lamp5" element="led"><bounds x="10" y="20" width="1" height="1" /></bezel> |
| 35 | <bezel name="lamp6" element="led"><bounds x="12" y="20" width="1" height="1" /></bezel> |
| 36 | |
| 37 | <bezel name="lamp10" element="led"><bounds x="0" y="22" width="1" height="1" /></bezel> |
| 38 | <bezel name="lamp11" element="led"><bounds x="2" y="22" width="1" height="1" /></bezel> |
| 39 | <bezel name="lamp12" element="led"><bounds x="4" y="22" width="1" height="1" /></bezel> |
| 40 | <bezel name="lamp13" element="led"><bounds x="6" y="22" width="1" height="1" /></bezel> |
| 41 | <bezel name="lamp14" element="led"><bounds x="8" y="22" width="1" height="1" /></bezel> |
| 42 | <bezel name="lamp15" element="led"><bounds x="10" y="22" width="1" height="1" /></bezel> |
| 43 | <bezel name="lamp16" element="led"><bounds x="12" y="22" width="1" height="1" /></bezel> |
| 44 | |
| 45 | <bezel name="lamp20" element="led"><bounds x="0" y="24" width="1" height="1" /></bezel> |
| 46 | <bezel name="lamp21" element="led"><bounds x="2" y="24" width="1" height="1" /></bezel> |
| 47 | <bezel name="lamp22" element="led"><bounds x="4" y="24" width="1" height="1" /></bezel> |
| 48 | <bezel name="lamp23" element="led"><bounds x="6" y="24" width="1" height="1" /></bezel> |
| 49 | <bezel name="lamp24" element="led"><bounds x="8" y="24" width="1" height="1" /></bezel> |
| 50 | <bezel name="lamp25" element="led"><bounds x="10" y="24" width="1" height="1" /></bezel> |
| 51 | <bezel name="lamp26" element="led"><bounds x="12" y="24" width="1" height="1" /></bezel> |
| 52 | |
| 53 | <bezel name="lamp30" element="led"><bounds x="0" y="26" width="1" height="1" /></bezel> |
| 54 | <bezel name="lamp31" element="led"><bounds x="2" y="26" width="1" height="1" /></bezel> |
| 55 | <bezel name="lamp32" element="led"><bounds x="4" y="26" width="1" height="1" /></bezel> |
| 56 | <bezel name="lamp33" element="led"><bounds x="6" y="26" width="1" height="1" /></bezel> |
| 57 | <bezel name="lamp34" element="led"><bounds x="8" y="26" width="1" height="1" /></bezel> |
| 58 | <bezel name="lamp35" element="led"><bounds x="10" y="26" width="1" height="1" /></bezel> |
| 59 | <bezel name="lamp36" element="led"><bounds x="12" y="26" width="1" height="1" /></bezel> |
| 60 | |
| 61 | <bezel name="lamp40" element="led"><bounds x="0" y="28" width="1" height="1" /></bezel> |
| 62 | <bezel name="lamp41" element="led"><bounds x="2" y="28" width="1" height="1" /></bezel> |
| 63 | <bezel name="lamp42" element="led"><bounds x="4" y="28" width="1" height="1" /></bezel> |
| 64 | <bezel name="lamp43" element="led"><bounds x="6" y="28" width="1" height="1" /></bezel> |
| 65 | <bezel name="lamp44" element="led"><bounds x="8" y="28" width="1" height="1" /></bezel> |
| 66 | <bezel name="lamp45" element="led"><bounds x="10" y="28" width="1" height="1" /></bezel> |
| 67 | <bezel name="lamp46" element="led"><bounds x="12" y="28" width="1" height="1" /></bezel> |
| 68 | |
| 69 | <bezel name="lamp50" element="led"><bounds x="0" y="30" width="1" height="1" /></bezel> |
| 70 | <bezel name="lamp51" element="led"><bounds x="2" y="30" width="1" height="1" /></bezel> |
| 71 | <bezel name="lamp52" element="led"><bounds x="4" y="30" width="1" height="1" /></bezel> |
| 72 | <bezel name="lamp53" element="led"><bounds x="6" y="30" width="1" height="1" /></bezel> |
| 73 | <bezel name="lamp54" element="led"><bounds x="8" y="30" width="1" height="1" /></bezel> |
| 74 | <bezel name="lamp55" element="led"><bounds x="10" y="30" width="1" height="1" /></bezel> |
| 75 | <bezel name="lamp56" element="led"><bounds x="12" y="30" width="1" height="1" /></bezel> |
| 76 | |
| 77 | <bezel name="lamp60" element="led"><bounds x="0" y="32" width="1" height="1" /></bezel> |
| 78 | <bezel name="lamp61" element="led"><bounds x="2" y="32" width="1" height="1" /></bezel> |
| 79 | <bezel name="lamp62" element="led"><bounds x="4" y="32" width="1" height="1" /></bezel> |
| 80 | <bezel name="lamp63" element="led"><bounds x="6" y="32" width="1" height="1" /></bezel> |
| 81 | <bezel name="lamp64" element="led"><bounds x="8" y="32" width="1" height="1" /></bezel> |
| 82 | <bezel name="lamp65" element="led"><bounds x="10" y="32" width="1" height="1" /></bezel> |
| 83 | <bezel name="lamp66" element="led"><bounds x="12" y="32" width="1" height="1" /></bezel> |
| 84 | |
| 85 | <bezel name="lamp70" element="led"><bounds x="0" y="34" width="1" height="1" /></bezel> |
| 86 | <bezel name="lamp71" element="led"><bounds x="2" y="34" width="1" height="1" /></bezel> |
| 87 | <bezel name="lamp72" element="led"><bounds x="4" y="34" width="1" height="1" /></bezel> |
| 88 | <bezel name="lamp73" element="led"><bounds x="6" y="34" width="1" height="1" /></bezel> |
| 89 | <bezel name="lamp74" element="led"><bounds x="8" y="34" width="1" height="1" /></bezel> |
| 90 | <bezel name="lamp75" element="led"><bounds x="10" y="34" width="1" height="1" /></bezel> |
| 91 | <bezel name="lamp76" element="led"><bounds x="12" y="34" width="1" height="1" /></bezel> |
| 92 | |
| 93 | <bezel name="lamp80" element="led"><bounds x="0" y="36" width="1" height="1" /></bezel> |
| 94 | <bezel name="lamp81" element="led"><bounds x="2" y="36" width="1" height="1" /></bezel> |
| 95 | <bezel name="lamp82" element="led"><bounds x="4" y="36" width="1" height="1" /></bezel> |
| 96 | <bezel name="lamp83" element="led"><bounds x="6" y="36" width="1" height="1" /></bezel> |
| 97 | <bezel name="lamp84" element="led"><bounds x="8" y="36" width="1" height="1" /></bezel> |
| 98 | <bezel name="lamp85" element="led"><bounds x="10" y="36" width="1" height="1" /></bezel> |
| 99 | <bezel name="lamp86" element="led"><bounds x="12" y="36" width="1" height="1" /></bezel> |
| 100 | |
| 101 | <bezel name="lamp90" element="led"><bounds x="0" y="38" width="1" height="1" /></bezel> |
| 102 | <bezel name="lamp91" element="led"><bounds x="2" y="38" width="1" height="1" /></bezel> |
| 103 | <bezel name="lamp92" element="led"><bounds x="4" y="38" width="1" height="1" /></bezel> |
| 104 | <bezel name="lamp93" element="led"><bounds x="6" y="38" width="1" height="1" /></bezel> |
| 105 | <bezel name="lamp94" element="led"><bounds x="8" y="38" width="1" height="1" /></bezel> |
| 106 | <bezel name="lamp95" element="led"><bounds x="10" y="38" width="1" height="1" /></bezel> |
| 107 | <bezel name="lamp96" element="led"><bounds x="12" y="38" width="1" height="1" /></bezel> |
| 108 | |
| 109 | |
| 26 | 110 | </view> |
| 27 | 111 | </mamelayout> |