1 // license:BSD-3-Clause
2 // copyright-holders:Allard van der Bas
3 /***************************************************************************
4                 Wiping
5                 (C) 1982 Nichibutsu
6 
7                     driver by
8 
9             Allard van der Bas (allard@mindless.com)
10 
11 1 x Z80 CPU main game, 1 x Z80 with ???? sound hardware.
12 ----------------------------------------------------------------------------
13 Main processor :
14 
15 0xA800 - 0xA807 : 64 bits of input and dipswitches.
16 
17 dip: 0.7 1.7 2.7
18        0   0   0    coin 1: 1 coin 0 credit.
19 
20        1   1   1    coin 1: 1 coin 7 credit.
21 
22 dip: 3.7 4.7 5.7
23        0   0   0    coin 2: 0 coin 1 credit.
24 
25        1   1   1    coin 2: 7 coin 1 credit.
26 
27 dip:  7.6
28     0       bonus at 30K and 70K
29     1       bonus at 50K and 150K
30 
31 dip: 6.7 7.7
32        0   0        2 lives
33        0   1        3 lives
34        1   0        4 lives
35        1   1        5 lives
36 
37 ***************************************************************************/
38 #include "emu.h"
39 #include "includes/wiping.h"
40 #include "audio/wiping.h"
41 
42 #include "cpu/z80/z80.h"
43 #include "machine/74259.h"
44 #include "machine/watchdog.h"
45 #include "screen.h"
46 #include "speaker.h"
47 
48 
machine_start()49 void wiping_state::machine_start()
50 {
51 	save_item(NAME(m_flipscreen));
52 	save_item(NAME(m_main_irq_mask));
53 	save_item(NAME(m_sound_irq_mask));
54 }
55 
56 /* input ports are rotated 90 degrees */
ports_r(offs_t offset)57 uint8_t wiping_state::ports_r(offs_t offset)
58 {
59 	int i,res;
60 	static const char *const portnames[] = { "P1", "P2", "IN2", "IN3", "IN4", "IN5", "SYSTEM", "DSW" };
61 
62 	res = 0;
63 	for (i = 0; i < 8; i++)
64 		res |= ((ioport(portnames[i])->read() >> offset) & 1) << i;
65 
66 	return res;
67 }
68 
69 // irq/reset controls like in clshroad.cpp
70 
WRITE_LINE_MEMBER(wiping_state::main_irq_mask_w)71 WRITE_LINE_MEMBER(wiping_state::main_irq_mask_w)
72 {
73 	m_main_irq_mask = state;
74 }
75 
WRITE_LINE_MEMBER(wiping_state::sound_irq_mask_w)76 WRITE_LINE_MEMBER(wiping_state::sound_irq_mask_w)
77 {
78 	m_sound_irq_mask = state;
79 }
80 
main_map(address_map & map)81 void wiping_state::main_map(address_map &map)
82 {
83 	map(0x0000, 0x5fff).rom();
84 	map(0x8000, 0x83ff).ram().share("videoram");
85 	map(0x8400, 0x87ff).ram().share("colorram");
86 	map(0x8800, 0x88ff).ram().share("spriteram");
87 	map(0x8900, 0x8bff).ram();
88 	map(0x9000, 0x93ff).ram().share("share1");
89 	map(0x9800, 0x9bff).ram().share("share2");
90 	map(0xa000, 0xa007).w("mainlatch", FUNC(ls259_device::write_d0));
91 	map(0xa800, 0xa807).r(FUNC(wiping_state::ports_r));
92 	map(0xb000, 0xb7ff).ram();
93 	map(0xb800, 0xb800).w("watchdog", FUNC(watchdog_timer_device::reset_w));
94 }
95 
sound_map(address_map & map)96 void wiping_state::sound_map(address_map &map)
97 {
98 	map(0x0000, 0x1fff).rom();
99 	map(0x4000, 0x7fff).w("wiping", FUNC(wiping_sound_device::sound_w));
100 	map(0x9000, 0x93ff).ram().share("share1");
101 	map(0x9800, 0x9bff).ram().share("share2");
102 	map(0xa000, 0xa007).w("mainlatch", FUNC(ls259_device::write_d0));
103 }
104 
105 
106 static INPUT_PORTS_START( wiping )
107 	PORT_START("P1")    /* 0 */
108 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY
109 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY
110 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
111 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
112 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )
113 	PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_UNUSED )
114 
115 	PORT_START("P2")    /* 1 */
116 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
117 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL
118 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL
119 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL
120 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL
121 	PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_UNUSED )
122 
123 	PORT_START("IN2")   /* 2 */
124 	PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
125 
126 	PORT_START("IN3")   /* 3 */
127 	PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
128 
129 	PORT_START("IN4")   /* 4 */
130 	PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
131 
132 	PORT_START("IN5")   /* 5 */
133 	PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
134 
135 	PORT_START("SYSTEM")    /* 6 */
136 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
137 	PORT_BIT( 0x05, IP_ACTIVE_LOW, IPT_COIN2 )  /* note that this changes two bits */
138 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
139 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
140 	PORT_DIPNAME( 0x20, 0x20, DEF_STR( Cabinet ) )
141 	PORT_DIPSETTING(    0x20, DEF_STR( Upright ) )
142 	PORT_DIPSETTING(    0x00, DEF_STR( Cocktail ) )
143 	PORT_SERVICE( 0x40, IP_ACTIVE_HIGH )
144 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Bonus_Life ) )
145 	PORT_DIPSETTING(    0x00, "30000 70000" )
146 	PORT_DIPSETTING(    0x80, "50000 150000" )
147 
148 	PORT_START("DSW")   /* 7 */
149 	PORT_DIPNAME( 0x07, 0x01, DEF_STR( Coin_B )  )
150 	PORT_DIPSETTING(    0x01, DEF_STR( 1C_1C ) )
151 	PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
152 	PORT_DIPSETTING(    0x03, DEF_STR( 1C_3C ) )
153 	PORT_DIPSETTING(    0x04, DEF_STR( 1C_4C ) )
154 	PORT_DIPSETTING(    0x05, DEF_STR( 1C_5C ) )
155 	PORT_DIPSETTING(    0x06, DEF_STR( 1C_6C ) )
156 	PORT_DIPSETTING(    0x07, DEF_STR( 1C_7C ) )
157 //  PORT_DIPSETTING(    0x00, "Disable" )
158 	PORT_DIPNAME( 0x38, 0x08, DEF_STR( Coin_A ) )
159 	PORT_DIPSETTING(    0x38, DEF_STR( 7C_1C ) )
160 	PORT_DIPSETTING(    0x30, DEF_STR( 6C_1C ) )
161 	PORT_DIPSETTING(    0x28, DEF_STR( 5C_1C ) )
162 	PORT_DIPSETTING(    0x20, DEF_STR( 4C_1C ) )
163 	PORT_DIPSETTING(    0x18, DEF_STR( 3C_1C ) )
164 	PORT_DIPSETTING(    0x10, DEF_STR( 2C_1C ) )
165 	PORT_DIPSETTING(    0x08, DEF_STR( 1C_1C ) )
166 	PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
167 	PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Lives ) )
168 	PORT_DIPSETTING(    0x00, "2" )
169 	PORT_DIPSETTING(    0x40, "3" )
170 	PORT_DIPSETTING(    0x80, "4" )
171 	PORT_DIPSETTING(    0xc0, "5" )
172 INPUT_PORTS_END
173 
174 /* identical apart from bonus life */
175 static INPUT_PORTS_START( rugrats )
176 	PORT_START("P1")    /* 0 */
177 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY
178 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY
179 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY
180 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY
181 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )
182 	PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_UNUSED )
183 
184 	PORT_START("P2")    /* 1 */
185 	PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
186 	PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL
187 	PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL
188 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL
189 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL
190 	PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_UNUSED )
191 
192 	PORT_START("IN2")   /* 2 */
193 	PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
194 
195 	PORT_START("IN3")   /* 3 */
196 	PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
197 
198 	PORT_START("IN4")   /* 4 */
199 	PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
200 
201 	PORT_START("IN5")   /* 5 */
202 	PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED )
203 
204 	PORT_START("SYSTEM")    /* 6 */
205 	PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 )
206 	PORT_BIT( 0x05, IP_ACTIVE_LOW, IPT_COIN2 )  /* note that this changes two bits */
207 	PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 )
208 	PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 )
209 	PORT_DIPNAME( 0x20, 0x20, DEF_STR( Cabinet ) )
210 	PORT_DIPSETTING(    0x20, DEF_STR( Upright ) )
211 	PORT_DIPSETTING(    0x00, DEF_STR( Cocktail ) )
212 	PORT_SERVICE( 0x40, IP_ACTIVE_HIGH )
213 	PORT_DIPNAME( 0x80, 0x00, DEF_STR( Bonus_Life ) )
214 	PORT_DIPSETTING(    0x00, "100000 200000" )
215 	PORT_DIPSETTING(    0x80, "150000 300000" )
216 
217 	PORT_START("DSW")   /* 7 */
218 	PORT_DIPNAME( 0x07, 0x01, DEF_STR( Coin_B )  )
219 	PORT_DIPSETTING(    0x01, DEF_STR( 1C_1C ) )
220 	PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
221 	PORT_DIPSETTING(    0x03, DEF_STR( 1C_3C ) )
222 	PORT_DIPSETTING(    0x04, DEF_STR( 1C_4C ) )
223 	PORT_DIPSETTING(    0x05, DEF_STR( 1C_5C ) )
224 	PORT_DIPSETTING(    0x06, DEF_STR( 1C_6C ) )
225 	PORT_DIPSETTING(    0x07, DEF_STR( 1C_7C ) )
226 //  PORT_DIPSETTING(    0x00, "Disable" )
227 	PORT_DIPNAME( 0x38, 0x08, DEF_STR( Coin_A ) )
228 	PORT_DIPSETTING(    0x38, DEF_STR( 7C_1C ) )
229 	PORT_DIPSETTING(    0x30, DEF_STR( 6C_1C ) )
230 	PORT_DIPSETTING(    0x28, DEF_STR( 5C_1C ) )
231 	PORT_DIPSETTING(    0x20, DEF_STR( 4C_1C ) )
232 	PORT_DIPSETTING(    0x18, DEF_STR( 3C_1C ) )
233 	PORT_DIPSETTING(    0x10, DEF_STR( 2C_1C ) )
234 	PORT_DIPSETTING(    0x08, DEF_STR( 1C_1C ) )
235 	PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
236 	PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Lives ) )
237 	PORT_DIPSETTING(    0x00, "2" )
238 	PORT_DIPSETTING(    0x40, "3" )
239 	PORT_DIPSETTING(    0x80, "4" )
240 	PORT_DIPSETTING(    0xc0, "5" )
241 INPUT_PORTS_END
242 
243 
244 
245 static const gfx_layout charlayout =
246 {
247 	8,8,    /* 8*8 characters */
248 	256,    /* 256 characters */
249 	2,  /* 2 bits per pixel */
250 	{ 0, 4 },   /* the two bitplanes are packed in one byte */
251 	{ 0, 1, 2, 3, 8+0, 8+1, 8+2, 8+3 },
252 	{ 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16 },
253 	16*8    /* every char takes 16 consecutive bytes */
254 };
255 
256 static const gfx_layout spritelayout =
257 {
258 	16,16,  /* 16*16 sprites */
259 	128,    /* 128 sprites */
260 	2,  /* 2 bits per pixel */
261 	{ 0, 4 },   /* the two bitplanes are packed in one byte */
262 	{ 0, 1, 2, 3, 8+0, 8+1, 8+2, 8+3,
263 			16*8+0, 16*8+1, 16*8+2, 16*8+3, 17*8+0, 17*8+1, 17*8+2, 17*8+3 },
264 	{ 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16,
265 			16*16, 17*16, 18*16, 19*16, 20*16, 21*16, 22*16, 23*16 },
266 	64*8    /* every sprite takes 64 consecutive bytes */
267 };
268 
269 static GFXDECODE_START( gfx_wiping )
270 	GFXDECODE_ENTRY( "gfx1", 0, charlayout,      0, 64 )
271 	GFXDECODE_ENTRY( "gfx2", 0, spritelayout, 64*4, 64 )
272 GFXDECODE_END
273 
INTERRUPT_GEN_MEMBER(wiping_state::vblank_irq)274 INTERRUPT_GEN_MEMBER(wiping_state::vblank_irq)
275 {
276 	if(m_main_irq_mask)
277 		device.execute().set_input_line(0, HOLD_LINE);
278 }
279 
INTERRUPT_GEN_MEMBER(wiping_state::sound_timer_irq)280 INTERRUPT_GEN_MEMBER(wiping_state::sound_timer_irq)
281 {
282 	if(m_sound_irq_mask)
283 		device.execute().set_input_line(0, HOLD_LINE);
284 }
285 
286 
287 
wiping(machine_config & config)288 void wiping_state::wiping(machine_config &config)
289 {
290 	/* basic machine hardware */
291 	Z80(config, m_maincpu, 18432000/6); /* 3.072 MHz */
292 	m_maincpu->set_addrmap(AS_PROGRAM, &wiping_state::main_map);
293 	m_maincpu->set_vblank_int("screen", FUNC(wiping_state::vblank_irq));
294 
295 	Z80(config, m_audiocpu, 18432000/6);    /* 3.072 MHz */
296 	m_audiocpu->set_addrmap(AS_PROGRAM, &wiping_state::sound_map);
297 	m_audiocpu->set_periodic_int(FUNC(wiping_state::sound_timer_irq), attotime::from_hz(120));    /* periodic interrupt, don't know about the frequency */
298 
299 	ls259_device &mainlatch(LS259(config, "mainlatch")); // 5A
300 	mainlatch.q_out_cb<0>().set(FUNC(wiping_state::main_irq_mask_w)); // INT1
301 	mainlatch.q_out_cb<1>().set(FUNC(wiping_state::sound_irq_mask_w)); // INT2
302 	mainlatch.q_out_cb<2>().set(FUNC(wiping_state::flipscreen_w)); // INV
303 	mainlatch.q_out_cb<3>().set_inputline(m_audiocpu, INPUT_LINE_RESET).invert(); // CP2RE
304 
305 	WATCHDOG_TIMER(config, "watchdog");
306 
307 	/* video hardware */
308 	screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
309 	screen.set_refresh_hz(60);
310 	screen.set_vblank_time(ATTOSECONDS_IN_USEC(0));
311 	screen.set_size(36*8, 28*8);
312 	screen.set_visarea(0*8, 36*8-1, 0*8, 28*8-1);
313 	screen.set_screen_update(FUNC(wiping_state::screen_update));
314 	screen.set_palette(m_palette);
315 
316 	GFXDECODE(config, m_gfxdecode, m_palette, gfx_wiping);
317 	PALETTE(config, m_palette, FUNC(wiping_state::wiping_palette), 64*4+64*4, 32);
318 
319 	/* sound hardware */
320 	SPEAKER(config, "mono").front_center();
321 
322 	WIPING_CUSTOM(config, "wiping", 96000).add_route(ALL_OUTPUTS, "mono", 1.0);
323 }
324 
325 
326 
327 /***************************************************************************
328 
329   Game driver(s)
330 
331 ***************************************************************************/
332 
333 ROM_START( wiping )
334 	ROM_REGION( 0x10000, "maincpu", 0 ) /* main cpu code */
335 	ROM_LOAD( "1",            0x0000, 0x2000, CRC(b55d0d19) SHA1(dac6096d3ee9dd8b1b6da5c2c613b54ce303cb7b) )
336 	ROM_LOAD( "2",            0x2000, 0x2000, CRC(b1f96e47) SHA1(8f3f882a3c366e6a2d2682603d425eb0491b5487) )
337 	ROM_LOAD( "3",            0x4000, 0x2000, CRC(c67bab5a) SHA1(3d74ed4be5a6bdc02cf1feb3ce3f4b1607ec6b80) )
338 
339 	ROM_REGION( 0x10000, "audiocpu", 0 )    /* sound cpu */
340 	ROM_LOAD( "4",            0x0000, 0x1000, CRC(a1547e18) SHA1(1f86d770e42ff1d94bf1f8b12f9b74accc3bb193) )
341 
342 	ROM_REGION( 0x1000, "gfx1", 0 )
343 	ROM_LOAD( "8",            0x0000, 0x1000, CRC(601160f6) SHA1(2465a1319d442a96d3b1b5e3ad544b0a0126762c) ) /* chars */
344 
345 	ROM_REGION( 0x2000, "gfx2", 0 )
346 	ROM_LOAD( "7",            0x0000, 0x2000, CRC(2c2cc054) SHA1(31851983de61bb8616856b0067c4e237819df5fb) ) /* sprites */
347 
348 	ROM_REGION( 0x0220, "proms", 0 )
349 	ROM_LOAD( "wip-g13.bin",  0x0000, 0x0020, CRC(b858b897) SHA1(5fc87e210bdaa675fdf8c6762526c345bd451eab) )    /* palette */
350 	ROM_LOAD( "wip-f4.bin",   0x0020, 0x0100, CRC(3f56c8d5) SHA1(7d279b2f29911c44b4136068770accf7196057d7) )    /* char lookup table */
351 	ROM_LOAD( "wip-e11.bin",  0x0120, 0x0100, CRC(e7400715) SHA1(c67193e5f0a43942ddf03058a0bb8b3275308459) )    /* sprite lookup table */
352 
353 	ROM_REGION( 0x4000, "samples", 0 )  /* samples */
354 	ROM_LOAD( "rugr5c8",      0x0000, 0x2000, CRC(67bafbbf) SHA1(2085492b58ce44f61a42320c54595b79fdf7a91c) )
355 	ROM_LOAD( "rugr6c9",      0x2000, 0x2000, CRC(cac84a87) SHA1(90f6c514d0cdbeb4c8c979597db79ebcdf443df4) )
356 
357 	ROM_REGION( 0x0200, "soundproms", 0 )   /* 4bit->8bit sample expansion PROMs */
358 	ROM_LOAD( "wip-e8.bin",   0x0000, 0x0100, CRC(bd2c080b) SHA1(9782bb5001e96db56bc29df398187f700bce4f8e) )    /* low 4 bits */
359 	ROM_LOAD( "wip-e9.bin",   0x0100, 0x0100, CRC(4017a2a6) SHA1(dadef2de7a1119758c8e6d397aa42815b0218889) )    /* high 4 bits */
360 ROM_END
361 
362 ROM_START( rugrats )
363 	ROM_REGION( 0x10000, "maincpu", 0 ) /* main cpu code */
364 	ROM_LOAD( "1.1d",      0x0000, 0x2000, CRC(e7e1bd6d) SHA1(985799b1bfd001c6304e6166180745cb019f834e) )
365 	ROM_LOAD( "2.2d",      0x2000, 0x2000, CRC(5f47b9ad) SHA1(2d3eb737ea8e86691293e432e866d2623d6b6b1b) )
366 	ROM_LOAD( "3.3d",      0x4000, 0x2000, CRC(3d748d1a) SHA1(2b301119b6eb3f0f9bb2ad734cff1d25365dfe99) )
367 
368 	ROM_REGION( 0x10000, "audiocpu", 0 )    /* sound cpu */
369 	ROM_LOAD( "4.3b",      0x0000, 0x2000, CRC(d4a92c38) SHA1(4a31cfef9f084b4d2934595155bf0f3dd589efb3) )
370 
371 	ROM_REGION( 0x1000, "gfx1", 0 )
372 	ROM_LOAD( "8.2d",      0x0000, 0x1000, CRC(a3dcaca5) SHA1(d71f9090bf95dfd035ee0e0619a1cce575033cf3) ) /* chars */
373 
374 	ROM_REGION( 0x2000, "gfx2", 0 )
375 	ROM_LOAD( "7.13c",     0x0000, 0x2000, CRC(fe1191dd) SHA1(80ebf093f7a32f4cc9dc89dcc44cab6e3db4fca1) ) /* sprites */
376 
377 	ROM_REGION( 0x0220, "proms", 0 )
378 	ROM_LOAD( "g13.13g",   0x0000, 0x0020, CRC(f21238f0) SHA1(944627d1551453c7f828d96b83fd4eeb038b20ad) )    /* palette */
379 	ROM_LOAD( "eiif4.4f",  0x0020, 0x0100, CRC(cfc90f3d) SHA1(99f7dc0d14c62d4c676c96310c219c696c9a7897) )    /* char lookup table */
380 	ROM_LOAD( "eiif4.11e", 0x0120, 0x0100, CRC(cfc90f3d) SHA1(99f7dc0d14c62d4c676c96310c219c696c9a7897) )    /* sprite lookup table */
381 
382 	ROM_REGION( 0x4000, "samples", 0 )  /* samples */
383 	ROM_LOAD( "5.8c",      0x0000, 0x2000, CRC(67bafbbf) SHA1(2085492b58ce44f61a42320c54595b79fdf7a91c) )
384 	ROM_LOAD( "6.9c",      0x2000, 0x2000, CRC(cac84a87) SHA1(90f6c514d0cdbeb4c8c979597db79ebcdf443df4) )
385 
386 	ROM_REGION( 0x0200, "soundproms", 0 )   /* 4bit->8bit sample expansion PROMs */
387 	ROM_LOAD( "e8.8e",     0x0000, 0x0100, CRC(bd2c080b) SHA1(9782bb5001e96db56bc29df398187f700bce4f8e) )    /* low 4 bits */
388 	ROM_LOAD( "e9.9e",     0x0100, 0x0100, CRC(4017a2a6) SHA1(dadef2de7a1119758c8e6d397aa42815b0218889) )    /* high 4 bits */
389 ROM_END
390 
391 
392 
393 GAME( 1982, wiping,  0,      wiping, wiping,  wiping_state, empty_init, ROT90, "Nichibutsu", "Wiping",   MACHINE_SUPPORTS_SAVE )
394 GAME( 1983, rugrats, wiping, wiping, rugrats, wiping_state, empty_init, ROT90, "Nichibutsu", "Rug Rats", MACHINE_SUPPORTS_SAVE )
395