Previous 199869 Revisions Next

r33950 Thursday 18th December, 2014 at 19:00:17 UTC by Jürgen Buchmüller
Use PORT_INCLUDE instead of macros - thanks Dirk (nw)
[src/mame/drivers]gts1.c

trunk/src/mame/drivers/gts1.c
r242461r242462
138138    AM_RANGE(0x0101, 0x0101) AM_WRITE( gts1_pb_w )                               // CPU I/O port B (output only)
139139ADDRESS_MAP_END
140140
141#define DSW_GTS1                                    \
142    PORT_START("DSW0")                              \
143    PORT_DIPNAME( 0x01, 0x00, "S01")                \
144    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
145    PORT_DIPSETTING(    0x01, DEF_STR( On ))        \
146    PORT_DIPNAME( 0x02, 0x00, "S02")                \
147    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
148    PORT_DIPSETTING(    0x02, DEF_STR( On ))        \
149    PORT_DIPNAME( 0x04, 0x00, "S03")                \
150    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
151    PORT_DIPSETTING(    0x04, DEF_STR( On ))        \
152    PORT_DIPNAME( 0x08, 0x00, "S04")                \
153    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
154    PORT_DIPSETTING(    0x08, DEF_STR( On ))        \
155    PORT_DIPNAME( 0x10, 0x00, "S05")                \
156    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
157    PORT_DIPSETTING(    0x10, DEF_STR( On ))        \
158    PORT_DIPNAME( 0x20, 0x20, "S06")                \
159    PORT_DIPSETTING(    0x00, DEF_STR( No ))        \
160    PORT_DIPSETTING(    0x20, DEF_STR( Yes ))       \
161    PORT_DIPNAME( 0x40, 0x40, "S07")                \
162    PORT_DIPSETTING(    0x00, DEF_STR( No ))        \
163    PORT_DIPSETTING(    0x40, DEF_STR( Yes ))       \
164    PORT_DIPNAME( 0x80, 0x80, "S08")                \
165    PORT_DIPSETTING(    0x00, DEF_STR( No ))        \
166    PORT_DIPSETTING(    0x80, DEF_STR( Yes ))       \
167    \
168    PORT_START("DSW1")                              \
169    PORT_DIPNAME( 0x01, 0x00, "S09")                \
170    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
171    PORT_DIPSETTING(    0x01, DEF_STR( On ))        \
172    PORT_DIPNAME( 0x02, 0x00, "S10")                \
173    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
174    PORT_DIPSETTING(    0x02, DEF_STR( On ))        \
175    PORT_DIPNAME( 0x04, 0x00, "S11")                \
176    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
177    PORT_DIPSETTING(    0x04, DEF_STR( On ))        \
178    PORT_DIPNAME( 0x08, 0x00, "S12")                \
179    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
180    PORT_DIPSETTING(    0x08, DEF_STR( On ))        \
181    PORT_DIPNAME( 0x10, 0x00, "S13")                \
182    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
183    PORT_DIPSETTING(    0x10, DEF_STR( On ))        \
184    PORT_DIPNAME( 0x20, 0x00, "S14")                \
185    PORT_DIPSETTING(    0x00, DEF_STR( Yes ))       \
186    PORT_DIPSETTING(    0x20, DEF_STR( No ))        \
187    PORT_DIPNAME( 0x40, 0x40, "S15")                \
188    PORT_DIPSETTING(    0x00, DEF_STR( No ))        \
189    PORT_DIPSETTING(    0x40, DEF_STR( Yes ))       \
190    PORT_DIPNAME( 0x80, 0x00, "S16")                \
191    PORT_DIPSETTING(    0x00, DEF_STR( No ))        \
192    PORT_DIPSETTING(    0x80, DEF_STR( Yes ))       \
193    \
194    PORT_START("DSW2")                              \
195    PORT_DIPNAME( 0x01, 0x00, "S17")                \
196    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
197    PORT_DIPSETTING(    0x01, DEF_STR( On ))        \
198    PORT_DIPNAME( 0x02, 0x00, "S18")                \
199    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
200    PORT_DIPSETTING(    0x02, DEF_STR( On ))        \
201    PORT_DIPNAME( 0x04, 0x00, "S19")                \
202    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
203    PORT_DIPSETTING(    0x04, DEF_STR( On ))        \
204    PORT_DIPNAME( 0x08, 0x00, "S20")                \
205    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
206    PORT_DIPSETTING(    0x08, DEF_STR( On ))        \
207    PORT_DIPNAME( 0x10, 0x00, "S21")                \
208    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
209    PORT_DIPSETTING(    0x10, DEF_STR( On ))        \
210    PORT_DIPNAME( 0x20, 0x00, "S22")                \
211    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
212    PORT_DIPSETTING(    0x20, DEF_STR( On ))        \
213    PORT_DIPNAME( 0x40, 0x00, "S23")                \
214    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
215    PORT_DIPSETTING(    0x40, DEF_STR( On ))        \
216    PORT_DIPNAME( 0x80, 0x00, "S24")                \
217    PORT_DIPSETTING(    0x00, DEF_STR( Off ))       \
141static INPUT_PORTS_START( gts1_dips )
142    PORT_START("DSW0")
143    PORT_DIPNAME( 0x01, 0x00, "S01")
144    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
145    PORT_DIPSETTING(    0x01, DEF_STR( On ))
146    PORT_DIPNAME( 0x02, 0x00, "S02")
147    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
148    PORT_DIPSETTING(    0x02, DEF_STR( On ))
149    PORT_DIPNAME( 0x04, 0x00, "S03")
150    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
151    PORT_DIPSETTING(    0x04, DEF_STR( On ))
152    PORT_DIPNAME( 0x08, 0x00, "S04")
153    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
154    PORT_DIPSETTING(    0x08, DEF_STR( On ))
155    PORT_DIPNAME( 0x10, 0x00, "S05")
156    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
157    PORT_DIPSETTING(    0x10, DEF_STR( On ))
158    PORT_DIPNAME( 0x20, 0x20, "S06")
159    PORT_DIPSETTING(    0x00, DEF_STR( No ))
160    PORT_DIPSETTING(    0x20, DEF_STR( Yes ))
161    PORT_DIPNAME( 0x40, 0x40, "S07")
162    PORT_DIPSETTING(    0x00, DEF_STR( No ))
163    PORT_DIPSETTING(    0x40, DEF_STR( Yes ))
164    PORT_DIPNAME( 0x80, 0x80, "S08")
165    PORT_DIPSETTING(    0x00, DEF_STR( No ))
166    PORT_DIPSETTING(    0x80, DEF_STR( Yes ))
167
168    PORT_START("DSW1")
169    PORT_DIPNAME( 0x01, 0x00, "S09")
170    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
171    PORT_DIPSETTING(    0x01, DEF_STR( On ))
172    PORT_DIPNAME( 0x02, 0x00, "S10")
173    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
174    PORT_DIPSETTING(    0x02, DEF_STR( On ))
175    PORT_DIPNAME( 0x04, 0x00, "S11")
176    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
177    PORT_DIPSETTING(    0x04, DEF_STR( On ))
178    PORT_DIPNAME( 0x08, 0x00, "S12")
179    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
180    PORT_DIPSETTING(    0x08, DEF_STR( On ))
181    PORT_DIPNAME( 0x10, 0x00, "S13")
182    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
183    PORT_DIPSETTING(    0x10, DEF_STR( On ))
184    PORT_DIPNAME( 0x20, 0x00, "S14")
185    PORT_DIPSETTING(    0x00, DEF_STR( Yes ))
186    PORT_DIPSETTING(    0x20, DEF_STR( No ))
187    PORT_DIPNAME( 0x40, 0x40, "S15")
188    PORT_DIPSETTING(    0x00, DEF_STR( No ))
189    PORT_DIPSETTING(    0x40, DEF_STR( Yes ))
190    PORT_DIPNAME( 0x80, 0x00, "S16")
191    PORT_DIPSETTING(    0x00, DEF_STR( No ))
192    PORT_DIPSETTING(    0x80, DEF_STR( Yes ))
193
194    PORT_START("DSW2")
195    PORT_DIPNAME( 0x01, 0x00, "S17")
196    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
197    PORT_DIPSETTING(    0x01, DEF_STR( On ))
198    PORT_DIPNAME( 0x02, 0x00, "S18")
199    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
200    PORT_DIPSETTING(    0x02, DEF_STR( On ))
201    PORT_DIPNAME( 0x04, 0x00, "S19")
202    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
203    PORT_DIPSETTING(    0x04, DEF_STR( On ))
204    PORT_DIPNAME( 0x08, 0x00, "S20")
205    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
206    PORT_DIPSETTING(    0x08, DEF_STR( On ))
207    PORT_DIPNAME( 0x10, 0x00, "S21")
208    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
209    PORT_DIPSETTING(    0x10, DEF_STR( On ))
210    PORT_DIPNAME( 0x20, 0x00, "S22")
211    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
212    PORT_DIPSETTING(    0x20, DEF_STR( On ))
213    PORT_DIPNAME( 0x40, 0x00, "S23")
214    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
215    PORT_DIPSETTING(    0x40, DEF_STR( On ))
216    PORT_DIPNAME( 0x80, 0x00, "S24")
217    PORT_DIPSETTING(    0x00, DEF_STR( Off ))
218218    PORT_DIPSETTING(    0x80, DEF_STR( On ))
219INPUT_PORTS_END
219220
220#define SWITCHES_GTS1 \
221    PORT_START("X.0")                        \
222    PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER) \
223    PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER) \
224    PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) \
225    PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) \
226    PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) \
227    PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER) \
228    PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER) \
229    PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) \
230    PORT_START("X.1")                        \
231    PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER) \
232    PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER) \
233    PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) \
234    PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) \
235    PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) \
236    PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER) \
237    PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER) \
238    PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) \
239    PORT_START("X.2")                        \
240    PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER) \
241    PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER) \
242    PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) \
243    PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) \
244    PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) \
245    PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER) \
246    PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER) \
247    PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) \
248    PORT_START("X.3")                        \
249    PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER) \
250    PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER) \
251    PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) \
252    PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) \
253    PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) \
254    PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER) \
255    PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER) \
256    PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) \
257    PORT_START("X.4")                        \
258    PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER) \
259    PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER) \
260    PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) \
261    PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) \
262    PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) \
263    PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER) \
264    PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER) \
265    PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) \
221static INPUT_PORTS_START( gts1_switches )
222    PORT_START("X.0")
223    PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER)
224    PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER)
225    PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER)
226    PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER)
227    PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER)
228    PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER)
229    PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER)
230    PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER)
231    PORT_START("X.1")
232    PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER)
233    PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER)
234    PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER)
235    PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER)
236    PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER)
237    PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER)
238    PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER)
239    PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER)
240    PORT_START("X.2")
241    PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER)
242    PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER)
243    PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER)
244    PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER)
245    PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER)
246    PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER)
247    PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER)
248    PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER)
249    PORT_START("X.3")
250    PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER)
251    PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER)
252    PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER)
253    PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER)
254    PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER)
255    PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER)
256    PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER)
257    PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER)
258    PORT_START("X.4")
259    PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER)
260    PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER)
261    PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER)
262    PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER)
263    PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER)
264    PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER)
265    PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER)
266    PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER)
267INPUT_PORTS_END
266268
267269static INPUT_PORTS_START( gts1 )
268    DSW_GTS1
270    PORT_INCLUDE( gts1_dips )
269271
270    SWITCHES_GTS1
272    PORT_INCLUDE( gts1_switches )
271273INPUT_PORTS_END
272274
273275static INPUT_PORTS_START( jokrpokr )
274    DSW_GTS1
276    PORT_INCLUDE( gts1_dips )
275277
276278    PORT_START("X.0")
277279    PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("PLAY/TEST")


Previous 199869 Revisions Next


© 1997-2024 The MAME Team