Previous 199869 Revisions Next

r31882 Wednesday 3rd September, 2014 at 00:21:54 UTC by Robbbert
inder.c : placeholder
[src/mame]mame.mak
[src/mame/drivers]inder.c
[src/mame/layout]inder.lay*

trunk/src/mame/mame.mak
r31881r31882
26482648
26492649$(DRIVERS)/imolagp.o:   $(LAYOUT)/imolagp.lh
26502650
2651$(DRIVERS)/inder.o:     $(LAYOUT)/inder.lh
2652
26512653$(DRIVERS)/jankenmn.o:  $(LAYOUT)/jankenmn.lh
26522654
26532655$(DRIVERS)/jeutel.o:    $(LAYOUT)/jeutel.lh
trunk/src/mame/layout/inder.lay
r0r31882
1<!-- Inder copied from jeutel.lay -->
2
3<!-- 2014-09-03: Initial version.  [Robbbert] -->
4
5<mamelayout version="2">
6
7   <element name="digit" defstate="0">
8      <led7seg>
9         <color red="1.0" green="0.25" blue="0.0" />
10      </led7seg>
11   </element>
12   <element name="red_led">
13      <disk><color red="1.0" green="0.0" blue="0.0" /></disk>
14   </element>
15   <element name="background">
16      <rect>
17         <bounds left="0" top="0" right="1" bottom="1" />
18         <color red="0.0" green="0.0" blue="0.0" />
19      </rect>
20   </element>
21   <element name="P0"><text string="Ball / Match"><color red="1.0" green="1.0" blue="1.0" /></text></element>
22   <element name="P1"><text string="Credits"><color red="1.0" green="1.0" blue="1.0" /></text></element>
23   <element name="P3"><text string="Player 1"><color red="1.0" green="1.0" blue="1.0" /></text></element>
24   <element name="P4"><text string="Player 2"><color red="1.0" green="1.0" blue="1.0" /></text></element>
25   <element name="P5"><text string="Player 3"><color red="1.0" green="1.0" blue="1.0" /></text></element>
26   <element name="P6"><text string="Player 4"><color red="1.0" green="1.0" blue="1.0" /></text></element>
27
28   <view name="Default Layout">
29
30      <!-- Background -->
31      <backdrop element="background">
32         <bounds left="0" top="20" right="318" bottom="394" />
33      </backdrop>
34
35      <!-- LEDs -->
36
37      <!-- Player 1 Score -->
38
39      <bezel name="digit6" element="digit">
40         <bounds left="10" top="45" right="44" bottom="84" />
41      </bezel>
42      <bezel name="digit5" element="digit">
43         <bounds left="54" top="45" right="88" bottom="84" />
44      </bezel>
45      <bezel name="digit4" element="digit">
46         <bounds left="98" top="45" right="132" bottom="84" />
47      </bezel>
48      <bezel name="digit3" element="digit">
49         <bounds left="142" top="45" right="176" bottom="84" />
50      </bezel>
51      <bezel name="digit2" element="digit">
52         <bounds left="186" top="45" right="220" bottom="84" />
53      </bezel>
54      <bezel name="digit1" element="digit">
55         <bounds left="230" top="45" right="264" bottom="84" />
56      </bezel>
57      <bezel name="digit0" element="digit">
58         <bounds left="274" top="45" right="308" bottom="84" />
59      </bezel>
60
61      <!-- Player 2 Score -->
62      <bezel name="digit16" element="digit">
63         <bounds left="10" top="105" right="44" bottom="144" />
64      </bezel>
65      <bezel name="digit15" element="digit">
66         <bounds left="54" top="105" right="88" bottom="144" />
67      </bezel>
68      <bezel name="digit14" element="digit">
69         <bounds left="98" top="105" right="132" bottom="144" />
70      </bezel>
71      <bezel name="digit13" element="digit">
72         <bounds left="142" top="105" right="176" bottom="144" />
73      </bezel>
74      <bezel name="digit12" element="digit">
75         <bounds left="186" top="105" right="220" bottom="144" />
76      </bezel>
77      <bezel name="digit11" element="digit">
78         <bounds left="230" top="105" right="264" bottom="144" />
79      </bezel>
80      <bezel name="digit10" element="digit">
81         <bounds left="274" top="105" right="308" bottom="144" />
82      </bezel>
83
84      <!-- Player 3 Score -->
85      <bezel name="digit26" element="digit">
86         <bounds left="10" top="165" right="44" bottom="204" />
87      </bezel>
88      <bezel name="digit25" element="digit">
89         <bounds left="54" top="165" right="88" bottom="204" />
90      </bezel>
91      <bezel name="digit24" element="digit">
92         <bounds left="98" top="165" right="132" bottom="204" />
93      </bezel>
94      <bezel name="digit23" element="digit">
95         <bounds left="142" top="165" right="176" bottom="204" />
96      </bezel>
97      <bezel name="digit22" element="digit">
98         <bounds left="186" top="165" right="220" bottom="204" />
99      </bezel>
100      <bezel name="digit21" element="digit">
101         <bounds left="230" top="165" right="264" bottom="204" />
102      </bezel>
103      <bezel name="digit20" element="digit">
104         <bounds left="274" top="165" right="308" bottom="204" />
105      </bezel>
106
107      <!-- Player 4 Score -->
108      <bezel name="digit36" element="digit">
109         <bounds left="10" top="225" right="44" bottom="264" />
110      </bezel>
111      <bezel name="digit35" element="digit">
112         <bounds left="54" top="225" right="88" bottom="264" />
113      </bezel>
114      <bezel name="digit34" element="digit">
115         <bounds left="98" top="225" right="132" bottom="264" />
116      </bezel>
117      <bezel name="digit33" element="digit">
118         <bounds left="142" top="225" right="176" bottom="264" />
119      </bezel>
120      <bezel name="digit32" element="digit">
121         <bounds left="186" top="225" right="220" bottom="264" />
122      </bezel>
123      <bezel name="digit31" element="digit">
124         <bounds left="230" top="225" right="264" bottom="264" />
125      </bezel>
126      <bezel name="digit30" element="digit">
127         <bounds left="274" top="225" right="308" bottom="264" />
128      </bezel>
129
130      <!-- Credits and Balls -->
131      <bezel name="digit41" element="digit">
132         <bounds left="30" top="345" right="64" bottom="384" />
133      </bezel>
134      <bezel name="digit40" element="digit">
135         <bounds left="69" top="345" right="103" bottom="384" />
136      </bezel>
137      <bezel name="digit42" element="digit">
138         <bounds left="171" top="345" right="205" bottom="384" />
139      </bezel>
140      <bezel name="digit45" element="digit">
141         <bounds left="210" top="345" right="244" bottom="384" />
142      </bezel>
143      <bezel element="P1"><bounds left="200" right="258" top="330" bottom="342" /></bezel>
144      <bezel element="P0"><bounds left="50" right="108" top="330" bottom="342" /></bezel>
145      <bezel name="text3" element="P3"><bounds left="100" right="180" top="30" bottom="42" /></bezel>
146      <bezel name="text2" element="P4"><bounds left="100" right="180" top="90" bottom="102" /></bezel>
147      <bezel name="text1" element="P5"><bounds left="100" right="180" top="150" bottom="162" /></bezel>
148      <bezel name="text0" element="P6"><bounds left="100" right="180" top="210" bottom="222" /></bezel>
149   </view>
150</mamelayout>
Property changes on: trunk/src/mame/layout/inder.lay
Added: svn:eol-style
   + native
Added: svn:mime-type
   + text/plain
trunk/src/mame/drivers/inder.c
r31881r31882
1/*******************************************************************************************************
12
2#include "emu.h"
3  PINBALL
4  Inder S.A. of Spain
5
6  All manuals are in Spanish (including the 'English' ones), so some guesswork will be needed.
7  The schematics for Brave Team, Canasta are too blurry to read.
8
9********************************************************************************************************/
10
11#include "machine/genpin.h"
312#include "cpu/z80/z80.h"
13#include "machine/i8255.h"
14#include "inder.lh"
415
5class inder_state : public driver_device
16class inder_state : public genpin_class
617{
718public:
819   inder_state(const machine_config &mconfig, device_type type, const char *tag)
9      : driver_device(mconfig, type, tag),
10         m_maincpu(*this, "maincpu")
20      : genpin_class(mconfig, type, tag)
21      , m_maincpu(*this, "maincpu")
22      , m_switches(*this, "SW")
1123   { }
1224
13protected:
14
15   // devices
25   DECLARE_READ8_MEMBER(io_r);
26   DECLARE_WRITE8_MEMBER(io_w);
27   DECLARE_WRITE8_MEMBER(disp_w);
28   DECLARE_DRIVER_INIT(inder);
29private:
30   UINT8 m_row;
31   UINT8 m_segment[5];
32   virtual void machine_reset();
1633   required_device<cpu_device> m_maincpu;
17
18   // driver_device overrides
19   virtual void machine_reset();
20public:
21   DECLARE_DRIVER_INIT(inder);
34   required_ioport_array<11> m_switches;
2235};
2336
2437static ADDRESS_MAP_START( inder_map, AS_PROGRAM, 8, inder_state )
25   AM_RANGE(0x0000, 0xffff) AM_NOP
26   AM_RANGE(0x0000, 0x3fff) AM_ROM
38   AM_RANGE(0x0000, 0x1fff) AM_ROM
39   AM_RANGE(0x2000, 0x20ff) AM_WRITE(disp_w)
40   AM_RANGE(0x4000, 0x43ff) AM_RAM // pair of 2114
41   AM_RANGE(0x4400, 0x44ff) AM_RAM AM_SHARE("nvram") // pair of 5101, battery-backed
42   AM_RANGE(0x4800, 0x480a) AM_READWRITE(io_r,io_w)
43   //AM_RANGE(0x04, 0x07) AM_DEVREADWRITE("ppi", i8255_device, read, write)
2744ADDRESS_MAP_END
2845
2946static INPUT_PORTS_START( inder )
47   PORT_START("TEST")
48   //PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Self Test") PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, inder_state, self_test, 0)
49   //PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Activity") PORT_IMPULSE(1) PORT_CHANGED_MEMBER(DEVICE_SELF, inder_state, activity_test, 0)
50
51   PORT_START("SW.0")
52   PORT_DIPNAME( 0x1f, 0x02, "Coin Slot 1")
53   PORT_DIPSETTING(    0x00, DEF_STR( 2C_3C )) // same as 01
54   PORT_DIPSETTING(    0x02, DEF_STR( 1C_1C ))
55   PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ))
56   PORT_DIPSETTING(    0x04, DEF_STR( 1C_2C ))
57   PORT_DIPSETTING(    0x05, DEF_STR( 2C_2C ))
58   PORT_DIPSETTING(    0x06, DEF_STR( 1C_3C ))
59   PORT_DIPSETTING(    0x07, DEF_STR( 2C_3C ))
60   PORT_DIPSETTING(    0x08, DEF_STR( 1C_4C ))
61   PORT_DIPSETTING(    0x09, DEF_STR( 2C_4C ))
62   PORT_DIPSETTING(    0x0a, DEF_STR( 1C_5C ))
63   PORT_DIPSETTING(    0x0b, DEF_STR( 2C_5C ))
64   PORT_DIPSETTING(    0x0c, DEF_STR( 1C_6C ))
65   PORT_DIPSETTING(    0x0d, DEF_STR( 2C_6C ))
66   PORT_DIPSETTING(    0x0e, DEF_STR( 1C_7C ))
67   PORT_DIPSETTING(    0x0f, DEF_STR( 2C_7C ))
68   PORT_DIPSETTING(    0x10, DEF_STR( 1C_8C ))
69   PORT_DIPSETTING(    0x11, DEF_STR( 2C_8C ))
70   PORT_DIPSETTING(    0x12, DEF_STR( 1C_9C ))
71   PORT_DIPSETTING(    0x13, "2 coins 9 credits")
72   PORT_DIPSETTING(    0x14, "1 coin 10 credits")
73   PORT_DIPSETTING(    0x15, "2 coins 10 credits")
74   PORT_DIPSETTING(    0x16, "1 coin 11 credits")
75   PORT_DIPSETTING(    0x17, "2 coins 11 credits")
76   PORT_DIPSETTING(    0x18, "1 coin 12 credits")
77   PORT_DIPSETTING(    0x19, "2 coins 12 credits")
78   PORT_DIPSETTING(    0x1a, "1 coin 13 credits")
79   PORT_DIPSETTING(    0x1b, "2 coins 13 credits")
80   PORT_DIPSETTING(    0x1c, "1 coin 14 credits")
81   PORT_DIPSETTING(    0x1d, "2 coins 14 credits")
82   PORT_DIPSETTING(    0x1e, "1 coin 15 credits")
83   PORT_DIPSETTING(    0x1f, "2 coins 15 credits")
84   PORT_DIPNAME( 0x60, 0x40, "Award for beating high score")
85   PORT_DIPSETTING(    0x00, "Nothing")
86   PORT_DIPSETTING(    0x20, "1 free game")
87   PORT_DIPSETTING(    0x40, "2 free games")
88   PORT_DIPSETTING(    0x60, "3 free games")
89   PORT_DIPNAME( 0x80, 0x00, "Melody option 1")
90   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
91   PORT_DIPSETTING(    0x80, DEF_STR( On ))
92
93   PORT_START("SW.1")
94   PORT_DIPNAME( 0x1f, 0x02, "Coin Slot 3")
95   PORT_DIPSETTING(    0x00, DEF_STR( 2C_3C )) // same as 01
96   PORT_DIPSETTING(    0x02, DEF_STR( 1C_1C ))
97   PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ))
98   PORT_DIPSETTING(    0x04, DEF_STR( 1C_2C ))
99   PORT_DIPSETTING(    0x05, DEF_STR( 2C_2C ))
100   PORT_DIPSETTING(    0x06, DEF_STR( 1C_3C ))
101   PORT_DIPSETTING(    0x07, DEF_STR( 2C_3C ))
102   PORT_DIPSETTING(    0x08, DEF_STR( 1C_4C ))
103   PORT_DIPSETTING(    0x09, DEF_STR( 2C_4C ))
104   PORT_DIPSETTING(    0x0a, DEF_STR( 1C_5C ))
105   PORT_DIPSETTING(    0x0b, DEF_STR( 2C_5C ))
106   PORT_DIPSETTING(    0x0c, DEF_STR( 1C_6C ))
107   PORT_DIPSETTING(    0x0d, DEF_STR( 2C_6C ))
108   PORT_DIPSETTING(    0x0e, DEF_STR( 1C_7C ))
109   PORT_DIPSETTING(    0x0f, DEF_STR( 2C_7C ))
110   PORT_DIPSETTING(    0x10, DEF_STR( 1C_8C ))
111   PORT_DIPSETTING(    0x11, DEF_STR( 2C_8C ))
112   PORT_DIPSETTING(    0x12, DEF_STR( 1C_9C ))
113   PORT_DIPSETTING(    0x13, "2 coins 9 credits")
114   PORT_DIPSETTING(    0x14, "1 coin 10 credits")
115   PORT_DIPSETTING(    0x15, "2 coins 10 credits")
116   PORT_DIPSETTING(    0x16, "1 coin 11 credits")
117   PORT_DIPSETTING(    0x17, "2 coins 11 credits")
118   PORT_DIPSETTING(    0x18, "1 coin 12 credits")
119   PORT_DIPSETTING(    0x19, "2 coins 12 credits")
120   PORT_DIPSETTING(    0x1a, "1 coin 13 credits")
121   PORT_DIPSETTING(    0x1b, "2 coins 13 credits")
122   PORT_DIPSETTING(    0x1c, "1 coin 14 credits")
123   PORT_DIPSETTING(    0x1d, "2 coins 14 credits")
124   PORT_DIPSETTING(    0x1e, "1 coin 15 credits")
125   PORT_DIPSETTING(    0x1f, "2 coins 15 credits")
126   PORT_DIPNAME( 0x60, 0x60, "Award")
127   PORT_DIPSETTING(    0x00, "Nothing")
128   PORT_DIPSETTING(    0x40, "Extra Ball")
129   PORT_DIPSETTING(    0x60, "Free Game")
130   PORT_DIPNAME( 0x80, 0x00, "Balls")
131   PORT_DIPSETTING(    0x00, "3")
132   PORT_DIPSETTING(    0x80, "5")
133
134   PORT_START("SW.2")
135   PORT_DIPNAME( 0x07, 0x02, "Maximum Credits")
136   PORT_DIPSETTING(    0x00, "5")
137   PORT_DIPSETTING(    0x01, "10")
138   PORT_DIPSETTING(    0x02, "15")
139   PORT_DIPSETTING(    0x03, "20")
140   PORT_DIPSETTING(    0x04, "25")
141   PORT_DIPSETTING(    0x05, "30")
142   PORT_DIPSETTING(    0x06, "35")
143   PORT_DIPSETTING(    0x07, "40")
144   PORT_DIPNAME( 0x08, 0x08, "Credits displayed")
145   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
146   PORT_DIPSETTING(    0x08, DEF_STR( On ))
147   PORT_DIPNAME( 0x10, 0x10, "Match")
148   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
149   PORT_DIPSETTING(    0x10, DEF_STR( On ))
150   PORT_DIPNAME( 0x20, 0x00, "S22 (game specific)")
151   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
152   PORT_DIPSETTING(    0x20, DEF_STR( On ))
153   PORT_DIPNAME( 0x40, 0x00, "S23 (game specific)")
154   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
155   PORT_DIPSETTING(    0x40, DEF_STR( On ))
156   PORT_DIPNAME( 0x80, 0x00, "S24 (game specific)")
157   PORT_DIPSETTING(    0x00, DEF_STR( Off ))
158   PORT_DIPSETTING(    0x80, DEF_STR( On ))
159
160   PORT_START("SW.3")
161   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_SLASH)
162   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_COLON)
163   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_QUOTE)
164   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_BACKSLASH)
165   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_BACKSPACE)
166   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_START1 )
167   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_TILT )
168   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Outhole") PORT_CODE(KEYCODE_X)
169
170   PORT_START("SW.4")
171   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN3 )
172   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 )
173   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 )
174   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_L)
175   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_OPENBRACE)
176   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_CLOSEBRACE)
177   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_ENTER)
178   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_TILT1 ) PORT_NAME("Slam Tilt")
179
180   PORT_START("SW.5")
181   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_A)
182   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_S)
183   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_D)
184   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_F)
185   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_G)
186   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_H)
187   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_J)
188   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_K)
189
190   PORT_START("SW.6")
191   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_Q)
192   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_W)
193   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_E)
194   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_R)
195   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_Y)
196   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_U)
197   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_I)
198   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_O)
199
200   PORT_START("SW.7")
201   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_Z)
202   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_C)
203   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_V)
204   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_B)
205   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_N)
206   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_M)
207   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_COMMA)
208   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_CODE(KEYCODE_STOP)
209
210   PORT_START("SW.8")
211   PORT_START("SW.9")
212   PORT_START("SW.10")
30213INPUT_PORTS_END
31214
215READ8_MEMBER( inder_state::io_r )
216{
217   return m_switches[m_row]->read();
218}
219
220WRITE8_MEMBER( inder_state::io_w )
221{
222   m_row = offset;
223}
224
225WRITE8_MEMBER( inder_state::disp_w )
226{
227   UINT8 i;
228   if (offset < 5)
229      m_segment[offset] = data;
230   else
231   {
232      offset = (offset >> 3) & 7;
233      for (i = 0; i < 5; i++)
234         output_set_digit_value(i*10+offset, m_segment[i]);
235   }
236}
237
238
32239void inder_state::machine_reset()
33240{
241   m_row = 0;
34242}
35243
36DRIVER_INIT_MEMBER(inder_state,inder)
244DRIVER_INIT_MEMBER( inder_state, inder )
37245{
38246}
39247
40248static MACHINE_CONFIG_START( inder, inder_state )
41249   /* basic machine hardware */
42   MCFG_CPU_ADD("maincpu", Z80, 2500000)
250   MCFG_CPU_ADD("maincpu", Z80, XTAL_5MHz / 2)
43251   MCFG_CPU_PROGRAM_MAP(inder_map)
252   MCFG_CPU_PERIODIC_INT_DRIVER(inder_state, irq0_line_hold, 250) // NE556
253
254   MCFG_NVRAM_ADD_1FILL("nvram")
255
256   /* Video */
257   MCFG_DEFAULT_LAYOUT(layout_inder)
258
259   /* Sound */
260   MCFG_FRAGMENT_ADD( genpin_audio )
261
262   /* Devices */
263   MCFG_DEVICE_ADD("ppi", I8255A, 0 )
264   //MCFG_I8255_IN_PORTA_CB(READ8(inder_state, porta_r))
265   //MCFG_I8255_OUT_PORTA_CB(WRITE8(inder_state, porta_w))
266   //MCFG_I8255_IN_PORTB_CB(READ8(inder_state, portb_r))
267   //MCFG_I8255_OUT_PORTB_CB(WRITE8(inder_state, portb_w))
268   //MCFG_I8255_IN_PORTC_CB(READ8(inder_state, portc_r))
269   //MCFG_I8255_OUT_PORTC_CB(WRITE8(inder_state, portc_w))
44270MACHINE_CONFIG_END
45271
46272/*-------------------------------------------------------------------
r31881r31882
49275ROM_START(ind250cc)
50276   ROM_REGION(0x10000, "maincpu", 0)
51277   ROM_LOAD("0-250cc.bin", 0x0000, 0x2000, CRC(753d82ec) SHA1(61950336ba571f9f75f2fc31ccb7beaf4e05dddc))
278
52279   ROM_REGION(0x10000, "soundcpu", 0)
53280   ROM_LOAD("a-250cc.bin", 0x00000, 0x2000, CRC(b64bdafb) SHA1(eab6d54d34b44187d454c1999e4bcf455183d5a0))
281
54282   ROM_REGION(0x40000, "user1", 0)
55283   ROM_LOAD("b-250cc.bin", 0x00000, 0x10000, CRC(884c31c8) SHA1(23a838f1f0cb4905fa8552579b5452134f0fc9cc))
56284   ROM_LOAD("c-250cc.bin", 0x10000, 0x10000, CRC(5a1dfa1d) SHA1(4957431d87be0bb6d27910b718f7b7edcd405fff))
r31881r31882
65293   ROM_REGION(0x10000, "maincpu", 0)
66294   ROM_LOAD("atleta0.cpu", 0x0000, 0x2000, CRC(5f27240f) SHA1(8b77862fa311d703b3af8a1db17e13b17dca7ec6))
67295   ROM_LOAD("atleta1.cpu", 0x2000, 0x2000, CRC(12bef582) SHA1(45e1da318141d9228bc91a4e09fff6bf6f194235))
296
68297   ROM_REGION(0x10000, "soundcpu", 0)
69298   ROM_LOAD("atletaa.snd", 0x00000, 0x2000, CRC(051c5329) SHA1(339115af4a2e3f1f2c31073cbed1842518d5916e))
299
70300   ROM_REGION(0x40000, "user1", 0)
71301   ROM_LOAD("atletab.snd", 0x0000, 0x10000, CRC(7f155828) SHA1(e459c81b2c2e47d4276344d8d6a08c2c6242f941))
72302   ROM_LOAD("atletac.snd", 0x10000, 0x10000, CRC(20456363) SHA1(b226400dac35dedc039a7e03cb525c6033b24ebc))
r31881r31882
98328ROM_START(pinclown)
99329   ROM_REGION(0x10000, "maincpu", 0)
100330   ROM_LOAD("clown_a.bin", 0x0000, 0x2000, CRC(b7c3f9ab) SHA1(89ede10d9e108089da501b28f53cd7849f791a00))
331
101332   ROM_REGION(0x10000, "soundcpu", 0)
102333   ROM_LOAD("clown_b.bin", 0x00000, 0x2000, CRC(81a66302) SHA1(3d1243ae878747f20e54cd3322c5a54ded45ce21))
334
103335   ROM_REGION(0x40000, "user1", 0)
104336   ROM_LOAD("clown_c.bin", 0x00000, 0x10000, CRC(dff89319) SHA1(3745a02c3755d11ea7fb552f7a5df2e8bbee2c29))
105337   ROM_LOAD("clown_d.bin", 0x10000, 0x10000, CRC(cce4e1dc) SHA1(561c9331d2d110d34cf250cd7b25be16a72a1d79))
r31881r31882
113345ROM_START(corsario)
114346   ROM_REGION(0x10000, "maincpu", 0)
115347   ROM_LOAD("0-corsar.bin", 0x0000, 0x2000, CRC(800f6895) SHA1(a222e7ea959629202686815646fc917ffc5a646c))
348
116349   ROM_REGION(0x10000, "soundcpu", 0)
117350   ROM_LOAD("a-corsar.bin", 0x00000, 0x2000, CRC(e14b7918) SHA1(5a5fc308b0b70fe041b81071ba4820782b6ff988))
351
118352   ROM_REGION(0x40000, "user1", 0)
119353   ROM_LOAD("b-corsar.bin", 0x00000, 0x10000, CRC(7f155828) SHA1(e459c81b2c2e47d4276344d8d6a08c2c6242f941))
120354   ROM_LOAD("c-corsar.bin", 0x10000, 0x10000, CRC(047fd722) SHA1(2385507459f85c68141adc7084cb51dfa02462f6))
r31881r31882
128362ROM_START(mundial)
129363   ROM_REGION(0x10000, "maincpu", 0)
130364   ROM_LOAD("mundial.cpu", 0x0000, 0x2000, CRC(b615e69b) SHA1(d129eb6f2943af40ddffd0da1e7a711b58f65b3c))
365
131366   ROM_REGION(0x10000, "soundcpu", 0)
132367   ROM_LOAD("snd11.bin", 0x00000, 0x2000, CRC(2cebc1a5) SHA1(e0dae2b1ce31ff436b55ceb1ec71d39fc56694da))
368
133369   ROM_REGION(0x40000, "user1", 0)
134370   ROM_LOAD("snd24.bin", 0x00000, 0x10000, CRC(603bfc3c) SHA1(8badd9731243270ce5b8003373ed09ec7eac6ca6))
135371   ROM_LOAD("snd23.bin", 0x10000, 0x10000, CRC(2868ce6f) SHA1(317457763f764be08cbe6a5dd4008ba2257c9d78))
r31881r31882
144380   ROM_REGION(0x10000, "maincpu", 0)
145381   ROM_LOAD("lblr0.bin", 0x0000, 0x1000, CRC(2970f31a) SHA1(01fb774de19944bb3a19577921f84ab5b6746afb))
146382   ROM_LOAD("lblr1.bin", 0x1000, 0x1000, CRC(94787c10) SHA1(f2a5b07e57222ee811982eb220c239e34a358d6f))
383
147384   ROM_REGION(0x10000, "soundcpu", 0)
148385   ROM_LOAD("lblsr0.bin", 0x00000, 0x2000, CRC(cbaddf02) SHA1(8207eebc414d90328bfd521190d508b88bb870a2))
149386ROM_END
r31881r31882
154391ROM_START(pinmoonl)
155392   ROM_REGION(0x10000, "maincpu", 0)
156393   ROM_LOAD("ci-3.bin", 0x0000, 0x2000, CRC(56b901ae) SHA1(7269d1a100c378b21454f9f80f5bd9fbb736c222))
394
157395   ROM_REGION(0x10000, "soundcpu", 0)
158396   ROM_LOAD("ci-11.bin", 0x00000, 0x2000, CRC(a0732fe4) SHA1(54f62cd81bdb7e1924acb67ddbe43eb3d0a4eab0))
397
159398   ROM_REGION(0x40000, "user1", 0)
160399   ROM_LOAD("ci-24.bin", 0x00000, 0x10000, CRC(6406bd18) SHA1(ae45ed9e8b1fd278a36a68b780352dbbb6ee781e))
161400   ROM_LOAD("ci-23.bin", 0x10000, 0x10000, CRC(eac346da) SHA1(7c4c26ae089dda0dcd7300fd1ecabf5a91099c41))
r31881r31882
170409   ROM_REGION(0x10000, "maincpu", 0)
171410   ROM_LOAD("cpu_0.bin", 0x00000, 0x02000, CRC(7fe4335b) SHA1(52ef2efa29337eebd8c2c9a8aec864356a6829b6))
172411   ROM_LOAD("cpu_1.bin", 0x02000, 0x02000, CRC(2cca735e) SHA1(6a76017dfbcac0d57fcec8f07f92d5e04dd3e00b))
412
173413   ROM_REGION(0x10000, "soundcpu", 0)
174414   ROM_LOAD("sound_e1.bin", 0x00000, 0x02000, CRC(55e889e8) SHA1(0a240868c1b17762588c0ed9a14f568a6e50f409))
415
175416   ROM_REGION(0x80000, "user1", 0)
176417   ROM_LOAD("sound_e2.bin", 0x00000, 0x20000, CRC(5ac61535) SHA1(75b9a805f8639554251192e3777073c29952c78f))
418
177419   ROM_REGION(0x10000, "soundcpu2", 0)
178420   ROM_LOAD("sound_m1.bin", 0x00000, 0x02000, CRC(21a9ee1d) SHA1(d906ac7d6e741f05e81076a5be33fc763f0de9c1))
421
179422   ROM_REGION(0x80000, "user2", 0)
180423   ROM_LOAD("sound_m2.bin", 0x00000, 0x20000, CRC(349df1fe) SHA1(47e7ddbdc398396e40bb5340e5edcb8baf06c255))
181424   ROM_LOAD("sound_m3.bin", 0x40000, 0x20000, CRC(4d9f5ed2) SHA1(bc6b7c70369c25eddddac5304497f30cee7675d4))
182425ROM_END
183426
184GAME(1992,  ind250cc,   0,      inder,  inder, inder_state, inder,  ROT0,   "Inder",        "250 CC",               GAME_IS_SKELETON_MECHANICAL)
185GAME(1991,  atleta,     0,      inder,  inder, inder_state, inder,  ROT0,   "Inder",        "Atleta",               GAME_IS_SKELETON_MECHANICAL)
186GAME(1985,  brvteam,    0,      inder,  inder, inder_state, inder,  ROT0,   "Inder",        "Brave Team",           GAME_IS_SKELETON_MECHANICAL)
187GAME(1986,  canasta,    0,      inder,  inder, inder_state, inder,  ROT0,   "Inder",        "Canasta '86'",         GAME_IS_SKELETON_MECHANICAL)
188GAME(1988,  pinclown,   0,      inder,  inder, inder_state, inder,  ROT0,   "Inder",        "Clown (Inder)",        GAME_IS_SKELETON_MECHANICAL)
189GAME(1989,  corsario,   0,      inder,  inder, inder_state, inder,  ROT0,   "Inder",        "Corsario",             GAME_IS_SKELETON_MECHANICAL)
190GAME(1990,  mundial,    0,      inder,  inder, inder_state, inder,  ROT0,   "Inder",        "Mundial 90",           GAME_IS_SKELETON_MECHANICAL)
191GAME(1987,  pinmoonl,   0,      inder,  inder, inder_state, inder,  ROT0,   "Inder",        "Moon Light (Inder)",   GAME_IS_SKELETON_MECHANICAL)
192GAME(1992,  metalman,   0,      inder,  inder, inder_state, inder,  ROT0,   "Inder",        "Metal Man",            GAME_IS_SKELETON_MECHANICAL)
193GAME(1986,  lapbylap,   0,      inder,  inder, inder_state, inder,  ROT0,   "Inder",        "Lap By Lap",           GAME_IS_SKELETON_MECHANICAL)
427GAME(1985,  brvteam,    0,      inder,  inder, inder_state, inder,  ROT0, "Inder", "Brave Team",         GAME_IS_SKELETON_MECHANICAL)
428GAME(1986,  canasta,    0,      inder,  inder, inder_state, inder,  ROT0, "Inder", "Canasta '86'",       GAME_IS_SKELETON_MECHANICAL)
429GAME(1986,  lapbylap,   0,      inder,  inder, inder_state, inder,  ROT0, "Inder", "Lap By Lap",         GAME_IS_SKELETON_MECHANICAL)
430GAME(1987,  pinmoonl,   0,      inder,  inder, inder_state, inder,  ROT0, "Inder", "Moon Light (Inder)", GAME_IS_SKELETON_MECHANICAL)
431GAME(1988,  pinclown,   0,      inder,  inder, inder_state, inder,  ROT0, "Inder", "Clown (Inder)",      GAME_IS_SKELETON_MECHANICAL)
432GAME(1989,  corsario,   0,      inder,  inder, inder_state, inder,  ROT0, "Inder", "Corsario",           GAME_IS_SKELETON_MECHANICAL)
433GAME(1990,  mundial,    0,      inder,  inder, inder_state, inder,  ROT0, "Inder", "Mundial 90",         GAME_IS_SKELETON_MECHANICAL)
434GAME(1991,  atleta,     0,      inder,  inder, inder_state, inder,  ROT0, "Inder", "Atleta",             GAME_IS_SKELETON_MECHANICAL)
435GAME(1992,  ind250cc,   0,      inder,  inder, inder_state, inder,  ROT0, "Inder", "250 CC",             GAME_IS_SKELETON_MECHANICAL)
436GAME(1992,  metalman,   0,      inder,  inder, inder_state, inder,  ROT0, "Inder", "Metal Man",          GAME_IS_SKELETON_MECHANICAL)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team