Previous 15994 Revisions Next

r1465 Monday 31st December, 2007 at 03:22:50 UTC by Dirk Best
Removed some files deleted in the 0.122u1 update.
[src/mame/drivers]afega.c
[src/mame/video]afega.c

src/mame/video/afega.c
r1464r1465
1/***************************************************************************
2
3                              -= Afega Games =-
4
5                    driver by   Luca Elia (l.elia@tin.it)
6
7
8Note:   if MAME_DEBUG is defined, pressing Z with:
9
10        Q / W           Shows Layer 0 / 1
11        A               Shows Sprites
12
13        Keys can be used together!
14
15    [ 2 Layers ]
16                                [ Layer 0 ]     [ Layer 1 ]
17
18        Tile Size:              16 x 16 x 4/8   8 x 8 x 4
19        Layer Size (pixels):    1024 x 1024     256 x 256
20        Layer Size (tiles):     64 x 64         32 x 32
21        Scrolling:              Yes             No
22
23        The layout is a bit weird. 16 consecutive tile codes define a
24        vertical column. 16 columns form a page (256 x 256).
25        Layer 0 is made of 4 x 4 pages. Layer 1 of just 1 page.
26
27    [ 256 Sprites ]
28
29        Sprites are made of 16 x 16 x 4 tiles. Size can vary from 1 to 16
30        tiles both horizontally and vertically.
31        Is there zooming ?
32
33    [ Priorities ]
34
35        The game only uses this scheme:
36
37        Back -> Front:  Layer 0, Sprites, Layer 1
38
39***************************************************************************/
40
41#include "driver.h"
42#ifdef MAME_DEBUG
43#include "ui.h"
44#endif
45
46/* Variables needed by drivers: */
47
48UINT16 *afega_vram_0, *afega_scroll_0;
49UINT16 *afega_vram_1, *afega_scroll_1;
50
51
52/***************************************************************************
53
54
55                        Palette - RRRRGGGGBBBB????
56
57
58***************************************************************************/
59
60WRITE16_HANDLER( afega_palette_w )
61{
62   int r,g,b;
63   data = COMBINE_DATA(&paletteram16[offset]);
64   b = ((data & 0x00F0) >> 3 ) + ((data & 0x0002) >> 1);
65   g = ((data & 0x0F00) >> 7 ) + ((data & 0x0004) >> 2);
66   r = ((data & 0xF000) >> 11) + ((data & 0x0008) >> 3);
67   palette_set_color_rgb( Machine, offset, pal5bit(r) , pal5bit(g) , pal5bit(b) );
68}
69
70/* This game uses 8 bit tiles, so it ignores the color codes and just
71   uses the same 256 colors for every tile */
72PALETTE_INIT( grdnstrm )
73{
74   int color, pen;
75   for( color = 0; color < 16; color++ )
76      for( pen = 0; pen < 256; pen++ )
77         colortable[color * 256 + pen + 256*3] = 256*0 + pen;
78}
79
80
81/***************************************************************************
82
83                                Tilemaps
84
85    Offset:     Bits:                   Value:
86
87        2.w     fedc ---- ---- ----     Color
88                ---- ba98 7654 3210     Code
89
90***************************************************************************/
91
92#define TILES_PER_PAGE_X   (0x10)
93#define TILES_PER_PAGE_Y   (0x10)
94#define PAGES_PER_TMAP_X   (0x4)
95#define PAGES_PER_TMAP_Y   (0x4)
96#define FIREHAWK_PAGES_PER_TMAP_X   (0x1)
97#define FIREHAWK_PAGES_PER_TMAP_Y   (0x1)
98#define TWINACTN_TILES_PER_PAGE_X   (0x100)
99#define TWINACTN_TILES_PER_PAGE_Y   (0x10)
100#define TWINACTN_PAGES_PER_TMAP_X   (0x1)
101#define TWINACTN_PAGES_PER_TMAP_Y   (0x1)
102
103
104static TILEMAP_MAPPER( afega_tilemap_scan_pages )
105{
106   return   (row / TILES_PER_PAGE_Y) * TILES_PER_PAGE_X * TILES_PER_PAGE_Y * PAGES_PER_TMAP_X +
107         (row % TILES_PER_PAGE_Y) +
108
109         (col / TILES_PER_PAGE_X) * TILES_PER_PAGE_X * TILES_PER_PAGE_Y +
110         (col % TILES_PER_PAGE_X) * TILES_PER_PAGE_Y;
111}
112
113static TILEMAP_MAPPER( twinactn_tilemap_scan_pages )
114{
115   return   (row / TWINACTN_TILES_PER_PAGE_Y) * TWINACTN_TILES_PER_PAGE_X * TWINACTN_TILES_PER_PAGE_Y * TWINACTN_PAGES_PER_TMAP_X +
116         (row % TWINACTN_TILES_PER_PAGE_Y) +
117
118         (col / TWINACTN_TILES_PER_PAGE_X) * TWINACTN_TILES_PER_PAGE_X * TWINACTN_TILES_PER_PAGE_Y +
119         (col % TWINACTN_TILES_PER_PAGE_X) * TWINACTN_TILES_PER_PAGE_Y;
120}
121
122static TILEMAP_MAPPER( firehawk_tilemap_scan_pages )
123{
124   return   (row / TILES_PER_PAGE_Y) * TILES_PER_PAGE_X * TILES_PER_PAGE_Y * FIREHAWK_PAGES_PER_TMAP_X +
125         (row % TILES_PER_PAGE_Y) +
126
127         (col / TILES_PER_PAGE_X) * TILES_PER_PAGE_X * TILES_PER_PAGE_Y +
128         (col % TILES_PER_PAGE_X) * TILES_PER_PAGE_Y;
129}
130
131static tilemap *tilemap_0, *tilemap_1;
132
133static TILE_GET_INFO( get_tile_info_0 )
134{
135   UINT16 code = afega_vram_0[tile_index];
136   SET_TILE_INFO(
137         1,
138         code,
139         (code & 0xf000) >> 12,
140         0);
141}
142static TILE_GET_INFO( get_tile_info_1 )
143{
144   UINT16 code = afega_vram_1[tile_index];
145   SET_TILE_INFO(
146         2,
147         code,
148         (code & 0xf000) >> 12,
149         0);
150}
151
152WRITE16_HANDLER( afega_vram_0_w )
153{
154   COMBINE_DATA(&afega_vram_0[offset]);
155   tilemap_mark_tile_dirty(tilemap_0,offset);
156}
157WRITE16_HANDLER( afega_vram_1_w )
158{
159   COMBINE_DATA(&afega_vram_1[offset]);
160   tilemap_mark_tile_dirty(tilemap_1,offset);
161}
162
163
164/***************************************************************************
165
166
167                            Video Hardware Init
168
169
170***************************************************************************/
171
172VIDEO_START( afega )
173{
174   tilemap_0 = tilemap_create(   get_tile_info_0, afega_tilemap_scan_pages,
175                        TILEMAP_TYPE_PEN,
176                        16,16,
177                        TILES_PER_PAGE_X*PAGES_PER_TMAP_X,TILES_PER_PAGE_Y*PAGES_PER_TMAP_Y);
178
179   tilemap_1 = tilemap_create(   get_tile_info_1, tilemap_scan_cols,
180                        TILEMAP_TYPE_PEN,
181                        8,8,
182                        32,32);
183
184   tilemap_set_transparent_pen(tilemap_1,0xf);
185}
186
187VIDEO_START( twinactn )
188{
189   tilemap_0 = tilemap_create(   get_tile_info_0, twinactn_tilemap_scan_pages,
190                        TILEMAP_TYPE_PEN,
191                        16,16,
192                        TWINACTN_TILES_PER_PAGE_X*TWINACTN_PAGES_PER_TMAP_X,TWINACTN_TILES_PER_PAGE_Y*TWINACTN_PAGES_PER_TMAP_Y);
193
194   tilemap_1 = tilemap_create(   get_tile_info_1, tilemap_scan_cols,
195                        TILEMAP_TYPE_PEN,
196                        8,8,
197                        32,32);
198
199   tilemap_set_transparent_pen(tilemap_1,0xf);
200}
201
202VIDEO_START( firehawk )
203{
204   tilemap_0 = tilemap_create(   get_tile_info_0, firehawk_tilemap_scan_pages,
205                        TILEMAP_TYPE_PEN,
206                        16,16,
207                        TILES_PER_PAGE_X*FIREHAWK_PAGES_PER_TMAP_X,TILES_PER_PAGE_Y*FIREHAWK_PAGES_PER_TMAP_Y);
208
209   tilemap_1 = tilemap_create(   get_tile_info_1, tilemap_scan_cols,
210                        TILEMAP_TYPE_PEN,
211                        8,8,
212                        32,32);
213
214   tilemap_set_transparent_pen(tilemap_1,0xf);
215}
216
217
218/***************************************************************************
219
220                                Sprites Drawing
221
222    Offset:     Bits:                   Value:
223
224        0.w     fedc ba-- ---- ----
225                ---- --9- ---- ----     Flip Y?
226                ---- ---8 7654 3---
227                ---- --------- -21-     Priority?
228                ---- ---- ---- ---0     1 = Draw This Sprite
229
230        2.w     fedc ba98 ---- ----
231                ---- ---- 7654 ----     Number Of Tiles Along Y - 1
232                ---- ---- ---- 3210     Number Of Tiles Along X - 1
233
234        4.w
235
236        6.w                             Code
237
238        8.w     fedc ba98 ---- ----
239                ---- ---- 7654 3210     X (Signed)
240
241        A.w
242
243        C.w     fedc ba98 ---- ----
244                ---- ---- 7654 3210     Y (Signed)
245
246        E.w     fedc ba98 7654 ----
247                ---- ---- ---- 3210     Color
248
249
250***************************************************************************/
251
252static void draw_sprites(running_machine *machine, mame_bitmap *bitmap,const rectangle *cliprect, UINT16 attr_mask)
253{
254   int offs;
255
256   int max_x      =   machine->screen[0].width;
257   int max_y      =   machine->screen[0].height;
258
259   for ( offs = 0; offs < spriteram_size/2; offs += 16/2 )
260   {
261      int attr, dim, code, sx, sy, color, flipx, flipy;
262
263      int x, xnum, xstart, xend, xinc;
264      int y, ynum, ystart, yend, yinc;
265
266      attr   =      spriteram16[offs + 0x0/2];
267      if (!(attr & attr_mask))   continue;
268      dim      =      spriteram16[offs + 0x2/2];
269      code   =      spriteram16[offs + 0x6/2];
270      sx      =      spriteram16[offs + 0x8/2];
271      sy      =      spriteram16[offs + 0xc/2];
272      color   =      spriteram16[offs + 0xe/2];
273
274      flipx   =      attr & 0x000;   // ?
275      flipy   =      attr & 0x000;   // ?
276
277      xnum      =      ((dim >> 0) & 0xf) + 1;
278      ynum      =      ((dim >> 4) & 0xf) + 1;
279
280      sx = (sx & 0xff) - (sx & 0x100);
281      sy = (sy & 0xff) - (sy & 0x100);
282
283      if (flip_screen_x)   {   flipx = !flipx;      sx = max_x - sx - xnum * 16;   }
284      if (flip_screen_y)   {   flipy = !flipy;      sy = max_y - sy - ynum * 16;   }
285
286      if (flipx)   { xstart = xnum-1;  xend = -1;    xinc = -1; }
287      else      { xstart = 0;       xend = xnum;  xinc = +1; }
288
289      if (flipy)   { ystart = ynum-1;  yend = -1;    yinc = -1; }
290      else      { ystart = 0;       yend = ynum;  yinc = +1; }
291
292      for (y = ystart; y != yend; y += yinc)
293      {
294         for (x = xstart; x != xend; x += xinc)
295         {
296            drawgfx( bitmap,machine->gfx[0],
297                        code++,
298                        color,
299                        flipx, flipy,
300                        sx + x * 16, sy + y * 16,
301                        cliprect,TRANSPARENCY_PEN,15 );
302         }
303      }
304
305#ifdef MAME_DEBUG
306#if 1
307if (input_code_pressed(KEYCODE_X))
308{   /* Display some info on each sprite */
309   char buf[10];
310   sprintf(buf, "%X",(spriteram16[offs + 0x0/2]&6)/2);
311   ui_draw_text(buf, sy, sx);
312}
313#endif
314#endif
315   }
316}
317
318
319
320/***************************************************************************
321
322
323                                Screen Drawing
324
325
326***************************************************************************/
327
328static void video_update(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect,
329   int dsw_flipscreen,         // 1 = Horizontal and vertical screen flip are hardwired to 2 dip switches
330   int xoffset, int yoffset,   // tilemap_0 offsets
331   int attr_mask            // "sprite active" mask
332   )
333{
334   int layers_ctrl = -1;
335
336   if (dsw_flipscreen)
337   {
338
339      flip_screen_x_set(~readinputport(2) & 0x0100);
340      flip_screen_y_set(~readinputport(2) & 0x0200);
341   }
342
343   tilemap_set_scrollx(tilemap_0, 0, afega_scroll_0[1] + xoffset);
344   tilemap_set_scrolly(tilemap_0, 0, afega_scroll_0[0] + yoffset);
345
346   tilemap_set_scrollx(tilemap_1, 0, afega_scroll_1[1]);
347   tilemap_set_scrolly(tilemap_1, 0, afega_scroll_1[0]);
348
349#ifdef MAME_DEBUG
350if ( input_code_pressed(KEYCODE_Z) )
351{   int msk = 0;
352   if (input_code_pressed(KEYCODE_Q))   msk |= 1;
353   if (input_code_pressed(KEYCODE_W))   msk |= 2;
354   if (input_code_pressed(KEYCODE_A))   msk |= 4;
355   if (msk != 0) layers_ctrl &= msk;   }
356#endif
357
358   if (layers_ctrl & 1)   tilemap_draw(bitmap,cliprect,tilemap_0,0,0);
359   else               fillbitmap(bitmap,get_black_pen(machine),cliprect);
360
361   if (layers_ctrl & 4)    draw_sprites(machine,bitmap,cliprect, attr_mask);
362
363   if (layers_ctrl & 2)   tilemap_draw(bitmap,cliprect,tilemap_1,0,0);
364}
365
366VIDEO_UPDATE( afega )      {   video_update(machine,bitmap,cliprect, 1, -0x100,+0x000, 0x0001);   return 0; }
367VIDEO_UPDATE( bubl2000 )   {   video_update(machine,bitmap,cliprect, 0, -0x100,+0x000, 0x0001);   return 0; }   // no flipscreen support, I really would confirmation from the schematics
368VIDEO_UPDATE( redhawkb )   {   video_update(machine,bitmap,cliprect, 0, +0x000,+0x100, 0x0001);   return 0; }
369VIDEO_UPDATE( twinactn )   {   video_update(machine,bitmap,cliprect, 0, +0x000,+0x000, 0x0100);   return 0; }
370
371VIDEO_UPDATE( firehawk )
372{
373   tilemap_set_scrolly(tilemap_0, 0, afega_scroll_1[1] + 0x100);
374   tilemap_set_scrollx(tilemap_0, 0, afega_scroll_1[0]);
375
376   tilemap_draw(bitmap,cliprect,tilemap_0,0,0);
377   draw_sprites(machine,bitmap,cliprect,1);
378
379   tilemap_draw(bitmap,cliprect,tilemap_1,0,0);
380   return 0;
381}
src/mame/drivers/afega.c
r1464r1465
1/***************************************************************************
2
3  NOTE: this hardware is a bootleg of the hardware in nmk16.c
4        twinactn is a bootleg of mustang with different graphics, different
5        sound hardware, and some code shifted around
6
7  todo: either merge this with nmk16.c, or split the bootlegs / non nmk
8        hardware from nmk16.c into an nmk16 bootlegs driver
9
10        understand the 'protection' it may just be some kind of mirroring.
11
12****************************************************************************
13
14                              -= Afega Games =-
15
16                    driver by   Luca Elia (l.elia@tin.it)
17
18
19Main  CPU   :   M68000
20Video Chips :   AFEGA AFI-GFSK  (68 Pin PLCC)
21                AFEGA AFI-GFLK (208 Pin PQFP)
22
23Sound CPU   :   Z80
24Sound Chips :   M6295 (AD-65)  +  YM2151 (BS901)  +  YM3012 (BS902)
25
26---------------------------------------------------------------------------
27Year + Game                     Notes
28---------------------------------------------------------------------------
2995 Twin Action                  Does not work for unknown reasons. Protection?
3097 Red Hawk                     US Version of Stagger 1
3198 Sen Jin - Guardian Storm     Some text missing (protection, see service mode)
3298 Stagger I
3398 Bubble 2000                  By Tuning, but it seems to be the same HW
3400 Spectrum 2000                By YomaTech -- NOTE sprite bugs happen on real hw!!
3501 Fire Hawk                    By ESD with different sound hardware: 2 M6295
36---------------------------------------------------------------------------
37
38Notes:
39
40- Afega is a Korean company. Its name is an acronym of "Art-Fiction Electronic Game".
41- Sen Jin: protection supplies some 68k code seen in the 2760-29cf range.
42    - or service mode is just complete, these are korean hacks afterall
43- Twinactn: to enter the hidden test mode press both P2 buttons during boot, then
44  P1 button 1 repeatedly.
45
46***************************************************************************/
47
48#include "driver.h"
49#include "sound/2151intf.h"
50#include "sound/okim6295.h"
51
52/* Variables defined in video: */
53
54extern UINT16 *afega_vram_0, *afega_scroll_0;
55extern UINT16 *afega_vram_1, *afega_scroll_1;
56
57/* Functions defined in video: */
58
59WRITE16_HANDLER( afega_vram_0_w );
60WRITE16_HANDLER( afega_vram_1_w );
61WRITE16_HANDLER( afega_palette_w );
62
63PALETTE_INIT( grdnstrm );
64
65VIDEO_START( afega );
66VIDEO_START( firehawk );
67VIDEO_START( twinactn );
68VIDEO_UPDATE( afega );
69VIDEO_UPDATE( redhawkb );
70VIDEO_UPDATE( bubl2000 );
71VIDEO_UPDATE( firehawk );
72VIDEO_UPDATE( twinactn );
73
74static UINT16 *ram;
75
76/***************************************************************************
77
78
79                            Memory Maps - Main CPU
80
81
82***************************************************************************/
83
84static READ16_HANDLER( afega_unknown_r )
85{
86   /* This fixes the text in Service Mode. */
87   return 0x0100;
88}
89
90static WRITE16_HANDLER( afega_soundlatch_w )
91{
92   if (ACCESSING_LSB)
93   {
94      soundlatch_w(0,data&0xff);
95      cpunum_set_input_line(1, 0, HOLD_LINE);
96   }
97}
98
99static WRITE16_HANDLER( afega_scroll0_w )
100{
101   COMBINE_DATA(&afega_scroll_0[offset]);
102}
103
104static WRITE16_HANDLER( afega_scroll1_w )
105{
106   COMBINE_DATA(&afega_scroll_1[offset]);
107}
108
109/*
110 Lines starting with an empty comment in the following MemoryReadAddress
111 arrays are there for debug (e.g. the game does not read from those ranges
112 AFAIK)
113*/
114
115
116static ADDRESS_MAP_START( afega, ADDRESS_SPACE_PROGRAM, 16 )
117   ADDRESS_MAP_FLAGS( AMEF_ABITS(20) )
118   AM_RANGE(0x000000, 0x07ffff) AM_ROM
119   AM_RANGE(0x080000, 0x080001) AM_READ(input_port_0_word_r)      // Buttons
120   AM_RANGE(0x080002, 0x080003) AM_READ(input_port_1_word_r)      // P1 + P2
121   AM_RANGE(0x080004, 0x080005) AM_READ(input_port_2_word_r)      // 2 x DSW
122   AM_RANGE(0x080012, 0x080013) AM_READ(afega_unknown_r)
123   AM_RANGE(0x080000, 0x08001d) AM_WRITE(MWA16_RAM)            //
124   AM_RANGE(0x08001e, 0x08001f) AM_WRITE(afega_soundlatch_w)      // To Sound CPU
125/**/AM_RANGE(0x084000, 0x084003) AM_RAM AM_WRITE(afega_scroll0_w)   // Scroll on redhawkb (mirror or changed?..)
126/**/AM_RANGE(0x084004, 0x084007) AM_RAM AM_WRITE(afega_scroll1_w)   // Scroll on redhawkb (mirror or changed?..)
127   AM_RANGE(0x080020, 0x087fff) AM_WRITE(MWA16_RAM)            //
128/**/AM_RANGE(0x088000, 0x0885ff) AM_READWRITE(MRA16_RAM, afega_palette_w) AM_BASE(&paletteram16) // Palette
129   AM_RANGE(0x088600, 0x08bfff) AM_WRITE(MWA16_RAM)            //
130/**/AM_RANGE(0x08c000, 0x08c003) AM_RAM AM_WRITE(afega_scroll0_w) AM_BASE(&afega_scroll_0)   // Scroll
131/**/AM_RANGE(0x08c004, 0x08c007) AM_RAM AM_WRITE(afega_scroll1_w) AM_BASE(&afega_scroll_1)   //
132   AM_RANGE(0x08c008, 0x08ffff) AM_WRITE(MWA16_RAM)            //
133/**/AM_RANGE(0x090000, 0x091fff) AM_READWRITE(MRA16_RAM, afega_vram_0_w) AM_BASE(&afega_vram_0)   // Layer 0
134/**/AM_RANGE(0x092000, 0x093fff) AM_RAM                        // ?
135/**/AM_RANGE(0x09c000, 0x09c7ff) AM_READWRITE(MRA16_RAM, afega_vram_1_w) AM_BASE(&afega_vram_1)   // Layer 1
136   AM_RANGE(0x0c0000, 0x0c7fff) AM_RAM                        // RAM
137   AM_RANGE(0x0c8000, 0x0c8fff) AM_RAM AM_SHARE(1) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size)   // Sprites
138   AM_RANGE(0x0c9000, 0x0cffff) AM_RAM   AM_SHARE(2) AM_BASE(&ram)            // RAM
139   AM_RANGE(0x0f8000, 0x0f8fff) AM_RAM AM_SHARE(1)               // Sprites Mirror
140   AM_RANGE(0x0f9000, 0x0fffff) AM_RAM   AM_SHARE(2)            // RAM Mirror (MangChi)
141ADDRESS_MAP_END
142
143
144// The high byte of the word written is the address to write to (byte offset), the low byte is data
145static WRITE16_HANDLER( twinactn_scroll0_w )
146{
147   int byte = ((data >> 8) & 3) ^ 2;
148   int bit  = ((byte & 1) ? 0 : 8);
149   afega_scroll_0[byte / 2] = (afega_scroll_0[byte / 2] & (0xff << (8-bit))) | ((data & 0xff) << bit);
150}
151static WRITE16_HANDLER( twinactn_scroll1_w )
152{
153   int byte = ((data >> 8) & 3) ^ 2;
154   int bit  = ((byte & 1) ? 0 : 8);
155   afega_scroll_1[byte / 2] = (afega_scroll_1[byte / 2] & (0xff << (8-bit))) | ((data & 0xff) << bit);
156}
157
158static WRITE16_HANDLER( twinactn_flipscreen_w )
159{
160   if (ACCESSING_LSB)
161      flip_screen_set(data & 1);
162
163   if (data & (~1))
164      logerror("%06x: unknown flip screen bit written %04x\n", activecpu_get_pc(), data);
165}
166
167static ADDRESS_MAP_START( twinactn, ADDRESS_SPACE_PROGRAM, 16 )
168//  ADDRESS_MAP_FLAGS( AMEF_ABITS(20) )
169   AM_RANGE(0x000000, 0x03ffff) AM_ROM
170   AM_RANGE(0x080000, 0x080001) AM_READ(input_port_0_word_r)      // Buttons
171   AM_RANGE(0x080002, 0x080003) AM_READ(input_port_1_word_r)      // P1 + P2
172   AM_RANGE(0x080004, 0x080005) AM_READ(input_port_2_word_r)      // 2 x DSW
173   AM_RANGE(0x080014, 0x080015) AM_WRITE(twinactn_flipscreen_w)
174   AM_RANGE(0x080016, 0x080017) AM_WRITE(MWA16_NOP)
175   AM_RANGE(0x08001e, 0x08001f) AM_WRITE(afega_soundlatch_w)      // To Sound CPU
176/**/AM_RANGE(0x088000, 0x0885ff) AM_READWRITE(MRA16_RAM, afega_palette_w) AM_BASE(&paletteram16) // Palette
177/**/AM_RANGE(0x08c000, 0x08c003) AM_RAM AM_WRITE(twinactn_scroll0_w) AM_BASE(&afega_scroll_0)   // Scroll
178/**/AM_RANGE(0x08c004, 0x08c007) AM_RAM AM_WRITE(twinactn_scroll1_w) AM_BASE(&afega_scroll_1)   //
179   AM_RANGE(0x08c008, 0x08c087) AM_WRITE(MWA16_RAM)            //
180/**/AM_RANGE(0x090000, 0x091fff) AM_READWRITE(MRA16_RAM, afega_vram_0_w) AM_BASE(&afega_vram_0)   // Layer 0
181/**/AM_RANGE(0x092000, 0x093fff) AM_RAM                        // ?
182/**/AM_RANGE(0x09c000, 0x09c7ff) AM_READWRITE(MRA16_RAM, afega_vram_1_w) AM_BASE(&afega_vram_1)   // Layer 1
183   AM_RANGE(0x0f0000, 0x0f7fff) AM_RAM                        // Work RAM
184   AM_RANGE(0x0f8000, 0x0f8fff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size)   // Sprites
185   AM_RANGE(0x0f9000, 0x0fffff) AM_RAM   AM_BASE(&ram)                     // Work RAM
186ADDRESS_MAP_END
187
188/***************************************************************************
189
190
191                            Memory Maps - Sound CPU
192
193
194***************************************************************************/
195static WRITE8_HANDLER( spec2k_oki1_banking_w )
196{
197    if(data == 0xfe)
198       OKIM6295_set_bank_base(1, 0);
199    else if(data == 0xff)
200       OKIM6295_set_bank_base(1, 0x40000);
201}
202
203static ADDRESS_MAP_START( afega_sound_cpu, ADDRESS_SPACE_PROGRAM, 8 )
204   AM_RANGE(0x0003, 0x0003) AM_WRITE(MWA8_NOP) // bug in sound prg?
205   AM_RANGE(0x0004, 0x0004) AM_WRITE(MWA8_NOP) // bug in sound prg?
206   AM_RANGE(0x0000, 0xefff) AM_ROM
207   AM_RANGE(0xf000, 0xf7ff) AM_RAM                           // RAM
208   AM_RANGE(0xf800, 0xf800) AM_READ(soundlatch_r)               // From Main CPU
209   AM_RANGE(0xf808, 0xf808) AM_WRITE(YM2151_register_port_0_w)      // YM2151
210   AM_RANGE(0xf809, 0xf809) AM_READWRITE(YM2151_status_port_0_r, YM2151_data_port_0_w)   // YM2151
211   AM_RANGE(0xf80a, 0xf80a) AM_READWRITE(OKIM6295_status_0_r, OKIM6295_data_0_w)      // M6295
212ADDRESS_MAP_END
213
214static ADDRESS_MAP_START( firehawk_sound_cpu, ADDRESS_SPACE_PROGRAM, 8 )
215   AM_RANGE(0x0000, 0xefff) AM_ROM
216   AM_RANGE(0xf000, 0xf7ff) AM_RAM
217   AM_RANGE(0xfff0, 0xfff0) AM_READ(soundlatch_r)
218   AM_RANGE(0xfff2, 0xfff2) AM_WRITE(spec2k_oki1_banking_w )
219   AM_RANGE(0xfff8, 0xfff8) AM_READWRITE(OKIM6295_status_1_r, OKIM6295_data_1_w)
220   AM_RANGE(0xfffa, 0xfffa) AM_READWRITE(OKIM6295_status_0_r, OKIM6295_data_0_w)
221   AM_RANGE(0xf800, 0xffff) AM_RAM // not used, only tested
222ADDRESS_MAP_END
223
224
225static WRITE8_HANDLER( twinactn_oki_bank_w )
226{
227   OKIM6295_set_bank_base(0, (data & 3) * 0x40000);
228
229   if (data & (~3))
230      logerror("%04x: invalid oki bank %02x\n", activecpu_get_pc(), data);
231
232//  logerror("%04x: oki bank %02x\n", activecpu_get_pc(), data);
233}
234
235static ADDRESS_MAP_START( twinactn_sound_cpu, ADDRESS_SPACE_PROGRAM, 8 )
236   AM_RANGE(0x0000, 0x7fff) AM_ROM
237   AM_RANGE(0x8000, 0x87ff) AM_RAM
238   AM_RANGE(0x9000, 0x9000) AM_WRITE(twinactn_oki_bank_w)
239   AM_RANGE(0x9800, 0x9800) AM_READWRITE(OKIM6295_status_0_r, OKIM6295_data_0_w)
240   AM_RANGE(0xa000, 0xa000) AM_READ(soundlatch_r)      // From Main CPU
241ADDRESS_MAP_END
242
243/***************************************************************************
244
245
246                                Input Ports
247
248
249***************************************************************************/
250
251/***************************************************************************
252                                Stagger I
253***************************************************************************/
254
255static INPUT_PORTS_START( stagger1 )
256   PORT_START_TAG("IN0")   // $080000.w
257   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
258   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
259   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 )
260   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_START1   )
261   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_START2   )
262   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN  )
263   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN  )
264   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN  )
265   PORT_BIT(  0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN  )
266
267   PORT_START_TAG("IN1")   // $080002.w
268   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
269   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
270   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
271   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
272   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
273   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
274   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
275   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
276   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
277   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
278   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
279   PORT_BIT(  0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
280   PORT_BIT(  0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
281   PORT_BIT(  0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
282   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
283   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
284
285   PORT_START_TAG("IN2")   // $080004.w
286   PORT_SERVICE( 0x0001, IP_ACTIVE_LOW )
287   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) )
288   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
289   PORT_DIPSETTING(      0x0002, DEF_STR( On ) )
290   PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) )
291   PORT_DIPSETTING(      0x0004, DEF_STR( Off ) )
292   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
293   PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) )
294   PORT_DIPSETTING(      0x0008, DEF_STR( Off ) )
295   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
296   PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) )
297   PORT_DIPSETTING(      0x0010, DEF_STR( Off ) )
298   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
299   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) )
300   PORT_DIPSETTING(      0x0020, DEF_STR( Off ) )
301   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
302   PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Lives ) )
303   PORT_DIPSETTING(      0x0000, "1" )
304   PORT_DIPSETTING(      0x0080, "2" )
305   PORT_DIPSETTING(      0x00c0, "3" )
306   PORT_DIPSETTING(      0x0040, "5" )
307   PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Flip_Screen ) )
308   PORT_DIPSETTING(      0x0300, DEF_STR( Off ) )
309   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
310   PORT_DIPSETTING(      0x0200, "Horizontally" )
311   PORT_DIPSETTING(      0x0100, "Vertically" )
312   PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unused ) )
313   PORT_DIPSETTING(      0x0400, DEF_STR( Off ) )
314   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
315   PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) )
316   PORT_DIPSETTING(      0x0800, DEF_STR( Easy ) )
317   PORT_DIPSETTING(      0x1800, DEF_STR( Normal ) )
318   PORT_DIPSETTING(      0x1000, DEF_STR( Hard ) )
319   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
320   PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) )
321   PORT_DIPSETTING(      0x0000, DEF_STR( 4C_1C ) )
322   PORT_DIPSETTING(      0x8000, DEF_STR( 3C_1C ) )
323   PORT_DIPSETTING(      0x4000, DEF_STR( 2C_1C ) )
324   PORT_DIPSETTING(      0xc000, DEF_STR( 3C_2C ) )
325   PORT_DIPSETTING(      0xe000, DEF_STR( 1C_1C ) )
326   PORT_DIPSETTING(      0x2000, DEF_STR( 2C_3C ) )
327   PORT_DIPSETTING(      0x6000, DEF_STR( 1C_2C ) )
328   PORT_DIPSETTING(      0xa000, DEF_STR( 1C_3C ) )
329INPUT_PORTS_END
330
331/* everything seems active high.. not low */
332static INPUT_PORTS_START( redhawkb )
333   PORT_START_TAG("IN0")   // $080000.w
334   PORT_BIT(  0x0001, IP_ACTIVE_HIGH, IPT_COIN1    )
335   PORT_BIT(  0x0002, IP_ACTIVE_HIGH, IPT_COIN2    )
336   PORT_BIT(  0x0004, IP_ACTIVE_HIGH, IPT_SERVICE1 )
337   PORT_BIT(  0x0008, IP_ACTIVE_HIGH, IPT_START1   )
338   PORT_BIT(  0x0010, IP_ACTIVE_HIGH, IPT_START2   )
339   PORT_BIT(  0x0020, IP_ACTIVE_HIGH, IPT_UNKNOWN  )
340   PORT_BIT(  0x0040, IP_ACTIVE_HIGH, IPT_UNKNOWN  )
341   PORT_BIT(  0x0080, IP_ACTIVE_HIGH, IPT_UNKNOWN  )
342   PORT_BIT(  0xff00, IP_ACTIVE_HIGH, IPT_UNKNOWN  )
343
344   PORT_START_TAG("IN1")   // $080002.w
345   PORT_BIT(  0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
346   PORT_BIT(  0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
347   PORT_BIT(  0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
348   PORT_BIT(  0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
349   PORT_BIT(  0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1)
350   PORT_BIT(  0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1)
351   PORT_BIT(  0x0040, IP_ACTIVE_HIGH, IPT_UNKNOWN )
352   PORT_BIT(  0x0080, IP_ACTIVE_HIGH, IPT_UNKNOWN )
353   PORT_BIT(  0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
354   PORT_BIT(  0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
355   PORT_BIT(  0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
356   PORT_BIT(  0x0800, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
357   PORT_BIT(  0x1000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2)
358   PORT_BIT(  0x2000, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2)
359   PORT_BIT(  0x4000, IP_ACTIVE_HIGH, IPT_UNKNOWN )
360   PORT_BIT(  0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN )
361
362   PORT_START_TAG("IN2")   // $080004.w  -- probably just redhawk but inverted
363   PORT_SERVICE( 0x0001, IP_ACTIVE_HIGH )    /* not working */
364   PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) )
365   PORT_DIPSETTING(      0x0002, DEF_STR( Off ) )
366   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
367   PORT_DIPNAME( 0x0004, 0x0000, DEF_STR( Unused ) )
368   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
369   PORT_DIPSETTING(      0x0004, DEF_STR( On ) )
370   PORT_DIPNAME( 0x0008, 0x0000, DEF_STR( Unused ) )
371   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
372   PORT_DIPSETTING(      0x0008, DEF_STR( On ) )
373   PORT_DIPNAME( 0x0010, 0x0000, DEF_STR( Unused ) )
374   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
375   PORT_DIPSETTING(      0x0010, DEF_STR( On ) )
376   PORT_DIPNAME( 0x0020, 0x0000, DEF_STR( Unused ) )
377   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
378   PORT_DIPSETTING(      0x0020, DEF_STR( On ) )
379   PORT_DIPNAME( 0x00c0, 0x0000, DEF_STR( Lives ) )
380   PORT_DIPSETTING(      0x00c0, "1" )
381   PORT_DIPSETTING(      0x0040, "2" )
382   PORT_DIPSETTING(      0x0000, "3" )
383   PORT_DIPSETTING(      0x0080, "5" )
384   PORT_DIPNAME( 0x0300, 0x0000, DEF_STR( Flip_Screen ) )    /* not supported */
385   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
386   PORT_DIPSETTING(      0x0300, DEF_STR( On ) )
387   PORT_DIPSETTING(      0x0100, "Horizontally" )
388   PORT_DIPSETTING(      0x0200, "Vertically" )
389   PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Unused ) )
390   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
391   PORT_DIPSETTING(      0x0400, DEF_STR( On ) )
392   PORT_DIPNAME( 0x1800, 0x0000, DEF_STR( Difficulty ) )
393   PORT_DIPSETTING(      0x1000, DEF_STR( Easy ) )
394   PORT_DIPSETTING(      0x0000, DEF_STR( Normal ) )
395   PORT_DIPSETTING(      0x0800, DEF_STR( Hard ) )
396   PORT_DIPSETTING(      0x1800, DEF_STR( Hardest ) )
397   PORT_DIPNAME( 0xe000, 0x0000, DEF_STR( Coinage ) )
398   PORT_DIPSETTING(      0xe000, DEF_STR( 4C_1C ) )
399   PORT_DIPSETTING(      0x6000, DEF_STR( 3C_1C ) )
400   PORT_DIPSETTING(      0xa000, DEF_STR( 2C_1C ) )
401   PORT_DIPSETTING(      0x2000, DEF_STR( 3C_2C ) )
402   PORT_DIPSETTING(      0x0000, DEF_STR( 1C_1C ) )
403   PORT_DIPSETTING(      0xc000, DEF_STR( 2C_3C ) )
404   PORT_DIPSETTING(      0x8000, DEF_STR( 1C_2C ) )
405   PORT_DIPSETTING(      0x4000, DEF_STR( 1C_3C ) )
406INPUT_PORTS_END
407
408/***************************************************************************
409                            Sen Jin - Guardian Storm
410***************************************************************************/
411
412static INPUT_PORTS_START( grdnstrm )
413   PORT_START_TAG("IN0")   // $080000.w
414   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
415   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
416   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 )
417   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_START1   )
418   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_START2   )
419   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN  )
420   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN  )
421   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN  )
422   PORT_BIT(  0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN  )
423
424   PORT_START_TAG("IN1")   // IN1 - $080002.w
425   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
426   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
427   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
428   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
429   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
430   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
431   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
432   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
433   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
434   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
435   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
436   PORT_BIT(  0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
437   PORT_BIT(  0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
438   PORT_BIT(  0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
439   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
440   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
441
442   PORT_START_TAG("IN2")   // $080004.w
443   PORT_SERVICE( 0x0001, IP_ACTIVE_LOW )
444   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) )
445   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
446   PORT_DIPSETTING(      0x0002, DEF_STR( On ) )
447   PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Free_Play ) )
448   PORT_DIPSETTING(      0x0004, DEF_STR( Off ) )
449   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
450   PORT_DIPNAME( 0x0008, 0x0008, "Bombs" )
451   PORT_DIPSETTING(      0x0008, "2" )
452   PORT_DIPSETTING(      0x0000, "3" )
453   PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) )
454   PORT_DIPSETTING(      0x0010, DEF_STR( Off ) )
455   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
456   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) )
457   PORT_DIPSETTING(      0x0020, DEF_STR( Off ) )
458   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
459   PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Lives ) )
460   PORT_DIPSETTING(      0x0000, "1" )
461   PORT_DIPSETTING(      0x0080, "2" )
462   PORT_DIPSETTING(      0x00c0, "3" )
463   PORT_DIPSETTING(      0x0040, "5" )
464   PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Flip_Screen ) )
465   PORT_DIPSETTING(      0x0300, DEF_STR( Off ) )
466   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
467   PORT_DIPSETTING(      0x0200, "Horizontally" )
468   PORT_DIPSETTING(      0x0100, "Vertically" )
469   PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unused ) )
470   PORT_DIPSETTING(      0x0400, DEF_STR( Off ) )
471   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
472   PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) )
473   PORT_DIPSETTING(      0x0800, DEF_STR( Easy ) )
474   PORT_DIPSETTING(      0x1800, DEF_STR( Normal ) )
475   PORT_DIPSETTING(      0x1000, DEF_STR( Hard ) )
476   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
477   PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) )
478   PORT_DIPSETTING(      0x0000, DEF_STR( 4C_1C ) )
479   PORT_DIPSETTING(      0x8000, DEF_STR( 3C_1C ) )
480   PORT_DIPSETTING(      0x4000, DEF_STR( 2C_1C ) )
481   PORT_DIPSETTING(      0xc000, DEF_STR( 3C_2C ) )
482   PORT_DIPSETTING(      0xe000, DEF_STR( 1C_1C ) )
483   PORT_DIPSETTING(      0x2000, DEF_STR( 2C_3C ) )
484   PORT_DIPSETTING(      0x6000, DEF_STR( 1C_2C ) )
485   PORT_DIPSETTING(      0xa000, DEF_STR( 1C_3C ) )
486INPUT_PORTS_END
487
488/* Pop's Pop's */
489
490static INPUT_PORTS_START( popspops )
491   PORT_START_TAG("IN0")   // $080000.w
492   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
493   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
494   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 )
495   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_START1   )
496   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_START2   )
497   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN  )
498   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN  )
499   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN  )
500   PORT_BIT(  0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN  )
501
502   PORT_START_TAG("IN1")   // IN1 - $080002.w
503   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
504   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
505   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
506   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
507   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
508   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
509   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
510   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
511   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
512   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
513   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
514   PORT_BIT(  0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
515   PORT_BIT(  0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
516   PORT_BIT(  0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
517   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
518   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
519
520   /* the dips on this are a mess.. service mode doesn't seem to be 100% trustable */
521   PORT_START_TAG("IN2")   // $080004.w
522   PORT_SERVICE( 0x0001, IP_ACTIVE_LOW )
523   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) )
524   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
525   PORT_DIPSETTING(      0x0002, DEF_STR( On ) )
526   PORT_DIPNAME( 0x0004, 0x0000, DEF_STR( Unknown ) ) // if ON it tells you the answers?!
527   PORT_DIPSETTING(      0x0004, DEF_STR( Off ) )
528   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
529   PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) )
530   PORT_DIPSETTING(      0x0008, DEF_STR( Off ) )
531   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
532   PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) )
533   PORT_DIPSETTING(      0x0010, DEF_STR( Off ) )
534   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
535   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) )
536   PORT_DIPSETTING(      0x0020, DEF_STR( Off ) )
537   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
538   PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play ) )
539   PORT_DIPSETTING(      0x0040, DEF_STR( Off ) )
540   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
541   PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) )
542   PORT_DIPSETTING(      0x0080, DEF_STR( Off ) )
543   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
544   PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) )
545   PORT_DIPSETTING(      0x0100, DEF_STR( Off ) )
546   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
547   PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) )
548   PORT_DIPSETTING(      0x0200, DEF_STR( Off ) )
549   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
550   PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) )
551   PORT_DIPSETTING(      0x0400, DEF_STR( Off ) )
552   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
553   PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) )
554   PORT_DIPSETTING(      0x1000, DEF_STR( Easy ) )
555   PORT_DIPSETTING(      0x1800, DEF_STR( Normal ) )
556   PORT_DIPSETTING(      0x0800, DEF_STR( Hard ) )
557   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
558   PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) )
559   PORT_DIPSETTING(      0x0000, DEF_STR( 4C_1C ) )
560   PORT_DIPSETTING(      0x2000, DEF_STR( 3C_1C ) )
561   PORT_DIPSETTING(      0x4000, DEF_STR( 2C_1C ) )
562   PORT_DIPSETTING(      0x6000, DEF_STR( 3C_2C ) )
563   PORT_DIPSETTING(      0xe000, DEF_STR( 1C_1C ) )
564   PORT_DIPSETTING(      0x8000, DEF_STR( 2C_3C ) )
565   PORT_DIPSETTING(      0xc000, DEF_STR( 1C_2C ) )
566   PORT_DIPSETTING(      0xa000, DEF_STR( 1C_3C ) )
567INPUT_PORTS_END
568
569
570
571/***************************************************************************
572                                Bubble 2000
573***************************************************************************/
574
575static INPUT_PORTS_START( bubl2000 )
576   PORT_START_TAG("IN0")   // $080000.w
577   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
578   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
579   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 )
580   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_START1   )
581   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_START2   )
582   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN  )
583   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN  )
584   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN  )
585   PORT_BIT(  0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN  )
586
587   PORT_START_TAG("IN1")   // $080002.w
588   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
589   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
590   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
591   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
592   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
593   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
594   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
595   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
596   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
597   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
598   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
599   PORT_BIT(  0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
600   PORT_BIT(  0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
601   PORT_BIT(  0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
602   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
603   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
604
605   PORT_START_TAG("IN2")   // $080004.w
606   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) )
607   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
608   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
609   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) )
610   PORT_DIPSETTING(      0x0002, DEF_STR( Off ) )
611   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
612   PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) )
613   PORT_DIPSETTING(      0x0008, DEF_STR( Easy ) )
614   PORT_DIPSETTING(      0x000c, DEF_STR( Normal ) )
615   PORT_DIPSETTING(      0x0004, DEF_STR( Hard ) )
616   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
617   PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) )
618   PORT_DIPSETTING(      0x0010, DEF_STR( Off ) )
619   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
620   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) )
621   PORT_DIPSETTING(      0x0020, DEF_STR( Off ) )
622   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
623   PORT_DIPNAME( 0x00c0, 0x00c0, "Free Credit" )
624   PORT_DIPSETTING(      0x0080, "500k" )
625   PORT_DIPSETTING(      0x00c0, "800k" )
626   PORT_DIPSETTING(      0x0040, "1000k" )
627   PORT_DIPSETTING(      0x0000, "1500k" )
628   PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unused ) )
629   PORT_DIPSETTING(      0x0100, DEF_STR( Off ) )
630   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
631   PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Demo_Sounds ) )
632   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
633   PORT_DIPSETTING(      0x0200, DEF_STR( On ) )
634   PORT_DIPNAME( 0x1c00, 0x1c00, DEF_STR( Coin_B ) )
635   PORT_DIPSETTING(      0x1000, DEF_STR( 4C_1C ) )
636   PORT_DIPSETTING(      0x0800, DEF_STR( 3C_1C ) )
637   PORT_DIPSETTING(      0x1800, DEF_STR( 2C_1C ) )
638   PORT_DIPSETTING(      0x1c00, DEF_STR( 1C_1C ) )
639   PORT_DIPSETTING(      0x0c00, DEF_STR( 1C_2C ) )
640   PORT_DIPSETTING(      0x1400, DEF_STR( 1C_3C ) )
641   PORT_DIPSETTING(      0x0400, DEF_STR( 1C_4C ) )
642//  PORT_DIPSETTING(      0x0000, "Disabled" )
643   PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coin_A ) )
644   PORT_DIPSETTING(      0x8000, DEF_STR( 4C_1C ) )
645   PORT_DIPSETTING(      0x4000, DEF_STR( 3C_1C ) )
646   PORT_DIPSETTING(      0xc000, DEF_STR( 2C_1C ) )
647   PORT_DIPSETTING(      0xe000, DEF_STR( 1C_1C ) )
648   PORT_DIPSETTING(      0x6000, DEF_STR( 1C_2C ) )
649   PORT_DIPSETTING(      0xa000, DEF_STR( 1C_3C ) )
650   PORT_DIPSETTING(      0x2000, DEF_STR( 1C_4C ) )
651//  PORT_DIPSETTING(      0x0000, "Disabled" )
652INPUT_PORTS_END
653
654/***************************************************************************
655                                Mang Chi
656***************************************************************************/
657
658static INPUT_PORTS_START( mangchi )
659   PORT_START_TAG("IN0")   // $080000.w
660   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
661   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
662   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 )
663   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_START1   )
664   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_START2   )
665   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN  )
666   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN  )
667   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN  )
668   PORT_BIT(  0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN  )
669
670   PORT_START_TAG("IN1")   // $080002.w
671   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
672   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
673   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
674   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
675   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
676   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
677   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
678   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
679   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
680   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
681   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
682   PORT_BIT(  0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
683   PORT_BIT(  0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
684   PORT_BIT(  0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
685   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
686   PORT_BIT(  0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
687
688   PORT_START_TAG("IN2")   // $080004.w
689    PORT_DIPNAME( 0x0001, 0x0001, "DSWS" )      /* Setting to on cuases screen issues, Flip Screen? or unfinished test mode? */
690    PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
691    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
692   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) )
693   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
694   PORT_DIPSETTING(      0x0002, DEF_STR( On ) )
695    PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) )
696    PORT_DIPSETTING(      0x0004, DEF_STR( Off ) )
697    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
698   PORT_DIPNAME( 0x0018, 0x0018, "Vs Rounds" )
699   PORT_DIPSETTING(      0x0018, "2" )
700   PORT_DIPSETTING(      0x0010, "3" )
701   PORT_DIPSETTING(      0x0008, "4" )
702   PORT_DIPSETTING(      0x0000, "5" )
703    PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) )
704    PORT_DIPSETTING(      0x0020, DEF_STR( Off ) )
705    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
706   PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play ) )
707   PORT_DIPSETTING(      0x0040, DEF_STR( Off ) )
708   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
709    PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) )
710    PORT_DIPSETTING(      0x0080, DEF_STR( Off ) )
711    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
712    PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) )
713    PORT_DIPSETTING(      0x0100, DEF_STR( Off ) )
714    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
715    PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) )
716    PORT_DIPSETTING(      0x0200, DEF_STR( Off ) )
717    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
718    PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) )
719    PORT_DIPSETTING(      0x0400, DEF_STR( Off ) )
720    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
721   PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) )   /* Hard to tell levels of difficulty by play :-( */
722   PORT_DIPSETTING(      0x0800, DEF_STR( Easy ) )
723   PORT_DIPSETTING(      0x1800, DEF_STR( Normal ) )
724   PORT_DIPSETTING(      0x1000, DEF_STR( Hard ) )
725   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
726   PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) )
727   PORT_DIPSETTING(      0x0000, DEF_STR( 4C_1C ) )
728   PORT_DIPSETTING(      0x2000, DEF_STR( 3C_1C ) )
729   PORT_DIPSETTING(      0x4000, DEF_STR( 2C_1C ) )
730   PORT_DIPSETTING(      0x6000, DEF_STR( 3C_2C ) )
731   PORT_DIPSETTING(      0xe000, DEF_STR( 1C_1C ) )
732   PORT_DIPSETTING(      0x8000, DEF_STR( 2C_3C ) )
733   PORT_DIPSETTING(      0xc000, DEF_STR( 1C_2C ) )
734   PORT_DIPSETTING(      0xa000, DEF_STR( 1C_3C ) )
735INPUT_PORTS_END
736
737
738/***************************************************************************
739                                Fire Hawk
740***************************************************************************/
741
742static INPUT_PORTS_START( firehawk )
743   PORT_START_TAG("IN0")   // $080000.w
744   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
745   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
746   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 )
747   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 )
748   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 )
749   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN  )
750   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN  )
751   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN  )
752   PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN  )
753
754   PORT_START_TAG("IN1")   // $080002.w
755   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
756   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
757   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
758   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
759   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
760   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
761   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN  )
762   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN  )
763   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
764   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
765   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
766   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
767   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
768   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
769   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN  )
770   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN  )
771
772   PORT_START_TAG("IN2")    // $080004.w
773   PORT_DIPNAME( 0x0001, 0x0001, "Show Dip-Switch Settings" )
774   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
775   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
776   PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Difficulty ) )
777   PORT_DIPSETTING(      0x0006, DEF_STR( Very_Easy) )
778   PORT_DIPSETTING(      0x0008, DEF_STR( Easy ) )
779//  PORT_DIPSETTING(      0x000a, DEF_STR( Easy ) )
780   PORT_DIPSETTING(      0x000e, DEF_STR( Normal ) )
781//  PORT_DIPSETTING(      0x0000, DEF_STR( Hard ) )
782   PORT_DIPSETTING(      0x0002, DEF_STR( Hard ) )
783   PORT_DIPSETTING(      0x0004, DEF_STR( Hardest ) )
784   PORT_DIPSETTING(      0x000c, DEF_STR( Very_Hard ) )
785   PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Demo_Sounds ) )
786   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
787   PORT_DIPSETTING(      0x0010, DEF_STR( On ) )
788   PORT_DIPNAME( 0x0020, 0x0020, "Number of Bombs" )
789   PORT_DIPSETTING(      0x0020, "2" )
790   PORT_DIPSETTING(      0x0000, "3" )
791   PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Lives ) )
792   PORT_DIPSETTING(      0x0000, "1" )
793   PORT_DIPSETTING(      0x0080, "2" )
794   PORT_DIPSETTING(      0x00c0, "3" )
795   PORT_DIPSETTING(      0x0040, "4" )
796   PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) )
797   PORT_DIPSETTING(      0x0100, DEF_STR( Off ) )
798   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
799   PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Region ) )
800   PORT_DIPSETTING(      0x0200, DEF_STR( English ) )
801   PORT_DIPSETTING(      0x0000, "China" )
802   PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Free_Play ) )
803   PORT_DIPSETTING(      0x0400, DEF_STR( Off ) )
804   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
805   PORT_DIPNAME( 0x1800, 0x1800, "Continue Coins" )
806   PORT_DIPSETTING(      0x1800, "1 Coin" )
807   PORT_DIPSETTING(      0x0800, "2 Coins" )
808   PORT_DIPSETTING(      0x1000, "3 Coins" )
809   PORT_DIPSETTING(      0x0000, "4 Coins" )
810   PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) )
811   PORT_DIPSETTING(      0x0000, DEF_STR( 4C_1C ) )
812   PORT_DIPSETTING(      0x8000, DEF_STR( 3C_1C ) )
813   PORT_DIPSETTING(      0x4000, DEF_STR( 2C_1C ) )
814   PORT_DIPSETTING(      0xc000, DEF_STR( 3C_2C ) )
815   PORT_DIPSETTING(      0xe000, DEF_STR( 1C_1C ) )
816   PORT_DIPSETTING(      0x2000, DEF_STR( 2C_3C ) )
817   PORT_DIPSETTING(      0x6000, DEF_STR( 1C_2C ) )
818   PORT_DIPSETTING(      0xa000, DEF_STR( 1C_3C ) )
819INPUT_PORTS_END
820
821
822/***************************************************************************
823                             Spectrum 2000
824***************************************************************************/
825
826static INPUT_PORTS_START( spec2k )
827   PORT_START_TAG("IN0")   // $080000.w
828   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
829   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
830   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 )
831   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 )
832   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 )
833   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN  )
834   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN  )
835   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN  )
836   PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN  )
837
838   PORT_START_TAG("IN1")   // $080002.w
839   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
840   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
841   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
842   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
843   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
844   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
845   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN  )
846   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN  )
847   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
848   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
849   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
850   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
851   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
852   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
853   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN  )
854   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN  )
855
856   PORT_START_TAG("IN2")    // $080004.w
857   PORT_SERVICE( 0x0001, IP_ACTIVE_LOW )
858   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) )
859   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
860   PORT_DIPSETTING(      0x0002, DEF_STR( On ) )
861   PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Free_Play ) )
862   PORT_DIPSETTING(      0x0004, DEF_STR( Off ) )
863   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
864   PORT_DIPNAME( 0x0008, 0x0008, "Number of Bombs" )
865   PORT_DIPSETTING(      0x0008, "2" )
866   PORT_DIPSETTING(      0x0000, "3" )
867   PORT_DIPNAME( 0x0010, 0x0010, "Copyright Notice" )
868   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
869   PORT_DIPSETTING(      0x0010, DEF_STR( On ) )
870   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) )
871   PORT_DIPSETTING(      0x0020, DEF_STR( Off ) )
872   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
873   PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Lives ) )
874   PORT_DIPSETTING(      0x0000, "1" )
875   PORT_DIPSETTING(      0x0080, "2" )
876   PORT_DIPSETTING(      0x00c0, "3" )
877   PORT_DIPSETTING(      0x0040, "5" )
878   PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) )
879   PORT_DIPSETTING(      0x0100, DEF_STR( Off ) )
880   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
881   PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) )
882   PORT_DIPSETTING(      0x0200, DEF_STR( Off ) )
883   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
884   PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) )
885   PORT_DIPSETTING(      0x0400, DEF_STR( Off ) )
886   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
887   PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) )
888   PORT_DIPSETTING(      0x0800, DEF_STR( Easy ) )
889   PORT_DIPSETTING(      0x1800, DEF_STR( Normal ) )
890   PORT_DIPSETTING(      0x1000, DEF_STR( Hard ) )
891   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
892   PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) )
893   PORT_DIPSETTING(      0x0000, DEF_STR( 4C_1C ) )
894   PORT_DIPSETTING(      0x8000, DEF_STR( 3C_1C ) )
895   PORT_DIPSETTING(      0x4000, DEF_STR( 2C_1C ) )
896   PORT_DIPSETTING(      0xc000, DEF_STR( 3C_2C ) )
897   PORT_DIPSETTING(      0xe000, DEF_STR( 1C_1C ) )
898   PORT_DIPSETTING(      0x2000, DEF_STR( 2C_3C ) )
899   PORT_DIPSETTING(      0x6000, DEF_STR( 1C_2C ) )
900   PORT_DIPSETTING(      0xa000, DEF_STR( 1C_3C ) )
901INPUT_PORTS_END
902
903
904/***************************************************************************
905                                Twin Action
906***************************************************************************/
907
908static INPUT_PORTS_START( twinactn )
909   PORT_START_TAG("IN0")   // $080000.w
910   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_COIN1    )
911   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_COIN2    )
912   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 )
913   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_START1   )
914   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_START2   )
915   PORT_SERVICE_NO_TOGGLE(0x0020, IP_ACTIVE_LOW   )   // Test in service mode
916   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN  )
917   PORT_BIT(  0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN  )
918   PORT_BIT(  0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN  )
919
920   PORT_START_TAG("IN1")   // $080002.w
921   PORT_BIT(  0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
922   PORT_BIT(  0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
923   PORT_BIT(  0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
924   PORT_BIT(  0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
925   PORT_BIT(  0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
926   PORT_BIT(  0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
927   PORT_BIT(  0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
928   PORT_BIT(  0x0080, IP_ACTIVE_HIGH,IPT_UNKNOWN )   // Tested at boot
929   PORT_BIT(  0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
930   PORT_BIT(  0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
931   PORT_BIT(  0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
932   PORT_BIT(  0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
933   PORT_BIT(  0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
934   PORT_BIT(  0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
935   PORT_BIT(  0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
936   PORT_BIT(  0x8000, IP_ACTIVE_HIGH,IPT_UNKNOWN )   // Tested at boot
937
938   PORT_START_TAG("IN2")   // $080004.w
939   PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) )
940   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
941   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
942   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) )
943   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
944   PORT_DIPSETTING(      0x0002, DEF_STR( On ) )
945   PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) )
946   PORT_DIPSETTING(      0x0010, DEF_STR( 4C_1C ) )
947   PORT_DIPSETTING(      0x0008, DEF_STR( 3C_1C ) )
948   PORT_DIPSETTING(      0x0018, DEF_STR( 2C_1C ) )
949   PORT_DIPSETTING(      0x001c, DEF_STR( 1C_1C ) )
950   PORT_DIPSETTING(      0x000c, DEF_STR( 1C_2C ) )
951   PORT_DIPSETTING(      0x0014, DEF_STR( 1C_3C ) )
952   PORT_DIPSETTING(      0x0004, DEF_STR( 1C_4C ) )
953   PORT_DIPSETTING(      0x0000, DEF_STR( Free_Play ) )
954   PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) )
955   PORT_DIPSETTING(      0x0080, DEF_STR( 4C_1C ) )
956   PORT_DIPSETTING(      0x0040, DEF_STR( 3C_1C ) )
957   PORT_DIPSETTING(      0x00c0, DEF_STR( 2C_1C ) )
958   PORT_DIPSETTING(      0x00e0, DEF_STR( 1C_1C ) )
959   PORT_DIPSETTING(      0x0060, DEF_STR( 1C_2C ) )
960   PORT_DIPSETTING(      0x00a0, DEF_STR( 1C_3C ) )
961   PORT_DIPSETTING(      0x0020, DEF_STR( 1C_4C ) )
962   PORT_DIPSETTING(      0x0000, DEF_STR( Free_Play ) )
963
964   PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) )
965   PORT_DIPSETTING(      0x0100, DEF_STR( Off ) )
966   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
967   PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) )
968   PORT_DIPSETTING(      0x0200, DEF_STR( Off ) )
969   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
970   PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) )
971   PORT_DIPSETTING(      0x0c00, DEF_STR( Easy ) )
972   PORT_DIPSETTING(      0x0400, DEF_STR( Normal ) )
973   PORT_DIPSETTING(      0x0800, DEF_STR( Hard ) )
974   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
975   PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) )
976   PORT_DIPSETTING(      0x1000, DEF_STR( Off ) )
977   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
978   PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) )
979   PORT_DIPSETTING(      0x2000, DEF_STR( Off ) )
980   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
981   PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) )
982   PORT_DIPSETTING(      0x4000, "2" )
983   PORT_DIPSETTING(      0xc000, "3" )
984   PORT_DIPSETTING(      0x8000, "4" )
985   PORT_DIPSETTING(      0x0000, "5" )
986INPUT_PORTS_END
987
988
989/***************************************************************************
990
991
992                            Graphics Layouts
993
994
995***************************************************************************/
996
997static const gfx_layout layout_8x8x4 =
998{
999   8,8,
1000   RGN_FRAC(1,1),
1001   4,
1002   { STEP4(0,1)   },
1003   { STEP8(0,4)   },
1004   { STEP8(0,8*4)   },
1005   8*8*4
1006};
1007
1008static const gfx_layout layout_16x16x4 =
1009{
1010   16,16,
1011   RGN_FRAC(1,1),
1012   4,
1013   { STEP4(0,1)   },
1014   { STEP8(0,4),   STEP8(8*8*4*2,4)   },
1015   { STEP8(0,8*4), STEP8(8*8*4*1,8*4)   },
1016   16*16*4
1017};
1018
1019static const gfx_layout layout_16x16x8 =
1020{
1021   16,16,
1022   RGN_FRAC(1,2),
1023   8,
1024   { STEP4(RGN_FRAC(0,2),1), STEP4(RGN_FRAC(1,2),1)   },
1025   { STEP8(0,4),   STEP8(8*8*4*2,4)   },
1026   { STEP8(0,8*4), STEP8(8*8*4*1,8*4)   },
1027   16*16*4
1028};
1029
1030
1031static const gfx_layout layout_16x16x4_swapped =
1032{
1033   16,16,
1034   RGN_FRAC(1,1),
1035   4,
1036   { STEP4(0,1)   },
1037   { 4,0,12,8,20,16,28,24, 512+4,512+0,512+12,512+8,512+20,512+16,512+28,512+24},
1038   { STEP8(0,8*4), STEP8(8*8*4*1,8*4)   },
1039   16*16*4
1040};
1041
1042static GFXDECODE_START( grdnstrm )
1043   GFXDECODE_ENTRY( REGION_GFX1, 0, layout_16x16x4,   256*1, 16 ) // [0] Sprites
1044   GFXDECODE_ENTRY( REGION_GFX2, 0, layout_16x16x8,   256*3, 16 ) // [1] Layer 0
1045   GFXDECODE_ENTRY( REGION_GFX3, 0, layout_8x8x4,   256*2, 16 ) // [2] Layer 1
1046GFXDECODE_END
1047
1048static GFXDECODE_START( stagger1 )
1049   GFXDECODE_ENTRY( REGION_GFX1, 0, layout_16x16x4,   256*1, 16 ) // [0] Sprites
1050   GFXDECODE_ENTRY( REGION_GFX2, 0, layout_16x16x4,   256*0, 16 ) // [1] Layer 0
1051   GFXDECODE_ENTRY( REGION_GFX3, 0, layout_8x8x4,   256*2, 16 ) // [2] Layer 1
1052GFXDECODE_END
1053
1054static GFXDECODE_START( redhawkb )
1055   GFXDECODE_ENTRY( REGION_GFX1, 0, layout_16x16x4_swapped,   256*1, 16 ) // [0] Sprites
1056   GFXDECODE_ENTRY( REGION_GFX2, 0, layout_16x16x4_swapped,   256*0, 16 ) // [1] Layer 0
1057   GFXDECODE_ENTRY( REGION_GFX3, 0, layout_8x8x4,         256*2, 16 ) // [2] Layer 1
1058GFXDECODE_END
1059
1060
1061/***************************************************************************
1062
1063
1064                                Machine Drivers
1065
1066
1067***************************************************************************/
1068
1069static void irq_handler(int irq)
1070{
1071   cpunum_set_input_line(1,0,irq ? ASSERT_LINE : CLEAR_LINE);
1072}
1073
1074static const struct YM2151interface afega_ym2151_intf =
1075{
1076   irq_handler
1077};
1078
1079static INTERRUPT_GEN( interrupt_afega )
1080{
1081   switch ( cpu_getiloops() )
1082   {
1083      case 0:      irq2_line_hold();   break;
1084      case 1:      irq4_line_hold();   break;
1085   }
1086}
1087
1088static MACHINE_DRIVER_START( stagger1 )
1089
1090   /* basic machine hardware */
1091   MDRV_CPU_ADD(M68000,12000000)
1092   MDRV_CPU_PROGRAM_MAP(afega,0)
1093   MDRV_CPU_VBLANK_INT(interrupt_afega,2)
1094
1095   MDRV_CPU_ADD(Z80, 4000000)
1096   /* audio CPU */   /* ? */
1097   MDRV_CPU_PROGRAM_MAP(afega_sound_cpu,0)
1098
1099   MDRV_SCREEN_REFRESH_RATE(56)
1100   MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION)
1101
1102   /* video hardware */
1103   MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
1104   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
1105   MDRV_SCREEN_SIZE(256, 256)
1106   MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1)   /* fixed */
1107   MDRV_GFXDECODE(stagger1)
1108   MDRV_PALETTE_LENGTH(768)
1109
1110   MDRV_VIDEO_START(afega)
1111   MDRV_VIDEO_UPDATE(afega)
1112
1113   /* sound hardware */
1114   MDRV_SPEAKER_STANDARD_STEREO("left", "right")
1115
1116   MDRV_SOUND_ADD(YM2151, 4000000)
1117   MDRV_SOUND_CONFIG(afega_ym2151_intf)
1118   MDRV_SOUND_ROUTE(0, "left", 0.30)
1119   MDRV_SOUND_ROUTE(1, "right", 0.30)
1120
1121   MDRV_SOUND_ADD(OKIM6295, 1000000)
1122   MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7high)
1123   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.70)
1124   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.70)
1125MACHINE_DRIVER_END
1126
1127static MACHINE_DRIVER_START( redhawkb )
1128   /* basic machine hardware */
1129   MDRV_IMPORT_FROM(stagger1)
1130   /* video hardware */
1131   MDRV_GFXDECODE(redhawkb)
1132   MDRV_VIDEO_UPDATE(redhawkb)
1133MACHINE_DRIVER_END
1134
1135static MACHINE_DRIVER_START( grdnstrm )
1136
1137   /* basic machine hardware */
1138   MDRV_IMPORT_FROM(stagger1)
1139
1140   /* video hardware */
1141   MDRV_GFXDECODE(grdnstrm)
1142   MDRV_PALETTE_LENGTH(768)
1143   MDRV_COLORTABLE_LENGTH(768 + 16*256)
1144
1145   MDRV_PALETTE_INIT(grdnstrm)
1146MACHINE_DRIVER_END
1147
1148static MACHINE_DRIVER_START( popspops )
1149
1150   /* basic machine hardware */
1151   MDRV_IMPORT_FROM(stagger1)
1152
1153   /* video hardware */
1154   MDRV_GFXDECODE(grdnstrm)
1155   MDRV_PALETTE_LENGTH(768)
1156   MDRV_COLORTABLE_LENGTH(768 + 16*256)
1157
1158   MDRV_PALETTE_INIT(grdnstrm)
1159
1160   MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1)
1161   MDRV_VIDEO_UPDATE(bubl2000)
1162MACHINE_DRIVER_END
1163
1164
1165static MACHINE_DRIVER_START( bubl2000 )
1166
1167   /* basic machine hardware */
1168   MDRV_IMPORT_FROM(grdnstrm)
1169
1170   /* video hardware */
1171   MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1)   /* added to do not break other games */
1172   MDRV_VIDEO_UPDATE(bubl2000)
1173MACHINE_DRIVER_END
1174
1175static MACHINE_DRIVER_START( firehawk )
1176
1177   /* basic machine hardware */
1178   MDRV_CPU_ADD(M68000,12000000)
1179   MDRV_CPU_PROGRAM_MAP(afega,0)
1180   MDRV_CPU_VBLANK_INT(interrupt_afega,2)
1181
1182   MDRV_CPU_ADD(Z80,4000000)
1183   /* audio CPU */
1184   MDRV_CPU_PROGRAM_MAP(firehawk_sound_cpu,0)
1185
1186   MDRV_SCREEN_REFRESH_RATE(56)
1187   MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION)
1188
1189   /* video hardware */
1190   MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
1191   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
1192   MDRV_SCREEN_SIZE(256, 256)
1193   MDRV_SCREEN_VISIBLE_AREA(8, 256-8-1, 16, 256-16-1)
1194   MDRV_GFXDECODE(grdnstrm)
1195   MDRV_PALETTE_LENGTH(768)
1196   MDRV_COLORTABLE_LENGTH(768 + 16*256)
1197
1198   MDRV_PALETTE_INIT(grdnstrm)
1199   MDRV_VIDEO_START(firehawk)
1200   MDRV_VIDEO_UPDATE(firehawk)
1201
1202   /* sound hardware */
1203   MDRV_SPEAKER_STANDARD_MONO("mono")
1204
1205   MDRV_SOUND_ADD(OKIM6295, 1000000)
1206   MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7high)
1207   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
1208
1209   MDRV_SOUND_ADD(OKIM6295, 1000000)
1210   MDRV_SOUND_CONFIG(okim6295_interface_region_2_pin7high)
1211   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
1212MACHINE_DRIVER_END
1213
1214
1215static INTERRUPT_GEN( interrupt_twinactn )
1216{
1217   switch ( cpu_getiloops() )
1218   {
1219      case 0:      irq1_line_hold();   break;
1220      case 1:      irq2_line_hold();   break;
1221      case 2:      irq4_line_hold();   break;
1222   }
1223}
1224
1225static MACHINE_DRIVER_START( twinactn )
1226
1227   /* basic machine hardware */
1228   MDRV_CPU_ADD(M68000,12000000)
1229   MDRV_CPU_PROGRAM_MAP(twinactn,0)
1230   MDRV_CPU_VBLANK_INT(interrupt_twinactn,3)
1231
1232   MDRV_CPU_ADD(Z80, 4000000)
1233   /* audio CPU */   /* ? */
1234   MDRV_CPU_PROGRAM_MAP(twinactn_sound_cpu,0)
1235
1236   MDRV_SCREEN_REFRESH_RATE(56)
1237   MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION)
1238
1239   /* video hardware */
1240   MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
1241   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
1242   MDRV_SCREEN_SIZE(256, 256)
1243   MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1)
1244   MDRV_GFXDECODE(stagger1)
1245   MDRV_PALETTE_LENGTH(768)
1246
1247   MDRV_VIDEO_START(twinactn)
1248   MDRV_VIDEO_UPDATE(twinactn)
1249
1250   /* sound hardware */
1251   MDRV_SPEAKER_STANDARD_MONO("mono")
1252
1253   MDRV_SOUND_ADD(OKIM6295, 1000000)
1254   MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7high)
1255   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
1256MACHINE_DRIVER_END
1257
1258
1259/***************************************************************************
1260
1261
1262                                ROMs Loading
1263
1264
1265***************************************************************************/
1266
1267/* Address lines scrambling */
1268
1269static void decryptcode( int a23, int a22, int a21, int a20, int a19, int a18, int a17, int a16, int a15, int a14, int a13, int a12,
1270   int a11, int a10, int a9, int a8, int a7, int a6, int a5, int a4, int a3, int a2, int a1, int a0 )
1271{
1272   int i;
1273   UINT8 *RAM = memory_region( REGION_CPU1 );
1274   size_t  size = memory_region_length( REGION_CPU1 );
1275   UINT8 *buffer = malloc_or_die( size );
1276
1277      memcpy( buffer, RAM, size );
1278      for( i = 0; i < size; i++ )
1279      {
1280         RAM[ i ] = buffer[ BITSWAP24( i, a23, a22, a21, a20, a19, a18, a17, a16, a15, a14, a13, a12,
1281            a11, a10, a9, a8, a7, a6, a5, a4, a3, a2, a1, a0 ) ];
1282      }
1283      free( buffer );
1284}
1285
1286/***************************************************************************
1287
1288                                    Stagger I
1289(AFEGA 1998)
1290
1291Parts:
1292
12931 MC68HC000P10
12941 Z80
12952 Lattice ispLSI 1032E
1296
1297***************************************************************************/
1298
1299ROM_START( stagger1 )
1300   ROM_REGION( 0x80000, REGION_CPU1, 0 )      /* 68000 Code */
1301   ROM_LOAD16_BYTE( "2.bin", 0x000000, 0x020000, CRC(8555929b) SHA1(b405d81c2a45191111b1a4458ac6b5c0a129b8f1) )
1302   ROM_LOAD16_BYTE( "3.bin", 0x000001, 0x020000, CRC(5b0b63ac) SHA1(239f793b6845a88d1630da790a2762da730a450d) )
1303
1304   ROM_REGION( 0x10000, REGION_CPU2, 0 )      /* Z80 Code */
1305   ROM_LOAD( "1.bin", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) )
1306
1307   ROM_REGION( 0x100000, REGION_GFX1, ROMREGION_DISPOSE )   /* Sprites, 16x16x4 */
1308   ROM_LOAD16_BYTE( "7.bin", 0x00000, 0x80000, CRC(048f7683) SHA1(7235b7dcfbb72abf44e60b114e3f504f16d29ebf) )
1309   ROM_LOAD16_BYTE( "6.bin", 0x00001, 0x80000, CRC(051d4a77) SHA1(664182748e72b3e44202caa20f337d02e946ca62) )
1310
1311   ROM_REGION( 0x080000, REGION_GFX2, ROMREGION_DISPOSE )   /* Layer 0, 16x16x4 */
1312   ROM_LOAD( "4.bin", 0x00000, 0x80000, CRC(46463d36) SHA1(4265bc4d24ff64e39d9273965701c740d7e3fee0) )
1313
1314   ROM_REGION( 0x00100, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF )   /* Layer 1, 8x8x4 */
1315   // Unused
1316
1317   ROM_REGION( 0x40000, REGION_SOUND1, 0 )   /* Samples */
1318   ROM_LOAD( "5", 0x00000, 0x40000, CRC(e911ce33) SHA1(a29c4dea98a22235122303325c63c15fadd3431d) )
1319ROM_END
1320
1321
1322/***************************************************************************
1323
1324                            Red Hawk (c)1997 Afega
1325
1326
1327
1328    6116         ym2151     MSM6295   5    4MHz
1329    1
1330    Z80        pLSI1032    4
1331                                      76C88
1332       6116   76C256                  76C88
1333       6116   76C256
1334    2  76C256 76C256
1335    3  76C256 76C256
1336
1337    68000-10        6116
1338                    6116
1339   SW1                             6
1340   SW21                pLSI1032    7
1341    12MHz
1342
1343***************************************************************************/
1344
1345ROM_START( redhawk )
1346   ROM_REGION( 0x80000, REGION_CPU1, 0 )      /* 68000 Code */
1347   ROM_LOAD16_BYTE( "2", 0x000000, 0x020000, CRC(3ef5f326) SHA1(e89c7c24a05886a14995d7c399958dc00ad35d63) )
1348   ROM_LOAD16_BYTE( "3", 0x000001, 0x020000, CRC(9b3a10ef) SHA1(d03480329b23474e5a9e42a75b09d2140eed4443) )
1349
1350   ROM_REGION( 0x10000, REGION_CPU2, 0 )      /* Z80 Code */
1351   ROM_LOAD( "1.bin", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) )
1352
1353   ROM_REGION( 0x100000, REGION_GFX1, ROMREGION_DISPOSE )   /* Sprites, 16x16x4 */
1354   ROM_LOAD16_BYTE( "6", 0x000001, 0x080000, CRC(61560164) SHA1(d727ab2d037dab40745dec9c4389744534fdf07d) )
1355   ROM_LOAD16_BYTE( "7", 0x000000, 0x080000, CRC(66a8976d) SHA1(dd9b89cf29eb5557845599d55ef3a15f53c070a4) )
1356
1357   ROM_REGION( 0x080000, REGION_GFX2, ROMREGION_DISPOSE )   /* Layer 0, 16x16x8 */
1358   ROM_LOAD( "4", 0x000000, 0x080000, CRC(d6427b8a) SHA1(556de1b5ce29d1c3c54bb315dcaa4dd0848ca462) )
1359
1360   ROM_REGION( 0x00100, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF )   /* Layer 1, 8x8x4 */
1361   // Unused
1362
1363   ROM_REGION( 0x40000, REGION_SOUND1, 0 )   /* Samples */
1364   ROM_LOAD( "5", 0x00000, 0x40000, CRC(e911ce33) SHA1(a29c4dea98a22235122303325c63c15fadd3431d) )
1365ROM_END
1366
1367static DRIVER_INIT( redhawk )
1368{
1369   decryptcode( 23, 22, 21, 20, 19, 18, 16, 15, 14, 17, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 );
1370}
1371
1372ROM_START( redhawkb )
1373   ROM_REGION( 0x80000, REGION_CPU1, 0 )      /* 68000 Code */
1374   ROM_LOAD16_BYTE( "rhb-1.bin", 0x000000, 0x020000, CRC(e733ea07) SHA1(b1ffeda633d5e701f0e97c79930a54d7b89a85c5) )
1375   ROM_LOAD16_BYTE( "rhb-2.bin", 0x000001, 0x020000, CRC(f9fa5684) SHA1(057ea3eebbaa1a208a72beef21b9368df7032ce1) )
1376
1377   ROM_REGION( 0x10000, REGION_CPU2, 0 )      /* Z80 Code */
1378   ROM_LOAD( "1.bin", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) )
1379
1380   ROM_REGION( 0x100000, REGION_GFX1, ROMREGION_DISPOSE )   /* Sprites, 16x16x4 */
1381   ROM_LOAD( "rhb-3.bin", 0x000000, 0x080000, CRC(0318d68b) SHA1(c773de7b6f9c706e62349dc73af4339d1a3f9af6) )
1382   ROM_LOAD( "rhb-4.bin", 0x080000, 0x080000, CRC(ba21c1ef) SHA1(66b0dee67acb5b3a21c7dba057be4093a92e10a9) )
1383
1384   ROM_REGION( 0x080000, REGION_GFX2, ROMREGION_DISPOSE )   /* Layer 0, 16x16x8 */
1385   ROM_LOAD( "rhb-5.bin", 0x000000, 0x080000, CRC(d0eaf6f2) SHA1(6e946e13b06df897a63e885c9842816ec908a709) )
1386
1387   ROM_REGION( 0x080000, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF )   /* Layer 1, 8x8x4 */
1388
1389   ROM_REGION( 0x40000, REGION_SOUND1, 0 )   /* Samples */
1390   ROM_LOAD( "5", 0x00000, 0x40000, CRC(e911ce33) SHA1(a29c4dea98a22235122303325c63c15fadd3431d) )
1391ROM_END
1392
1393
1394/***************************************************************************
1395
1396                            Sen Jin - Guardian Storm
1397
1398(C) Afega 1998
1399
1400CPU: 68HC000FN10 (68000, 68 pin PLCC)
1401SND: Z84C000FEC (Z80, 44 pin PQFP), AD-65 (OKI M6295),
1402     BS901 (YM2151, 24 pin DIP), BS901 (YM3012, 16 pin DIP)
1403OSC: 12.000MHz (near 68000), 4.000MHz (Near Z84000)
1404RAM: LH52B256 x 8, 6116 x 7
1405DIPS: 2 x 8 position
1406
1407Other Chips: AFEGA AFI-GFSK (68 pin PLCC, located next to 68000)
1408             AFEGA AFI-GFLK (208 pin PQFP)
1409
1410ROMS:
1411GST-01.U92   27C512, \
1412GST-02.U95   27C2000  > Sound Related, all located near Z80
1413GST-03.U4    27C512  /
1414
1415GST-04.112   27C2000 \
1416GST-05.107   27C2000  /Main Program
1417
1418GST-06.C13   read as 27C160  label = AF1-SP (Sprites?)
1419GST-07.C08   read as 27C160  label = AF1=B2 (Backgrounds?)
1420GST-08.C03   read as 27C160  label = AF1=B1 (Backgrounds?)
1421
1422***************************************************************************/
1423
1424ROM_START( grdnstrm )
1425   ROM_REGION( 0x80000, REGION_CPU1, 0 )      /* 68000 Code */
1426   ROM_LOAD16_BYTE( "gst-04.112", 0x000000, 0x040000, CRC(922c931a) SHA1(1d1511033c8c424535a73f5c5bf58560a8b1842e) )
1427   ROM_LOAD16_BYTE( "gst-05.107", 0x000001, 0x040000, CRC(d22ca2dc) SHA1(fa21c8ec804570d64f4b167b7f65fd5811435e46) )
1428
1429   ROM_REGION( 0x10000, REGION_CPU2, 0 )      /* Z80 Code */
1430   ROM_LOAD( "gst-01.u92", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) )
1431
1432   ROM_REGION( 0x200000, REGION_GFX1, ROMREGION_DISPOSE )   /* Sprites, 16x16x4 */
1433   ROM_LOAD( "gst-06.c13", 0x000000, 0x200000, CRC(7d4d4985) SHA1(15c6c1aecd3f12050c1db2376f929f1a26a1d1cf) )
1434
1435   ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE )   /* Layer 0, 16x16x8 */
1436   ROM_LOAD( "gst-07.c08", 0x000000, 0x200000, CRC(d68588c2) SHA1(c5f397d74a6ecfd2e375082f82e37c5a330fba62) )
1437   ROM_LOAD( "gst-08.c03", 0x200000, 0x200000, CRC(f8b200a8) SHA1(a6c43dd57b752d87138d7125b47dc0df83df8987) )
1438
1439   ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE )   /* Layer 1, 8x8x4 */
1440   ROM_LOAD( "gst-03.u4",  0x00000, 0x10000, CRC(a1347297) SHA1(583f4da991eeedeb523cf4fa3b6900d40e342063) )
1441
1442   ROM_REGION( 0x40000, REGION_SOUND1, 0 )   /* Samples */
1443   ROM_LOAD( "gst-02.u95", 0x00000, 0x40000, CRC(e911ce33) SHA1(a29c4dea98a22235122303325c63c15fadd3431d) )
1444ROM_END
1445
1446static DRIVER_INIT( grdnstrm )
1447{
1448   decryptcode( 23, 22, 21, 20, 19, 18, 16, 17, 14, 15, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 );
1449}
1450
1451/* Pop's Pop's */
1452
1453/*
1454
1455Pop's Pop's by Afega (1999)
1456
1457The pcb might be missing an eprom in a socket
1458  --- i just think it uses a generic PCB but no sprites in this case,.
1459
14601x 68k
14611x z80
14621x Ad65 (oki 6295)
14631x OSC 12mhz (near 68k)
14641x OSC 4mhz (near z80)
14651x ym2151
14661x Afega AF1-CFLK custom chip Smt
14671x Afega AF1-CF5K custom chip socketed
14682x dipswitch banks
1469
1470*/
1471
1472ROM_START( popspops )
1473   ROM_REGION( 0x80000, REGION_CPU1, 0 )      /* 68000 Code */
1474   ROM_LOAD16_BYTE( "afega4.u112", 0x000000, 0x040000, CRC(db191762) SHA1(901fdc20374473127d694513d4291e29e65eafe8) )
1475   ROM_LOAD16_BYTE( "afega5.u107", 0x000001, 0x040000, CRC(17e0c48b) SHA1(833c61c4b3ee293b0bcddfa86dfa9c1014375115) )
1476
1477   ROM_REGION( 0x10000, REGION_CPU2, 0 )      /* Z80 Code */
1478   ROM_LOAD( "afega1.u92", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) )
1479
1480   ROM_REGION( 0x400000, REGION_GFX1, ROMREGION_ERASEFF | ROMREGION_DISPOSE )   /* Sprites, 16x16x4 */
1481   /* no sprite roms? */
1482
1483   ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE )   /* Layer 0, 16x16x8 */
1484   ROM_LOAD( "afega6.uc8", 0x000000, 0x200000, CRC(6d506c97) SHA1(4909c0b530f9526c8bf76e502c914ef10a50d1fc) )
1485   ROM_LOAD( "afega7.uc3", 0x200000, 0x200000, CRC(02d7f9de) SHA1(10102ffbf37a57afa300b01cb5067b7e672f4999) )
1486
1487   ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE )   /* Layer 1, 8x8x4 */
1488   ROM_LOAD( "afega3.u4",  0x00000, 0x10000, CRC(f39dd5d2) SHA1(80d05d57a621b0063f63ce05be9314f718b3c111) )
1489
1490   ROM_REGION( 0x40000, REGION_SOUND1, 0 )   /* Samples */
1491   ROM_LOAD( "afega2.u95", 0x00000, 0x40000, CRC(ecd8eeac) SHA1(849beba8f04cc322bb8435fa4c26551a6d0dec64) )
1492ROM_END
1493
1494/*
1495Mang-chi by Afega
1496
14971x osc 4mhz
14981x osc 12mhz
14991x tmp68hc0000p-10
15001x z80c006
15011x AD65 (MSM6295)
15021x CY5001 (YM2151 rebadged)
15032x dipswitch
15041x fpga
15051x smd ASIC not marked
1506
1507Dumped by Corrado Tomaselli
1508*/
1509
1510ROM_START( mangchi )
1511   ROM_REGION( 0x80000, REGION_CPU1, 0 )      /* 68000 Code */
1512   ROM_LOAD16_BYTE( "afega9.u112", 0x00000, 0x40000, CRC(0b1517a5) SHA1(50e307641759bb2a35aff56ef9598364740803a0) )
1513   ROM_LOAD16_BYTE( "afega10.u107", 0x00001, 0x40000, CRC(b1d0f33d) SHA1(68b5be3f7911f7299566c5bf5801e90099433613) )
1514
1515   ROM_REGION( 0x10000, REGION_CPU2, 0 )      /* Z80 Code */
1516   ROM_LOAD( "sound.u92", 0x00000, 0x10000, CRC(bec4f9aa) SHA1(18fb2ee06892983c117a62b70cd72a98f60a08b6) )
1517
1518   ROM_REGION( 0x080000, REGION_GFX1, ROMREGION_DISPOSE )   /* Sprites, 16x16x4 */
1519   ROM_LOAD16_BYTE( "afega6.uc11", 0x000000, 0x040000, CRC(979efc30) SHA1(227fe1e20137253aac04585d2bbf67091d032e56) )
1520   ROM_LOAD16_BYTE( "afega7.uc14", 0x000001, 0x040000, CRC(c5cbcc38) SHA1(86070a9598e80f90ec7892d623e1a975ccc68178) )
1521
1522   ROM_REGION( 0x100000, REGION_GFX2, ROMREGION_DISPOSE )   /* Layer 0, 16x16x8 */
1523   ROM_LOAD( "afega5.uc6",  0x000000, 0x80000, CRC(c73261e0) SHA1(0bb66aa315aaecb26169812cf47a6504a74f0db5) )
1524   ROM_LOAD( "afega4.uc1",  0x080000, 0x80000, CRC(73940917) SHA1(070305c81de959c9d00b6cf1cc20bbafa204976a) )
1525
1526   ROM_REGION( 0x100000, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF )   /* Layer 1, 8x8x4 */
1527
1528   ROM_REGION( 0x40000, REGION_SOUND1, 0 )   /* Samples */
1529   ROM_LOAD( "afega2.u95", 0x00000, 0x40000, CRC(78c8c1f9) SHA1(eee0d03164a0ac0ddc5186ab56090320e9d33aa7) )
1530ROM_END
1531
1532/***************************************************************************
1533
1534                            Bubble 2000 (c)1998 Tuning
1535
1536Bubble 2000
1537Tuning, 1998
1538
1539CPU   : TMP68HC000P-10 (68000)
1540SOUND : Z840006 (Z80, 44 pin QFP), YM2151, OKI M6295
1541OSC   : 4.000MHZ, 12.000MHz
1542DIPSW : 8 position (x2)
1543RAM   : 6116 (x5, gfx related?) 6116 (x1, sound program ram), 6116 (x1, near rom3)
1544        64256 (x4, gfx related?), 62256 (x2, main program ram), 6264 (x2, gfx related?)
1545PALs/PROMs: None
1546Custom: Unknown 208 pin QFP labelled LTC2 (Graphics generator)
1547        Unknown 68 pin PLCC labelled LTC1 (?, near rom 2 and rom 3)
1548ROMs  :
1549
1550Filename    Type        Possible Use
1551----------------------------------------------
1552rom01.92    27C512      Sound Program
1553rom02.95    27C020      Oki Samples
1554rom03.4     27C512      ? (located near rom 1 and 2 and near LTC1)
1555rom04.1     27C040   \
1556rom05.3     27C040    |
1557rom06.6     27C040    |
1558rom07.9     27C040    | Gfx
1559rom08.11    27C040    |
1560rom09.14    27C040    |
1561rom12.2     27C040    |
1562rom13.7     27C040   /
1563
1564rom10.112   27C040   \  Main Program
1565rom11.107   27C040   /
1566
1567
1568
1569
1570***************************************************************************/
1571
1572ROM_START( bubl2000 )
1573   ROM_REGION( 0x80000, REGION_CPU1, 0 )      /* 68000 Code */
1574   ROM_LOAD16_BYTE( "rom10.112", 0x00000, 0x20000, CRC(87f960d7) SHA1(d22fe1740217ac20963bd9003245850598ccecf2) )
1575   ROM_LOAD16_BYTE( "rom11.107", 0x00001, 0x20000, CRC(b386041a) SHA1(cac36e22a39b5be0c5cd54dce5c912ff811edb28) )
1576
1577   ROM_REGION( 0x10000, REGION_CPU2, 0 )      /* Z80 Code */
1578   ROM_LOAD( "rom01.92", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) ) /* same as the other games on this driver */
1579
1580   ROM_REGION( 0x080000, REGION_GFX1, ROMREGION_DISPOSE )   /* Sprites, 16x16x4 */
1581   ROM_LOAD16_BYTE( "rom08.11", 0x000000, 0x040000, CRC(519dfd82) SHA1(116b06f6e7b283a5417338f716bbaab6cfadb41d) )
1582   ROM_LOAD16_BYTE( "rom09.14", 0x000001, 0x040000, CRC(04fcb5c6) SHA1(7594fa6bf98fc01b8848473a222a621c7c9ff00d) )
1583
1584   ROM_REGION( 0x300000, REGION_GFX2, ROMREGION_DISPOSE )   /* Layer 0, 16x16x8 */
1585   ROM_LOAD( "rom06.6",  0x000000, 0x080000, CRC(ac1aabf5) SHA1(abce6ba381b189ab3ec703a8ef74bccbe10876e0) )
1586   ROM_LOAD( "rom07.9",  0x080000, 0x080000, CRC(69aff769) SHA1(89b98c1023710861e622c8a186b6ec48f5109d42) )
1587   ROM_LOAD( "rom13.7",  0x100000, 0x080000, CRC(3a5b7226) SHA1(1127740c5bc2f830d73a77c8831e1b0db6606375) )
1588   ROM_LOAD( "rom04.1",  0x180000, 0x080000, CRC(46acd054) SHA1(1bd7a1b6b2ce6a3daa8c92843c546beb377af8fb) )
1589   ROM_LOAD( "rom05.3",  0x200000, 0x080000, CRC(37deb6a1) SHA1(3a8a3d961800bb15fd389429b92fa1e5b5f416df) )
1590   ROM_LOAD( "rom12.2",  0x280000, 0x080000, CRC(1fdc59dd) SHA1(d38e21c878241b4315a36e0590397211ca63f2c4) )
1591
1592   ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE )   /* Layer 1, 8x8x4 */
1593   ROM_LOAD( "rom03.4",  0x00000, 0x10000, CRC(f4c15588) SHA1(a21ae71c0a8c7c1df63f9905fd86303bc2d3991c) )
1594
1595   ROM_REGION( 0x40000, REGION_SOUND1, 0 )   /* Samples */
1596   ROM_LOAD( "rom02.95", 0x00000, 0x40000, CRC(859a86e5) SHA1(7b51964227411a40aac54b9cd9ff64f091bdf2b0) )
1597ROM_END
1598
1599
1600/*
1601
1602Hot Bubble
1603Afega, 1998
1604
1605PCB Layout
1606----------
1607
1608Bottom Board
1609
1610|------------------------------------------|
1611| BS902  BS901   Z80                  4MHz |
1612|                                          |
1613|        6116    6295                      |
1614|                                   62256  |
1615|      6116                         62256  |
1616|      6116                                |
1617|J           6116           |------------| |
1618|A           6116           |   68000    | |
1619|M                          |------------| |
1620|M  DSW2   6264                            |
1621|A         6264                            |
1622|                                          |
1623|         |-------|                        |
1624|         |       |                        |
1625|         |       |                        |
1626| DSW1    |       |     62256   62256      |
1627|         |-------|                        |
1628|              6116     62256   62256      |
1629|12MHz         6116                        |
1630|------------------------------------------|
1631Notes:
1632      68000 - running at 12.000MHz
1633      Z80   - running at 4.000MHz
1634      62256 - 32K x8 SRAM
1635      6264  - 8K x8 SRAM
1636      6116  - 2K x8 SRAM
1637      BS901 - YM2151, running at 4.000MHz
1638      BS902 - YM3012
1639      6295  - OKI MSM6295 running at 1.000MHz [4/4], sample rate = 1000000 / 132
1640      *     - Unknown QFP208
1641      VSync - 56.2Hz (measured on 68000 IPL1)
1642
1643Top Board
1644
1645|---------------------------|
1646|                           |
1647|   S1     S2        T1     |
1648|                           |
1649|   CR5    CR7       C1     |
1650|                           |
1651|   CR6   +CR8       C2     |
1652|                           |
1653|          BR1       BR3    |
1654|                           |
1655|         +BR2      +BR4    |
1656|                           |
1657|  CR1     CR3     |------| |
1658|                  |  *   | |
1659|  CR2    +CR4     |      | |
1660|                  |------| |
1661|---------------------------|
1662Notes:
1663      * - Unknown PLCC68 IC
1664      + - Not populated
1665
1666*/
1667
1668ROM_START( hotbubl )
1669   ROM_REGION( 0x80000, REGION_CPU1, 0 )      /* 68000 Code */
1670   ROM_LOAD16_BYTE( "c1.uc1",  0x00001, 0x40000, CRC(7bb240e9) SHA1(99048fa275182c3da3bfb0dedd790f4b5858bd92) )
1671   ROM_LOAD16_BYTE( "c2.uc9",  0x00000, 0x40000, CRC(7917b95d) SHA1(0344bae9c373c5943e7693720e5e531bc2e0d7ee) )
1672
1673   ROM_REGION( 0x10000, REGION_CPU2, 0 )      /* Z80 Code */
1674   ROM_LOAD( "s1.uc14", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) ) /* same as the other games on this driver */
1675
1676   ROM_REGION( 0x100000, REGION_GFX1, ROMREGION_DISPOSE )   /* Sprites, 16x16x4 */
1677   ROM_LOAD16_BYTE( "br1.uc3",  0x000000, 0x080000, CRC(6fc18de4) SHA1(57b4823fc41637780f64eadd1ddf61db531a2599) )
1678   ROM_LOAD16_BYTE( "br3.uc10", 0x000001, 0x080000, CRC(bb677240) SHA1(d7a26bcd33d491cee441edda6d092a1d08308b0e) )
1679
1680   ROM_REGION( 0x300000, REGION_GFX2, ROMREGION_DISPOSE )   /* Layer 0, 16x16x8 */
1681   ROM_LOAD( "cr6.uc16",  0x100000, 0x080000, CRC(99d6523c) SHA1(0b628585d749e175d5a4dc600af1ba9cb936bfeb) )
1682   ROM_LOAD( "cr7.uc19",  0x080000, 0x080000, CRC(a89d9ce4) SHA1(5965b2b4b67bc91bc0e7474e593c7e1953b75adc) )
1683   ROM_LOAD( "cr5.uc15",  0x000000, 0x080000, CRC(65bd5159) SHA1(627ccc0ab131e643c3c52ee9bb41c7a85153c35e) )
1684
1685   ROM_LOAD( "cr2.uc7",  0x280000, 0x080000, CRC(27ad6fc8) SHA1(00b1a5c5e1a245590b300b9baf71585d41813e3e) )
1686   ROM_LOAD( "cr3.uc12", 0x200000, 0x080000, CRC(c841a4f6) SHA1(9b0ee5623c87a0cfc63d3741a65d399bd6593f18) )
1687   ROM_LOAD( "cr1.uc6",  0x180000, 0x080000, CRC(fc9101d2) SHA1(1d5b8484264b6d73fe032946096a469226cce901) )
1688
1689   ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE )   /* Layer 1, 8x8x4 */
1690   ROM_LOAD( "t1.uc2",  0x00000, 0x10000, CRC(ce683a93) SHA1(aeee2671051f1badf2255375cd7c5fa847d1746c) )
1691
1692   ROM_REGION( 0x40000, REGION_SOUND1, 0 )   /* Samples */
1693   ROM_LOAD( "s2.uc18", 0x00000, 0x40000, CRC(401c980f) SHA1(e47710c47cfeecce3ccf87f845b219a9c9f21ee3) )
1694ROM_END
1695
1696static DRIVER_INIT( bubl2000 )
1697{
1698   decryptcode( 23, 22, 21, 20, 19, 18, 13, 14, 15, 16, 17, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 );
1699}
1700
1701/*
1702
1703Fire Hawk - ESD
1704---------------
1705
1706- To enter test mode, hold on button 1 at boot up
1707
1708
1709PCB Layout
1710----------
1711
1712ESD-PROT-002
1713|------------------------------------------------|
1714|      FHAWK_S1.U40   FHAWK_S2.U36               |
1715|      6116     6295  FHAWK_S3.U41               |
1716|               6295                 FHAWK_G1.UC6|
1717|    PAL   Z80                       FHAWK_G2.UC5|
1718|    4MHz                             |--------| |
1719|                                     | ACTEL  | |
1720|J   6116             62256           |A54SX16A| |
1721|A   6116             62256           |        | |
1722|M                                    |(QFP208)| |
1723|M                                    |--------| |
1724|A     DSW1              FHAWK_G3.UC2            |
1725|      DSW2                           |--------| |
1726|      DSW3                           | ACTEL  | |
1727|                     6116            |A54SX16A| |
1728|                     6116            |        | |
1729|      62256                          |(QFP208)| |
1730| FHAWK_P1.U59                        |--------| |
1731| FHAWK_P2.U60  PAL                  62256  62256|
1732|                                                |
1733|12MHz 62256   68000                 62256  62256|
1734|------------------------------------------------|
1735Notes:
1736      68000 clock: 12.000MHz
1737        Z80 clock: 4.000MHz
1738      6295 clocks: 1.000MHz (both), sample rate = 1000000 / 132 (both)
1739            VSync: 56Hz
1740
1741*/
1742
1743ROM_START( firehawk )
1744   ROM_REGION( 0x100000, REGION_CPU1, 0 )   /* 68000 Code */
1745   ROM_LOAD16_BYTE( "fhawk_p1.u59", 0x00001, 0x80000, CRC(d6d71a50) SHA1(e947720a0600d049b7ea9486442e1ba5582536c2) )
1746   ROM_LOAD16_BYTE( "fhawk_p2.u60", 0x00000, 0x80000, CRC(9f35d245) SHA1(5a22146f16bff7db924550970ed2a3048bc3edab) )
1747
1748   ROM_REGION( 0x20000, REGION_CPU2, 0 )   /* Z80 Code */
1749   ROM_LOAD( "fhawk_s1.u40", 0x00000, 0x20000, CRC(c6609c39) SHA1(fe9b5f6c3ab42c48cb493fecb1181901efabdb58) )
1750
1751   ROM_REGION( 0x200000, REGION_GFX1,ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */
1752   ROM_LOAD( "fhawk_g3.uc2", 0x00000, 0x200000,  CRC(cae72ff4) SHA1(7dca7164015228ea039deffd234778d0133971ab) )
1753
1754   ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */
1755   ROM_LOAD( "fhawk_g1.uc6", 0x000000, 0x200000, CRC(2ab0b06b) SHA1(25362f6a517f188c62bac28b1a7b7b49622b1518) )
1756   ROM_LOAD( "fhawk_g2.uc5", 0x200000, 0x200000, CRC(d11bfa20) SHA1(15142004ab49f7f1e666098211dff0835c61df8d) )
1757
1758   ROM_REGION( 0x00100, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF )   /* Layer 1, 8x8x4 */
1759   // Unused
1760
1761   ROM_REGION( 0x040000, REGION_SOUND1, 0 ) /* Samples */
1762   ROM_LOAD( "fhawk_s2.u36", 0x00000, 0x40000, CRC(d16aaaad) SHA1(96ca173ca433164ed0ae51b41b42343bd3cfb5fe) )
1763
1764   ROM_REGION( 0x040000, REGION_SOUND2, 0 ) /* Samples */
1765   ROM_LOAD( "fhawk_s3.u41", 0x00000, 0x40000, CRC(3fdcfac2) SHA1(c331f2ea6fd682cfb00f73f9a5b995408eaab5cf) )
1766ROM_END
1767
1768/*
1769
1770CPU
17711x unknown custom chip
17721x FPGA
17731x oscillator 4.000MHz
17741x oscillator 12.000MHz
17752x AD-65
1776
1777ROMs
17781x TMS27C512 (1)
17791x MX27C4000 (3)
17802x TMS27C010A (2,4)
17812x TMS27C020 (5,6)
17823x MX29F1610ML (uc1,uc2,uc3)
1783
1784Note
17851x JAMMA connector
17861x trimmer (volume)
17872x8 dip switches
1788
1789*/
1790
1791ROM_START( spec2k )
1792   ROM_REGION( 0x80000, REGION_CPU1, 0 )   /* 68000 Code */
1793   ROM_LOAD16_BYTE( "yonatech5.u124", 0x00000, 0x40000, CRC(72ab5c05) SHA1(182a811982b89b8cda0677547ef0625c274f5c6b) )
1794   ROM_LOAD16_BYTE( "yonatech6.u120", 0x00001, 0x40000, CRC(7e44bd9c) SHA1(da59685be14a09ec037743fcec34fb293f7d588d) )
1795
1796   ROM_REGION( 0x20000, REGION_CPU2, 0 )   /* Z80 Code */
1797   ROM_LOAD( "yonatech1.u103", 0x00000, 0x10000, CRC(ef5acda7) SHA1(e55b36a1598ecbbbad984997d61599dfa3958f60) )
1798
1799   ROM_REGION( 0x200000, REGION_GFX1,ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */
1800   ROM_LOAD( "u154.bin", 0x00000, 0x200000, CRC(f77b764e) SHA1(37e249bd4d7174c5232261880ce8debf42723716) )
1801
1802   ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */
1803   ROM_LOAD( "u153.bin", 0x000000, 0x200000, CRC(a00bbf8f) SHA1(622f52ef50d52cdd5e6b250d68439caae5c13404) )
1804   ROM_LOAD( "u152.bin", 0x200000, 0x200000, CRC(f6423fab) SHA1(253e0791eb58efa1df42e9c74d397e6e65c8c252) )
1805
1806   ROM_REGION( 0x20000, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF )   /* Layer 1, 8x8x4 */
1807   ROM_LOAD( "yonatech4.u3", 0x00000, 0x20000, CRC(5626b08e) SHA1(63207ed6b4fc8684690bf3fe1991a4f3babd73e8) )
1808
1809   ROM_REGION( 0x020000, REGION_SOUND1, 0 ) /* Samples */
1810   ROM_LOAD( "yonatech2.u101", 0x00000, 0x20000, CRC(4160f172) SHA1(0478a5a4bbba115e6cfb5501aa55aa2836c963bf) )
1811
1812   ROM_REGION( 0x080000, REGION_SOUND2, 0 ) /* Samples */
1813   ROM_LOAD( "yonatech3.u106", 0x00000, 0x80000, CRC(6644c404) SHA1(b7ad3f9f08971432d024ef8be3fa3140f0bbae67) )
1814ROM_END
1815
1816static DRIVER_INIT( spec2k )
1817{
1818   decryptcode( 23, 22, 21, 20,
1819               19, 18, 17, 13,
1820                14, 15, 16, 12,
1821               11, 10, 9,  8,
1822               7,  6,  5,  4,
1823                3,  2,  1,  0 );
1824}
1825
1826/*
1827    1995, Afega
1828
1829    1x TMP68000P-10 (main)
1830    1x GOLDSTAR Z8400A (sound)
1831    1x AD-65 (equivalent to OKI6295)
1832    1x LATTICE pLSI 1032 60LJ A428A48
1833    1x oscillator 8.000MHz
1834    1x oscillator 12.000MHz
1835
1836    1x 27256 (SU6)
1837    1x 27C010 (SU12)
1838    1x 27C020 (SU13)
1839    2x 27c4001 (UB11, UB13)
1840    3x 27C010 (UJ11, UJ12, UJ13)
1841    1x 27C4001 (UI20)
1842
1843    1x JAMMA edge connector
1844    1x trimmer (volume)
1845*/
1846
1847ROM_START( twinactn )
1848   ROM_REGION( 0x40000, REGION_CPU1, 0 )      /* 68000 Code */
1849   ROM_LOAD16_BYTE( "afega.uj13", 0x00000, 0x20000, CRC(9187701d) SHA1(1da8d1e3969f60c7b0521cd22c723cb51619df9d) )
1850   ROM_LOAD16_BYTE( "afega.uj12", 0x00001, 0x20000, CRC(fe8cff9c) SHA1(a1a04deff9e2cb54c69601898cf4e5133c2bc437) )
1851
1852   ROM_REGION( 0x8000, REGION_CPU2, 0 )      /* Z80 Code */
1853   ROM_LOAD( "afega.su6", 0x0000, 0x8000, CRC(3a52dc88) SHA1(87941987d34d93df6df9ff33ccfbd1f5d4a39c51) )   // 1111xxxxxxxxxxx = 0x00
1854
1855   ROM_REGION( 0x100000, REGION_GFX1, ROMREGION_DISPOSE )   /* Sprites, 16x16x4 */
1856   ROM_LOAD16_BYTE( "afega.ub11", 0x00000, 0x80000, CRC(287f20d8) SHA1(11faa36b97593c0b5cee70343750ae1ecd2f5b71) )
1857   ROM_LOAD16_BYTE( "afega.ub13", 0x00001, 0x80000, CRC(f525f819) SHA1(78ffcb709a3a900d3851392630a11ab58fc0bc75) )
1858
1859   ROM_REGION( 0x80000, REGION_GFX2, ROMREGION_DISPOSE )   /* Layer 0, 16x16x8 */
1860   ROM_LOAD( "afega.ui20", 0x00000, 0x80000, CRC(237c8f92) SHA1(bb3131b450bd78d03b789626a465fb9e7a4604a7) )
1861
1862   ROM_REGION( 0x20000, REGION_GFX3, ROMREGION_DISPOSE )   /* Layer 1, 8x8x4 */
1863   ROM_LOAD( "afega.uj11", 0x00000, 0x20000, CRC(3f439e92) SHA1(27e5b1b0aa3b13fa35e3f83793037314b2942aa2) )
1864
1865   ROM_REGION( 0x100000, REGION_SOUND1, 0 )   /* Samples */
1866   ROM_LOAD( "afega.su12", 0x000000, 0x20000, CRC(91d665f3) SHA1(10b5b07ed28ea78b6d3493afc03e003a8468c007) )
1867   ROM_RELOAD(             0x040000, 0x20000 )
1868   ROM_RELOAD(             0x080000, 0x20000 )
1869   ROM_RELOAD(             0x0c0000, 0x20000 )
1870   ROM_RELOAD(             0x020000, 0x20000 )
1871   ROM_RELOAD(             0x060000, 0x20000 )
1872   ROM_LOAD( "afega.su13", 0x0a0000, 0x20000, CRC(30e1c306) SHA1(c859f11fd329793b11e96264e91c79a557b488a4) )
1873   ROM_CONTINUE(           0x0e0000, 0x20000 )
1874ROM_END
1875
1876static WRITE16_HANDLER ( test_2a_mustang_w )
1877{
1878   data = data >> 8;
1879
1880   ram[0x2a/2] = (data << 8) | data;
1881
1882   if (data == 1 || data == 2) {
1883      ram[0x2e/2] = 10;
1884      ram[0x2c/2] = 0;
1885   }
1886
1887}
1888
1889static DRIVER_INIT( twinactn )
1890{
1891#if 0
1892   UINT16 *rom = (UINT16 *) memory_region(REGION_CPU1);
1893   rom[0x4a2a/2]   =   0x4e71;   // no freeze on sound test + enable hidden "object test"
1894#endif
1895   UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1);
1896
1897   // these are the patches for mustang from nmk16.c modified for twinactn
1898   // we need to figure out how this _really_ works
1899   rom[0x85c/2] = 0x4e71; // same as mustang
1900   rom[0x85e/2] = 0x4e71; // same as mustang
1901   rom[0x860/2] = 0x4e71; // same as mustang
1902   rom[0x8c0/2] = 0x0300; // same as mustang
1903   rom[0xbee/2] = 0x0300; // offset shifted..
1904   rom[0x30c0/2] = 0x0300; // offset shifted..
1905
1906   memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0xf902a, 0xf902b, 0, 0, test_2a_mustang_w );
1907}
1908
1909
1910/***************************************************************************
1911
1912
1913                                Game Drivers
1914
1915
1916***************************************************************************/
1917
1918GAME( 1995, twinactn, 0,        twinactn, twinactn, twinactn, ROT0,               "Afega",    "Twin Action",                      0 )
1919GAME( 1997, redhawk,  stagger1, stagger1, stagger1, redhawk,  ROT270,             "Afega",    "Red Hawk (US)",                    GAME_NOT_WORKING )
1920GAME( 1997, redhawkb, stagger1, redhawkb, redhawkb, 0,        ROT0,               "bootleg",  "Red Hawk (bootleg)",               GAME_NOT_WORKING )
1921GAME( 1998, stagger1, 0,        stagger1, stagger1, 0,        ROT270,             "Afega",    "Stagger I (Japan)",                GAME_NOT_WORKING )
1922GAME( 1998, grdnstrm, 0,        grdnstrm, grdnstrm, grdnstrm, ROT270,             "Afega",    "Sen Jin - Guardian Storm (Korea)", GAME_NOT_WORKING )
1923GAME( 1998, bubl2000, 0,        bubl2000, bubl2000, bubl2000, ROT0,               "Tuning",   "Bubble 2000",                      0 ) // on a tuning board (bootleg?)
1924GAME( 1998, hotbubl,  bubl2000, bubl2000, bubl2000, bubl2000, ROT0,               "Pandora",  "Hot Bubble" ,                      0 ) // on an afega board ..
1925GAME( 1999, popspops, 0,        popspops, popspops, grdnstrm, ROT0,               "Afega",    "Pop's Pop's",                      0 )
1926GAME( 2000, mangchi,  0,        bubl2000, mangchi,  bubl2000, ROT0,               "Afega",    "Mang-Chi",                         0 )
1927GAME( 2000, spec2k,   0,        firehawk, spec2k,   spec2k,   ORIENTATION_FLIP_Y, "Yonatech", "Spectrum 2000 (Euro)",             GAME_NOT_WORKING )
1928GAME( 2001, firehawk, 0,        firehawk, firehawk, 0,        ORIENTATION_FLIP_Y, "ESD",      "Fire Hawk",                        GAME_NOT_WORKING )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team