trunk/src/mame/layout/techno.lay
| r17710 | r17711 | |
| 6 | 6 | |
| 7 | 7 | <element name="digit" defstate="0"> |
| 8 | 8 | <led16seg> |
| 9 | | <color red="1.0" green="1.0" blue="0.0" /> |
| 9 | <color red="1.0" green="0.75" blue="0.0" /> |
| 10 | 10 | </led16seg> |
| 11 | 11 | </element> |
| 12 | 12 | |
| r17710 | r17711 | |
| 21 | 21 | |
| 22 | 22 | <!-- Background --> |
| 23 | 23 | <backdrop element="background"> |
| 24 | | <bounds left="0" top="35" right="714" bottom="394" /> |
| 24 | <bounds left="0" top="35" right="714" bottom="154" /> |
| 25 | 25 | </backdrop> |
| 26 | 26 | |
| 27 | 27 | <!-- LEDs --> |
| r17710 | r17711 | |
| 80 | 80 | <!-- Bottom Row --> |
| 81 | 81 | |
| 82 | 82 | <bezel name="digit45" element="digit"> |
| 83 | | <bounds left="10" top="105" right="44" bottom="184" /> |
| 83 | <bounds left="10" top="105" right="44" bottom="144" /> |
| 84 | 84 | </bezel> |
| 85 | 85 | <bezel name="digit44" element="digit"> |
| 86 | | <bounds left="54" top="105" right="88" bottom="184" /> |
| 86 | <bounds left="54" top="105" right="88" bottom="144" /> |
| 87 | 87 | </bezel> |
| 88 | 88 | <bezel name="digit43" element="digit"> |
| 89 | | <bounds left="98" top="105" right="132" bottom="184" /> |
| 89 | <bounds left="98" top="105" right="132" bottom="144" /> |
| 90 | 90 | </bezel> |
| 91 | 91 | <bezel name="digit42" element="digit"> |
| 92 | | <bounds left="142" top="105" right="176" bottom="184" /> |
| 92 | <bounds left="142" top="105" right="176" bottom="144" /> |
| 93 | 93 | </bezel> |
| 94 | 94 | <bezel name="digit41" element="digit"> |
| 95 | | <bounds left="186" top="105" right="220" bottom="184" /> |
| 95 | <bounds left="186" top="105" right="220" bottom="144" /> |
| 96 | 96 | </bezel> |
| 97 | 97 | <bezel name="digit40" element="digit"> |
| 98 | | <bounds left="230" top="105" right="264" bottom="184" /> |
| 98 | <bounds left="230" top="105" right="264" bottom="144" /> |
| 99 | 99 | </bezel> |
| 100 | 100 | <bezel name="digit39" element="digit"> |
| 101 | | <bounds left="274" top="105" right="308" bottom="184" /> |
| 101 | <bounds left="274" top="105" right="308" bottom="144" /> |
| 102 | 102 | </bezel> |
| 103 | 103 | <bezel name="digit38" element="digit"> |
| 104 | | <bounds left="318" top="105" right="352" bottom="184" /> |
| 104 | <bounds left="318" top="105" right="352" bottom="144" /> |
| 105 | 105 | </bezel> |
| 106 | 106 | <bezel name="digit37" element="digit"> |
| 107 | | <bounds left="362" top="105" right="396" bottom="184" /> |
| 107 | <bounds left="362" top="105" right="396" bottom="144" /> |
| 108 | 108 | </bezel> |
| 109 | 109 | <bezel name="digit36" element="digit"> |
| 110 | | <bounds left="406" top="105" right="440" bottom="184" /> |
| 110 | <bounds left="406" top="105" right="440" bottom="144" /> |
| 111 | 111 | </bezel> |
| 112 | 112 | <bezel name="digit35" element="digit"> |
| 113 | | <bounds left="450" top="105" right="484" bottom="184" /> |
| 113 | <bounds left="450" top="105" right="484" bottom="144" /> |
| 114 | 114 | </bezel> |
| 115 | 115 | <bezel name="digit34" element="digit"> |
| 116 | | <bounds left="494" top="105" right="528" bottom="184" /> |
| 116 | <bounds left="494" top="105" right="528" bottom="144" /> |
| 117 | 117 | </bezel> |
| 118 | 118 | <bezel name="digit33" element="digit"> |
| 119 | | <bounds left="538" top="105" right="572" bottom="184" /> |
| 119 | <bounds left="538" top="105" right="572" bottom="144" /> |
| 120 | 120 | </bezel> |
| 121 | 121 | <bezel name="digit32" element="digit"> |
| 122 | | <bounds left="582" top="105" right="616" bottom="184" /> |
| 122 | <bounds left="582" top="105" right="616" bottom="144" /> |
| 123 | 123 | </bezel> |
| 124 | 124 | <bezel name="digit31" element="digit"> |
| 125 | | <bounds left="626" top="105" right="660" bottom="184" /> |
| 125 | <bounds left="626" top="105" right="660" bottom="144" /> |
| 126 | 126 | </bezel> |
| 127 | 127 | <bezel name="digit30" element="digit"> |
| 128 | | <bounds left="670" top="105" right="704" bottom="184" /> |
| 128 | <bounds left="670" top="105" right="704" bottom="144" /> |
| 129 | 129 | </bezel> |
| 130 | 130 | </view> |
| 131 | 131 | </mamelayout> |
trunk/src/mame/drivers/techno.c
| r17710 | r17711 | |
| 1 | | /* |
| 1 | /********************************************************************************** |
| 2 | |
| 2 | 3 | Pinball |
| 3 | 4 | Technoplay "2-2C 8008 LS" (68000 CPU) |
| 4 | | */ |
| 5 | Schematic and PinMAME used as references |
| 5 | 6 | |
| 7 | ***********************************************************************************/ |
| 6 | 8 | |
| 9 | |
| 7 | 10 | #include "emu.h" |
| 8 | 11 | #include "cpu/m68000/m68000.h" |
| 12 | #include "techno.lh" |
| 9 | 13 | |
| 10 | 14 | class techno_state : public driver_device |
| 11 | 15 | { |
| 12 | 16 | public: |
| 13 | 17 | techno_state(const machine_config &mconfig, device_type type, const char *tag) |
| 14 | 18 | : driver_device(mconfig, type, tag), |
| 15 | | m_maincpu(*this, "maincpu") |
| 19 | m_maincpu(*this, "maincpu") |
| 16 | 20 | { } |
| 17 | 21 | |
| 22 | DECLARE_WRITE16_MEMBER(disp1_w); |
| 23 | DECLARE_WRITE16_MEMBER(disp2_w); |
| 24 | DECLARE_WRITE16_MEMBER(sound_w); |
| 25 | UINT16 m_digit_1; |
| 26 | UINT16 m_digit_2; |
| 27 | UINT16 m_segment_1; |
| 28 | UINT16 m_segment_2; |
| 29 | UINT8 m_vector; |
| 18 | 30 | protected: |
| 19 | 31 | |
| 20 | 32 | // devices |
| r17710 | r17711 | |
| 22 | 34 | |
| 23 | 35 | // driver_device overrides |
| 24 | 36 | virtual void machine_reset(); |
| 37 | private: |
| 38 | bool m_digwait; |
| 25 | 39 | public: |
| 26 | 40 | DECLARE_DRIVER_INIT(techno); |
| 27 | 41 | }; |
| 28 | 42 | |
| 29 | 43 | |
| 30 | 44 | static ADDRESS_MAP_START( techno_map, AS_PROGRAM, 16, techno_state ) |
| 31 | | AM_RANGE(0x0000, 0xffff) AM_ROM |
| 32 | | AM_RANGE(0x4000, 0x5fff) AM_RAM |
| 33 | | AM_RANGE(0x6000, 0xffff) AM_ROM |
| 34 | | AM_RANGE(0x10000, 0x17801) AM_NOP // io |
| 45 | ADDRESS_MAP_GLOBAL_MASK(0x1ffff) |
| 46 | AM_RANGE(0x00000, 0x03fff) AM_ROM |
| 47 | AM_RANGE(0x04000, 0x05fff) AM_RAM // battery backed-up |
| 48 | AM_RANGE(0x06000, 0x0ffff) AM_ROM |
| 49 | //AM_RANGE(0x14000, 0x147ff) AM_READWRITE(key_r,lamp1_w) |
| 50 | //AM_RANGE(0x14800, 0x14fff) AM_READWRITE(sound_r,lamp2_w) |
| 51 | //AM_RANGE(0x15000, 0x157ff) AM_READWRITE(rtrg_r,sol1_w) |
| 52 | //AM_RANGE(0x15800, 0x15fff) AM_WRITE(sol2_w) |
| 53 | AM_RANGE(0x16000, 0x167ff) AM_WRITE(sound_w) |
| 54 | AM_RANGE(0x16800, 0x16fff) AM_WRITE(disp1_w) |
| 55 | AM_RANGE(0x17000, 0x177ff) AM_WRITE(disp2_w) |
| 56 | //AM_RANGE(0x17800, 0x17fff) AM_WRITE(setout_w) |
| 35 | 57 | ADDRESS_MAP_END |
| 36 | 58 | |
| 59 | //static ADDRESS_MAP_START( techno_sub_map, AS_IO, 8, techno_state ) |
| 60 | // no ram here, must be internal to the cpu |
| 61 | // AM_RANGE(0x0000, 0x3fff) AM_READ(rd_r) // to TKY2016A audio processor which has its own 3.58MHz clock |
| 62 | // AM_RANGE(0x4000, 0x7fff) AM_WRITE(wr_w) // A11=LED;A12=WR2 (DAC) ;A13=WR1 (TKY2016A as above) |
| 63 | // AM_RANGE(0x4000, 0xbfff) AM_ROM // 4000-7FFF is same as 8000-BFFF; 4x 16k ROMS bankswitched |
| 64 | // AM_RANGE(0xc000, 0xffff) AM_ROM // another 16k ROM |
| 65 | //ADDRESS_MAP_END |
| 66 | |
| 67 | WRITE16_MEMBER( techno_state::disp1_w ) |
| 68 | { |
| 69 | m_segment_1 = data; |
| 70 | output_set_digit_value(m_digit_1, m_segment_1); |
| 71 | } |
| 72 | |
| 73 | WRITE16_MEMBER( techno_state::disp2_w ) |
| 74 | { |
| 75 | m_segment_2 = data; |
| 76 | output_set_digit_value(m_digit_1+30, m_segment_2); |
| 77 | } |
| 78 | |
| 79 | WRITE16_MEMBER( techno_state::sound_w ) |
| 80 | { |
| 81 | if (m_digwait) |
| 82 | m_digit_1 = (m_digit_1+1) % 16; |
| 83 | |
| 84 | if (BIT(data, 10)) |
| 85 | { |
| 86 | m_digwait = 1; |
| 87 | m_digit_1 = 0; |
| 88 | } |
| 89 | } |
| 90 | |
| 37 | 91 | static INPUT_PORTS_START( techno ) |
| 38 | 92 | INPUT_PORTS_END |
| 39 | 93 | |
| 94 | static INTERRUPT_GEN( techno_intgen ) |
| 95 | { |
| 96 | techno_state *state = device->machine().driver_data<techno_state>(); |
| 97 | // vectors change per int: 88-8F, 98-9F) |
| 98 | if ((state->m_vector & 7) == 7) |
| 99 | state->m_vector = (state->m_vector ^ 0x10) & 0x97; |
| 100 | state->m_vector++; |
| 101 | generic_pulse_irq_line_and_vector(device, 1, state->m_vector, 1); |
| 102 | //device_set_input_line_and_vector(device, 1, ASSERT_LINE, state->m_vector); |
| 103 | } |
| 104 | |
| 40 | 105 | void techno_state::machine_reset() |
| 41 | 106 | { |
| 107 | m_vector = 0x88; |
| 42 | 108 | } |
| 43 | 109 | |
| 44 | 110 | DRIVER_INIT_MEMBER(techno_state,techno) |
| r17710 | r17711 | |
| 49 | 115 | /* basic machine hardware */ |
| 50 | 116 | MCFG_CPU_ADD("maincpu", M68000, 8000000) |
| 51 | 117 | MCFG_CPU_PROGRAM_MAP(techno_map) |
| 118 | MCFG_CPU_PERIODIC_INT(techno_intgen, 8000000/256) // 31250Hz |
| 119 | //MCFG_CPU_ADD("cpu2", TMS7000, 4000000) |
| 120 | //MCFG_CPU_PROGRAM_MAP(techno_sub_map) |
| 121 | |
| 122 | /* Video */ |
| 123 | MCFG_DEFAULT_LAYOUT(layout_techno) |
| 52 | 124 | MACHINE_CONFIG_END |
| 53 | 125 | |
| 54 | 126 | ROM_START(xforce) |
| 55 | 127 | ROM_REGION(0x1000000, "maincpu", 0) |
| 56 | 128 | ROM_LOAD16_BYTE("ic15", 0x000001, 0x8000, CRC(fb8d2853) SHA1(0b0004abfe32edfd3ac15d66f90695d264c97eba)) |
| 57 | 129 | ROM_LOAD16_BYTE("ic17", 0x000000, 0x8000, CRC(122ef649) SHA1(0b425f81869bc359841377a91c39f44395502bff)) |
| 130 | |
| 131 | //ROM_REGION(0x20000), "cpu2", 0) |
| 132 | // 5 x 27256 roms are undumped |
| 58 | 133 | ROM_END |
| 59 | 134 | |
| 60 | | GAME(1987, xforce, 0, techno, techno, techno_state, techno, ROT0, "Tecnoplay", "X Force", GAME_IS_SKELETON_MECHANICAL) |
| 135 | GAME(1987, xforce, 0, techno, techno, techno_state, techno, ROT0, "Tecnoplay", "X Force", GAME_IS_SKELETON_MECHANICAL) |