src/mame/video/equites.c
| r2018 | r2019 | |
| 1 | | /******************************************************************************* |
| 2 | | |
| 3 | | Equites (c) 1984 Alpha Denshi Co./Sega |
| 4 | | Bull Fighter (c) 1984 Alpha Denshi Co./Sega |
| 5 | | The Koukouyakyuh (c) 1985 Alpha Denshi Co. |
| 6 | | Splendor Blast (c) 1985 Alpha Denshi Co. |
| 7 | | High Voltage (c) 1985 Alpha Denshi Co. |
| 8 | | |
| 9 | | drivers by Acho A. Tang |
| 10 | | |
| 11 | | *******************************************************************************/ |
| 12 | | // Directives |
| 13 | | |
| 14 | 1 | #include "driver.h" |
| 2 | #include "equites.h" |
| 15 | 3 | |
| 16 | | #define BMPAD 8 |
| 17 | | #define BMW_l2 9 |
| 18 | | #define FP_PRECISION 20 |
| 19 | | #define FP_HALF ((1<<(FP_PRECISION-1))-1) |
| 20 | 4 | |
| 21 | | /******************************************************************************/ |
| 22 | | // Imports |
| 5 | UINT16 *equites_bg_videoram; |
| 23 | 6 | |
| 24 | | extern int equites_id, equites_flip; |
| 7 | static UINT8 *equites_fg_videoram; |
| 8 | static tilemap *fg_tilemap, *bg_tilemap; |
| 9 | static int fg_char_bank; |
| 10 | static UINT8 bgcolor; |
| 11 | static UINT16 splndrbt_bg_scrollx, splndrbt_bg_scrolly; |
| 25 | 12 | |
| 26 | | /******************************************************************************/ |
| 27 | | // Locals |
| 28 | 13 | |
| 29 | | static tilemap *charmap0, *charmap1, *activecharmap, *inactivecharmap; |
| 30 | | static UINT16 *defcharram, *charram0, *charram1, *activecharram, *inactivecharram; |
| 31 | | static UINT8 *dirtybuf; |
| 32 | | static int maskwidth, maskheight, maskcolor; |
| 33 | | static int scrollx, scrolly; |
| 34 | | static int bgcolor[4]; |
| 35 | | static rectangle halfclip; |
| 36 | | static struct PRESTEP_TYPE { unsigned sy, fdx; } *prestep; |
| 37 | 14 | |
| 38 | | /******************************************************************************/ |
| 39 | | // Exports |
| 15 | /************************************* |
| 16 | * |
| 17 | * Palette handling |
| 18 | * |
| 19 | *************************************/ |
| 40 | 20 | |
| 41 | | UINT16 *splndrbt_scrollx, *splndrbt_scrolly; |
| 42 | | |
| 43 | | /******************************************************************************/ |
| 44 | | // Initializations |
| 45 | | |
| 46 | | static void video_init_common(running_machine *machine) |
| 47 | | { |
| 48 | | int i; |
| 49 | | const rectangle *visarea = video_screen_get_visible_area(machine->primary_screen); |
| 50 | | |
| 51 | | // set defaults |
| 52 | | maskwidth = 8; |
| 53 | | maskheight = visarea->max_y - visarea->min_y + 1; |
| 54 | | maskcolor = get_black_pen(machine); |
| 55 | | scrollx = scrolly = 0; |
| 56 | | for (i=0; i<4; i++) bgcolor[i] = 0; |
| 57 | | |
| 58 | | // set uniques |
| 59 | | switch (equites_id) |
| 60 | | { |
| 61 | | case 0x8401: |
| 62 | | maskwidth = 16; |
| 63 | | break; |
| 64 | | case 0x8510: |
| 65 | | scrollx = 128; |
| 66 | | scrolly = 8; |
| 67 | | break; |
| 68 | | case 0x8511: |
| 69 | | scrollx = 128; |
| 70 | | scrolly = 8; |
| 71 | | break; |
| 72 | | } |
| 73 | | } |
| 74 | | |
| 75 | | // Equites Hardware |
| 76 | 21 | PALETTE_INIT( equites ) |
| 77 | 22 | { |
| 78 | | UINT8 *clut_ptr; |
| 79 | 23 | int i; |
| 80 | 24 | |
| 81 | 25 | machine->colortable = colortable_alloc(machine, 256); |
| 82 | 26 | |
| 83 | | for (i=0; i<256; i++) |
| 27 | for (i = 0; i < 256; i++) |
| 84 | 28 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(pal4bit(color_prom[i]), pal4bit(color_prom[i+0x100]), pal4bit(color_prom[i+0x200]))); |
| 85 | 29 | |
| 86 | | for (i=0; i<256; i++) |
| 30 | // point to the CLUT |
| 31 | color_prom += 0x380; |
| 32 | |
| 33 | for (i = 0; i < 256; i++) |
| 87 | 34 | colortable_entry_set_value(machine->colortable, i, i); |
| 88 | 35 | |
| 89 | | clut_ptr = memory_region(REGION_USER1) + 0x80; |
| 90 | | for (i=0; i<128; i++) |
| 91 | | colortable_entry_set_value(machine->colortable, i+0x100, clut_ptr[i]); |
| 36 | for (i = 0; i < 0x80; i++) |
| 37 | colortable_entry_set_value(machine->colortable, i+0x100, color_prom[i]); |
| 92 | 38 | } |
| 93 | 39 | |
| 94 | | static TILE_GET_INFO( equites_charinfo ) |
| 95 | | { |
| 96 | | int tile, color; |
| 97 | | |
| 98 | | tile_index <<= 1; |
| 99 | | tile = videoram16[tile_index]; |
| 100 | | color = videoram16[tile_index+1]; |
| 101 | | tile &= 0xff; |
| 102 | | color &= 0x1f; |
| 103 | | |
| 104 | | SET_TILE_INFO(0, tile, color, 0); |
| 105 | | } |
| 106 | | |
| 107 | | VIDEO_START( equites ) |
| 108 | | { |
| 109 | | charmap0 = tilemap_create(equites_charinfo, tilemap_scan_cols, 8, 8, 32, 32); |
| 110 | | tilemap_set_transparent_pen(charmap0, 0); |
| 111 | | tilemap_set_scrolldx(charmap0, BMPAD, BMPAD); |
| 112 | | tilemap_set_scrolldy(charmap0, BMPAD, BMPAD); |
| 113 | | |
| 114 | | video_init_common(machine); |
| 115 | | } |
| 116 | | |
| 117 | | // Splendor Blast Hardware |
| 118 | 40 | PALETTE_INIT( splndrbt ) |
| 119 | 41 | { |
| 120 | | UINT8 *prom_ptr; |
| 121 | 42 | int i; |
| 122 | 43 | |
| 123 | 44 | machine->colortable = colortable_alloc(machine, 256); |
| 124 | 45 | |
| 125 | | for (i=0; i<0x100; i++) |
| 46 | for (i = 0; i < 0x100; i++) |
| 126 | 47 | colortable_palette_set_color(machine->colortable, i, MAKE_RGB(pal4bit(color_prom[i]), pal4bit(color_prom[i+0x100]), pal4bit(color_prom[i+0x200]))); |
| 127 | 48 | |
| 128 | 49 | for (i = 0; i < 0x100; i++) |
| 129 | 50 | colortable_entry_set_value(machine->colortable, i, i); |
| 130 | 51 | |
| 131 | | prom_ptr = memory_region(REGION_USER1); |
| 132 | | for (i=0; i<0x80; i++) |
| 133 | | { |
| 134 | | colortable_entry_set_value(machine->colortable, i + 0x100, prom_ptr[i] + 0x10); |
| 135 | | colortable_entry_set_value(machine->colortable, i + 0x180, prom_ptr[i]); |
| 136 | | } |
| 52 | // point to the bg CLUT |
| 53 | color_prom += 0x300; |
| 137 | 54 | |
| 138 | | prom_ptr += 0x100; |
| 139 | | for (i=0; i<0x400; i++) |
| 140 | | colortable_entry_set_value(machine->colortable, i + 0x200, prom_ptr[i]); |
| 55 | for (i = 0; i < 0x80; i++) |
| 56 | colortable_entry_set_value(machine->colortable, i + 0x100, color_prom[i] + 0x10); |
| 57 | |
| 58 | // point to the sprite CLUT |
| 59 | color_prom += 0x100; |
| 60 | |
| 61 | for (i = 0; i < 0x100; i++) |
| 62 | colortable_entry_set_value(machine->colortable, i + 0x180, color_prom[i]); |
| 141 | 63 | } |
| 142 | 64 | |
| 143 | | static TILE_GET_INFO( splndrbt_char0info ) |
| 144 | | { |
| 145 | | int tile, color; |
| 146 | 65 | |
| 147 | | tile_index <<= 1; |
| 148 | | tile = charram0[tile_index]; |
| 149 | | color = charram0[tile_index+1]; |
| 150 | | tile &= 0xff; |
| 151 | | color &= 0x3f; |
| 152 | 66 | |
| 67 | /************************************* |
| 68 | * |
| 69 | * Callbacks for the TileMap code |
| 70 | * |
| 71 | *************************************/ |
| 72 | |
| 73 | static TILE_GET_INFO( equites_fg_info ) |
| 74 | { |
| 75 | int tile = equites_fg_videoram[2*tile_index]; |
| 76 | int color = equites_fg_videoram[2*tile_index+1] & 0x1f; |
| 77 | |
| 153 | 78 | SET_TILE_INFO(0, tile, color, 0); |
| 154 | 79 | if (color & 0x10) |
| 155 | 80 | tileinfo->flags |= TILE_FORCE_LAYER0; |
| 156 | 81 | } |
| 157 | 82 | |
| 158 | | static TILE_GET_INFO( splndrbt_char1info ) |
| 83 | static TILE_GET_INFO( splndrbt_fg_info ) |
| 159 | 84 | { |
| 160 | | int tile, color; |
| 85 | int tile = equites_fg_videoram[2*tile_index] + (fg_char_bank << 8); |
| 86 | int color = equites_fg_videoram[2*tile_index+1] & 0x3f; |
| 161 | 87 | |
| 162 | | tile_index <<= 1; |
| 163 | | tile = charram1[tile_index]; |
| 164 | | color = charram1[tile_index+1]; |
| 165 | | tile &= 0xff; |
| 166 | | color &= 0x3f; |
| 167 | | tile += 0x100; |
| 168 | | |
| 169 | 88 | SET_TILE_INFO(0, tile, color, 0); |
| 170 | 89 | if (color & 0x10) |
| 171 | 90 | tileinfo->flags |= TILE_FORCE_LAYER0; |
| 172 | 91 | } |
| 173 | 92 | |
| 174 | | static void splndrbt_video_reset(void) |
| 93 | static TILE_GET_INFO( equites_bg_info ) |
| 175 | 94 | { |
| 176 | | memset(spriteram16, 0, spriteram_size); |
| 95 | int data = equites_bg_videoram[tile_index]; |
| 96 | int tile = data & 0x1ff; |
| 97 | int color = (data & 0xf000) >> 12; |
| 98 | int fxy = (data & 0x0600) >> 9; |
| 177 | 99 | |
| 178 | | activecharram = charram0; |
| 179 | | inactivecharram = charram1; |
| 180 | | |
| 181 | | activecharmap = charmap0; |
| 182 | | inactivecharmap = charmap1; |
| 100 | SET_TILE_INFO(1, tile, color, TILE_FLIPXY(fxy)); |
| 183 | 101 | } |
| 184 | 102 | |
| 185 | | static void splndrbt_prestep( |
| 186 | | struct PRESTEP_TYPE *ps, |
| 187 | | const rectangle *dst_clip, |
| 188 | | int src_w, int src_h, |
| 189 | | int dst_startw, int dst_endw) |
| 103 | static TILE_GET_INFO( splndrbt_bg_info ) |
| 190 | 104 | { |
| 191 | | double DA, DB, DC, D0, D1, Dsum; |
| 192 | | int i, dst_vish; |
| 105 | int data = equites_bg_videoram[tile_index]; |
| 106 | int tile = data & 0x1ff; |
| 107 | int color = (data & 0xf800) >> 11; |
| 108 | int fxy = (data & 0x0600) >> 9; |
| 193 | 109 | |
| 194 | | dst_vish = dst_clip->max_y - dst_clip->min_y; |
| 110 | SET_TILE_INFO(1, tile, color, TILE_FLIPXY(fxy)); |
| 111 | tileinfo->group = color; |
| 112 | } |
| 195 | 113 | |
| 196 | | DA = (double)(src_w << FP_PRECISION) * dst_vish; |
| 197 | | DB = dst_endw - dst_startw; |
| 198 | | DC = dst_startw * dst_vish; |
| 199 | | D1 = 0; |
| 200 | 114 | |
| 201 | | for (i=0; i<=dst_vish; i++) |
| 202 | | { |
| 203 | | D0 = DA / (DB * i + DC); |
| 204 | | D1 += D0; |
| 205 | | ps[i].fdx = (unsigned)D0; |
| 206 | | } |
| 207 | 115 | |
| 208 | | DA = src_w * dst_vish; |
| 209 | | D0 = src_h; |
| 210 | | D1 /= 1 << FP_PRECISION; |
| 211 | | Dsum = 0.5; |
| 116 | /************************************* |
| 117 | * |
| 118 | * Video system start |
| 119 | * |
| 120 | *************************************/ |
| 212 | 121 | |
| 213 | | for (i=0; i<=dst_vish; i++) |
| 214 | | { |
| 215 | | ps[i].sy = (unsigned)Dsum; |
| 216 | | Dsum += (DA * D0) / ((DB * i + DC) * D1); |
| 217 | | //logerror("dst_y=%3u src_y=%3u\n", i, ps[i].sy); |
| 218 | | } |
| 122 | VIDEO_START( equites ) |
| 123 | { |
| 124 | equites_fg_videoram = auto_malloc(0x800); |
| 125 | |
| 126 | fg_tilemap = tilemap_create(equites_fg_info, tilemap_scan_cols, 8, 8, 32, 32); |
| 127 | tilemap_set_transparent_pen(fg_tilemap, 0); |
| 128 | |
| 129 | bg_tilemap = tilemap_create(equites_bg_info, tilemap_scan_rows, 16, 16, 16, 16); |
| 130 | tilemap_set_transparent_pen(bg_tilemap, 0); |
| 131 | tilemap_set_scrolldx(bg_tilemap, 0, -10); |
| 219 | 132 | } |
| 220 | 133 | |
| 221 | 134 | VIDEO_START( splndrbt ) |
| 222 | 135 | { |
| 223 | | #define BMW (1<<BMW_l2) |
| 224 | | |
| 225 | | UINT8 *buf8ptr; |
| 226 | | int i; |
| 227 | | |
| 228 | 136 | assert(video_screen_get_format(machine->primary_screen) == BITMAP_FORMAT_INDEXED16); |
| 229 | 137 | |
| 230 | | halfclip = *video_screen_get_visible_area(machine->primary_screen); |
| 231 | | i = halfclip.max_y - halfclip.min_y + 1; |
| 232 | | halfclip.max_y = halfclip.min_y + (i >> 1) - 1; |
| 138 | equites_fg_videoram = auto_malloc(0x800); |
| 233 | 139 | |
| 234 | | tmpbitmap = auto_bitmap_alloc(BMW, BMW, video_screen_get_format(machine->primary_screen)); |
| 140 | fg_tilemap = tilemap_create(splndrbt_fg_info, tilemap_scan_cols, 8, 8, 32, 32); |
| 141 | tilemap_set_transparent_pen(fg_tilemap, 0); |
| 142 | tilemap_set_scrolldx(fg_tilemap, 8, -8); |
| 235 | 143 | |
| 236 | | charmap0 = tilemap_create(splndrbt_char0info, tilemap_scan_cols, 8, 8, 32, 32); |
| 237 | | tilemap_set_transparent_pen(charmap0, 0); |
| 238 | | tilemap_set_scrolldx(charmap0, 8, 8); |
| 239 | | tilemap_set_scrolldy(charmap0, 32, 32); |
| 144 | bg_tilemap = tilemap_create(splndrbt_bg_info, tilemap_scan_rows, 16, 16, 32, 32); |
| 145 | colortable_configure_tilemap_groups(machine->colortable, bg_tilemap, machine->gfx[1], 0x10); |
| 240 | 146 | |
| 241 | | charmap1 = tilemap_create(splndrbt_char1info, tilemap_scan_cols, 8, 8, 32, 32); |
| 242 | | tilemap_set_transparent_pen(charmap1, 0); |
| 243 | | tilemap_set_scrolldx(charmap1, 8, 8); |
| 244 | | tilemap_set_scrolldy(charmap1, 32, 32); |
| 147 | fg_char_bank = 0; |
| 148 | } |
| 245 | 149 | |
| 246 | | buf8ptr = auto_malloc(videoram_size * 2); |
| 247 | | charram0 = (UINT16*)buf8ptr; |
| 248 | | charram1 = (UINT16*)(buf8ptr + videoram_size); |
| 249 | 150 | |
| 250 | | dirtybuf = auto_malloc(0x800); |
| 251 | | memset(dirtybuf, 1, 0x800); |
| 252 | 151 | |
| 253 | | prestep = auto_malloc(i * sizeof(struct PRESTEP_TYPE)); |
| 254 | | splndrbt_prestep(prestep, video_screen_get_visible_area(machine->primary_screen), BMW, 434, 96, 480); |
| 152 | /************************************* |
| 153 | * |
| 154 | * Memory handlers |
| 155 | * |
| 156 | *************************************/ |
| 255 | 157 | |
| 256 | | defcharram = videoram16 + videoram_size / 2; |
| 257 | | |
| 258 | | video_init_common(machine); |
| 259 | | splndrbt_video_reset(); |
| 158 | READ16_HANDLER(equites_fg_videoram_r) |
| 159 | { |
| 160 | return 0xff00 | equites_fg_videoram[offset]; |
| 260 | 161 | } |
| 261 | 162 | |
| 262 | | MACHINE_RESET( splndrbt ) |
| 163 | WRITE16_HANDLER(equites_fg_videoram_w) |
| 263 | 164 | { |
| 264 | | splndrbt_video_reset(); |
| 165 | if (ACCESSING_LSB) |
| 166 | { |
| 167 | equites_fg_videoram[offset] = data & 0xff; |
| 168 | |
| 169 | tilemap_mark_tile_dirty(fg_tilemap, offset>>1); |
| 170 | } |
| 265 | 171 | } |
| 266 | 172 | |
| 267 | | /******************************************************************************/ |
| 268 | | // Realtime Functions |
| 269 | | |
| 270 | | // Equites Hardware |
| 271 | | static void equites_update_clut(running_machine *machine) |
| 173 | WRITE16_HANDLER(equites_bg_videoram_w) |
| 272 | 174 | { |
| 273 | | int i, c; |
| 175 | COMBINE_DATA(equites_bg_videoram + offset); |
| 274 | 176 | |
| 275 | | /* palette hacks! */ |
| 276 | | c = *bgcolor; |
| 177 | tilemap_mark_tile_dirty(bg_tilemap, offset); |
| 178 | } |
| 277 | 179 | |
| 278 | | for (i=0x80; i<0x100; i+=0x08) |
| 279 | | colortable_entry_set_value(machine->colortable, i, c); |
| 180 | WRITE16_HANDLER(equites_bgcolor_w) |
| 181 | { |
| 182 | if (ACCESSING_MSB) |
| 183 | bgcolor = data >> 8; |
| 280 | 184 | } |
| 281 | 185 | |
| 282 | | static void equites_draw_scroll(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) |
| 186 | WRITE16_HANDLER(equites_scrollreg_w) |
| 283 | 187 | { |
| 284 | | #define TILE_BANKBASE 1 |
| 188 | if (ACCESSING_LSB) |
| 189 | tilemap_set_scrolly(bg_tilemap, 0, data & 0xff); |
| 285 | 190 | |
| 286 | | int i, offsx, offsy, skipx, skipy, dispx, dispy, encode, bank, tile, color, fy, fx, fxy, x, y, flipadjx; |
| 191 | if (ACCESSING_MSB) |
| 192 | tilemap_set_scrollx(bg_tilemap, 0, data >> 8); |
| 193 | } |
| 287 | 194 | |
| 288 | | flipadjx = (equites_flip) ? 10 : 0; |
| 289 | | |
| 290 | | dispy = scrolly & 0x0f; |
| 291 | | offsy = scrolly & 0xf0; |
| 292 | | dispx = (scrollx + flipadjx) & 0x0f; |
| 293 | | offsx = (scrollx + flipadjx)>>4 & 0xf; |
| 294 | | if (dispy > 7) |
| 195 | WRITE16_HANDLER(splndrbt_selchar0_w) |
| 196 | { |
| 197 | if (fg_char_bank != 0) |
| 295 | 198 | { |
| 296 | | offsy += 0x10; |
| 297 | | dispy -= 0x10; |
| 199 | fg_char_bank = 0; |
| 200 | tilemap_mark_all_tiles_dirty(fg_tilemap); |
| 298 | 201 | } |
| 299 | | if (dispx > 7) |
| 300 | | { |
| 301 | | offsx++; |
| 302 | | dispx -= 0x10; |
| 303 | | } |
| 304 | | |
| 305 | | for (i=0; i<255; i++) |
| 306 | | { |
| 307 | | skipx = i & 0x0f; |
| 308 | | skipy = i & 0xf0; |
| 309 | | encode = spriteram16_2[((offsy + skipy) & 0xf0) + ((offsx + skipx) & 0x0f)]; |
| 310 | | bank = (encode>>8 & 0x01) + TILE_BANKBASE; |
| 311 | | tile = encode & 0xff; |
| 312 | | fxy = encode & 0x0800; |
| 313 | | color = encode>>12 & 0x0f; |
| 314 | | fx = (encode & 0x0400) | fxy; |
| 315 | | fy = (encode & 0x0200) | fxy; |
| 316 | | x = (skipx<<4) - dispx + BMPAD; |
| 317 | | y = skipy - dispy + BMPAD; |
| 318 | | |
| 319 | | drawgfx( bitmap, |
| 320 | | machine->gfx[bank], |
| 321 | | tile, color, |
| 322 | | fx, fy, |
| 323 | | x, y, |
| 324 | | cliprect, TRANSPARENCY_NONE, 0); |
| 325 | | } |
| 326 | | |
| 327 | | #undef TILE_BANKBASE |
| 328 | 202 | } |
| 329 | 203 | |
| 330 | | static void equites_draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) |
| 204 | WRITE16_HANDLER(splndrbt_selchar1_w) |
| 331 | 205 | { |
| 332 | | #define SPRITE_BANKBASE 3 |
| 333 | | #define SHIFTX -4 |
| 334 | | #define SHIFTY 1 |
| 335 | | |
| 336 | | gfx_element *gfx; |
| 337 | | UINT16 *sptr, *eptr; |
| 338 | | int encode, bank, tile, color, fy, fx, fxy, absx, absy, sx, sy, flipadjx; |
| 339 | | |
| 340 | | flipadjx = (equites_flip) ? 8 : 0; |
| 341 | | |
| 342 | | sptr = spriteram16; |
| 343 | | eptr = sptr + 0x100; |
| 344 | | for (; sptr<eptr; sptr+=2) |
| 206 | if (fg_char_bank != 1) |
| 345 | 207 | { |
| 346 | | encode = *(sptr + 1); |
| 347 | | if (encode) |
| 348 | | { |
| 349 | | bank = (encode>>8 & 0x01) + SPRITE_BANKBASE; |
| 350 | | gfx = machine->gfx[bank]; |
| 351 | | tile = encode & 0xff; |
| 352 | | fxy = encode & 0x800; |
| 353 | | encode = ~encode & 0xf600; |
| 354 | | fx = (encode & 0x400) | fxy; |
| 355 | | fy = (encode & 0x200) | fxy; |
| 356 | | color = encode>>12 & 0x0f; |
| 357 | | encode = *sptr; |
| 358 | | sx = encode>>8 & 0xff; |
| 359 | | sy = encode & 0xff; |
| 360 | | absx = (sx + flipadjx + SHIFTX) & 0xff; |
| 361 | | absy = (sy + SHIFTY) & 0xff; |
| 362 | | if (absx >= 248) absx -= 256; |
| 363 | | if (absy >= 248) absy -= 256; |
| 364 | | |
| 365 | | drawgfx(bitmap, |
| 366 | | gfx, |
| 367 | | tile, color, |
| 368 | | fx, fy, |
| 369 | | absx + BMPAD, absy + BMPAD, |
| 370 | | cliprect, TRANSPARENCY_PEN, 0); |
| 371 | | } |
| 208 | fg_char_bank = 1; |
| 209 | tilemap_mark_all_tiles_dirty(fg_tilemap); |
| 372 | 210 | } |
| 211 | } |
| 373 | 212 | |
| 374 | | #undef SHIFTY |
| 375 | | #undef SHIFTX |
| 376 | | #undef SPRITE_BANKBASE |
| 213 | WRITE16_HANDLER(equites_flip0_w) |
| 214 | { |
| 215 | flip_screen_set(0); |
| 377 | 216 | } |
| 378 | 217 | |
| 379 | | VIDEO_UPDATE( equites ) |
| 218 | WRITE16_HANDLER(equites_flip1_w) |
| 380 | 219 | { |
| 381 | | equites_update_clut(screen->machine); |
| 382 | | equites_draw_scroll(screen->machine, bitmap, cliprect); |
| 383 | | equites_draw_sprites(screen->machine, bitmap, cliprect); |
| 384 | | plot_box(bitmap, cliprect->min_x, cliprect->min_y, maskwidth, maskheight, maskcolor); |
| 385 | | plot_box(bitmap, cliprect->max_x-maskwidth+1, cliprect->min_y, maskwidth, maskheight, maskcolor); |
| 386 | | tilemap_draw(bitmap, cliprect, charmap0, 0, 0); |
| 387 | | return 0; |
| 220 | flip_screen_set(1); |
| 388 | 221 | } |
| 389 | 222 | |
| 390 | | // Splendor Blast Hardware |
| 391 | | static void splndrbt_update_clut(running_machine *machine) |
| 223 | WRITE16_HANDLER(splndrbt_flip0_w) |
| 392 | 224 | { |
| 393 | | int c; |
| 225 | if (ACCESSING_LSB) |
| 226 | flip_screen_set(0); |
| 394 | 227 | |
| 395 | | /* palette hacks! */ |
| 396 | | c = *bgcolor; |
| 397 | | |
| 398 | | switch(equites_id) |
| 399 | | { |
| 400 | | case 0x8511: |
| 401 | | colortable_entry_set_value(machine->colortable, 0x114, c); |
| 402 | | break; |
| 403 | | } |
| 228 | if (ACCESSING_MSB) |
| 229 | bgcolor = data >> 8; |
| 404 | 230 | } |
| 405 | 231 | |
| 406 | | static void splndrbt_draw_scroll(running_machine *machine, bitmap_t *bitmap) |
| 232 | WRITE16_HANDLER(splndrbt_flip1_w) |
| 407 | 233 | { |
| 408 | | #define TILE_BANKBASE 1 |
| 234 | if (ACCESSING_LSB) |
| 235 | flip_screen_set(1); |
| 236 | } |
| 409 | 237 | |
| 410 | | int data, bank, tile, color, fx, fy, x, y, i; |
| 411 | | |
| 412 | | for (i=0; i<0x400; i++) |
| 413 | | if (dirtybuf[i]) |
| 414 | | { |
| 415 | | dirtybuf[i] = 0; |
| 416 | | |
| 417 | | x = (i & 0x1f) << 4; |
| 418 | | y = (i & ~0x1f) >> 1; |
| 419 | | if (!(data = spriteram16_2[i])) { plot_box(bitmap, x, y, 16, 16, *bgcolor); continue; } |
| 420 | | tile = data & 0xff; |
| 421 | | data >>= 8; |
| 422 | | bank = TILE_BANKBASE; |
| 423 | | color = data>>3 & 0x1f; |
| 424 | | bank += data & 1; |
| 425 | | fx = data & 4; |
| 426 | | fy = data & 2; |
| 427 | | |
| 428 | | drawgfx(bitmap, |
| 429 | | machine->gfx[bank], |
| 430 | | tile, color, |
| 431 | | fx, fy, |
| 432 | | x, y, |
| 433 | | 0, TRANSPARENCY_NONE, 0); |
| 434 | | } |
| 435 | | |
| 436 | | #undef TILE_BANKBASE |
| 238 | WRITE16_HANDLER(splndrbt_bg_scrollx_w) |
| 239 | { |
| 240 | COMBINE_DATA(&splndrbt_bg_scrollx); |
| 437 | 241 | } |
| 438 | 242 | |
| 439 | | static void splndrbt_slantcopy( |
| 440 | | bitmap_t *src_bitmap, |
| 441 | | bitmap_t *dst_bitmap, |
| 442 | | const rectangle *dst_clip, |
| 443 | | int src_x, int src_y, |
| 444 | | unsigned src_w, unsigned src_h, |
| 445 | | unsigned dst_startw, unsigned dst_endw, |
| 446 | | struct PRESTEP_TYPE *ps) |
| 243 | WRITE16_HANDLER(splndrbt_bg_scrolly_w) |
| 447 | 244 | { |
| 448 | | #define WRAP ((1<<BMW_l2)-1) |
| 245 | COMBINE_DATA(&splndrbt_bg_scrolly); |
| 246 | } |
| 449 | 247 | |
| 450 | | int src_center_x = ((src_x + (src_w>>1)) & WRAP) << FP_PRECISION; |
| 451 | | int dst_pitch, dst_wdiff, dst_visw, dst_vish; |
| 452 | | int dst_curline; |
| 453 | 248 | |
| 454 | | dst_visw = dst_clip->max_x - dst_clip->min_x + 1; |
| 455 | | dst_vish = dst_clip->max_y - dst_clip->min_y; |
| 456 | | dst_pitch = dst_bitmap->rowpixels; |
| 249 | /************************************* |
| 250 | * |
| 251 | * Video update |
| 252 | * |
| 253 | *************************************/ |
| 457 | 254 | |
| 458 | | dst_wdiff = dst_endw - dst_startw; |
| 255 | static void equites_draw_sprites_block(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int start, int end) |
| 256 | { |
| 257 | int offs; |
| 459 | 258 | |
| 460 | | for (dst_curline = dst_clip->min_y; dst_curline <= dst_clip->max_y; dst_curline++) |
| 259 | for (offs = end-2; offs >= start; offs -= 2) |
| 461 | 260 | { |
| 462 | | const UINT16 *src_ptr = BITMAP_ADDR16(src_bitmap, (src_y + ps[dst_curline - dst_clip->min_y].sy) & WRAP, 0); |
| 463 | | UINT16 *dst_ptr = BITMAP_ADDR16(dst_bitmap, dst_curline, dst_clip->min_x + dst_visw / 2); |
| 464 | | int dst_xend = dst_startw + (dst_wdiff * (dst_curline - dst_clip->min_y)) / dst_vish; |
| 465 | | int src_fsx = FP_HALF; |
| 466 | | int src_fdx = ps[dst_curline - dst_clip->min_y].fdx; |
| 467 | | int dst_x; |
| 261 | int attr = spriteram16[offs + 1]; |
| 262 | if (!(attr & 0x800)) // disable or x MSB? |
| 263 | { |
| 264 | int tile = attr & 0x1ff; |
| 265 | int fx = ~attr & 0x400; |
| 266 | int fy = ~attr & 0x200; |
| 267 | int color = (~attr & 0xf000) >> 12; |
| 268 | int sx = (spriteram16[offs] & 0xff00) >> 8; |
| 269 | int sy = (spriteram16[offs] & 0x00ff); |
| 270 | int transmask = colortable_get_transpen_mask(machine->colortable, machine->gfx[2], color, 0); |
| 468 | 271 | |
| 469 | | if (dst_xend > dst_visw) dst_xend = dst_visw; |
| 470 | | dst_xend /= 2; |
| 272 | if (flip_screen_get()) |
| 273 | { |
| 274 | sx = 240 - sx; |
| 275 | sy = 240 - sy; |
| 276 | fx = !fx; |
| 277 | fy = !fy; |
| 278 | } |
| 471 | 279 | |
| 472 | | for (dst_x = 0; dst_x < dst_xend; dst_x++) |
| 473 | | { |
| 474 | | dst_ptr[-dst_x - 1] = src_ptr[((src_center_x - src_fsx) >> FP_PRECISION) & WRAP]; |
| 475 | | dst_ptr[dst_x] = src_ptr[((src_center_x + src_fsx) >> FP_PRECISION) & WRAP]; |
| 476 | | src_fsx += src_fdx; |
| 280 | // align |
| 281 | sx -= 4; |
| 282 | |
| 283 | // sprites are 16x14 centered in a 16x16 square, so skip the first line |
| 284 | sy += 1; |
| 285 | |
| 286 | drawgfx(bitmap,machine->gfx[2], |
| 287 | tile, |
| 288 | color, |
| 289 | fx, fy, |
| 290 | sx, sy, |
| 291 | cliprect, TRANSPARENCY_PENS, transmask); |
| 477 | 292 | } |
| 478 | 293 | } |
| 479 | | |
| 480 | | #undef WRAP |
| 481 | 294 | } |
| 482 | 295 | |
| 483 | | static void splndrbt_draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *clip) |
| 296 | static void equites_draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) |
| 484 | 297 | { |
| 485 | | #define SPRITE_BANKBASE 3 |
| 486 | | #define FP_ONE 0x10000 |
| 487 | | #define SHIFTX 0 |
| 488 | | #define SHIFTY 0 |
| 298 | // note that we draw the sprites in three blocks; in each blocks, sprites at |
| 299 | // a lower address have priority. This gives good priorities in gekisou. |
| 300 | equites_draw_sprites_block(machine, bitmap, cliprect, 0x000/2, 0x060/2); |
| 301 | equites_draw_sprites_block(machine, bitmap, cliprect, 0x0e0/2, 0x100/2); |
| 302 | equites_draw_sprites_block(machine, bitmap, cliprect, 0x1a4/2, 0x200/2); |
| 303 | } |
| 489 | 304 | |
| 490 | | gfx_element *gfx; |
| 491 | | UINT16 *data_ptr; |
| 492 | | int data, sprite, fx, fy, absx, absy, sx, sy, adjy, scalex, scaley, color, i; |
| 493 | 305 | |
| 494 | | gfx = machine->gfx[SPRITE_BANKBASE]; |
| 495 | | data_ptr = spriteram16 + 1; |
| 306 | /* |
| 307 | This is (probabbly) the sprite x scaling PROM. |
| 308 | The layout is strange. Clearly every line os for one xscale setting. However, |
| 309 | it seems that bytes 0-3 are handled separately from bytes 4-F. |
| 310 | Also, note that sprites are 30x30, not 32x32. |
| 311 | 00020200 00000000 00000000 00000000 |
| 312 | 00020200 01000000 00000000 00000002 |
| 313 | 00020200 01000000 01000002 00000002 |
| 314 | 00020200 01000100 01000002 00020002 |
| 315 | 00020200 01000100 01010202 00020002 |
| 316 | 02020201 01000100 01010202 00020002 |
| 317 | 02020201 01010100 01010202 00020202 |
| 318 | 02020201 01010101 01010202 02020202 |
| 319 | 02020201 03010101 01010202 02020203 |
| 320 | 02020201 03010103 01010202 03020203 |
| 321 | 02020201 03010103 01030302 03020203 |
| 322 | 02020201 03010303 01030302 03030203 |
| 323 | 03020203 03010303 01030302 03030203 |
| 324 | 03020203 03030303 01030302 03030303 |
| 325 | 03020203 03030303 03030303 03030303 |
| 326 | 03020303 03030303 03030303 03030303 |
| 327 | */ |
| 496 | 328 | |
| 497 | | for (i=0; i<0x7e; i+=2) |
| 498 | | { |
| 499 | | data = data_ptr[i]; |
| 500 | | if (!data) continue; |
| 329 | static void splndrbt_draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) |
| 330 | { |
| 331 | const UINT8 * const xrom = memory_region(REGION_USER2); |
| 332 | const UINT8 * const yrom = xrom + 0x100; |
| 333 | const gfx_element* const gfx = machine->gfx[2]; |
| 334 | int offs; |
| 501 | 335 | |
| 502 | | fx = data & 0x2000; |
| 503 | | fy = data & 0x1000; |
| 504 | | sprite = data & 0x7f; |
| 505 | | scaley = (data>>8 & 0x0f) + 1; |
| 506 | | adjy = 0x10 - scaley; |
| 507 | | scaley = (scaley << 12) + (scaley << 8) - 1; |
| 508 | | if (scaley > FP_ONE) scaley = FP_ONE; |
| 336 | // note that sprites are actually 30x30, contained in 32x32 squares. The outer edge is not used. |
| 509 | 337 | |
| 510 | | data = data_ptr[i+1]; |
| 511 | | sx = data & 0xff; |
| 512 | | absx = (sx + SHIFTX) & 0xff; |
| 513 | | if (absx >= 252) absx -= 256; |
| 338 | for (offs = 0x3f; offs < 0x6f; offs += 2) // 24 sprites |
| 339 | { |
| 340 | int data = spriteram16[offs]; |
| 341 | int fx = (data & 0x2000) >> 13; |
| 342 | int fy = (data & 0x1000) >> 12; |
| 343 | int tile = data & 0x007f; |
| 344 | int scaley = (data & 0x0f00) >> 8; |
| 345 | int data2 = spriteram16[offs+1]; |
| 346 | int color = (data2 & 0x1f00) >> 8; |
| 347 | int sx = data2 & 0x00ff; |
| 348 | int sy = spriteram16_2[offs+0] & 0x00ff; |
| 349 | int scalex = spriteram16_2[offs+1] & 0x000f; |
| 350 | int transmask = colortable_get_transpen_mask(machine->colortable, gfx, color, 0); |
| 514 | 351 | |
| 515 | | color = data>>8 & 0x1f; |
| 352 | // const UINT8 * const xromline = xrom + (scalex << 4); |
| 353 | const UINT8 * const yromline = yrom + (scaley << 4) + (15 - scaley); |
| 354 | const UINT8* const srcgfx = gfx->gfxdata + tile * gfx->char_modulo; |
| 355 | const pen_t *paldata = &machine->pens[gfx->color_base + gfx->color_granularity * color]; |
| 356 | int x,yy; |
| 516 | 357 | |
| 517 | | data = data_ptr[i+0x80]; |
| 518 | | sy = data & 0xff; |
| 519 | | absy = (-sy + adjy + SHIFTY) & 0xff; |
| 358 | sy += 16; |
| 520 | 359 | |
| 521 | | data = data_ptr[i+0x81]; |
| 522 | | scalex = (data & 0x0f) + 1; |
| 523 | | scalex <<= 12; |
| 360 | if (flip_screen_get()) |
| 361 | { |
| 362 | // sx NOT inverted |
| 363 | fx = fx ^ 1; |
| 364 | fy = fy ^ 1; |
| 365 | } |
| 366 | else |
| 367 | { |
| 368 | sy = 256 - sy; |
| 369 | } |
| 524 | 370 | |
| 525 | | drawgfxzoom(bitmap, |
| 526 | | gfx, |
| 527 | | sprite, color, |
| 528 | | fx, fy, |
| 529 | | absx, absy, clip, |
| 530 | | TRANSPARENCY_PEN, 0, |
| 531 | | scalex, scaley); |
| 532 | | } |
| 371 | for (yy = 0; yy <= scaley; ++yy) |
| 372 | { |
| 373 | int const line = yromline[yy]; |
| 374 | int yhalf; |
| 533 | 375 | |
| 534 | | #undef SHIFTY |
| 535 | | #undef SHIFTX |
| 536 | | #undef FP_ONE |
| 537 | | #undef SPRITE_BANKBASE |
| 538 | | } |
| 376 | for (yhalf = 0; yhalf < 2; ++yhalf) // top or bottom half |
| 377 | { |
| 378 | int const y = yhalf ? sy + 1 + yy : sy - yy; |
| 539 | 379 | |
| 540 | | VIDEO_UPDATE( splndrbt ) |
| 541 | | { |
| 542 | | splndrbt_update_clut(screen->machine); |
| 543 | | fillbitmap(bitmap, *bgcolor, &halfclip); |
| 544 | | splndrbt_draw_scroll(screen->machine, tmpbitmap); |
| 380 | if (y >= cliprect->min_y && y <= cliprect->max_y) |
| 381 | { |
| 382 | for (x = 0; x <= (scalex << 1); ++x) |
| 383 | { |
| 384 | int bx = (sx + x) & 0xff; |
| 545 | 385 | |
| 546 | | splndrbt_slantcopy( |
| 547 | | tmpbitmap, bitmap, cliprect, |
| 548 | | *splndrbt_scrollx + scrollx, *splndrbt_scrolly + scrolly, |
| 549 | | BMW, 434, 96, 480, prestep); |
| 386 | if (bx >= cliprect->min_x && bx <= cliprect->max_x) |
| 387 | { |
| 388 | int xx = scalex ? (x * 29 + scalex) / (scalex << 1) + 1 : 16; // FIXME This is wrong. Should use the PROM. |
| 389 | int const offset = (fx ? (31 - xx) : xx) + ((fy ^ yhalf) ? (16 + line) : (15 - line) ) * gfx->line_modulo; |
| 550 | 390 | |
| 551 | | tilemap_draw(bitmap, cliprect, charmap1, 0, 0); |
| 552 | | splndrbt_draw_sprites(screen->machine, bitmap, cliprect); |
| 553 | | tilemap_draw(bitmap, cliprect, charmap0, 0, 0); |
| 554 | | return 0; |
| 555 | | } |
| 391 | int pen = srcgfx[offset]; |
| 556 | 392 | |
| 557 | | /******************************************************************************/ |
| 558 | | // Memory Handlers |
| 559 | | |
| 560 | | // Equites Hardware |
| 561 | | READ16_HANDLER(equites_spriteram_r) |
| 562 | | { |
| 563 | | if (*spriteram16 == 0x5555) return (0); |
| 564 | | return (spriteram16[offset]); |
| 393 | if ((transmask & (1 << pen)) == 0) |
| 394 | *BITMAP_ADDR16(bitmap, y, bx) = paldata[pen]; |
| 395 | } |
| 396 | } |
| 397 | } |
| 398 | } |
| 399 | } |
| 400 | } |
| 565 | 401 | } |
| 566 | 402 | |
| 567 | | WRITE16_HANDLER(equites_charram_w) |
| 568 | | { |
| 569 | | COMBINE_DATA(videoram16 + offset); |
| 570 | 403 | |
| 571 | | tilemap_mark_tile_dirty(charmap0, offset>>1); |
| 572 | | } |
| 573 | | |
| 574 | | WRITE16_HANDLER(equites_bgcolor_w) |
| 404 | static void splndrbt_copy_bg(bitmap_t *dst_bitmap, const rectangle *cliprect) |
| 575 | 405 | { |
| 576 | | if (!ACCESSING_MSB) return; |
| 406 | bitmap_t * const src_bitmap = tilemap_get_pixmap(bg_tilemap); |
| 407 | bitmap_t * const flags_bitmap = tilemap_get_flagsmap(bg_tilemap); |
| 408 | const UINT8 * const xrom = memory_region(REGION_USER1); |
| 409 | const UINT8 * const yrom = xrom + 0x2000; |
| 410 | int scroll_x = splndrbt_bg_scrollx; |
| 411 | int scroll_y = splndrbt_bg_scrolly; |
| 412 | int const dinvert = flip_screen_get() ? 0xff : 0x00; |
| 413 | int src_y = 0; |
| 414 | int dst_y; |
| 577 | 415 | |
| 578 | | data >>= 8; |
| 416 | if (flip_screen_get()) |
| 417 | { |
| 418 | scroll_x = -scroll_x - 8; |
| 419 | scroll_y = -scroll_y; |
| 420 | } |
| 579 | 421 | |
| 580 | | switch (equites_id) |
| 422 | for (dst_y = 32; dst_y < 256-32; ++dst_y) |
| 581 | 423 | { |
| 582 | | case 0x8400: |
| 583 | | if (!data) bgcolor[0] = 0; |
| 584 | | else if (data==0x0e) bgcolor[0] = bgcolor[2]; |
| 585 | | else |
| 424 | if (dst_y >= cliprect->min_y && dst_y <= cliprect->max_y) |
| 425 | { |
| 426 | const UINT8 * const romline = &xrom[(dst_y ^ dinvert) << 5]; |
| 427 | const UINT16 * const src_line = BITMAP_ADDR16(src_bitmap, (src_y + scroll_y) & 0x1ff, 0); |
| 428 | const UINT8 * const flags_line = BITMAP_ADDR8(flags_bitmap, (src_y + scroll_y) & 0x1ff, 0); |
| 429 | UINT16 * const dst_line = BITMAP_ADDR16(dst_bitmap, dst_y, 0); |
| 430 | int dst_x = 0; |
| 431 | int src_x; |
| 432 | |
| 433 | for (src_x = 0; src_x < 256 && dst_x < 128; ++src_x) |
| 586 | 434 | { |
| 587 | | bgcolor[2] = bgcolor[1]; |
| 588 | | bgcolor[1] = bgcolor[0] = data; |
| 435 | if ((romline[31 - (src_x >> 3)] >> (src_x & 7)) & 1) |
| 436 | { |
| 437 | int sx; |
| 438 | |
| 439 | sx = (256+128 + scroll_x + src_x) & 0x1ff; |
| 440 | if (flags_line[sx] & TILEMAP_PIXEL_LAYER0) |
| 441 | dst_line[128 + dst_x] = src_line[sx]; |
| 442 | |
| 443 | sx = (255+128 + scroll_x - src_x) & 0x1ff; |
| 444 | if (flags_line[sx] & TILEMAP_PIXEL_LAYER0) |
| 445 | dst_line[127 - dst_x] = src_line[sx]; |
| 446 | |
| 447 | ++dst_x; |
| 448 | } |
| 589 | 449 | } |
| 590 | | break; |
| 591 | | default: |
| 592 | | *bgcolor = data; |
| 450 | } |
| 451 | |
| 452 | src_y += 1 + yrom[dst_y ^ dinvert]; |
| 593 | 453 | } |
| 594 | 454 | } |
| 595 | 455 | |
| 596 | | WRITE16_HANDLER(equites_scrollreg_w) |
| 597 | | { |
| 598 | | if (ACCESSING_LSB) scrolly = data & 0xff; |
| 599 | | if (ACCESSING_MSB) scrollx = data >> 8; |
| 600 | | } |
| 601 | 456 | |
| 602 | | // Splendor Blast Hardware |
| 603 | | WRITE16_HANDLER(splndrbt_selchar0_w) |
| 604 | | { |
| 605 | | activecharram = charram0; |
| 606 | | inactivecharram = charram1; |
| 607 | 457 | |
| 608 | | activecharmap = charmap0; |
| 609 | | inactivecharmap = charmap1; |
| 610 | | } |
| 611 | | |
| 612 | | WRITE16_HANDLER(splndrbt_selchar1_w) |
| 458 | VIDEO_UPDATE( equites ) |
| 613 | 459 | { |
| 614 | | activecharram = charram1; |
| 615 | | inactivecharram = charram0; |
| 460 | fillbitmap(bitmap, bgcolor, cliprect); |
| 616 | 461 | |
| 617 | | activecharmap = charmap1; |
| 618 | | inactivecharmap = charmap0; |
| 619 | | } |
| 462 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 620 | 463 | |
| 621 | | WRITE16_HANDLER(splndrbt_charram_w) |
| 622 | | { |
| 623 | | int oddoffs = offset | 1; |
| 464 | equites_draw_sprites(screen->machine, bitmap, cliprect); |
| 624 | 465 | |
| 625 | | COMBINE_DATA(videoram16 + offset); |
| 626 | | COMBINE_DATA(defcharram + offset); |
| 466 | tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0); |
| 627 | 467 | |
| 628 | | if (data==0x20 && !(offset&1)) |
| 629 | | { |
| 630 | | activecharram[offset] = inactivecharram[offset] = 0x20; |
| 631 | | activecharram[oddoffs] = inactivecharram[oddoffs] = 0x08; |
| 632 | | offset >>= 1; |
| 633 | | tilemap_mark_tile_dirty(activecharmap, offset); |
| 634 | | tilemap_mark_tile_dirty(activecharmap, oddoffs); |
| 635 | | tilemap_mark_tile_dirty(inactivecharmap, offset); |
| 636 | | tilemap_mark_tile_dirty(inactivecharmap, oddoffs); |
| 637 | | } |
| 638 | | else |
| 639 | | { |
| 640 | | COMBINE_DATA(activecharram + offset); |
| 641 | | tilemap_mark_tile_dirty(activecharmap, offset>>1); |
| 642 | | } |
| 468 | return 0; |
| 643 | 469 | } |
| 644 | 470 | |
| 645 | | READ16_HANDLER(splndrbt_bankedchar_r) |
| 471 | VIDEO_UPDATE( splndrbt ) |
| 646 | 472 | { |
| 647 | | if (defcharram[offset|1]==0x3f) return(0); |
| 648 | | return(defcharram[offset]); |
| 649 | | } |
| 473 | fillbitmap(bitmap, bgcolor, cliprect); |
| 650 | 474 | |
| 651 | | WRITE16_HANDLER(splndrbt_bankedchar_w) |
| 652 | | { |
| 653 | | COMBINE_DATA(defcharram + offset); |
| 654 | | COMBINE_DATA(activecharram + offset); |
| 655 | | inactivecharram[offset&~1] = 0x20; |
| 656 | | inactivecharram[offset|1] = 0x08; |
| 657 | | offset >>= 1; |
| 658 | | tilemap_mark_tile_dirty(activecharmap, offset); |
| 659 | | tilemap_mark_tile_dirty(inactivecharmap, offset); |
| 660 | | } |
| 475 | splndrbt_copy_bg(bitmap, cliprect); |
| 661 | 476 | |
| 662 | | WRITE16_HANDLER(splndrbt_scrollram_w) |
| 663 | | { |
| 664 | | COMBINE_DATA(spriteram16_2 + offset); |
| 665 | | dirtybuf[offset] = 1; |
| 666 | | } |
| 477 | if (fg_char_bank) |
| 478 | tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0); |
| 667 | 479 | |
| 668 | | #ifdef UNUSED_FUNCTION |
| 669 | | WRITE16_HANDLER(splndrbt_bgcolor_w) |
| 670 | | { |
| 671 | | data >>= 8; |
| 480 | splndrbt_draw_sprites(screen->machine, bitmap, cliprect); |
| 672 | 481 | |
| 673 | | if (ACCESSING_MSB && *bgcolor != data) |
| 674 | | { |
| 675 | | *bgcolor = data; |
| 676 | | memset(dirtybuf, 1, 0x400); |
| 677 | | } |
| 678 | | } |
| 679 | | #endif |
| 482 | if (!fg_char_bank) |
| 483 | tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0); |
| 680 | 484 | |
| 681 | | /******************************************************************************/ |
| 485 | return 0; |
| 486 | } |
src/mame/drivers/bfm_sc2.c
| r2018 | r2019 | |
| 1668 | 1668 | |
| 1669 | 1669 | PORT_START_TAG("STROBE9") |
| 1670 | 1670 | PORT_SERVICE_NO_TOGGLE(0x01,IP_ACTIVE_HIGH) |
| 1671 | | PORT_DIPNAME( 0x02, 0x00, "Coin 1 Inhibit?" ) PORT_DIPLOCATION("DIL:02") |
| 1672 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1673 | | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 1674 | | PORT_DIPNAME( 0x04, 0x00, "Coin 2 Inhibit?" ) PORT_DIPLOCATION("DIL:03") |
| 1675 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1676 | | PORT_DIPSETTING( 0x04, DEF_STR( Yes ) ) |
| 1677 | | PORT_DIPNAME( 0x08, 0x00, "Coin 3 Inhibit?" ) PORT_DIPLOCATION("DIL:04") |
| 1678 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1679 | | PORT_DIPSETTING( 0x08, DEF_STR( Yes ) ) |
| 1680 | | PORT_DIPNAME( 0x10, 0x00, "Coin 4 Inhibit?" ) PORT_DIPLOCATION("DIL:05") |
| 1681 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1682 | | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) |
| 1671 | PORT_DIPNAME( 0x02, 0x00, "Coin 1 Lockout")PORT_DIPLOCATION("DIL:!02") |
| 1672 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1673 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 1674 | PORT_DIPNAME( 0x04, 0x00, "Coin 2 Lockout")PORT_DIPLOCATION("DIL:!03") |
| 1675 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1676 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 1677 | PORT_DIPNAME( 0x08, 0x00, "Coin 3 Lockout")PORT_DIPLOCATION("DIL:!04") |
| 1678 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1679 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 1680 | PORT_DIPNAME( 0x10, 0x00, "Coin 4 Lockout")PORT_DIPLOCATION("DIL:!05") |
| 1681 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1682 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 1683 | 1683 | |
| 1684 | 1684 | PORT_START_TAG("STROBE10") |
| 1685 | | PORT_DIPNAME( 0x01, 0x00, "DIL06" ) PORT_DIPLOCATION("DIL:06") |
| 1686 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1687 | | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 1688 | | PORT_DIPNAME( 0x02, 0x02, "Attract mode language" ) PORT_DIPLOCATION("DIL:07") |
| 1685 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x00, "DIL:!06" ) |
| 1686 | PORT_DIPNAME( 0x02, 0x00, "Attract mode language" ) PORT_DIPLOCATION("DIL:!07") |
| 1689 | 1687 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| 1690 | 1688 | PORT_DIPSETTING( 0x02, "Dutch" ) |
| 1691 | | PORT_DIPNAME( 0x0C, 0x00, "Skill Level" ) PORT_DIPLOCATION("DIL:08,10") |
| 1689 | PORT_DIPNAME( 0x0C, 0x00, "Skill Level" ) PORT_DIPLOCATION("DIL:!08,!10") |
| 1692 | 1690 | PORT_DIPSETTING( 0x00, DEF_STR( Low ) ) |
| 1693 | 1691 | PORT_DIPSETTING( 0x04, "Medium-Low" ) |
| 1694 | 1692 | PORT_DIPSETTING( 0x08, "Medium-High") |
| 1695 | 1693 | PORT_DIPSETTING( 0x0C, DEF_STR( High ) ) |
| 1696 | | PORT_DIPNAME( 0x10, 0x00, "DIL11" ) PORT_DIPLOCATION("DIL:11") |
| 1697 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1698 | | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 1694 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x00, "DIL:!11" ) |
| 1699 | 1695 | |
| 1700 | 1696 | PORT_START_TAG("STROBE11") |
| 1701 | | PORT_DIPNAME( 0x01, 0x00, "DIL12" ) PORT_DIPLOCATION("DIL:12") |
| 1697 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x00, "DIL:!12" ) |
| 1698 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "DIL:!13" ) |
| 1699 | PORT_DIPNAME( 0x04, 0x00, "Attract mode" ) PORT_DIPLOCATION("DIL:!14") |
| 1702 | 1700 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1703 | | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 1704 | | PORT_DIPNAME( 0x02, 0x00, "DIL13" ) PORT_DIPLOCATION("DIL:13") |
| 1705 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1706 | | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 1707 | | PORT_DIPNAME( 0x04, 0x04, "Attract mode" ) PORT_DIPLOCATION("DIL:14") |
| 1708 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1709 | 1701 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 1710 | | PORT_DIPNAME( 0x18, 0x00, "Stake" ) PORT_DIPLOCATION("DIL:15,16") |
| 1702 | PORT_DIPNAME( 0x18, 0x00, "Stake" ) PORT_DIPLOCATION("DIL:!15,!16") |
| 1711 | 1703 | PORT_DIPSETTING( 0x00, "4 credits per game" ) |
| 1712 | 1704 | PORT_DIPSETTING( 0x08, "1 credit per round" ) |
| 1713 | 1705 | PORT_DIPSETTING( 0x10, "2 credit per round" ) |
| 1714 | 1706 | PORT_DIPSETTING( 0x18, "4 credits per round" ) |
| 1715 | | |
| 1716 | 1707 | INPUT_PORTS_END |
| 1717 | 1708 | |
| 1718 | 1709 | // input ports for golden crown /////////////////////////////////// |
| 1719 | 1710 | |
| 1720 | 1711 | static INPUT_PORTS_START( gldncrwn ) |
| 1721 | | PORT_START_TAG("COINS") |
| 1722 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(3) PORT_NAME("Fl 5.00") |
| 1723 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(3) PORT_NAME("Fl 2.50") |
| 1724 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) PORT_IMPULSE(3) PORT_NAME("Fl 1.00") |
| 1712 | PORT_INCLUDE( pyramid ) |
| 1713 | |
| 1714 | PORT_MODIFY("COINS") |
| 1725 | 1715 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_IMPULSE(3) PORT_NAME("Fl 0.25") |
| 1726 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1727 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1728 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1729 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1730 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1731 | 1716 | |
| 1732 | | PORT_START_TAG("STROBE0") |
| 1733 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1734 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1735 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1736 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1737 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1738 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1739 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1740 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1741 | | |
| 1742 | | PORT_START_TAG("STROBE1") |
| 1717 | PORT_MODIFY("STROBE1") |
| 1743 | 1718 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME( "Collect") PORT_CODE(KEYCODE_C) |
| 1744 | 1719 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME( "Reel 1" ) |
| 1745 | 1720 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME( "Reel 2" ) |
| r2018 | r2019 | |
| 1749 | 1724 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1750 | 1725 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1751 | 1726 | |
| 1752 | | PORT_START_TAG("STROBE2") |
| 1727 | PORT_MODIFY("STROBE2") |
| 1753 | 1728 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON4) PORT_NAME( "Reel 4" ) |
| 1754 | 1729 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON5) PORT_NAME( "Reel 5" ) |
| 1755 | 1730 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON6) PORT_NAME( "Reel 6" ) |
| r2018 | r2019 | |
| 1759 | 1734 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1760 | 1735 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1761 | 1736 | |
| 1762 | | PORT_START_TAG("STROBE3") |
| 1763 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1764 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1765 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1766 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1767 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1768 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1769 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1770 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1771 | | |
| 1772 | | PORT_START_TAG("STROBE4") |
| 1773 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Cashbox Door") PORT_CODE(KEYCODE_Q) PORT_TOGGLE |
| 1774 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Front Door") PORT_CODE(KEYCODE_W) PORT_TOGGLE |
| 1775 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Refill Key") PORT_CODE(KEYCODE_R) PORT_TOGGLE |
| 1776 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1777 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1778 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1779 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1780 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1781 | | |
| 1782 | | PORT_START_TAG("STROBE5") |
| 1783 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1784 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1785 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1786 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1787 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1788 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1789 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1790 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1791 | | |
| 1792 | | PORT_START_TAG("STROBE6") |
| 1793 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1794 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1795 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1796 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1797 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1798 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1799 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1800 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1801 | | |
| 1802 | | PORT_START_TAG("STROBE7") |
| 1803 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1804 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1805 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1806 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1807 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1808 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1809 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1810 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1811 | | |
| 1812 | | PORT_START_TAG("STROBE8") |
| 1813 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1814 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1815 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1816 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1817 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1818 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1819 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1820 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1821 | | |
| 1822 | | PORT_START_TAG("STROBE9") |
| 1823 | | PORT_SERVICE_NO_TOGGLE(0x01,IP_ACTIVE_HIGH) |
| 1824 | | PORT_DIPNAME( 0x02, 0x00, "Coin 1 Inhibit?" )PORT_DIPLOCATION("DIL:02") |
| 1825 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1826 | | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 1827 | | PORT_DIPNAME( 0x04, 0x00, "Coin 2 Inhibit?" )PORT_DIPLOCATION("DIL:03") |
| 1828 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1829 | | PORT_DIPSETTING( 0x04, DEF_STR( Yes ) ) |
| 1830 | | PORT_DIPNAME( 0x08, 0x00, "Coin 3 Inhibit?" )PORT_DIPLOCATION("DIL:04") |
| 1831 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1832 | | PORT_DIPSETTING( 0x08, DEF_STR( Yes ) ) |
| 1833 | | PORT_DIPNAME( 0x10, 0x00, "Coin 4 Inhibit?" )PORT_DIPLOCATION("DIL:05") |
| 1834 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 1835 | | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) |
| 1836 | | |
| 1837 | | PORT_START_TAG("STROBE10") |
| 1838 | | PORT_DIPNAME( 0x01, 0x00, "Attract mode language" )PORT_DIPLOCATION("DIL:06") |
| 1737 | PORT_MODIFY("STROBE10") |
| 1738 | PORT_DIPNAME( 0x01, 0x00, "Attract mode language" )PORT_DIPLOCATION("DIL:!06") |
| 1839 | 1739 | PORT_DIPSETTING( 0x00, "Dutch") |
| 1840 | 1740 | PORT_DIPSETTING( 0x01, DEF_STR( English ) ) |
| 1841 | | PORT_DIPNAME( 0x02, 0x00, "Max number of spins" )PORT_DIPLOCATION("DIL:07") |
| 1741 | PORT_DIPNAME( 0x02, 0x00, "Max number of spins" )PORT_DIPLOCATION("DIL:!07") |
| 1842 | 1742 | PORT_DIPSETTING( 0x00, "99") |
| 1843 | 1743 | PORT_DIPSETTING( 0x02, "50") |
| 1844 | | PORT_DIPNAME( 0x0C, 0x00, "Skill Level" )PORT_DIPLOCATION("DIL:08,10") |
| 1744 | PORT_DIPNAME( 0x0C, 0x00, "Skill Level" )PORT_DIPLOCATION("DIL:!08,!10") |
| 1845 | 1745 | PORT_DIPSETTING( 0x00, DEF_STR( Low )) |
| 1846 | 1746 | PORT_DIPSETTING( 0x04, "Medium-Low" ) |
| 1847 | 1747 | PORT_DIPSETTING( 0x08, "Medium-High" ) |
| 1848 | 1748 | PORT_DIPSETTING( 0x0C, DEF_STR( High ) ) |
| 1849 | | PORT_DIPNAME( 0x10, 0x00, "Base Pricing on:" )PORT_DIPLOCATION("DIL:11") |
| 1749 | PORT_DIPNAME( 0x10, 0x00, "Base Pricing on:" )PORT_DIPLOCATION("DIL:!11") |
| 1850 | 1750 | PORT_DIPSETTING( 0x00, "Full Game") |
| 1851 | 1751 | PORT_DIPSETTING( 0x10, "Individual Rounds") |
| 1852 | 1752 | |
| 1853 | | PORT_START_TAG("STROBE11") |
| 1854 | | PORT_DIPNAME( 0x01, 0x01, "Credits required:" )PORT_DIPLOCATION("DIL:12") |
| 1753 | PORT_MODIFY("STROBE11") |
| 1754 | PORT_DIPNAME( 0x01, 0x00, "Credits required:" )PORT_DIPLOCATION("DIL:!12") |
| 1855 | 1755 | PORT_DIPSETTING( 0x00, "4 credits per game")PORT_CONDITION("STROBE10",0x10,PORTCOND_EQUALS,0x00) |
| 1856 | 1756 | PORT_DIPSETTING( 0x01, "2 credits per game")PORT_CONDITION("STROBE10",0x10,PORTCOND_EQUALS,0x00) |
| 1857 | 1757 | PORT_DIPSETTING( 0x00, "1 credit per round")PORT_CONDITION("STROBE10",0x10,PORTCOND_EQUALS,0x10) |
| r2018 | r2019 | |
| 1865 | 1765 | 1 1 4 credits per round |
| 1866 | 1766 | */ |
| 1867 | 1767 | |
| 1868 | | PORT_DIPNAME( 0x02, 0x00, "Attract Mode" )PORT_DIPLOCATION("DIL:13") |
| 1768 | PORT_DIPNAME( 0x02, 0x00, "Attract Mode" )PORT_DIPLOCATION("DIL:!13") |
| 1869 | 1769 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 1870 | 1770 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1871 | | PORT_DIPNAME( 0x04, 0x04, "Time bar" )PORT_DIPLOCATION("DIL:14") |
| 1771 | PORT_DIPNAME( 0x04, 0x00, "Time bar" )PORT_DIPLOCATION("DIL:!14") |
| 1872 | 1772 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1873 | 1773 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1874 | | PORT_DIPNAME( 0x18, 0x00, "Time bar speed" )PORT_DIPLOCATION("DIL:15,16") |
| 1774 | PORT_DIPNAME( 0x18, 0x00, "Time bar speed" )PORT_DIPLOCATION("DIL:!15,!16") |
| 1875 | 1775 | PORT_DIPSETTING( 0x00, "1 (fast)" ) |
| 1876 | 1776 | PORT_DIPSETTING( 0x08, "2" ) |
| 1877 | 1777 | PORT_DIPSETTING( 0x10, "3" ) |
| 1878 | 1778 | PORT_DIPSETTING( 0x18, "4 (slow)" ) |
| 1879 | | |
| 1880 | 1779 | INPUT_PORTS_END |
| 1881 | 1780 | |
| 1882 | 1781 | // input ports for dutch quintoon ///////////////////////////////// |
| 1883 | 1782 | |
| 1884 | 1783 | static INPUT_PORTS_START( qntoond ) |
| 1885 | | PORT_START_TAG("COINS") |
| 1886 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(3) PORT_NAME("Fl 5.00") |
| 1784 | PORT_INCLUDE( pyramid ) |
| 1785 | |
| 1786 | PORT_MODIFY("COINS") |
| 1787 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(3) PORT_NAME("Fl 5.00") |
| 1887 | 1788 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(3) PORT_NAME("Fl 2.50") |
| 1888 | 1789 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) PORT_IMPULSE(3) PORT_NAME("Fl 1.00") |
| 1889 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_IMPULSE(3) PORT_NAME("Fl 0.25") |
| 1890 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1891 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1892 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1893 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1790 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_IMPULSE(3) PORT_NAME("Fl 0.50") |
| 1894 | 1791 | |
| 1895 | | PORT_START_TAG("STROBE0") |
| 1896 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1897 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1898 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1899 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1900 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1901 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1902 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1903 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1904 | | |
| 1905 | | PORT_START_TAG("STROBE1") |
| 1792 | PORT_MODIFY("STROBE1") |
| 1906 | 1793 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Collect") PORT_CODE(KEYCODE_C) |
| 1907 | 1794 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Hand 1" ) |
| 1908 | 1795 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Hand 2" ) |
| 1909 | 1796 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Hand 3" ) |
| 1910 | 1797 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("Hand 4" ) |
| 1911 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1912 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1913 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1914 | 1798 | |
| 1915 | | PORT_START_TAG("STROBE2") |
| 1799 | PORT_MODIFY("STROBE2") |
| 1916 | 1800 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("Hand 5" ) |
| 1917 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1918 | 1801 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 1919 | 1802 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1920 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1921 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1922 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1923 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1924 | 1803 | |
| 1925 | | PORT_START_TAG("STROBE3") |
| 1926 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1927 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1928 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1929 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1930 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1931 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1932 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1933 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1934 | | |
| 1935 | | PORT_START_TAG("STROBE4") |
| 1936 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Cashbox Door") PORT_CODE(KEYCODE_Q) PORT_TOGGLE |
| 1937 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Front Door") PORT_CODE(KEYCODE_W) PORT_TOGGLE |
| 1938 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Refill Key") PORT_CODE(KEYCODE_R) PORT_TOGGLE |
| 1939 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1940 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1941 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1942 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1943 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1944 | | |
| 1945 | | PORT_START_TAG("STROBE5") |
| 1946 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1947 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1948 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1949 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1950 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1951 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1952 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1953 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1954 | | |
| 1955 | | PORT_START_TAG("STROBE6") |
| 1956 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1957 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1958 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1959 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1960 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1961 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1962 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1963 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1964 | | |
| 1965 | | PORT_START_TAG("STROBE7") |
| 1966 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1967 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1968 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1969 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1970 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1971 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1972 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1973 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1974 | | |
| 1975 | | PORT_START_TAG("STROBE8") |
| 1976 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1977 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1978 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1979 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1980 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1981 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1982 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1983 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1984 | | |
| 1985 | | PORT_START_TAG("STROBE9") |
| 1804 | PORT_MODIFY("STROBE9") |
| 1986 | 1805 | PORT_SERVICE_NO_TOGGLE(0x01,IP_ACTIVE_HIGH) |
| 1987 | | PORT_DIPNAME( 0x02, 0x02, "Fl 0.25 Inhibit?" )PORT_DIPLOCATION("DIL:02") |
| 1988 | | PORT_DIPSETTING( 0x02, DEF_STR( No ) ) |
| 1989 | | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 1990 | | PORT_DIPNAME( 0x04, 0x04, "Fl 1.00 Inhibit?" )PORT_DIPLOCATION("DIL:03") |
| 1991 | | PORT_DIPSETTING( 0x04, DEF_STR( No ) ) |
| 1992 | | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 1993 | | PORT_DIPNAME( 0x08, 0x08, "Fl 2.50 Inhibit?" )PORT_DIPLOCATION("DIL:04") |
| 1994 | | PORT_DIPSETTING( 0x08, DEF_STR( No ) ) |
| 1995 | | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 1996 | | PORT_DIPNAME( 0x10, 0x10, "Fl 5.00 Inhibit?" )PORT_DIPLOCATION("DIL:05") |
| 1997 | | PORT_DIPSETTING( 0x10, DEF_STR( No ) ) |
| 1998 | | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 1806 | PORT_DIPNAME( 0x1e, 0x1c, DEF_STR( Coinage ) ) PORT_DIPLOCATION("DIL:!02,!03,!04,!05") |
| 1807 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 1808 | PORT_DIPSETTING( 0x02, "C1=2.5 C2=1.25 C3=0.5 C4=2C_0.25C" ) |
| 1809 | PORT_DIPSETTING( 0x04, "C1=10 C2=5 C3=2 C4=0.5" ) |
| 1810 | PORT_DIPSETTING( 0x06, "C1=1.5/3.25/5 C2=0.75/1.5/3.25 C3=0.25/0.5/1 C4=3C_0.25C" ) |
| 1811 | PORT_DIPSETTING( 0x08, "C1=20 C2=10 C3=4 C4=1" ) |
| 1812 | PORT_DIPSETTING( 0x0a, "C1=2 C2=1 C3=0.25/0.75/1/1.5/2 C4=3C_0.25C 5C_0.5C" ) |
| 1813 | PORT_DIPSETTING( 0x0c, "C1=5 C2=2.5 C3=1 C4=0.25" ) |
| 1814 | PORT_DIPSETTING( 0x0e, "C1=1.25 C2=0.5/1.25/1.75 C3=0.25 C4=0.25" ) |
| 1815 | //PORT_DIPSETTING( 0x10, DEF_STR( Free_Play ) ) |
| 1816 | PORT_DIPSETTING( 0x12, "C1=3 C2=1.5 C3=0.5 C4=0.25" ) |
| 1817 | PORT_DIPSETTING( 0x14, "C1=12 C2=6 C3=2 C4=0.5" ) |
| 1818 | PORT_DIPSETTING( 0x16, "C1=2 C2=1 C3=0.25 C4=3C_0.25C" ) |
| 1819 | PORT_DIPSETTING( 0x18, "C1=24 C2=12 C3=4 C4=1" ) |
| 1820 | PORT_DIPSETTING( 0x1a, "C1=2.25/4.75 C2=1/2.25/3.5/4.75/6 C3=0.25/0.75/1/1.5/2 C4=3C_0.25C 5C_0.5C" ) |
| 1821 | PORT_DIPSETTING( 0x1c, "C1=6 C2=3 C3=1 C4=0.25" ) |
| 1822 | PORT_DIPSETTING( 0x1e, "C1=1.5 C2=0.75 C3=0.25 C4=4C_0.25C" ) |
| 1999 | 1823 | |
| 2000 | | PORT_START_TAG("STROBE10") |
| 2001 | | PORT_DIPNAME( 0x01, 0x00, "DIL06" ) PORT_DIPLOCATION("DIL:06") |
| 1824 | PORT_MODIFY("STROBE10") |
| 1825 | PORT_DIPNAME( 0x01, 0x00, "Coin 1 Lockout")PORT_DIPLOCATION("DIL:!06") |
| 2002 | 1826 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2003 | | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2004 | | PORT_DIPNAME( 0x02, 0x00, "DIL07" ) PORT_DIPLOCATION("DIL:07") |
| 1827 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 1828 | PORT_DIPNAME( 0x02, 0x00, "Coin 2 Lockout")PORT_DIPLOCATION("DIL:!07") |
| 2005 | 1829 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2006 | | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 2007 | | PORT_DIPNAME( 0x04, 0x00, "DIL08" ) PORT_DIPLOCATION("DIL:08") |
| 1830 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 1831 | PORT_DIPNAME( 0x04, 0x00, "Coin 3 Lockout")PORT_DIPLOCATION("DIL:!08") |
| 2008 | 1832 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2009 | | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 2010 | | PORT_DIPNAME( 0x08, 0x00, "DIL09" ) PORT_DIPLOCATION("DIL:10") |
| 1833 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 1834 | PORT_DIPNAME( 0x08, 0x00, "Coin 4 Lockout")PORT_DIPLOCATION("DIL:!10") |
| 2011 | 1835 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2012 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 2013 | | PORT_DIPNAME( 0x10, 0x00, "Coin Jam Alarm" )PORT_DIPLOCATION("DIL:11") |
| 1836 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 1837 | PORT_DIPNAME( 0x10, 0x00, "Coin Jam Alarm" )PORT_DIPLOCATION("DIL:!11") |
| 2014 | 1838 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2015 | 1839 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 2016 | 1840 | |
| 2017 | | PORT_START_TAG("STROBE11") |
| 2018 | | PORT_DIPNAME( 0x01, 0x00, "Time bar" )PORT_DIPLOCATION("DIL:12") |
| 1841 | PORT_MODIFY("STROBE11") |
| 1842 | PORT_DIPNAME( 0x01, 0x00, "Time bar" )PORT_DIPLOCATION("DIL:!12") |
| 2019 | 1843 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2020 | 1844 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2021 | | PORT_DIPNAME( 0x02, 0x00, "Clear credits on reset" )PORT_DIPLOCATION("DIL:13") |
| 1845 | PORT_DIPNAME( 0x02, 0x00, "Clear credits on reset" )PORT_DIPLOCATION("DIL:!13") |
| 2022 | 1846 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2023 | 1847 | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 2024 | | PORT_DIPNAME( 0x04, 0x00, "Attract mode" )PORT_DIPLOCATION("DIL:14") |
| 1848 | PORT_DIPNAME( 0x04, 0x00, "Attract mode" )PORT_DIPLOCATION("DIL:!14") |
| 2025 | 1849 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2026 | 1850 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 2027 | | PORT_DIPNAME( 0x08, 0x00, "Attract mode language" )PORT_DIPLOCATION("DIL:15") |
| 2028 | | PORT_DIPSETTING( 0x00, "Dutch" ) |
| 2029 | | PORT_DIPSETTING( 0x08, DEF_STR( English ) ) |
| 2030 | | PORT_DIPNAME( 0x10, 0x00, "DIL15" ) PORT_DIPLOCATION("DIL:16") |
| 2031 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2032 | | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 2033 | | |
| 1851 | PORT_DIPNAME( 0x08, 0x00, "Attract mode language" )PORT_DIPLOCATION("DIL:!15") |
| 1852 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| 1853 | PORT_DIPSETTING( 0x08, "Dutch" ) |
| 1854 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x00, "DIL:!16" ) |
| 2034 | 1855 | INPUT_PORTS_END |
| 2035 | 1856 | |
| 2036 | 1857 | // input ports for UK quintoon //////////////////////////////////////////// |
| 2037 | 1858 | |
| 2038 | 1859 | static INPUT_PORTS_START( quintoon ) |
| 2039 | | PORT_START_TAG("COINS") |
| 1860 | PORT_INCLUDE( pyramid ) |
| 1861 | |
| 1862 | PORT_MODIFY("COINS") |
| 2040 | 1863 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(3) PORT_NAME("10p") |
| 2041 | 1864 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(3) PORT_NAME("20p") |
| 2042 | 1865 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) PORT_IMPULSE(3) PORT_NAME("50p") |
| 2043 | 1866 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_IMPULSE(3) PORT_NAME("GBP 1.00") |
| 2044 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2045 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2046 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2047 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2048 | 1867 | |
| 2049 | | PORT_START_TAG("STROBE0") |
| 2050 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2051 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2052 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2053 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2054 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2055 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2056 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2057 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2058 | | |
| 2059 | | PORT_START_TAG("STROBE1") |
| 1868 | PORT_MODIFY("STROBE1") |
| 2060 | 1869 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Collect") PORT_CODE(KEYCODE_C) |
| 2061 | 1870 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Hand 1") |
| 2062 | 1871 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Hand 2") |
| 2063 | 1872 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON3) PORT_NAME("Hand 3") |
| 2064 | 1873 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON4) PORT_NAME("Hand 4") |
| 2065 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2066 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2067 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2068 | 1874 | |
| 2069 | | PORT_START_TAG("STROBE2") |
| 1875 | PORT_MODIFY("STROBE2") |
| 2070 | 1876 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON5) PORT_NAME("Hand 5") |
| 2071 | 1877 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON7) PORT_NAME("?1") PORT_CODE(KEYCODE_U) |
| 2072 | 1878 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1) |
| 2073 | 1879 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON8) PORT_NAME("?2") PORT_CODE(KEYCODE_I) |
| 2074 | 1880 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON9) PORT_NAME("?3") PORT_CODE(KEYCODE_O) |
| 2075 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2076 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2077 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2078 | 1881 | |
| 2079 | | PORT_START_TAG("STROBE3") |
| 2080 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2081 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2082 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2083 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2084 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2085 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2086 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2087 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1882 | PORT_MODIFY("STROBE5") |
| 1883 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL) //Payout opto |
| 2088 | 1884 | |
| 2089 | | PORT_START_TAG("STROBE4") |
| 2090 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Cashbox Door") PORT_CODE(KEYCODE_Q) PORT_TOGGLE |
| 2091 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Front Door") PORT_CODE(KEYCODE_W) PORT_TOGGLE |
| 2092 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Refill Key") PORT_CODE(KEYCODE_R) PORT_TOGGLE |
| 2093 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2094 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2095 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2096 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2097 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1885 | PORT_MODIFY("STROBE9") |
| 1886 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "DIL:!02" ) |
| 1887 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "DIL:!03" ) |
| 1888 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "DIL:!04" ) |
| 1889 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x00, "DIL:!05" ) |
| 2098 | 1890 | |
| 2099 | | PORT_START_TAG("STROBE5")// |
| 2100 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2101 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2102 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL)//Payout opto |
| 2103 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2104 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2105 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2106 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2107 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2108 | | |
| 2109 | | PORT_START_TAG("STROBE6") |
| 2110 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2111 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2112 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2113 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2114 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2115 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2116 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2117 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2118 | | |
| 2119 | | PORT_START_TAG("STROBE7") |
| 2120 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2121 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2122 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2123 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2124 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2125 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2126 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2127 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2128 | | |
| 2129 | | PORT_START_TAG("STROBE8") |
| 2130 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2131 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2132 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2133 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2134 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2135 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2136 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2137 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2138 | | |
| 2139 | | PORT_START_TAG("STROBE9") |
| 2140 | | PORT_SERVICE_NO_TOGGLE(0x01,IP_ACTIVE_HIGH) |
| 2141 | | PORT_DIPNAME( 0x02, 0x00, "Clear credits on reset?" )PORT_DIPLOCATION("DIL:02") |
| 2142 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2143 | | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 2144 | | PORT_DIPNAME( 0x04, 0x00, "DIL03" )PORT_DIPLOCATION("DIL:03") |
| 2145 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2146 | | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 2147 | | PORT_DIPNAME( 0x08, 0x00, "DIL04" )PORT_DIPLOCATION("DIL:04") |
| 2148 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2149 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 2150 | | PORT_DIPNAME( 0x10, 0x00, "DIL05" )PORT_DIPLOCATION("DIL:05") |
| 2151 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2152 | | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 2153 | | |
| 2154 | | PORT_START_TAG("STROBE10") |
| 2155 | | PORT_DIPNAME( 0x01, 0x00, "Coin Lockout")PORT_DIPLOCATION("DIL:06") |
| 2156 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) )//Will activate coin lockout when Credit >= 1 Play |
| 1891 | PORT_MODIFY("STROBE10") |
| 1892 | PORT_DIPNAME( 0x01, 0x00, "Coin Lockout")PORT_DIPLOCATION("DIL:!06") |
| 1893 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) //Will activate coin lockout when Credit >= 1 Play |
| 2157 | 1894 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2158 | | PORT_DIPNAME( 0x02, 0x00, "DIL07" )PORT_DIPLOCATION("DIL:07") |
| 2159 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2160 | | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 2161 | | PORT_DIPNAME( 0x04, 0x00, "DIL08" )PORT_DIPLOCATION("DIL:08") |
| 2162 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2163 | | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 2164 | | PORT_DIPNAME( 0x08, 0x00, "DIL10" )PORT_DIPLOCATION("DIL:10") |
| 2165 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2166 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 2167 | | PORT_DIPNAME( 0x10, 0x00, "Stake per Game / Jackpot" )PORT_DIPLOCATION("DIL:11") |
| 1895 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "DIL:!07" ) |
| 1896 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "DIL:!08" ) |
| 1897 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "DIL:!10" ) |
| 1898 | PORT_DIPNAME( 0x10, 0x00, "Stake per Game / Jackpot" )PORT_DIPLOCATION("DIL:!11") |
| 2168 | 1899 | PORT_DIPSETTING( 0x00, "20p / 6 Pounds" ) |
| 2169 | 1900 | PORT_DIPSETTING( 0x10, "50p / 20 Pounds" ) |
| 2170 | 1901 | |
| 2171 | | PORT_START_TAG("STROBE11") |
| 2172 | | PORT_DIPNAME( 0x01, 0x00, "DIL12" )PORT_DIPLOCATION("DIL:12") |
| 2173 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2174 | | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2175 | | PORT_DIPNAME( 0x02, 0x00, "DIL13" )PORT_DIPLOCATION("DIL:13") |
| 2176 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2177 | | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 2178 | | PORT_DIPNAME( 0x1C, 0x1C, "Target percentage" )PORT_DIPLOCATION("DIL:14,15,16") |
| 1902 | PORT_MODIFY("STROBE11") |
| 1903 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x00, "DIL:!12" ) |
| 1904 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "DIL:!13" ) |
| 1905 | PORT_DIPNAME( 0x1C, 0x00, "Target percentage" )PORT_DIPLOCATION("DIL:!14,!15,!16") |
| 2179 | 1906 | PORT_DIPSETTING( 0x1C, "50%") |
| 2180 | 1907 | PORT_DIPSETTING( 0x0C, "55%") |
| 2181 | 1908 | PORT_DIPSETTING( 0x08, "60%") |
| r2018 | r2019 | |
| 2184 | 1911 | PORT_DIPSETTING( 0x00, "75%") |
| 2185 | 1912 | PORT_DIPSETTING( 0x04, "80%") |
| 2186 | 1913 | PORT_DIPSETTING( 0x14, "85%") |
| 2187 | | |
| 2188 | 1914 | INPUT_PORTS_END |
| 2189 | 1915 | |
| 2190 | | // input ports for UK quintoon (older)///////////////////////////////////// |
| 2191 | | |
| 2192 | | static INPUT_PORTS_START( quintono ) |
| 2193 | | PORT_INCLUDE(quintoon) |
| 2194 | | PORT_MODIFY("STROBE10") |
| 2195 | | PORT_DIPNAME( 0x10, 0x00, "Stake per Game / Jackpot" )PORT_DIPLOCATION("DIL:11") |
| 2196 | | PORT_DIPSETTING( 0x00, "20p / 6 Pounds" ) |
| 2197 | | PORT_DIPSETTING( 0x10, "50p / 20 Pounds" ) |
| 2198 | | INPUT_PORTS_END |
| 2199 | | |
| 2200 | 1916 | // input ports for slotsnl /////////////////////////////////////////////// |
| 2201 | 1917 | |
| 2202 | 1918 | static INPUT_PORTS_START( slotsnl ) |
| 2203 | | PORT_START_TAG("COINS") |
| 1919 | PORT_INCLUDE( pyramid ) |
| 1920 | |
| 1921 | PORT_MODIFY("COINS") |
| 2204 | 1922 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(3) PORT_NAME("Fl 0.25") |
| 2205 | 1923 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(3) PORT_NAME("Fl 1.00") |
| 2206 | 1924 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) PORT_IMPULSE(3) PORT_NAME("Fl 2.50") |
| 2207 | 1925 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_IMPULSE(3) PORT_NAME("Fl 5.00") |
| 2208 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2209 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2210 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2211 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2212 | 1926 | |
| 2213 | | PORT_START_TAG("STROBE0") |
| 2214 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2215 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2216 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2217 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2218 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2219 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2220 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2221 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2222 | | |
| 2223 | | PORT_START_TAG("STROBE1") |
| 1927 | PORT_MODIFY("STROBE1") |
| 2224 | 1928 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2225 | 1929 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Slot 1") |
| 2226 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2227 | 1930 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Slot 2") |
| 2228 | 1931 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2229 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2230 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2231 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2232 | 1932 | |
| 2233 | | PORT_START_TAG("STROBE2") |
| 1933 | PORT_MODIFY("STROBE2") |
| 2234 | 1934 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3) PORT_NAME("Slot 3") |
| 2235 | 1935 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON4) PORT_NAME("Slot 4") |
| 2236 | 1936 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Enter") PORT_CODE( KEYCODE_E ) |
| 2237 | 1937 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2238 | 1938 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 ) |
| 2239 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2240 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2241 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2242 | 1939 | |
| 2243 | | PORT_START_TAG("STROBE3") |
| 2244 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2245 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2246 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2247 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1940 | PORT_MODIFY("STROBE3") |
| 2248 | 1941 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START1) |
| 2249 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2250 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2251 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2252 | 1942 | |
| 2253 | | PORT_START_TAG("STROBE4") |
| 2254 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Cashbox Door") PORT_CODE(KEYCODE_Q) PORT_TOGGLE |
| 2255 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Front Door") PORT_CODE(KEYCODE_W) PORT_TOGGLE |
| 2256 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Refill Key") PORT_CODE(KEYCODE_R) PORT_TOGGLE |
| 2257 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2258 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2259 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2260 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2261 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2262 | | |
| 2263 | | PORT_START_TAG("STROBE5") |
| 2264 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2265 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2266 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2267 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2268 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2269 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2270 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2271 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2272 | | |
| 2273 | | PORT_START_TAG("STROBE6") |
| 2274 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2275 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2276 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2277 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2278 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2279 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2280 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2281 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2282 | | |
| 2283 | | PORT_START_TAG("STROBE7") |
| 2284 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2285 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2286 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2287 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2288 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2289 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2290 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2291 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2292 | | |
| 2293 | | PORT_START_TAG("STROBE8") |
| 2294 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2295 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2296 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2297 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2298 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2299 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2300 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2301 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2302 | | |
| 2303 | | PORT_START_TAG("STROBE9") |
| 2304 | | PORT_SERVICE_NO_TOGGLE(0x01,IP_ACTIVE_HIGH) |
| 2305 | | PORT_DIPNAME( 0x02, 0x00, "Fl 0.25 Inhibit?" )PORT_DIPLOCATION("DIL:02") |
| 2306 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2307 | | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 2308 | | PORT_DIPNAME( 0x04, 0x00, "Fl 1.00 Inhibit?" )PORT_DIPLOCATION("DIL:03") |
| 2309 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2310 | | PORT_DIPSETTING( 0x04, DEF_STR( Yes ) ) |
| 2311 | | PORT_DIPNAME( 0x08, 0x00, "Fl 2.50 Inhibit?" )PORT_DIPLOCATION("DIL:04") |
| 2312 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2313 | | PORT_DIPSETTING( 0x08, DEF_STR( Yes ) ) |
| 2314 | | PORT_DIPNAME( 0x10, 0x00, "Fl 5.00 Inhibit?" )PORT_DIPLOCATION("DIL:05") |
| 2315 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2316 | | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) |
| 2317 | | |
| 2318 | | PORT_START_TAG("STROBE10") |
| 2319 | | PORT_DIPNAME( 0x01, 0x00, "DIL06" ) PORT_DIPLOCATION("DIL:06") |
| 1943 | PORT_MODIFY("STROBE10") |
| 1944 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x00, "DIL:!06" ) |
| 1945 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "DIL:!07" ) |
| 1946 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "DIL:!08" ) |
| 1947 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "DIL:!10" ) |
| 1948 | PORT_DIPNAME( 0x10, 0x00, "Coin Jam Alarm" )PORT_DIPLOCATION("DIL:!11") |
| 2320 | 1949 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2321 | | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2322 | | PORT_DIPNAME( 0x02, 0x00, "DIL07" ) PORT_DIPLOCATION("DIL:07") |
| 2323 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2324 | | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 2325 | | PORT_DIPNAME( 0x04, 0x00, "DIL08" ) PORT_DIPLOCATION("DIL:08") |
| 2326 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2327 | | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 2328 | | PORT_DIPNAME( 0x08, 0x00, "DIL10" ) PORT_DIPLOCATION("DIL:10") |
| 2329 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2330 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 2331 | | PORT_DIPNAME( 0x10, 0x00, "Coin Jam Alarm" )PORT_DIPLOCATION("DIL:11") |
| 2332 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2333 | 1950 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 2334 | 1951 | |
| 2335 | | PORT_START_TAG("STROBE11") |
| 2336 | | PORT_DIPNAME( 0x01, 0x00, "DIL12" ) PORT_DIPLOCATION("DIL:12") |
| 1952 | PORT_MODIFY("STROBE11") |
| 1953 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x00, "DIL:!12" ) |
| 1954 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "DIL:!13" ) |
| 1955 | PORT_DIPNAME( 0x04, 0x00, "Attract mode" )PORT_DIPLOCATION("DIL:!14") |
| 2337 | 1956 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2338 | | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2339 | | PORT_DIPNAME( 0x02, 0x00, "DIL13" ) PORT_DIPLOCATION("DIL:13") |
| 2340 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2341 | | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 2342 | | PORT_DIPNAME( 0x04, 0x00, "Attract mode" )PORT_DIPLOCATION("DIL:14") |
| 2343 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2344 | 1957 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 2345 | | PORT_DIPNAME( 0x18, 0x00, "Timebar speed" )PORT_DIPLOCATION("DIL:15,16") |
| 1958 | PORT_DIPNAME( 0x18, 0x00, "Timebar speed" )PORT_DIPLOCATION("DIL:!15,!16") |
| 2346 | 1959 | PORT_DIPSETTING( 0x00, "1" ) |
| 2347 | 1960 | PORT_DIPSETTING( 0x10, "2" ) |
| 2348 | 1961 | PORT_DIPSETTING( 0x08, "3" ) |
| 2349 | 1962 | PORT_DIPSETTING( 0x18, "4" ) |
| 2350 | | |
| 2351 | 1963 | INPUT_PORTS_END |
| 2352 | 1964 | |
| 2353 | 1965 | // input ports for sltblgtk ////////////////////////////////////////////// |
| 2354 | 1966 | |
| 2355 | 1967 | static INPUT_PORTS_START( sltblgtk ) |
| 2356 | | PORT_START_TAG("COINS") |
| 1968 | PORT_INCLUDE( pyramid ) |
| 1969 | |
| 1970 | PORT_MODIFY("COINS") |
| 2357 | 1971 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2358 | 1972 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(3) PORT_NAME("Token") |
| 2359 | 1973 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(3) PORT_NAME("20 BFr") |
| 2360 | 1974 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN3 ) PORT_IMPULSE(3) PORT_NAME("50 BFr") |
| 2361 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2362 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2363 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2364 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2365 | 1975 | |
| 2366 | | PORT_START_TAG("STROBE0") |
| 2367 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2368 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2369 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2370 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2371 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2372 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2373 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2374 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2375 | | |
| 2376 | | PORT_START_TAG("STROBE1") |
| 1976 | PORT_MODIFY("STROBE1") |
| 2377 | 1977 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2378 | 1978 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Slot 1") |
| 2379 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2380 | 1979 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Slot 2") |
| 2381 | 1980 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2382 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2383 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2384 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2385 | 1981 | |
| 2386 | | PORT_START_TAG("STROBE2") |
| 1982 | PORT_MODIFY("STROBE2") |
| 2387 | 1983 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3) PORT_NAME("Slot 3") |
| 2388 | 1984 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON4) PORT_NAME("Slot 4") |
| 2389 | 1985 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Enter") PORT_CODE( KEYCODE_E ) |
| 2390 | 1986 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2391 | 1987 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START2 ) |
| 2392 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2393 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2394 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2395 | 1988 | |
| 2396 | | PORT_START_TAG("STROBE3") |
| 2397 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL )//Tube 1 |
| 2398 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL )//Tube 2 |
| 2399 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2400 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 1989 | PORT_MODIFY("STROBE3") |
| 1990 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SPECIAL ) //Tube 1 |
| 1991 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SPECIAL ) //Tube 2 |
| 2401 | 1992 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_START1) |
| 2402 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2403 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2404 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2405 | 1993 | |
| 2406 | | PORT_START_TAG("STROBE4") |
| 2407 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Cashbox Door") PORT_CODE(KEYCODE_Q) PORT_TOGGLE |
| 2408 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Front Door") PORT_CODE(KEYCODE_W) PORT_TOGGLE |
| 2409 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Refill Key") PORT_CODE(KEYCODE_R) PORT_TOGGLE |
| 2410 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2411 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2412 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2413 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2414 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2415 | | |
| 2416 | | PORT_START_TAG("STROBE5") |
| 2417 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2418 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2419 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2420 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2421 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2422 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2423 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2424 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2425 | | |
| 2426 | | PORT_START_TAG("STROBE6") |
| 2427 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2428 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2429 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2430 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2431 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2432 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2433 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2434 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2435 | | |
| 2436 | | PORT_START_TAG("STROBE7") |
| 2437 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2438 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2439 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2440 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2441 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2442 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2443 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2444 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2445 | | |
| 2446 | | PORT_START_TAG("STROBE8") |
| 2447 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2448 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2449 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2450 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2451 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2452 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2453 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2454 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2455 | | |
| 2456 | | PORT_START_TAG("STROBE9") |
| 1994 | PORT_MODIFY("STROBE9") |
| 2457 | 1995 | PORT_SERVICE_NO_TOGGLE(0x01,IP_ACTIVE_HIGH) |
| 2458 | | PORT_DIPNAME( 0x02, 0x00, "CashMeters in refill menu" )PORT_DIPLOCATION("DIL:02") |
| 1996 | PORT_DIPNAME( 0x02, 0x00, "CashMeters in refill menu" )PORT_DIPLOCATION("DIL:!02") |
| 2459 | 1997 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2460 | 1998 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 2461 | | PORT_DIPNAME( 0x04, 0x00, "Token Inhibit?" )PORT_DIPLOCATION("DIL:03") |
| 1999 | PORT_DIPNAME( 0x04, 0x00, "Token Lockout" )PORT_DIPLOCATION("DIL:!03") |
| 2462 | 2000 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2463 | 2001 | PORT_DIPSETTING( 0x04, DEF_STR( Yes ) ) |
| 2464 | | PORT_DIPNAME( 0x08, 0x00, "20 Bfr Inhibit?" )PORT_DIPLOCATION("DIL:04") |
| 2002 | PORT_DIPNAME( 0x08, 0x00, "20 Bfr Lockout" )PORT_DIPLOCATION("DIL:!04") |
| 2465 | 2003 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2466 | 2004 | PORT_DIPSETTING( 0x08, DEF_STR( Yes ) ) |
| 2467 | | PORT_DIPNAME( 0x10, 0x00, "50 Bfr Inhibit?" )PORT_DIPLOCATION("DIL:05") |
| 2005 | PORT_DIPNAME( 0x10, 0x00, "50 Bfr Lockout" )PORT_DIPLOCATION("DIL:!05") |
| 2468 | 2006 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2469 | 2007 | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) |
| 2470 | 2008 | |
| 2471 | | PORT_START_TAG("STROBE10") |
| 2472 | | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) )PORT_DIPLOCATION("DIL:06") |
| 2473 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2474 | | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2475 | | |
| 2476 | | PORT_DIPNAME( 0x0E, 0x0E, "Payout Percentage" )PORT_DIPLOCATION("DIL:07,08,10") |
| 2009 | PORT_MODIFY("STROBE10") |
| 2010 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x00, "DIL:!06" ) |
| 2011 | PORT_DIPNAME( 0x0E, 0x00, "Payout Percentage" )PORT_DIPLOCATION("DIL:!07,!08,!10") |
| 2477 | 2012 | PORT_DIPSETTING( 0x00, "60%") |
| 2478 | 2013 | PORT_DIPSETTING( 0x08, "65%") |
| 2479 | 2014 | PORT_DIPSETTING( 0x04, "70%") |
| r2018 | r2019 | |
| 2482 | 2017 | PORT_DIPSETTING( 0x0A, "84%") |
| 2483 | 2018 | PORT_DIPSETTING( 0x06, "88%") |
| 2484 | 2019 | PORT_DIPSETTING( 0x0E, "90%") |
| 2485 | | PORT_DIPNAME( 0x10, 0x00, "Coin Jam Alarm" )PORT_DIPLOCATION("DIL:11") |
| 2020 | PORT_DIPNAME( 0x10, 0x00, "Coin Jam Alarm" )PORT_DIPLOCATION("DIL:!11") |
| 2486 | 2021 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2487 | 2022 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 2488 | 2023 | |
| 2489 | | PORT_START_TAG("STROBE11") |
| 2490 | | PORT_DIPNAME( 0x01, 0x01, "Timebar" )PORT_DIPLOCATION("DIL:12") |
| 2024 | PORT_MODIFY("STROBE11") |
| 2025 | PORT_DIPNAME( 0x01, 0x00, "Timebar" )PORT_DIPLOCATION("DIL:!12") |
| 2491 | 2026 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2492 | 2027 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2493 | | PORT_DIPNAME( 0x02, 0x00, "Clear credits" )PORT_DIPLOCATION("DIL:13") |
| 2028 | PORT_DIPNAME( 0x02, 0x00, "Clear credits" )PORT_DIPLOCATION("DIL:!13") |
| 2494 | 2029 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2495 | 2030 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 2496 | | PORT_DIPNAME( 0x04, 0x00, "Attract mode" )PORT_DIPLOCATION("DIL:14") |
| 2031 | PORT_DIPNAME( 0x04, 0x00, "Attract mode" )PORT_DIPLOCATION("DIL:!14") |
| 2497 | 2032 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2498 | 2033 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 2499 | | PORT_DIPNAME( 0x08, 0x08, "Show hints" )PORT_DIPLOCATION("DIL:15") |
| 2034 | PORT_DIPNAME( 0x08, 0x00, "Show hints" )PORT_DIPLOCATION("DIL:!15") |
| 2500 | 2035 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2501 | 2036 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 2502 | | PORT_DIPNAME( 0x10, 0x00, "Pay win to credits" )PORT_DIPLOCATION("DIL:16") |
| 2037 | PORT_DIPNAME( 0x10, 0x00, "Pay win to credits" )PORT_DIPLOCATION("DIL:!16") |
| 2503 | 2038 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2504 | 2039 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 2505 | | |
| 2506 | 2040 | INPUT_PORTS_END |
| 2507 | 2041 | |
| 2508 | 2042 | // input ports for sltblgpo ////////////////////////////////////////////// |
| 2509 | 2043 | |
| 2510 | 2044 | static INPUT_PORTS_START( sltblgpo ) |
| 2511 | | PORT_START_TAG("COINS") |
| 2045 | PORT_INCLUDE( pyramid ) |
| 2046 | |
| 2047 | PORT_MODIFY("COINS") |
| 2512 | 2048 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2513 | 2049 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2514 | 2050 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(3) PORT_NAME("Bfr 20") |
| 2515 | 2051 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(3) PORT_NAME("Bfr 50") |
| 2516 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2517 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2518 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2519 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2520 | 2052 | |
| 2521 | | PORT_START_TAG("STROBE0") |
| 2522 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2523 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2524 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2525 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2526 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2527 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2528 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2529 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2530 | | |
| 2531 | | PORT_START_TAG("STROBE1") |
| 2053 | PORT_MODIFY("STROBE1") |
| 2532 | 2054 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2533 | 2055 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Hand 1") |
| 2534 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2535 | 2056 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME("Hand 2") |
| 2536 | 2057 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2537 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2538 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2539 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2540 | 2058 | |
| 2541 | | PORT_START_TAG("STROBE2") |
| 2059 | PORT_MODIFY("STROBE2") |
| 2542 | 2060 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3) PORT_NAME("Hand 3") |
| 2543 | 2061 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON4) PORT_NAME("Hand 4") |
| 2544 | 2062 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1) |
| 2545 | 2063 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2546 | 2064 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME("Stake") PORT_CODE( KEYCODE_O ) |
| 2547 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2548 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2549 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2550 | 2065 | |
| 2551 | | PORT_START_TAG("STROBE3") |
| 2552 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2553 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2554 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2066 | PORT_MODIFY("STROBE3") |
| 2555 | 2067 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Collect") PORT_CODE(KEYCODE_C) |
| 2556 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2557 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2558 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2559 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2560 | 2068 | |
| 2561 | | PORT_START_TAG("STROBE4") |
| 2562 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Cashbox Door") PORT_CODE(KEYCODE_Q) PORT_TOGGLE |
| 2563 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Front Door") PORT_CODE(KEYCODE_W) PORT_TOGGLE |
| 2564 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Refill Key") PORT_CODE(KEYCODE_R) PORT_TOGGLE |
| 2565 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2566 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2567 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2568 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2569 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2570 | | |
| 2571 | | PORT_START_TAG("STROBE5") |
| 2572 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2573 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2574 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2575 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2576 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2577 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2578 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2579 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2580 | | |
| 2581 | | PORT_START_TAG("STROBE6") |
| 2582 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2583 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2584 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2585 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2586 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2587 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2588 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2589 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2590 | | |
| 2591 | | PORT_START_TAG("STROBE7") |
| 2592 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2593 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2594 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2595 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2596 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2597 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2598 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2599 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2600 | | |
| 2601 | | PORT_START_TAG("STROBE8") |
| 2602 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2603 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2604 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2605 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2606 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2607 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2608 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2609 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2610 | | |
| 2611 | | PORT_START_TAG("STROBE9") |
| 2069 | PORT_MODIFY("STROBE9") |
| 2612 | 2070 | PORT_SERVICE_NO_TOGGLE(0x01,IP_ACTIVE_HIGH) |
| 2613 | | PORT_DIPNAME( 0x02, 0x00, "Hopper Limit" )PORT_DIPLOCATION("DIL:02") |
| 2071 | PORT_DIPNAME( 0x02, 0x00, "Hopper Limit" )PORT_DIPLOCATION("DIL:!02") |
| 2614 | 2072 | PORT_DIPSETTING( 0x00, "300" ) |
| 2615 | 2073 | PORT_DIPSETTING( 0x02, "500" ) |
| 2616 | | PORT_DIPNAME( 0x04, 0x00, "DIL03" )PORT_DIPLOCATION("DIL:03") |
| 2617 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2618 | | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 2619 | | |
| 2620 | | PORT_DIPNAME( 0x18, 0x00, "Attendant payout" )PORT_DIPLOCATION("DIL:04,05") |
| 2074 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "DIL:!03" ) |
| 2075 | PORT_DIPNAME( 0x18, 0x00, "Attendant payout" )PORT_DIPLOCATION("DIL:!04,!05") |
| 2621 | 2076 | PORT_DIPSETTING( 0x00, "1000 Bfr" ) |
| 2622 | 2077 | PORT_DIPSETTING( 0x08, "1250 Bfr" ) |
| 2623 | 2078 | PORT_DIPSETTING( 0x10, "1500 Bfr" ) |
| 2624 | 2079 | PORT_DIPSETTING( 0x18, "1750 Bfr" ) |
| 2625 | 2080 | |
| 2626 | | PORT_START_TAG("STROBE10") |
| 2627 | | PORT_DIPNAME( 0x01, 0x00, "Bfr 20 Inhibit?" )PORT_DIPLOCATION("DIL:06") |
| 2081 | PORT_MODIFY("STROBE10") |
| 2082 | PORT_DIPNAME( 0x01, 0x00, "Bfr 20 Lockout" )PORT_DIPLOCATION("DIL:!06") |
| 2628 | 2083 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2629 | 2084 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) |
| 2630 | | PORT_DIPNAME( 0x02, 0x00, "DIL07" )PORT_DIPLOCATION("DIL:07") |
| 2085 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "DIL:!07" ) |
| 2086 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "DIL:!08" ) |
| 2087 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "DIL:!10" ) |
| 2088 | PORT_DIPNAME( 0x10, 0x00, "Coin Jam Alarm" )PORT_DIPLOCATION("DIL:!11") |
| 2631 | 2089 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2632 | | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 2633 | | PORT_DIPNAME( 0x04, 0x00, "DIL08" )PORT_DIPLOCATION("DIL:08") |
| 2634 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2635 | | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 2636 | | PORT_DIPNAME( 0x08, 0x00, "DIL10" )PORT_DIPLOCATION("DIL:10") |
| 2637 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2638 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 2639 | | PORT_DIPNAME( 0x10, 0x00, "Coin Jam Alarm" )PORT_DIPLOCATION("DIL:11") |
| 2640 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2641 | 2090 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 2642 | 2091 | |
| 2643 | | PORT_START_TAG("STROBE11") |
| 2644 | | PORT_DIPNAME( 0x01, 0x00, "Clear credits on reset?" )PORT_DIPLOCATION("DIL:12") |
| 2092 | PORT_MODIFY("STROBE11") |
| 2093 | PORT_DIPNAME( 0x01, 0x00, "Clear credits on reset?" )PORT_DIPLOCATION("DIL:!12") |
| 2645 | 2094 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2646 | 2095 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) |
| 2647 | | PORT_DIPNAME( 0x02, 0x00, "Attract Mode" )PORT_DIPLOCATION("DIL:13") |
| 2096 | PORT_DIPNAME( 0x02, 0x00, "Attract Mode" )PORT_DIPLOCATION("DIL:!13") |
| 2648 | 2097 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 2649 | 2098 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2650 | | PORT_DIPNAME( 0x1C, 0x08, "Target Percentage" )PORT_DIPLOCATION("DIL:14,15,16") |
| 2099 | PORT_DIPNAME( 0x1C, 0x00, "Target Percentage" )PORT_DIPLOCATION("DIL:!14,!15,!16") |
| 2651 | 2100 | PORT_DIPSETTING( 0x14, "80%") |
| 2652 | 2101 | PORT_DIPSETTING( 0x04, "82%") |
| 2653 | 2102 | PORT_DIPSETTING( 0x1C, "84%") |
| r2018 | r2019 | |
| 2656 | 2105 | PORT_DIPSETTING( 0x00, "92%") |
| 2657 | 2106 | PORT_DIPSETTING( 0x18, "94%") |
| 2658 | 2107 | PORT_DIPSETTING( 0x08, "96%") |
| 2659 | | |
| 2660 | 2108 | INPUT_PORTS_END |
| 2661 | 2109 | |
| 2662 | 2110 | // input ports for paradice /////////////////////////////////////////////// |
| 2663 | 2111 | |
| 2664 | 2112 | static INPUT_PORTS_START( paradice ) |
| 2665 | | PORT_START_TAG("COINS") |
| 2113 | PORT_INCLUDE( pyramid ) |
| 2114 | |
| 2115 | PORT_MODIFY("COINS") |
| 2666 | 2116 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(3) PORT_NAME("Fl 0.25") |
| 2667 | 2117 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(3) PORT_NAME("Fl 1.00") |
| 2668 | 2118 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) PORT_IMPULSE(3) PORT_NAME("Fl 2.50") |
| 2669 | 2119 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_IMPULSE(3) PORT_NAME("Fl 5.00") |
| 2670 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2671 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2672 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2673 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2674 | 2120 | |
| 2675 | | PORT_START_TAG("STROBE0") |
| 2676 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2677 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2678 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2679 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2680 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2681 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2682 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2683 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2684 | | |
| 2685 | | PORT_START_TAG("STROBE1") |
| 2121 | PORT_MODIFY("STROBE1") |
| 2686 | 2122 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME( "1 Player Start (Left)" ) |
| 2687 | 2123 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) PORT_NAME( "2 Player Start (Right)" ) |
| 2688 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2689 | 2124 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_NAME( "A" ) |
| 2690 | 2125 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_NAME( "B" ) |
| 2691 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2692 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2693 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2694 | 2126 | |
| 2695 | | |
| 2696 | | PORT_START_TAG("STROBE2") |
| 2127 | PORT_MODIFY("STROBE2") |
| 2697 | 2128 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3) PORT_NAME( "C" ) |
| 2698 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2699 | 2129 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Enter" ) PORT_CODE( KEYCODE_E ) |
| 2700 | 2130 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2701 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2702 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2703 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2704 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2705 | 2131 | |
| 2706 | | PORT_START_TAG("STROBE3") |
| 2707 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2708 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2709 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2710 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2711 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2712 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2713 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2714 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2715 | | |
| 2716 | | PORT_START_TAG("STROBE4") |
| 2717 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Cashbox Door") PORT_CODE(KEYCODE_Q) PORT_TOGGLE |
| 2718 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Front Door") PORT_CODE(KEYCODE_W) PORT_TOGGLE |
| 2719 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Refill Key") PORT_CODE(KEYCODE_R) PORT_TOGGLE |
| 2720 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2721 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2722 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2723 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2724 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2725 | | |
| 2726 | | PORT_START_TAG("STROBE5") |
| 2727 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2728 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2729 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2730 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2731 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2732 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2733 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2734 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2735 | | |
| 2736 | | PORT_START_TAG("STROBE6") |
| 2737 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2738 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2739 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2740 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2741 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2742 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2743 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2744 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2745 | | |
| 2746 | | PORT_START_TAG("STROBE7") |
| 2747 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2748 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2749 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2750 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2751 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2752 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2753 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2754 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2755 | | |
| 2756 | | PORT_START_TAG("STROBE8") |
| 2757 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2758 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2759 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2760 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2761 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2762 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2763 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2764 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2765 | | |
| 2766 | | PORT_START_TAG("STROBE9") |
| 2767 | | PORT_SERVICE_NO_TOGGLE(0x01,IP_ACTIVE_HIGH) |
| 2768 | | PORT_DIPNAME( 0x02, 0x00, "Coin 1 Inhibit?" )PORT_DIPLOCATION("DIL:02") |
| 2769 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2770 | | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 2771 | | PORT_DIPNAME( 0x04, 0x00, "Coin 2 Inhibit?" )PORT_DIPLOCATION("DIL:03") |
| 2772 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2773 | | PORT_DIPSETTING( 0x04, DEF_STR( Yes ) ) |
| 2774 | | PORT_DIPNAME( 0x08, 0x00, "Coin 3 Inhibit?" )PORT_DIPLOCATION("DIL:04") |
| 2775 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2776 | | PORT_DIPSETTING( 0x08, DEF_STR( Yes ) ) |
| 2777 | | PORT_DIPNAME( 0x10, 0x00, "Coin 4 Inhibit?" )PORT_DIPLOCATION("DIL:05") |
| 2778 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2779 | | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) |
| 2780 | | |
| 2781 | | PORT_START_TAG("STROBE10") |
| 2782 | | PORT_DIPNAME( 0x01, 0x01, "Joker" )PORT_DIPLOCATION("DIL:06") |
| 2132 | PORT_MODIFY("STROBE10") |
| 2133 | PORT_DIPNAME( 0x01, 0x00, "Joker" )PORT_DIPLOCATION("DIL:!06") |
| 2783 | 2134 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2784 | 2135 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2785 | | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Language ) )PORT_DIPLOCATION("DIL:07") |
| 2136 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Language ) )PORT_DIPLOCATION("DIL:!07") |
| 2786 | 2137 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| 2787 | 2138 | PORT_DIPSETTING( 0x02, "Dutch" ) |
| 2788 | | PORT_DIPNAME( 0x0C, 0x0C, "Payout level" )PORT_DIPLOCATION("DIL:08,10") |
| 2139 | PORT_DIPNAME( 0x0C, 0x00, "Payout level" )PORT_DIPLOCATION("DIL:!08,!10") |
| 2789 | 2140 | PORT_DIPSETTING( 0x00, DEF_STR( Low ) ) |
| 2790 | 2141 | PORT_DIPSETTING( 0x08, "Medium-Low" ) |
| 2791 | 2142 | PORT_DIPSETTING( 0x04, "Medium-High" ) |
| 2792 | 2143 | PORT_DIPSETTING( 0x0C, DEF_STR( High ) ) |
| 2793 | | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Difficulty ) )PORT_DIPLOCATION("DIL:11") |
| 2144 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Difficulty ) )PORT_DIPLOCATION("DIL:!11") |
| 2794 | 2145 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2795 | 2146 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 2796 | 2147 | |
| 2797 | | PORT_START_TAG("STROBE11") |
| 2798 | | PORT_DIPNAME( 0x03, 0x00, "Winlines to go" )PORT_DIPLOCATION("DIL:12,13") |
| 2148 | PORT_MODIFY("STROBE11") |
| 2149 | PORT_DIPNAME( 0x03, 0x00, "Winlines to go" )PORT_DIPLOCATION("DIL:!12,!13") |
| 2799 | 2150 | PORT_DIPSETTING( 0x00, "6" ) |
| 2800 | 2151 | PORT_DIPSETTING( 0x02, "7" ) |
| 2801 | 2152 | PORT_DIPSETTING( 0x01, "8" ) |
| 2802 | 2153 | PORT_DIPSETTING( 0x03, "9" ) |
| 2803 | | PORT_DIPNAME( 0x04, 0x04, "Attract mode" )PORT_DIPLOCATION("DIL:14") |
| 2154 | PORT_DIPNAME( 0x04, 0x00, "Attract mode" )PORT_DIPLOCATION("DIL:!14") |
| 2804 | 2155 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2805 | 2156 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 2806 | | PORT_DIPNAME( 0x18, 0x00, "Timebar speed" )PORT_DIPLOCATION("DIL:15,16") |
| 2157 | PORT_DIPNAME( 0x18, 0x00, "Timebar speed" )PORT_DIPLOCATION("DIL:!15,!16") |
| 2807 | 2158 | PORT_DIPSETTING( 0x00, "0" ) |
| 2808 | 2159 | PORT_DIPSETTING( 0x08, "1" ) |
| 2809 | 2160 | PORT_DIPSETTING( 0x10, "2" ) |
| 2810 | 2161 | PORT_DIPSETTING( 0x18, "3" ) |
| 2811 | | |
| 2812 | 2162 | INPUT_PORTS_END |
| 2813 | 2163 | |
| 2814 | 2164 | // input ports for pokio ////////////////////////////////////////////////// |
| 2815 | 2165 | |
| 2816 | 2166 | static INPUT_PORTS_START( pokio ) |
| 2817 | | PORT_START_TAG("COINS") |
| 2167 | PORT_INCLUDE( pyramid ) |
| 2168 | |
| 2169 | PORT_MODIFY("COINS") |
| 2818 | 2170 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(3) PORT_NAME("Fl 0.25") |
| 2819 | 2171 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(3) PORT_NAME("Fl 1.00") |
| 2820 | 2172 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) PORT_IMPULSE(3) PORT_NAME("Fl 2.50") |
| 2821 | 2173 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN4 ) PORT_IMPULSE(3) PORT_NAME("Fl 5.00") |
| 2822 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2823 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2824 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2825 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2826 | 2174 | |
| 2827 | | PORT_START_TAG("STROBE0") |
| 2828 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2829 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2830 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2831 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2832 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2833 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2834 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2835 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2836 | | |
| 2837 | | PORT_START_TAG("STROBE1") |
| 2175 | PORT_MODIFY("STROBE1") |
| 2838 | 2176 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME( "Hand 1 Left" ) |
| 2839 | 2177 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME( "Hand 2 Left" ) |
| 2840 | 2178 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME( "Hand 3 Left" ) |
| 2841 | 2179 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2842 | 2180 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2843 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2844 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2845 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2846 | 2181 | |
| 2847 | | PORT_START_TAG("STROBE2") |
| 2182 | PORT_MODIFY("STROBE2") |
| 2848 | 2183 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME( "1 Player Start (Left)" ) |
| 2849 | 2184 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Enter" ) PORT_CODE( KEYCODE_SPACE ) |
| 2850 | 2185 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START2 ) PORT_NAME( "2 Player Start (Right)" ) |
| 2851 | 2186 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON6 )PORT_NAME( "Hand 3 Right" ) |
| 2852 | 2187 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON5 )PORT_NAME( "Hand 2 Right" ) |
| 2853 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2854 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2855 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2856 | 2188 | |
| 2857 | | PORT_START_TAG("STROBE3") |
| 2858 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2859 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2860 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2861 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2189 | PORT_MODIFY("STROBE3") |
| 2862 | 2190 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON4 )PORT_NAME( "Hand 1 Right" ) |
| 2863 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2864 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2865 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2866 | 2191 | |
| 2867 | | PORT_START_TAG("STROBE4") |
| 2868 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Cashbox Door") PORT_CODE(KEYCODE_Q) PORT_TOGGLE |
| 2869 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_INTERLOCK) PORT_NAME("Front Door") PORT_CODE(KEYCODE_W) PORT_TOGGLE |
| 2870 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Refill Key") PORT_CODE(KEYCODE_R) PORT_TOGGLE |
| 2871 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2872 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2873 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2874 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2875 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2876 | | |
| 2877 | | PORT_START_TAG("STROBE5") |
| 2878 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2879 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2880 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2881 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2882 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2883 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2884 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2885 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2886 | | |
| 2887 | | PORT_START_TAG("STROBE6") |
| 2888 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2889 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2890 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2891 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2892 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2893 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2894 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2895 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2896 | | |
| 2897 | | PORT_START_TAG("STROBE7") |
| 2898 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2899 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2900 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2901 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2902 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2903 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2904 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2905 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2906 | | |
| 2907 | | PORT_START_TAG("STROBE8") |
| 2908 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2909 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2910 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2911 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2912 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2913 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2914 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2915 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED) |
| 2916 | | |
| 2917 | | PORT_START_TAG("STROBE9") |
| 2918 | | PORT_SERVICE_NO_TOGGLE(0x01,IP_ACTIVE_HIGH) |
| 2919 | | PORT_DIPNAME( 0x02, 0x00, "Coin 1 Inhibit?" )PORT_DIPLOCATION("DIL:02") |
| 2920 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2921 | | PORT_DIPSETTING( 0x02, DEF_STR( Yes ) ) |
| 2922 | | PORT_DIPNAME( 0x04, 0x00, "Coin 2 Inhibit?" )PORT_DIPLOCATION("DIL:03") |
| 2923 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2924 | | PORT_DIPSETTING( 0x04, DEF_STR( Yes ) ) |
| 2925 | | PORT_DIPNAME( 0x08, 0x00, "Coin 3 Inhibit?" )PORT_DIPLOCATION("DIL:04") |
| 2926 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2927 | | PORT_DIPSETTING( 0x08, DEF_STR( Yes ) ) |
| 2928 | | PORT_DIPNAME( 0x10, 0x00, "Coin 4 Inhibit?" )PORT_DIPLOCATION("DIL:05") |
| 2929 | | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) |
| 2930 | | PORT_DIPSETTING( 0x10, DEF_STR( Yes ) ) |
| 2931 | | |
| 2932 | | PORT_START_TAG("STROBE10") |
| 2933 | | PORT_DIPNAME( 0x01, 0x00, "DIL06" ) PORT_DIPLOCATION("DIL:06") |
| 2934 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2935 | | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2936 | | PORT_DIPNAME( 0x02, 0x00, "DIL07" ) PORT_DIPLOCATION("DIL:07") |
| 2937 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2938 | | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 2939 | | PORT_DIPNAME( 0x04, 0x00, "DIL08" ) PORT_DIPLOCATION("DIL:08") |
| 2940 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2941 | | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 2942 | | PORT_DIPNAME( 0x08, 0x00, "DIL10" ) PORT_DIPLOCATION("DIL:10") |
| 2943 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2944 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 2945 | | PORT_DIPNAME( 0x10, 0x00, "Coin Jam Alarm" )PORT_DIPLOCATION("DIL:11") |
| 2192 | PORT_MODIFY("STROBE10") |
| 2193 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x00, "DIL:!06" ) |
| 2194 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "DIL:!07" ) |
| 2195 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "DIL:!08" ) |
| 2196 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "DIL:!10" ) |
| 2197 | PORT_DIPNAME( 0x10, 0x00, "Coin Jam Alarm" )PORT_DIPLOCATION("DIL:!11") |
| 2946 | 2198 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 2947 | 2199 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2948 | 2200 | |
| 2949 | | PORT_START_TAG("STROBE11") |
| 2950 | | PORT_DIPNAME( 0x01, 0x01, "Time bar" ) PORT_DIPLOCATION("DIL:12") |
| 2201 | PORT_MODIFY("STROBE11") |
| 2202 | PORT_DIPNAME( 0x01, 0x00, "Time bar" ) PORT_DIPLOCATION("DIL:!12") |
| 2951 | 2203 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2952 | 2204 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 2953 | | PORT_DIPNAME( 0x02, 0x00, "DIL13" ) PORT_DIPLOCATION("DIL:13") |
| 2205 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "DIL:!13" ) |
| 2206 | PORT_DIPNAME( 0x04, 0x00, "Attract mode" )PORT_DIPLOCATION("DIL:!14") |
| 2954 | 2207 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2955 | | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 2956 | | PORT_DIPNAME( 0x04, 0x04, "Attract mode" )PORT_DIPLOCATION("DIL:14") |
| 2957 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 2958 | 2208 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 2959 | | PORT_DIPNAME( 0x18, 0x00, "Timebar speed" )PORT_DIPLOCATION("DIL:15,16") |
| 2209 | PORT_DIPNAME( 0x18, 0x00, "Timebar speed" )PORT_DIPLOCATION("DIL:!15,!16") |
| 2960 | 2210 | PORT_DIPSETTING( 0x00, "0" ) |
| 2961 | 2211 | PORT_DIPSETTING( 0x08, "1" ) |
| 2962 | 2212 | PORT_DIPSETTING( 0x10, "2" ) |
| 2963 | 2213 | PORT_DIPSETTING( 0x18, "3" ) |
| 2964 | | |
| 2965 | 2214 | INPUT_PORTS_END |
| 2966 | 2215 | |
| 2967 | 2216 | static const struct upd7759_interface upd7759_interface = |
| r2018 | r2019 | |
| 3364 | 2613 | GAMEL( 1993, qntoondo, qntoond, scorpion2_vid, qntoond, adder_dutch,0, "BFM/ELAM", "Quintoon (Dutch, Game Card 95-750-136)", GAME_SUPPORTS_SAVE,layout_quintoon ) |
| 3365 | 2614 | GAMEL( 1993, quintoon, 0, scorpion2_vid, quintoon, quintoon, 0, "BFM", "Quintoon (UK, Game Card 95-750-206)", GAME_SUPPORTS_SAVE|GAME_IMPERFECT_SOUND,layout_quintoon ) //Current samples need verification |
| 3366 | 2615 | GAMEL( 1993, quintond, quintoon, scorpion2_vid, quintoon, quintoon, 0, "BFM", "Quintoon (UK, Game Card 95-751-206, Datapak)",GAME_SUPPORTS_SAVE|GAME_IMPERFECT_SOUND|GAME_NOT_WORKING,layout_quintoon ) //Current samples need verification |
| 3367 | | GAMEL( 1993, quintono, quintoon, scorpion2_vid, quintono, quintoon, 0, "BFM", "Quintoon (UK, Game Card 95-750-203)", GAME_SUPPORTS_SAVE|GAME_IMPERFECT_SOUND,layout_quintoon ) //Current samples need verification |
| 2616 | GAMEL( 1993, quintono, quintoon, scorpion2_vid, quintoon, quintoon, 0, "BFM", "Quintoon (UK, Game Card 95-750-203)", GAME_SUPPORTS_SAVE|GAME_IMPERFECT_SOUND,layout_quintoon ) //Current samples need verification |
| 3368 | 2617 | GAMEL( 1993, qntoond, 0, scorpion2_vid, qntoond, adder_dutch,0, "BFM/ELAM", "Quintoon (Dutch, Game Card 95-750-243)", GAME_SUPPORTS_SAVE,layout_quintoon ) |
| 3369 | 2618 | GAMEL( 1994, pokio, 0, scorpion2_vid, pokio, adder_dutch,0, "BFM/ELAM", "Pokio (Dutch, Game Card 95-750-278)", GAME_SUPPORTS_SAVE,layout_pokio ) |
| 3370 | 2619 | GAMEL( 1995, slotsnl, 0, scorpion2_vid, slotsnl, adder_dutch,0, "BFM/ELAM", "Slots (Dutch, Game Card 95-750-368)", GAME_SUPPORTS_SAVE,layout_slots ) |
src/mame/drivers/8080bw.c
| r2018 | r2019 | |
| 118 | 118 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 119 | 119 | |
| 120 | 120 | PORT_START_TAG("DSW0") |
| 121 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 121 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 122 | 122 | PORT_DIPSETTING( 0x00, "3" ) |
| 123 | 123 | PORT_DIPSETTING( 0x01, "4" ) |
| 124 | 124 | PORT_DIPSETTING( 0x02, "5" ) |
| 125 | 125 | PORT_DIPSETTING( 0x03, "6" ) |
| 126 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) PORT_DIPLOCATION("SW1:3") |
| 127 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") |
| 126 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) PORT_DIPLOCATION("SW1:3") |
| 127 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") |
| 128 | 128 | PORT_DIPSETTING( 0x08, "1000" ) |
| 129 | 129 | PORT_DIPSETTING( 0x00, "1500" ) |
| 130 | 130 | /* SW1:5,6,7: In OFF, PL2 can have no control of joystick, going auto left/right and other problems like no laser gun. |
| 131 | 131 | Be sure these are always ON */ |
| 132 | 132 | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) PORT_DIPLOCATION("SW1:5,6,7") /* Labeled as "FACTORY" */ |
| 133 | | PORT_DIPNAME( 0x80, 0x00, "Coin Info" ) PORT_DIPLOCATION("SW1:8") |
| 133 | PORT_DIPNAME( 0x80, 0x00, "Coin Info" ) PORT_DIPLOCATION("SW1:8") |
| 134 | 134 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 135 | 135 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 136 | 136 | |
| 137 | 137 | /* Dummy controls port, P1 */ |
| 138 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 139 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 140 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 141 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 142 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 138 | INVADERS_CONTROL_PORT_P1 |
| 143 | 139 | |
| 144 | 140 | /* Dummy controls port, P2 */ |
| 145 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 146 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 147 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 148 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 149 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 141 | INVADERS_CONTROL_PORT_P2 |
| 150 | 142 | |
| 151 | 143 | /* Dummy port for cocktail mode */ |
| 152 | | PORT_START_TAG(INVADERS_CAB_TYPE_PORT_TAG) |
| 153 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 154 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 155 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 144 | INVADERS_CAB_TYPE_PORT |
| 156 | 145 | INPUT_PORTS_END |
| 157 | 146 | |
| 158 | 147 | /*******************************************************/ |
| r2018 | r2019 | |
| 164 | 153 | /* same as the CV version with a test mode switch */ |
| 165 | 154 | |
| 166 | 155 | static INPUT_PORTS_START( sitv ) |
| 167 | | PORT_START_TAG("IN0") |
| 156 | PORT_INCLUDE( sicv ) |
| 157 | |
| 158 | PORT_MODIFY("IN0") |
| 168 | 159 | PORT_SERVICE( 0x01, IP_ACTIVE_LOW ) |
| 169 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 170 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 171 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 172 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 173 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 174 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 175 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 176 | 160 | |
| 177 | | PORT_START_TAG("IN1") |
| 178 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 179 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 180 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 181 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 182 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 183 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 184 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 161 | PORT_MODIFY("IN1") |
| 185 | 162 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 186 | | |
| 187 | | PORT_START_TAG("DSW0") |
| 188 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 189 | | PORT_DIPSETTING( 0x00, "3" ) |
| 190 | | PORT_DIPSETTING( 0x01, "4" ) |
| 191 | | PORT_DIPSETTING( 0x02, "5" ) |
| 192 | | PORT_DIPSETTING( 0x03, "6" ) |
| 193 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) PORT_DIPLOCATION("SW1:3") |
| 194 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") |
| 195 | | PORT_DIPSETTING( 0x08, "1000" ) |
| 196 | | PORT_DIPSETTING( 0x00, "1500" ) |
| 197 | | /* SW1:5,6,7: In OFF, PL2 can have no control of joystick, going auto left/right and other problems like no laser gun. |
| 198 | | Be sure these are always ON */ |
| 199 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) PORT_DIPLOCATION("SW1:5,6,7") /* Labeled as "FACTORY" */ |
| 200 | | PORT_DIPNAME( 0x80, 0x00, "Coin Info" ) PORT_DIPLOCATION("SW1:8") |
| 201 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 202 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 203 | | |
| 204 | | /* Dummy controls port, P1 */ |
| 205 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 206 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 207 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 208 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 209 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 210 | | |
| 211 | | /* Dummy controls port, P2 */ |
| 212 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 213 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 214 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 215 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 216 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 217 | | |
| 218 | | /* Dummy port for cocktail mode */ |
| 219 | | PORT_START_TAG(INVADERS_CAB_TYPE_PORT_TAG) |
| 220 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 221 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 222 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 223 | 163 | INPUT_PORTS_END |
| 224 | 164 | |
| 225 | 165 | /*******************************************************/ |
| r2018 | r2019 | |
| 229 | 169 | /*******************************************************/ |
| 230 | 170 | |
| 231 | 171 | static INPUT_PORTS_START( invadrmr ) |
| 232 | | PORT_START_TAG("IN0") |
| 233 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 234 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 235 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 236 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 237 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 238 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 239 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 240 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 172 | PORT_INCLUDE( sicv ) |
| 241 | 173 | |
| 242 | | PORT_START_TAG("IN1") |
| 243 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 244 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 245 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 246 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 247 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 248 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 249 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 250 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 251 | | |
| 252 | | PORT_START_TAG("DSW0") |
| 253 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 254 | | PORT_DIPSETTING( 0x00, "3" ) |
| 255 | | PORT_DIPSETTING( 0x01, "4" ) |
| 256 | | PORT_DIPSETTING( 0x02, "5" ) |
| 257 | | PORT_DIPSETTING( 0x03, "6" ) |
| 258 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) PORT_DIPLOCATION("SW1:3") |
| 174 | PORT_MODIFY("DSW0") |
| 259 | 175 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") |
| 260 | 176 | PORT_DIPSETTING( 0x00, "1500" ) |
| 261 | 177 | PORT_DIPSETTING( 0x08, "3000" ) /* This is different to invaders */ |
| 262 | | /* SW1:5,6,7: In OFF, PL2 can have no control of joystick, going auto left/right and other problems like no laser gun. |
| 263 | | Be sure these are always ON */ |
| 264 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) PORT_DIPLOCATION("SW1:5,6,7") /* Labeled as "FACTORY" */ |
| 265 | | PORT_DIPNAME( 0x80, 0x00, "Coin Info" ) PORT_DIPLOCATION("SW1:8") |
| 266 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 267 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 268 | | |
| 269 | | /* Dummy controls port, P1 */ |
| 270 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 271 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 272 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 273 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 274 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 275 | | |
| 276 | | /* Dummy controls port, P2 */ |
| 277 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 278 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 279 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 280 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 281 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 282 | | |
| 283 | | /* Dummy port for cocktail mode */ |
| 284 | | PORT_START_TAG(INVADERS_CAB_TYPE_PORT_TAG) |
| 285 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 286 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 287 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 288 | 178 | INPUT_PORTS_END |
| 289 | 179 | |
| 290 | 180 | /*******************************************************/ |
| r2018 | r2019 | |
| 304 | 194 | ADDRESS_MAP_END |
| 305 | 195 | |
| 306 | 196 | static INPUT_PORTS_START( invadpt2 ) |
| 307 | | PORT_START_TAG("IN0") |
| 308 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 309 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 310 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 311 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 312 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 313 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 197 | PORT_INCLUDE( sicv ) |
| 198 | |
| 199 | PORT_MODIFY("IN0") |
| 314 | 200 | // Name Reset - if name of high scorer was rude, owner can press this button |
| 315 | 201 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Name Reset") PORT_CODE(KEYCODE_F1) |
| 316 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 317 | 202 | |
| 318 | | PORT_START_TAG("IN1") |
| 319 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 320 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 321 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 322 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 323 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 324 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 325 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 203 | PORT_MODIFY("IN1") |
| 326 | 204 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 327 | 205 | |
| 328 | | PORT_START_TAG("DSW0") |
| 206 | PORT_MODIFY("DSW0") |
| 329 | 207 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 330 | 208 | PORT_DIPSETTING( 0x00, "3" ) |
| 331 | 209 | PORT_DIPSETTING( 0x01, "4" ) |
| r2018 | r2019 | |
| 333 | 211 | PORT_DIPNAME( 0x02, 0x00, "Rotate Images" ) PORT_DIPLOCATION("SW1:2") /* "When ON, the images on screen will be rotated. Default is ON." */ |
| 334 | 212 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 335 | 213 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 336 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) PORT_DIPLOCATION("SW1:3") |
| 337 | 214 | PORT_DIPNAME( 0x08, 0x00, "Preset Mode" ) PORT_DIPLOCATION("SW1:4") /* Preset Mode: "Switch for checking, when OFF checking can be done." */ |
| 338 | 215 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 339 | 216 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 340 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) PORT_DIPLOCATION("SW1:5,6,7") |
| 341 | | PORT_DIPNAME( 0x80, 0x00, "Coin Info" ) PORT_DIPLOCATION("SW1:8") |
| 342 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 343 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 344 | | |
| 345 | | /* Dummy controls port, P1 */ |
| 346 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 347 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 348 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 349 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 350 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 351 | | |
| 352 | | /* Dummy controls port, P2 */ |
| 353 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 354 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 355 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 356 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 357 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 358 | | |
| 359 | | /* Dummy port for cocktail mode */ |
| 360 | | PORT_START_TAG(INVADERS_CAB_TYPE_PORT_TAG) |
| 361 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 362 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 363 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 364 | 217 | INPUT_PORTS_END |
| 365 | 218 | |
| 366 | 219 | |
| r2018 | r2019 | |
| 398 | 251 | |
| 399 | 252 | |
| 400 | 253 | static INPUT_PORTS_START( spcewars ) |
| 401 | | PORT_START_TAG("IN0") |
| 402 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 403 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 404 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 405 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 406 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 407 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 408 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 409 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 254 | PORT_INCLUDE( sicv ) |
| 410 | 255 | |
| 411 | | PORT_START_TAG("IN1") |
| 412 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 413 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 414 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 415 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 416 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 417 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 418 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 256 | PORT_MODIFY("IN1") |
| 419 | 257 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 420 | 258 | |
| 421 | | PORT_START_TAG("DSW0") |
| 422 | | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) |
| 259 | PORT_MODIFY("DSW0") |
| 260 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 423 | 261 | PORT_DIPSETTING( 0x00, "3" ) |
| 424 | 262 | PORT_DIPSETTING( 0x01, "4" ) |
| 425 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 426 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) |
| 427 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) |
| 263 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "SW1:2" ) |
| 264 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") |
| 428 | 265 | PORT_DIPSETTING( 0x00, "1500" ) |
| 429 | 266 | PORT_DIPSETTING( 0x08, "2000" ) |
| 430 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) |
| 431 | | PORT_DIPNAME( 0x80, 0x00, "Coin Info" ) |
| 432 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 433 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 434 | 267 | |
| 435 | | /* Dummy controls port, P1 */ |
| 436 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 437 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 438 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 439 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 440 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 441 | | |
| 442 | | /* Dummy controls port, P2 */ |
| 443 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 444 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 445 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 446 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 447 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 448 | | |
| 449 | | PORT_START_TAG(INVADERS_CAB_TYPE_PORT_TAG) /* Dummy port for cocktail mode (not used) */ |
| 268 | /* Dummy port for cocktail mode (not used) */ |
| 269 | PORT_MODIFY(INVADERS_CAB_TYPE_PORT_TAG) |
| 450 | 270 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 451 | 271 | INPUT_PORTS_END |
| 452 | 272 | |
| r2018 | r2019 | |
| 492 | 312 | |
| 493 | 313 | |
| 494 | 314 | static INPUT_PORTS_START( cosmo ) |
| 495 | | PORT_START_TAG("IN0") |
| 496 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 497 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 498 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 499 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 500 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 501 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 502 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 503 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 315 | PORT_INCLUDE( sicv ) |
| 504 | 316 | |
| 505 | | PORT_START_TAG("IN1") |
| 506 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 507 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 508 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 509 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 510 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 511 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 512 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 317 | PORT_MODIFY("IN1") |
| 513 | 318 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 514 | 319 | |
| 515 | | PORT_START_TAG("DSW0") |
| 516 | | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) |
| 320 | PORT_MODIFY("DSW0") |
| 321 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 517 | 322 | PORT_DIPSETTING( 0x00, "3" ) |
| 518 | 323 | PORT_DIPSETTING( 0x01, "5" ) |
| 519 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 520 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 521 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 522 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) |
| 523 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* must be HIGH normally or the joystick won't work */ |
| 524 | | |
| 525 | | /* Dummy controls port, P1 */ |
| 526 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 527 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 528 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 529 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 530 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 531 | | |
| 532 | | /* Dummy controls port, P2 */ |
| 533 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 534 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 535 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 536 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 537 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 538 | | |
| 539 | | /* Dummy port for cocktail mode */ |
| 540 | | PORT_START_TAG(INVADERS_CAB_TYPE_PORT_TAG) |
| 541 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 542 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 543 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 324 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "SW1:2" ) |
| 325 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| 326 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "SW1:4" ) |
| 327 | PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "SW1:8" ) /* must be HIGH normally or the joystick won't work */ |
| 544 | 328 | INPUT_PORTS_END |
| 545 | 329 | |
| 546 | 330 | static MACHINE_DRIVER_START( cosmo ) |
| r2018 | r2019 | |
| 566 | 350 | /*******************************************************/ |
| 567 | 351 | |
| 568 | 352 | static INPUT_PORTS_START( searthin ) |
| 569 | | PORT_START_TAG("IN0") |
| 570 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 571 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 572 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 573 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 574 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 575 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 576 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 577 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 353 | PORT_INCLUDE( sicv ) |
| 578 | 354 | |
| 579 | | PORT_START_TAG("IN1") |
| 580 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 581 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 582 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 583 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 584 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 585 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 586 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 355 | PORT_MODIFY("IN1") |
| 587 | 356 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 588 | 357 | |
| 589 | | PORT_START_TAG("DSW0") |
| 590 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) |
| 358 | PORT_MODIFY("DSW0") |
| 359 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 591 | 360 | PORT_DIPSETTING( 0x00, "2" ) |
| 592 | 361 | PORT_DIPSETTING( 0x01, "3" ) |
| 593 | | PORT_DIPNAME( 0x02, 0x02, "Pence Coinage" ) |
| 362 | PORT_DIPNAME( 0x02, 0x02, "Pence Coinage" ) PORT_DIPLOCATION("SW1:2") |
| 594 | 363 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 595 | 364 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 596 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 ) /* Pence Coin */ |
| 597 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) /* Not bonus */ |
| 598 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 599 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 600 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) |
| 601 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coinage ) ) |
| 365 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_DIPLOCATION("SW1:3") /* Pence Coin */ |
| 366 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "SW1:4" ) /* Not bonus */ |
| 367 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:8") |
| 602 | 368 | PORT_DIPSETTING( 0x00, "2C/1C 50p/3C (+ Bonus Life)" ) |
| 603 | 369 | PORT_DIPSETTING( 0x80, "1C/1C 50p/5C" ) |
| 604 | | |
| 605 | | /* Dummy controls port, P1 */ |
| 606 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 607 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 608 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 609 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 610 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 611 | | |
| 612 | | /* Dummy controls port, P2 */ |
| 613 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 614 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 615 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 616 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 617 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 618 | | |
| 619 | | /* Dummy port for cocktail mode */ |
| 620 | | PORT_START_TAG(INVADERS_CAB_TYPE_PORT_TAG) |
| 621 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 622 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 623 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 624 | 370 | INPUT_PORTS_END |
| 625 | 371 | |
| 626 | 372 | |
| r2018 | r2019 | |
| 631 | 377 | /*******************************************************/ |
| 632 | 378 | |
| 633 | 379 | static INPUT_PORTS_START( spaceatt ) |
| 634 | | PORT_START_TAG("IN0") |
| 635 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 636 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 637 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 638 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 639 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 640 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 641 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 642 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 380 | PORT_INCLUDE( sicv ) |
| 643 | 381 | |
| 644 | | PORT_START_TAG("IN1") |
| 645 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 646 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 647 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 648 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 649 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 650 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 651 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 652 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 653 | | |
| 654 | | PORT_START_TAG("DSW0") |
| 655 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 656 | | PORT_DIPSETTING( 0x00, "3" ) |
| 657 | | PORT_DIPSETTING( 0x01, "4" ) |
| 658 | | PORT_DIPSETTING( 0x02, "5" ) |
| 659 | | PORT_DIPSETTING( 0x03, "6" ) |
| 660 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) |
| 661 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) |
| 662 | | PORT_DIPSETTING( 0x08, "1000" ) |
| 663 | | PORT_DIPSETTING( 0x00, "1500" ) |
| 664 | | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) |
| 665 | | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 666 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 667 | | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) |
| 668 | | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 669 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 670 | | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) |
| 671 | | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 672 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 673 | | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) ) |
| 382 | PORT_MODIFY("DSW0") |
| 383 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x00, "SW1:5" ) |
| 384 | PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x00, "SW1:6" ) |
| 385 | PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x00, "SW1:7" ) |
| 386 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:8") |
| 674 | 387 | PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) |
| 675 | 388 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 676 | 389 | |
| 677 | | PORT_START_TAG(INVADERS_CAB_TYPE_PORT_TAG) /* Dummy port for cocktail mode (not used) */ |
| 390 | /* Dummy port for cocktail mode (not used) */ |
| 391 | PORT_MODIFY(INVADERS_CAB_TYPE_PORT_TAG) |
| 678 | 392 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 679 | 393 | INPUT_PORTS_END |
| 680 | 394 | |
| r2018 | r2019 | |
| 716 | 430 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 717 | 431 | |
| 718 | 432 | PORT_START_TAG("DSW0") |
| 719 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 433 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 720 | 434 | PORT_DIPSETTING( 0x00, "3" ) |
| 721 | 435 | PORT_DIPSETTING( 0x01, "4" ) |
| 722 | 436 | PORT_DIPSETTING( 0x02, "5" ) |
| 723 | 437 | PORT_DIPSETTING( 0x03, "6" ) |
| 724 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) |
| 725 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) |
| 726 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 727 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 728 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 729 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 730 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 731 | | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) ) |
| 438 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) PORT_DIPLOCATION("SW1:3") |
| 439 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "SW1:4" ) |
| 440 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_DIPLOCATION("SW1:5") |
| 441 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) PORT_DIPLOCATION("SW1:6") |
| 442 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) PORT_DIPLOCATION("SW1:7") |
| 443 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:8") |
| 732 | 444 | PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) |
| 733 | 445 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 734 | 446 | |
| 735 | | PORT_START_TAG(CABINET_PORT_TAG) |
| 736 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 737 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 738 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 447 | /* Dummy port for cocktail mode */ |
| 448 | INVADERS_CAB_TYPE_PORT |
| 739 | 449 | INPUT_PORTS_END |
| 740 | 450 | |
| 741 | 451 | |
| r2018 | r2019 | |
| 759 | 469 | /*******************************************************/ |
| 760 | 470 | |
| 761 | 471 | static INPUT_PORTS_START( spclaser ) |
| 762 | | PORT_START_TAG("IN0") |
| 763 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 764 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 765 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 766 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 767 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 768 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 769 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 770 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 472 | PORT_INCLUDE( invrvnge ) |
| 771 | 473 | |
| 772 | | PORT_START_TAG("IN1") |
| 474 | PORT_MODIFY("IN1") |
| 773 | 475 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 774 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2) /* This is not 2 Player ??? */ |
| 775 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 776 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 777 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 778 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 779 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 476 | //PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2) /* This is not 2 Player ??? */ |
| 780 | 477 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 781 | 478 | |
| 782 | | PORT_START_TAG("DSW0") |
| 783 | | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) |
| 784 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 785 | | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 786 | | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) |
| 787 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 788 | | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 789 | | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) |
| 790 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 791 | | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 792 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) |
| 793 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 794 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 795 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 796 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 797 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 798 | | PORT_DIPNAME( 0x80, 0x00, DEF_STR(Coinage) ) |
| 799 | | PORT_DIPSETTING( 0x00, "1 Coin/1 or 2 Players" ) |
| 479 | PORT_MODIFY("DSW0") |
| 480 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x00, "SW1:1" ) |
| 481 | PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x00, "SW1:2" ) |
| 482 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| 483 | PORT_DIPNAME( 0x80, 0x00, DEF_STR(Coinage) ) PORT_DIPLOCATION("SW1:8") |
| 484 | PORT_DIPSETTING( 0x00, "1 Coin/1 Or 2 Players" ) |
| 800 | 485 | PORT_DIPSETTING( 0x80, "1 Coin/1 Player 2 Coins/2 Players" ) /* Irrelevant, causes bugs */ |
| 801 | 486 | |
| 802 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode (not used) */ |
| 487 | /* Dummy port for cocktail mode (not used) */ |
| 488 | PORT_MODIFY(CABINET_PORT_TAG) |
| 803 | 489 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 804 | 490 | INPUT_PORTS_END |
| 805 | 491 | |
| 806 | | /*******************************************************/ |
| 807 | | /* */ |
| 808 | | /* Space War (Leijac) */ |
| 809 | | /* */ |
| 810 | | /*******************************************************/ |
| 811 | 492 | |
| 812 | | static INPUT_PORTS_START( spcewarl ) |
| 813 | | PORT_START_TAG("IN0") |
| 814 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 815 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 816 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 817 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 818 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 819 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 820 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 821 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 822 | | |
| 823 | | PORT_START_TAG("IN1") |
| 824 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 825 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 826 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 827 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 828 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 829 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 830 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 831 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 832 | | |
| 833 | | PORT_START_TAG("DSW0") |
| 834 | | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) |
| 835 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 836 | | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 837 | | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) |
| 838 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 839 | | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 840 | | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) |
| 841 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 842 | | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 843 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) |
| 844 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 845 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 846 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 847 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 848 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 849 | | PORT_DIPNAME( 0x80, 0x00, DEF_STR(Coinage) ) |
| 850 | | PORT_DIPSETTING( 0x00, "1 Coin/1 or 2 Players" ) |
| 851 | | PORT_DIPSETTING( 0x80, "1 Coin/1 Player 2 Coins/2 Players" ) |
| 852 | | |
| 853 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode (not used) */ |
| 854 | | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 855 | | INPUT_PORTS_END |
| 856 | | |
| 857 | | |
| 858 | 493 | /*******************************************************/ |
| 859 | 494 | /* */ |
| 860 | 495 | /* Taito "Galaxy Wars" */ |
| r2018 | r2019 | |
| 862 | 497 | /*******************************************************/ |
| 863 | 498 | |
| 864 | 499 | static INPUT_PORTS_START( galxwars ) |
| 865 | | PORT_START_TAG("IN0") |
| 866 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 867 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 868 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 869 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 870 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 871 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 500 | PORT_INCLUDE( sicv ) |
| 501 | |
| 502 | PORT_MODIFY("IN0") |
| 872 | 503 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* must be IP_ACTIVE_LOW for Universal Sets */ |
| 873 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 874 | 504 | |
| 875 | | PORT_START_TAG("IN1") |
| 876 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 877 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 878 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 879 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 880 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 881 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 882 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 505 | PORT_MODIFY("IN1") |
| 883 | 506 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 884 | 507 | |
| 885 | | PORT_START_TAG("DSW0") |
| 886 | | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) |
| 508 | PORT_MODIFY("DSW0") |
| 509 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 887 | 510 | PORT_DIPSETTING( 0x00, "2" ) |
| 888 | 511 | PORT_DIPSETTING( 0x01, "3" ) |
| 889 | 512 | PORT_DIPSETTING( 0x02, "4" ) |
| 890 | 513 | PORT_DIPSETTING( 0x03, "5" ) |
| 891 | | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) |
| 892 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 893 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 894 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) |
| 514 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| 515 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") |
| 895 | 516 | PORT_DIPSETTING( 0x00, "3000" ) |
| 896 | 517 | PORT_DIPSETTING( 0x08, "5000" ) |
| 897 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) |
| 898 | | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) ) |
| 518 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:8") |
| 899 | 519 | PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) |
| 900 | 520 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 901 | | |
| 902 | | /* Dummy controls port, P1 */ |
| 903 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 904 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 905 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 906 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 907 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 908 | | |
| 909 | | /* Dummy controls port, P2 */ |
| 910 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 911 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 912 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 913 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 914 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 915 | | |
| 916 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 917 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 918 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 919 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 920 | 521 | INPUT_PORTS_END |
| 921 | 522 | |
| 922 | 523 | |
| r2018 | r2019 | |
| 937 | 538 | |
| 938 | 539 | |
| 939 | 540 | static INPUT_PORTS_START( lrescue ) |
| 940 | | PORT_START_TAG("IN0") |
| 941 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 942 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 943 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 944 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 945 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 946 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 947 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 948 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 541 | PORT_INCLUDE( sicv ) |
| 949 | 542 | |
| 950 | | PORT_START_TAG("IN1") |
| 951 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 952 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 953 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 954 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 955 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 956 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 957 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 543 | PORT_MODIFY("IN1") |
| 958 | 544 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 959 | 545 | |
| 960 | | PORT_START_TAG("DSW0") |
| 961 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 962 | | PORT_DIPSETTING( 0x00, "3" ) |
| 963 | | PORT_DIPSETTING( 0x01, "4" ) |
| 964 | | PORT_DIPSETTING( 0x02, "5" ) |
| 965 | | PORT_DIPSETTING( 0x03, "6" ) |
| 546 | PORT_MODIFY("DSW0") |
| 966 | 547 | /* SW1:3-8 Unused according to manual: "Factory Adjustments". Default is ON. */ |
| 967 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) PORT_DIPLOCATION("SW1:3") |
| 968 | 548 | PORT_DIPUNUSED_DIPLOC( 0x08, 0x00, "SW1:4" ) |
| 969 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) PORT_DIPLOCATION("SW1:5,6,7") |
| 970 | 549 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x00, "SW1:8" ) |
| 971 | | |
| 972 | | /* Dummy controls port, P1 */ |
| 973 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 974 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 975 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 976 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 977 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 978 | | |
| 979 | | /* Dummy controls port, P2 */ |
| 980 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 981 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 982 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 983 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 984 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 985 | | |
| 986 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 987 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 988 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 989 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 990 | 550 | INPUT_PORTS_END |
| 991 | 551 | |
| 992 | 552 | static MACHINE_DRIVER_START( lrescue ) |
| r2018 | r2019 | |
| 1020 | 580 | /*******************************************************/ |
| 1021 | 581 | |
| 1022 | 582 | static INPUT_PORTS_START( cosmicmo ) |
| 1023 | | PORT_START_TAG("IN0") |
| 1024 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1025 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1026 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1027 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1028 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1029 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1030 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1031 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 583 | PORT_INCLUDE( sicv ) |
| 1032 | 584 | |
| 1033 | | PORT_START_TAG("IN1") |
| 1034 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1035 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1036 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 1037 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1038 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1039 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1040 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 585 | PORT_MODIFY("IN1") |
| 1041 | 586 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1042 | 587 | |
| 1043 | | PORT_START_TAG("DSW0") |
| 1044 | | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) |
| 588 | PORT_MODIFY("DSW0") |
| 589 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 1045 | 590 | PORT_DIPSETTING( 0x00, "2" ) |
| 1046 | 591 | PORT_DIPSETTING( 0x01, "3" ) |
| 1047 | 592 | PORT_DIPSETTING( 0x02, "4" ) |
| 1048 | 593 | PORT_DIPSETTING( 0x03, "5" ) |
| 1049 | | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) |
| 1050 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1051 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1052 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) |
| 1053 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 1054 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1055 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) |
| 1056 | | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) ) |
| 594 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| 595 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "SW1:4" ) |
| 596 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:8") |
| 1057 | 597 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 1058 | 598 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) |
| 1059 | | |
| 1060 | | /* Dummy controls port, P1 */ |
| 1061 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 1062 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 1063 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 1064 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 1065 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1066 | | |
| 1067 | | /* Dummy controls port, P2 */ |
| 1068 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 1069 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1070 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 1071 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 1072 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1073 | | |
| 1074 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 1075 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1076 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 1077 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1078 | 599 | INPUT_PORTS_END |
| 1079 | 600 | |
| 1080 | 601 | |
| r2018 | r2019 | |
| 1085 | 606 | /*******************************************************/ |
| 1086 | 607 | |
| 1087 | 608 | static INPUT_PORTS_START( invasion ) |
| 1088 | | PORT_START_TAG("IN0") |
| 1089 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1090 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1091 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1092 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1093 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1094 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1095 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1096 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 609 | PORT_INCLUDE( sicv ) |
| 1097 | 610 | |
| 1098 | | PORT_START_TAG("IN1") |
| 1099 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1100 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1101 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 1102 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1103 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1104 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1105 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 611 | PORT_MODIFY("IN1") |
| 1106 | 612 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 1107 | 613 | |
| 1108 | | PORT_START_TAG("DSW0") |
| 614 | PORT_MODIFY("DSW0") |
| 1109 | 615 | /* SW1:5-8 Unused according to manual. */ |
| 1110 | | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:3,4") /* Default is OFF, OFF (6) */ |
| 616 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:4,3") /* Default is OFF, OFF (6) */ |
| 1111 | 617 | PORT_DIPSETTING( 0x00, "3" ) |
| 1112 | 618 | PORT_DIPSETTING( 0x01, "4" ) |
| 1113 | 619 | PORT_DIPSETTING( 0x02, "5" ) |
| 1114 | 620 | PORT_DIPSETTING( 0x03, "6" ) |
| 1115 | | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW1:8" ) /* Default OFF */ |
| 1116 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:2") /* Default is ON (2500) */ |
| 621 | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW1:8" ) /* Default OFF */ |
| 622 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:2") /* Default is ON (2500) */ |
| 1117 | 623 | PORT_DIPSETTING( 0x08, "1500" ) |
| 1118 | 624 | PORT_DIPSETTING( 0x00, "2500" ) |
| 1119 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) PORT_DIPLOCATION("SW1:5,6,7") /* Default ON */ |
| 1120 | | PORT_DIPNAME( 0x80, 0x00, "Laser Bonus Info" ) PORT_DIPLOCATION("SW1:1") /* Default is OFF (Info on) */ |
| 625 | /* SW1:5,6,7 Default ON */ |
| 626 | PORT_DIPNAME( 0x80, 0x80, "Laser Bonus Info" ) PORT_DIPLOCATION("SW1:1") /* Default is OFF (Info on) */ |
| 1121 | 627 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1122 | 628 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1123 | | |
| 1124 | | /* Dummy controls port, P1 */ |
| 1125 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 1126 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 1127 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 1128 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 1129 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1130 | | |
| 1131 | | /* Dummy controls port, P2 */ |
| 1132 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 1133 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1134 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 1135 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 1136 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1137 | | |
| 1138 | | PORT_START_TAG(INVADERS_CAB_TYPE_PORT_TAG) /* Dummy port for cocktail mode */ |
| 1139 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1140 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 1141 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1142 | 629 | INPUT_PORTS_END |
| 1143 | 630 | |
| 1144 | 631 | |
| r2018 | r2019 | |
| 1149 | 636 | /*******************************************************/ |
| 1150 | 637 | |
| 1151 | 638 | static INPUT_PORTS_START( superinv ) |
| 1152 | | PORT_START_TAG("IN0") |
| 1153 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1154 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1155 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1156 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1157 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1158 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1159 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1160 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 639 | PORT_INCLUDE( sicv ) |
| 1161 | 640 | |
| 1162 | | PORT_START_TAG("IN1") |
| 641 | PORT_MODIFY("IN1") |
| 1163 | 642 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1164 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1165 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 1166 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1167 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1168 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1169 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 1170 | 643 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 1171 | 644 | |
| 1172 | | PORT_START_TAG("DSW0") |
| 1173 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 1174 | | PORT_DIPSETTING( 0x00, "3" ) |
| 1175 | | PORT_DIPSETTING( 0x01, "4" ) |
| 1176 | | PORT_DIPSETTING( 0x02, "5" ) |
| 1177 | | PORT_DIPSETTING( 0x03, "6" ) |
| 1178 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1179 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) |
| 645 | PORT_MODIFY("DSW0") |
| 646 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| 647 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") |
| 1180 | 648 | PORT_DIPSETTING( 0x08, "1500" ) |
| 1181 | 649 | PORT_DIPSETTING( 0x00, "2500" ) |
| 1182 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) |
| 1183 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1184 | | |
| 1185 | | /* Dummy controls port, P1 */ |
| 1186 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 1187 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 1188 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 1189 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 1190 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1191 | | |
| 1192 | | /* Dummy controls port, P2 */ |
| 1193 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 1194 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1195 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 1196 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 1197 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1198 | | |
| 1199 | | PORT_START_TAG(INVADERS_CAB_TYPE_PORT_TAG) /* Dummy port for cocktail mode */ |
| 1200 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1201 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 1202 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 650 | PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x00, "SW1:8" ) |
| 1203 | 651 | INPUT_PORTS_END |
| 1204 | 652 | |
| 1205 | 653 | |
| r2018 | r2019 | |
| 1228 | 676 | |
| 1229 | 677 | |
| 1230 | 678 | static INPUT_PORTS_START( rollingc ) |
| 1231 | | PORT_START_TAG("IN0") |
| 1232 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 679 | PORT_INCLUDE( sicv ) |
| 1233 | 680 | |
| 681 | PORT_MODIFY("IN0") |
| 1234 | 682 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) /* Game Select */ |
| 1235 | 683 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) /* Game Select */ |
| 1236 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1237 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1238 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1239 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1240 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1241 | 684 | |
| 1242 | | PORT_START_TAG("IN0") |
| 685 | PORT_MODIFY("IN1") |
| 1243 | 686 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1244 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1245 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 1246 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1247 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1248 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1249 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 1250 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1251 | 687 | |
| 1252 | | PORT_START_TAG("DSW0") |
| 1253 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 1254 | | PORT_DIPSETTING( 0x00, "3" ) |
| 1255 | | PORT_DIPSETTING( 0x01, "4" ) |
| 1256 | | PORT_DIPSETTING( 0x02, "5" ) |
| 1257 | | PORT_DIPSETTING( 0x03, "6" ) |
| 1258 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) |
| 1259 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) |
| 1260 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 1261 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1262 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) |
| 1263 | | PORT_DIPNAME( 0x80, 0x00, "Coin Info" ) |
| 1264 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1265 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 688 | PORT_MODIFY("DSW0") |
| 689 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "SW1:4" ) |
| 1266 | 690 | |
| 1267 | | /* Dummy controls port, P1 */ |
| 1268 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 1269 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 1270 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 1271 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 1272 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1273 | | |
| 1274 | | /* Dummy controls port, P2 */ |
| 1275 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 1276 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1277 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 1278 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 1279 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1280 | | |
| 1281 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 691 | /* Dummy port for cocktail mode (not used) */ |
| 692 | PORT_MODIFY(CABINET_PORT_TAG) |
| 1282 | 693 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1283 | 694 | INPUT_PORTS_END |
| 1284 | 695 | |
| r2018 | r2019 | |
| 1332 | 743 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(2) |
| 1333 | 744 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_PLAYER(2) |
| 1334 | 745 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1335 | | PORT_DIPNAME(0x20, 0x20, "Dipswitch 5") |
| 1336 | | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 1337 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1338 | | PORT_DIPNAME(0x40, 0x40, "Dipswitch 7") |
| 1339 | | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 1340 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 746 | PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x00, "SW1:5" ) |
| 747 | PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x00, "SW1:7" ) |
| 1341 | 748 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1342 | 749 | |
| 1343 | 750 | PORT_START_TAG("IN1") |
| r2018 | r2019 | |
| 1351 | 758 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1352 | 759 | |
| 1353 | 760 | PORT_START_TAG("DSW0") // port 2 |
| 1354 | | // dipswitch 1 and 2 |
| 1355 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 761 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1,2") |
| 1356 | 762 | PORT_DIPSETTING( 0x00, "3" ) |
| 1357 | 763 | PORT_DIPSETTING( 0x01, "4" ) |
| 1358 | 764 | PORT_DIPSETTING( 0x02, "5" ) |
| 1359 | 765 | PORT_DIPSETTING( 0x03, "6" ) |
| 1360 | | // dipswitch 3 |
| 1361 | | PORT_DIPNAME( 0x04, 0x04, "Dipswitch 3") |
| 1362 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1363 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1364 | | // dipswitch 4 |
| 1365 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Difficulty ) ) |
| 766 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| 767 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:4") |
| 1366 | 768 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 1367 | 769 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) |
| 1368 | 770 | // Name Reset - if name of high scorer was rude, owner can press this button |
| 1369 | 771 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Name Reset") PORT_CODE(KEYCODE_F1) |
| 1370 | 772 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_TILT ) |
| 1371 | | // dipswitch 6 |
| 1372 | | PORT_DIPNAME( 0x40, 0x00, "Number of Controllers" ) |
| 773 | PORT_DIPNAME( 0x40, 0x00, "Number Of Controllers" ) PORT_DIPLOCATION("SW1:6") |
| 1373 | 774 | PORT_DIPSETTING( 0x00, "1" ) |
| 1374 | 775 | PORT_DIPSETTING( 0x40, "2" ) |
| 1375 | 776 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| r2018 | r2019 | |
| 1437 | 838 | |
| 1438 | 839 | |
| 1439 | 840 | static INPUT_PORTS_START( schasrcv ) |
| 1440 | | PORT_START_TAG("IN0") |
| 1441 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1442 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1443 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1444 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1445 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1446 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1447 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1448 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 841 | PORT_INCLUDE( invrvnge ) |
| 1449 | 842 | |
| 1450 | | PORT_START_TAG("IN1") |
| 1451 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1452 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1453 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 843 | PORT_MODIFY("IN1") |
| 1454 | 844 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 1455 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1456 | 845 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 1457 | 846 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 1458 | 847 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1459 | 848 | |
| 1460 | | PORT_START_TAG("DSW0") |
| 1461 | | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) |
| 849 | PORT_MODIFY("DSW0") |
| 850 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:1") |
| 1462 | 851 | PORT_DIPSETTING( 0x00, "3" ) |
| 1463 | 852 | PORT_DIPSETTING( 0x01, "4" ) |
| 1464 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(2) |
| 1465 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(2) |
| 1466 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Difficulty ) ) |
| 853 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(2) PORT_DIPLOCATION("SW1:2") |
| 854 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_PLAYER(2) PORT_DIPLOCATION("SW1:3") |
| 855 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:4") |
| 1467 | 856 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 1468 | 857 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) |
| 1469 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1470 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) |
| 1471 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_PLAYER(2) |
| 1472 | | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) |
| 1473 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1474 | | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1475 | | |
| 1476 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 1477 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1478 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 1479 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 858 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_DIPLOCATION("SW1:5") |
| 859 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(2) PORT_DIPLOCATION("SW1:6") |
| 860 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_PLAYER(2) PORT_DIPLOCATION("SW1:7") |
| 861 | PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x00, "SW1:8" ) |
| 1480 | 862 | INPUT_PORTS_END |
| 1481 | 863 | |
| 1482 | 864 | static MACHINE_DRIVER_START( schasrcv ) |
| r2018 | r2019 | |
| 1588 | 970 | |
| 1589 | 971 | |
| 1590 | 972 | static INPUT_PORTS_START( lupin3 ) |
| 1591 | | PORT_START_TAG("IN0") |
| 1592 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* selects color mode (dynamic vs. static) */ |
| 1593 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* something has to do with sound */ |
| 973 | PORT_INCLUDE( invrvnge ) |
| 974 | |
| 975 | PORT_MODIFY("IN0") |
| 976 | //PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* selects color mode (dynamic vs. static) */ |
| 977 | //PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* something has to do with sound */ |
| 1594 | 978 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) |
| 1595 | 979 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_COCKTAIL |
| 1596 | 980 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL |
| r2018 | r2019 | |
| 1598 | 982 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL |
| 1599 | 983 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL |
| 1600 | 984 | |
| 1601 | | PORT_START_TAG("IN1") |
| 985 | PORT_MODIFY("IN1") |
| 1602 | 986 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1603 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1604 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 1605 | 987 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1606 | 988 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY |
| 1607 | 989 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY |
| 1608 | 990 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY |
| 1609 | 991 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY |
| 1610 | 992 | |
| 1611 | | PORT_START_TAG("DSW0") |
| 1612 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 1613 | | PORT_DIPSETTING( 0x00, "3" ) |
| 1614 | | PORT_DIPSETTING( 0x01, "4" ) |
| 1615 | | PORT_DIPSETTING( 0x02, "5" ) |
| 1616 | | PORT_DIPSETTING( 0x03, "6" ) |
| 1617 | | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) ) |
| 993 | PORT_MODIFY("DSW0") |
| 994 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:3") |
| 1618 | 995 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 1619 | 996 | PORT_DIPSETTING( 0x04, DEF_STR( Cocktail ) ) |
| 1620 | | PORT_DIPNAME( 0x08, 0x00, "Bags to Collect" ) |
| 997 | PORT_DIPNAME( 0x08, 0x00, "Bags To Collect" ) PORT_DIPLOCATION("SW1:4") |
| 1621 | 998 | PORT_DIPSETTING( 0x08, "2" ) |
| 1622 | 999 | PORT_DIPSETTING( 0x00, "8" ) |
| 1623 | | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Language ) ) |
| 1000 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Language ) ) PORT_DIPLOCATION("SW1:5") |
| 1624 | 1001 | PORT_DIPSETTING( 0x00, DEF_STR( English ) ) |
| 1625 | 1002 | PORT_DIPSETTING( 0x10, DEF_STR( Japanese ) ) |
| 1626 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1627 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1628 | | PORT_DIPNAME(0x80, 0x00, "Invulnerability (Cheat)") |
| 1003 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x00, "SW1:6" ) |
| 1004 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x00, "SW1:7" ) |
| 1005 | PORT_DIPNAME(0x80, 0x00, "Invulnerability (Cheat)") PORT_DIPLOCATION("SW1:8") |
| 1629 | 1006 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1630 | 1007 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1631 | 1008 | |
| 1632 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 1009 | /* Dummy port for cocktail mode (not used) */ |
| 1010 | PORT_MODIFY(CABINET_PORT_TAG) |
| 1633 | 1011 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1634 | 1012 | INPUT_PORTS_END |
| 1635 | 1013 | |
| r2018 | r2019 | |
| 1697 | 1075 | |
| 1698 | 1076 | |
| 1699 | 1077 | static INPUT_PORTS_START( polaris ) |
| 1078 | PORT_INCLUDE( schaser ) |
| 1700 | 1079 | |
| 1701 | | PORT_START_TAG("IN0") |
| 1702 | | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unused ) ) |
| 1703 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1704 | | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 1705 | | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) ) |
| 1706 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1707 | | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 1080 | PORT_MODIFY("IN0") |
| 1081 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x00, "SW?:1" ) |
| 1082 | PORT_DIPUNUSED_DIPLOC( 0x02, 0x00, "SW?:2" ) |
| 1708 | 1083 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) |
| 1709 | 1084 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1710 | 1085 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| r2018 | r2019 | |
| 1712 | 1087 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 1713 | 1088 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 1714 | 1089 | |
| 1715 | | PORT_START_TAG("IN1") |
| 1090 | PORT_MODIFY("IN1") |
| 1716 | 1091 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1717 | 1092 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1718 | 1093 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| r2018 | r2019 | |
| 1722 | 1097 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1723 | 1098 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1724 | 1099 | |
| 1725 | | PORT_START_TAG("DSW0") |
| 1726 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 1727 | | PORT_DIPSETTING( 0x00, "3" ) |
| 1728 | | PORT_DIPSETTING( 0x01, "4" ) |
| 1729 | | PORT_DIPSETTING( 0x02, "5" ) |
| 1730 | | PORT_DIPSETTING( 0x03, "6" ) |
| 1100 | PORT_MODIFY("DSW0") |
| 1731 | 1101 | /* 0x04 should be Cabinet - Upright/Cocktail, |
| 1732 | 1102 | but until the cocktail hack is changed, |
| 1733 | 1103 | this will have to do. */ |
| 1734 | | PORT_DIPNAME( 0x04, 0x00, "Number of Controls" ) |
| 1104 | PORT_DIPNAME( 0x04, 0x00, "Number Of Controls" ) PORT_DIPLOCATION("SW1:3") |
| 1735 | 1105 | PORT_DIPSETTING( 0x00, "1" ) |
| 1736 | 1106 | PORT_DIPSETTING( 0x04, "2" ) |
| 1737 | | PORT_DIPNAME( 0x08, 0x00, "Invincible Test" ) |
| 1107 | PORT_DIPNAME( 0x08, 0x00, "Invincible Test" ) PORT_DIPLOCATION("SW1:4") |
| 1738 | 1108 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1739 | 1109 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 1740 | 1110 | /* The Demo Sounds dip switch does function. |
| 1741 | 1111 | * It allows the sonar sounds to play in demo mode. */ |
| 1742 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) ) |
| 1112 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:5") |
| 1743 | 1113 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1744 | 1114 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 1745 | | PORT_DIPNAME( 0x20, 0x00, "Not Used" ) |
| 1115 | PORT_DIPUNUSED_DIPLOC( 0x20, 0x00, "SW1:6" ) |
| 1116 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x00, "SW1:7" ) |
| 1117 | PORT_DIPNAME( 0x80, 0x00, "High Score Preset Mode" ) PORT_DIPLOCATION("SW1:8") |
| 1746 | 1118 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1747 | | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| 1748 | | PORT_DIPNAME( 0x40, 0x00, "Not Used" ) |
| 1749 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1750 | | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) |
| 1751 | | PORT_DIPNAME( 0x80, 0x00, "High Score Preset Mode" ) |
| 1752 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1753 | 1119 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1754 | 1120 | |
| 1755 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 1756 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1757 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 1758 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1759 | | |
| 1760 | | PORT_START_TAG("VR1") |
| 1121 | PORT_MODIFY("VR1") |
| 1761 | 1122 | PORT_ADJUSTER( 80, "Sub Volume VR1" ) |
| 1762 | 1123 | |
| 1763 | | PORT_START_TAG("VR2") |
| 1124 | PORT_MODIFY("VR2") |
| 1764 | 1125 | PORT_ADJUSTER( 70, "Sub Volume VR2" ) |
| 1765 | 1126 | |
| 1766 | | PORT_START_TAG("VR3") |
| 1127 | PORT_MODIFY("VR3") |
| 1767 | 1128 | PORT_ADJUSTER( 90, "Sub Volume VR3" ) |
| 1768 | 1129 | INPUT_PORTS_END |
| 1769 | 1130 | |
| r2018 | r2019 | |
| 1797 | 1158 | /*******************************************************/ |
| 1798 | 1159 | |
| 1799 | 1160 | static INPUT_PORTS_START( ozmawars ) |
| 1800 | | PORT_START_TAG("IN0") |
| 1161 | PORT_INCLUDE( sicv ) |
| 1801 | 1162 | |
| 1802 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1803 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1804 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1805 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1806 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1807 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1808 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1809 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1810 | | |
| 1811 | | PORT_START_TAG("IN1") |
| 1163 | PORT_MODIFY("IN1") |
| 1812 | 1164 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1813 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1814 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 1815 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1816 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1817 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1818 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 1819 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1820 | 1165 | |
| 1821 | | PORT_START_TAG("DSW0") |
| 1822 | | PORT_DIPNAME( 0x03, 0x00, "Energy" ) |
| 1166 | PORT_MODIFY("DSW0") |
| 1167 | PORT_DIPNAME( 0x03, 0x00, "Energy" ) PORT_DIPLOCATION("SW1:1,2") |
| 1823 | 1168 | PORT_DIPSETTING( 0x00, "15000" ) |
| 1824 | 1169 | PORT_DIPSETTING( 0x01, "20000" ) |
| 1825 | 1170 | PORT_DIPSETTING( 0x02, "25000" ) |
| 1826 | 1171 | PORT_DIPSETTING( 0x03, "35000" ) |
| 1827 | | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) |
| 1828 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1829 | | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 1830 | | PORT_DIPNAME( 0x08, 0x00, "Bonus Energy" ) |
| 1172 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| 1173 | PORT_DIPNAME( 0x08, 0x00, "Bonus Energy" ) PORT_DIPLOCATION("SW1:4") |
| 1831 | 1174 | PORT_DIPSETTING( 0x00, "15000" ) |
| 1832 | 1175 | PORT_DIPSETTING( 0x08, "10000" ) |
| 1833 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) |
| 1834 | | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) ) |
| 1176 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:8") |
| 1835 | 1177 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 1836 | 1178 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) |
| 1837 | | |
| 1838 | | /* Dummy controls port, P1 */ |
| 1839 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 1840 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 1841 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 1842 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 1843 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1844 | | |
| 1845 | | /* Dummy controls port, P2 */ |
| 1846 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 1847 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1848 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 1849 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 1850 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1851 | | |
| 1852 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 1853 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1854 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 1855 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1856 | 1179 | INPUT_PORTS_END |
| 1857 | 1180 | |
| 1858 | 1181 | |
| 1859 | 1182 | static INPUT_PORTS_START( spaceph ) |
| 1860 | | PORT_START_TAG("IN0") |
| 1861 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1862 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1863 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1864 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1865 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1866 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1867 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1868 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1183 | PORT_INCLUDE( ozmawars ) |
| 1869 | 1184 | |
| 1870 | | PORT_START_TAG("IN1") |
| 1871 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1872 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1873 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 1874 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1875 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1876 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1877 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 1185 | PORT_MODIFY("IN1") |
| 1878 | 1186 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1879 | | |
| 1880 | | PORT_START_TAG("IN1") |
| 1881 | | PORT_DIPNAME( 0x03, 0x00, "Energy" ) |
| 1882 | | PORT_DIPSETTING( 0x00, "15000" ) |
| 1883 | | PORT_DIPSETTING( 0x01, "20000" ) |
| 1884 | | PORT_DIPSETTING( 0x02, "25000" ) |
| 1885 | | PORT_DIPSETTING( 0x03, "35000" ) |
| 1886 | | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) |
| 1887 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1888 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1889 | | PORT_DIPNAME( 0x08, 0x00, "Bonus Energy" ) |
| 1890 | | PORT_DIPSETTING( 0x08, "10000" ) |
| 1891 | | PORT_DIPSETTING( 0x00, "15000" ) |
| 1892 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) |
| 1893 | | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) ) |
| 1894 | | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 1895 | | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) |
| 1896 | | |
| 1897 | | /* Dummy controls port, P1 */ |
| 1898 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 1899 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 1900 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 1901 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 1902 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1903 | | |
| 1904 | | /* Dummy controls port, P2 */ |
| 1905 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 1906 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1907 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 1908 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 1909 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1910 | | |
| 1911 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 1912 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1913 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 1914 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1915 | 1187 | INPUT_PORTS_END |
| 1916 | 1188 | |
| 1917 | 1189 | |
| r2018 | r2019 | |
| 1923 | 1195 | /*******************************************************/ |
| 1924 | 1196 | |
| 1925 | 1197 | static INPUT_PORTS_START( sinvemag ) |
| 1926 | | PORT_START_TAG("IN0") |
| 1927 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1928 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1929 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1198 | PORT_INCLUDE( sicv ) |
| 1930 | 1199 | |
| 1931 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1932 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1933 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1934 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1935 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1936 | | |
| 1937 | | PORT_START_TAG("IN1") |
| 1938 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1939 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1940 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 1941 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1942 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1943 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 1944 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 1200 | PORT_MODIFY("IN1") |
| 1945 | 1201 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1946 | 1202 | |
| 1947 | | PORT_START_TAG("DSW0") |
| 1948 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 1949 | | PORT_DIPSETTING( 0x00, "3" ) |
| 1950 | | PORT_DIPSETTING( 0x01, "4" ) |
| 1951 | | PORT_DIPSETTING( 0x02, "5" ) |
| 1952 | | PORT_DIPSETTING( 0x03, "6" ) |
| 1953 | | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) |
| 1954 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 1955 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1956 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) |
| 1203 | PORT_MODIFY("DSW0") |
| 1204 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| 1205 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:4") |
| 1957 | 1206 | PORT_DIPSETTING( 0x08, "2000" ) |
| 1958 | 1207 | PORT_DIPSETTING( 0x00, "3000" ) |
| 1959 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) |
| 1960 | | PORT_DIPNAME( 0x80, 0x00, "Coin Info" ) |
| 1961 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 1962 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1963 | | |
| 1964 | | /* Dummy controls port, P1 */ |
| 1965 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 1966 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 1967 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 1968 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 1969 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1970 | | |
| 1971 | | /* Dummy controls port, P2 */ |
| 1972 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 1973 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1974 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 1975 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 1976 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1977 | | |
| 1978 | | PORT_START_TAG(INVADERS_CAB_TYPE_PORT_TAG) /* Dummy port for cocktail mode */ |
| 1979 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 1980 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 1981 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1982 | 1208 | INPUT_PORTS_END |
| 1983 | 1209 | |
| 1984 | 1210 | |
| r2018 | r2019 | |
| 1990 | 1216 | /*******************************************************/ |
| 1991 | 1217 | |
| 1992 | 1218 | static INPUT_PORTS_START( jspecter ) |
| 1219 | PORT_INCLUDE( sicv ) |
| 1993 | 1220 | |
| 1994 | | PORT_START_TAG("IN0") |
| 1995 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1996 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1997 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1998 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1999 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2000 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2001 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2002 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1221 | PORT_MODIFY("IN1") |
| 1222 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY //typo? declared twice |
| 2003 | 1223 | |
| 2004 | | PORT_START_TAG("IN1") |
| 2005 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2006 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 2007 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 2008 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2009 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 2010 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 2011 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 2012 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 2013 | | |
| 2014 | | PORT_START_TAG("DSW0") |
| 2015 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 2016 | | PORT_DIPSETTING( 0x00, "3" ) |
| 2017 | | PORT_DIPSETTING( 0x01, "4" ) |
| 2018 | | PORT_DIPSETTING( 0x02, "5" ) |
| 2019 | | PORT_DIPSETTING( 0x03, "6" ) |
| 2020 | | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) |
| 2021 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 2022 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2023 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) |
| 2024 | | PORT_DIPSETTING( 0x08, "1000" ) |
| 2025 | | PORT_DIPSETTING( 0x00, "1500" ) |
| 2026 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) |
| 2027 | | PORT_DIPNAME( 0x80, 0x00, "Coin Info" ) |
| 2028 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2029 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2030 | | |
| 2031 | | /* Dummy controls port, P1 */ |
| 2032 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 2033 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 2034 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 2035 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 2036 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2037 | | |
| 2038 | | /* Dummy controls port, P2 */ |
| 2039 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 2040 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 2041 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 2042 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 2043 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2044 | | |
| 2045 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 2046 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2047 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 2048 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1224 | PORT_MODIFY("DSW0") |
| 1225 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SW1:3" ) |
| 2049 | 1226 | INPUT_PORTS_END |
| 2050 | 1227 | |
| 2051 | 1228 | |
| r2018 | r2019 | |
| 2066 | 1243 | |
| 2067 | 1244 | |
| 2068 | 1245 | static INPUT_PORTS_START( ballbomb ) |
| 2069 | | PORT_START_TAG("IN0") |
| 2070 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2071 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2072 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2073 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2074 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2075 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2076 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2077 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1246 | PORT_INCLUDE( sicv ) |
| 2078 | 1247 | |
| 2079 | | PORT_START_TAG("IN1") |
| 1248 | PORT_MODIFY("IN1") |
| 2080 | 1249 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2081 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 2082 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 2083 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2084 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 2085 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY |
| 2086 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY |
| 2087 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2088 | 1250 | |
| 2089 | | PORT_START_TAG("DSW0") |
| 2090 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 2091 | | PORT_DIPSETTING( 0x00, "3" ) |
| 2092 | | PORT_DIPSETTING( 0x01, "4" ) |
| 2093 | | PORT_DIPSETTING( 0x02, "5" ) |
| 2094 | | PORT_DIPSETTING( 0x03, "6" ) |
| 2095 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) |
| 2096 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2097 | | PORT_BIT( 0x70, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(invaders_in2_control_r, 0) |
| 2098 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2099 | | |
| 2100 | | /* Dummy controls port, P1 */ |
| 2101 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 2102 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 2103 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 2104 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 2105 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2106 | | |
| 2107 | | /* Dummy controls port, P2 */ |
| 2108 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 2109 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 2110 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 2111 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 2112 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2113 | | |
| 2114 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 2115 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2116 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 2117 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1251 | PORT_MODIFY("DSW0") |
| 1252 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x00, "SW1:4" ) |
| 1253 | PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x00, "SW1:8" ) |
| 2118 | 1254 | INPUT_PORTS_END |
| 2119 | 1255 | |
| 2120 | 1256 | static MACHINE_DRIVER_START( ballbomb ) |
| r2018 | r2019 | |
| 2181 | 1317 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 2182 | 1318 | |
| 2183 | 1319 | /* Dummy controls port, P1 */ |
| 2184 | | PORT_START_TAG(INVADERS_P1_CONTROL_PORT_TAG) |
| 2185 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 2186 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) |
| 2187 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) |
| 2188 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1320 | INVADERS_CONTROL_PORT_P1 |
| 2189 | 1321 | |
| 2190 | 1322 | /* Dummy controls port, P2 */ |
| 2191 | | PORT_START_TAG(INVADERS_P2_CONTROL_PORT_TAG) |
| 2192 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 2193 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) |
| 2194 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) |
| 2195 | | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 1323 | INVADERS_CONTROL_PORT_P2 |
| 2196 | 1324 | |
| 2197 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 1325 | /* Dummy port for cocktail mode (not used) */ |
| 1326 | PORT_START_TAG(CABINET_PORT_TAG) |
| 2198 | 1327 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2199 | 1328 | INPUT_PORTS_END |
| 2200 | 1329 | |
| r2018 | r2019 | |
| 2220 | 1349 | /*******************************************************/ |
| 2221 | 1350 | |
| 2222 | 1351 | static INPUT_PORTS_START( indianbt ) |
| 2223 | | |
| 2224 | 1352 | PORT_START_TAG("IN0") |
| 2225 | 1353 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2226 | 1354 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| r2018 | r2019 | |
| 2345 | 1473 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Coinage ) ) |
| 2346 | 1474 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) |
| 2347 | 1475 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 2348 | | |
| 2349 | 1476 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Lives ) ) |
| 2350 | 1477 | PORT_DIPSETTING( 0x00, "3" ) |
| 2351 | 1478 | PORT_DIPSETTING( 0x02, "4" ) |
| 2352 | 1479 | PORT_DIPSETTING( 0x04, "5" ) |
| 2353 | 1480 | PORT_DIPSETTING( 0x06, "6" ) |
| 2354 | | |
| 2355 | 1481 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) |
| 2356 | 1482 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 2357 | 1483 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r2018 | r2019 | |
| 2502 | 1628 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 2503 | 1629 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 2504 | 1630 | |
| 2505 | | PORT_START_TAG(CABINET_PORT_TAG) /* Dummy port for cocktail mode */ |
| 2506 | | PORT_CONFNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 2507 | | PORT_CONFSETTING( 0x00, DEF_STR( Upright ) ) |
| 2508 | | PORT_CONFSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 1631 | /* Dummy port for cocktail mode */ |
| 1632 | INVADERS_CAB_TYPE_PORT |
| 2509 | 1633 | INPUT_PORTS_END |
| 2510 | 1634 | |
| 2511 | 1635 | static MACHINE_DRIVER_START( darthvdr ) |
| r2018 | r2019 | |
| 3248 | 2372 | GAMEL(19??, invrvnga, invrvnge, invrvnge, invrvnge, 0, ROT270, "Zenitone-Microsec Ltd. (Dutchford license)", "Invader's Revenge (Dutchford)", GAME_IMPERFECT_SOUND, layout_invrvnge ) |
| 3249 | 2373 | GAME( 1980, spclaser, 0, invaders, spclaser, 0, ROT270, "GamePlan (Taito)", "Space Laser", 0 ) |
| 3250 | 2374 | GAME( 1980, laser, spclaser, invaders, spclaser, 0, ROT270, "Leisure Time Electronics Inc.", "Astro Laser", 0 ) |
| 3251 | | GAME( 1979, spcewarl, spclaser, invaders, spcewarl, 0, ROT270, "Leijac Corporation (Konami)","Space War (Leijac Corporation)", 0 ) |
| 2375 | GAME( 1979, spcewarl, spclaser, invaders, spclaser, 0, ROT270, "Leijac Corporation (Konami)","Space War (Leijac Corporation)", 0 ) |
| 3252 | 2376 | GAME( 1979, rollingc, 0, rollingc, rollingc, 0, ROT270, "Nichibutsu", "Rolling Crash / Moon Base", 0 ) |
| 3253 | 2377 | GAME( 1979, ozmawars, 0, invaders, ozmawars, 0, ROT270, "SNK", "Ozma Wars (set 1)", 0 ) |
| 3254 | 2378 | GAME( 1979, ozmawar2, ozmawars, invaders, ozmawars, 0, ROT270, "SNK", "Ozma Wars (set 2)" , 0) /* Uses Taito's three board color version of Space Invaders PCB */ |
src/mame/drivers/equites.c
| r2018 | r2019 | |
| 1 | 1 | /******************************************************************************* |
| 2 | 2 | |
| 3 | | Equites (c) 1984 Alpha Denshi Co./Sega |
| 4 | | Bull Fighter (c) 1984 Alpha Denshi Co./Sega |
| 5 | | The Koukouyakyuh (c) 1985 Alpha Denshi Co. |
| 6 | | Splendor Blast (c) 1985 Alpha Denshi Co. |
| 7 | | High Voltage (c) 1985 Alpha Denshi Co. |
| 3 | Equites (c) 1984 Alpha Denshi Co./Sega 8303 |
| 4 | Bull Fighter (c) 1984 Alpha Denshi Co./Sega 8303 |
| 5 | Gekisou (c) 1985 Eastern Corp. 8304 |
| 6 | The Koukouyakyuh (c) 1985 Alpha Denshi Co. 8304 |
| 7 | Splendor Blast (c) 1985 Alpha Denshi Co. 8303 |
| 8 | High Voltage (c) 1985 Alpha Denshi Co. 8304 (POST says 8404) |
| 8 | 9 | |
| 9 | | drivers by Acho A. Tang |
| 10 | Driver by Acho A. Tang, Nicola Salmoria |
| 11 | Many thanks to Corrado Tomaselli for precious hardware info. |
| 10 | 12 | |
| 11 | 13 | Stephh's notes (based on the games M68000 code and some tests) : |
| 12 | 14 | |
| r2018 | r2019 | |
| 53 | 55 | |
| 54 | 56 | 5) 'hvoltage' |
| 55 | 57 | |
| 56 | | - When starting a 2 players game, when player 1 game is over, the game becomes |
| 57 | | buggy on displaying the "GAME OVER" message and you can't start a new game |
| 58 | | anymore. |
| 59 | | - You can test player 2 by putting 0xff instead of 0x00 at 0x040009 ($9,A6). |
| 60 | | - FYI, what should change the contents of $9,A6 is the routine at 0x000fc4, |
| 61 | | but I haven't found where this routine could be called 8( 8404 issue ? |
| 62 | | |
| 63 | 58 | - There is sort of "debug mode" that you can access if 0x000038.w returns 0x0000 |
| 64 | | instead of 0xffff. To enable it, turn HVOLTAGE_HACK to 1 then enable the fake |
| 59 | instead of 0xffff. To enable it, turn HVOLTAGE_DEBUG to 1 then enable the fake |
| 65 | 60 | Dip Switch. |
| 66 | 61 | - When you are in "debug mode", the Inputs and Dip Switches have special features. |
| 67 | 62 | Here is IMO the full list : |
| r2018 | r2019 | |
| 77 | 72 | a "band" is displayed at the left of the screen |
| 78 | 73 | |
| 79 | 74 | |
| 80 | | TO DO : |
| 75 | Notes: |
| 76 | ----- |
| 77 | - The sound board in all games is identical, labelled SOUND BOARD NO.59 MC 07. |
| 78 | There are three pots, labelled MUSIC, VOICE and FRQ. MUSIC and VOICE control |
| 79 | the volume, while FRQ changes (a unique feature of this hardware) the input |
| 80 | clock to the MSM5232. This affects the music pitch ONLY--tempo is unaffected. |
| 81 | Clock speed apparently ranges from 6.144MHz (OSC value) to about 150kHz. |
| 81 | 82 | |
| 82 | | - support screen flipping in 'equites' and 'splndrbt'. |
| 83 | - equites hardware: even if there are 0x200 bytes of sprite RAM, which would give |
| 84 | a total of 128 possible sprites, since all games only write to a limited part of |
| 85 | that RAM it looks like the hardware can only display 55 sprites. This is confirmed |
| 86 | by the POST test which only shows those 55 sprites. The strange thing is that the |
| 87 | sprites are not consecutive in RAM. The "good" parts are |
| 88 | 100000-10005f |
| 89 | 1000e0-1000ff |
| 90 | 1001a4-1001ff |
| 91 | Possibly the remaining RAM is used by the sprite hardware as buffer? This doesn't |
| 92 | really explain the weird layout in memory, however. |
| 93 | Also, the priority order is counterintuitive. It seems that the above blocks are |
| 94 | in increasing priority order, however in each block the higher priority sprites |
| 95 | are at the lower addresses. This gives good priorities in gekisou (the car and |
| 96 | helicopter shadows would be wrong otherwise). |
| 83 | 97 | |
| 98 | - similarly, splndrbt hardware only appears to be capable of displaying 24 sprites. |
| 99 | This time, they are consecutive in RAM. |
| 84 | 100 | |
| 85 | | Hardware Deficiencies |
| 86 | | --------------------- |
| 87 | 101 | |
| 88 | | - Lack of 8303/8404 tech info. All MCU results are guessed. |
| 102 | TODO: |
| 103 | ---- |
| 89 | 104 | |
| 90 | | equites_8404rule(unsigned pc, int offset, int data) details: |
| 105 | - on startup, the CPU continuously writes 5555 to 100000 in a tight loop and expects |
| 106 | it to change to exit the loop. The value should obviously be modified by the |
| 107 | sprite hardware but it's difficult to guess what should happen. A kludge read |
| 108 | handler is used as a work around. |
| 91 | 109 | |
| 92 | | pc: 68000 code address where the program queries the MCU |
| 93 | | offset: 8404 memory offset(in bytes) from where MCU data is read |
| 94 | | data: fake byte-value to return (negative numbers trigger special conditions) |
| 110 | - the second interrupt source for main CPU is unknown. |
| 95 | 111 | |
| 96 | | The following ROMs need redump: |
| 112 | - gekisou inputs. Looks like there should be an EEPROM. Note ROM patches in |
| 113 | DRIVER_INIT to make it boot past what I think is the EEPROM read. |
| 114 | Settings are changed by pressing the service button and then using joystick |
| 115 | to change options. |
| 97 | 116 | |
| 98 | | - The Koukouyakyuh's epr-6706.bin (the one in use is patched) |
| 117 | Settings: 1 2 3 4 5 6 7 8 |
| 118 | COIN 1 1 Coin / 1 Play ON ON |
| 119 | 1 Coin / 2 Play ON OFF |
| 120 | 1 Coin / 3 Play OFF OFF |
| 121 | 2 Coin / 1 Play OFF ON |
| 122 | COIN 2 1 Coin / 1 Play ON ON |
| 123 | 1 Coin / 2 Play ON OFF |
| 124 | 1 Coin / 3 Play OFF OFF |
| 125 | 2 Coin / 1 Play OFF ON |
| 126 | DIFFICULTY Easy ON |
| 127 | Hard OFF |
| 128 | CABINET Cocktail ON |
| 129 | Upright OFF |
| 99 | 130 | |
| 131 | - gekisou: there's a white line crossing the explosion sprite. This doesn't look |
| 132 | like a bad ROM since the line is crossing several, not concecutive, explosion |
| 133 | sprites, and no other sprites. |
| 100 | 134 | |
| 101 | | Emulation Deficiencies |
| 102 | | ---------------------- |
| 135 | - gekisou: wrong sprite when hitting helicopter with missile? |
| 103 | 136 | |
| 104 | | - Equites has sprite lag in the post-rotate X direction depends on interrupt timing. |
| 105 | | - Scale factors in High Voltage and Splendor Blast are inaccurate. Actual values are believed |
| 106 | | to be in the three unknown ROM s3.8l, 1.9j and 4.7m but the equations are unknown. |
| 137 | - splndrbt, hvoltage: the interpretation of the scaling PROMs might be wrong. |
| 138 | The sprite x scaling is not used at all because I couldn't figure it out. |
| 139 | Note that sprites are 30x30 instead of 32x32. |
| 107 | 140 | |
| 108 | | - MSM5232 capacitor values are not known. |
| 109 | | - There is a potentiometer on the soundboard to adjust the MSM5232's music pitch. Clock speed ranges |
| 110 | | from 6.144mhz (OSC value) to few khz |
| 111 | | - All games have the same sound board with only rom swaps |
| 141 | - Need to use different default volumes for various games, especially gekisou |
| 142 | where the car noise is really unpleasant with the default settings. |
| 112 | 143 | |
| 144 | - analog drums/cymbals missing. |
| 145 | |
| 146 | - bassline imperfect. This is just the square wave output of the 5232 at the moment. |
| 147 | It should go through analog stages. |
| 148 | |
| 149 | - properly emulate the 8155 on the sound board. |
| 150 | |
| 151 | - implement low-pass filters on the DAC output |
| 152 | |
| 113 | 153 | * Special Thanks to: |
| 114 | 154 | |
| 115 | 155 | Jarek Burczynski for a superb MSM5232 emulation |
| r2018 | r2019 | |
| 124 | 164 | Alpha Denshi 1984 (SPT) Champion Croquet ?`?????s?I???N???b?P?[ |
| 125 | 165 | Alpha Denshi 1985 (???) Tune Pit(?) ?`?F?[???s?b?g |
| 126 | 166 | Alpha Denshi 1985 (MAJ) Perfect Janputer ?p?[?t?F?N?g?W?????s???[?^?[ |
| 127 | | SNK/Eastern 1985 (ACT) Gekisoh ???? |
| 128 | 167 | |
| 168 | |
| 169 | ******************************************************************************* |
| 170 | |
| 171 | Bull Fighter |
| 172 | PCB layout |
| 173 | 2005-03-21 |
| 174 | f205v |
| 175 | |
| 176 | |----------------------| |
| 177 | | Fully boxed = socket | |
| 178 | |----------------------| |
| 179 | |
| 180 | |
| 181 | | separation = solder |
| 182 | |
| 183 | |
| 184 | -----------------------------------------------------------------------| |
| 185 | |ALPHA DENSHI CO, LTD. SOUND BOARD NO.59MC07 | |
| 186 | | | |
| 187 | | |--------------------| | |
| 188 | | P | \/ | JAPAN 84250C | SN74LS232J | SN74LS74AN | DISSIPATOR | |
| 189 | | | /\ | M5l8085AP | 8131BJ | 8314A | | |
| 190 | | |--------------------| | |
| 191 | | | |
| 192 | | N | SN74LS74A | |
| 193 | | | 8122AG | |
| 194 | | | |
| 195 | | |------------| | |
| 196 | | M | HV1VR OKI | SN74LS138J | SN74LS74AJ | LM324N | LM324N | |
| 197 | | | 2764-45 | 8044AG | F8048 | J423A2 | 98509 |- (+12V) |
| 198 | | |------------| | |
| 199 | | |- (+5V) |
| 200 | | |------------| | |
| 201 | | L | HV2VR OKI | T74LS14B1 | SN74LS08N |- (OUT) |
| 202 | | | 2764-45 | 88442 | K8208 | |
| 203 | | |------------| |- ( |
| 204 | | | (GND) |
| 205 | | |------------| |- ( |
| 206 | | K | HV3VR OKI | SN74LS08J | SN74LS04N | LM324N | |
| 207 | | | 2764-45 | K8208 | I8313 | 98509 | |
| 208 | | |------------| | |
| 209 | | | |
| 210 | | J | SN74LS74A | SN74LS232J | | LM324N | |
| 211 | | | 8122AG | 8131BG | | 436A | |
| 212 | | | |
| 213 | | |------------| |------------| | |
| 214 | | H | HV4VR OKI | SN74LS393N | TBP18S030N | | LM324N | |
| 215 | | | 2764-45 | K8208 | J419X | | 436A | |
| 216 | | |------------| |------------| | |
| 217 | | | |
| 218 | | F | SN74LS138J | HCF40174BE | | CD4066BCN | |
| 219 | | | 8044AG | MSM40174 | | MM5666BN | |
| 220 | | | |
| 221 | | E | M74LS123P | SN74LS138J | CD4066BCN | CD4066BCN | |
| 222 | | | 84A6C1 | 8044AG | MM5666BN | MM5666BN | |
| 223 | | MUSIC | |
| 224 | | |-------------------------| | |
| 225 | | D | SN74LS373N | JAPAN 841903 | | CD4066BCN | |
| 226 | | | 2764-45 | M5L8155P | | MM5666BN | |
| 227 | | |-------------------------| VOICE | |
| 228 | | | |
| 229 | |C |-------------------------| | |
| 230 | |O C | 74LS173 PC | MSM5232RS | | |
| 231 | |N | 8247 | OKI 4342 | | |
| 232 | |N |-------------------------| | |
| 233 | | | |
| 234 | |T B | |
| 235 | |O | |
| 236 | | |-------------------------| | |
| 237 | |M A | 74LS173 PC | SOUND AY-3-8910 | CD4066BCN | CD4066BCN | |
| 238 | |A | 8247 | 8046 CDA | MM5666BN | MM5666BN | |
| 239 | |I |-------------------------| | |
| 240 | |N | |
| 241 | | | 1 | 2 | 3 | 4 | 5 | |
| 242 | -----------------------------------------------------------------------| |
| 243 | |
| 244 | |
| 245 | |
| 246 | |
| 247 | -----------------------------------------------------------------------------------| |
| 248 | |ALPHA DENSHI CO, LTD. MAIN CONNECTOR BOARD | |
| 249 | | | |
| 250 | | | |
| 251 | | | K | J | H | F | E | D | C | B | A | |
| 252 | | | | |
| 253 | J 1 | LS08 | LS74 | LS109 | LS27 | LS32 | | LS153 | LS153 | 24S10 |L | |
| 254 | 2 |S | |
| 255 | 2 | LS74 | LS04 | LS21 | LS00 | LS174 | LS153 | LS153 | LS273 | 24S10 |2 | |
| 256 | T |7 | |
| 257 | O |-------| |3 | |
| 258 | 3 | LS32 | LS161 | LS161 | LS157 |H | LS194 | LS194 | LS04 | 24S10 | | |
| 259 | L |TMS2732| | |
| 260 | O |-------| | |
| 261 | W |---------------| | |
| 262 | E 4 | LS00 | LS86 | LS86 | LS08 | LS157 | LS157 | ALPHA-8303 | | |
| 263 | R | 44801B42-3M 3 | | |
| 264 | |---------------| | |
| 265 | B |-------| | |
| 266 | O 5 | LS393 | LS86 | LS86 | OSCLT |M58725P| LS157 | LS157 | |
| 267 | A |-------| | |
| 268 | R |-------| | |
| 269 | D 6 | LS04 | LS161 | LS161 | LS273 | LS157 | LS157 | LS08 |M58725P| |-C |
| 270 | | |-------| |-O |
| 271 | | |-----------|-----------| |-N |
| 272 | | 7 | LS74 | LS367 | LS74 | LS368 | LS373 | M58725P | M58725P | LS245 |-N |
| 273 | | |-----------|-----------| |-E |
| 274 | | |-C |
| 275 | | 8 | LS32 | LS74 | LS32 | LS138 | LS245 | LS245 |-T |
| 276 | J |-----------|-----------| |-O |
| 277 | 1 9 | LS08 | LS00 | LS74 | LS138 | empty | empty | LS368 |-R |
| 278 | |-----------|-----------| |- |
| 279 | T |-----------|-----------| |-N |
| 280 | O 10 | LS08 | LS32 | LS74 | LS138 | LS139 |HP3VR |HP7VR | LS368 |-O |
| 281 | |M5L2764K |HN482764G | |-N |
| 282 | L |- |-----------|-----------| |-J |
| 283 | O 11 |C \ | LS02 | LS00 | LS138 | LS259 | LS368 |-A |
| 284 | W |O \ |-----------|-----------| |-M |
| 285 | E |N S | |HP2VR |HP6VR | LS368 |-M |
| 286 | R 12 |N O | |HN482764G |M5L2764K | |-A |
| 287 | | U | |-----------|-----------| | |
| 288 | B |F N | |-----------------------|-----------|-----------| | |
| 289 | O 13 |R D || LS74 | HD68000-8 |HP1VR |HP5VR | | |
| 290 | A |O / | 4D3-R |M5L2764K |M5L2764K | | |
| 291 | R |M / |-----------------------|-----------|-----------| | |
| 292 | D |- | |
| 293 | | 14 | LS05 | LS193 | LS214 | LS08 | LS139 | DIP 6x | |
| 294 | | | |
| 295 | |----------------------------------------------------------------------------------| |
| 296 | |
| 297 | |
| 298 | |
| 299 | |
| 300 | -------------------------------------------------------------------------------------| |
| 301 | |ALPHA DENSHI CO, LTD. LOWER BOARD | |
| 302 | | | |
| 303 | | | |
| 304 | J | K | J | H | F | E | D | C | B | A | |
| 305 | 2 | |
| 306 | 1 | LS245 | LS139 |----------|----------| LS174 | LS153 | 4416 | LS04 | LS194 | |
| 307 | T | HM6116-3 | HS4VR | | |
| 308 | O | M58725P | M5L2764K | | |
| 309 | 2 | LS245 | | | LS174 | LS153 | 4416 | LS373 | LS194 | |
| 310 | M |----------|----------| | |
| 311 | A | HM6116-3 | HS3VR | | |
| 312 | I 3 | LS08 | LS04 | M58725P | M5L2764K | LS283 | LS153 | 4416 | LS157 | LS194 | |
| 313 | N | | | | |
| 314 | |----------|----------| | |
| 315 | B 4 | LS86 | LS86 | HS6VR | HS2VR | LS283 | LS153 | 4416 | LS373 | LS194 | |
| 316 | O | M5L2764K | HN482764G| | |
| 317 | A | | |-------|-------| | |
| 318 | R 5 | LS157 | LS157 |----------|----------| LS193 | LS193 | LS08 | LS32 | LS32 | |
| 319 | D | HS5VR | HS1VR |-------|-------| | |
| 320 | | | M5L2764K | M5L2764K | |-------| | |
| 321 | | 6 | LS08 | LS86 | | | LS157 | LS157 | LS153 | 24S10 | LS257 | |
| 322 | | |----------|----------| |-------| | |
| 323 | | | HP5VR | HB1VR | |-------| | |
| 324 | | 7 | LS157 | LS157 | M5L2764K | M5L2764K | LS157 | LS273 | LS153 | 24S10 | LS257 | |
| 325 | | | | | |-------| | |
| 326 | | |----------|----------| | |
| 327 | | 8 | LS669 | LS669 | HP6VR | HB2VR | LS157 | LS273 | LS153 | LS153 | LS32 | |
| 328 | J | M5L2764K | M5L2764K | | |
| 329 | 1 | | | |-------| | |
| 330 | 9 | LS669 | LS669 |----------|----------| LS157 | LS273 | LS153 | 24S10 | LS257 | |
| 331 | T | HM6116-3 | HB3VR | |-------| | |
| 332 | O | M58725P | M5L2764K | |-------| | |
| 333 | 10 | LS273 | LS273 | | | LS194 | LS04 | LS153 | 24S10 | LS257 | |
| 334 | M |----------|----------| |-------| | |
| 335 | A | HM6116-3 | HB4VR | | |
| 336 | I 11 | LS245 | LS245 | M58725P | M5L2764K | LS157 | LS194 | LS86 | LS08 | LS02 | |
| 337 | N | | | | |
| 338 | |----------|----------| | |
| 339 | B 12 | LS373 | LS373 | LS194 | LS157 | LS08 | LS74 | LS175 | |
| 340 | O | |
| 341 | A | |
| 342 | R 13 | LS373 | LS273 | LS174 | LS139 | LS08 | LS32 | LS74 | LS10 | LS00 | |
| 343 | D | |
| 344 | |------------------------------------------------------------------------------------| |
| 345 | |
| 346 | |
| 129 | 347 | *******************************************************************************/ |
| 130 | 348 | // Directives |
| 131 | 349 | |
| 132 | 350 | #include "driver.h" |
| 133 | 351 | #include "deprecat.h" |
| 352 | #include "cpu/i8085/i8085.h" |
| 353 | #include "sound/ay8910.h" |
| 354 | #include "sound/msm5232.h" |
| 355 | #include "sound/dac.h" |
| 356 | #include "sound/samples.h" |
| 357 | #include "equites.h" |
| 134 | 358 | |
| 135 | | #define HVOLTAGE_HACK 0 |
| 359 | #define HVOLTAGE_DEBUG 0 |
| 136 | 360 | #define EASY_TEST_MODE 1 |
| 137 | 361 | |
| 138 | | // Equites Hardware |
| 139 | | #define BMPAD 8 |
| 362 | #define FRQ_ADJUSTER_TAG "FRQ" |
| 140 | 363 | |
| 364 | // MSM5232 clock is generated by a transistor oscillator circuit, not by the pcb xtal |
| 365 | // The circuit is controlled by a pot to allow adjusting the frequency |
| 366 | #define MSM5232_MAX_CLOCK 6144000 |
| 367 | #define MSM5232_MIN_CLOCK 214000 // unstable |
| 368 | |
| 369 | |
| 141 | 370 | /******************************************************************************/ |
| 142 | | // Imports |
| 143 | 371 | |
| 144 | | // Common Hardware Start |
| 145 | | extern void equites_8404init(void); |
| 146 | | extern void equites_8404rule(unsigned pc, int offset, int data); |
| 372 | static UINT16 *equites_workram; |
| 373 | static UINT8 *mcu_ram; |
| 147 | 374 | |
| 148 | | extern READ16_HANDLER(equites_8404_r); |
| 149 | | extern WRITE8_HANDLER(equites_5232_w); |
| 150 | | extern WRITE8_HANDLER(equites_8910control_w); |
| 151 | | extern WRITE8_HANDLER(equites_8910data_w); |
| 152 | | extern WRITE8_HANDLER(equites_dac0_w); |
| 153 | | extern WRITE8_HANDLER(equites_dac1_w); |
| 375 | static int equites_sound_prom_address; |
| 376 | static UINT8 equites_dac_latch; |
| 377 | static UINT8 equites_8155_portb; |
| 154 | 378 | |
| 155 | | extern UINT16 *equites_8404ram; |
| 156 | | extern struct MSM5232interface equites_5232intf; |
| 157 | | extern struct AY8910interface equites_8910intf; |
| 379 | static UINT8 eq8155_port_a,eq8155_port_c,ay_port_a,ay_port_b,eq_unk1; |
| 158 | 380 | |
| 159 | | static ADDRESS_MAP_START( equites_s_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 160 | | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| 161 | | AM_RANGE(0xc000, 0xc000) AM_READ(soundlatch_r) |
| 162 | | AM_RANGE(0xc080, 0xc08d) AM_WRITE(equites_5232_w) |
| 163 | | AM_RANGE(0xc0a0, 0xc0a0) AM_WRITE(equites_8910data_w) |
| 164 | | AM_RANGE(0xc0a1, 0xc0a1) AM_WRITE(equites_8910control_w) |
| 165 | | AM_RANGE(0xc0b0, 0xc0b0) AM_WRITE(SMH_NOP) // INTR: sync with main melody |
| 166 | | AM_RANGE(0xc0c0, 0xc0c0) AM_WRITE(SMH_NOP) // INTR: sync with specific beats |
| 167 | | AM_RANGE(0xc0d0, 0xc0d0) AM_WRITE(equites_dac0_w) |
| 168 | | AM_RANGE(0xc0e0, 0xc0e0) AM_WRITE(equites_dac1_w) |
| 169 | | AM_RANGE(0xc0f8, 0xc0fe) AM_WRITE(SMH_NOP) // soundboard I/O, ignored |
| 170 | | AM_RANGE(0xc0ff, 0xc0ff) AM_WRITE(soundlatch_clear_w) |
| 171 | | AM_RANGE(0xe000, 0xe0ff) AM_RAM |
| 172 | | ADDRESS_MAP_END |
| 381 | static MACHINE_RESET(equites) |
| 382 | { |
| 383 | flip_screen_set(0); |
| 384 | } |
| 173 | 385 | |
| 174 | | static ADDRESS_MAP_START( equites_s_portmap, ADDRESS_SPACE_IO, 8 ) |
| 175 | | AM_RANGE(0x00e0, 0x00e5) AM_WRITE(SMH_NOP) // soundboard I/O, ignored |
| 176 | | ADDRESS_MAP_END |
| 386 | /******************************************************************************/ |
| 387 | // Sound |
| 177 | 388 | |
| 178 | | static MACHINE_DRIVER_START( equites_sound ) |
| 389 | /******************************************************************************/ |
| 179 | 390 | |
| 180 | | /* basic machine hardware */ |
| 181 | | MDRV_CPU_ADD(8085A, XTAL_6_144MHz) /* verified on pcb */ |
| 182 | | MDRV_CPU_PROGRAM_MAP(equites_s_map,0) |
| 183 | | MDRV_CPU_IO_MAP(equites_s_portmap,0) |
| 184 | | MDRV_CPU_PERIODIC_INT(nmi_line_pulse,4000) |
| 391 | static emu_timer *nmi_timer, *adjuster_timer; |
| 185 | 392 | |
| 186 | | /* sound hardware */ |
| 187 | | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 393 | static TIMER_CALLBACK( equites_nmi_callback ) |
| 394 | { |
| 395 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, ASSERT_LINE); |
| 396 | } |
| 188 | 397 | |
| 189 | | MDRV_SOUND_ADD(MSM5232, XTAL_6_144MHz/2) |
| 190 | | /* OSC is connected to a pot which varies the frequency of M5232 |
| 191 | | from 6.144mhz to few Khz. Here I assume a value which gives a good pitch */ |
| 192 | | MDRV_SOUND_CONFIG(equites_5232intf) |
| 193 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) |
| 398 | static TIMER_CALLBACK( equites_frq_adjuster_callback ) |
| 399 | { |
| 400 | UINT8 frq = readinputportbytag(FRQ_ADJUSTER_TAG); |
| 194 | 401 | |
| 195 | | MDRV_SOUND_ADD(AY8910, XTAL_6_144MHz/4) /* verified on pcb */ |
| 196 | | MDRV_SOUND_CONFIG(equites_8910intf) |
| 197 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 402 | msm5232_set_clock(sndti_token(SOUND_MSM5232, 0), MSM5232_MIN_CLOCK + frq * (MSM5232_MAX_CLOCK - MSM5232_MIN_CLOCK) / 100); |
| 403 | //popmessage("8155: C %02x A %02x AY: A %02x B %02x Unk:%x", eq8155_port_c,eq8155_port_a,ay_port_a,ay_port_b,eq_unk1&15); |
| 404 | } |
| 198 | 405 | |
| 199 | | MDRV_SOUND_ADD(DAC, 0) |
| 200 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) |
| 406 | static SOUND_START(equites) |
| 407 | { |
| 408 | nmi_timer = timer_alloc(equites_nmi_callback, NULL); |
| 201 | 409 | |
| 202 | | MDRV_SOUND_ADD(DAC, 0) |
| 203 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) |
| 204 | | MACHINE_DRIVER_END |
| 410 | adjuster_timer = timer_alloc(equites_frq_adjuster_callback, NULL); |
| 411 | timer_adjust_periodic(adjuster_timer, ATTOTIME_IN_HZ(60), 0, ATTOTIME_IN_HZ(60)); |
| 412 | } |
| 205 | 413 | |
| 206 | | // Common Hardware End |
| 414 | static WRITE8_HANDLER(equites_c0f8_w) |
| 415 | { |
| 416 | switch (offset) |
| 417 | { |
| 418 | case 0: // c0f8: NMI ack (written by NMI handler) |
| 419 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, CLEAR_LINE); |
| 420 | break; |
| 207 | 421 | |
| 208 | | // Equites Hardware |
| 209 | | extern PALETTE_INIT( equites ); |
| 210 | | extern VIDEO_START( equites ); |
| 211 | | extern VIDEO_UPDATE( equites ); |
| 212 | | extern READ16_HANDLER(equites_spriteram_r); |
| 213 | | extern WRITE16_HANDLER(equites_charram_w); |
| 214 | | extern WRITE16_HANDLER(equites_scrollreg_w); |
| 215 | | extern WRITE16_HANDLER(equites_bgcolor_w); |
| 422 | case 1: // c0f9: RST75 trigger (written by NMI handler) |
| 423 | // Note: solder pad CP3 on the pcb would allow to disable this |
| 424 | cpunum_set_input_line(machine, 1, I8085_RST75_LINE, PULSE_LINE); |
| 425 | break; |
| 216 | 426 | |
| 217 | | // Splendor Blast Hareware |
| 218 | | extern MACHINE_RESET( splndrbt ); |
| 219 | | extern PALETTE_INIT( splndrbt ); |
| 220 | | extern VIDEO_START( splndrbt ); |
| 221 | | extern VIDEO_UPDATE( splndrbt ); |
| 222 | | extern READ16_HANDLER(splndrbt_bankedchar_r); |
| 223 | | extern WRITE16_HANDLER(splndrbt_charram_w); |
| 224 | | extern WRITE16_HANDLER(splndrbt_bankedchar_w); |
| 225 | | extern WRITE16_HANDLER(splndrbt_selchar0_w); |
| 226 | | extern WRITE16_HANDLER(splndrbt_selchar1_w); |
| 227 | | extern WRITE16_HANDLER(splndrbt_scrollram_w); |
| 228 | | extern WRITE16_HANDLER(splndrbt_bgcolor_w); |
| 229 | | extern UINT16 *splndrbt_scrollx, *splndrbt_scrolly; |
| 427 | case 2: // c0fa: INTR trigger (written by NMI handler) |
| 428 | // verified on PCB: |
| 429 | cpunum_set_input_line(machine, 1, I8085_INTR_LINE, HOLD_LINE); |
| 430 | break; |
| 230 | 431 | |
| 231 | | /******************************************************************************/ |
| 232 | | // Locals |
| 432 | case 3: // c0fb: n.c. |
| 433 | // Note: this is written at end of the INTR handler, however LS138@E3 pin 12 is definitely unconnected |
| 434 | break; |
| 233 | 435 | |
| 234 | | // Equites Hardware |
| 235 | | static int disablejoyport2 = 0; |
| 436 | case 4: // c0fc: increment PROM address (written by NMI handler) |
| 437 | equites_sound_prom_address = (equites_sound_prom_address + 1) & 0x1f; |
| 438 | // FIXME: at this point, the 5-bit value |
| 439 | // memory_region(REGION_SOUND1)[equites_sound_prom_address] & 0x1f |
| 440 | // should be used for something... |
| 441 | break; |
| 236 | 442 | |
| 237 | | /******************************************************************************/ |
| 238 | | // Exports |
| 443 | case 5: // c0fd: n.c. |
| 444 | // Note: this is written at end of the RST75 handler, however LS138@E3 pin 10 is definitely unconnected |
| 445 | break; |
| 239 | 446 | |
| 240 | | // Common |
| 241 | | UINT16 *equites_workram; |
| 242 | | int equites_id; |
| 447 | case 6: // c0fe: 4-bit answer for main CPU (unused) |
| 448 | // Note: this would go to the LS173@B1, which is however unpopulated on the pcb |
| 449 | break; |
| 243 | 450 | |
| 244 | | // Equites Hardware |
| 245 | | int equites_flip; |
| 451 | case 7: // c0ff: sound command latch clear |
| 452 | // Note: solder pad CP1 on the pcb would allow to disable this |
| 453 | soundlatch_clear_w(machine,0,0); |
| 454 | break; |
| 455 | } |
| 456 | } |
| 246 | 457 | |
| 247 | | // Splendor Blast Hardware |
| 248 | | static int splndrbt_flip; |
| 249 | 458 | |
| 459 | #define POPDRUMKIT 0 |
| 460 | #if POPDRUMKIT |
| 461 | static int hihat,cymbal; |
| 462 | #endif |
| 463 | |
| 464 | static WRITE8_HANDLER(equites_8910porta_w) |
| 465 | { |
| 466 | // bongo 1 |
| 467 | sample_set_volume(0, ((data & 0x30)>>4) * 0.33); |
| 468 | if (data & ~ay_port_a & 0x80) |
| 469 | sample_start(0, 0, 0); |
| 470 | |
| 471 | // bongo 2 |
| 472 | sample_set_volume(1, (data & 0x03) * 0.33); |
| 473 | if (data & ~ay_port_a & 0x08) |
| 474 | sample_start(1, 1, 0); |
| 475 | |
| 476 | ay_port_a = data; |
| 477 | |
| 478 | #if POPDRUMKIT |
| 479 | popmessage("HH %d(%d) CYM %d(%d)",hihat,BIT(ay_port_b,6),cymbal,ay_port_b&3); |
| 480 | #endif |
| 481 | } |
| 482 | |
| 483 | static WRITE8_HANDLER(equites_8910portb_w) |
| 484 | { |
| 485 | #if POPDRUMKIT |
| 486 | if (data & ~ay_port_b & 0x08) cymbal++; |
| 487 | if (data & ~ay_port_b & 0x04) hihat++; |
| 488 | #endif |
| 489 | |
| 490 | // bongo 3 |
| 491 | sample_set_volume(2, ((data & 0x30)>>4) * 0.33); |
| 492 | if (data & ~ay_port_b & 0x80) |
| 493 | sample_start(2, 2, 0); |
| 494 | |
| 495 | ay_port_b = data; |
| 496 | |
| 497 | #if POPDRUMKIT |
| 498 | popmessage("HH %d(%d) CYM %d(%d)",hihat,BIT(ay_port_b,6),cymbal,ay_port_b&3); |
| 499 | #endif |
| 500 | } |
| 501 | |
| 502 | |
| 503 | |
| 504 | static void equites_update_dac(void) |
| 505 | { |
| 506 | // there is only one latch, which is used to drive two DAC channels. |
| 507 | // When the channel is enabled in the 4066, it goes to a series of |
| 508 | // low-pass filters. The channel is kept enabled only for a short time, |
| 509 | // then it's disabled again. |
| 510 | // Note that PB0 goes through three filters while PB1 only goes through one. |
| 511 | |
| 512 | if (equites_8155_portb & 1) |
| 513 | DAC_signed_data_w(0, equites_dac_latch); |
| 514 | |
| 515 | if (equites_8155_portb & 2) |
| 516 | DAC_signed_data_w(1, equites_dac_latch); |
| 517 | } |
| 518 | |
| 519 | static WRITE8_HANDLER(equites_dac_latch_w) |
| 520 | { |
| 521 | equites_dac_latch = data<<2; |
| 522 | equites_update_dac(); |
| 523 | } |
| 524 | |
| 525 | static WRITE8_HANDLER(equites_8155_portb_w) |
| 526 | { |
| 527 | equites_8155_portb = data; |
| 528 | equites_update_dac(); |
| 529 | } |
| 530 | |
| 531 | static WRITE8_HANDLER(equites_unk1_w) |
| 532 | { |
| 533 | eq_unk1++; |
| 534 | } |
| 535 | |
| 536 | static void equites_msm5232_gate(int state) |
| 537 | { |
| 538 | } |
| 539 | |
| 250 | 540 | /******************************************************************************/ |
| 251 | 541 | // Local Functions |
| 252 | 542 | |
| r2018 | r2019 | |
| 262 | 552 | cpunum_set_input_line(machine, 0, 1, HOLD_LINE); |
| 263 | 553 | } |
| 264 | 554 | |
| 265 | | // Splendor Blast Hareware |
| 266 | | static INTERRUPT_GEN( splndrbt_interrupt ) |
| 555 | static WRITE8_HANDLER(equites_8155_w) |
| 267 | 556 | { |
| 268 | | if (cpu_getiloops()) |
| 269 | | cpunum_set_input_line(machine, 0, 2, HOLD_LINE); |
| 270 | | else |
| 271 | | cpunum_set_input_line(machine, 0, 1, HOLD_LINE); |
| 557 | static int timer_count; |
| 558 | |
| 559 | // FIXME proper 8155 emulation must be implemented |
| 560 | switch( offset ) |
| 561 | { |
| 562 | case 0: //logerror( "8155 Command register write %x, timer command = %x, interrupt enable = %x, ports = %x\n", data, (data >> 6) & 3, (data >> 4) & 3, data & 0xf ); |
| 563 | if (((data >> 6) & 3) == 3) |
| 564 | timer_adjust_periodic(nmi_timer, ATTOTIME_IN_HZ(XTAL_6_144MHz/2 / timer_count), 0, ATTOTIME_IN_HZ(XTAL_6_144MHz/2 / timer_count)); |
| 565 | break; |
| 566 | case 1: //logerror( "8155 I/O Port A write %x\n", data ); |
| 567 | eq8155_port_a = data; |
| 568 | |
| 569 | sndti_set_output_gain(SOUND_MSM5232, 0, 0, (data >> 4) / 15.0); /* group1 from msm5232 */ |
| 570 | sndti_set_output_gain(SOUND_MSM5232, 0, 1, (data >> 4) / 15.0); /* group1 from msm5232 */ |
| 571 | sndti_set_output_gain(SOUND_MSM5232, 0, 2, (data >> 4) / 15.0); /* group1 from msm5232 */ |
| 572 | sndti_set_output_gain(SOUND_MSM5232, 0, 3, (data >> 4) / 15.0); /* group1 from msm5232 */ |
| 573 | sndti_set_output_gain(SOUND_MSM5232, 0, 4, (data & 0x0f) / 15.0); /* group2 from msm5232 */ |
| 574 | sndti_set_output_gain(SOUND_MSM5232, 0, 5, (data & 0x0f) / 15.0); /* group2 from msm5232 */ |
| 575 | sndti_set_output_gain(SOUND_MSM5232, 0, 6, (data & 0x0f) / 15.0); /* group2 from msm5232 */ |
| 576 | sndti_set_output_gain(SOUND_MSM5232, 0, 7, (data & 0x0f) / 15.0); /* group2 from msm5232 */ |
| 577 | |
| 578 | break; |
| 579 | case 2: //logerror( "8155 I/O Port B write %x\n", data ); |
| 580 | equites_8155_portb_w(machine,0,data); |
| 581 | break; |
| 582 | case 3: //logerror( "8155 I/O Port C (or control) write %x\n", data ); |
| 583 | eq8155_port_c = data; |
| 584 | |
| 585 | sndti_set_output_gain(SOUND_MSM5232, 0, 8, (data & 0x0f) / 15.0); /* SOLO 8' from msm5232 */ |
| 586 | if (data & 0x20) |
| 587 | sndti_set_output_gain(SOUND_MSM5232, 0, 9, (data & 0x0f) / 15.0); /* SOLO 16' from msm5232 */ |
| 588 | else |
| 589 | sndti_set_output_gain(SOUND_MSM5232, 0, 9, 0); /* SOLO 16' from msm5232 */ |
| 590 | |
| 591 | break; |
| 592 | case 4: //logerror( "8155 Timer low 8 bits write %x\n", data ); |
| 593 | timer_count = (timer_count & 0xff00) | data; |
| 594 | break; |
| 595 | case 5: //logerror( "8155 Timer high 6 bits write %x, timer mode %x\n", data & 0x3f, (data >> 6) & 3); |
| 596 | timer_count = (timer_count & 0x00ff) | ((data & 0x3f) << 8); |
| 597 | break; |
| 598 | } |
| 272 | 599 | } |
| 273 | 600 | |
| 274 | 601 | /******************************************************************************/ |
| 275 | 602 | // Main CPU Handlers |
| 276 | 603 | |
| 277 | | // Equites Hardware |
| 278 | | static READ16_HANDLER(equites_joyport_r) |
| 604 | #if HVOLTAGE_DEBUG |
| 605 | static READ16_HANDLER(hvoltage_debug_r) |
| 279 | 606 | { |
| 280 | | int data; |
| 607 | return(readinputport(2)); |
| 608 | } |
| 609 | #endif |
| 281 | 610 | |
| 282 | | data = readinputport(0); |
| 283 | | if (disablejoyport2) data = (data & 0x80ff) | (data<<8 & 0x7f00); |
| 611 | /******************************************************************************/ |
| 612 | // Main CPU Memory Map |
| 284 | 613 | |
| 285 | | return (data); |
| 286 | | } |
| 287 | 614 | |
| 288 | | static WRITE16_HANDLER(equites_flip0_w) |
| 615 | static READ16_HANDLER(equites_spriteram_kludge_r) |
| 289 | 616 | { |
| 290 | | if (ACCESSING_LSB) disablejoyport2 = 1; |
| 291 | | if (ACCESSING_MSB) equites_flip = 0; |
| 617 | if (spriteram16[0] == 0x5555) |
| 618 | return 0; |
| 619 | else |
| 620 | return spriteram16[0]; |
| 292 | 621 | } |
| 293 | 622 | |
| 294 | | static WRITE16_HANDLER(equites_flip1_w) |
| 623 | static READ16_HANDLER(mcu_r) |
| 295 | 624 | { |
| 296 | | if (ACCESSING_LSB) disablejoyport2 = 0; |
| 297 | | if (ACCESSING_MSB) equites_flip = 1; |
| 625 | return 0xff00 | mcu_ram[offset]; |
| 298 | 626 | } |
| 299 | 627 | |
| 300 | | // Splendor Blast Hardware |
| 301 | | #if HVOLTAGE_HACK |
| 302 | | static READ16_HANDLER(hvoltage_debug_r) |
| 628 | static WRITE16_HANDLER(mcu_w) |
| 303 | 629 | { |
| 304 | | return(readinputport(2)); |
| 630 | if (ACCESSING_LSB) |
| 631 | mcu_ram[offset] = data & 0xff; |
| 305 | 632 | } |
| 306 | | #endif |
| 307 | 633 | |
| 308 | | static WRITE16_HANDLER(splndrbt_flip0_w) |
| 634 | static WRITE16_HANDLER( mcu_halt_assert_w ) |
| 309 | 635 | { |
| 310 | | if (ACCESSING_LSB) splndrbt_flip = 0; |
| 311 | | if (ACCESSING_MSB) equites_bgcolor_w(machine, offset, data, 0x00ff); |
| 636 | cpunum_set_input_line(machine, 2, INPUT_LINE_HALT, ASSERT_LINE); |
| 312 | 637 | } |
| 313 | 638 | |
| 314 | | static WRITE16_HANDLER(splndrbt_flip1_w) |
| 639 | static WRITE16_HANDLER( mcu_halt_clear_w ) |
| 315 | 640 | { |
| 316 | | if (ACCESSING_LSB) splndrbt_flip = 1; |
| 641 | cpunum_set_input_line(machine, 2, INPUT_LINE_HALT, CLEAR_LINE); |
| 317 | 642 | } |
| 318 | | #if 0 |
| 319 | | static WRITE16_HANDLER(log16_w) |
| 320 | | { |
| 321 | | int pc = activecpu_get_pc(); |
| 322 | 643 | |
| 323 | | popmessage("%04x: %04x(w)\n", pc, data); |
| 324 | | logerror("%04x: %04x(w)\n", pc, data); |
| 325 | | } |
| 326 | | #endif |
| 327 | | /******************************************************************************/ |
| 328 | | // Main CPU Memory Map |
| 329 | 644 | |
| 330 | | // Equites Hardware |
| 645 | |
| 331 | 646 | static ADDRESS_MAP_START( equites_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 332 | | AM_RANGE(0x000000, 0x00ffff) AM_ROM AM_WRITENOP // ROM area is written several times (dev system?) |
| 647 | AM_RANGE(0x000000, 0x00ffff) AM_ROM // ROM area is written several times (dev system?) |
| 333 | 648 | AM_RANGE(0x040000, 0x040fff) AM_RAM AM_BASE(&equites_workram) |
| 334 | | AM_RANGE(0x080000, 0x080fff) AM_READWRITE(SMH_RAM, equites_charram_w) AM_BASE(&videoram16) |
| 335 | | AM_RANGE(0x0c0000, 0x0c0fff) AM_RAM AM_BASE(&spriteram16_2) |
| 336 | | AM_RANGE(0x100000, 0x100fff) AM_READWRITE(equites_spriteram_r, SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 337 | | AM_RANGE(0x140000, 0x1407ff) AM_READWRITE(equites_8404_r, SMH_RAM) AM_BASE(&equites_8404ram) |
| 649 | AM_RANGE(0x080000, 0x080fff) AM_READWRITE(equites_fg_videoram_r, equites_fg_videoram_w) // 8-bit |
| 650 | AM_RANGE(0x0c0000, 0x0c01ff) AM_RAM AM_WRITE(equites_bg_videoram_w) AM_BASE(&equites_bg_videoram) |
| 651 | AM_RANGE(0x0c0200, 0x0c0fff) AM_RAM |
| 652 | AM_RANGE(0x100000, 0x100001) AM_READ(equites_spriteram_kludge_r) |
| 653 | AM_RANGE(0x100000, 0x1001ff) AM_RAM AM_BASE(&spriteram16) |
| 654 | AM_RANGE(0x140000, 0x1407ff) AM_READWRITE(mcu_r, mcu_w) // 8-bit |
| 338 | 655 | AM_RANGE(0x180000, 0x180001) AM_READWRITE(input_port_1_word_r, soundlatch_word_w) // LSB: sound latch |
| 339 | | AM_RANGE(0x184000, 0x184001) AM_WRITE(equites_flip0_w) // [MMLL] MM: normal screen, LL: use joystick 1 only |
| 340 | | AM_RANGE(0x188000, 0x188001) AM_WRITE(SMH_NOP) // 8404 control port1 |
| 341 | | AM_RANGE(0x18c000, 0x18c001) AM_WRITE(SMH_NOP) // 8404 control port2 |
| 342 | | AM_RANGE(0x1a4000, 0x1a4001) AM_WRITE(equites_flip1_w) // [MMLL] MM: flip screen, LL: use both joysticks |
| 343 | | AM_RANGE(0x1a8000, 0x1a8001) AM_WRITE(SMH_NOP) // 8404 control port3 |
| 344 | | AM_RANGE(0x1ac000, 0x1ac001) AM_WRITE(SMH_NOP) // 8404 control port4 |
| 345 | | AM_RANGE(0x1c0000, 0x1c0001) AM_READWRITE(equites_joyport_r, equites_scrollreg_w) // scroll register[XXYY] |
| 656 | AM_RANGE(0x184000, 0x184001) AM_WRITE(equites_flip0_w) |
| 657 | AM_RANGE(0x188000, 0x188001) AM_WRITE(mcu_halt_clear_w) // 8404 control port1 |
| 658 | AM_RANGE(0x18c000, 0x18c001) AM_WRITENOP // 8404 control port2 |
| 659 | AM_RANGE(0x1a4000, 0x1a4001) AM_WRITE(equites_flip1_w) |
| 660 | AM_RANGE(0x1a8000, 0x1a8001) AM_WRITE(mcu_halt_assert_w) // 8404 control port3 |
| 661 | AM_RANGE(0x1ac000, 0x1ac001) AM_WRITENOP // 8404 control port4 |
| 662 | AM_RANGE(0x1c0000, 0x1c0001) AM_READWRITE(input_port_0_word_r, equites_scrollreg_w) // scroll register[XXYY] |
| 346 | 663 | AM_RANGE(0x380000, 0x380001) AM_WRITE(equites_bgcolor_w) // bg color register[CC--] |
| 347 | | AM_RANGE(0x780000, 0x780001) AM_WRITE(SMH_NOP) // watchdog |
| 664 | AM_RANGE(0x780000, 0x780001) AM_WRITE(watchdog_reset16_w) |
| 348 | 665 | ADDRESS_MAP_END |
| 349 | 666 | |
| 350 | | // Splendor Blast Hardware |
| 351 | 667 | static ADDRESS_MAP_START( splndrbt_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 352 | 668 | AM_RANGE(0x000000, 0x00ffff) AM_ROM |
| 353 | 669 | AM_RANGE(0x040000, 0x040fff) AM_RAM AM_BASE(&equites_workram) // work RAM |
| 354 | 670 | AM_RANGE(0x080000, 0x080001) AM_READ(input_port_0_word_r) // joyport [2211] |
| 355 | 671 | AM_RANGE(0x0c0000, 0x0c0001) AM_READWRITE(input_port_1_word_r, splndrbt_flip0_w) // [MMLL] MM: bg color register, LL: normal screen |
| 356 | | AM_RANGE(0x0c4000, 0x0c4001) AM_WRITE(SMH_NOP) // 8404 control port1 |
| 357 | | AM_RANGE(0x0c8000, 0x0c8001) AM_WRITE(SMH_NOP) // 8404 control port2 |
| 672 | AM_RANGE(0x0c4000, 0x0c4001) AM_WRITE(mcu_halt_clear_w) // 8404 control port1 |
| 673 | AM_RANGE(0x0c8000, 0x0c8001) AM_WRITENOP // 8404 control port2 |
| 358 | 674 | AM_RANGE(0x0cc000, 0x0cc001) AM_WRITE(splndrbt_selchar0_w) // select active char map |
| 359 | 675 | AM_RANGE(0x0e0000, 0x0e0001) AM_WRITE(splndrbt_flip1_w) // [MMLL] MM: not used, LL: flip screen |
| 360 | | AM_RANGE(0x0e4000, 0x0e4001) AM_WRITE(SMH_NOP) // 8404 control port3 |
| 361 | | AM_RANGE(0x0e8000, 0x0e8001) AM_WRITE(SMH_NOP) // 8404 control port4 |
| 676 | AM_RANGE(0x0e4000, 0x0e4001) AM_WRITE(mcu_halt_assert_w) // 8404 control port3 |
| 677 | AM_RANGE(0x0e8000, 0x0e8001) AM_WRITENOP // 8404 control port4 |
| 362 | 678 | AM_RANGE(0x0ec000, 0x0ec001) AM_WRITE(splndrbt_selchar1_w) // select active char map |
| 363 | | AM_RANGE(0x100000, 0x100001) AM_RAM AM_BASE(&splndrbt_scrollx) // scrollx |
| 679 | AM_RANGE(0x100000, 0x100001) AM_WRITE(splndrbt_bg_scrollx_w) |
| 364 | 680 | AM_RANGE(0x140000, 0x140001) AM_WRITE(soundlatch_word_w) // LSB: sound command |
| 365 | | AM_RANGE(0x1c0000, 0x1c0001) AM_RAM AM_BASE(&splndrbt_scrolly) // scrolly |
| 366 | | AM_RANGE(0x180000, 0x1807ff) AM_READWRITE(equites_8404_r, SMH_RAM) AM_BASE(&equites_8404ram) // 8404 RAM |
| 367 | | AM_RANGE(0x200000, 0x200fff) AM_READWRITE(SMH_RAM, splndrbt_charram_w) AM_BASE(&videoram16) AM_SIZE(&videoram_size) // char RAM page 0 |
| 368 | | AM_RANGE(0x201000, 0x201fff) AM_READWRITE(splndrbt_bankedchar_r, splndrbt_bankedchar_w) // banked char RAM page 1,2 |
| 369 | | AM_RANGE(0x400000, 0x400fff) AM_READWRITE(SMH_RAM, splndrbt_scrollram_w) AM_BASE(&spriteram16_2) // scroll RAM 0,1 |
| 370 | | AM_RANGE(0x600000, 0x6001ff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) // sprite RAM 0,1,2 |
| 681 | AM_RANGE(0x1c0000, 0x1c0001) AM_WRITE(splndrbt_bg_scrolly_w) |
| 682 | AM_RANGE(0x180000, 0x1807ff) AM_READWRITE(mcu_r, mcu_w) // 8-bit |
| 683 | AM_RANGE(0x200000, 0x200fff) AM_MIRROR(0x1000) AM_READWRITE(equites_fg_videoram_r, equites_fg_videoram_w) // 8-bit |
| 684 | AM_RANGE(0x400000, 0x4007ff) AM_RAM AM_WRITE(equites_bg_videoram_w) AM_BASE(&equites_bg_videoram) |
| 685 | AM_RANGE(0x400800, 0x400fff) AM_RAM |
| 686 | AM_RANGE(0x600000, 0x6000ff) AM_RAM AM_BASE(&spriteram16) // sprite RAM 0,1 |
| 687 | AM_RANGE(0x600100, 0x6001ff) AM_RAM AM_BASE(&spriteram16_2) // sprite RAM 2 (8-bit) |
| 371 | 688 | ADDRESS_MAP_END |
| 372 | 689 | |
| 690 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 691 | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| 692 | AM_RANGE(0xc000, 0xc000) AM_READ(soundlatch_r) |
| 693 | AM_RANGE(0xc080, 0xc08d) AM_WRITE(MSM5232_0_w) |
| 694 | AM_RANGE(0xc0a0, 0xc0a0) AM_WRITE(AY8910_write_port_0_w) |
| 695 | AM_RANGE(0xc0a1, 0xc0a1) AM_WRITE(AY8910_control_port_0_w) |
| 696 | AM_RANGE(0xc0b0, 0xc0b0) AM_WRITENOP // n.c. |
| 697 | AM_RANGE(0xc0c0, 0xc0c0) AM_WRITE(equites_unk1_w) |
| 698 | AM_RANGE(0xc0d0, 0xc0d0) AM_WRITE(equites_dac_latch_w) // followed by 1 (and usually 0) on 8155 port B |
| 699 | AM_RANGE(0xc0e0, 0xc0e0) AM_WRITE(equites_dac_latch_w) // followed by 2 (and usually 0) on 8155 port B |
| 700 | AM_RANGE(0xc0f8, 0xc0ff) AM_WRITE(equites_c0f8_w) |
| 701 | AM_RANGE(0xe000, 0xe0ff) AM_RAM |
| 702 | ADDRESS_MAP_END |
| 703 | |
| 704 | static ADDRESS_MAP_START( sound_portmap, ADDRESS_SPACE_IO, 8 ) |
| 705 | AM_RANGE(0x00e0, 0x00e5) AM_WRITE(equites_8155_w) |
| 706 | ADDRESS_MAP_END |
| 707 | |
| 708 | |
| 709 | static ADDRESS_MAP_START( mcu_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 710 | AM_RANGE(0x0000, 0x03ff) AM_RAM AM_BASE(&mcu_ram) /* main CPU shared RAM */ |
| 711 | ADDRESS_MAP_END |
| 712 | |
| 373 | 713 | /******************************************************************************/ |
| 374 | 714 | // Common Port Map |
| 375 | 715 | |
| r2018 | r2019 | |
| 407 | 747 | #if EASY_TEST_MODE |
| 408 | 748 | PORT_SERVICE( 0x0300, IP_ACTIVE_HIGH ) |
| 409 | 749 | #endif |
| 410 | | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Cabinet ) ) |
| 750 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW:!6") |
| 411 | 751 | PORT_DIPSETTING( 0x0400, DEF_STR( Upright ) ) |
| 412 | 752 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) |
| 413 | | PORT_DIPNAME( 0x0800, 0x0800, "Buttons" ) |
| 753 | PORT_DIPNAME( 0x0800, 0x0800, "Buttons" ) PORT_DIPLOCATION("SW:!5") |
| 414 | 754 | PORT_DIPSETTING( 0x0000, "2" ) |
| 415 | 755 | PORT_DIPSETTING( 0x0800, "3" ) |
| 416 | | PORT_DIPNAME( 0x1000, 0x0000, DEF_STR ( Lives ) ) |
| 756 | PORT_DIPNAME( 0x1000, 0x0000, DEF_STR ( Lives ) ) PORT_DIPLOCATION("SW:!4") |
| 417 | 757 | PORT_DIPSETTING( 0x0000, "3" ) |
| 418 | 758 | PORT_DIPSETTING( 0x1000, "5" ) |
| 419 | | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR ( Difficulty ) ) |
| 759 | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR ( Difficulty ) ) PORT_DIPLOCATION("SW:!3") |
| 420 | 760 | PORT_DIPSETTING( 0x0000, DEF_STR( Normal ) ) |
| 421 | 761 | PORT_DIPSETTING( 0x2000, DEF_STR( Hard ) ) |
| 422 | | PORT_DIPNAME( 0xc000, 0x0000, DEF_STR( Coinage ) ) |
| 762 | PORT_DIPNAME( 0xc000, 0x0000, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW:!2,!1") |
| 423 | 763 | PORT_DIPSETTING( 0xc000, "A 2C/1C B 3C/1C" ) |
| 424 | 764 | PORT_DIPSETTING( 0x0000, "A 1C/1C B 2C/1C" ) |
| 425 | 765 | PORT_DIPSETTING( 0x8000, "A 1C/2C B 1C/4C" ) |
| 426 | 766 | PORT_DIPSETTING( 0x4000, "A 1C/3C B 1C/6C" ) |
| 767 | |
| 768 | /* this is actually a variable resistor */ |
| 769 | PORT_START_TAG(FRQ_ADJUSTER_TAG) |
| 770 | PORT_ADJUSTER(50, "MSM5232 Clock") |
| 427 | 771 | INPUT_PORTS_END |
| 428 | 772 | |
| 429 | 773 | /******************************************************************************/ |
| 774 | // Gekisou Port Map |
| 775 | |
| 776 | static INPUT_PORTS_START( gekisou ) |
| 777 | PORT_START |
| 778 | EQUITES_PLAYER_INPUT_LSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START1 ) |
| 779 | EQUITES_PLAYER_INPUT_MSB( IPT_BUTTON1, IPT_BUTTON2, IPT_BUTTON3, IPT_START2 ) |
| 780 | |
| 781 | PORT_START |
| 782 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 783 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 784 | #if EASY_TEST_MODE |
| 785 | PORT_SERVICE( 0x0300, IP_ACTIVE_HIGH ) |
| 786 | #endif |
| 787 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR ( Unknown ) ) |
| 788 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 789 | PORT_DIPSETTING( 0x0400, DEF_STR( On ) ) |
| 790 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR ( Unknown ) ) |
| 791 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 792 | PORT_DIPSETTING( 0x0800, DEF_STR( On ) ) |
| 793 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR ( Unknown ) ) |
| 794 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 795 | PORT_DIPSETTING( 0x1000, DEF_STR( On ) ) |
| 796 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR ( Unknown ) ) |
| 797 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 798 | PORT_DIPSETTING( 0x2000, DEF_STR( On ) ) |
| 799 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR ( Unknown ) ) |
| 800 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 801 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) |
| 802 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR ( Unknown ) ) |
| 803 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 804 | PORT_DIPSETTING( 0x8000, DEF_STR( On ) ) |
| 805 | |
| 806 | /* this is actually a variable resistor */ |
| 807 | PORT_START_TAG(FRQ_ADJUSTER_TAG) |
| 808 | PORT_ADJUSTER(50, "MSM5232 Clock") |
| 809 | INPUT_PORTS_END |
| 810 | |
| 811 | /******************************************************************************/ |
| 430 | 812 | // Bull Fighter Port Map |
| 431 | 813 | |
| 432 | 814 | static INPUT_PORTS_START( bullfgtr ) |
| r2018 | r2019 | |
| 440 | 822 | #if EASY_TEST_MODE |
| 441 | 823 | PORT_SERVICE( 0x0300, IP_ACTIVE_HIGH ) |
| 442 | 824 | #endif |
| 443 | | PORT_DIPNAME( 0x0c00, 0x0000, DEF_STR( Game_Time ) ) |
| 825 | PORT_DIPNAME( 0x0c00, 0x0000, DEF_STR( Game_Time ) ) PORT_DIPLOCATION("SW:!6,!5") |
| 444 | 826 | PORT_DIPSETTING( 0x0c00, "3:00" ) |
| 445 | 827 | PORT_DIPSETTING( 0x0800, "2:00" ) |
| 446 | 828 | PORT_DIPSETTING( 0x0000, "1:30" ) |
| 447 | 829 | PORT_DIPSETTING( 0x0400, "1:00" ) |
| 448 | | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR ( Difficulty ) ) |
| 830 | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR ( Difficulty ) ) PORT_DIPLOCATION("SW:!3") |
| 449 | 831 | PORT_DIPSETTING( 0x0000, DEF_STR( Normal ) ) |
| 450 | 832 | PORT_DIPSETTING( 0x2000, DEF_STR( Hard ) ) |
| 451 | | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) |
| 833 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW:!2") |
| 452 | 834 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 453 | 835 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) |
| 454 | | PORT_DIPNAME( 0x9000, 0x0000, DEF_STR( Coinage ) ) |
| 455 | | // PORT_DIPSETTING( 0x9000, "A 1C/1C B 1C/1C" ) // More than 1 credit per player needed |
| 456 | | PORT_DIPSETTING( 0x0000, "A 1C/1C B 1C/1C" ) |
| 836 | PORT_DIPNAME( 0x9000, 0x0000, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW:!4,!1") |
| 837 | PORT_DIPSETTING( 0x9000, "1C/1C (3C per player)" ) |
| 838 | PORT_DIPSETTING( 0x0000, "1C/1C (1C per player)" ) |
| 457 | 839 | PORT_DIPSETTING( 0x8000, "A 1C/1C B 1C/4C" ) |
| 458 | 840 | PORT_DIPSETTING( 0x1000, "A 1C/2C B 1C/3C" ) |
| 841 | |
| 842 | /* this is actually a variable resistor */ |
| 843 | PORT_START_TAG(FRQ_ADJUSTER_TAG) |
| 844 | PORT_ADJUSTER(50, "MSM5232 Clock") |
| 459 | 845 | INPUT_PORTS_END |
| 460 | 846 | |
| 461 | 847 | /******************************************************************************/ |
| r2018 | r2019 | |
| 473 | 859 | #if EASY_TEST_MODE |
| 474 | 860 | PORT_SERVICE( 0x0300, IP_ACTIVE_HIGH ) |
| 475 | 861 | #endif |
| 476 | | PORT_DIPNAME( 0x0c00, 0x0000, "Game Points" ) |
| 862 | PORT_DIPNAME( 0x0c00, 0x0000, "Game Points" ) PORT_DIPLOCATION("SW:!6,!5") |
| 477 | 863 | PORT_DIPSETTING( 0x0800, "3000" ) |
| 478 | 864 | PORT_DIPSETTING( 0x0400, "4000" ) |
| 479 | 865 | PORT_DIPSETTING( 0x0000, "5000" ) |
| 480 | 866 | PORT_DIPSETTING( 0x0c00, "7000" ) |
| 481 | | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR( Unused ) ) |
| 867 | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR( Unused ) ) PORT_DIPLOCATION("SW:!3") |
| 482 | 868 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 483 | 869 | PORT_DIPSETTING( 0x2000, DEF_STR( On ) ) |
| 484 | | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) |
| 870 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW:!2") |
| 485 | 871 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 486 | 872 | PORT_DIPSETTING( 0x4000, DEF_STR( On ) ) |
| 487 | | PORT_DIPNAME( 0x9000, 0x0000, DEF_STR( Coinage ) ) |
| 873 | PORT_DIPNAME( 0x9000, 0x0000, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW:!4,!1") |
| 488 | 874 | PORT_DIPSETTING( 0x9000, "1C/1C (2C per player)" ) |
| 489 | 875 | PORT_DIPSETTING( 0x0000, "1C/1C (1C per player)" ) |
| 490 | 876 | PORT_DIPSETTING( 0x8000, "1C/1C (1C for 2 players)" ) |
| 491 | 877 | PORT_DIPSETTING( 0x1000, "1C/3C (1C per player)" ) |
| 878 | |
| 879 | /* this is actually a variable resistor */ |
| 880 | PORT_START_TAG(FRQ_ADJUSTER_TAG) |
| 881 | PORT_ADJUSTER(50, "MSM5232 Clock") |
| 492 | 882 | INPUT_PORTS_END |
| 493 | 883 | |
| 494 | 884 | /******************************************************************************/ |
| r2018 | r2019 | |
| 505 | 895 | #if EASY_TEST_MODE |
| 506 | 896 | PORT_SERVICE( 0x0300, IP_ACTIVE_HIGH ) |
| 507 | 897 | #endif |
| 508 | | PORT_DIPNAME( 0x0c00, 0x0000, DEF_STR ( Difficulty ) ) |
| 898 | PORT_DIPNAME( 0x0c00, 0x0000, DEF_STR ( Difficulty ) ) PORT_DIPLOCATION("SW:!6,!5") |
| 509 | 899 | PORT_DIPSETTING( 0x0400, DEF_STR( Easy ) ) |
| 510 | 900 | PORT_DIPSETTING( 0x0000, DEF_STR( Normal ) ) |
| 511 | 901 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) |
| 512 | 902 | PORT_DIPSETTING( 0x0c00, DEF_STR( Hardest ) ) |
| 513 | | PORT_DIPNAME( 0x1000, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 903 | PORT_DIPNAME( 0x1000, 0x0000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW:!4") |
| 514 | 904 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 515 | 905 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 516 | | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Cabinet ) ) |
| 906 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW:!3") |
| 517 | 907 | PORT_DIPSETTING( 0x2000, DEF_STR( Upright ) ) |
| 518 | 908 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) |
| 519 | | PORT_DIPNAME( 0xc000, 0x0000, DEF_STR( Coinage ) ) |
| 909 | PORT_DIPNAME( 0xc000, 0x0000, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW:!2,!1") |
| 520 | 910 | PORT_DIPSETTING( 0xc000, "A 2C/1C B 3C/1C" ) |
| 521 | 911 | PORT_DIPSETTING( 0x0000, "A 1C/1C B 2C/1C" ) |
| 522 | 912 | PORT_DIPSETTING( 0x4000, "A 1C/2C B 1C/4C" ) |
| 523 | 913 | PORT_DIPSETTING( 0x8000, "A 1C/3C B 1C/6C" ) |
| 914 | |
| 915 | /* this is actually a variable resistor */ |
| 916 | PORT_START_TAG(FRQ_ADJUSTER_TAG) |
| 917 | PORT_ADJUSTER(50, "MSM5232 Clock") |
| 524 | 918 | INPUT_PORTS_END |
| 525 | 919 | |
| 526 | 920 | /******************************************************************************/ |
| r2018 | r2019 | |
| 528 | 922 | |
| 529 | 923 | static INPUT_PORTS_START( hvoltage ) |
| 530 | 924 | PORT_START |
| 531 | | EQUITES_PLAYER_INPUT_LSB( IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN, IPT_START1 ) |
| 532 | | EQUITES_PLAYER_INPUT_MSB( IPT_BUTTON1, IPT_BUTTON2, IPT_UNKNOWN, IPT_START2 ) |
| 925 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 926 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 927 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 928 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 929 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 930 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 931 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Cabinet ) ) |
| 932 | PORT_DIPSETTING( 0x0040, DEF_STR( Upright ) ) |
| 933 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) |
| 934 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_START1 ) |
| 935 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 936 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 937 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 938 | PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 939 | PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 940 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL |
| 941 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) PORT_COCKTAIL |
| 942 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_START2 ) |
| 533 | 943 | |
| 534 | 944 | PORT_START |
| 535 | 945 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| r2018 | r2019 | |
| 537 | 947 | #if EASY_TEST_MODE |
| 538 | 948 | PORT_SERVICE( 0x0300, IP_ACTIVE_HIGH ) |
| 539 | 949 | #endif |
| 540 | | #if HVOLTAGE_HACK |
| 541 | | PORT_DIPNAME( 0x0400, 0x0000, "Invulnerability" ) |
| 950 | #if HVOLTAGE_DEBUG |
| 951 | PORT_DIPNAME( 0x0400, 0x0000, "Invulnerability" ) PORT_DIPLOCATION("SW:!6") |
| 542 | 952 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 543 | 953 | PORT_DIPSETTING( 0x0400, DEF_STR( On ) ) |
| 544 | | PORT_DIPNAME( 0x0800, 0x0000, "Need to kill Bosses" ) |
| 954 | PORT_DIPNAME( 0x0800, 0x0000, "Need to kill Bosses" ) PORT_DIPLOCATION("SW:!5") |
| 545 | 955 | PORT_DIPSETTING( 0x0800, DEF_STR( No ) ) |
| 546 | 956 | PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) ) |
| 547 | 957 | #else |
| 548 | | PORT_DIPNAME( 0x0c00, 0x0000, DEF_STR ( Difficulty ) ) |
| 958 | PORT_DIPNAME( 0x0c00, 0x0000, DEF_STR ( Difficulty ) ) PORT_DIPLOCATION("SW:!6,!5") |
| 549 | 959 | PORT_DIPSETTING( 0x0400, DEF_STR( Easy ) ) |
| 550 | 960 | PORT_DIPSETTING( 0x0000, DEF_STR( Normal ) ) |
| 551 | 961 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) |
| 552 | 962 | PORT_DIPSETTING( 0x0c00, DEF_STR( Hardest ) ) |
| 553 | 963 | #endif |
| 554 | | PORT_DIPNAME( 0x1000, 0x0000, DEF_STR ( Lives ) ) // See notes |
| 964 | PORT_DIPNAME( 0x1000, 0x0000, DEF_STR ( Lives ) ) PORT_DIPLOCATION("SW:!4") // See notes |
| 555 | 965 | PORT_DIPSETTING( 0x0000, "3" ) |
| 556 | 966 | PORT_DIPSETTING( 0x1000, "5" ) |
| 557 | | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR ( Bonus_Life ) ) |
| 967 | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR ( Bonus_Life ) ) PORT_DIPLOCATION("SW:!3") |
| 558 | 968 | PORT_DIPSETTING( 0x0000, "50k, 100k then every 100k" ) |
| 559 | 969 | PORT_DIPSETTING( 0x2000, "50k, 200k then every 100k" ) |
| 560 | | PORT_DIPNAME( 0xc000, 0x0000, DEF_STR( Coinage ) ) // See notes |
| 970 | PORT_DIPNAME( 0xc000, 0x0000, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW:!2,!1") // See notes |
| 561 | 971 | PORT_DIPSETTING( 0xc000, "A 2C/1C B 3C/1C" ) |
| 562 | 972 | PORT_DIPSETTING( 0x0000, "A 1C/1C B 2C/1C" ) |
| 563 | 973 | PORT_DIPSETTING( 0x4000, "A 1C/2C B 1C/4C" ) |
| 564 | 974 | PORT_DIPSETTING( 0x8000, "A 1C/3C B 1C/6C" ) |
| 565 | 975 | |
| 566 | | #if HVOLTAGE_HACK |
| 976 | #if HVOLTAGE_DEBUG |
| 567 | 977 | /* Fake port to handle debug mode */ |
| 568 | 978 | PORT_START |
| 569 | 979 | PORT_DIPNAME( 0xffff, 0xffff, "Debug Mode" ) |
| 570 | 980 | PORT_DIPSETTING( 0xffff, DEF_STR( Off ) ) |
| 571 | 981 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 572 | 982 | #endif |
| 983 | |
| 984 | /* this is actually a variable resistor */ |
| 985 | PORT_START_TAG(FRQ_ADJUSTER_TAG) |
| 986 | PORT_ADJUSTER(50, "MSM5232 Clock") |
| 573 | 987 | INPUT_PORTS_END |
| 574 | 988 | |
| 575 | 989 | /******************************************************************************/ |
| 576 | 990 | // Graphics Layouts |
| 577 | 991 | |
| 578 | | // Equites Hardware |
| 579 | | static const gfx_layout eq_charlayout = |
| 992 | static const gfx_layout charlayout = |
| 580 | 993 | { |
| 581 | 994 | 8, 8, |
| 582 | | 256, |
| 995 | RGN_FRAC(1,1), |
| 583 | 996 | 2, |
| 584 | 997 | { 0, 4 }, |
| 585 | 998 | { STEP4(8*8+3,-1), STEP4(0*8+3,-1) }, |
| r2018 | r2019 | |
| 587 | 1000 | 16*8 |
| 588 | 1001 | }; |
| 589 | 1002 | |
| 590 | | static const gfx_layout eq_tilelayout = |
| 1003 | static const gfx_layout tilelayout_3bpp = |
| 591 | 1004 | { |
| 592 | 1005 | 16, 16, |
| 593 | | 256, |
| 1006 | RGN_FRAC(1,2), |
| 594 | 1007 | 3, |
| 595 | | { 0, 0x4000*8, 0x4000*8+4 }, |
| 596 | | { STEP4(128*1+3,-1), STEP4(128*2+3,-1), STEP4(128*3+3,-1), STEP4(128*0+3,-1) }, |
| 1008 | { 4, RGN_FRAC(1,2), RGN_FRAC(1,2)+4 }, |
| 1009 | { STEP4(16*8+3,-1), STEP4(32*8+3,-1), STEP4(48*8+3,-1), STEP4(0*8+3,-1) }, |
| 597 | 1010 | { STEP16(0,8) }, |
| 598 | 1011 | 64*8 |
| 599 | 1012 | }; |
| 600 | 1013 | |
| 601 | | static const gfx_layout eq_spritelayout = |
| 1014 | static const gfx_layout tilelayout_2bpp = |
| 602 | 1015 | { |
| 603 | | 16, 14, |
| 604 | | 256, |
| 605 | | 3, |
| 606 | | { 0, 0x4000*8, 0x4000*8+4 }, |
| 607 | | { STEP4(128*0+3,-1), STEP4(128*1+3,-1), STEP4(128*2+3,-1), STEP4(128*3+3,-1) }, |
| 608 | | { STEP8(1*8,8), STEP4(1*8+8*8,8), STEP2(1*8+12*8,8) }, |
| 609 | | 64*8 |
| 610 | | }; |
| 611 | | |
| 612 | | static GFXDECODE_START( equites ) |
| 613 | | GFXDECODE_ENTRY( REGION_GFX1, 0, eq_charlayout, 0, 32 ) // chars |
| 614 | | GFXDECODE_ENTRY( REGION_GFX2, 0, eq_tilelayout, 128, 16 ) // tile set0 |
| 615 | | GFXDECODE_ENTRY( REGION_GFX3, 0, eq_tilelayout, 128, 16 ) // tile set1 |
| 616 | | GFXDECODE_ENTRY( REGION_GFX4, 0, eq_spritelayout, 256, 16 ) // sprite set0 |
| 617 | | GFXDECODE_ENTRY( REGION_GFX5, 0, eq_spritelayout, 256, 16 ) // sprite set1 |
| 618 | | GFXDECODE_END |
| 619 | | |
| 620 | | // Splendor Blast Hardware |
| 621 | | static const gfx_layout sp_charlayout = |
| 622 | | { |
| 623 | | 8, 8, |
| 624 | | 512, |
| 625 | | 2, |
| 626 | | { 0, 4 }, |
| 627 | | { STEP4(8*8+3,-1), STEP4(0*8+3,-1) }, |
| 628 | | { STEP8(0*8,8) }, |
| 629 | | 16*8 |
| 630 | | }; |
| 631 | | |
| 632 | | static const gfx_layout sp_tilelayout = |
| 633 | | { |
| 634 | 1016 | 16,16, |
| 635 | | 256, |
| 1017 | RGN_FRAC(1,1), |
| 636 | 1018 | 2, |
| 637 | 1019 | { 0, 4 }, |
| 638 | 1020 | { STEP4(16*8+3,-1), STEP4(32*8+3,-1), STEP4(48*8+3,-1), STEP4(0*8+3,-1) }, |
| r2018 | r2019 | |
| 640 | 1022 | 64*8 |
| 641 | 1023 | }; |
| 642 | 1024 | |
| 643 | | static const gfx_layout sp_spritelayout = |
| 1025 | static const gfx_layout spritelayout_16x14 = |
| 644 | 1026 | { |
| 1027 | 16, 14, // 16x14, very unusual |
| 1028 | RGN_FRAC(1,2), |
| 1029 | 3, |
| 1030 | { 4, RGN_FRAC(1,2), RGN_FRAC(1,2)+4 }, |
| 1031 | { STEP4(128*0+3,-1), STEP4(128*1+3,-1), STEP4(128*2+3,-1), STEP4(128*3+3,-1) }, |
| 1032 | { 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, |
| 1033 | 8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8 }, |
| 1034 | 64*8 |
| 1035 | }; |
| 1036 | |
| 1037 | static const gfx_layout spritelayout_32x32 = |
| 1038 | { |
| 645 | 1039 | 32,32, |
| 646 | | 128, |
| 1040 | RGN_FRAC(1,2), |
| 647 | 1041 | 3, |
| 648 | | { 0, 0x8000*8, 0x8000*8+4 }, |
| 1042 | { 4, RGN_FRAC(1,2), RGN_FRAC(1,2)+4 }, |
| 649 | 1043 | { STEP4(0*8+3,-1), STEP4(1*8+3,-1), STEP4(2*8+3,-1), STEP4(3*8+3,-1), STEP4(4*8+3,-1), STEP4(5*8+3,-1), STEP4(6*8+3,-1), STEP4(7*8+3,-1) }, |
| 650 | 1044 | { STEP16(0*8*8,8*8), STEP16(31*8*8,-8*8) }, |
| 651 | | 8*32*8 |
| 1045 | 256*8 |
| 652 | 1046 | }; |
| 653 | 1047 | |
| 1048 | |
| 1049 | static GFXDECODE_START( equites ) |
| 1050 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0x000, 0x80/4 ) // chars |
| 1051 | GFXDECODE_ENTRY( REGION_GFX2, 0, tilelayout_3bpp, 0x080, 0x80/8 ) // tiles |
| 1052 | GFXDECODE_ENTRY( REGION_GFX3, 0, spritelayout_16x14, 0x100, 0x80/8 ) // sprites |
| 1053 | GFXDECODE_END |
| 1054 | |
| 654 | 1055 | static GFXDECODE_START( splndrbt ) |
| 655 | | GFXDECODE_ENTRY( REGION_GFX1, 0, sp_charlayout, 0, 256/4 ) // 512 4-color chars |
| 656 | | GFXDECODE_ENTRY( REGION_GFX2, 0, sp_tilelayout, 256, 256/4 ) // 256 4-color tiles |
| 657 | | GFXDECODE_ENTRY( REGION_GFX3, 0, sp_tilelayout, 256, 256/4 ) // 256 4-color tiles |
| 658 | | GFXDECODE_ENTRY( REGION_GFX4, 0, sp_spritelayout, 512, 256/8 ) // 256 8-color sprites |
| 1056 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0x000, 0x100/4 ) // chars |
| 1057 | GFXDECODE_ENTRY( REGION_GFX2, 0, tilelayout_2bpp, 0x100, 0x080/4 ) // tiles |
| 1058 | GFXDECODE_ENTRY( REGION_GFX3, 0, spritelayout_32x32, 0x180, 0x100/8 ) // sprites |
| 659 | 1059 | GFXDECODE_END |
| 660 | 1060 | |
| 1061 | |
| 1062 | |
| 661 | 1063 | /******************************************************************************/ |
| 662 | | // Hardware Definitions |
| 663 | 1064 | |
| 1065 | static const struct MSM5232interface equites_5232intf = |
| 1066 | { |
| 1067 | { 0.47e-6, 0.47e-6, 0.47e-6, 0.47e-6, 0.47e-6, 0.47e-6, 0.47e-6, 0.47e-6 }, // verified |
| 1068 | equites_msm5232_gate |
| 1069 | }; |
| 1070 | |
| 1071 | |
| 1072 | static const struct AY8910interface equites_8910intf = |
| 1073 | { |
| 1074 | 0, |
| 1075 | 0, |
| 1076 | equites_8910porta_w, |
| 1077 | equites_8910portb_w |
| 1078 | }; |
| 1079 | |
| 1080 | |
| 1081 | static const char *const alphamc07_sample_names[] = |
| 1082 | { |
| 1083 | "*alphamc07", |
| 1084 | "bongo1.wav", |
| 1085 | "bongo2.wav", |
| 1086 | "bongo3.wav", |
| 1087 | 0 |
| 1088 | }; |
| 1089 | |
| 1090 | const struct Samplesinterface alphamc07_samples_interface = |
| 1091 | { |
| 1092 | 3, /* 3 channels */ |
| 1093 | alphamc07_sample_names |
| 1094 | }; |
| 1095 | |
| 1096 | |
| 1097 | #define MSM5232_BASE_VOLUME 1.0 |
| 1098 | |
| 1099 | // the sound board is the same in all games |
| 1100 | static MACHINE_DRIVER_START( common_sound ) |
| 1101 | |
| 1102 | MDRV_CPU_ADD(8085A, XTAL_6_144MHz) /* verified on pcb */ |
| 1103 | MDRV_CPU_PROGRAM_MAP(sound_map,0) |
| 1104 | MDRV_CPU_IO_MAP(sound_portmap,0) |
| 1105 | |
| 1106 | MDRV_SOUND_START(equites) |
| 1107 | |
| 1108 | /* sound hardware */ |
| 1109 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 1110 | |
| 1111 | MDRV_SOUND_ADD(MSM5232, MSM5232_MAX_CLOCK) // will be adjusted at runtime through PORT_ADJUSTER |
| 1112 | MDRV_SOUND_CONFIG(equites_5232intf) |
| 1113 | MDRV_SOUND_ROUTE(0, "mono", MSM5232_BASE_VOLUME/2.2) // pin 28 2'-1 : 22k resistor |
| 1114 | MDRV_SOUND_ROUTE(1, "mono", MSM5232_BASE_VOLUME/1.5) // pin 29 4'-1 : 15k resistor |
| 1115 | MDRV_SOUND_ROUTE(2, "mono", MSM5232_BASE_VOLUME) // pin 30 8'-1 : 10k resistor |
| 1116 | MDRV_SOUND_ROUTE(3, "mono", MSM5232_BASE_VOLUME) // pin 31 16'-1 : 10k resistor |
| 1117 | MDRV_SOUND_ROUTE(4, "mono", MSM5232_BASE_VOLUME/2.2) // pin 36 2'-2 : 22k resistor |
| 1118 | MDRV_SOUND_ROUTE(5, "mono", MSM5232_BASE_VOLUME/1.5) // pin 35 4'-2 : 15k resistor |
| 1119 | MDRV_SOUND_ROUTE(6, "mono", MSM5232_BASE_VOLUME) // pin 34 8'-2 : 10k resistor |
| 1120 | MDRV_SOUND_ROUTE(7, "mono", MSM5232_BASE_VOLUME) // pin 33 16'-2 : 10k resistor |
| 1121 | MDRV_SOUND_ROUTE(8, "mono", 1.0) // pin 1 SOLO 8' |
| 1122 | MDRV_SOUND_ROUTE(9, "mono", 1.0) // pin 2 SOLO 16' |
| 1123 | // pin 22 Noise Output not mapped |
| 1124 | |
| 1125 | MDRV_SOUND_ADD(AY8910, XTAL_6_144MHz/4) /* verified on pcb */ |
| 1126 | MDRV_SOUND_CONFIG(equites_8910intf) |
| 1127 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) |
| 1128 | |
| 1129 | MDRV_SOUND_ADD(DAC, 0) |
| 1130 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 1131 | |
| 1132 | MDRV_SOUND_ADD(DAC, 0) |
| 1133 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 1134 | |
| 1135 | MDRV_SOUND_ADD(SAMPLES, 0) |
| 1136 | MDRV_SOUND_CONFIG(alphamc07_samples_interface) |
| 1137 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) |
| 1138 | MACHINE_DRIVER_END |
| 1139 | |
| 1140 | /******************************************************************************/ |
| 1141 | |
| 664 | 1142 | static MACHINE_DRIVER_START( equites ) |
| 665 | 1143 | |
| 666 | 1144 | /* basic machine hardware */ |
| r2018 | r2019 | |
| 668 | 1146 | MDRV_CPU_PROGRAM_MAP(equites_map,0) |
| 669 | 1147 | MDRV_CPU_VBLANK_INT_HACK(equites_interrupt, 2) |
| 670 | 1148 | |
| 1149 | MDRV_IMPORT_FROM(common_sound) |
| 1150 | |
| 1151 | MDRV_CPU_ADD(ALPHA8301, 4000000/8) |
| 1152 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 1153 | |
| 671 | 1154 | /* video hardware */ |
| 672 | | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) |
| 673 | | |
| 674 | 1155 | MDRV_SCREEN_ADD("main", RASTER) |
| 675 | 1156 | MDRV_SCREEN_REFRESH_RATE(60) |
| 676 | | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) |
| 677 | 1157 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 678 | | MDRV_SCREEN_SIZE(256 +BMPAD*2, 256 +BMPAD*2) |
| 679 | | MDRV_SCREEN_VISIBLE_AREA(0 +BMPAD, 256-1 +BMPAD, 24 +BMPAD, 232-1 +BMPAD) |
| 1158 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1159 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 3*8, 29*8-1) |
| 680 | 1160 | |
| 681 | | MDRV_PALETTE_LENGTH(384) |
| 682 | 1161 | MDRV_GFXDECODE(equites) |
| 683 | | |
| 1162 | MDRV_PALETTE_LENGTH(0x180) |
| 684 | 1163 | MDRV_PALETTE_INIT(equites) |
| 685 | 1164 | MDRV_VIDEO_START(equites) |
| 686 | 1165 | MDRV_VIDEO_UPDATE(equites) |
| 687 | 1166 | |
| 688 | | /* sound hardware */ |
| 689 | | MDRV_IMPORT_FROM(equites_sound) |
| 690 | | |
| 1167 | MDRV_MACHINE_RESET(equites) |
| 691 | 1168 | MACHINE_DRIVER_END |
| 692 | 1169 | |
| 693 | 1170 | static MACHINE_DRIVER_START( splndrbt ) |
| r2018 | r2019 | |
| 695 | 1172 | /* basic machine hardware */ |
| 696 | 1173 | MDRV_CPU_ADD(M68000, XTAL_24MHz/4) /* 68000P8 running at 6mhz, verified on pcb */ |
| 697 | 1174 | MDRV_CPU_PROGRAM_MAP(splndrbt_map, 0) |
| 698 | | MDRV_CPU_VBLANK_INT_HACK(splndrbt_interrupt, 2) |
| 1175 | MDRV_CPU_VBLANK_INT_HACK(equites_interrupt, 2) |
| 699 | 1176 | |
| 700 | | MDRV_MACHINE_RESET(splndrbt) |
| 1177 | MDRV_IMPORT_FROM(common_sound) |
| 701 | 1178 | |
| 1179 | MDRV_CPU_ADD(ALPHA8301, 4000000/8) |
| 1180 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 1181 | |
| 702 | 1182 | /* video hardware */ |
| 703 | | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK) |
| 704 | | |
| 705 | 1183 | MDRV_SCREEN_ADD("main", RASTER) |
| 706 | 1184 | MDRV_SCREEN_REFRESH_RATE(60) |
| 707 | | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(600)) |
| 708 | 1185 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 709 | | MDRV_SCREEN_SIZE(256, 256) |
| 710 | | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 64, 256-1) |
| 1186 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 1187 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 28*8-1) |
| 711 | 1188 | |
| 712 | | MDRV_PALETTE_LENGTH(1536) |
| 713 | 1189 | MDRV_GFXDECODE(splndrbt) |
| 714 | | |
| 1190 | MDRV_PALETTE_LENGTH(0x280) |
| 715 | 1191 | MDRV_PALETTE_INIT(splndrbt) |
| 716 | 1192 | MDRV_VIDEO_START(splndrbt) |
| 717 | 1193 | MDRV_VIDEO_UPDATE(splndrbt) |
| 718 | 1194 | |
| 719 | | /* sound hardware */ |
| 720 | | MDRV_IMPORT_FROM(equites_sound) |
| 721 | | |
| 1195 | MDRV_MACHINE_RESET(equites) |
| 722 | 1196 | MACHINE_DRIVER_END |
| 723 | 1197 | |
| 1198 | |
| 724 | 1199 | /******************************************************************************/ |
| 725 | 1200 | // Equites ROM Map |
| 726 | 1201 | |
| 1202 | /* |
| 1203 | Equites by ALPHA DENSHI CO. (1984) |
| 1204 | |
| 1205 | Note: CPU - Main PCB |
| 1206 | SND - Sound PCB NO.59 MC07 |
| 1207 | VID - Video PCB |
| 1208 | |
| 1209 | Main processor - 68000 2.988MHz |
| 1210 | |
| 1211 | Video processor - ALPHA-8303 custom |
| 1212 | |
| 1213 | Sound processor - 8085 3.073MHz |
| 1214 | - TMP8155 RIOTs (RAM & I/O Timers) |
| 1215 | - MSM5232R3 |
| 1216 | - AY-3-8910 |
| 1217 | */ |
| 727 | 1218 | ROM_START( equites ) |
| 728 | 1219 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) // 68000 ROMs |
| 729 | | ROM_LOAD16_BYTE( "ep1", 0x00001, 0x2000, CRC(6a4fe5f7) SHA1(5ff1594a2cee28cc7d59448eb57473088ac6f14b) ) |
| 730 | | ROM_LOAD16_BYTE( "ep5", 0x00000, 0x2000, CRC(00faa3eb) SHA1(6b31d041ad4ca81eda36487f659997cc4030f23c) ) |
| 1220 | ROM_LOAD16_BYTE( "ep1", 0x00001, 0x2000, CRC(6a4fe5f7) SHA1(5ff1594a2cee28cc7d59448eb57473088ac6f14b) ) |
| 1221 | ROM_LOAD16_BYTE( "ep5", 0x00000, 0x2000, CRC(00faa3eb) SHA1(6b31d041ad4ca81eda36487f659997cc4030f23c) ) |
| 731 | 1222 | ROM_LOAD16_BYTE( "epr-ep2.12d", 0x04001, 0x2000, CRC(0c1bc2e7) SHA1(4c3510dfeee2fb2f295a32e2fe2021c4c7f08e8a) ) |
| 732 | 1223 | ROM_LOAD16_BYTE( "epr-ep6.12b", 0x04000, 0x2000, CRC(bbed3dcc) SHA1(46ef2c60ccfa76a187b19dc0b7e6c594050b183f) ) |
| 733 | 1224 | ROM_LOAD16_BYTE( "epr-ep3.10d", 0x08001, 0x2000, CRC(5f2d059a) SHA1(03fe904a445cce89462788fecfd61ac53f4dd17f) ) |
| 734 | 1225 | ROM_LOAD16_BYTE( "epr-ep7.10b", 0x08000, 0x2000, CRC(a8f6b8aa) SHA1(ee4edb54c147a95944482e998616b025642a268a) ) |
| 735 | | ROM_LOAD16_BYTE( "ep4", 0x0c001, 0x2000, CRC(b636e086) SHA1(5fc23a86b6051ecf6ff3f95f810f0eb471a203b0) ) |
| 736 | | ROM_LOAD16_BYTE( "ep8", 0x0c000, 0x2000, CRC(d7ee48b0) SHA1(d0398704d8e89f2b0a9ed05e18f7c644d1e047c0) ) |
| 1226 | ROM_LOAD16_BYTE( "ep4", 0x0c001, 0x2000, CRC(b636e086) SHA1(5fc23a86b6051ecf6ff3f95f810f0eb471a203b0) ) |
| 1227 | ROM_LOAD16_BYTE( "ep8", 0x0c000, 0x2000, CRC(d7ee48b0) SHA1(d0398704d8e89f2b0a9ed05e18f7c644d1e047c0) ) |
| 737 | 1228 | |
| 738 | | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // Z80 ROMs |
| 1229 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // 8085A ROMs |
| 739 | 1230 | ROM_LOAD( "ev1.1m", 0x00000, 0x2000, CRC(43faaf2e) SHA1(c9aaf298d673eb70399366776474f1b242549eb4) ) |
| 740 | 1231 | ROM_LOAD( "ev2.1l", 0x02000, 0x2000, CRC(09e6702d) SHA1(896771f73a486e5035909eeed9ef48103d81d4ae) ) |
| 741 | 1232 | ROM_LOAD( "ev3.1k", 0x04000, 0x2000, CRC(10ff140b) SHA1(7c28f988a9c8b2a702d007096199e67b447a183c) ) |
| r2018 | r2019 | |
| 744 | 1235 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) // chars |
| 745 | 1236 | ROM_LOAD( "ep9", 0x00000, 0x1000, CRC(0325be11) SHA1(d95667b439e3d97b08efeaf08022348546a4f385) ) |
| 746 | 1237 | |
| 747 | | ROM_REGION( 0x8000, REGION_GFX2, ROMREGION_DISPOSE ) // tile set1 |
| 748 | | ROM_LOAD_NIB_HIGH( "eb5.7h", 0x00000, 0x2000, CRC(cbef7da5) SHA1(c5fcd2341ce5b039a15116fbd85796bb5ddc4701) ) |
| 749 | | ROM_LOAD ( "eb5.7h", 0x02000, 0x2000, CRC(cbef7da5) SHA1(c5fcd2341ce5b039a15116fbd85796bb5ddc4701) ) |
| 750 | | ROM_LOAD ( "eb1.7f", 0x04000, 0x2000, CRC(9a236583) SHA1(fcc4da2efe904f0178bd83fdee25d4752b9cc5ce) ) |
| 751 | | ROM_LOAD ( "eb2.8f", 0x06000, 0x2000, CRC(f0fb6355) SHA1(3c4c009f80e648d02767b29bb8d18f4de7b26d4e) ) |
| 1238 | ROM_REGION( 0x10000, REGION_GFX2, ROMREGION_DISPOSE ) // tiles |
| 1239 | ROM_LOAD( "eb5.7h", 0x00000, 0x2000, CRC(cbef7da5) SHA1(c5fcd2341ce5b039a15116fbd85796bb5ddc4701) ) |
| 1240 | // empty space to unpack previous ROM |
| 1241 | ROM_LOAD( "eb6.8h", 0x04000, 0x2000, CRC(1e5e5475) SHA1(80ebe9326c628685faafb259f956a98ac435c809) ) |
| 1242 | // empty space to unpack previous ROM |
| 1243 | ROM_LOAD( "eb1.7f", 0x08000, 0x2000, CRC(9a236583) SHA1(fcc4da2efe904f0178bd83fdee25d4752b9cc5ce) ) |
| 1244 | ROM_LOAD( "eb2.8f", 0x0a000, 0x2000, CRC(f0fb6355) SHA1(3c4c009f80e648d02767b29bb8d18f4de7b26d4e) ) |
| 1245 | ROM_LOAD( "eb3.10f", 0x0c000, 0x2000, CRC(dbd0044b) SHA1(5611517bb0f54bfb0585eeca8af21fbfc2f65b2c) ) |
| 1246 | ROM_LOAD( "eb4.11f", 0x0e000, 0x2000, CRC(f8f8e600) SHA1(c7c97e4dc1f7a73694c98b2b1a3d7fa9f3317a2a) ) |
| 752 | 1247 | |
| 753 | | ROM_REGION( 0x8000, REGION_GFX3, ROMREGION_DISPOSE ) // tile set2 |
| 754 | | ROM_LOAD_NIB_HIGH( "eb6.8h", 0x00000, 0x2000, CRC(1e5e5475) SHA1(80ebe9326c628685faafb259f956a98ac435c809) ) |
| 755 | | ROM_LOAD ( "eb6.8h", 0x02000, 0x2000, CRC(1e5e5475) SHA1(80ebe9326c628685faafb259f956a98ac435c809) ) |
| 756 | | ROM_LOAD ( "eb3.10f", 0x04000, 0x2000, CRC(dbd0044b) SHA1(5611517bb0f54bfb0585eeca8af21fbfc2f65b2c) ) |
| 757 | | ROM_LOAD ( "eb4.11f", 0x06000, 0x2000, CRC(f8f8e600) SHA1(c7c97e4dc1f7a73694c98b2b1a3d7fa9f3317a2a) ) |
| 1248 | ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE ) // sprites |
| 1249 | ROM_LOAD( "es5.5h", 0x00000, 0x2000, CRC(d5b82e6a) SHA1(956a1413426e53f8a735260e660805b04016ca8d) ) |
| 1250 | // empty space to unpack previous ROM |
| 1251 | ROM_LOAD( "es6.4h", 0x04000, 0x2000, CRC(cb4f5da9) SHA1(5af8f6aca0a3bb6417430e0179ec97c33d4014e3) ) |
| 1252 | // empty space to unpack previous ROM |
| 1253 | ROM_LOAD( "es1.5f", 0x08000, 0x2000, CRC(cf81a2cd) SHA1(a1b45451cafeaceabe3dfe24eb073098a33ab22b) ) |
| 1254 | ROM_LOAD( "es2.4f", 0x0a000, 0x2000, CRC(ae3111d8) SHA1(d63633b531339fa04af757f42e956b8eb1debc4e) ) |
| 1255 | ROM_LOAD( "es3.2f", 0x0c000, 0x2000, CRC(3d44f815) SHA1(1835aef280a6915acbf7cad771d65bf1074f0f98) ) |
| 1256 | ROM_LOAD( "es4.1f", 0x0e000, 0x2000, CRC(16e6d18a) SHA1(44f9045ad034808070cd6497a3b94c3d8cc93262) ) |
| 758 | 1257 | |
| 759 | | ROM_REGION( 0x8000, REGION_GFX4, ROMREGION_DISPOSE ) // sprite set1 |
| 760 | | ROM_LOAD_NIB_HIGH( "es5.5h", 0x00000, 0x2000, CRC(d5b82e6a) SHA1(956a1413426e53f8a735260e660805b04016ca8d) ) |
| 761 | | ROM_LOAD ( "es5.5h", 0x02000, 0x2000, CRC(d5b82e6a) SHA1(956a1413426e53f8a735260e660805b04016ca8d) ) |
| 762 | | ROM_LOAD ( "es1.5f", 0x04000, 0x2000, CRC(cf81a2cd) SHA1(a1b45451cafeaceabe3dfe24eb073098a33ab22b) ) |
| 763 | | ROM_LOAD ( "es2.4f", 0x06000, 0x2000, CRC(ae3111d8) SHA1(d63633b531339fa04af757f42e956b8eb1debc4e) ) |
| 1258 | ROM_REGION( 0x0700, REGION_PROMS, 0 ) |
| 1259 | ROM_LOAD( "bprom.3a", 0x0000, 0x100, CRC(2fcdf217) SHA1(4acf67d37e844c2773028ecffe72a66754ed5bca) ) // R |
| 1260 | ROM_LOAD( "bprom.1a", 0x0100, 0x100, CRC(d7e6cd1f) SHA1(ce330e43ba8a97ab79040c053a25e46e8fe60bdb) ) // G |
| 1261 | ROM_LOAD( "bprom.2a", 0x0200, 0x100, CRC(e3d106e8) SHA1(6b153eb8140d36b4d194e26106a5ba5bffd1a851) ) // B |
| 1262 | ROM_LOAD( "bprom.6b", 0x0300, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) // CLUT(same PROM x 4) |
| 1263 | ROM_LOAD( "bprom.7b", 0x0400, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 1264 | ROM_LOAD( "bprom.9b", 0x0500, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 1265 | ROM_LOAD( "bprom.10b", 0x0600, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 764 | 1266 | |
| 765 | | ROM_REGION( 0x8000, REGION_GFX5, ROMREGION_DISPOSE ) // sprite set2 |
| 766 | | ROM_LOAD_NIB_HIGH( "es6.4h", 0x00000, 0x2000, CRC(cb4f5da9) SHA1(5af8f6aca0a3bb6417430e0179ec97c33d4014e3) ) |
| 767 | | ROM_LOAD ( "es6.4h", 0x02000, 0x2000, CRC(cb4f5da9) SHA1(5af8f6aca0a3bb6417430e0179ec97c33d4014e3) ) |
| 768 | | ROM_LOAD ( "es3.2f", 0x04000, 0x2000, CRC(3d44f815) SHA1(1835aef280a6915acbf7cad771d65bf1074f0f98) ) |
| 769 | | ROM_LOAD ( "es4.1f", 0x06000, 0x2000, CRC(16e6d18a) SHA1(44f9045ad034808070cd6497a3b94c3d8cc93262) ) |
| 770 | | |
| 771 | | ROM_REGION( 0x0300, REGION_PROMS, 0 ) // RGB PROMs |
| 772 | | ROM_LOAD( "bprom.3a", 0x00000, 0x100, CRC(2fcdf217) SHA1(4acf67d37e844c2773028ecffe72a66754ed5bca) ) // R |
| 773 | | ROM_LOAD( "bprom.1a", 0x00100, 0x100, CRC(d7e6cd1f) SHA1(ce330e43ba8a97ab79040c053a25e46e8fe60bdb) ) // G |
| 774 | | ROM_LOAD( "bprom.2a", 0x00200, 0x100, CRC(e3d106e8) SHA1(6b153eb8140d36b4d194e26106a5ba5bffd1a851) ) // B |
| 775 | | |
| 776 | | ROM_REGION( 0x0100, REGION_USER1, 0 ) // CLUT(same PROM x 4) |
| 777 | | ROM_LOAD( "bprom.6b", 0x0000, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 778 | | ROM_LOAD( "bprom.7b", 0x0000, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 779 | | ROM_LOAD( "bprom.9b", 0x0000, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 780 | | ROM_LOAD( "bprom.10b", 0x0000, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 781 | | |
| 782 | | ROM_REGION( 0x0020, REGION_USER2, 0 ) // MSM5232 PROM? |
| 1267 | ROM_REGION( 0x0020, REGION_SOUND1, 0 ) |
| 783 | 1268 | ROM_LOAD( "bprom.3h", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) |
| 784 | 1269 | ROM_END |
| 785 | 1270 | |
| 1271 | /* |
| 1272 | Equites |
| 1273 | (c)1984 SEGA/ALPHA |
| 1274 | |
| 1275 | CPU : 68000 Z-80x2 |
| 1276 | SOUND : AY-3-8910 MSM5232RS |
| 1277 | OSC. : 12.000MHz 14.31818MHz ?MHz |
| 1278 | */ |
| 786 | 1279 | ROM_START( equitess ) |
| 787 | 1280 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) // 68000 ROMs |
| 788 | 1281 | ROM_LOAD16_BYTE( "epr-ep1.13d", 0x00001, 0x2000, CRC(c6edf1cd) SHA1(21dba62e692f4fdc79155ce169a48ae827bd5994) ) |
| r2018 | r2019 | |
| 794 | 1287 | ROM_LOAD16_BYTE( "epr-ep4.9d", 0x0c001, 0x2000, CRC(956a06bd) SHA1(a716f9aaf0c32c522968f4ff13de904d6e8c7f98) ) |
| 795 | 1288 | ROM_LOAD16_BYTE( "epr-ep8.9b", 0x0c000, 0x2000, CRC(4c78d60d) SHA1(207a82779e2fe3e9082f4fa09b87c713a51167e6) ) |
| 796 | 1289 | |
| 797 | | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // Z80 ROMs |
| 1290 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // 8085A ROMs |
| 798 | 1291 | ROM_LOAD( "ev1.1m", 0x00000, 0x2000, CRC(43faaf2e) SHA1(c9aaf298d673eb70399366776474f1b242549eb4) ) |
| 799 | 1292 | ROM_LOAD( "ev2.1l", 0x02000, 0x2000, CRC(09e6702d) SHA1(896771f73a486e5035909eeed9ef48103d81d4ae) ) |
| 800 | 1293 | ROM_LOAD( "ev3.1k", 0x04000, 0x2000, CRC(10ff140b) SHA1(7c28f988a9c8b2a702d007096199e67b447a183c) ) |
| r2018 | r2019 | |
| 803 | 1296 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) // chars |
| 804 | 1297 | ROM_LOAD( "epr-ep0.3e", 0x00000, 0x1000, CRC(3f5a81c3) SHA1(8fd5bc621f483bfa46be7e40e6480b25243bdf70) ) |
| 805 | 1298 | |
| 806 | | ROM_REGION( 0x8000, REGION_GFX2, ROMREGION_DISPOSE ) // tile set1 |
| 807 | | ROM_LOAD_NIB_HIGH( "eb5.7h", 0x00000, 0x2000, CRC(cbef7da5) SHA1(c5fcd2341ce5b039a15116fbd85796bb5ddc4701) ) |
| 808 | | ROM_LOAD ( "eb5.7h", 0x02000, 0x2000, CRC(cbef7da5) SHA1(c5fcd2341ce5b039a15116fbd85796bb5ddc4701) ) |
| 809 | | ROM_LOAD ( "eb1.7f", 0x04000, 0x2000, CRC(9a236583) SHA1(fcc4da2efe904f0178bd83fdee25d4752b9cc5ce) ) |
| 810 | | ROM_LOAD ( "eb2.8f", 0x06000, 0x2000, CRC(f0fb6355) SHA1(3c4c009f80e648d02767b29bb8d18f4de7b26d4e) ) |
| 1299 | ROM_REGION( 0x10000, REGION_GFX2, ROMREGION_DISPOSE ) // tiles |
| 1300 | ROM_LOAD( "eb5.7h", 0x00000, 0x2000, CRC(cbef7da5) SHA1(c5fcd2341ce5b039a15116fbd85796bb5ddc4701) ) |
| 1301 | // empty space to unpack previous ROM |
| 1302 | ROM_LOAD( "eb6.8h", 0x04000, 0x2000, CRC(1e5e5475) SHA1(80ebe9326c628685faafb259f956a98ac435c809) ) |
| 1303 | // empty space to unpack previous ROM |
| 1304 | ROM_LOAD( "eb1.7f", 0x08000, 0x2000, CRC(9a236583) SHA1(fcc4da2efe904f0178bd83fdee25d4752b9cc5ce) ) |
| 1305 | ROM_LOAD( "eb2.8f", 0x0a000, 0x2000, CRC(f0fb6355) SHA1(3c4c009f80e648d02767b29bb8d18f4de7b26d4e) ) |
| 1306 | ROM_LOAD( "eb3.10f", 0x0c000, 0x2000, CRC(dbd0044b) SHA1(5611517bb0f54bfb0585eeca8af21fbfc2f65b2c) ) |
| 1307 | ROM_LOAD( "eb4.11f", 0x0e000, 0x2000, CRC(f8f8e600) SHA1(c7c97e4dc1f7a73694c98b2b1a3d7fa9f3317a2a) ) |
| 811 | 1308 | |
| 812 | | ROM_REGION( 0x8000, REGION_GFX3, ROMREGION_DISPOSE ) // tile set2 |
| 813 | | ROM_LOAD_NIB_HIGH( "eb6.8h", 0x00000, 0x2000, CRC(1e5e5475) SHA1(80ebe9326c628685faafb259f956a98ac435c809) ) |
| 814 | | ROM_LOAD ( "eb6.8h", 0x02000, 0x2000, CRC(1e5e5475) SHA1(80ebe9326c628685faafb259f956a98ac435c809) ) |
| 815 | | ROM_LOAD ( "eb3.10f", 0x04000, 0x2000, CRC(dbd0044b) SHA1(5611517bb0f54bfb0585eeca8af21fbfc2f65b2c) ) |
| 816 | | ROM_LOAD ( "eb4.11f", 0x06000, 0x2000, CRC(f8f8e600) SHA1(c7c97e4dc1f7a73694c98b2b1a3d7fa9f3317a2a) ) |
| 1309 | ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE ) // sprites |
| 1310 | ROM_LOAD( "es5.5h", 0x00000, 0x2000, CRC(d5b82e6a) SHA1(956a1413426e53f8a735260e660805b04016ca8d) ) |
| 1311 | // empty space to unpack previous ROM |
| 1312 | ROM_LOAD( "es6.4h", 0x04000, 0x2000, CRC(cb4f5da9) SHA1(5af8f6aca0a3bb6417430e0179ec97c33d4014e3) ) |
| 1313 | // empty space to unpack previous ROM |
| 1314 | ROM_LOAD( "es1.5f", 0x08000, 0x2000, CRC(cf81a2cd) SHA1(a1b45451cafeaceabe3dfe24eb073098a33ab22b) ) |
| 1315 | ROM_LOAD( "es2.4f", 0x0a000, 0x2000, CRC(ae3111d8) SHA1(d63633b531339fa04af757f42e956b8eb1debc4e) ) |
| 1316 | ROM_LOAD( "es3.2f", 0x0c000, 0x2000, CRC(3d44f815) SHA1(1835aef280a6915acbf7cad771d65bf1074f0f98) ) |
| 1317 | ROM_LOAD( "es4.1f", 0x0e000, 0x2000, CRC(16e6d18a) SHA1(44f9045ad034808070cd6497a3b94c3d8cc93262) ) |
| 817 | 1318 | |
| 818 | | ROM_REGION( 0x8000, REGION_GFX4, ROMREGION_DISPOSE ) // sprite set1 |
| 819 | | ROM_LOAD_NIB_HIGH( "es5.5h", 0x00000, 0x2000, CRC(d5b82e6a) SHA1(956a1413426e53f8a735260e660805b04016ca8d) ) |
| 820 | | ROM_LOAD ( "es5.5h", 0x02000, 0x2000, CRC(d5b82e6a) SHA1(956a1413426e53f8a735260e660805b04016ca8d) ) |
| 821 | | ROM_LOAD ( "es1.5f", 0x04000, 0x2000, CRC(cf81a2cd) SHA1(a1b45451cafeaceabe3dfe24eb073098a33ab22b) ) |
| 822 | | ROM_LOAD ( "es2.4f", 0x06000, 0x2000, CRC(ae3111d8) SHA1(d63633b531339fa04af757f42e956b8eb1debc4e) ) |
| 1319 | ROM_REGION( 0x0700, REGION_PROMS, 0 ) |
| 1320 | ROM_LOAD( "bprom.3a", 0x0000, 0x100, CRC(2fcdf217) SHA1(4acf67d37e844c2773028ecffe72a66754ed5bca) ) // R |
| 1321 | ROM_LOAD( "bprom.1a", 0x0100, 0x100, CRC(d7e6cd1f) SHA1(ce330e43ba8a97ab79040c053a25e46e8fe60bdb) ) // G |
| 1322 | ROM_LOAD( "bprom.2a", 0x0200, 0x100, CRC(e3d106e8) SHA1(6b153eb8140d36b4d194e26106a5ba5bffd1a851) ) // B |
| 1323 | ROM_LOAD( "bprom.6b", 0x0300, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) // CLUT(same PROM x 4) |
| 1324 | ROM_LOAD( "bprom.7b", 0x0400, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 1325 | ROM_LOAD( "bprom.9b", 0x0500, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 1326 | ROM_LOAD( "bprom.10b", 0x0600, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 823 | 1327 | |
| 824 | | ROM_REGION( 0x8000, REGION_GFX5, ROMREGION_DISPOSE ) // sprite set2 |
| 825 | | ROM_LOAD_NIB_HIGH( "es6.4h", 0x00000, 0x2000, CRC(cb4f5da9) SHA1(5af8f6aca0a3bb6417430e0179ec97c33d4014e3) ) |
| 826 | | ROM_LOAD ( "es6.4h", 0x02000, 0x2000, CRC(cb4f5da9) SHA1(5af8f6aca0a3bb6417430e0179ec97c33d4014e3) ) |
| 827 | | ROM_LOAD ( "es3.2f", 0x04000, 0x2000, CRC(3d44f815) SHA1(1835aef280a6915acbf7cad771d65bf1074f0f98) ) |
| 828 | | ROM_LOAD ( "es4.1f", 0x06000, 0x2000, CRC(16e6d18a) SHA1(44f9045ad034808070cd6497a3b94c3d8cc93262) ) |
| 829 | | |
| 830 | | ROM_REGION( 0x0300, REGION_PROMS, 0 ) // RGB PROMs |
| 831 | | ROM_LOAD( "bprom.3a", 0x00000, 0x100, CRC(2fcdf217) SHA1(4acf67d37e844c2773028ecffe72a66754ed5bca) ) // R |
| 832 | | ROM_LOAD( "bprom.1a", 0x00100, 0x100, CRC(d7e6cd1f) SHA1(ce330e43ba8a97ab79040c053a25e46e8fe60bdb) ) // G |
| 833 | | ROM_LOAD( "bprom.2a", 0x00200, 0x100, CRC(e3d106e8) SHA1(6b153eb8140d36b4d194e26106a5ba5bffd1a851) ) // B |
| 834 | | |
| 835 | | ROM_REGION( 0x0100, REGION_USER1, 0 ) // CLUT(same PROM x 4) |
| 836 | | ROM_LOAD( "bprom.6b", 0x0000, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 837 | | ROM_LOAD( "bprom.7b", 0x0000, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 838 | | ROM_LOAD( "bprom.9b", 0x0000, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 839 | | ROM_LOAD( "bprom.10b", 0x0000, 0x100, CRC(6294cddf) SHA1(c7a2854f62e31032df2b07fae3fb3b51ac6daac2) ) |
| 840 | | |
| 841 | | ROM_REGION( 0x0020, REGION_USER2, 0 ) // MSM5232 PROM? |
| 1328 | ROM_REGION( 0x0020, REGION_SOUND1, 0 ) |
| 842 | 1329 | ROM_LOAD( "bprom.3h", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) |
| 843 | 1330 | ROM_END |
| 844 | 1331 | |
| 845 | | |
| 846 | | |
| 847 | 1332 | /* |
| 848 | | |
| 849 | 1333 | Gekisou (JPN Ver.) |
| 850 | 1334 | (c)1985 Eastern |
| 851 | 1335 | |
| r2018 | r2019 | |
| 853 | 1337 | CPU:MC68000P8 |
| 854 | 1338 | OSC:12.000MHz |
| 855 | 1339 | |
| 856 | | 0.5C [7e8bf4d1] |
| 857 | | |
| 858 | | 1.15B [945fd546] |
| 859 | | 2.15D [3c057150] |
| 860 | | 3.14B [7c1cf4d0] |
| 861 | | 4.14D [c7282391] |
| 862 | | |
| 863 | | 5.16R [88ef550a] |
| 864 | | 6.15R [473e3fbf] |
| 865 | | 7.18R [a1918b6c] |
| 866 | | 8.8R [2e0c392c] |
| 867 | | 9.6R [56a03b08] |
| 868 | | 10.9R [11d89c73] |
| 869 | | |
| 870 | | 2N.BPR [c7333120] |
| 871 | | 3N.BPR [c7333120] |
| 872 | | 4N.BPR [c7333120] |
| 873 | | 5N.BPR [c7333120] |
| 874 | | |
| 875 | | 1B.BPR [11a1c0aa] |
| 876 | | 2B.BPR [4f5d4141] |
| 877 | | 4B.BPR [c7ebe52c] |
| 878 | | |
| 879 | | |
| 880 | 1340 | SOUND BOARD NO.59 MC 07 |
| 881 | 1341 | CPU :TMP8085AP |
| 882 | 1342 | Sound:AY-3-8910A,OKI M5232,D8155HC |
| 883 | 1343 | OSC :6.144MHz |
| 884 | | |
| 885 | | V1.1L [dc6af437] |
| 886 | | V2.1H [cb12582e] |
| 887 | | V3.1E [0ab5e777] |
| 888 | | |
| 889 | | 3H.BPR [33b98466] |
| 890 | | |
| 891 | 1344 | */ |
| 892 | | |
| 893 | | |
| 894 | 1345 | ROM_START( gekisou ) |
| 895 | 1346 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) // 68000 ROMs |
| 896 | 1347 | ROM_LOAD16_BYTE( "1.15b", 0x00001, 0x4000, CRC(945fd546) SHA1(6045dbf11272fcec8320aacb2852d4223d0943a0) ) |
| r2018 | r2019 | |
| 906 | 1357 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) // chars |
| 907 | 1358 | ROM_LOAD( "0.5c", 0x00000, 0x1000, CRC(7e8bf4d1) SHA1(8abb82be006e8d1df449a5f83d59637314405119) ) |
| 908 | 1359 | |
| 909 | | /* GFX loading is wrong -- why do we load roms twice in other sets anyway, we shouldn't load |
| 910 | | things twice unless they are on the board twice, if they're not we should expand them in |
| 911 | | init functions. */ |
| 912 | | ROM_REGION( 0x10000, REGION_GFX2, ROMREGION_DISPOSE ) // tile set1 |
| 913 | | // ROM_LOAD_NIB_HIGH( "5.16r", 0x00000, 0x4000, CRC(88ef550a) SHA1(b50e7b8257d1bb6923d289e7af885c14d089b394) ) |
| 914 | | ROM_LOAD ( "5.16r", 0x04000, 0x4000, CRC(88ef550a) SHA1(b50e7b8257d1bb6923d289e7af885c14d089b394) ) |
| 915 | | ROM_LOAD ( "6.15r", 0x08000, 0x4000, CRC(473e3fbf) SHA1(5039387b3627c19f592d630ba7bd010a3881adc5) ) |
| 916 | | ROM_LOAD ( "7.18r", 0x0c000, 0x4000, CRC(a1918b6c) SHA1(6ffa4c845d23d311b59cc19411a68a782618b3fd) ) |
| 1360 | ROM_REGION( 0x10000, REGION_GFX2, ROMREGION_DISPOSE ) // tiles |
| 1361 | ROM_LOAD( "7.18r", 0x00000, 0x2000, CRC(a1918b6c) SHA1(6ffa4c845d23d311b59cc19411a68a782618b3fd) ) |
| 1362 | // empty space to unpack previous ROM |
| 1363 | ROM_CONTINUE( 0x04000, 0x2000) |
| 1364 | // empty space to unpack previous ROM |
| 1365 | ROM_LOAD( "5.16r", 0x08000, 0x2000, CRC(88ef550a) SHA1(b50e7b8257d1bb6923d289e7af885c14d089b394) ) |
| 1366 | ROM_CONTINUE( 0x0c000, 0x2000) |
| 1367 | ROM_LOAD( "6.15r", 0x0a000, 0x2000, CRC(473e3fbf) SHA1(5039387b3627c19f592d630ba7bd010a3881adc5) ) |
| 1368 | ROM_CONTINUE( 0x0e000, 0x2000) |
| 917 | 1369 | |
| 918 | | ROM_REGION( 0x8000, REGION_GFX3, ROMREGION_DISPOSE ) // tile set2 |
| 1370 | ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE ) // sprites |
| 1371 | ROM_LOAD( "10.9r", 0x00000, 0x2000, CRC(11d89c73) SHA1(8753f635d321c8e9b93b0ab767cf44aca1db7a0a) ) |
| 1372 | // empty space to unpack previous ROM |
| 1373 | ROM_CONTINUE( 0x04000, 0x2000) |
| 1374 | // empty space to unpack previous ROM |
| 1375 | ROM_LOAD( "8.8r", 0x08000, 0x2000, CRC(2e0c392c) SHA1(48542a24a34e3d5d00af418b29a2ee15557efc99) ) |
| 1376 | ROM_CONTINUE( 0x0c000, 0x2000) |
| 1377 | ROM_LOAD( "9.6r", 0x0a000, 0x2000, CRC(56a03b08) SHA1(d90b246890fedfc437de85be8bcc6b60ff068be1) ) |
| 1378 | ROM_CONTINUE( 0x0e000, 0x2000) |
| 919 | 1379 | |
| 920 | | ROM_REGION( 0x10000, REGION_GFX4, ROMREGION_DISPOSE ) // sprite set1 |
| 921 | | // ROM_LOAD_NIB_HIGH( "8.8r", 0x00000, 0x4000, CRC(2e0c392c) SHA1(48542a24a34e3d5d00af418b29a2ee15557efc99) ) |
| 922 | | ROM_LOAD ( "8.8r", 0x04000, 0x4000, CRC(2e0c392c) SHA1(48542a24a34e3d5d00af418b29a2ee15557efc99) ) |
| 923 | | ROM_LOAD ( "9.6r", 0x08000, 0x4000, CRC(56a03b08) SHA1(d90b246890fedfc437de85be8bcc6b60ff068be1) ) |
| 924 | | ROM_LOAD ( "10.9r", 0x0c000, 0x4000, CRC(11d89c73) SHA1(8753f635d321c8e9b93b0ab767cf44aca1db7a0a) ) |
| 1380 | ROM_REGION( 0x0700, REGION_PROMS, 0 ) |
| 1381 | ROM_LOAD( "1b.bpr", 0x0000, 0x100, CRC(11a1c0aa) SHA1(d007d31f68bf802c89422ea2393747ac8de94d70) ) // R |
| 1382 | ROM_LOAD( "4b.bpr", 0x0100, 0x100, CRC(c7ebe52c) SHA1(19d2ee70d67fd5e1c57f66d030ec9a5b6af5a49e) ) // G |
| 1383 | ROM_LOAD( "2b.bpr", 0x0200, 0x100, CRC(4f5d4141) SHA1(965221c6af4a868760e6d168b55e037fc5f9fa52) ) // B |
| 1384 | ROM_LOAD( "2n.bpr", 0x0300, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) // CLUT(same PROM x 4) |
| 1385 | ROM_LOAD( "3n.bpr", 0x0400, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) |
| 1386 | ROM_LOAD( "4n.bpr", 0x0500, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) |
| 1387 | ROM_LOAD( "5n.bpr", 0x0600, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) |
| 925 | 1388 | |
| 926 | | ROM_REGION( 0x8000, REGION_GFX5, ROMREGION_DISPOSE ) // sprite set2 |
| 927 | | |
| 928 | | ROM_REGION( 0x0300, REGION_PROMS, 0 ) // RGB PROMs |
| 929 | | ROM_LOAD( "1b.bpr", 0x00000, 0x100, CRC(11a1c0aa) SHA1(d007d31f68bf802c89422ea2393747ac8de94d70) ) // R |
| 930 | | ROM_LOAD( "2b.bpr", 0x00100, 0x100, CRC(4f5d4141) SHA1(965221c6af4a868760e6d168b55e037fc5f9fa52) ) // G |
| 931 | | ROM_LOAD( "4b.bpr", 0x00200, 0x100, CRC(c7ebe52c) SHA1(19d2ee70d67fd5e1c57f66d030ec9a5b6af5a49e) ) // B |
| 932 | | |
| 933 | | ROM_REGION( 0x0100, REGION_USER1, 0 ) // CLUT(same PROM x 4) |
| 934 | | ROM_LOAD( "2n.bpr", 0x0000, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) |
| 935 | | ROM_LOAD( "3n.bpr", 0x0000, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) |
| 936 | | ROM_LOAD( "4n.bpr", 0x0000, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) |
| 937 | | ROM_LOAD( "5n.bpr", 0x0000, 0x100, CRC(c7333120) SHA1(ad590e8ece3dcf56b285c4a080f4ee8bb4c9d77c) ) |
| 938 | | |
| 939 | | ROM_REGION( 0x0020, REGION_USER2, 0 ) // MSM5232 PROM? |
| 1389 | ROM_REGION( 0x0020, REGION_SOUND1, 0 ) |
| 940 | 1390 | ROM_LOAD( "3h.bpr", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) |
| 941 | 1391 | ROM_END |
| 942 | 1392 | |
| 943 | 1393 | /******************************************************************************/ |
| 944 | 1394 | // Koukouyakyuh ROM Map |
| 945 | 1395 | |
| 1396 | /* |
| 1397 | The Koukouyakyuh (JPN Ver.) |
| 1398 | |
| 1399 | (c)1985 Alpha denshi |
| 1400 | |
| 1401 | CPU :MAIN 68000 |
| 1402 | SOUND 8085 |
| 1403 | Sound :AY-3-8910 M3M5232RS |
| 1404 | OSC :12.000MHz 6.??MHz 14.31818MHz |
| 1405 | */ |
| 946 | 1406 | ROM_START( kouyakyu ) |
| 947 | 1407 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) // 68000 ROMs |
| 948 | 1408 | ROM_LOAD16_BYTE( "epr-6704.bin", 0x00001, 0x2000, CRC(c7ac2292) SHA1(614bfb0949620d4c260768f14a116b076dd38438) ) |
| r2018 | r2019 | |
| 953 | 1413 | ROM_LOAD16_BYTE( "epr-6709.bin", 0x08000, 0x2000, CRC(f41cb58c) SHA1(f0d1048e949d51432739755f985e4df65b8e918b) ) |
| 954 | 1414 | ROM_FILL( 0x0c000, 0x4000, 0 ) |
| 955 | 1415 | |
| 956 | | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // Z80 ROMs |
| 1416 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // 8085A ROMs |
| 957 | 1417 | ROM_LOAD( "epr-6703.bin", 0x00000, 0x2000, CRC(fbff3a86) SHA1(4ed2887b1e4509ded853a230f735d4d2aa475886) ) |
| 958 | 1418 | ROM_LOAD( "epr-6702.bin", 0x02000, 0x2000, CRC(27ddf031) SHA1(2f11d3b693e46852762669ed1e35a667990edec7) ) |
| 959 | 1419 | ROM_LOAD( "epr-6701.bin", 0x04000, 0x2000, CRC(3c83588a) SHA1(a84c813ba9d464cffc855397aaacbb9177c86fb4) ) |
| r2018 | r2019 | |
| 964 | 1424 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) // chars |
| 965 | 1425 | ROM_LOAD( "epr-6710.bin", 0x00000, 0x1000, CRC(accda190) SHA1(265d2fd92574d65e7890e48d5f305bf903a67bc8) ) |
| 966 | 1426 | |
| 967 | | ROM_REGION( 0x8000, REGION_GFX2, ROMREGION_DISPOSE ) // tile set1 |
| 968 | | ROM_LOAD_NIB_HIGH( "epr-6695.bin", 0x00000, 0x2000, CRC(22bea465) SHA1(4860d7ee3c386cdacc9c608ffe74ec8bfa58edcb) ) |
| 969 | | ROM_LOAD ( "epr-6695.bin", 0x02000, 0x2000, CRC(22bea465) SHA1(4860d7ee3c386cdacc9c608ffe74ec8bfa58edcb) ) |
| 970 | | ROM_LOAD ( "epr-6689.bin", 0x04000, 0x2000, CRC(53bf7587) SHA1(0046cd04d11ce789ff69e0807700a624af96eb36) ) |
| 971 | | ROM_LOAD ( "epr-6688.bin", 0x06000, 0x2000, CRC(ceb76c5b) SHA1(81fa236871f10c77eb201e1c9771bd57406df15b) ) |
| 1427 | ROM_REGION( 0x10000, REGION_GFX2, ROMREGION_DISPOSE ) // tiles |
| 1428 | ROM_LOAD( "epr-6695.bin", 0x00000, 0x2000, CRC(22bea465) SHA1(4860d7ee3c386cdacc9c608ffe74ec8bfa58edcb) ) |
| 1429 | // empty space to unpack previous ROM |
| 1430 | ROM_LOAD( "epr-6694.bin", 0x04000, 0x2000, CRC(51a7345e) SHA1(184c890559ed633e23cb459c313e6179cc3eb542) ) |
| 1431 | // empty space to unpack previous ROM |
| 1432 | ROM_LOAD( "epr-6689.bin", 0x08000, 0x2000, CRC(53bf7587) SHA1(0046cd04d11ce789ff69e0807700a624af96eb36) ) |
| 1433 | ROM_LOAD( "epr-6688.bin", 0x0a000, 0x2000, CRC(ceb76c5b) SHA1(81fa236871f10c77eb201e1c9771bd57406df15b) ) |
| 1434 | ROM_LOAD( "epr-6687.bin", 0x0c000, 0x2000, CRC(9c1f49df) SHA1(1a5cf5278777f829d3654e838bd2bb9f4dbb57ba) ) |
| 1435 | ROM_LOAD( "epr-6686.bin", 0x0e000, 0x2000, CRC(3d9e516f) SHA1(498614821f87dbcc39edb1756e1af6b536044e6a) ) |
| 972 | 1436 | |
| 973 | | ROM_REGION( 0x8000, REGION_GFX3, ROMREGION_DISPOSE ) // tile set2 |
| 974 | | ROM_LOAD_NIB_HIGH( "epr-6694.bin", 0x00000, 0x2000, CRC(51a7345e) SHA1(184c890559ed633e23cb459c313e6179cc3eb542) ) |
| 975 | | ROM_LOAD ( "epr-6694.bin", 0x02000, 0x2000, CRC(51a7345e) SHA1(184c890559ed633e23cb459c313e6179cc3eb542) ) |
| 976 | | ROM_LOAD ( "epr-6687.bin", 0x04000, 0x2000, CRC(9c1f49df) SHA1(1a5cf5278777f829d3654e838bd2bb9f4dbb57ba) ) |
| 977 | | ROM_LOAD ( "epr-6686.bin", 0x06000, 0x2000, CRC(3d9e516f) SHA1(498614821f87dbcc39edb1756e1af6b536044e6a) ) |
| 1437 | ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE ) // sprites |
| 1438 | ROM_LOAD( "epr-6696.bin", 0x00000, 0x2000, CRC(0625f48e) SHA1(bea09ccf37f38678fb53c55bd0a79557d6c81b3f) ) |
| 1439 | // empty space to unpack previous ROM |
| 1440 | ROM_LOAD( "epr-6697.bin", 0x04000, 0x2000, CRC(f18afabe) SHA1(abd7f6c0bd0de145c423166a2f4e86ccdb12b1ce) ) |
| 1441 | // empty space to unpack previous ROM |
| 1442 | ROM_LOAD( "epr-6690.bin", 0x08000, 0x2000, CRC(a142a11d) SHA1(209c7e0591622434ada4445f3f8789059c5f4f77) ) |
| 1443 | ROM_LOAD( "epr-6691.bin", 0x0a000, 0x2000, CRC(b640568c) SHA1(8cef1387c469abec8b488621a94cc9575d6c5fcc) ) |
| 1444 | ROM_LOAD( "epr-6692.bin", 0x0c000, 0x2000, CRC(b91d8172) SHA1(8d8f6ea78ebf652f295ce96abf19e628fe777d07) ) |
| 1445 | ROM_LOAD( "epr-6693.bin", 0x0e000, 0x2000, CRC(874e3acc) SHA1(29438f196811fc2c8f54b6c47f1c175e4797dd4c) ) |
| 978 | 1446 | |
| 979 | | ROM_REGION( 0x8000, REGION_GFX4, ROMREGION_DISPOSE ) // sprite set1 |
| 980 | | ROM_LOAD_NIB_HIGH( "epr-6696.bin", 0x00000, 0x2000, CRC(0625f48e) SHA1(bea09ccf37f38678fb53c55bd0a79557d6c81b3f) ) |
| 981 | | ROM_LOAD ( "epr-6696.bin", 0x02000, 0x2000, CRC(0625f48e) SHA1(bea09ccf37f38678fb53c55bd0a79557d6c81b3f) ) |
| 982 | | ROM_LOAD ( "epr-6690.bin", 0x04000, 0x2000, CRC(a142a11d) SHA1(209c7e0591622434ada4445f3f8789059c5f4f77) ) |
| 983 | | ROM_LOAD ( "epr-6691.bin", 0x06000, 0x2000, CRC(b640568c) SHA1(8cef1387c469abec8b488621a94cc9575d6c5fcc) ) |
| 1447 | ROM_REGION( 0x0700, REGION_PROMS, 0 ) |
| 1448 | ROM_LOAD( "pr6627.bpr", 0x0000, 0x100, CRC(5ec5480d) SHA1(f966a277539a5d257f32692cdd92ce44b08599e8) ) // R |
| 1449 | ROM_LOAD( "pr6629.bpr", 0x0100, 0x100, CRC(29c7a393) SHA1(67cced39c0a80655c420aad668dfe836c1d7c643) ) // G |
| 1450 | ROM_LOAD( "pr6628.bpr", 0x0200, 0x100, CRC(8af247a4) SHA1(01702fbce53dd4875e4825f0487e7aed9cf212fa) ) // B |
| 1451 | ROM_LOAD( "pr6630a.bpr", 0x0300, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) // CLUT(same PROM x 4) |
| 1452 | ROM_LOAD( "pr6630b.bpr", 0x0400, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) |
| 1453 | ROM_LOAD( "pr6630c.bpr", 0x0500, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) |
| 1454 | ROM_LOAD( "pr6630d.bpr", 0x0600, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) |
| 984 | 1455 | |
| 985 | | ROM_REGION( 0x8000, REGION_GFX5, ROMREGION_DISPOSE ) // sprite set2 |
| 986 | | ROM_LOAD_NIB_HIGH( "epr-6697.bin", 0x00000, 0x2000, CRC(f18afabe) SHA1(abd7f6c0bd0de145c423166a2f4e86ccdb12b1ce) ) |
| 987 | | ROM_LOAD ( "epr-6697.bin", 0x02000, 0x2000, CRC(f18afabe) SHA1(abd7f6c0bd0de145c423166a2f4e86ccdb12b1ce) ) |
| 988 | | ROM_LOAD ( "epr-6692.bin", 0x04000, 0x2000, CRC(b91d8172) SHA1(8d8f6ea78ebf652f295ce96abf19e628fe777d07) ) |
| 989 | | ROM_LOAD ( "epr-6693.bin", 0x06000, 0x2000, CRC(874e3acc) SHA1(29438f196811fc2c8f54b6c47f1c175e4797dd4c) ) |
| 990 | | |
| 991 | | ROM_REGION( 0x0300, REGION_PROMS, 0 ) // RGB PROMS |
| 992 | | ROM_LOAD( "pr6627.bpr", 0x00000, 0x100, CRC(5ec5480d) SHA1(f966a277539a5d257f32692cdd92ce44b08599e8) ) // R |
| 993 | | ROM_LOAD( "pr6629.bpr", 0x00100, 0x100, CRC(29c7a393) SHA1(67cced39c0a80655c420aad668dfe836c1d7c643) ) // G |
| 994 | | ROM_LOAD( "pr6628.bpr", 0x00200, 0x100, CRC(8af247a4) SHA1(01702fbce53dd4875e4825f0487e7aed9cf212fa) ) // B |
| 995 | | |
| 996 | | ROM_REGION( 0x0100, REGION_USER1, 0 ) // CLUT(same PROM x 4) |
| 997 | | ROM_LOAD( "pr6630a.bpr", 0x0000, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) |
| 998 | | ROM_LOAD( "pr6630b.bpr", 0x0000, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) |
| 999 | | ROM_LOAD( "pr6630c.bpr", 0x0000, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) |
| 1000 | | ROM_LOAD( "pr6630d.bpr", 0x0000, 0x100, CRC(d6e202da) SHA1(500ebd5c95d2d2c33535d25cf7f8f649897dc224) ) |
| 1001 | | |
| 1002 | | ROM_REGION( 0x0020, REGION_USER2, 0 ) // MSM5232 PROM?(identical to bprom.3h in Equites) |
| 1456 | ROM_REGION( 0x0020, REGION_SOUND1, 0 ) |
| 1003 | 1457 | ROM_LOAD( "pr.bpr", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) |
| 1004 | 1458 | ROM_END |
| 1005 | 1459 | |
| r2018 | r2019 | |
| 1016 | 1470 | ROM_LOAD16_BYTE( "hp7vr.bin", 0x08000, 0x2000, CRC(665cc015) SHA1(17fe18c8f22808a102f48bc4cbc8e4a1f6f9eaf1) ) |
| 1017 | 1471 | ROM_FILL( 0x0c000, 0x4000, 0 ) |
| 1018 | 1472 | |
| 1019 | | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // Z80 ROMs |
| 1473 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // 8085A ROMs |
| 1020 | 1474 | ROM_LOAD( "hv1vr.bin", 0x00000, 0x2000, CRC(2a8e6fcf) SHA1(866903408e05938a982ffef4c9b849203c6cc060) ) |
| 1021 | 1475 | ROM_LOAD( "hv2vr.bin", 0x02000, 0x2000, CRC(026e1533) SHA1(6271869a3faaafacfac35262746e87a83c158b93) ) |
| 1022 | 1476 | ROM_LOAD( "hv3vr.bin", 0x04000, 0x2000, CRC(51ee751c) SHA1(60bf848dfdfe313ab05df5a5c05819b0fa87ca50) ) |
| r2018 | r2019 | |
| 1025 | 1479 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) // chars |
| 1026 | 1480 | ROM_LOAD( "h.bin", 0x000000, 0x1000, CRC(c6894c9a) SHA1(0d5a55cded4fd833211bdc733a78c6c8423897de) ) |
| 1027 | 1481 | |
| 1028 | | ROM_REGION( 0x8000, REGION_GFX2, ROMREGION_DISPOSE ) // tile set1 |
| 1029 | | ROM_LOAD_NIB_HIGH( "hb5vr.bin", 0x00000, 0x2000, CRC(6d05e9f2) SHA1(4b5c92b72bf73a08a2359fe889a327a696a45e8a) ) |
| 1030 | | ROM_LOAD ( "hb5vr.bin", 0x02000, 0x2000, CRC(6d05e9f2) SHA1(4b5c92b72bf73a08a2359fe889a327a696a45e8a) ) |
| 1031 | | ROM_LOAD ( "hb1vr.bin", 0x04000, 0x2000, CRC(4352d069) SHA1(bac687f050837b023da00cb53bb524b2a76310d4) ) |
| 1032 | | ROM_LOAD ( "hb2vr.bin", 0x06000, 0x2000, CRC(24edfd7d) SHA1(be8a40d8d5ccff06f37c1ab67341f56e41a5ea88) ) |
| 1482 | ROM_REGION( 0x10000, REGION_GFX2, ROMREGION_DISPOSE ) // tiles |
| 1483 | ROM_LOAD( "hb5vr.bin", 0x00000, 0x2000, CRC(6d05e9f2) SHA1(4b5c92b72bf73a08a2359fe889a327a696a45e8a) ) |
| 1484 | // empty space to unpack previous ROM |
| 1485 | ROM_LOAD( "hb6vr.bin", 0x04000, 0x2000, CRC(016340ae) SHA1(f980d39337c711a15520388967ca4503e7970e18) ) |
| 1486 | // empty space to unpack previous ROM |
| 1487 | ROM_LOAD( "hb1vr.bin", 0x08000, 0x2000, CRC(4352d069) SHA1(bac687f050837b023da00cb53bb524b2a76310d4) ) |
| 1488 | ROM_LOAD( "hb2vr.bin", 0x0a000, 0x2000, CRC(24edfd7d) SHA1(be8a40d8d5ccff06f37c1ab67341f56e41a5ea88) ) |
| 1489 | ROM_LOAD( "hb3vr.bin", 0x0c000, 0x2000, CRC(4947114e) SHA1(822dc3f14b71dc9e5b69078aefbed6b438aa0690) ) |
| 1490 | ROM_LOAD( "hb4vr.bin", 0x0e000, 0x2000, CRC(fa296cb3) SHA1(2ba864766655cb3dd2999a6cdf96dcefd6818135) ) |
| 1033 | 1491 | |
| 1034 | | ROM_REGION( 0x8000, REGION_GFX3, ROMREGION_DISPOSE ) // tile set2 |
| 1035 | | ROM_LOAD_NIB_HIGH( "hb6vr.bin", 0x00000, 0x2000, CRC(016340ae) SHA1(f980d39337c711a15520388967ca4503e7970e18) ) |
| 1036 | | ROM_LOAD ( "hb6vr.bin", 0x02000, 0x2000, CRC(016340ae) SHA1(f980d39337c711a15520388967ca4503e7970e18) ) |
| 1037 | | ROM_LOAD ( "hb3vr.bin", 0x04000, 0x2000, CRC(4947114e) SHA1(822dc3f14b71dc9e5b69078aefbed6b438aa0690) ) |
| 1038 | | ROM_LOAD ( "hb4vr.bin", 0x06000, 0x2000, CRC(fa296cb3) SHA1(2ba864766655cb3dd2999a6cdf96dcefd6818135) ) |
| 1492 | ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE ) // sprites |
| 1493 | ROM_LOAD( "hs5vr.bin", 0x00000, 0x2000, CRC(48394389) SHA1(a5c6021b60226a775b2052909e8d21b5f79d9ec5) ) |
| 1494 | // empty space to unpack previous ROM |
| 1495 | ROM_LOAD( "hs6vr.bin", 0x04000, 0x2000, CRC(141409ec) SHA1(3cc542fa34fdbd71e392c7c22da5d5120642be86) ) |
| 1496 | // empty space to unpack previous ROM |
| 1497 | ROM_LOAD( "hs1vr.bin", 0x08000, 0x2000, CRC(7c69b473) SHA1(abc181b4e5b3f48c667a0bb4814c3818dfc6e9e2) ) |
| 1498 | ROM_LOAD( "hs2vr.bin", 0x0a000, 0x2000, CRC(c3dc713f) SHA1(c2072cc71ea61e0c718c339bda1460d93343469e) ) |
| 1499 | ROM_LOAD( "hs3vr.bin", 0x0c000, 0x2000, CRC(883f93fd) SHA1(a96df701f82e62582522953830049d29bcb3d458) ) |
| 1500 | ROM_LOAD( "hs4vr.bin", 0x0e000, 0x2000, CRC(578ace7b) SHA1(933e85d49db7b27fd85e4713f0984612bc29e134) ) |
| 1039 | 1501 | |
| 1040 | | ROM_REGION( 0x8000, REGION_GFX4, ROMREGION_DISPOSE ) // sprite set1 |
| 1041 | | ROM_LOAD_NIB_HIGH( "hs5vr.bin", 0x00000, 0x2000, CRC(48394389) SHA1(a5c6021b60226a775b2052909e8d21b5f79d9ec5) ) |
| 1042 | | ROM_LOAD ( "hs5vr.bin", 0x02000, 0x2000, CRC(48394389) SHA1(a5c6021b60226a775b2052909e8d21b5f79d9ec5) ) |
| 1043 | | ROM_LOAD ( "hs1vr.bin", 0x04000, 0x2000, CRC(7c69b473) SHA1(abc181b4e5b3f48c667a0bb4814c3818dfc6e9e2) ) |
| 1044 | | ROM_LOAD ( "hs2vr.bin", 0x06000, 0x2000, CRC(c3dc713f) SHA1(c2072cc71ea61e0c718c339bda1460d93343469e) ) |
| 1502 | ROM_REGION( 0x0700, REGION_PROMS, 0 ) |
| 1503 | ROM_LOAD( "24s10n.a3", 0x0000, 0x100, CRC(e8a9d159) SHA1(d015149a39adcb5fc6d12d9afe7820ecef480039) ) // R |
| 1504 | ROM_LOAD( "24s10n.a1", 0x0100, 0x100, CRC(3956af86) SHA1(ccbb69535ece5e228622907d17c959b195b97a0a) ) // G |
| 1505 | ROM_LOAD( "24s10n.a2", 0x0200, 0x100, CRC(f50f8ec5) SHA1(ec2d934618e25e3471153f9fe7b34f978b113a47) ) // B |
| 1506 | ROM_LOAD( "24s10n.b6", 0x0300, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) // CLUT(same PROM x 4) |
| 1507 | ROM_LOAD( "24s10n.b7", 0x0400, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1508 | ROM_LOAD( "24s10n.b9", 0x0500, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1509 | ROM_LOAD( "24s10n.b10", 0x0600, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1045 | 1510 | |
| 1046 | | ROM_REGION( 0x8000, REGION_GFX5, ROMREGION_DISPOSE ) // sprite set2 |
| 1047 | | ROM_LOAD_NIB_HIGH( "hs6vr.bin", 0x00000, 0x2000, CRC(141409ec) SHA1(3cc542fa34fdbd71e392c7c22da5d5120642be86) ) |
| 1048 | | ROM_LOAD ( "hs6vr.bin", 0x02000, 0x2000, CRC(141409ec) SHA1(3cc542fa34fdbd71e392c7c22da5d5120642be86) ) |
| 1049 | | ROM_LOAD ( "hs3vr.bin", 0x04000, 0x2000, CRC(883f93fd) SHA1(a96df701f82e62582522953830049d29bcb3d458) ) |
| 1050 | | ROM_LOAD ( "hs4vr.bin", 0x06000, 0x2000, CRC(578ace7b) SHA1(933e85d49db7b27fd85e4713f0984612bc29e134) ) |
| 1511 | ROM_REGION( 0x0020, REGION_SOUND1, 0 ) |
| 1512 | ROM_LOAD( "18s030.h3", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) |
| 1513 | ROM_END |
| 1051 | 1514 | |
| 1052 | | ROM_REGION( 0x0300, REGION_PROMS, 0 ) // RGB PROMs |
| 1053 | | ROM_LOAD( "24s10n.a3", 0x00000, 0x100, CRC(e8a9d159) SHA1(d015149a39adcb5fc6d12d9afe7820ecef480039) ) |
| 1054 | | ROM_LOAD( "24s10n.a1", 0x00100, 0x100, CRC(3956af86) SHA1(ccbb69535ece5e228622907d17c959b195b97a0a) ) |
| 1055 | | ROM_LOAD( "24s10n.a2", 0x00200, 0x100, CRC(f50f8ec5) SHA1(ec2d934618e25e3471153f9fe7b34f978b113a47) ) |
| 1515 | /* |
| 1516 | Bull Fighter |
| 1056 | 1517 | |
| 1057 | | ROM_REGION( 0x0100, REGION_USER1, 0 ) // CLUT(same PROM x 4) |
| 1058 | | ROM_LOAD( "24s10n.b6", 0x0000, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1059 | | ROM_LOAD( "24s10n.b7", 0x0000, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1060 | | ROM_LOAD( "24s10n.b9", 0x0000, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1061 | | ROM_LOAD( "24s10n.b10", 0x0000, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1518 | Upper board (Sound) |
| 1519 | ------------------- |
| 1520 | All roms 2764 |
| 1521 | 1 prom TBP18S030 |
| 1522 | CPU 8085, AY-3-8910, 8155, 5232 |
| 1062 | 1523 | |
| 1063 | | ROM_REGION( 0x0020, REGION_USER2, 0 ) // MSM5232 PROMs?(identical to bprom.3h in Equites) |
| 1064 | | ROM_LOAD( "18s030.h3", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) |
| 1065 | | ROM_END |
| 1524 | Midle board |
| 1525 | ----------- |
| 1526 | Chips named M_xxx |
| 1066 | 1527 | |
| 1528 | e3 = 2732 |
| 1529 | All other roms 2764 |
| 1530 | A1- A3 TBP24S030 PROM |
| 1531 | |
| 1532 | CPU 68000 |
| 1533 | Special chip: |
| 1534 | Alpha 8303 44801B42 |
| 1535 | |
| 1536 | Lower board |
| 1537 | ----------- |
| 1538 | Chips named L_xxx |
| 1539 | All roms 2764 |
| 1540 | All Proms TBP24S10 |
| 1541 | */ |
| 1067 | 1542 | ROM_START( bullfgts ) |
| 1068 | 1543 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) // 68000 ROMs |
| 1069 | 1544 | ROM_LOAD16_BYTE( "m_d13.bin", 0x00001, 0x2000, CRC(7c35dd4b) SHA1(6bd604ee32c0c5db17f90e24aa254ec7072d27dd) ) |
| r2018 | r2019 | |
| 1074 | 1549 | ROM_LOAD16_BYTE( "m_b10.bin", 0x08000, 0x2000, CRC(9d84f678) SHA1(32584d54788cb570bd5210992836f28ba9c87aac) ) |
| 1075 | 1550 | ROM_FILL( 0x0c000, 0x4000, 0 ) |
| 1076 | 1551 | |
| 1077 | | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // Z80 ROMs |
| 1552 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // 8085A ROMs |
| 1078 | 1553 | ROM_LOAD( "hv1vr.bin", 0x00000, 0x2000, CRC(2a8e6fcf) SHA1(866903408e05938a982ffef4c9b849203c6cc060) ) |
| 1079 | 1554 | ROM_LOAD( "hv2vr.bin", 0x02000, 0x2000, CRC(026e1533) SHA1(6271869a3faaafacfac35262746e87a83c158b93) ) |
| 1080 | 1555 | ROM_LOAD( "hv3vr.bin", 0x04000, 0x2000, CRC(51ee751c) SHA1(60bf848dfdfe313ab05df5a5c05819b0fa87ca50) ) |
| r2018 | r2019 | |
| 1083 | 1558 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) // chars |
| 1084 | 1559 | ROM_LOAD( "h.bin", 0x000000, 0x1000, CRC(c6894c9a) SHA1(0d5a55cded4fd833211bdc733a78c6c8423897de) ) |
| 1085 | 1560 | |
| 1086 | | ROM_REGION( 0x8000, REGION_GFX2, ROMREGION_DISPOSE ) // tile set1 |
| 1087 | | ROM_LOAD_NIB_HIGH( "hb5vr.bin", 0x00000, 0x2000, CRC(6d05e9f2) SHA1(4b5c92b72bf73a08a2359fe889a327a696a45e8a) ) |
| 1088 | | ROM_LOAD ( "hb5vr.bin", 0x02000, 0x2000, CRC(6d05e9f2) SHA1(4b5c92b72bf73a08a2359fe889a327a696a45e8a) ) |
| 1089 | | ROM_LOAD ( "hb1vr.bin", 0x04000, 0x2000, CRC(4352d069) SHA1(bac687f050837b023da00cb53bb524b2a76310d4) ) |
| 1090 | | ROM_LOAD ( "hb2vr.bin", 0x06000, 0x2000, CRC(24edfd7d) SHA1(be8a40d8d5ccff06f37c1ab67341f56e41a5ea88) ) |
| 1561 | ROM_REGION( 0x10000, REGION_GFX2, ROMREGION_DISPOSE ) // tiles |
| 1562 | ROM_LOAD( "hb5vr.bin", 0x00000, 0x2000, CRC(6d05e9f2) SHA1(4b5c92b72bf73a08a2359fe889a327a696a45e8a) ) |
| 1563 | // empty space to unpack previous ROM |
| 1564 | ROM_LOAD( "hb6vr.bin", 0x04000, 0x2000, CRC(016340ae) SHA1(f980d39337c711a15520388967ca4503e7970e18) ) |
| 1565 | // empty space to unpack previous ROM |
| 1566 | ROM_LOAD( "hb1vr.bin", 0x08000, 0x2000, CRC(4352d069) SHA1(bac687f050837b023da00cb53bb524b2a76310d4) ) |
| 1567 | ROM_LOAD( "hb2vr.bin", 0x0a000, 0x2000, CRC(24edfd7d) SHA1(be8a40d8d5ccff06f37c1ab67341f56e41a5ea88) ) |
| 1568 | ROM_LOAD( "hb3vr.bin", 0x0c000, 0x2000, CRC(4947114e) SHA1(822dc3f14b71dc9e5b69078aefbed6b438aa0690) ) |
| 1569 | ROM_LOAD( "hb4vr.bin", 0x0e000, 0x2000, CRC(fa296cb3) SHA1(2ba864766655cb3dd2999a6cdf96dcefd6818135) ) |
| 1091 | 1570 | |
| 1092 | | ROM_REGION( 0x8000, REGION_GFX3, ROMREGION_DISPOSE ) // tile set2 |
| 1093 | | ROM_LOAD_NIB_HIGH( "hb6vr.bin", 0x00000, 0x2000, CRC(016340ae) SHA1(f980d39337c711a15520388967ca4503e7970e18) ) |
| 1094 | | ROM_LOAD ( "hb6vr.bin", 0x02000, 0x2000, CRC(016340ae) SHA1(f980d39337c711a15520388967ca4503e7970e18) ) |
| 1095 | | ROM_LOAD ( "hb3vr.bin", 0x04000, 0x2000, CRC(4947114e) SHA1(822dc3f14b71dc9e5b69078aefbed6b438aa0690) ) |
| 1096 | | ROM_LOAD ( "hb4vr.bin", 0x06000, 0x2000, CRC(fa296cb3) SHA1(2ba864766655cb3dd2999a6cdf96dcefd6818135) ) |
| 1571 | ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE ) // sprites |
| 1572 | ROM_LOAD( "hs5vr.bin", 0x00000, 0x2000, CRC(48394389) SHA1(a5c6021b60226a775b2052909e8d21b5f79d9ec5) ) |
| 1573 | // empty space to unpack previous ROM |
| 1574 | ROM_LOAD( "hs6vr.bin", 0x04000, 0x2000, CRC(141409ec) SHA1(3cc542fa34fdbd71e392c7c22da5d5120642be86) ) |
| 1575 | // empty space to unpack previous ROM |
| 1576 | ROM_LOAD( "hs1vr.bin", 0x08000, 0x2000, CRC(7c69b473) SHA1(abc181b4e5b3f48c667a0bb4814c3818dfc6e9e2) ) |
| 1577 | ROM_LOAD( "hs2vr.bin", 0x0a000, 0x2000, CRC(c3dc713f) SHA1(c2072cc71ea61e0c718c339bda1460d93343469e) ) |
| 1578 | ROM_LOAD( "hs3vr.bin", 0x0c000, 0x2000, CRC(883f93fd) SHA1(a96df701f82e62582522953830049d29bcb3d458) ) |
| 1579 | ROM_LOAD( "hs4vr.bin", 0x0e000, 0x2000, CRC(578ace7b) SHA1(933e85d49db7b27fd85e4713f0984612bc29e134) ) |
| 1097 | 1580 | |
| 1098 | | ROM_REGION( 0x8000, REGION_GFX4, ROMREGION_DISPOSE ) // sprite set1 |
| 1099 | | ROM_LOAD_NIB_HIGH( "hs5vr.bin", 0x00000, 0x2000, CRC(48394389) SHA1(a5c6021b60226a775b2052909e8d21b5f79d9ec5) ) |
| 1100 | | ROM_LOAD ( "hs5vr.bin", 0x02000, 0x2000, CRC(48394389) SHA1(a5c6021b60226a775b2052909e8d21b5f79d9ec5) ) |
| 1101 | | ROM_LOAD ( "hs1vr.bin", 0x04000, 0x2000, CRC(7c69b473) SHA1(abc181b4e5b3f48c667a0bb4814c3818dfc6e9e2) ) |
| 1102 | | ROM_LOAD ( "hs2vr.bin", 0x06000, 0x2000, CRC(c3dc713f) SHA1(c2072cc71ea61e0c718c339bda1460d93343469e) ) |
| 1581 | ROM_REGION( 0x0700, REGION_PROMS, 0 ) |
| 1582 | ROM_LOAD( "24s10n.a3", 0x0000, 0x100, CRC(e8a9d159) SHA1(d015149a39adcb5fc6d12d9afe7820ecef480039) ) // R |
| 1583 | ROM_LOAD( "24s10n.a1", 0x0100, 0x100, CRC(3956af86) SHA1(ccbb69535ece5e228622907d17c959b195b97a0a) ) // G |
| 1584 | ROM_LOAD( "24s10n.a2", 0x0200, 0x100, CRC(f50f8ec5) SHA1(ec2d934618e25e3471153f9fe7b34f978b113a47) ) // B |
| 1585 | ROM_LOAD( "24s10n.b6", 0x0300, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) // CLUT(same PROM x 4) |
| 1586 | ROM_LOAD( "24s10n.b7", 0x0400, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1587 | ROM_LOAD( "24s10n.b9", 0x0500, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1588 | ROM_LOAD( "24s10n.b10", 0x0600, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1103 | 1589 | |
| 1104 | | ROM_REGION( 0x8000, REGION_GFX5, ROMREGION_DISPOSE ) // sprite set2 |
| 1105 | | ROM_LOAD_NIB_HIGH( "hs6vr.bin", 0x00000, 0x2000, CRC(141409ec) SHA1(3cc542fa34fdbd71e392c7c22da5d5120642be86) ) |
| 1106 | | ROM_LOAD ( "hs6vr.bin", 0x02000, 0x2000, CRC(141409ec) SHA1(3cc542fa34fdbd71e392c7c22da5d5120642be86) ) |
| 1107 | | ROM_LOAD ( "hs3vr.bin", 0x04000, 0x2000, CRC(883f93fd) SHA1(a96df701f82e62582522953830049d29bcb3d458) ) |
| 1108 | | ROM_LOAD ( "hs4vr.bin", 0x06000, 0x2000, CRC(578ace7b) SHA1(933e85d49db7b27fd85e4713f0984612bc29e134) ) |
| 1109 | | |
| 1110 | | ROM_REGION( 0x0300, REGION_PROMS, 0 ) // RGB PROMs |
| 1111 | | ROM_LOAD( "24s10n.a3", 0x00000, 0x100, CRC(e8a9d159) SHA1(d015149a39adcb5fc6d12d9afe7820ecef480039) ) |
| 1112 | | ROM_LOAD( "24s10n.a1", 0x00100, 0x100, CRC(3956af86) SHA1(ccbb69535ece5e228622907d17c959b195b97a0a) ) |
| 1113 | | ROM_LOAD( "24s10n.a2", 0x00200, 0x100, CRC(f50f8ec5) SHA1(ec2d934618e25e3471153f9fe7b34f978b113a47) ) |
| 1114 | | |
| 1115 | | ROM_REGION( 0x0100, REGION_USER1, 0 ) // CLUT(same PROM x 4) |
| 1116 | | ROM_LOAD( "24s10n.b6", 0x0000, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1117 | | ROM_LOAD( "24s10n.b7", 0x0000, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1118 | | ROM_LOAD( "24s10n.b9", 0x0000, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1119 | | ROM_LOAD( "24s10n.b10", 0x0000, 0x100, CRC(8835a069) SHA1(bc8d4130d4fa0f16bb2511ac66b84d53218042a3) ) |
| 1120 | | |
| 1121 | | ROM_REGION( 0x0020, REGION_USER2, 0 ) // MSM5232 PROMs?(identical to bprom.3h in Equites) |
| 1590 | ROM_REGION( 0x0020, REGION_SOUND1, 0 ) |
| 1122 | 1591 | ROM_LOAD( "18s030.h3", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) |
| 1123 | 1592 | ROM_END |
| 1124 | 1593 | |
| 1125 | 1594 | /******************************************************************************/ |
| 1126 | 1595 | // Splendor Blast ROM Map |
| 1127 | 1596 | |
| 1597 | /* |
| 1598 | Splendor Blast (JPN Ver.) |
| 1599 | (c)1985 Alpha denshi |
| 1600 | |
| 1601 | ALPHA 68K24 |
| 1602 | CPU :HD68000-8 |
| 1603 | OSC :24.000MHz |
| 1604 | Other:ALPHA-8303 |
| 1605 | |
| 1606 | SOUND BOARD NO.59 MC 07 |
| 1607 | CPU :TMP8085AP |
| 1608 | Sound:AY-3-8910A,OKI M5232,M5L8155P |
| 1609 | OSC :6.144MHz |
| 1610 | */ |
| 1128 | 1611 | ROM_START( splndrbt ) |
| 1129 | 1612 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) // 68000 ROMs(16k x 4) |
| 1130 | 1613 | ROM_LOAD16_BYTE( "1.16a", 0x00001, 0x4000, CRC(4bf4b047) SHA1(ef0efffa2f49905e17e4ed3a03cac419793b26d1) ) |
| r2018 | r2019 | |
| 1132 | 1615 | ROM_LOAD16_BYTE( "3.15a", 0x08001, 0x4000, CRC(5b182189) SHA1(50ebb1fddcb6838442e8a20261f200f3386ce8a8) ) |
| 1133 | 1616 | ROM_LOAD16_BYTE( "4.15c", 0x08000, 0x4000, CRC(cde99613) SHA1(250b59f75eee84442da3cc7c599d1e16f0294df9) ) |
| 1134 | 1617 | |
| 1135 | | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // Z80 ROMs(8k x 4) |
| 1618 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // 8085A ROMs |
| 1136 | 1619 | ROM_LOAD( "1_v.1m", 0x00000, 0x2000, CRC(1b3a6e42) SHA1(41a4f0503c939ec0a739c8bc6bf3c8fc354912ee) ) |
| 1137 | 1620 | ROM_LOAD( "2_v.1l", 0x02000, 0x2000, CRC(2a618c72) SHA1(6ad459d94352c317150ae6344d4db9bb613938dd) ) |
| 1138 | 1621 | ROM_LOAD( "3_v.1k", 0x04000, 0x2000, CRC(bbee5346) SHA1(753cb784b04f081fa1f8590dc28056d9918f313b) ) |
| 1139 | 1622 | ROM_LOAD( "4_v.1h", 0x06000, 0x2000, CRC(10f45af4) SHA1(00fa599bad8bf3ba6deee54165f381403096e8f9) ) |
| 1140 | 1623 | |
| 1141 | | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) // 512 chars(8k x 1) |
| 1624 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) // chars |
| 1142 | 1625 | ROM_LOAD( "10.8c", 0x00000, 0x2000, CRC(501887d4) SHA1(3cf4401d6fddff1500066219a71ac3b30ecbdd28) ) |
| 1143 | 1626 | |
| 1144 | | ROM_REGION( 0x4000, REGION_GFX2, ROMREGION_DISPOSE ) // 256 tiles(16k x 1) |
| 1627 | ROM_REGION( 0x8000, REGION_GFX2, ROMREGION_DISPOSE ) // tiles |
| 1145 | 1628 | ROM_LOAD( "8.14m", 0x00000, 0x4000, CRC(c2c86621) SHA1(a715c70ace98502f2c0d4a81539cd79d19e9b6c4) ) |
| 1629 | ROM_LOAD( "9.12m", 0x04000, 0x4000, CRC(4f7da6ff) SHA1(0516271df4a36d6ea38d1b8a5e471e1d2a79e8c1) ) |
| 1146 | 1630 | |
| 1147 | | ROM_REGION( 0x4000, REGION_GFX3, ROMREGION_DISPOSE ) // 256 tiles(16k x 1) |
| 1148 | | ROM_LOAD( "9.12m", 0x00000, 0x4000, CRC(4f7da6ff) SHA1(0516271df4a36d6ea38d1b8a5e471e1d2a79e8c1) ) |
| 1631 | ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE ) // sprites |
| 1632 | ROM_LOAD( "6.18n", 0x00000, 0x2000, CRC(aa72237f) SHA1(0a26746a6c448a7fb853ef708e2bdeb76edd99cf) ) |
| 1633 | // empty space to unpack previous ROM |
| 1634 | ROM_CONTINUE( 0x04000, 0x2000 ) |
| 1635 | // empty space to unpack previous ROM |
| 1636 | ROM_LOAD( "5.18m", 0x08000, 0x4000, CRC(5f618b39) SHA1(2891067e71b8e1183ee5741487faa1561316cade) ) |
| 1637 | ROM_LOAD( "7.17m", 0x0c000, 0x4000, CRC(abdd8483) SHA1(df8c8338c24fa487c49b01ce26db7eb28c8c6b85) ) |
| 1149 | 1638 | |
| 1150 | | ROM_REGION( 0x10000, REGION_GFX4, ROMREGION_DISPOSE ) // 256 sprites |
| 1151 | | ROM_LOAD_NIB_HIGH( "6.18n", 0x00000, 0x2000, CRC(aa72237f) SHA1(0a26746a6c448a7fb853ef708e2bdeb76edd99cf) ) |
| 1152 | | ROM_CONTINUE ( 0x04000, 0x2000 ) |
| 1153 | | ROM_LOAD ( "6.18n", 0x02000, 0x2000, CRC(aa72237f) SHA1(0a26746a6c448a7fb853ef708e2bdeb76edd99cf) ) |
| 1154 | | ROM_CONTINUE ( 0x06000, 0x2000 ) |
| 1155 | | ROM_LOAD ( "5.18m", 0x08000, 0x4000, CRC(5f618b39) SHA1(2891067e71b8e1183ee5741487faa1561316cade) ) |
| 1156 | | ROM_LOAD ( "7.17m", 0x0c000, 0x4000, CRC(abdd8483) SHA1(df8c8338c24fa487c49b01ce26db7eb28c8c6b85) ) |
| 1639 | ROM_REGION( 0x0500, REGION_PROMS, 0 ) |
| 1640 | ROM_LOAD( "r.3a", 0x0000, 0x100, CRC(ca1f08ce) SHA1(e46e2850d3ee3c8cbb23c10645f07d406c7ff50b) ) // R |
| 1641 | ROM_LOAD( "g.1a", 0x0100, 0x100, CRC(66f89177) SHA1(caa51c1bf071764d5089487342794cbf023136c0) ) // G |
| 1642 | ROM_LOAD( "b.2a", 0x0200, 0x100, CRC(d14318bc) SHA1(e219963b3e40eb246e608fbe10daa85dbb4c1226) ) // B |
| 1643 | ROM_LOAD( "2.8k", 0x0300, 0x100, CRC(e1770ad3) SHA1(e408b175b8fff934e07b0ded1ee21d7f91a9523d) ) // CLUT bg |
| 1644 | ROM_LOAD( "s5.15p", 0x0400, 0x100, CRC(7f6cf709) SHA1(5938faf937b682dcc83e53444cbf5e0bd7741363) ) // CLUT sprites |
| 1157 | 1645 | |
| 1158 | | ROM_REGION( 0x0300, REGION_PROMS, 0 ) // RGB PROMs |
| 1159 | | ROM_LOAD( "r.3a", 0x00000, 0x100, CRC(ca1f08ce) SHA1(e46e2850d3ee3c8cbb23c10645f07d406c7ff50b) ) // R |
| 1160 | | ROM_LOAD( "g.1a", 0x00100, 0x100, CRC(66f89177) SHA1(caa51c1bf071764d5089487342794cbf023136c0) ) // G |
| 1161 | | ROM_LOAD( "b.2a", 0x00200, 0x100, CRC(d14318bc) SHA1(e219963b3e40eb246e608fbe10daa85dbb4c1226) ) // B |
| 1646 | ROM_REGION( 0x0020, REGION_SOUND1, 0 ) |
| 1647 | ROM_LOAD( "3h.bpr", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) |
| 1162 | 1648 | |
| 1163 | | ROM_REGION( 0x0500, REGION_USER1, 0 ) // CLUT(256bytes x 5) |
| 1164 | | ROM_LOAD( "2.8k", 0x00000, 0x100, CRC(e1770ad3) SHA1(e408b175b8fff934e07b0ded1ee21d7f91a9523d) ) |
| 1165 | | ROM_LOAD( "s5.15p", 0x00100, 0x100, CRC(7f6cf709) SHA1(5938faf937b682dcc83e53444cbf5e0bd7741363) ) |
| 1166 | | ROM_LOAD( "s3.8l", 0x00200, 0x100, CRC(1314b0b5) SHA1(31ef4b916110581390afc1ba90c5dca7c08c619f) ) // unknown |
| 1167 | | ROM_LOAD( "1.9j", 0x00300, 0x100, CRC(f5b9b777) SHA1(a4ec731be77306db6baf319391c4fe78517fe43e) ) // unknown |
| 1168 | | ROM_LOAD( "4.7m", 0x00400, 0x100, CRC(12cbcd2c) SHA1(a7946820bbf3f7e110a328b673123988af97ce7e) ) // unknown |
| 1649 | ROM_REGION( 0x2100, REGION_USER1, 0 ) // bg scaling |
| 1650 | ROM_LOAD( "0.8h", 0x0000, 0x2000, CRC(12681fb5) SHA1(7a0930819d4cd00475d1897128daa6ac865e07d0) ) // x |
| 1651 | ROM_LOAD( "1.9j", 0x2000, 0x0100, CRC(f5b9b777) SHA1(a4ec731be77306db6baf319391c4fe78517fe43e) ) // y |
| 1169 | 1652 | |
| 1170 | | ROM_REGION( 0x2000, REGION_USER2, 0 ) // unknown(8k x 1) |
| 1171 | | ROM_LOAD( "0.8h", 0x00000, 0x2000, CRC(12681fb5) SHA1(7a0930819d4cd00475d1897128daa6ac865e07d0) ) |
| 1172 | | |
| 1173 | | ROM_REGION( 0x0020, REGION_USER3, 0 ) // MSM5232 PROMs?(identical to bprom.3h in Equites) |
| 1174 | | ROM_LOAD( "3h.bpr", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) |
| 1653 | ROM_REGION( 0x0200, REGION_USER2, 0 ) // sprite scaling |
| 1654 | ROM_LOAD( "4.7m", 0x0000, 0x0100, CRC(12cbcd2c) SHA1(a7946820bbf3f7e110a328b673123988af97ce7e) ) // x |
| 1655 | ROM_LOAD( "s3.8l", 0x0100, 0x0100, CRC(1314b0b5) SHA1(31ef4b916110581390afc1ba90c5dca7c08c619f) ) // y |
| 1175 | 1656 | ROM_END |
| 1176 | 1657 | |
| 1177 | 1658 | /******************************************************************************/ |
| 1178 | 1659 | // High Voltage ROM Map |
| 1179 | 1660 | |
| 1661 | /* |
| 1662 | High Voltage (JPN Ver.) |
| 1663 | (c)1985 Alpha denshi |
| 1664 | |
| 1665 | ALPHA 68K24 |
| 1666 | CPU :HD68000-8 |
| 1667 | OSC :24.000MHz |
| 1668 | Other:ALPHA-8304 |
| 1669 | |
| 1670 | SOUND BOARD NO.59 MC 07 |
| 1671 | CPU :TMP8085AP |
| 1672 | Sound:AY-3-8910A,OKI M5232,D8155HC |
| 1673 | OSC :6.144MHz |
| 1674 | */ |
| 1180 | 1675 | ROM_START( hvoltage ) |
| 1181 | 1676 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) // 68000 ROMs(16k x 4) |
| 1182 | 1677 | ROM_LOAD16_BYTE( "1.16a", 0x00001, 0x4000, CRC(82606e3b) SHA1(25c3172928d8f1eda2c4c757d505fdfd91f21ea1) ) |
| r2018 | r2019 | |
| 1184 | 1679 | ROM_LOAD16_BYTE( "3.15a", 0x08001, 0x4000, CRC(677abe14) SHA1(78b343122f9ad187c823bf49e8f001288c762586) ) |
| 1185 | 1680 | ROM_LOAD16_BYTE( "4.15c", 0x08000, 0x4000, CRC(8aab5a20) SHA1(fb90817173ad69c0e00d03814b4e10b18955c07e) ) |
| 1186 | 1681 | |
| 1187 | | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // Z80 ROMs(8k x 3) |
| 1682 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) // 8085A ROMs |
| 1188 | 1683 | ROM_LOAD( "5_v.1l", 0x00000, 0x4000, CRC(ed9bb6ea) SHA1(73b0251b86835368ec2a4e98a5f61e28e58fd234) ) |
| 1189 | 1684 | ROM_LOAD( "6_v.1h", 0x04000, 0x4000, CRC(e9542211) SHA1(482f2c90e842fe5cc31cc6a39025adf65ba47ce9) ) |
| 1190 | 1685 | ROM_LOAD( "7_v.1e", 0x08000, 0x4000, CRC(44d38554) SHA1(6765971376eafa218fda1accb1e173a7c1850cc8) ) |
| 1191 | 1686 | |
| 1192 | | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) // 512 chars(8k x 1) |
| 1687 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) // chars |
| 1193 | 1688 | ROM_LOAD( "5.8c", 0x00000, 0x2000, CRC(656d53cd) SHA1(9971ed7e7da0e8bf46e97e8f75a2c2201b33fc2f) ) |
| 1194 | 1689 | |
| 1195 | | ROM_REGION( 0x4000, REGION_GFX2, ROMREGION_DISPOSE ) // 256 tiles(16k x 1) |
| 1690 | ROM_REGION( 0x8000, REGION_GFX2, ROMREGION_DISPOSE ) // tiles |
| 1196 | 1691 | ROM_LOAD( "9.14m", 0x00000, 0x4000, CRC(506a0989) SHA1(0e7f2c9bab5e83f06a8148f69d8d0cbfe7d55c5e) ) |
| 1692 | ROM_LOAD( "10.12m", 0x04000, 0x4000, CRC(98f87d4f) SHA1(94a7a14b0905597993595b347102436d97fc1dc9) ) |
| 1197 | 1693 | |
| 1198 | | ROM_REGION( 0x4000, REGION_GFX3, ROMREGION_DISPOSE ) // 256 tiles(16k x 1) |
| 1199 | | ROM_LOAD( "10.12m", 0x00000, 0x4000, CRC(98f87d4f) SHA1(94a7a14b0905597993595b347102436d97fc1dc9) ) |
| 1694 | ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE ) // sprites |
| 1695 | ROM_LOAD( "8.18n", 0x00000, 0x2000, CRC(725acae5) SHA1(ba54598a087f8bb5fa7182b0e85d0e038003e622) ) |
| 1696 | // empty space to unpack previous ROM |
| 1697 | ROM_CONTINUE( 0x04000, 0x2000 ) |
| 1698 | // empty space to unpack previous ROM |
| 1699 | ROM_LOAD( "6.18m", 0x08000, 0x4000, CRC(9baf2c68) SHA1(208e5ac8eb157d4bf949ab4330827da032a04235) ) |
| 1700 | ROM_LOAD( "7.17m", 0x0c000, 0x4000, CRC(12d25fb1) SHA1(99f5d68bd6d6ee5f2acb7685aceacfb0894c4961) ) |
| 1200 | 1701 | |
| 1201 | | ROM_REGION( 0x10000, REGION_GFX4, ROMREGION_DISPOSE ) // 256 sprites |
| 1202 | | ROM_LOAD_NIB_HIGH( "8.18n", 0x00000, 0x2000, CRC(725acae5) SHA1(ba54598a087f8bb5fa7182b0e85d0e038003e622) ) |
| 1203 | | ROM_CONTINUE ( 0x04000, 0x2000 ) |
| 1204 | | ROM_LOAD ( "8.18n", 0x02000, 0x2000, CRC(725acae5) SHA1(ba54598a087f8bb5fa7182b0e85d0e038003e622) ) |
| 1205 | | ROM_CONTINUE ( 0x06000, 0x2000 ) |
| 1206 | | ROM_LOAD ( "6.18m", 0x08000, 0x4000, CRC(9baf2c68) SHA1(208e5ac8eb157d4bf949ab4330827da032a04235) ) |
| 1207 | | ROM_LOAD ( "7.17m", 0x0c000, 0x4000, CRC(12d25fb1) SHA1(99f5d68bd6d6ee5f2acb7685aceacfb0894c4961) ) |
| 1702 | ROM_REGION( 0x0500, REGION_PROMS, 0 ) |
| 1703 | ROM_LOAD( "r.3a", 0x0000, 0x100, CRC(98eccbf6) SHA1(a55755e8388d3edf3020b1129a638fe1e99362b6) ) // R |
| 1704 | ROM_LOAD( "g.1a", 0x0100, 0x100, CRC(fab2ed23) SHA1(6f63b6a3196dda76eb9a885b17d886a14365f922) ) // G |
| 1705 | ROM_LOAD( "b.2a", 0x0200, 0x100, CRC(7274961b) SHA1(d13070060e216d633675a528cf0dc3de94c95ffb) ) // B |
| 1706 | ROM_LOAD( "2.8k", 0x0300, 0x100, CRC(685f4e44) SHA1(110cb8f5a37f22ce9d391bd0cd46dcbb8fcf66b8) ) // CLUT bg |
| 1707 | ROM_LOAD( "s5.15p", 0x0400, 0x100, CRC(b09bcc73) SHA1(f8139feaa9563324b69aeac5c17beccfdbfa0864) ) // CLUT sprites |
| 1208 | 1708 | |
| 1209 | | ROM_REGION( 0x0300, REGION_PROMS, 0 ) // RGB PROMs |
| 1210 | | ROM_LOAD( "r.3a", 0x00000, 0x100, CRC(98eccbf6) SHA1(a55755e8388d3edf3020b1129a638fe1e99362b6) ) // R |
| 1211 | | ROM_LOAD( "g.1a", 0x00100, 0x100, CRC(fab2ed23) SHA1(6f63b6a3196dda76eb9a885b17d886a14365f922) ) // G |
| 1212 | | ROM_LOAD( "b.2a", 0x00200, 0x100, CRC(7274961b) SHA1(d13070060e216d633675a528cf0dc3de94c95ffb) ) // B |
| 1709 | ROM_REGION( 0x0020, REGION_SOUND1, 0 ) |
| 1710 | ROM_LOAD( "3h.bpr", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) |
| 1213 | 1711 | |
| 1214 | | ROM_REGION( 0x0500, REGION_USER1, 0 ) // CLUT(256bytes x 5) |
| 1215 | | ROM_LOAD( "2.8k", 0x00000, 0x100, CRC(685f4e44) SHA1(110cb8f5a37f22ce9d391bd0cd46dcbb8fcf66b8) ) |
| 1216 | | ROM_LOAD( "s5.15p", 0x00100, 0x100, CRC(b09bcc73) SHA1(f8139feaa9563324b69aeac5c17beccfdbfa0864) ) |
| 1217 | | ROM_LOAD( "3.8l", 0x00200, 0x100, CRC(1314b0b5) SHA1(31ef4b916110581390afc1ba90c5dca7c08c619f) ) // unknown(identical to s3.8l in Splendor Blast) |
| 1218 | | ROM_LOAD( "1.9j", 0x00300, 0x100, CRC(f5b9b777) SHA1(a4ec731be77306db6baf319391c4fe78517fe43e) ) // unknown(identical to 1.9j in Splendor Blast) |
| 1219 | | ROM_LOAD( "4.7m", 0x00400, 0x100, CRC(12cbcd2c) SHA1(a7946820bbf3f7e110a328b673123988af97ce7e) ) // unknown(identical to 4.7m in Splendor Blast) |
| 1712 | ROM_REGION( 0x2100, REGION_USER1, 0 ) // bg scaling |
| 1713 | ROM_LOAD( "0.8h", 0x0000, 0x2000, CRC(12681fb5) SHA1(7a0930819d4cd00475d1897128daa6ac865e07d0) ) // x |
| 1714 | ROM_LOAD( "1.9j", 0x2000, 0x0100, CRC(f5b9b777) SHA1(a4ec731be77306db6baf319391c4fe78517fe43e) ) // y |
| 1220 | 1715 | |
| 1221 | | ROM_REGION( 0x2000, REGION_USER2, 0 ) // unknown(8k x 1, identical to 0.8h in Splendor Blast ) |
| 1222 | | ROM_LOAD( "0.8h", 0x00000, 0x2000, CRC(12681fb5) SHA1(7a0930819d4cd00475d1897128daa6ac865e07d0) ) |
| 1223 | | |
| 1224 | | ROM_REGION( 0x0020, REGION_USER3, 0 ) // MSM5232 PROMs?(identical to bprom.3h in Equites) |
| 1225 | | ROM_LOAD( "3h.bpr", 0x00000, 0x020, CRC(33b98466) SHA1(017c73cf8c17dc5047c89316ae5b45f8d22092e8) ) |
| 1716 | ROM_REGION( 0x0200, REGION_USER2, 0 ) // sprite scaling |
| 1717 | ROM_LOAD( "4.7m", 0x0000, 0x0100, CRC(12cbcd2c) SHA1(a7946820bbf3f7e110a328b673123988af97ce7e) ) // x |
| 1718 | ROM_LOAD( "3.8l", 0x0100, 0x0100, CRC(1314b0b5) SHA1(31ef4b916110581390afc1ba90c5dca7c08c619f) ) // y |
| 1226 | 1719 | ROM_END |
| 1227 | 1720 | |
| 1228 | 1721 | /******************************************************************************/ |
| 1229 | 1722 | // Initializations |
| 1230 | 1723 | |
| 1231 | | static void equites_init_common(void) |
| 1724 | static void unpack_block(int region, int offset, int size) |
| 1232 | 1725 | { |
| 1233 | | equites_flip = 0; |
| 1726 | UINT8 *rom = memory_region(region); |
| 1727 | int i; |
| 1234 | 1728 | |
| 1235 | | equites_8404init(); |
| 1729 | for (i = 0; i < size; ++i) |
| 1730 | { |
| 1731 | rom[(offset + i + size)] = (rom[(offset + i)] >> 4); |
| 1732 | rom[(offset + i)] &= 0x0f; |
| 1733 | } |
| 1236 | 1734 | } |
| 1237 | 1735 | |
| 1238 | | static void splndrbt_init_common(void) |
| 1736 | static void unpack_region(int region) |
| 1239 | 1737 | { |
| 1240 | | equites_8404init(); |
| 1738 | unpack_block(region, 0x0000, 0x2000); |
| 1739 | unpack_block(region, 0x4000, 0x2000); |
| 1241 | 1740 | } |
| 1242 | 1741 | |
| 1742 | |
| 1243 | 1743 | static DRIVER_INIT( equites ) |
| 1244 | 1744 | { |
| 1245 | | equites_id = 0x8400; |
| 1246 | | |
| 1247 | | equites_init_common(); |
| 1248 | | |
| 1249 | | equites_8404rule(0x094a, 0x007, 0x04); // 8404 test |
| 1250 | | equites_8404rule(0x094e, 0x049, 0x00); // 8404 test |
| 1251 | | |
| 1252 | | equites_8404rule(0x0c76, 0x00b, 0x04); // death |
| 1253 | | equites_8404rule(0x0c7e, 0x0cf, 0x0c); // 2nd jmp hi |
| 1254 | | equites_8404rule(0x0c84, 0x0d1, 0xae); // 2nd jmp lo |
| 1255 | | equites_8404rule(0x0c8c, 0x0d3, 0x0c); // 1st jmp hi |
| 1256 | | equites_8404rule(0x0c92, 0x0d5, 0x9c); // 1st jmp lo |
| 1257 | | |
| 1258 | | equites_8404rule(0x92a6, 0x00f, 0x04); // respawn |
| 1259 | | equites_8404rule(0x92b0, 0x27d,-0x40); // 2nd jmp hi |
| 1260 | | equites_8404rule(0x92b6, 0x27f,-0x04); // 2nd jmp lo |
| 1261 | | equites_8404rule(0x92b0, 0x281,-0x50); // 1st jmp hi |
| 1262 | | equites_8404rule(0x92b6, 0x283,-0x05); // 1st jmp lo |
| 1263 | | |
| 1264 | | equites_8404rule(0x8f06, 0x013, 0x04); // ENT |
| 1265 | | equites_8404rule(0x8f0c, 0x481,-0x10); // ENT jmpaddr hi |
| 1266 | | equites_8404rule(0x8f12, 0x483,-0x01); // ENT jmpaddr lo |
| 1267 | | |
| 1268 | | equites_8404rule(0x915e, 0x017, 0x04); // EXT |
| 1269 | | equites_8404rule(0x9164, 0x47d,-0x20); // scroll y |
| 1270 | | equites_8404rule(0x916a, 0x47f,-0x02); // player y |
| 1271 | | equites_8404rule(0x9170, 0x481,-0x30); // exit location hi |
| 1272 | | equites_8404rule(0x9176, 0x483,-0x03); // exit location lo |
| 1745 | unpack_region(REGION_GFX2); |
| 1746 | unpack_region(REGION_GFX3); |
| 1273 | 1747 | } |
| 1274 | 1748 | |
| 1275 | 1749 | static DRIVER_INIT( bullfgtr ) |
| 1276 | 1750 | { |
| 1277 | | equites_id = 0x8401; |
| 1278 | | |
| 1279 | | equites_init_common(); |
| 1280 | | |
| 1281 | | equites_8404rule(0x0e7a, 0x601, 0x00); // boot up |
| 1282 | | equites_8404rule(0x3dc4, 0x201, 0x0c); // goal in |
| 1751 | unpack_region(REGION_GFX2); |
| 1752 | unpack_region(REGION_GFX3); |
| 1283 | 1753 | } |
| 1284 | 1754 | |
| 1285 | | static DRIVER_INIT( bullfgts ) |
| 1755 | static DRIVER_INIT( kouyakyu ) |
| 1286 | 1756 | { |
| 1287 | | equites_id = 0x8401; |
| 1288 | | |
| 1289 | | equites_init_common(); |
| 1290 | | |
| 1291 | | equites_8404rule(0x0e7a, 0x601, 0x00); // boot up |
| 1292 | | equites_8404rule(0x3da4, 0x201, 0x0c); // goal in |
| 1757 | unpack_region(REGION_GFX2); |
| 1758 | unpack_region(REGION_GFX3); |
| 1293 | 1759 | } |
| 1294 | 1760 | |
| 1295 | | static DRIVER_INIT( kouyakyu ) |
| 1761 | static DRIVER_INIT( gekisou ) |
| 1296 | 1762 | { |
| 1297 | | equites_id = 0x8500; |
| 1763 | UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1); |
| 1298 | 1764 | |
| 1299 | | equites_init_common(); |
| 1765 | unpack_region(REGION_GFX2); |
| 1766 | unpack_region(REGION_GFX3); |
| 1300 | 1767 | |
| 1301 | | equites_8404rule(0x5582, 0x603, 0x05); // home run |
| 1768 | // FIXME - patch input check |
| 1769 | rom[0x8b0>>1] = 0x4e71; |
| 1770 | rom[0x8d4>>1] = 0x4e71; |
| 1771 | rom[0xb3a>>1] = 0x4e71; |
| 1772 | rom[0xb3c>>1] = 0x4e71; |
| 1773 | // patch ROM checksum test too |
| 1774 | rom[0x4b4>>1] = 0x4e71; |
| 1775 | rom[0x4b6>>1] = 0x4e71; |
| 1776 | rom[0x4bc>>1] = 0x4e71; |
| 1777 | rom[0x4be>>1] = 0x4e71; |
| 1302 | 1778 | } |
| 1303 | 1779 | |
| 1304 | 1780 | static DRIVER_INIT( splndrbt ) |
| 1305 | 1781 | { |
| 1306 | | equites_id = 0x8510; |
| 1307 | | |
| 1308 | | splndrbt_init_common(); |
| 1309 | | |
| 1310 | | equites_8404rule(0x06f8, 0x007, 0x04); // 8404 test |
| 1311 | | equites_8404rule(0x06fc, 0x049, 0x00); // 8404 test |
| 1312 | | |
| 1313 | | equites_8404rule(0x12dc, 0x01b, 0x04); // guard point |
| 1314 | | equites_8404rule(0x12e4, 0x01f, 0x04); // guard point |
| 1315 | | |
| 1316 | | equites_8404rule(0x0dc2, 0x00b, 0x04); // guard point (start race) |
| 1317 | | equites_8404rule(0x0dd4, 0x5e1, 0x00); // no. of addresses to look up - 1 |
| 1318 | | equites_8404rule(0x0dd8, 0x5e3, 0x0c); // race start/respawn addr hi |
| 1319 | | equites_8404rule(0x0dde, 0x5e5, 0x32); // race start/respawn addr lo |
| 1320 | | |
| 1321 | | equites_8404rule(0x1268, 0x023, 0x04); // guard point |
| 1322 | | |
| 1323 | | equites_8404rule(0x1298, 0x25f,-0x0c); // stage number? |
| 1324 | | |
| 1325 | | // game params. (180261-18027f)->(40060-4006f) |
| 1326 | | equites_8404rule(0x12a0, 0x261, 0x0a); // max speed hi |
| 1327 | | equites_8404rule(0x12a0, 0x263, 0x00); // max speed lo |
| 1328 | | equites_8404rule(0x12a0, 0x265, 0x00); // accel hi |
| 1329 | | equites_8404rule(0x12a0, 0x267, 0x10); // accel lo |
| 1330 | | equites_8404rule(0x12a0, 0x269, 0x0c); // max turbo speed hi |
| 1331 | | equites_8404rule(0x12a0, 0x26b, 0x00); // max turbo speed lo |
| 1332 | | equites_8404rule(0x12a0, 0x26d, 0x00); // turbo accel hi |
| 1333 | | equites_8404rule(0x12a0, 0x26f, 0x20); // turbo accel lo |
| 1334 | | equites_8404rule(0x12a0, 0x271,-0x09); // random enemy spwan list |
| 1335 | | equites_8404rule(0x12a0, 0x273,-0x09); // . |
| 1336 | | equites_8404rule(0x12a0, 0x275,-0x09); // . |
| 1337 | | equites_8404rule(0x12a0, 0x277,-0x09); // . |
| 1338 | | equites_8404rule(0x12a0, 0x279,-0x09); // . |
| 1339 | | equites_8404rule(0x12a0, 0x27b,-0x09); // . |
| 1340 | | equites_8404rule(0x12a0, 0x27d,-0x09); // . |
| 1341 | | equites_8404rule(0x12a0, 0x27f,-0x09); // . |
| 1342 | | |
| 1343 | | equites_8404rule(0x500e, 0x281,-0x08); // power-up's (random?) |
| 1344 | | equites_8404rule(0x500e, 0x283,-0x08); // power-up's (random?) |
| 1345 | | |
| 1346 | | equites_8404rule(0x132e, 0x285,-0xa0); // object spawn table addr hi |
| 1347 | | equites_8404rule(0x1334, 0x287,-0x0a); // object spawn table addr lo |
| 1348 | | |
| 1349 | | equites_8404rule(0x739a, 0x289,-0xb0); // level section table addr hi |
| 1350 | | equites_8404rule(0x73a0, 0x28b,-0x0b); // level section table addr lo |
| 1351 | | |
| 1352 | | equites_8404rule(0x0912, 0x017, 0x04); // guard point |
| 1353 | | equites_8404rule(0x0b4c, 0x013, 0x04); // guard point |
| 1354 | | |
| 1355 | | equites_8404rule(0x0bfc, 0x00f, 0x04); // guard point (miss/no gas/end level) |
| 1356 | | equites_8404rule(0x0c08, 0x5e1, 0x05); // no. of addresses to look up - 1 |
| 1357 | | equites_8404rule(0x0c0c, 0x5e3,-0x70); // game over/respawn addr hi |
| 1358 | | equites_8404rule(0x0c12, 0x5e5,-0x07); // game over/respawn addr lo |
| 1359 | | equites_8404rule(0x0c0c, 0x5e7,-0x70); // game over/respawn addr hi |
| 1360 | | equites_8404rule(0x0c12, 0x5e9,-0x07); // game over/respawn addr lo |
| 1361 | | equites_8404rule(0x0c0c, 0x5eb,-0x70); // game over/respawn addr hi |
| 1362 | | equites_8404rule(0x0c12, 0x5ed,-0x07); // game over/respawn addr lo |
| 1363 | | equites_8404rule(0x0c0c, 0x5ef,-0x70); // game over/respawn addr hi |
| 1364 | | equites_8404rule(0x0c12, 0x5f1,-0x07); // game over/respawn addr lo |
| 1365 | | equites_8404rule(0x0c0c, 0x5f3,-0x70); // game over/respawn addr hi |
| 1366 | | equites_8404rule(0x0c12, 0x5f5,-0x07); // game over/respawn addr lo |
| 1367 | | equites_8404rule(0x0c0c, 0x5f7,-0x70); // game over/respawn addr hi |
| 1368 | | equites_8404rule(0x0c12, 0x5f9,-0x07); // game over/respawn addr lo |
| 1782 | unpack_region(REGION_GFX3); |
| 1369 | 1783 | } |
| 1370 | 1784 | |
| 1371 | 1785 | static DRIVER_INIT( hvoltage ) |
| 1372 | 1786 | { |
| 1373 | | int i; |
| 1787 | unpack_region(REGION_GFX3); |
| 1374 | 1788 | |
| 1375 | | #if HVOLTAGE_HACK |
| 1789 | #if HVOLTAGE_DEBUG |
| 1376 | 1790 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x000038, 0x000039, 0, 0, hvoltage_debug_r); |
| 1377 | 1791 | #endif |
| 1378 | | |
| 1379 | | equites_id = 0x8511; |
| 1380 | | |
| 1381 | | splndrbt_init_common(); |
| 1382 | | |
| 1383 | | equites_8404rule(0x0b18, 0x007, 0x04); // 8404 test |
| 1384 | | equites_8404rule(0x0b1c, 0x049, 0x00); // 8404 test |
| 1385 | | |
| 1386 | | for(i=0x07; i<0x47; i+=4) equites_8404rule(0x0c64, i, 0xff); // checksum |
| 1387 | | |
| 1388 | | equites_8404rule(0x0df6, 0x00f, 0x04); // 1st gateway (init) |
| 1389 | | equites_8404rule(0x0e02, 0x247, 0x01); // no. of addresses to look up - 1 |
| 1390 | | equites_8404rule(0x0e06, 0x249, 0x10); // addr hi |
| 1391 | | equites_8404rule(0x0e0c, 0x24b, 0x12); // addr lo |
| 1392 | | equites_8404rule(0x0e06, 0x24d, 0x19); // addr hi |
| 1393 | | equites_8404rule(0x0e0c, 0x24f, 0x96); // addr lo |
| 1394 | | |
| 1395 | | equites_8404rule(0x10fc, 0x017, 0x04); // 2nd gateway (intro) |
| 1396 | | equites_8404rule(0x111e, 0x6a5, 0x00); // no. of addresses to look up - 1 |
| 1397 | | equites_8404rule(0x1122, 0x6a7, 0x11); // addr hi |
| 1398 | | equites_8404rule(0x1128, 0x6a9, 0xa4); // addr lo |
| 1399 | | |
| 1400 | | equites_8404rule(0x0f86, 0x013, 0x04); // 3rd gateway (miss) |
| 1401 | | equites_8404rule(0x0f92, 0x491, 0x03); // no. of addresses to look up - 1 |
| 1402 | | equites_8404rule(0x0f96, 0x493,-0x60); // addr hi |
| 1403 | | equites_8404rule(0x0f9c, 0x495,-0x06); // addr lo |
| 1404 | | equites_8404rule(0x0f96, 0x497,-0x60); // addr hi |
| 1405 | | equites_8404rule(0x0f9c, 0x499,-0x06); // addr lo |
| 1406 | | equites_8404rule(0x0f96, 0x49b,-0x60); // addr hi |
| 1407 | | equites_8404rule(0x0f9c, 0x49d,-0x06); // addr lo |
| 1408 | | equites_8404rule(0x0f96, 0x49f,-0x60); // addr hi |
| 1409 | | equites_8404rule(0x0f9c, 0x4a1,-0x06); // addr lo |
| 1410 | 1792 | } |
| 1411 | 1793 | |
| 1412 | 1794 | /******************************************************************************/ |
| r2018 | r2019 | |
| 1414 | 1796 | // Game Entries |
| 1415 | 1797 | |
| 1416 | 1798 | // Equites Hardware |
| 1417 | | GAME( 1984, equites, 0, equites, equites, equites, ROT90, "Alpha Denshi Co.", "Equites", GAME_UNEMULATED_PROTECTION | GAME_NO_COCKTAIL ) |
| 1418 | | GAME( 1984, equitess, equites, equites, equites, equites, ROT90, "Alpha Denshi Co. (Sega license)", "Equites (Sega)", GAME_UNEMULATED_PROTECTION | GAME_NO_COCKTAIL ) |
| 1419 | | GAME( 1985, gekisou, 0, equites, equites, equites, ROT90, "Eastern", "Gekisou (Japan)", GAME_UNEMULATED_PROTECTION | GAME_NO_COCKTAIL | GAME_NOT_WORKING ) |
| 1420 | | GAME( 1984, bullfgtr, 0, equites, bullfgtr, bullfgtr, ROT90, "Alpha Denshi Co.", "Bull Fighter", GAME_UNEMULATED_PROTECTION ) |
| 1421 | | GAME( 1984, bullfgts, bullfgtr, equites, bullfgtr, bullfgts, ROT90, "Alpha Denshi Co. (Sega license)", "Bull Fighter (Sega)", GAME_UNEMULATED_PROTECTION ) |
| 1422 | | GAME( 1985, kouyakyu, 0, equites, kouyakyu, kouyakyu, ROT0, "Alpha Denshi Co.", "The Koukouyakyuh", GAME_UNEMULATED_PROTECTION ) |
| 1799 | GAME( 1984, equites, 0, equites, equites, equites, ROT90, "Alpha Denshi Co.", "Equites", GAME_IMPERFECT_SOUND ) |
| 1800 | GAME( 1984, equitess, equites, equites, equites, equites, ROT90, "Alpha Denshi Co. (Sega license)", "Equites (Sega)", GAME_IMPERFECT_SOUND ) |
| 1801 | GAME( 1985, gekisou, 0, equites, gekisou, gekisou, ROT90, "Eastern Corp.", "Gekisou (Japan)", GAME_NO_COCKTAIL | GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) |
| 1802 | GAME( 1984, bullfgtr, 0, equites, bullfgtr, bullfgtr, ROT90, "Alpha Denshi Co.", "Bull Fighter", GAME_IMPERFECT_SOUND ) |
| 1803 | GAME( 1984, bullfgts, bullfgtr, equites, bullfgtr, bullfgtr, ROT90, "Alpha Denshi Co. (Sega license)", "Bull Fighter (Sega)", GAME_IMPERFECT_SOUND ) |
| 1804 | GAME( 1985, kouyakyu, 0, equites, kouyakyu, kouyakyu, ROT0, "Alpha Denshi Co.", "The Koukouyakyuh", GAME_IMPERFECT_SOUND ) |
| 1423 | 1805 | |
| 1424 | 1806 | // Splendor Blast Hardware |
| 1425 | | GAME( 1985, splndrbt, 0, splndrbt, splndrbt, splndrbt, ROT0, "Alpha Denshi Co.", "Splendor Blast", GAME_UNEMULATED_PROTECTION | GAME_NO_COCKTAIL ) |
| 1426 | | GAME( 1985, hvoltage, 0, splndrbt, hvoltage, hvoltage, ROT0, "Alpha Denshi Co.", "High Voltage", GAME_UNEMULATED_PROTECTION ) |
| 1807 | GAME( 1985, splndrbt, 0, splndrbt, splndrbt, splndrbt, ROT0, "Alpha Denshi Co.", "Splendor Blast", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) |
| 1808 | GAME( 1985, hvoltage, 0, splndrbt, hvoltage, hvoltage, ROT0, "Alpha Denshi Co.", "High Voltage", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS ) |
| 1427 | 1809 | |
| 1428 | 1810 | /******************************************************************************/ |
src/mame/drivers/champbas.c
| r2018 | r2019 | |
| 5 | 5 | driver by Nicola Salmoria |
| 6 | 6 | ALPHA 8201 MCU handling by Tatsuyuki satoh |
| 7 | 7 | |
| 8 | Note: the Champion Baseball II unofficial schematics show a 8302 instead of |
| 9 | the 8201, however the MCU is used like a plain 8201, 830x extra instructions |
| 10 | are not used. |
| 11 | |
| 8 | 12 | TODO: |
| 9 | 13 | champbb2 , sometime mcu err and ACCESS VIOLATION trap. |
| 10 | 14 | |
| r2018 | r2019 | |
| 52 | 56 | c000(-dfff) DAC |
| 53 | 57 | e000-e3ff RAM |
| 54 | 58 | |
| 59 | |
| 60 | Notes: |
| 61 | ------ |
| 62 | - Bit 2 of the watchdog counter can be read through an input port. The games check |
| 63 | it on boot and hang if it is not 0. Also, the Talbot MCU does a security check |
| 64 | and crashes if the bit doesn't match bit 2 of RAM location 0x8c00. |
| 65 | |
| 55 | 66 | ***************************************************************************/ |
| 56 | 67 | |
| 57 | 68 | #include "driver.h" |
| r2018 | r2019 | |
| 60 | 71 | #include "sound/dac.h" |
| 61 | 72 | |
| 62 | 73 | |
| 63 | | WRITE8_HANDLER( champbas_videoram_w ); |
| 64 | | WRITE8_HANDLER( champbas_colorram_w ); |
| 74 | #define CPUTAG_MCU "MCU" |
| 75 | |
| 76 | extern UINT8 *champbas_bg_videoram; |
| 77 | WRITE8_HANDLER( champbas_bg_videoram_w ); |
| 65 | 78 | WRITE8_HANDLER( champbas_gfxbank_w ); |
| 66 | 79 | WRITE8_HANDLER( champbas_palette_bank_w ); |
| 67 | 80 | WRITE8_HANDLER( champbas_flipscreen_w ); |
| r2018 | r2019 | |
| 70 | 83 | VIDEO_START( champbas ); |
| 71 | 84 | VIDEO_UPDATE( champbas ); |
| 72 | 85 | |
| 86 | |
| 87 | static int champbas_watchdog_count; |
| 88 | |
| 89 | |
| 90 | static VIDEO_EOF( champbas ) |
| 91 | { |
| 92 | champbas_watchdog_count++; |
| 93 | |
| 94 | if (champbas_watchdog_count == 0x10) |
| 95 | mame_schedule_soft_reset(machine); |
| 96 | } |
| 97 | |
| 98 | static WRITE8_HANDLER( champbas_watchdog_reset_w ) |
| 99 | { |
| 100 | champbas_watchdog_count = 0; |
| 101 | } |
| 102 | |
| 103 | static CUSTOM_INPUT( champbas_watchdog_bit2 ) |
| 104 | { |
| 105 | return BIT(champbas_watchdog_count,2); |
| 106 | } |
| 107 | |
| 108 | |
| 109 | static WRITE8_HANDLER( irq_ack_w ) |
| 110 | { |
| 111 | cpunum_set_input_line(Machine, 0, 0, CLEAR_LINE); |
| 112 | } |
| 113 | |
| 114 | |
| 73 | 115 | static WRITE8_HANDLER( champbas_dac_w ) |
| 74 | 116 | { |
| 75 | 117 | DAC_signed_data_w(0,data<<2); |
| r2018 | r2019 | |
| 79 | 121 | // protection handling |
| 80 | 122 | /////////////////////////////////////////////////////////////////////////// |
| 81 | 123 | |
| 124 | static WRITE8_HANDLER( champbas_mcu_switch_w ) |
| 125 | { |
| 126 | // switch shared RAM between CPU and MCU bus |
| 127 | // FIXME not implemented |
| 128 | } |
| 129 | |
| 82 | 130 | static WRITE8_HANDLER( champbas_mcu_halt_w ) |
| 83 | 131 | { |
| 132 | int cpunum = mame_find_cpu_index(Machine, CPUTAG_MCU); |
| 133 | |
| 134 | // MCU not present/not used in champbas |
| 135 | if (cpunum == -1) |
| 136 | return; |
| 137 | |
| 84 | 138 | data &= 1; |
| 85 | | cpunum_set_input_line(Machine, 2, INPUT_LINE_HALT, data ? ASSERT_LINE : CLEAR_LINE); |
| 139 | cpunum_set_input_line(Machine, cpunum, INPUT_LINE_HALT, data ? ASSERT_LINE : CLEAR_LINE); |
| 86 | 140 | } |
| 87 | 141 | |
| 88 | 142 | /* champbja another protection */ |
| r2018 | r2019 | |
| 115 | 169 | return data; |
| 116 | 170 | } |
| 117 | 171 | |
| 172 | |
| 173 | |
| 174 | static ADDRESS_MAP_START( talbot_main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 175 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 176 | AM_RANGE(0x6000, 0x63ff) AM_RAM AM_SHARE(1) /* MCU shared RAM */ |
| 177 | AM_RANGE(0x7000, 0x7000) AM_WRITE(AY8910_write_port_0_w) |
| 178 | AM_RANGE(0x7001, 0x7001) AM_WRITE(AY8910_control_port_0_w) |
| 179 | AM_RANGE(0x8000, 0x87ff) AM_RAM AM_WRITE(champbas_bg_videoram_w) AM_BASE(&champbas_bg_videoram) |
| 180 | AM_RANGE(0x8800, 0x8fef) AM_RAM |
| 181 | AM_RANGE(0x8ff0, 0x8fff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 182 | |
| 183 | AM_RANGE(0xa000, 0xa000) AM_WRITE(irq_ack_w) |
| 184 | AM_RANGE(0xa001, 0xa001) AM_WRITENOP // !WORK board output (no use?) |
| 185 | AM_RANGE(0xa002, 0xa002) AM_WRITENOP |
| 186 | AM_RANGE(0xa003, 0xa003) AM_WRITE(champbas_flipscreen_w) |
| 187 | AM_RANGE(0xa004, 0xa004) AM_WRITENOP |
| 188 | AM_RANGE(0xa005, 0xa005) AM_WRITENOP |
| 189 | AM_RANGE(0xa006, 0xa006) AM_WRITE(champbas_mcu_halt_w) |
| 190 | AM_RANGE(0xa007, 0xa007) AM_WRITE(champbas_mcu_switch_w) |
| 191 | |
| 192 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) |
| 193 | AM_RANGE(0xa040, 0xa040) AM_READ(input_port_1_r) |
| 194 | AM_RANGE(0xa060, 0xa06f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram_2) |
| 195 | AM_RANGE(0xa080, 0xa080) AM_READ(input_port_2_r) |
| 196 | AM_RANGE(0xa0c0, 0xa0c0) AM_READWRITE(input_port_3_r, champbas_watchdog_reset_w) |
| 197 | ADDRESS_MAP_END |
| 198 | |
| 118 | 199 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 119 | 200 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 201 | AM_RANGE(0x6000, 0x63ff) AM_RAM AM_SHARE(1) |
| 202 | |
| 120 | 203 | AM_RANGE(0x7000, 0x7000) AM_WRITE(AY8910_write_port_0_w) |
| 121 | 204 | AM_RANGE(0x7001, 0x7001) AM_WRITE(AY8910_control_port_0_w) |
| 122 | | AM_RANGE(0x7800, 0x7fff) AM_ROM |
| 205 | AM_RANGE(0x7800, 0x7fff) AM_ROM // champbb2 only |
| 123 | 206 | |
| 124 | | AM_RANGE(0x8000, 0x83ff) AM_WRITE(champbas_videoram_w) AM_READ(SMH_RAM) AM_BASE(&videoram) |
| 125 | | AM_RANGE(0x8400, 0x87ff) AM_WRITE(champbas_colorram_w) AM_READ(SMH_RAM) AM_BASE(&colorram) |
| 207 | AM_RANGE(0x8000, 0x87ff) AM_RAM AM_WRITE(champbas_bg_videoram_w) AM_BASE(&champbas_bg_videoram) |
| 126 | 208 | AM_RANGE(0x8800, 0x8fef) AM_RAM |
| 127 | 209 | AM_RANGE(0x8ff0, 0x8fff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 128 | | AM_RANGE(0xa000, 0xa000) AM_WRITE(interrupt_enable_w) AM_READ(input_port_0_r) |
| 210 | |
| 211 | AM_RANGE(0xa000, 0xa000) AM_WRITE(irq_ack_w) AM_READ(input_port_0_r) |
| 212 | AM_RANGE(0xa001, 0xa001) AM_WRITENOP // !WORK board output (no use?) |
| 129 | 213 | AM_RANGE(0xa002, 0xa002) AM_WRITE(champbas_gfxbank_w) |
| 130 | 214 | AM_RANGE(0xa003, 0xa003) AM_WRITE(champbas_flipscreen_w) |
| 131 | 215 | AM_RANGE(0xa004, 0xa004) AM_WRITE(champbas_palette_bank_w) |
| 132 | | AM_RANGE(0xa005, 0xa005) AM_NOP |
| 216 | AM_RANGE(0xa005, 0xa005) AM_WRITENOP // n.c. |
| 217 | AM_RANGE(0xa006, 0xa006) AM_WRITE(champbas_mcu_halt_w) // MCU not present/not used in champbas |
| 218 | AM_RANGE(0xa007, 0xa007) AM_WRITE(champbas_mcu_switch_w) // MCU not present/not used in champbas |
| 133 | 219 | |
| 134 | 220 | AM_RANGE(0xa040, 0xa040) AM_READ(input_port_1_r) |
| 135 | | AM_RANGE(0xa060, 0xa06f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram_2) |
| 221 | AM_RANGE(0xa060, 0xa06f) AM_RAM AM_BASE(&spriteram_2) |
| 136 | 222 | AM_RANGE(0xa080, 0xa080) AM_WRITE(soundlatch_w) AM_READ(input_port_2_r) |
| 137 | 223 | /* AM_RANGE(0xa0a0, 0xa0a0) ???? */ |
| 138 | | AM_RANGE(0xa0c0, 0xa0c0) AM_WRITE(watchdog_reset_w) AM_READ(input_port_3_r) |
| 224 | AM_RANGE(0xa0c0, 0xa0c0) AM_WRITE(champbas_watchdog_reset_w) AM_READ(input_port_3_r) |
| 139 | 225 | |
| 140 | | /* has MCU pcb only */ |
| 141 | | AM_RANGE(0x6000, 0x63ff) AM_RAM AM_SHARE(1) |
| 142 | | /* AM_RANGE(0xa006, 0xa006) AM_WRITE(champbas_mcu_halt_w) */ |
| 143 | | AM_RANGE(0xa007, 0xa007) AM_NOP /* MCU shared RAM switch , but no-hawdrare */ |
| 144 | | |
| 145 | 226 | /* champbja only */ |
| 146 | 227 | AM_RANGE(0x6800, 0x68ff) AM_READ(champbja_alt_protection_r) |
| 147 | 228 | |
| r2018 | r2019 | |
| 149 | 230 | |
| 150 | 231 | static ADDRESS_MAP_START( sub_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 151 | 232 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 152 | | AM_RANGE(0x6000, 0x6000) AM_READ(soundlatch_r) |
| 153 | | AM_RANGE(0xe000, 0xe3ff) AM_READ(SMH_RAM) |
| 154 | | /* AM_RANGE(0x8000, 0x8000) AM_WRITE(SMH_NOP) return low 4bit to main CPU */ |
| 155 | | AM_RANGE(0xa000, 0xa000) AM_WRITE(soundlatch_clear_w) |
| 156 | | AM_RANGE(0xc000, 0xc000) AM_WRITE(champbas_dac_w) |
| 157 | | AM_RANGE(0xe000, 0xe3ff) AM_WRITE(SMH_RAM) |
| 233 | AM_RANGE(0x6000, 0x7fff) AM_READ(soundlatch_r) |
| 234 | AM_RANGE(0x8000, 0x9fff) AM_WRITENOP // 4-bit return code to main CPU (not used) |
| 235 | AM_RANGE(0xa000, 0xbfff) AM_WRITE(soundlatch_clear_w) |
| 236 | AM_RANGE(0xc000, 0xdfff) AM_WRITE(champbas_dac_w) |
| 237 | AM_RANGE(0xe000, 0xe3ff) AM_MIRROR(0x1c00) AM_RAM |
| 158 | 238 | ADDRESS_MAP_END |
| 159 | 239 | |
| 160 | 240 | static ADDRESS_MAP_START( mcu_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 161 | 241 | AM_RANGE(0x0000, 0x03ff) AM_RAM AM_SHARE(1) /* main CPU shared RAM */ |
| 162 | 242 | ADDRESS_MAP_END |
| 163 | 243 | |
| 244 | |
| 245 | |
| 246 | static INPUT_PORTS_START( talbot ) |
| 247 | PORT_START /* IN0 */ |
| 248 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 249 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 250 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 251 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 252 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 253 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 254 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 255 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 256 | |
| 257 | PORT_START /* IN1 */ |
| 258 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 259 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 260 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 261 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 262 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 263 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 264 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 265 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 266 | |
| 267 | PORT_START |
| 268 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 269 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |
| 270 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) |
| 271 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_3C ) ) |
| 272 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) |
| 273 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Lives ) ) |
| 274 | PORT_DIPSETTING( 0x00, "3" ) |
| 275 | PORT_DIPSETTING( 0x04, "4" ) |
| 276 | PORT_DIPSETTING( 0x08, "5" ) |
| 277 | PORT_DIPSETTING( 0x0c, "6" ) |
| 278 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 279 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 280 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 281 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 282 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 283 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 284 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) |
| 285 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 286 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) |
| 287 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(champbas_watchdog_bit2, 0) // bit 2 of the watchdog counter |
| 288 | |
| 289 | PORT_START /* IN2 */ |
| 290 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 291 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 292 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 293 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 294 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 295 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 296 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 297 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 298 | INPUT_PORTS_END |
| 299 | |
| 164 | 300 | static INPUT_PORTS_START( champbas ) |
| 165 | 301 | PORT_START /* IN0 */ |
| 166 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 167 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 168 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 169 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| 302 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) // throw (red) |
| 303 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 304 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) // changes (blue) |
| 305 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) // steal (yellow) |
| 170 | 306 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 171 | 307 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 172 | 308 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 173 | 309 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 174 | 310 | |
| 175 | 311 | PORT_START /* IN1 */ |
| 176 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 177 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 178 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL |
| 179 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_COCKTAIL |
| 180 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 181 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 182 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 183 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 312 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL // steal (yellow) |
| 313 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL // changes (blue) |
| 314 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_COCKTAIL |
| 315 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL // throw (red) |
| 316 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 317 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 318 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 319 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 184 | 320 | |
| 185 | 321 | PORT_START /* DSW */ |
| 186 | 322 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coinage ) ) |
| r2018 | r2019 | |
| 188 | 324 | PORT_DIPSETTING( 0x02, "A 1/1 B 2/1") |
| 189 | 325 | PORT_DIPSETTING( 0x01, "A 1/2 B 1/6" ) |
| 190 | 326 | PORT_DIPSETTING( 0x00, "A 1/3 B 1/6") |
| 191 | | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Flip_Screen ) ) |
| 192 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 193 | | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 327 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Flip_Screen ) ) |
| 328 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 329 | PORT_DIPSETTING( 0x00, DEF_STR( On )) |
| 194 | 330 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) ) |
| 195 | 331 | PORT_DIPSETTING( 0x08, DEF_STR( Off )) |
| 196 | 332 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 197 | 333 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Cabinet ) ) |
| 198 | 334 | PORT_DIPSETTING( 0x00, DEF_STR( Upright )) |
| 199 | 335 | PORT_DIPSETTING( 0x10, DEF_STR( Cocktail ) ) |
| 200 | | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Difficulty ) ) |
| 336 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Difficulty ) ) |
| 201 | 337 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 202 | 338 | PORT_DIPSETTING( 0x00, DEF_STR( Hard )) |
| 203 | 339 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) |
| 204 | 340 | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 205 | 341 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) |
| 206 | | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) /* watchdog half over : The game won't boot if set to ON */ |
| 207 | | PORT_DIPSETTING( 0x00, DEF_STR( Off )) |
| 208 | | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 342 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(champbas_watchdog_bit2, 0) // bit 2 of the watchdog counter |
| 209 | 343 | |
| 210 | 344 | PORT_START /* COIN */ |
| 211 | 345 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| r2018 | r2019 | |
| 223 | 357 | |
| 224 | 358 | static const gfx_layout charlayout = |
| 225 | 359 | { |
| 226 | | 8,8, /* 8*8 characters */ |
| 227 | | 256, /* 256 characters */ |
| 228 | | 2, /* 2 bits per pixel */ |
| 229 | | { 0, 4 }, /* the two bitplanes for 4 pixels are packed into one byte */ |
| 230 | | { 8*8+0, 8*8+1, 8*8+2, 8*8+3, 0, 1, 2, 3 }, /* bits are packed in groups of four */ |
| 231 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 232 | | 16*8 /* every char takes 16 bytes */ |
| 360 | 8,8, |
| 361 | RGN_FRAC(1,1), |
| 362 | 2, |
| 363 | { 0, 4 }, |
| 364 | { STEP4(8*8,1), STEP4(0,1) }, |
| 365 | { STEP8(0,8) }, |
| 366 | 16*8 |
| 233 | 367 | }; |
| 234 | 368 | |
| 235 | 369 | static const gfx_layout spritelayout = |
| 236 | 370 | { |
| 237 | | 16,16, /* 16*16 sprites */ |
| 238 | | 64, /* 64 sprites */ |
| 239 | | 2, /* 2 bits per pixel */ |
| 240 | | { 0, 4 }, /* the two bitplanes for 4 pixels are packed into one byte */ |
| 241 | | { 8*8, 8*8+1, 8*8+2, 8*8+3, 16*8+0, 16*8+1, 16*8+2, 16*8+3, |
| 242 | | 24*8+0, 24*8+1, 24*8+2, 24*8+3, 0, 1, 2, 3 }, |
| 243 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, |
| 244 | | 32*8, 33*8, 34*8, 35*8, 36*8, 37*8, 38*8, 39*8 }, |
| 245 | | 64*8 /* every sprite takes 64 bytes */ |
| 371 | 16,16, |
| 372 | RGN_FRAC(1,1), |
| 373 | 2, |
| 374 | { 0, 4 }, |
| 375 | { STEP4(8*8,1), STEP4(16*8,1), STEP4(24*8,1), STEP4(0,1) }, |
| 376 | { STEP8(0,8), STEP8(32*8,8) }, |
| 377 | 64*8 |
| 246 | 378 | }; |
| 247 | 379 | |
| 380 | static GFXDECODE_START( talbot ) |
| 381 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0x100, 0x100/4 ) |
| 382 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout, 0x000, 0x100/4 ) |
| 383 | GFXDECODE_END |
| 384 | |
| 248 | 385 | static GFXDECODE_START( champbas ) |
| 249 | | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, charlayout, 0, 128 ) |
| 250 | | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, charlayout, 0, 128 ) |
| 251 | | GFXDECODE_ENTRY( REGION_GFX1, 0x1000, spritelayout, 0, 128 ) |
| 252 | | GFXDECODE_ENTRY( REGION_GFX2, 0x1000, spritelayout, 0, 128 ) |
| 386 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 0x200/4 ) |
| 387 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout, 0, 0x200/4 ) |
| 253 | 388 | GFXDECODE_END |
| 254 | 389 | |
| 255 | 390 | |
| 256 | 391 | |
| 257 | 392 | |
| 258 | | static const struct AY8910interface ay8910_interface = |
| 259 | | { |
| 260 | | input_port_0_r, |
| 261 | | input_port_1_r |
| 262 | | }; |
| 393 | static MACHINE_DRIVER_START( talbot ) |
| 263 | 394 | |
| 395 | /* basic machine hardware */ |
| 396 | |
| 397 | MDRV_CPU_ADD(Z80, XTAL_18_432MHz/6) |
| 398 | MDRV_CPU_PROGRAM_MAP(talbot_main_map, 0) |
| 399 | MDRV_CPU_VBLANK_INT("main", irq0_line_assert) |
| 400 | |
| 401 | /* MCU */ |
| 402 | MDRV_CPU_ADD_TAG(CPUTAG_MCU, ALPHA8201, XTAL_18_432MHz/6/8) |
| 403 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 404 | |
| 405 | /* video hardware */ |
| 406 | MDRV_SCREEN_ADD("main", RASTER) |
| 407 | MDRV_SCREEN_REFRESH_RATE(60) |
| 408 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 409 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 410 | MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 2*8, 30*8-1) |
| 411 | |
| 412 | MDRV_GFXDECODE(talbot) |
| 413 | MDRV_PALETTE_LENGTH(0x200) |
| 414 | |
| 415 | MDRV_PALETTE_INIT(champbas) |
| 416 | MDRV_VIDEO_START(champbas) |
| 417 | MDRV_VIDEO_UPDATE(champbas) |
| 418 | MDRV_VIDEO_EOF(champbas) |
| 419 | |
| 420 | /* sound hardware */ |
| 421 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 422 | MDRV_SOUND_ADD(AY8910, XTAL_18_432MHz/12) |
| 423 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) |
| 424 | MACHINE_DRIVER_END |
| 425 | |
| 426 | |
| 264 | 427 | static MACHINE_DRIVER_START( champbas ) |
| 265 | 428 | |
| 266 | 429 | /* basic machine hardware */ |
| 267 | 430 | |
| 268 | 431 | /* main cpu */ |
| 269 | | MDRV_CPU_ADD(Z80, 18432000/6) |
| 432 | MDRV_CPU_ADD(Z80, XTAL_18_432MHz/6) |
| 270 | 433 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 271 | | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 434 | MDRV_CPU_VBLANK_INT("main", irq0_line_assert) |
| 272 | 435 | |
| 273 | 436 | /* audio CPU */ |
| 274 | | MDRV_CPU_ADD(Z80, 18432000/6) |
| 437 | MDRV_CPU_ADD(Z80, XTAL_18_432MHz/6) |
| 275 | 438 | MDRV_CPU_PROGRAM_MAP(sub_map,0) |
| 276 | 439 | |
| 277 | 440 | /* video hardware */ |
| 278 | 441 | MDRV_SCREEN_ADD("main", RASTER) |
| 279 | 442 | MDRV_SCREEN_REFRESH_RATE(60) |
| 280 | | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 281 | 443 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 282 | 444 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 283 | 445 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 284 | 446 | |
| 285 | 447 | MDRV_GFXDECODE(champbas) |
| 286 | | MDRV_PALETTE_LENGTH(128*4) |
| 448 | MDRV_PALETTE_LENGTH(0x200) |
| 287 | 449 | |
| 288 | 450 | MDRV_PALETTE_INIT(champbas) |
| 289 | 451 | MDRV_VIDEO_START(champbas) |
| 290 | 452 | MDRV_VIDEO_UPDATE(champbas) |
| 453 | MDRV_VIDEO_EOF(champbas) |
| 291 | 454 | |
| 292 | 455 | /* sound hardware */ |
| 293 | 456 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 294 | 457 | |
| 295 | | MDRV_SOUND_ADD(AY8910, 18432000/12) |
| 296 | | MDRV_SOUND_CONFIG(ay8910_interface) |
| 458 | MDRV_SOUND_ADD(AY8910, XTAL_18_432MHz/12) |
| 297 | 459 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) |
| 298 | 460 | |
| 299 | 461 | MDRV_SOUND_ADD(DAC, 0) |
| r2018 | r2019 | |
| 301 | 463 | MACHINE_DRIVER_END |
| 302 | 464 | |
| 303 | 465 | |
| 304 | | static MACHINE_DRIVER_START( champbb2 ) |
| 466 | static MACHINE_DRIVER_START( champmcu ) |
| 305 | 467 | /* basic machine hardware */ |
| 306 | 468 | MDRV_IMPORT_FROM(champbas) |
| 307 | 469 | |
| 308 | 470 | /* MCU */ |
| 309 | | MDRV_CPU_ADD(ALPHA8201, 18432000/6/8) |
| 471 | MDRV_CPU_ADD_TAG(CPUTAG_MCU, ALPHA8201, XTAL_18_432MHz/6/8) |
| 310 | 472 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 311 | 473 | |
| 312 | 474 | /* to MCU timeout champbbj */ |
| 313 | 475 | MDRV_INTERLEAVE(50) |
| 314 | 476 | MACHINE_DRIVER_END |
| 315 | 477 | |
| 316 | | /* MCU handling */ |
| 317 | | static DRIVER_INIT(champbb2) |
| 318 | | { |
| 319 | | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa006, 0xa006, 0, 0, champbas_mcu_halt_w); |
| 320 | | } |
| 321 | | |
| 322 | 478 | /*************************************************************************** |
| 323 | 479 | |
| 324 | 480 | Game driver(s) |
| 325 | 481 | |
| 326 | 482 | ***************************************************************************/ |
| 327 | 483 | |
| 484 | ROM_START( talbot ) |
| 485 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 486 | ROM_LOAD( "11.10g", 0x0000, 0x1000, CRC(0368607d) SHA1(275a29fb018bd327e64cf4fcc04590099c90290a) ) |
| 487 | ROM_LOAD( "12.11g", 0x1000, 0x1000, CRC(400e633b) SHA1(8d76df34174286e2b0c9341bbc141c9e77533f06) ) |
| 488 | ROM_LOAD( "13.10h", 0x2000, 0x1000, CRC(be575d9e) SHA1(17d3bbdc755920b5a6e1e81cbb7d51be20257ff1) ) |
| 489 | ROM_LOAD( "14.11h", 0x3000, 0x1000, CRC(56464614) SHA1(21cfcf3212e0a74c695ce1d6412d630a7141b2c9) ) |
| 490 | ROM_LOAD( "15.10i", 0x4000, 0x1000, CRC(0225b7ef) SHA1(9adee4831eb633b0a31580596205a655df94c2b2) ) |
| 491 | ROM_LOAD( "16.11i", 0x5000, 0x1000, CRC(1612adf5) SHA1(9adeb21d5d1692f6e31460062f03f2008076b307) ) |
| 492 | |
| 493 | ROM_REGION( 0x2000, REGION_CPU2, 0 ) |
| 494 | ROM_LOAD( "8201.bin", 0x0000, 0x2000, CRC(b77931ac) SHA1(405b02585e80d95a2821455538c5c2c31ce262d1) ) |
| 495 | |
| 496 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) // chars |
| 497 | ROM_LOAD( "7.6a", 0x0000, 0x1000, CRC(bde14194) SHA1(f8f569342a3094eb5450a30b8ab87901b98e6061) ) |
| 498 | |
| 499 | ROM_REGION( 0x1000, REGION_GFX2, ROMREGION_DISPOSE ) // sprites |
| 500 | ROM_LOAD( "8.6b", 0x0000, 0x1000, CRC(ddcd227a) SHA1(c44de36311cd173afb3eebf8487305b06e069c0f) ) |
| 501 | |
| 502 | ROM_REGION( 0x0120, REGION_PROMS, 0 ) |
| 503 | ROM_LOAD( "mb7051.7h", 0x0000, 0x0020, CRC(7a153c60) SHA1(4b147c63e467cca7359acb5f3652ed9db9a36cc8) ) |
| 504 | ROM_LOAD( "mb7052.5e", 0x0020, 0x0100, CRC(a3189986) SHA1(f113c1253ba2f8f213c600e93a39c0957a933306) ) |
| 505 | ROM_END |
| 506 | |
| 328 | 507 | ROM_START( champbas ) |
| 329 | 508 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 330 | | ROM_LOAD( "champbb.1", 0x0000, 0x2000, CRC(218de21e) SHA1(7577fd04bdda4666c017f3b36e81ec23bcddd845) ) |
| 331 | | ROM_LOAD( "champbb.2", 0x2000, 0x2000, CRC(5ddd872e) SHA1(68e21572e27707c991180b1bd0a6b31f7b64abf6) ) |
| 332 | | ROM_LOAD( "champbb.3", 0x4000, 0x2000, CRC(f39a7046) SHA1(3097bffe84ac74ce9e6481028a0ebbe8b1d6eaf9) ) |
| 509 | ROM_LOAD( "champbb.1", 0x0000, 0x2000, CRC(218de21e) SHA1(7577fd04bdda4666c017f3b36e81ec23bcddd845) ) |
| 510 | ROM_LOAD( "champbb.2", 0x2000, 0x2000, CRC(5ddd872e) SHA1(68e21572e27707c991180b1bd0a6b31f7b64abf6) ) |
| 511 | ROM_LOAD( "champbb.3", 0x4000, 0x2000, CRC(f39a7046) SHA1(3097bffe84ac74ce9e6481028a0ebbe8b1d6eaf9) ) |
| 333 | 512 | |
| 334 | 513 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 335 | | ROM_LOAD( "champbb.6", 0x0000, 0x2000, CRC(26ab3e16) SHA1(019b9d34233a6b7a53e204154b782ceb42915d2b) ) |
| 336 | | ROM_LOAD( "champbb.7", 0x2000, 0x2000, CRC(7c01715f) SHA1(b15b2001b8c110f2599eee3aeed79f67686ebd7e) ) |
| 337 | | ROM_LOAD( "champbb.8", 0x4000, 0x2000, CRC(3c911786) SHA1(eea0c467e213d237b5bb9d04b19a418d6090c2dc) ) |
| 514 | ROM_LOAD( "champbb.6", 0x0000, 0x2000, CRC(26ab3e16) SHA1(019b9d34233a6b7a53e204154b782ceb42915d2b) ) |
| 515 | ROM_LOAD( "champbb.7", 0x2000, 0x2000, CRC(7c01715f) SHA1(b15b2001b8c110f2599eee3aeed79f67686ebd7e) ) |
| 516 | ROM_LOAD( "champbb.8", 0x4000, 0x2000, CRC(3c911786) SHA1(eea0c467e213d237b5bb9d04b19a418d6090c2dc) ) |
| 338 | 517 | |
| 339 | | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 340 | | ROM_LOAD( "champbb.4", 0x0000, 0x2000, CRC(1930fb52) SHA1(cae0b2701c2b53b79e9df3a7496442ba3472e996) ) |
| 518 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) // chars + sprites: rearranged by DRIVER_INIT to leave only chars |
| 519 | ROM_LOAD( "champbb.4", 0x0000, 0x2000, CRC(1930fb52) SHA1(cae0b2701c2b53b79e9df3a7496442ba3472e996) ) |
| 341 | 520 | |
| 342 | | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 343 | | ROM_LOAD( "champbb.5", 0x0000, 0x2000, CRC(a4cef5a1) SHA1(fa00ed0d075e00992a1ddce3c1327ed74770a735) ) |
| 521 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) // chars + sprites: rearranged by DRIVER_INIT to leave only sprites |
| 522 | ROM_LOAD( "champbb.5", 0x0000, 0x2000, CRC(a4cef5a1) SHA1(fa00ed0d075e00992a1ddce3c1327ed74770a735) ) |
| 344 | 523 | |
| 345 | 524 | ROM_REGION( 0x0120, REGION_PROMS, 0 ) |
| 346 | | ROM_LOAD( "champbb.pr2", 0x0000, 0x020, CRC(2585ffb0) SHA1(ce7f62f37955c2bbb4f82b139cc716978b084767) ) /* palette */ |
| 347 | | ROM_LOAD( "champbb.pr1", 0x0020, 0x100, CRC(872dd450) SHA1(6c1e2c4a2fc072f4bf4996c731adb0b01b347506) ) /* look-up table */ |
| 525 | ROM_LOAD( "champbb.pr2", 0x0000, 0x020, CRC(2585ffb0) SHA1(ce7f62f37955c2bbb4f82b139cc716978b084767) ) /* palette */ |
| 526 | ROM_LOAD( "champbb.pr1", 0x0020, 0x100, CRC(872dd450) SHA1(6c1e2c4a2fc072f4bf4996c731adb0b01b347506) ) /* look-up table */ |
| 348 | 527 | ROM_END |
| 349 | 528 | |
| 350 | 529 | ROM_START( champbbj ) |
| 351 | 530 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 352 | | ROM_LOAD( "11.2e", 0x0000, 0x2000, CRC(e2dfc166) SHA1(482e084d7d21b1cf2d17431699e6bab4c4b6ac15) ) |
| 353 | | ROM_LOAD( "12.2g", 0x2000, 0x2000, CRC(7b4e5faa) SHA1(b7201816a819ef313ddc81f312d26982b83ef1c7) ) |
| 354 | | ROM_LOAD( "13.2h", 0x4000, 0x2000, CRC(b201e31f) SHA1(bba3b611ff60ad8d5dd8484df4cfc2026f4fd344) ) |
| 531 | ROM_LOAD( "11.2e", 0x0000, 0x2000, CRC(e2dfc166) SHA1(482e084d7d21b1cf2d17431699e6bab4c4b6ac15) ) |
| 532 | ROM_LOAD( "12.2g", 0x2000, 0x2000, CRC(7b4e5faa) SHA1(b7201816a819ef313ddc81f312d26982b83ef1c7) ) |
| 533 | ROM_LOAD( "13.2h", 0x4000, 0x2000, CRC(b201e31f) SHA1(bba3b611ff60ad8d5dd8484df4cfc2026f4fd344) ) |
| 355 | 534 | |
| 356 | 535 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 357 | | ROM_LOAD( "16.2k", 0x0000, 0x2000, CRC(24c482ee) SHA1(c25bdf77014e095fc11a9a6b17f16858f19db451) ) |
| 358 | | ROM_LOAD( "17.2l", 0x2000, 0x2000, CRC(f10b148b) SHA1(d66516d509f6f16e51ee59d27c4867e276064c3f) ) |
| 359 | | ROM_LOAD( "18.2n", 0x4000, 0x2000, CRC(2dc484dd) SHA1(28bd68c787d7e6989849ca52009948dbd5cdcc79) ) |
| 536 | ROM_LOAD( "16.2k", 0x0000, 0x2000, CRC(24c482ee) SHA1(c25bdf77014e095fc11a9a6b17f16858f19db451) ) |
| 537 | ROM_LOAD( "17.2l", 0x2000, 0x2000, CRC(f10b148b) SHA1(d66516d509f6f16e51ee59d27c4867e276064c3f) ) |
| 538 | ROM_LOAD( "18.2n", 0x4000, 0x2000, CRC(2dc484dd) SHA1(28bd68c787d7e6989849ca52009948dbd5cdcc79) ) |
| 360 | 539 | |
| 361 | | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 362 | | ROM_LOAD( "14.5e", 0x0000, 0x2000, CRC(1b8202b3) SHA1(889b77fc3d0cb029baf8c47be260f513f3ed59bd) ) |
| 540 | ROM_REGION( 0x2000, REGION_CPU3, 0 ) |
| 541 | ROM_LOAD( "8201.bin", 0x0000, 0x2000, CRC(b77931ac) SHA1(405b02585e80d95a2821455538c5c2c31ce262d1) ) |
| 363 | 542 | |
| 364 | | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 365 | | ROM_LOAD( "15.5g", 0x0000, 0x2000, CRC(a67c0c40) SHA1(3845839eff8c1624d26937f28ffde67a5fcb4805) ) |
| 543 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) // chars + sprites: rearranged by DRIVER_INIT to leave only chars |
| 544 | ROM_LOAD( "14.5e", 0x0000, 0x2000, CRC(1b8202b3) SHA1(889b77fc3d0cb029baf8c47be260f513f3ed59bd) ) |
| 366 | 545 | |
| 546 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) // chars + sprites: rearranged by DRIVER_INIT to leave only sprites |
| 547 | ROM_LOAD( "15.5g", 0x0000, 0x2000, CRC(a67c0c40) SHA1(3845839eff8c1624d26937f28ffde67a5fcb4805) ) |
| 548 | |
| 367 | 549 | ROM_REGION( 0x0120, REGION_PROMS, 0 ) |
| 368 | | ROM_LOAD( "1e.bpr", 0x0000, 0x0020, CRC(f5ce825e) SHA1(956f580840f1a7d24bfbd72b2929d14e9ee1b660) ) /* palette */ |
| 369 | | ROM_LOAD( "5k.bpr", 0x0020, 0x0100, CRC(2e481ffa) SHA1(bc8979efd43bee8be0ce96ebdacc873a5821e06e) ) /* look-up table */ |
| 550 | ROM_LOAD( "1e.bpr", 0x0000, 0x0020, CRC(f5ce825e) SHA1(956f580840f1a7d24bfbd72b2929d14e9ee1b660) ) /* palette */ |
| 551 | ROM_LOAD( "5k.bpr", 0x0020, 0x0100, CRC(2e481ffa) SHA1(bc8979efd43bee8be0ce96ebdacc873a5821e06e) ) /* look-up table */ |
| 370 | 552 | ROM_END |
| 371 | 553 | |
| 372 | 554 | ROM_START( champbja ) |
| 373 | 555 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 374 | | ROM_LOAD( "10", 0x0000, 0x2000, CRC(f7cdaf8e) SHA1(d4c840f2107394fadbcf822d64aaa381ac900367) ) |
| 375 | | ROM_LOAD( "09", 0x2000, 0x2000, CRC(9d39e5b3) SHA1(11c1a1d2296c0bf16d7610eaa79b034bfd813740) ) |
| 376 | | ROM_LOAD( "08", 0x4000, 0x2000, CRC(53468a0f) SHA1(d4b5ea48b27754eebe593c8b4fcf5bf117f27ae4) ) |
| 556 | ROM_LOAD( "10", 0x0000, 0x2000, CRC(f7cdaf8e) SHA1(d4c840f2107394fadbcf822d64aaa381ac900367) ) |
| 557 | ROM_LOAD( "09", 0x2000, 0x2000, CRC(9d39e5b3) SHA1(11c1a1d2296c0bf16d7610eaa79b034bfd813740) ) |
| 558 | ROM_LOAD( "08", 0x4000, 0x2000, CRC(53468a0f) SHA1(d4b5ea48b27754eebe593c8b4fcf5bf117f27ae4) ) |
| 377 | 559 | |
| 378 | 560 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 379 | | ROM_LOAD( "16.2k", 0x0000, 0x2000, CRC(24c482ee) SHA1(c25bdf77014e095fc11a9a6b17f16858f19db451) ) |
| 380 | | ROM_LOAD( "17.2l", 0x2000, 0x2000, CRC(f10b148b) SHA1(d66516d509f6f16e51ee59d27c4867e276064c3f) ) |
| 381 | | ROM_LOAD( "18.2n", 0x4000, 0x2000, CRC(2dc484dd) SHA1(28bd68c787d7e6989849ca52009948dbd5cdcc79) ) |
| 561 | ROM_LOAD( "16.2k", 0x0000, 0x2000, CRC(24c482ee) SHA1(c25bdf77014e095fc11a9a6b17f16858f19db451) ) |
| 562 | ROM_LOAD( "17.2l", 0x2000, 0x2000, CRC(f10b148b) SHA1(d66516d509f6f16e51ee59d27c4867e276064c3f) ) |
| 563 | ROM_LOAD( "18.2n", 0x4000, 0x2000, CRC(2dc484dd) SHA1(28bd68c787d7e6989849ca52009948dbd5cdcc79) ) |
| 382 | 564 | |
| 383 | | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 384 | | ROM_LOAD( "14.5e", 0x0000, 0x2000, CRC(1b8202b3) SHA1(889b77fc3d0cb029baf8c47be260f513f3ed59bd) ) |
| 565 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) // chars + sprites: rearranged by DRIVER_INIT to leave only chars |
| 566 | ROM_LOAD( "14.5e", 0x0000, 0x2000, CRC(1b8202b3) SHA1(889b77fc3d0cb029baf8c47be260f513f3ed59bd) ) |
| 385 | 567 | |
| 386 | | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 387 | | ROM_LOAD( "15.5g", 0x0000, 0x2000, CRC(a67c0c40) SHA1(3845839eff8c1624d26937f28ffde67a5fcb4805) ) |
| 568 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) // chars + sprites: rearranged by DRIVER_INIT to leave only sprites |
| 569 | ROM_LOAD( "15.5g", 0x0000, 0x2000, CRC(a67c0c40) SHA1(3845839eff8c1624d26937f28ffde67a5fcb4805) ) |
| 388 | 570 | |
| 389 | 571 | ROM_REGION( 0x0120, REGION_PROMS, 0 ) |
| 390 | | ROM_LOAD( "clr", 0x0000, 0x0020, CRC(8f989357) SHA1(d0916fb5ef4b43bdf84663cd403418ffc5e98c17) ) /* palette */ |
| 391 | | ROM_LOAD( "5k.bpr", 0x0020, 0x0100, CRC(2e481ffa) SHA1(bc8979efd43bee8be0ce96ebdacc873a5821e06e) ) /* look-up table */ |
| 572 | ROM_LOAD( "clr", 0x0000, 0x0020, CRC(8f989357) SHA1(d0916fb5ef4b43bdf84663cd403418ffc5e98c17) ) /* palette */ |
| 573 | ROM_LOAD( "5k.bpr", 0x0020, 0x0100, CRC(2e481ffa) SHA1(bc8979efd43bee8be0ce96ebdacc873a5821e06e) ) /* look-up table */ |
| 392 | 574 | ROM_END |
| 393 | 575 | |
| 394 | 576 | ROM_START( champbb2 ) |
| 395 | 577 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 396 | | ROM_LOAD( "epr5932", 0x0000, 0x2000, CRC(528e3c78) SHA1(ee300201580c1bace783f1340bd4f1ea2a00dffa) ) |
| 397 | | ROM_LOAD( "epr5929", 0x2000, 0x2000, CRC(17b6057e) SHA1(67c5aed950acf4d045edf39019066af2896265e1) ) |
| 398 | | ROM_LOAD( "epr5930", 0x4000, 0x2000, CRC(b6570a90) SHA1(5a2651aeac986000913b5854792b2d81df6b2fc6) ) |
| 399 | | ROM_LOAD( "epr5931", 0x7800, 0x0800, CRC(0592434d) SHA1(a7f61546c39ffdbff46c4db485c9b3f6eefcf1ac) ) |
| 578 | ROM_LOAD( "epr5932", 0x0000, 0x2000, CRC(528e3c78) SHA1(ee300201580c1bace783f1340bd4f1ea2a00dffa) ) |
| 579 | ROM_LOAD( "epr5929", 0x2000, 0x2000, CRC(17b6057e) SHA1(67c5aed950acf4d045edf39019066af2896265e1) ) |
| 580 | ROM_LOAD( "epr5930", 0x4000, 0x2000, CRC(b6570a90) SHA1(5a2651aeac986000913b5854792b2d81df6b2fc6) ) |
| 581 | ROM_LOAD( "epr5931", 0x7800, 0x0800, CRC(0592434d) SHA1(a7f61546c39ffdbff46c4db485c9b3f6eefcf1ac) ) |
| 400 | 582 | |
| 401 | 583 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 402 | | ROM_LOAD( "epr5933", 0x0000, 0x2000, CRC(26ab3e16) SHA1(019b9d34233a6b7a53e204154b782ceb42915d2b) ) |
| 403 | | ROM_LOAD( "epr5934", 0x2000, 0x2000, CRC(7c01715f) SHA1(b15b2001b8c110f2599eee3aeed79f67686ebd7e) ) |
| 404 | | ROM_LOAD( "epr5935", 0x4000, 0x2000, CRC(3c911786) SHA1(eea0c467e213d237b5bb9d04b19a418d6090c2dc) ) |
| 584 | ROM_LOAD( "epr5933", 0x0000, 0x2000, CRC(26ab3e16) SHA1(019b9d34233a6b7a53e204154b782ceb42915d2b) ) |
| 585 | ROM_LOAD( "epr5934", 0x2000, 0x2000, CRC(7c01715f) SHA1(b15b2001b8c110f2599eee3aeed79f67686ebd7e) ) |
| 586 | ROM_LOAD( "epr5935", 0x4000, 0x2000, CRC(3c911786) SHA1(eea0c467e213d237b5bb9d04b19a418d6090c2dc) ) |
| 405 | 587 | |
| 406 | | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 407 | | ROM_LOAD( "epr5936", 0x0000, 0x2000, CRC(c4a4df75) SHA1(7b85dbf405697b0b8881f910c08f6db6c828b19a) ) |
| 588 | ROM_REGION( 0x2000, REGION_CPU3, 0 ) |
| 589 | ROM_LOAD( "8201.bin", 0x0000, 0x2000, CRC(b77931ac) SHA1(405b02585e80d95a2821455538c5c2c31ce262d1) ) |
| 408 | 590 | |
| 409 | | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 410 | | ROM_LOAD( "epr5937", 0x0000, 0x2000, CRC(5c80ec42) SHA1(9b79737577e48a6b2ec20ce145252545955e82c3) ) |
| 591 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) // chars + sprites: rearranged by DRIVER_INIT to leave only chars |
| 592 | ROM_LOAD( "epr5936", 0x0000, 0x2000, CRC(c4a4df75) SHA1(7b85dbf405697b0b8881f910c08f6db6c828b19a) ) |
| 411 | 593 | |
| 594 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) // chars + sprites: rearranged by DRIVER_INIT to leave only sprites |
| 595 | ROM_LOAD( "epr5937", 0x0000, 0x2000, CRC(5c80ec42) SHA1(9b79737577e48a6b2ec20ce145252545955e82c3) ) |
| 596 | |
| 412 | 597 | ROM_REGION( 0x0120, REGION_PROMS, 0 ) |
| 413 | | ROM_LOAD( "pr5957", 0x0000, 0x020, CRC(f5ce825e) SHA1(956f580840f1a7d24bfbd72b2929d14e9ee1b660) ) /* palette */ |
| 414 | | ROM_LOAD( "pr5956", 0x0020, 0x100, CRC(872dd450) SHA1(6c1e2c4a2fc072f4bf4996c731adb0b01b347506) ) /* look-up table */ |
| 598 | ROM_LOAD( "pr5957", 0x0000, 0x020, CRC(f5ce825e) SHA1(956f580840f1a7d24bfbd72b2929d14e9ee1b660) ) /* palette */ |
| 599 | ROM_LOAD( "pr5956", 0x0020, 0x100, CRC(872dd450) SHA1(6c1e2c4a2fc072f4bf4996c731adb0b01b347506) ) /* look-up table */ |
| 415 | 600 | ROM_END |
| 416 | 601 | |
| 417 | 602 | ROM_START( champb2a ) |
| 418 | 603 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 419 | | ROM_LOAD( "1.bin", 0x0000, 0x2000, CRC(9b75b44d) SHA1(35b67638a5e48cbe999907e3c9c3a33da9d76bba) ) |
| 420 | | ROM_LOAD( "2.bin", 0x2000, 0x2000, CRC(736a1b62) SHA1(24c2d57506754ca789b378a595c03b7591eb5b5c) ) |
| 421 | | ROM_LOAD( "3.bin", 0x4000, 0x2000, CRC(cf5f28cb) SHA1(d553f2085c9c8c77b241b4239cc1ad1764b490d0) ) |
| 422 | | ROM_LOAD( "4.bin", 0x7800, 0x0800, NO_DUMP ) |
| 604 | ROM_LOAD( "1.bin", 0x0000, 0x2000, CRC(9b75b44d) SHA1(35b67638a5e48cbe999907e3c9c3a33da9d76bba) ) |
| 605 | ROM_LOAD( "2.bin", 0x2000, 0x2000, CRC(736a1b62) SHA1(24c2d57506754ca789b378a595c03b7591eb5b5c) ) |
| 606 | ROM_LOAD( "3.bin", 0x4000, 0x2000, CRC(cf5f28cb) SHA1(d553f2085c9c8c77b241b4239cc1ad1764b490d0) ) |
| 607 | ROM_LOAD( "4.bin", 0x7800, 0x0800, NO_DUMP ) |
| 423 | 608 | |
| 424 | 609 | /* not in this set, but probably the same */ |
| 425 | 610 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 426 | | ROM_LOAD( "epr5933", 0x0000, 0x2000, CRC(26ab3e16) SHA1(019b9d34233a6b7a53e204154b782ceb42915d2b) ) |
| 427 | | ROM_LOAD( "epr5934", 0x2000, 0x2000, CRC(7c01715f) SHA1(b15b2001b8c110f2599eee3aeed79f67686ebd7e) ) |
| 428 | | ROM_LOAD( "epr5935", 0x4000, 0x2000, CRC(3c911786) SHA1(eea0c467e213d237b5bb9d04b19a418d6090c2dc) ) |
| 611 | ROM_LOAD( "epr5933", 0x0000, 0x2000, CRC(26ab3e16) SHA1(019b9d34233a6b7a53e204154b782ceb42915d2b) ) |
| 612 | ROM_LOAD( "epr5934", 0x2000, 0x2000, CRC(7c01715f) SHA1(b15b2001b8c110f2599eee3aeed79f67686ebd7e) ) |
| 613 | ROM_LOAD( "epr5935", 0x4000, 0x2000, CRC(3c911786) SHA1(eea0c467e213d237b5bb9d04b19a418d6090c2dc) ) |
| 429 | 614 | |
| 430 | | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 431 | | ROM_LOAD( "epr5936", 0x0000, 0x2000, CRC(c4a4df75) SHA1(7b85dbf405697b0b8881f910c08f6db6c828b19a) ) |
| 615 | ROM_REGION( 0x2000, REGION_CPU3, 0 ) |
| 616 | ROM_LOAD( "8201.bin", 0x0000, 0x2000, CRC(b77931ac) SHA1(405b02585e80d95a2821455538c5c2c31ce262d1) ) |
| 432 | 617 | |
| 433 | | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 434 | | ROM_LOAD( "epr5937", 0x0000, 0x2000, CRC(5c80ec42) SHA1(9b79737577e48a6b2ec20ce145252545955e82c3) ) |
| 618 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) // chars + sprites: rearranged by DRIVER_INIT to leave only chars |
| 619 | ROM_LOAD( "epr5936", 0x0000, 0x2000, CRC(c4a4df75) SHA1(7b85dbf405697b0b8881f910c08f6db6c828b19a) ) |
| 435 | 620 | |
| 621 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) // chars + sprites: rearranged by DRIVER_INIT to leave only sprites |
| 622 | ROM_LOAD( "epr5937", 0x0000, 0x2000, CRC(5c80ec42) SHA1(9b79737577e48a6b2ec20ce145252545955e82c3) ) |
| 623 | |
| 436 | 624 | ROM_REGION( 0x0120, REGION_PROMS, 0 ) |
| 437 | | ROM_LOAD( "pr5957", 0x0000, 0x020, CRC(f5ce825e) SHA1(956f580840f1a7d24bfbd72b2929d14e9ee1b660) ) /* palette */ |
| 438 | | ROM_LOAD( "pr5956", 0x0020, 0x100, CRC(872dd450) SHA1(6c1e2c4a2fc072f4bf4996c731adb0b01b347506) ) /* look-up table */ |
| 625 | ROM_LOAD( "pr5957", 0x0000, 0x020, CRC(f5ce825e) SHA1(956f580840f1a7d24bfbd72b2929d14e9ee1b660) ) /* palette */ |
| 626 | ROM_LOAD( "pr5956", 0x0020, 0x100, CRC(872dd450) SHA1(6c1e2c4a2fc072f4bf4996c731adb0b01b347506) ) /* look-up table */ |
| 439 | 627 | ROM_END |
| 440 | 628 | |
| 441 | | GAME( 1983, champbas, 0, champbas, champbas, 0, ROT0, "Sega", "Champion Base Ball", 0 ) |
| 442 | | GAME( 1983, champbbj, champbas, champbb2, champbas, champbb2, ROT0, "Alpha Denshi Co.", "Champion Base Ball (Japan set 1)", 0 ) |
| 443 | | GAME( 1983, champbja, champbas, champbb2, champbas, champbb2, ROT0, "Alpha Denshi Co.", "Champion Base Ball (Japan set 2)", 0 ) |
| 444 | | GAME( 1983, champbb2, 0, champbb2, champbas, champbb2, ROT0, "Sega", "Champion Base Ball Part-2: Pair Play (set 1)", 0 ) |
| 445 | 629 | |
| 446 | | /* NO DUMP */ |
| 447 | | GAME( 1983, champb2a, champbb2, champbb2, champbas, champbb2, ROT0, "Alpha Denshi Co.", "Champion Baseball II (set 2)", GAME_NOT_WORKING) |
| 448 | 630 | |
| 631 | static DRIVER_INIT(champbas) |
| 632 | { |
| 633 | // chars and sprites are mixed in the same ROMs, so rearrange them for easier decoding |
| 634 | UINT8 *rom1 = memory_region(REGION_GFX1); |
| 635 | UINT8 *rom2 = memory_region(REGION_GFX2); |
| 636 | int len = memory_region_length(REGION_GFX1); |
| 637 | int i; |
| 638 | |
| 639 | for (i = 0; i < len/2; ++i) |
| 640 | { |
| 641 | UINT8 t = rom1[i + len/2]; |
| 642 | rom1[i + len/2] = rom2[i]; |
| 643 | rom2[i] = t; |
| 644 | } |
| 645 | } |
| 646 | |
| 647 | |
| 648 | |
| 649 | GAME( 1982, talbot, 0, talbot, talbot, 0, ROT270, "Alpha Denshi Co. (Volt Electronics license)", "Talbot", 0 ) |
| 650 | |
| 651 | GAME( 1983, champbas, 0, champbas, champbas, champbas, ROT0, "[Alpha Denshi Co.] (Sega license)", "Champion Base Ball", 0 ) |
| 652 | GAME( 1983, champbbj, champbas, champmcu, champbas, champbas, ROT0, "Alpha Denshi Co.", "Champion Base Ball (Japan set 1)", 0 ) |
| 653 | GAME( 1983, champbja, champbas, champbas, champbas, champbas, ROT0, "Alpha Denshi Co.", "Champion Base Ball (Japan set 2)", 0 ) |
| 654 | GAME( 1983, champbb2, 0, champmcu, champbas, champbas, ROT0, "[Alpha Denshi Co.] (Sega license)", "Champion Base Ball Part-2: Pair Play (set 1)", 0 ) |
| 655 | GAME( 1983, champb2a, champbb2, champmcu, champbas, champbas, ROT0, "Alpha Denshi Co.", "Champion Baseball II (set 2)", GAME_NOT_WORKING) // no dump |
src/mame/drivers/exctsccr.c
| r2018 | r2019 | |
| 22 | 22 | as Coin 1. Basically, this allowed to select an alternative coin table |
| 23 | 23 | based on wich Coin input was connected. |
| 24 | 24 | |
| 25 | The Kazutomi bootleg board is a conversion from Champion Baseball: |
| 26 | Alpha denshi co. LTD made in Japan |
| 27 | cpu board 58AS1 |
| 28 | Display board 58AS2 |
| 29 | Voice board 58AS3 |
| 30 | KAZUTOMI board |
| 31 | 1x Alpha8201 (CPU board) |
| 32 | 1x AY-3-8910 (CPU board) |
| 33 | 1x Sharp Z80ACPU (CPU board) |
| 34 | 1x Sharp Z80ACPU (VOICE board) |
| 35 | 3x 2764 (CPU board) (1-2-3) |
| 36 | 3x 2764 (VOICE board) (a-b-c) |
| 37 | 2x 2764 (DISPLAY board) (4-5) |
| 38 | 1x 2764 (daughter board kazutomi) (6) |
| 39 | 2x 2732 (daughter board kazutomi) (7-8) |
| 40 | |
| 41 | TODO: |
| 42 | - interrupt source for sound CPU is unknown. |
| 43 | |
| 44 | - sound CPU writes to unknown ports on startup. Timer configure? |
| 45 | |
| 46 | - unknown writes to 8910 I/O ports (filters?) |
| 47 | |
| 25 | 48 | ***************************************************************************/ |
| 26 | 49 | |
| 27 | 50 | #include "driver.h" |
| r2018 | r2019 | |
| 29 | 52 | #include "sound/ay8910.h" |
| 30 | 53 | #include "sound/dac.h" |
| 31 | 54 | |
| 32 | | /* MCU hacking switch */ |
| 33 | | /* when set 1, old raw patch */ |
| 34 | | /* when set 0, uses MCU core emulation and some MCU patch */ |
| 35 | | #define MCU_HACK 0 |
| 36 | | |
| 37 | 55 | /* from video */ |
| 38 | 56 | extern WRITE8_HANDLER( exctsccr_videoram_w ); |
| 39 | 57 | extern WRITE8_HANDLER( exctsccr_colorram_w ); |
| r2018 | r2019 | |
| 44 | 62 | extern VIDEO_START( exctsccr ); |
| 45 | 63 | extern VIDEO_UPDATE( exctsccr ); |
| 46 | 64 | |
| 47 | | /* from machine */ |
| 48 | | #if MCU_HACK |
| 49 | | extern UINT8 *exctsccr_mcu_ram; |
| 50 | | extern WRITE8_HANDLER( exctsccr_mcu_w ); |
| 51 | | extern WRITE8_HANDLER( exctsccr_mcu_control_w ); |
| 52 | | extern WRITE8_HANDLER( exctscc2_mcu_control_w ); |
| 53 | | #endif |
| 54 | 65 | |
| 55 | | |
| 56 | | static WRITE8_HANDLER( exctsccr_DAC_data_w ) |
| 66 | static TIMER_CALLBACK( exctsccr_fm_callback ) |
| 57 | 67 | { |
| 58 | | DAC_signed_data_w(offset,data << 2); |
| 68 | cpunum_set_input_line_and_vector(machine, 1, 0, HOLD_LINE, 0xff ); |
| 59 | 69 | } |
| 60 | 70 | |
| 61 | | /* |
| 62 | | exctsccr MCU program patch data |
| 63 | | */ |
| 64 | | static const int exctsccr_mcu_patch_data[] = |
| 71 | static MACHINE_START( exctsccr ) |
| 65 | 72 | { |
| 66 | | /* |
| 67 | | bypass ROM sum error because some opcodes are unknown yet |
| 68 | | 3B7: F6 db f6 |
| 69 | | 3BA: F6 db f6 |
| 70 | | 3BC: F9 db f9 |
| 71 | | 3BD: F6 db f6 |
| 72 | | 3C1: F6 db f6 |
| 73 | | 3C7: F8 db f8 ; check SUM to ZF |
| 74 | | */ |
| 75 | | (0x3c8<<16) | (0xd1<<8) | 0xd2, // JZ -> JMP |
| 76 | | -1 |
| 77 | | }; |
| 73 | // FIXME |
| 74 | timer_pulse(ATTOTIME_IN_HZ(75), NULL, 0, exctsccr_fm_callback); /* updates fm */ |
| 75 | } |
| 78 | 76 | |
| 79 | | /* |
| 80 | | exctscc2 MCU program patch data |
| 81 | | */ |
| 82 | | static const int exctscc2_mcu_patch_data[] = |
| 77 | |
| 78 | static WRITE8_HANDLER( exctsccr_DAC_data_w ) |
| 83 | 79 | { |
| 84 | | /* |
| 85 | | bypass initislize check |
| 80 | DAC_signed_data_w(offset,data << 2); |
| 81 | } |
| 86 | 82 | |
| 87 | | 307: D5 01 unknown |
| 88 | | 309: D4 00 unknown |
| 89 | | A reg 2 to 5 |
| 90 | 83 | |
| 91 | | 30F: D4 01 unknown |
| 92 | | A reg 5 to 2 |
| 93 | | |
| 94 | | */ |
| 95 | | (0x30d<<16) | (0xcf<<8) | 0xda, // JNZ -> CMP |
| 96 | | (0x313<<16) | (0xcf<<8) | 0xda, // JNZ -> CMP |
| 97 | | /* |
| 98 | | bypass ROM check sum |
| 99 | | 3B7: F6 db f6 |
| 100 | | 3BA: F6 db f6 |
| 101 | | 3BC: F9 db f9 |
| 102 | | 3BD: F6 db f6 |
| 103 | | 3C1: F6 db f6 |
| 104 | | 3C7: F8 db f8 |
| 105 | | */ |
| 106 | | (0x3C8<<16) | (0xd1<<8) | 0xd2, // JZ -> JMP |
| 107 | | -1 |
| 108 | | }; |
| 109 | | |
| 110 | | static const int *mcu_patch_data = NULL; |
| 111 | | static UINT8 *mcu_shared_ram; |
| 112 | | static WRITE8_HANDLER( cexctsccr_mcu_halt_w ) |
| 84 | static WRITE8_HANDLER( exctsccr_mcu_halt_w ) |
| 113 | 85 | { |
| 114 | | #if MCU_HACK |
| 115 | | exctsccr_mcu_control_w(offset,data&1); |
| 116 | | #else |
| 117 | | const int *p; |
| 118 | | |
| 119 | | data &= 1; |
| 120 | | cpunum_set_input_line(Machine, 2, INPUT_LINE_HALT, data ? ASSERT_LINE : CLEAR_LINE); |
| 121 | | if( (p=mcu_patch_data) != NULL) |
| 122 | | { |
| 123 | | /* patch MCU program */ |
| 124 | | while(*p != -1) |
| 125 | | { |
| 126 | | int a = (*p)>>16; |
| 127 | | int c = ((*p)>>8) & 0xff; |
| 128 | | int d = (*p)&0xff; |
| 129 | | if(mcu_shared_ram[a] == c) |
| 130 | | mcu_shared_ram[a] = d; |
| 131 | | p++; |
| 132 | | } |
| 133 | | } |
| 134 | | #endif |
| 86 | cpunum_set_input_line(Machine, 2, INPUT_LINE_HALT, (data & 1) ? ASSERT_LINE : CLEAR_LINE); |
| 135 | 87 | } |
| 136 | 88 | |
| 137 | 89 | /*************************************************************************** |
| r2018 | r2019 | |
| 142 | 94 | |
| 143 | 95 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 144 | 96 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 145 | | #if MCU_HACK |
| 146 | | AM_RANGE(0x6000, 0x63ff) AM_WRITE(exctsccr_mcu_w) AM_READ(SMH_RAM) AM_BASE(&exctsccr_mcu_ram) /* Alpha mcu (protection) */ |
| 147 | | #else |
| 148 | | AM_RANGE(0x6000, 0x63ff) AM_RAM AM_SHARE(1) AM_BASE(&mcu_shared_ram) |
| 149 | | #endif |
| 97 | AM_RANGE(0x6000, 0x63ff) AM_RAM AM_SHARE(1) |
| 150 | 98 | AM_RANGE(0x7c00, 0x7fff) AM_RAM |
| 151 | | AM_RANGE(0x8000, 0x83ff) AM_WRITE(exctsccr_videoram_w) AM_READ(SMH_RAM) AM_BASE(&videoram) |
| 152 | | AM_RANGE(0x8400, 0x87ff) AM_WRITE(exctsccr_colorram_w) AM_READ(SMH_RAM) AM_BASE(&colorram) |
| 153 | | AM_RANGE(0x8800, 0x8bff) AM_WRITE(SMH_RAM) AM_READ(SMH_RAM) AM_BASE(&spriteram_2) /* ??? */ |
| 154 | | AM_RANGE(0xa000, 0xa000) AM_WRITE(SMH_NOP) AM_READ(input_port_0_r) |
| 155 | | AM_RANGE(0xa001, 0xa001) AM_WRITE(SMH_NOP) /* ??? */ |
| 99 | AM_RANGE(0x8000, 0x83ff) AM_RAM AM_WRITE(exctsccr_videoram_w) AM_BASE(&videoram) |
| 100 | AM_RANGE(0x8400, 0x87ff) AM_RAM AM_WRITE(exctsccr_colorram_w) AM_BASE(&colorram) |
| 101 | AM_RANGE(0x8800, 0x8bff) AM_RAM AM_BASE(&spriteram_2) /* ??? */ |
| 102 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) |
| 103 | AM_RANGE(0xa000, 0xa000) AM_WRITENOP /* ??? toggled twice at end of irq handler */ |
| 104 | // AM_RANGE(0xa001, 0xa001) AM_WRITENOP /* ??? */ |
| 156 | 105 | AM_RANGE(0xa002, 0xa002) AM_WRITE(exctsccr_gfx_bank_w) |
| 157 | | AM_RANGE(0xa003, 0xa003) AM_WRITE(exctsccr_flipscreen_w) /* Cocktail mode ( 0xff = flip screen, 0x00 = normal ) */ |
| 158 | | /* 0xa006 MCU control */ |
| 159 | | AM_RANGE(0xa006, 0xa006) AM_WRITE(cexctsccr_mcu_halt_w) |
| 160 | | AM_RANGE(0xa007, 0xa007) AM_WRITE(SMH_NOP) /* This is also MCU control, but i dont need it */ |
| 106 | AM_RANGE(0xa003, 0xa003) AM_WRITE(exctsccr_flipscreen_w) |
| 107 | AM_RANGE(0xa006, 0xa006) AM_WRITE(exctsccr_mcu_halt_w) |
| 108 | AM_RANGE(0xa007, 0xa007) AM_WRITENOP /* This is also MCU control, but i dont need it */ |
| 161 | 109 | AM_RANGE(0xa040, 0xa06f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) /* Sprite pos */ |
| 162 | 110 | AM_RANGE(0xa080, 0xa080) AM_WRITE(soundlatch_w) |
| 163 | 111 | AM_RANGE(0xa0c0, 0xa0c0) AM_WRITE(watchdog_reset_w) |
| 164 | 112 | |
| 165 | 113 | AM_RANGE(0xa040, 0xa040) AM_READ(input_port_1_r) |
| 166 | | AM_RANGE(0xa080, 0xa080) AM_READ(input_port_3_r) |
| 167 | | AM_RANGE(0xa0c0, 0xa0c0) AM_READ(input_port_2_r) |
| 114 | AM_RANGE(0xa080, 0xa080) AM_READ(input_port_2_r) // FIXME use champbas_dsw_r |
| 115 | AM_RANGE(0xa0c0, 0xa0c0) AM_READ(input_port_3_r) |
| 168 | 116 | ADDRESS_MAP_END |
| 169 | 117 | |
| 170 | 118 | static ADDRESS_MAP_START( sub_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 171 | 119 | AM_RANGE(0x0000, 0x8fff) AM_ROM |
| 172 | 120 | AM_RANGE(0xa000, 0xa7ff) AM_RAM |
| 173 | 121 | AM_RANGE(0xc008, 0xc009) AM_WRITE(exctsccr_DAC_data_w) |
| 174 | | AM_RANGE(0xc00c, 0xc00c) AM_WRITE(soundlatch_w) /* used to clear the latch */ |
| 122 | AM_RANGE(0xc00c, 0xc00c) AM_WRITE(soundlatch_clear_w) |
| 175 | 123 | AM_RANGE(0xc00d, 0xc00d) AM_READ(soundlatch_r) |
| 176 | | AM_RANGE(0xc00f, 0xc00f) AM_WRITE(SMH_NOP) /* ??? */ |
| 124 | // AM_RANGE(0xc00f, 0xc00f) AM_WRITE(MWA8_NOP) /* ??? */ |
| 177 | 125 | ADDRESS_MAP_END |
| 178 | 126 | |
| 179 | 127 | static ADDRESS_MAP_START( sound_writeport, ADDRESS_SPACE_IO, 8 ) |
| 180 | | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 128 | ADDRESS_MAP_GLOBAL_MASK( 0x00ff ) |
| 181 | 129 | AM_RANGE(0x82, 0x82) AM_WRITE(AY8910_write_port_0_w) |
| 182 | 130 | AM_RANGE(0x83, 0x83) AM_WRITE(AY8910_control_port_0_w) |
| 183 | 131 | AM_RANGE(0x86, 0x86) AM_WRITE(AY8910_write_port_1_w) |
| r2018 | r2019 | |
| 188 | 136 | AM_RANGE(0x8f, 0x8f) AM_WRITE(AY8910_control_port_3_w) |
| 189 | 137 | ADDRESS_MAP_END |
| 190 | 138 | |
| 191 | | /* Bootleg */ |
| 192 | | static ADDRESS_MAP_START( bl_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 193 | | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) |
| 194 | | AM_RANGE(0x8000, 0x83ff) AM_READ(SMH_RAM) |
| 195 | | AM_RANGE(0x8400, 0x87ff) AM_READ(SMH_RAM) |
| 196 | | AM_RANGE(0x8800, 0x8fff) AM_READ(SMH_RAM) /* ??? */ |
| 197 | | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) |
| 198 | | AM_RANGE(0xa040, 0xa040) AM_READ(input_port_1_r) |
| 199 | | AM_RANGE(0xa080, 0xa080) AM_READ(input_port_3_r) |
| 200 | | AM_RANGE(0xa0c0, 0xa0c0) AM_READ(input_port_2_r) |
| 139 | static ADDRESS_MAP_START( mcu_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 140 | AM_RANGE(0x0000, 0x03ff) AM_RAM AM_SHARE(1) /* main CPU shared RAM */ |
| 201 | 141 | ADDRESS_MAP_END |
| 202 | 142 | |
| 203 | | static ADDRESS_MAP_START( bl_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 204 | | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) |
| 143 | |
| 144 | /* Bootleg */ |
| 145 | static ADDRESS_MAP_START( bl_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 146 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 205 | 147 | AM_RANGE(0x7000, 0x7000) AM_WRITE(AY8910_write_port_0_w) |
| 206 | 148 | AM_RANGE(0x7001, 0x7001) AM_WRITE(AY8910_control_port_0_w) |
| 207 | | AM_RANGE(0x8000, 0x83ff) AM_WRITE(exctsccr_videoram_w) AM_BASE(&videoram) |
| 208 | | AM_RANGE(0x8400, 0x87ff) AM_WRITE(exctsccr_colorram_w) AM_BASE(&colorram) |
| 209 | | AM_RANGE(0x8800, 0x8fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram_2) /* ??? */ |
| 210 | | AM_RANGE(0xa000, 0xa000) AM_WRITE(SMH_NOP) /* ??? */ |
| 211 | | AM_RANGE(0xa001, 0xa001) AM_WRITE(SMH_NOP) /* ??? */ |
| 212 | | AM_RANGE(0xa002, 0xa002) AM_WRITE(exctsccr_gfx_bank_w) /* ??? */ |
| 213 | | AM_RANGE(0xa003, 0xa003) AM_WRITE(exctsccr_flipscreen_w) /* Cocktail mode ( 0xff = flip screen, 0x00 = normal ) */ |
| 214 | | AM_RANGE(0xa006, 0xa006) AM_WRITE(SMH_NOP) /* no MCU, but some leftover code still writes here */ |
| 215 | | AM_RANGE(0xa007, 0xa007) AM_WRITE(SMH_NOP) /* no MCU, but some leftover code still writes here */ |
| 149 | |
| 150 | AM_RANGE(0x8000, 0x83ff) AM_RAM AM_WRITE(exctsccr_videoram_w) AM_BASE(&videoram) |
| 151 | AM_RANGE(0x8400, 0x87ff) AM_RAM AM_WRITE(exctsccr_colorram_w) AM_BASE(&colorram) |
| 152 | AM_RANGE(0x8800, 0x8fff) AM_RAM AM_BASE(&spriteram_2) /* ??? */ |
| 153 | |
| 154 | AM_RANGE(0xa000, 0xa000) AM_WRITENOP /* ??? */ |
| 155 | AM_RANGE(0xa001, 0xa001) AM_WRITENOP /* ??? */ |
| 156 | AM_RANGE(0xa002, 0xa002) AM_WRITE(exctsccr_gfx_bank_w) |
| 157 | AM_RANGE(0xa003, 0xa003) AM_WRITE(exctsccr_flipscreen_w) |
| 158 | AM_RANGE(0xa006, 0xa006) AM_WRITENOP /* MCU is not used, but some leftover code still writes here */ |
| 159 | AM_RANGE(0xa007, 0xa007) AM_WRITENOP /* MCU is not used, but some leftover code still writes here */ |
| 160 | |
| 216 | 161 | AM_RANGE(0xa040, 0xa06f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) /* Sprite Pos */ |
| 217 | 162 | AM_RANGE(0xa080, 0xa080) AM_WRITE(soundlatch_w) |
| 218 | 163 | AM_RANGE(0xa0c0, 0xa0c0) AM_WRITE(watchdog_reset_w) |
| 219 | | ADDRESS_MAP_END |
| 220 | 164 | |
| 221 | | static ADDRESS_MAP_START( bl_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 222 | | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) |
| 223 | | AM_RANGE(0x6000, 0x6000) AM_READ(soundlatch_r) |
| 224 | | AM_RANGE(0xe000, 0xe3ff) AM_READ(SMH_RAM) |
| 165 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) |
| 166 | AM_RANGE(0xa040, 0xa040) AM_READ(input_port_1_r) |
| 167 | AM_RANGE(0xa080, 0xa080) AM_READ(input_port_2_r) // FIXME use champbas_dsw_r |
| 168 | AM_RANGE(0xa0c0, 0xa0c0) AM_READ(input_port_3_r) |
| 225 | 169 | ADDRESS_MAP_END |
| 226 | 170 | |
| 227 | | static ADDRESS_MAP_START( bl_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 228 | | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) |
| 229 | | AM_RANGE(0x8000, 0x8000) AM_WRITE(SMH_NOP) /* 0 = DAC sound off, 1 = DAC sound on */ |
| 230 | | AM_RANGE(0xa000, 0xa000) AM_WRITE(soundlatch_w) /* used to clear the latch */ |
| 171 | static ADDRESS_MAP_START( bl_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 172 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 173 | AM_RANGE(0x6000, 0x6000) AM_READ(soundlatch_r) |
| 174 | // AM_RANGE(0x8000, 0x8000) AM_WRITENOP /* 0 = DAC sound off, 1 = DAC sound on */ |
| 175 | AM_RANGE(0xa000, 0xa000) AM_WRITE(soundlatch_clear_w) |
| 231 | 176 | AM_RANGE(0xc000, 0xc000) AM_WRITE(exctsccr_DAC_data_w) |
| 232 | | AM_RANGE(0xe000, 0xe3ff) AM_WRITE(SMH_RAM) |
| 177 | AM_RANGE(0xe000, 0xe3ff) AM_RAM |
| 233 | 178 | ADDRESS_MAP_END |
| 234 | 179 | |
| 235 | | static ADDRESS_MAP_START( mcu_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 236 | | AM_RANGE(0x0000, 0x03ff) AM_RAM AM_SHARE(1) /* main CPU shared RAM */ |
| 237 | | ADDRESS_MAP_END |
| 238 | | |
| 239 | 180 | /*************************************************************************** |
| 240 | 181 | |
| 241 | 182 | Input port(s) |
| r2018 | r2019 | |
| 263 | 204 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 264 | 205 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 265 | 206 | |
| 266 | | PORT_START /* IN2 */ |
| 267 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 268 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 269 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 270 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 271 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 272 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 273 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 274 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 275 | | |
| 276 | 207 | PORT_START /* DSW0 */ |
| 277 | 208 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) |
| 278 | 209 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) |
| r2018 | r2019 | |
| 293 | 224 | PORT_DIPSETTING( 0x00, "2 Min." ) |
| 294 | 225 | PORT_DIPSETTING( 0x60, "3 Min." ) |
| 295 | 226 | PORT_DIPSETTING( 0x40, "4 Min." ) |
| 296 | | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* Has to be 0 */ |
| 227 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) // bit 2 of the watchdog counter |
| 228 | |
| 229 | PORT_START /* IN2 */ |
| 230 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 231 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) |
| 232 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 233 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 234 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 235 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 236 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 237 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 297 | 238 | INPUT_PORTS_END |
| 298 | 239 | |
| 299 | 240 | /*************************************************************************** |
| r2018 | r2019 | |
| 302 | 243 | |
| 303 | 244 | ***************************************************************************/ |
| 304 | 245 | |
| 305 | | static const gfx_layout charlayout1 = |
| 246 | static const gfx_layout charlayout_3bpp = |
| 306 | 247 | { |
| 307 | | 8,8, /* 8*8 characters */ |
| 308 | | 256, /* 256 characters */ |
| 309 | | 3, /* 3 bits per pixel */ |
| 310 | | { 0x4000*8+4, 0, 4 }, /* plane offset */ |
| 311 | | { 8*8+0, 8*8+1, 8*8+2, 8*8+3, 0, 1, 2, 3 }, |
| 312 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 313 | | 16*8 /* every char takes 16 consecutive bytes */ |
| 248 | 8,8, |
| 249 | RGN_FRAC(1,2), |
| 250 | 3, |
| 251 | { RGN_FRAC(1,2)+4, 0, 4 }, |
| 252 | { STEP4(8*8,1), STEP4(0,1) }, |
| 253 | { STEP8(0,8) }, |
| 254 | 16*8 |
| 314 | 255 | }; |
| 315 | 256 | |
| 316 | | static const gfx_layout charlayout2 = |
| 257 | static const gfx_layout spritelayout_3bpp = |
| 317 | 258 | { |
| 318 | | 8,8, /* 8*8 characters */ |
| 319 | | 256, /* 256 characters */ |
| 320 | | 3, /* 3 bits per pixel */ |
| 321 | | { 0x2000*8, 0, 4 }, /* plane offset */ |
| 322 | | { 8*8+0, 8*8+1, 8*8+2, 8*8+3, 0, 1, 2, 3 }, |
| 323 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 324 | | 16*8 /* every char takes 16 consecutive bytes */ |
| 259 | 16,16, |
| 260 | RGN_FRAC(1,2), |
| 261 | 3, |
| 262 | { RGN_FRAC(1,2)+4, 0, 4 }, |
| 263 | { STEP4(8*8,1), STEP4(16*8,1), STEP4(24*8,1), STEP4(0,1) }, |
| 264 | { STEP8(0,8), STEP8(32*8,8) }, |
| 265 | 64*8 |
| 325 | 266 | }; |
| 326 | 267 | |
| 327 | | static const gfx_layout spritelayout1 = |
| 268 | static const gfx_layout spritelayout_4bpp = |
| 328 | 269 | { |
| 329 | | 16,16, /* 16*16 sprites */ |
| 330 | | 64, /* 64 sprites */ |
| 331 | | 3, /* 3 bits per pixel */ |
| 332 | | { 0x4000*8+4, 0, 4 }, /* plane offset */ |
| 333 | | { 8*8, 8*8+1, 8*8+2, 8*8+3, 16*8+0, 16*8+1, 16*8+2, 16*8+3, |
| 334 | | 24*8+0, 24*8+1, 24*8+2, 24*8+3, 0, 1, 2, 3 }, |
| 335 | | { 0 * 8, 1 * 8, 2 * 8, 3 * 8, 4 * 8, 5 * 8, 6 * 8, 7 * 8, |
| 336 | | 32 * 8, 33 * 8, 34 * 8, 35 * 8, 36 * 8, 37 * 8, 38 * 8, 39 * 8 }, |
| 337 | | 64*8 /* every sprite takes 64 bytes */ |
| 270 | 16,16, |
| 271 | RGN_FRAC(1,2), |
| 272 | 4, |
| 273 | { RGN_FRAC(1,2)+0, RGN_FRAC(1,2)+4, 0, 4 }, |
| 274 | { STEP4(8*8,1), STEP4(16*8,1), STEP4(24*8,1), STEP4(0,1) }, |
| 275 | { STEP8(0,8), STEP8(32*8,8) }, |
| 276 | 64*8 |
| 338 | 277 | }; |
| 339 | 278 | |
| 340 | | static const gfx_layout spritelayout2 = |
| 341 | | { |
| 342 | | 16,16, /* 16*16 sprites */ |
| 343 | | 64, /* 64 sprites */ |
| 344 | | 3, /* 3 bits per pixel */ |
| 345 | | { 0x2000*8, 0, 4 }, /* plane offset */ |
| 346 | | { 8*8, 8*8+1, 8*8+2, 8*8+3, 16*8+0, 16*8+1, 16*8+2, 16*8+3, |
| 347 | | 24*8+0, 24*8+1, 24*8+2, 24*8+3, 0, 1, 2, 3 }, |
| 348 | | { 0 * 8, 1 * 8, 2 * 8, 3 * 8, 4 * 8, 5 * 8, 6 * 8, 7 * 8, |
| 349 | | 32 * 8, 33 * 8, 34 * 8, 35 * 8, 36 * 8, 37 * 8, 38 * 8, 39 * 8 }, |
| 350 | | 64*8 /* every sprite takes 64 bytes */ |
| 351 | | }; |
| 352 | | |
| 353 | | static const gfx_layout spritelayout = |
| 354 | | { |
| 355 | | 16,16, /* 16*16 sprites */ |
| 356 | | 64, /* 64 sprites */ |
| 357 | | 3, /* 2 bits per pixel */ |
| 358 | | { 0x1000*8+4, 0, 4 }, /* plane offset */ |
| 359 | | { 8*8, 8*8+1, 8*8+2, 8*8+3, 16*8+0, 16*8+1, 16*8+2, 16*8+3, |
| 360 | | 24*8+0, 24*8+1, 24*8+2, 24*8+3, 0, 1, 2, 3 }, |
| 361 | | { 0 * 8, 1 * 8, 2 * 8, 3 * 8, 4 * 8, 5 * 8, 6 * 8, 7 * 8, |
| 362 | | 32 * 8, 33 * 8, 34 * 8, 35 * 8, 36 * 8, 37 * 8, 38 * 8, 39 * 8 }, |
| 363 | | 64*8 /* every sprite takes 64 bytes */ |
| 364 | | }; |
| 365 | | |
| 366 | 279 | static GFXDECODE_START( exctsccr ) |
| 367 | | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, charlayout1, 0, 16 ) /* chars */ |
| 368 | | GFXDECODE_ENTRY( REGION_GFX1, 0x2000, charlayout2, 0, 16 ) /* chars */ |
| 369 | | GFXDECODE_ENTRY( REGION_GFX1, 0x1000, spritelayout1, 16*8, 32 ) /* sprites */ |
| 370 | | GFXDECODE_ENTRY( REGION_GFX1, 0x3000, spritelayout2, 16*8, 32 ) /* sprites */ |
| 371 | | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, spritelayout, 16*8, 32 ) /* sprites */ |
| 280 | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout_3bpp, 0x000, 0x080/8 ) /* chars */ |
| 281 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout_3bpp, 0x080, 0x080/8 ) /* sprites */ |
| 282 | GFXDECODE_ENTRY( REGION_GFX3, 0, spritelayout_4bpp, 0x100, 0x100/16 ) /* sprites */ |
| 372 | 283 | GFXDECODE_END |
| 373 | 284 | |
| 374 | 285 | |
| r2018 | r2019 | |
| 391 | 302 | MDRV_CPU_PERIODIC_INT(nmi_line_pulse, 4000) /* 4 kHz, updates the dac */ |
| 392 | 303 | |
| 393 | 304 | /* MCU */ |
| 394 | | #if MCU_HACK |
| 395 | | #else |
| 396 | 305 | MDRV_CPU_ADD(ALPHA8301, 4000000/8) |
| 397 | 306 | MDRV_CPU_PROGRAM_MAP(mcu_map,0) |
| 398 | | #endif |
| 399 | 307 | |
| 308 | MDRV_MACHINE_START(exctsccr) |
| 309 | |
| 400 | 310 | /* video hardware */ |
| 401 | 311 | MDRV_SCREEN_ADD("main", RASTER) |
| 402 | 312 | MDRV_SCREEN_REFRESH_RATE(60) |
| 403 | | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) |
| 404 | 313 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 405 | 314 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 406 | 315 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 407 | 316 | |
| 408 | 317 | MDRV_GFXDECODE(exctsccr) |
| 409 | | MDRV_PALETTE_LENGTH(48*8) |
| 318 | MDRV_PALETTE_LENGTH(0x200) |
| 410 | 319 | |
| 411 | 320 | MDRV_PALETTE_INIT(exctsccr) |
| 412 | 321 | MDRV_VIDEO_START(exctsccr) |
| r2018 | r2019 | |
| 416 | 325 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 417 | 326 | |
| 418 | 327 | MDRV_SOUND_ADD(AY8910, 1500000) |
| 419 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) |
| 328 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.08) |
| 420 | 329 | |
| 421 | 330 | MDRV_SOUND_ADD(AY8910, 1500000) |
| 422 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) |
| 331 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.08) |
| 423 | 332 | |
| 424 | 333 | MDRV_SOUND_ADD(AY8910, 1500000) |
| 425 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) |
| 334 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.08) |
| 426 | 335 | |
| 427 | 336 | MDRV_SOUND_ADD(AY8910, 1500000) |
| 428 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) |
| 337 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.08) |
| 429 | 338 | |
| 430 | 339 | MDRV_SOUND_ADD(DAC, 0) |
| 431 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 340 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) |
| 432 | 341 | |
| 433 | 342 | MDRV_SOUND_ADD(DAC, 0) |
| 434 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 343 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) |
| 435 | 344 | MACHINE_DRIVER_END |
| 436 | 345 | |
| 437 | | /* Bootleg */ |
| 346 | /* Bootleg on a modified Championship Baseball board */ |
| 438 | 347 | static MACHINE_DRIVER_START( exctsccb ) |
| 439 | 348 | |
| 440 | 349 | /* basic machine hardware */ |
| 441 | | MDRV_CPU_ADD(Z80, 4000000) /* 4.0 MHz (?) */ |
| 442 | | MDRV_CPU_PROGRAM_MAP(bl_readmem,bl_writemem) |
| 350 | MDRV_CPU_ADD(Z80, XTAL_18_432MHz/6) |
| 351 | MDRV_CPU_PROGRAM_MAP(bl_map,0) |
| 443 | 352 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 444 | 353 | |
| 445 | | MDRV_CPU_ADD(Z80, 3072000) /* 3.072 MHz ? */ |
| 446 | | MDRV_CPU_PROGRAM_MAP(bl_sound_readmem,bl_sound_writemem) |
| 354 | MDRV_CPU_ADD(Z80, XTAL_18_432MHz/6) |
| 355 | MDRV_CPU_PROGRAM_MAP(bl_sound_map,0) |
| 447 | 356 | |
| 448 | 357 | /* video hardware */ |
| 449 | 358 | MDRV_SCREEN_ADD("main", RASTER) |
| 450 | 359 | MDRV_SCREEN_REFRESH_RATE(60) |
| 451 | | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) |
| 452 | 360 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 453 | 361 | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 454 | 362 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 455 | 363 | |
| 456 | 364 | MDRV_GFXDECODE(exctsccr) |
| 457 | | MDRV_PALETTE_LENGTH(48*8) |
| 365 | MDRV_PALETTE_LENGTH(0x200) |
| 458 | 366 | |
| 459 | 367 | MDRV_PALETTE_INIT(exctsccr) |
| 460 | 368 | MDRV_VIDEO_START(exctsccr) |
| r2018 | r2019 | |
| 463 | 371 | /* sound hardware */ |
| 464 | 372 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 465 | 373 | |
| 466 | | MDRV_SOUND_ADD(AY8910, 1500000) |
| 374 | MDRV_SOUND_ADD(AY8910, XTAL_18_432MHz/12) |
| 467 | 375 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) |
| 468 | 376 | |
| 469 | 377 | MDRV_SOUND_ADD(DAC, 0) |
| 470 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 378 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) |
| 471 | 379 | MACHINE_DRIVER_END |
| 472 | 380 | |
| 473 | 381 | /*************************************************************************** |
| r2018 | r2019 | |
| 489 | 397 | ROM_LOAD( "7_c6.bin", 0x6000, 0x2000, CRC(6d51521e) SHA1(2809bd2e61f40dcd31d43c62520982bdcfb0a865) ) |
| 490 | 398 | ROM_LOAD( "1_a6.bin", 0x8000, 0x1000, CRC(20f2207e) SHA1(b1ed2237d0bd50ddbe593fd2fbff9f1d67c1eb11) ) |
| 491 | 399 | |
| 492 | | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 493 | | ROM_LOAD( "4_a5.bin", 0x0000, 0x2000, CRC(c342229b) SHA1(a989d6c12521c77882a7e17d4d80afe7eae05906) ) |
| 494 | | ROM_LOAD( "5_b5.bin", 0x2000, 0x2000, CRC(35f4f8c9) SHA1(cdf5bbfea9abdd338938e5f4499d2d71ce3c6237) ) |
| 495 | | ROM_LOAD( "6_c5.bin", 0x4000, 0x2000, CRC(eda40e32) SHA1(6c08fd4f4fb35fd354d02e04548e960c545f6a88) ) |
| 400 | ROM_REGION( 0x04000, REGION_GFX1, ROMREGION_DISPOSE ) // 3bpp chars + sprites: rearranged by DRIVER_INIT to leave only chars |
| 401 | ROM_LOAD( "4_a5.bin", 0x0000, 0x2000, CRC(c342229b) SHA1(a989d6c12521c77882a7e17d4d80afe7eae05906) ) /* planes 0,1 */ |
| 402 | ROM_LOAD( "6_c5.bin", 0x2000, 0x2000, CRC(eda40e32) SHA1(6c08fd4f4fb35fd354d02e04548e960c545f6a88) ) /* plane 3 */ |
| 496 | 403 | |
| 497 | | ROM_REGION( 0x02000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 404 | ROM_REGION( 0x04000, REGION_GFX2, ROMREGION_DISPOSE ) // 3bpp chars + sprites: rearranged by DRIVER_INIT to leave only sprites |
| 405 | ROM_LOAD( "5_b5.bin", 0x0000, 0x2000, CRC(35f4f8c9) SHA1(cdf5bbfea9abdd338938e5f4499d2d71ce3c6237) ) /* planes 0,1 */ |
| 406 | |
| 407 | ROM_REGION( 0x02000, REGION_GFX3, ROMREGION_DISPOSE ) // 4bpp sprites |
| 498 | 408 | ROM_LOAD( "2_k5.bin", 0x0000, 0x1000, CRC(7f9cace2) SHA1(bf05a31716f3ca1c2fd1034cd1f39e2d21cdaed3) ) |
| 499 | 409 | ROM_LOAD( "3_l5.bin", 0x1000, 0x1000, CRC(db2d9e0d) SHA1(6ec09a47f7aea6bf31eb0ee78f44012f4d92de8a) ) |
| 500 | 410 | |
| r2018 | r2019 | |
| 517 | 427 | ROM_LOAD( "7_c6.bin", 0x6000, 0x2000, CRC(6d51521e) SHA1(2809bd2e61f40dcd31d43c62520982bdcfb0a865) ) |
| 518 | 428 | ROM_LOAD( "1_a6.bin", 0x8000, 0x1000, CRC(20f2207e) SHA1(b1ed2237d0bd50ddbe593fd2fbff9f1d67c1eb11) ) |
| 519 | 429 | |
| 520 | | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 521 | | ROM_LOAD( "4_a5.bin", 0x0000, 0x2000, CRC(c342229b) SHA1(a989d6c12521c77882a7e17d4d80afe7eae05906) ) |
| 522 | | ROM_LOAD( "5_b5.bin", 0x2000, 0x2000, CRC(35f4f8c9) SHA1(cdf5bbfea9abdd338938e5f4499d2d71ce3c6237) ) |
| 523 | | ROM_LOAD( "6_c5.bin", 0x4000, 0x2000, CRC(eda40e32) SHA1(6c08fd4f4fb35fd354d02e04548e960c545f6a88) ) |
| 430 | ROM_REGION( 0x04000, REGION_GFX1, ROMREGION_DISPOSE ) // 3bpp chars + sprites: rearranged by DRIVER_INIT to leave only chars |
| 431 | ROM_LOAD( "4_a5.bin", 0x0000, 0x2000, CRC(c342229b) SHA1(a989d6c12521c77882a7e17d4d80afe7eae05906) ) /* planes 0,1 */ |
| 432 | ROM_LOAD( "6_c5.bin", 0x2000, 0x2000, CRC(eda40e32) SHA1(6c08fd4f4fb35fd354d02e04548e960c545f6a88) ) /* plane 3 */ |
| 524 | 433 | |
| 525 | | ROM_REGION( 0x02000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 434 | ROM_REGION( 0x04000, REGION_GFX2, ROMREGION_DISPOSE ) // 3bpp chars + sprites: rearranged by DRIVER_INIT to leave only sprites |
| 435 | ROM_LOAD( "5_b5.bin", 0x0000, 0x2000, CRC(35f4f8c9) SHA1(cdf5bbfea9abdd338938e5f4499d2d71ce3c6237) ) /* planes 0,1 */ |
| 436 | |
| 437 | ROM_REGION( 0x02000, REGION_GFX3, ROMREGION_DISPOSE ) // 4bpp sprites |
| 526 | 438 | ROM_LOAD( "2_k5.bin", 0x0000, 0x1000, CRC(7f9cace2) SHA1(bf05a31716f3ca1c2fd1034cd1f39e2d21cdaed3) ) |
| 527 | 439 | ROM_LOAD( "3_l5.bin", 0x1000, 0x1000, CRC(db2d9e0d) SHA1(6ec09a47f7aea6bf31eb0ee78f44012f4d92de8a) ) |
| 528 | 440 | |
| r2018 | r2019 | |
| 544 | 456 | ROM_LOAD( "es-b.l2", 0x2000, 0x2000, CRC(8b3db794) SHA1(dbfed2357c7631bfca6bbd63a23617bc3abf6ca3) ) |
| 545 | 457 | ROM_LOAD( "es-c.m2", 0x4000, 0x2000, CRC(7bed2f81) SHA1(cbbb0480519cc04a99e8983228b18c9e49a9985d) ) |
| 546 | 458 | |
| 547 | | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 548 | | /* I'm using the ROMs from exctscc2, national flags are wrong (ITA replaces USA) */ |
| 549 | | ROM_LOAD( "vr.5a", 0x0000, 0x2000, BAD_DUMP CRC(4ff1783d) SHA1(c45074864c3a4bcbf3a87d164027ae16dca53d9c) ) |
| 550 | | ROM_LOAD( "vr.5b", 0x2000, 0x2000, BAD_DUMP CRC(5605b60b) SHA1(19d5909896ae4a3d7552225c369d30475c56793b) ) |
| 551 | | ROM_LOAD( "vr.5c", 0x4000, 0x2000, BAD_DUMP CRC(1fb84ee6) SHA1(56ceb86c509be783f806403ac21e7c9684760d5f) ) |
| 459 | /* the national flags are wrong. This happens on the real board */ |
| 460 | ROM_REGION( 0x04000, REGION_GFX1, ROMREGION_DISPOSE ) // 3bpp chars + sprites: rearranged by DRIVER_INIT to leave only chars |
| 461 | ROM_LOAD( "4_a5.bin", 0x0000, 0x2000, CRC(c342229b) SHA1(a989d6c12521c77882a7e17d4d80afe7eae05906) ) /* planes 0,1 */ |
| 462 | ROM_LOAD( "6_c5.bin", 0x2000, 0x2000, CRC(eda40e32) SHA1(6c08fd4f4fb35fd354d02e04548e960c545f6a88) ) /* plane 3 */ |
| 552 | 463 | |
| 553 | | ROM_REGION( 0x02000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 554 | | ROM_LOAD( "vr.5k", 0x0000, 0x1000, BAD_DUMP CRC(1d37edfa) SHA1(184fa6dd7b1b3fff4c5fc19b42301ccb7979ac84) ) |
| 555 | | ROM_LOAD( "vr.5l", 0x1000, 0x1000, BAD_DUMP CRC(b97f396c) SHA1(4ffe512acf047230bd593911a615fc0ef66b481d) ) |
| 464 | ROM_REGION( 0x04000, REGION_GFX2, ROMREGION_DISPOSE ) // 3bpp chars + sprites: rearranged by DRIVER_INIT to leave only sprites |
| 465 | ROM_LOAD( "5_b5.bin", 0x0000, 0x2000, CRC(35f4f8c9) SHA1(cdf5bbfea9abdd338938e5f4499d2d71ce3c6237) ) /* planes 0,1 */ |
| 556 | 466 | |
| 467 | ROM_REGION( 0x02000, REGION_GFX3, ROMREGION_DISPOSE ) // 4bpp sprites |
| 468 | ROM_LOAD( "2_k5.bin", 0x0000, 0x1000, CRC(7f9cace2) SHA1(bf05a31716f3ca1c2fd1034cd1f39e2d21cdaed3) ) |
| 469 | ROM_LOAD( "3_l5.bin", 0x1000, 0x1000, CRC(db2d9e0d) SHA1(6ec09a47f7aea6bf31eb0ee78f44012f4d92de8a) ) |
| 470 | |
| 557 | 471 | ROM_REGION( 0x0220, REGION_PROMS, 0 ) |
| 558 | 472 | ROM_LOAD( "prom1.e1", 0x0000, 0x0020, CRC(d9b10bf0) SHA1(bc1263331968f4bf37eb70ec4f56a8cb763c29d2) ) /* palette */ |
| 559 | 473 | ROM_LOAD( "prom2.8r", 0x0020, 0x0100, CRC(8a9c0edf) SHA1(8aad387e9409cff0eeb42eeb57e9ea88770a8c9a) ) /* lookup table */ |
| r2018 | r2019 | |
| 573 | 487 | ROM_LOAD( "7_c6.bin", 0x6000, 0x2000, CRC(6d51521e) SHA1(2809bd2e61f40dcd31d43c62520982bdcfb0a865) ) /* vr.7h */ |
| 574 | 488 | ROM_LOAD( "1_a6.bin", 0x8000, 0x1000, CRC(20f2207e) SHA1(b1ed2237d0bd50ddbe593fd2fbff9f1d67c1eb11) ) /* vr.7k */ |
| 575 | 489 | |
| 576 | | ROM_REGION( 0x06000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 577 | | ROM_LOAD( "vr.5a", 0x0000, 0x2000, CRC(4ff1783d) SHA1(c45074864c3a4bcbf3a87d164027ae16dca53d9c) ) |
| 578 | | ROM_LOAD( "vr.5b", 0x2000, 0x2000, CRC(5605b60b) SHA1(19d5909896ae4a3d7552225c369d30475c56793b) ) |
| 579 | | ROM_LOAD( "vr.5c", 0x4000, 0x2000, CRC(1fb84ee6) SHA1(56ceb86c509be783f806403ac21e7c9684760d5f) ) |
| 490 | ROM_REGION( 0x04000, REGION_GFX1, ROMREGION_DISPOSE ) // 3bpp chars + sprites: rearranged by DRIVER_INIT to leave only chars |
| 491 | ROM_LOAD( "vr.5a", 0x0000, 0x2000, CRC(4ff1783d) SHA1(c45074864c3a4bcbf3a87d164027ae16dca53d9c) ) /* planes 0,1 */ |
| 492 | ROM_LOAD( "vr.5c", 0x2000, 0x2000, CRC(1fb84ee6) SHA1(56ceb86c509be783f806403ac21e7c9684760d5f) ) /* plane 3 */ |
| 580 | 493 | |
| 581 | | ROM_REGION( 0x02000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 494 | ROM_REGION( 0x04000, REGION_GFX2, ROMREGION_DISPOSE ) // 3bpp chars + sprites: rearranged by DRIVER_INIT to leave only sprites |
| 495 | ROM_LOAD( "vr.5b", 0x0000, 0x2000, CRC(5605b60b) SHA1(19d5909896ae4a3d7552225c369d30475c56793b) ) /* planes 0,1 */ |
| 496 | |
| 497 | ROM_REGION( 0x02000, REGION_GFX3, ROMREGION_DISPOSE ) // 4bpp sprites |
| 582 | 498 | ROM_LOAD( "vr.5k", 0x0000, 0x1000, CRC(1d37edfa) SHA1(184fa6dd7b1b3fff4c5fc19b42301ccb7979ac84) ) |
| 583 | 499 | ROM_LOAD( "vr.5l", 0x1000, 0x1000, CRC(b97f396c) SHA1(4ffe512acf047230bd593911a615fc0ef66b481d) ) |
| 584 | 500 | |
| r2018 | r2019 | |
| 588 | 504 | ROM_LOAD( "prom3.k5", 0x0120, 0x0100, CRC(b5db1c2c) SHA1(900aaaac6b674a9c5c7b7804a4b0c3d5cce761aa) ) /* lookup table */ |
| 589 | 505 | ROM_END |
| 590 | 506 | |
| 591 | | /* The games need a different MCU control */ |
| 592 | 507 | |
| 508 | |
| 593 | 509 | static DRIVER_INIT( exctsccr ) |
| 594 | 510 | { |
| 595 | | #if MCU_HACK |
| 596 | | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa006, 0xa006, 0, 0, exctsccr_mcu_control_w); |
| 597 | | #else |
| 598 | | mcu_patch_data = exctsccr_mcu_patch_data; |
| 599 | | #endif |
| 600 | | } |
| 511 | // chars and sprites are mixed in the same ROMs, so rearrange them for easier decoding |
| 512 | UINT8 *rom1 = memory_region(REGION_GFX1); |
| 513 | UINT8 *rom2 = memory_region(REGION_GFX2); |
| 514 | int i; |
| 601 | 515 | |
| 602 | | static DRIVER_INIT( exctscc2 ) |
| 603 | | { |
| 604 | | #if MCU_HACK |
| 605 | | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa006, 0xa006, 0, 0, exctscc2_mcu_control_w); |
| 606 | | #else |
| 607 | | mcu_patch_data = exctscc2_mcu_patch_data; |
| 608 | | #endif |
| 516 | // planes 0,1 |
| 517 | for (i = 0; i < 0x1000; ++i) |
| 518 | { |
| 519 | UINT8 t = rom1[i + 0x1000]; |
| 520 | rom1[i + 0x1000] = rom2[i]; |
| 521 | rom2[i] = t; |
| 522 | } |
| 523 | |
| 524 | // plane 3 |
| 525 | for (i = 0; i < 0x1000; ++i) |
| 526 | { |
| 527 | rom2[i + 0x3000] = rom1[i + 0x3000] >> 4; |
| 528 | rom2[i + 0x2000] = rom1[i + 0x3000] & 0x0f; |
| 529 | } |
| 530 | for (i = 0; i < 0x1000; ++i) |
| 531 | { |
| 532 | rom1[i + 0x3000] = rom1[i + 0x2000] >> 4; |
| 533 | rom1[i + 0x2000] &= 0x0f; |
| 534 | } |
| 609 | 535 | } |
| 610 | 536 | |
| 537 | |
| 538 | |
| 611 | 539 | GAME( 1983, exctsccr, 0, exctsccr, exctsccr, exctsccr, ROT90, "Alpha Denshi Co.", "Exciting Soccer", 0 ) |
| 612 | 540 | GAME( 1983, exctscca, exctsccr, exctsccr, exctsccr, exctsccr, ROT90, "Alpha Denshi Co.", "Exciting Soccer (alternate music)", 0 ) |
| 613 | | GAME( 1983, exctsccb, exctsccr, exctsccb, exctsccr, 0, ROT90, "bootleg", "Exciting Soccer (bootleg)", 0 ) |
| 614 | | GAME( 1984, exctscc2, 0 , exctsccr, exctsccr, exctscc2, ROT90, "Alpha Denshi Co.", "Exciting Soccer II", GAME_IMPERFECT_GRAPHICS ) |
| 541 | GAME( 1983, exctsccb, exctsccr, exctsccb, exctsccr, exctsccr, ROT90, "bootleg", "Exciting Soccer (bootleg)", 0 ) |
| 542 | GAME( 1984, exctscc2, 0 , exctsccr, exctsccr, exctsccr, ROT90, "Alpha Denshi Co.", "Exciting Soccer II", GAME_IMPERFECT_GRAPHICS ) |
src/emu/cpu/alph8201/alph8201.c
| r2018 | r2019 | |
| 4 | 4 | Copyright Tatsuyuki Satoh |
| 5 | 5 | Originally written for the MAME project. |
| 6 | 6 | |
| 7 | | Notes : |
| 8 | 7 | |
| 9 | | tested with champbas.c , talbot.c , shougi.c |
| 8 | The Alpha8201/830x isn't a real CPU. It is a Hitachi HD44801 4-bit MCU, |
| 9 | programmed to interpret an external program using a custom instruction set. |
| 10 | Alpha8301 has an expanded instruction set, backwards compatible with Alpha8201 |
| 10 | 11 | |
| 11 | | This MCU looks too slow speed, |
| 12 | | but fast execution don't work to champbb2, champbbj, talbot. |
| 12 | The internal ROM hasn't been read (yet), so here we provide a simultaion of |
| 13 | the behaviour. |
| 13 | 14 | |
| 14 | | some unknown instruction are not emulation (used by shougi). |
| 15 | 15 | |
| 16 | Game Year MCU |
| 17 | ------------------------ ---- ---- |
| 18 | Shougi 1982? 8201 (pcb) |
| 19 | Shougi 2 1982? 8201 (pcb) |
| 20 | Talbot 1982 8201? |
| 21 | Champion Base Ball 1983 8201 (schematics) |
| 22 | Exciting Soccer 1983 8301? |
| 23 | Champion Base Ball II 1983 8302?(unofficial schematics) |
| 24 | Exciting Soccer II 1984 8302? |
| 25 | Equites 1984 8303 (post) |
| 26 | Bull Fighter 1984 8303 (post) |
| 27 | Splendor Blast 1985 8303 (post) |
| 28 | Gekisou 1985 8304 (post) |
| 29 | The Koukouyakyuh 1985 8304 (post) |
| 30 | High Voltage 1985 8404?(post says 8404, but readme says 8304) |
| 31 | |
| 32 | |
| 33 | Notes : |
| 34 | some unknown instruction are not emulated. |
| 35 | |
| 16 | 36 | Because there was no information, opcode-syntax was created. |
| 17 | 37 | |
| 18 | 38 | TODO: |
| r2018 | r2019 | |
| 23 | 43 | -memory address 001 bit 7-5 specification |
| 24 | 44 | -write value after HALT operation to ODD of vector memory. |
| 25 | 45 | -operation cycle(execution speed). |
| 26 | | History: |
| 27 | 46 | |
| 28 | | 060327: |
| 29 | | IXR changes to Breg. |
| 30 | | The addition of Memory Access of Breg and IX0 |
| 31 | | |
| 32 | | 060326: |
| 33 | | Added ALPHA 8301 I/F and emulation |
| 34 | | |
| 35 | | 060324: |
| 36 | | Archtectore Created by compare code no-MCU Z80 code and MCU version code. |
| 37 | | and check talbot and shougi.c. |
| 38 | | |
| 39 | 47 | ****************************************************************************/ |
| 40 | 48 | |
| 41 | 49 | /**************************************************************************** |
| r2018 | r2019 | |
| 45 | 53 | ----------------------- |
| 46 | 54 | ALPHA 8201 DIP 42 |
| 47 | 55 | |
| 48 | | 1 -WR (or -RD) |
| 49 | | 2-4 : ? NC |
| 50 | | 5-7 : ? GND to shougi , NC to champbas |
| 51 | | 8-14: ? NC |
| 52 | | 15 : RESET |
| 53 | | 16 : GND |
| 54 | | 17 : CLK (champbas=768KHz) |
| 55 | | 18 : ? NC |
| 56 | | 19-21: to VCC |
| 57 | | 22-25: DB4-DB7 |
| 58 | | 26-29: DB0-DB3 |
| 59 | | 30 : HALT (input) |
| 60 | | 31 : ? NC |
| 61 | | 32-35: A4-A7 |
| 62 | | 36-39: A0-A3 |
| 63 | | 40-41: A8-A9 |
| 64 | | 42 : -RD (or -WR) |
| 56 | pin HD44801 Alpha |
| 57 | --- ------- ----- |
| 58 | 1 : D3 WR |
| 59 | 2-4 : D4-D6 n.c. |
| 60 | 5-7 : D7-D9 GND in shougi , n.c. in champbas |
| 61 | 8-13 : D10-D15 n.c. |
| 62 | 14 : n.c. n.c. |
| 63 | 15 : RESET RESET |
| 64 | 16 : GND GND |
| 65 | 17 : OSC1 (champbas=384KHz) |
| 66 | 18 : OSC2 n.c. |
| 67 | 19 : !HLT Vcc |
| 68 | 20 : !TEST Vcc |
| 69 | 21 : Vcc Vcc |
| 70 | 22-25: R00-R03 DB4-DB7 |
| 71 | 26-29: R10-R13 DB0-DB3 |
| 72 | 30 : INT0 GO (input) |
| 73 | 31 : INT1 n.c. |
| 74 | 32-35: R20-R23 A4-A7 |
| 75 | 36-39: R30-R33 A0-A3 |
| 76 | 40-41: D0-D1 A8-A9 |
| 77 | 42 : D2 /RD |
| 65 | 78 | |
| 66 | | ALPHA 8301 seems to be 8201 upper compatibility IC. |
| 67 | | The package of ALPHA8301 is unknown. |
| 68 | 79 | |
| 69 | 80 | ----------------------- |
| 70 | 81 | Register Set |
| r2018 | r2019 | |
| 144 | 155 | #define TRACE_PC 0 |
| 145 | 156 | #define SHOW_ENTRY_POINT 0 |
| 146 | 157 | #define SHOW_MESSAGE_CONSOLE 0 |
| 158 | #define BREAK_ON_UNKNOWN_OPCODE 0 |
| 159 | #define BREAK_ON_UNCERTAIN_OPCODE 0 |
| 147 | 160 | |
| 148 | 161 | /* MAME is unnecessary */ |
| 149 | 162 | #define HANDLE_HALT_LINE 0 |
| r2018 | r2019 | |
| 188 | 201 | static int ALPHA8201_ICount; |
| 189 | 202 | static int inst_cycles; |
| 190 | 203 | |
| 191 | | #define intRAM R.RAM |
| 204 | #define regRAM R.RAM |
| 192 | 205 | #define regPTR R.regPtr |
| 193 | 206 | |
| 194 | 207 | #define PC R.pc.w.l |
| 195 | 208 | #define PCL R.pc.b.l |
| 196 | | #define R0 intRAM[regPTR ] |
| 197 | | #define R1 intRAM[regPTR+1] |
| 198 | | #define R2 intRAM[regPTR+2] |
| 199 | | #define R3 intRAM[regPTR+3] |
| 200 | | #define R4 intRAM[regPTR+4] |
| 201 | | #define R5 intRAM[regPTR+5] |
| 202 | | #define R6 intRAM[regPTR+6] |
| 203 | | #define R7 intRAM[regPTR+7] |
| 209 | #define RD_REG(x) regRAM[(regPTR<<3)+(x)] |
| 210 | #define WR_REG(x,d) regRAM[(regPTR<<3)+(x)]=(d) |
| 204 | 211 | #define ZF R.zf |
| 205 | 212 | #define CF R.cf |
| 206 | 213 | #define IX0 R.ix0.b.l |
| r2018 | r2019 | |
| 230 | 237 | CF = temp>>8; |
| 231 | 238 | } |
| 232 | 239 | |
| 233 | | INLINE void M_SUB(UINT8 dat) |
| 234 | | { |
| 235 | | CF = (R.A<dat); |
| 236 | | R.A -= dat; |
| 237 | | ZF = (R.A==0); |
| 238 | | } |
| 239 | | |
| 240 | 240 | INLINE void M_ADDB(UINT8 dat) |
| 241 | 241 | { |
| 242 | 242 | UINT16 temp = R.B + dat; |
| r2018 | r2019 | |
| 245 | 245 | CF = temp>>8; |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | | INLINE void M_SUBB(UINT8 dat) |
| 248 | INLINE void M_SUB(UINT8 dat) |
| 249 | 249 | { |
| 250 | | CF = (R.B<dat); |
| 251 | | R.B -= dat; |
| 252 | | ZF = (R.B==0); |
| 250 | CF = (R.A>=dat); // CF is No Borrow |
| 251 | R.A -= dat; |
| 252 | ZF = (R.A==0); |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | 255 | INLINE void M_AND(UINT8 dat) |
| 256 | 256 | { |
| 257 | 257 | R.A &= dat; |
| 258 | 258 | ZF = (R.A==0); |
| 259 | | CF = 0; |
| 260 | 259 | } |
| 261 | 260 | |
| 262 | 261 | INLINE void M_OR(UINT8 dat) |
| 263 | 262 | { |
| 264 | 263 | R.A |= dat; |
| 265 | 264 | ZF = (R.A==0); |
| 266 | | CF = 0; |
| 267 | 265 | } |
| 268 | 266 | |
| 267 | INLINE void M_XOR(UINT8 dat) |
| 268 | { |
| 269 | R.A ^= dat; |
| 270 | ZF = (R.A==0); |
| 271 | // CF = 0; unknown whether it's affected or not |
| 272 | } |
| 273 | |
| 269 | 274 | INLINE void M_JMP(UINT8 dat) |
| 270 | 275 | { |
| 271 | 276 | PCL = dat; |
| r2018 | r2019 | |
| 280 | 285 | #if SHOW_MESSAGE_CONSOLE |
| 281 | 286 | mame_printf_debug("ALPHA8201: PC = %03x, Unimplemented opcode = %02x\n", PC-1, M_RDMEM(PC-1)); |
| 282 | 287 | #endif |
| 288 | #if BREAK_ON_UNKNOWN_OPCODE |
| 289 | DEBUGGER_BREAK; |
| 290 | #endif |
| 283 | 291 | } |
| 284 | 292 | |
| 285 | 293 | INLINE void M_UNDEFINED2(void) |
| r2018 | r2019 | |
| 290 | 298 | #if SHOW_MESSAGE_CONSOLE |
| 291 | 299 | mame_printf_debug("ALPHA8201: PC = %03x, Unimplemented opcode = %02x,%02x\n", PC-2, op,imm); |
| 292 | 300 | #endif |
| 301 | #if BREAK_ON_UNKNOWN_OPCODE |
| 302 | DEBUGGER_BREAK; |
| 303 | #endif |
| 293 | 304 | } |
| 294 | 305 | |
| 295 | 306 | static void undefined(void) { M_UNDEFINED(); } |
| r2018 | r2019 | |
| 302 | 313 | #if SHOW_MESSAGE_CONSOLE |
| 303 | 314 | mame_printf_debug("ALPHA8201: PC = %03x, unknown opcode = %02x is '%s' ??\n",PC-1, op,s); |
| 304 | 315 | #endif |
| 316 | #if BREAK_ON_UNCERTAIN_OPCODE |
| 317 | DEBUGGER_BREAK; |
| 318 | #endif |
| 305 | 319 | } |
| 306 | 320 | |
| 321 | #if 0 |
| 322 | static void need_verify2(const char *s) |
| 323 | { |
| 324 | UINT8 op1 = M_RDOP(PC-2); |
| 325 | UINT8 op2 = M_RDOP(PC-1); |
| 326 | logerror("ALPHA8201: PC = %03x, unknown opcode = %02x %02x is '%s' ??\n",PC-2, op1, op2, s); |
| 327 | #if SHOW_MESSAGE_CONSOLE |
| 328 | mame_printf_debug("ALPHA8201: PC = %03x, unknown opcode = %02x %02x is '%s' ??\n",PC-2, op1, op2, s); |
| 329 | #endif |
| 330 | #if BREAK_ON_UNCERTAIN_OPCODE |
| 331 | DEBUGGER_BREAK; |
| 332 | #endif |
| 333 | } |
| 334 | #endif |
| 335 | |
| 307 | 336 | static void nop(void) { } |
| 308 | | static void rlca(void) { CF = (R.A>>7)&1; R.A = (R.A<<1) | (R.A>>7); ZF = (R.A==0); } |
| 309 | | static void rrca(void) { CF = R.A &1; R.A = (R.A>>1) | (R.A<<7); ZF = (R.A==0); } |
| 310 | | static void inc_b(void) { M_ADDB(1); } |
| 311 | | static void dec_b(void) { M_SUBB(1); } |
| 312 | | static void inc_a(void) { M_ADD(1); } |
| 313 | | static void dec_a(void) { M_SUB(1); } |
| 314 | | static void cpl(void) { R.A = R.A^0xff; ZF = (R.A==0); } |
| 337 | static void rora(void) { CF = R.A &1; R.A = (R.A>>1) | (R.A<<7); } |
| 338 | static void rola(void) { CF = (R.A>>7)&1; R.A = (R.A<<1) | (R.A>>7); } |
| 339 | static void inc_b(void) { M_ADDB(0x02); } |
| 340 | static void dec_b(void) { M_ADDB(0xfe); } |
| 341 | static void inc_a(void) { M_ADD(0x01); } |
| 342 | static void dec_a(void) { M_ADD(0xff); } |
| 343 | static void cpl(void) { R.A ^= 0xff; }; |
| 315 | 344 | |
| 316 | 345 | static void ld_a_ix0_0(void) { R.A = M_RDMEM(BIX0+0); } |
| 317 | 346 | static void ld_a_ix0_1(void) { R.A = M_RDMEM(BIX0+1); } |
| r2018 | r2019 | |
| 340 | 369 | static void ld_ix2_6_a(void) { M_WRMEM(BIX2+6,R.A); } |
| 341 | 370 | static void ld_ix2_7_a(void) { M_WRMEM(BIX2+7,R.A); } |
| 342 | 371 | |
| 343 | | static void ld_ix0_0_b(void) { M_WRMEM(BIX0+0,R.B); } |
| 344 | | static void ld_ix0_1_b(void) { M_WRMEM(BIX0+0,R.B); } |
| 345 | | static void ld_ix0_2_b(void) { M_WRMEM(BIX0+0,R.B); } |
| 346 | | static void ld_ix0_3_b(void) { M_WRMEM(BIX0+0,R.B); } |
| 347 | | static void ld_ix0_4_b(void) { M_WRMEM(BIX0+0,R.B); } |
| 348 | | static void ld_ix0_5_b(void) { M_WRMEM(BIX0+0,R.B); } |
| 349 | | static void ld_ix0_6_b(void) { M_WRMEM(BIX0+0,R.B); } |
| 350 | | static void ld_ix0_7_b(void) { M_WRMEM(BIX0+0,R.B); } |
| 372 | static void ld_ix0_0_b(void) { regRAM[(R.B>>1)&0x3f] = M_RDMEM(BIX0+0); } |
| 373 | static void ld_ix0_1_b(void) { regRAM[(R.B>>1)&0x3f] = M_RDMEM(BIX0+1); } |
| 374 | static void ld_ix0_2_b(void) { regRAM[(R.B>>1)&0x3f] = M_RDMEM(BIX0+2); } |
| 375 | static void ld_ix0_3_b(void) { regRAM[(R.B>>1)&0x3f] = M_RDMEM(BIX0+3); } |
| 376 | static void ld_ix0_4_b(void) { regRAM[(R.B>>1)&0x3f] = M_RDMEM(BIX0+4); } |
| 377 | static void ld_ix0_5_b(void) { regRAM[(R.B>>1)&0x3f] = M_RDMEM(BIX0+5); } |
| 378 | static void ld_ix0_6_b(void) { regRAM[(R.B>>1)&0x3f] = M_RDMEM(BIX0+6); } |
| 379 | static void ld_ix0_7_b(void) { regRAM[(R.B>>1)&0x3f] = M_RDMEM(BIX0+7); } |
| 351 | 380 | |
| 352 | | static void ld_ix1_0_b(void) { M_WRMEM(BIX1+0,R.B); need_verify("LD (IX1+0),B"); } |
| 353 | | static void ld_ix1_1_b(void) { M_WRMEM(BIX1+1,R.B); need_verify("LD (IX1+1),B"); } |
| 354 | | static void ld_ix1_2_b(void) { M_WRMEM(BIX1+2,R.B); need_verify("LD (IX1+2),B"); } |
| 355 | | static void ld_ix1_3_b(void) { M_WRMEM(BIX1+3,R.B); need_verify("LD (IX1+3),B"); } |
| 356 | | static void ld_ix1_4_b(void) { M_WRMEM(BIX1+4,R.B); need_verify("LD (IX1+4),B"); } |
| 357 | | static void ld_ix1_5_b(void) { M_WRMEM(BIX1+5,R.B); need_verify("LD (IX1+5),B"); } |
| 358 | | static void ld_ix1_6_b(void) { M_WRMEM(BIX1+6,R.B); need_verify("LD (IX1+6),B"); } |
| 359 | | static void ld_ix1_7_b(void) { M_WRMEM(BIX1+7,R.B); need_verify("LD (IX1+7),B"); } |
| 381 | static void bit_r0_0(void) { ZF = RD_REG(0)&(1<<0)?0:1; } |
| 382 | static void bit_r0_1(void) { ZF = RD_REG(0)&(1<<1)?0:1; } |
| 383 | static void bit_r0_2(void) { ZF = RD_REG(0)&(1<<2)?0:1; } |
| 384 | static void bit_r0_3(void) { ZF = RD_REG(0)&(1<<3)?0:1; } |
| 385 | static void bit_r0_4(void) { ZF = RD_REG(0)&(1<<4)?0:1; } |
| 386 | static void bit_r0_5(void) { ZF = RD_REG(0)&(1<<5)?0:1; } |
| 387 | static void bit_r0_6(void) { ZF = RD_REG(0)&(1<<6)?0:1; } |
| 388 | static void bit_r0_7(void) { ZF = RD_REG(0)&(1<<7)?0:1; } |
| 360 | 389 | |
| 361 | | static void ld_b_ix2_0(void) { R.B = M_RDMEM(BIX2+0); need_verify("LD B,(IX2+0)"); } |
| 362 | | static void ld_b_ix2_1(void) { R.B = M_RDMEM(BIX2+1); need_verify("LD B,(IX2+1)"); } |
| 363 | | static void ld_b_ix2_2(void) { R.B = M_RDMEM(BIX2+2); need_verify("LD B,(IX2+2)"); } |
| 364 | | static void ld_b_ix2_3(void) { R.B = M_RDMEM(BIX2+3); need_verify("LD B,(IX2+3)"); } |
| 365 | | static void ld_b_ix2_4(void) { R.B = M_RDMEM(BIX2+4); need_verify("LD B,(IX2+4)"); } |
| 366 | | static void ld_b_ix2_5(void) { R.B = M_RDMEM(BIX2+5); need_verify("LD B,(IX2+5)"); } |
| 367 | | static void ld_b_ix2_6(void) { R.B = M_RDMEM(BIX2+6); need_verify("LD B,(IX2+6)"); } |
| 368 | | static void ld_b_ix2_7(void) { R.B = M_RDMEM(BIX2+7); need_verify("LD B,(IX2+7)"); } |
| 390 | static void ld_a_n(void) { R.A = M_RDMEM_OPCODE(); } |
| 369 | 391 | |
| 370 | | static void bit_r0_0(void) { R.zf = R0&(1<<0)?0:1; } |
| 371 | | static void bit_r0_1(void) { R.zf = R0&(1<<1)?0:1; } |
| 372 | | static void bit_r0_2(void) { R.zf = R0&(1<<2)?0:1; } |
| 373 | | static void bit_r0_3(void) { R.zf = R0&(1<<3)?0:1; } |
| 374 | | static void bit_r0_4(void) { R.zf = R0&(1<<4)?0:1; } |
| 375 | | static void bit_r0_5(void) { R.zf = R0&(1<<5)?0:1; } |
| 376 | | static void bit_r0_6(void) { R.zf = R0&(1<<6)?0:1; } |
| 377 | | static void bit_r0_7(void) { R.zf = R0&(1<<7)?0:1; } |
| 392 | static void ld_a_r0(void) { R.A = RD_REG(0); ZF = (R.A==0); } |
| 393 | static void ld_a_r1(void) { R.A = RD_REG(1); ZF = (R.A==0); } |
| 394 | static void ld_a_r2(void) { R.A = RD_REG(2); ZF = (R.A==0); } |
| 395 | static void ld_a_r3(void) { R.A = RD_REG(3); ZF = (R.A==0); } |
| 396 | static void ld_a_r4(void) { R.A = RD_REG(4); ZF = (R.A==0); } |
| 397 | static void ld_a_r5(void) { R.A = RD_REG(5); ZF = (R.A==0); } |
| 398 | static void ld_a_r6(void) { R.A = RD_REG(6); ZF = (R.A==0); } |
| 399 | static void ld_a_r7(void) { R.A = RD_REG(7); ZF = (R.A==0); } |
| 378 | 400 | |
| 379 | | static void ld_a_n(void) { R.A = M_RDMEM_OPCODE(); } |
| 380 | | static void ld_a_r0(void) { R.A = R0; } |
| 381 | | static void ld_a_r1(void) { R.A = R1; } |
| 382 | | static void ld_a_r2(void) { R.A = R2; } |
| 383 | | static void ld_a_r3(void) { R.A = R3; } |
| 384 | | static void ld_a_r4(void) { R.A = R4; } |
| 385 | | static void ld_a_r5(void) { R.A = R5; } |
| 386 | | static void ld_a_r6(void) { R.A = R6; } |
| 387 | | static void ld_a_r7(void) { R.A = R7; } |
| 401 | static void ld_r0_a(void) { WR_REG(0,R.A); } |
| 402 | static void ld_r1_a(void) { WR_REG(1,R.A); } |
| 403 | static void ld_r2_a(void) { WR_REG(2,R.A); } |
| 404 | static void ld_r3_a(void) { WR_REG(3,R.A); } |
| 405 | static void ld_r4_a(void) { WR_REG(4,R.A); } |
| 406 | static void ld_r5_a(void) { WR_REG(5,R.A); } |
| 407 | static void ld_r6_a(void) { WR_REG(6,R.A); } |
| 408 | static void ld_r7_a(void) { WR_REG(7,R.A); } |
| 388 | 409 | |
| 389 | | static void ld_r0_a(void) { R0 = R.A; } |
| 390 | | static void ld_r1_a(void) { R1 = R.A; } |
| 391 | | static void ld_r2_a(void) { R2 = R.A; } |
| 392 | | static void ld_r3_a(void) { R3 = R.A; } |
| 393 | | static void ld_r4_a(void) { R4 = R.A; } |
| 394 | | static void ld_r5_a(void) { R5 = R.A; } |
| 395 | | static void ld_r6_a(void) { R6 = R.A; } |
| 396 | | static void ld_r7_a(void) { R7 = R.A; } |
| 397 | | |
| 398 | 410 | static void add_a_n(void) { M_ADD(M_RDMEM_OPCODE()); } |
| 399 | | static void add_a_r0(void) { M_ADD(R0); } |
| 400 | | static void add_a_r1(void) { M_ADD(R1); } |
| 401 | | static void add_a_r2(void) { M_ADD(R2); } |
| 402 | | static void add_a_r3(void) { M_ADD(R3); } |
| 403 | | static void add_a_r4(void) { M_ADD(R4); } |
| 404 | | static void add_a_r5(void) { M_ADD(R5); } |
| 405 | | static void add_a_r6(void) { M_ADD(R6); } |
| 406 | | static void add_a_r7(void) { M_ADD(R7); } |
| 407 | 411 | |
| 412 | static void add_a_r0(void) { M_ADD(RD_REG(0)); } |
| 413 | static void add_a_r1(void) { M_ADD(RD_REG(1)); } |
| 414 | static void add_a_r2(void) { M_ADD(RD_REG(2)); } |
| 415 | static void add_a_r3(void) { M_ADD(RD_REG(3)); } |
| 416 | static void add_a_r4(void) { M_ADD(RD_REG(4)); } |
| 417 | static void add_a_r5(void) { M_ADD(RD_REG(5)); } |
| 418 | static void add_a_r6(void) { M_ADD(RD_REG(6)); } |
| 419 | static void add_a_r7(void) { M_ADD(RD_REG(7)); } |
| 420 | |
| 408 | 421 | static void sub_a_n(void) { M_SUB(M_RDMEM_OPCODE()); } |
| 409 | | static void sub_a_r0(void) { M_SUB(R0); } |
| 410 | | static void sub_a_r1(void) { M_SUB(R1); } |
| 411 | | static void sub_a_r2(void) { M_SUB(R2); } |
| 412 | | static void sub_a_r3(void) { M_SUB(R3); } |
| 413 | | static void sub_a_r4(void) { M_SUB(R4); } |
| 414 | | static void sub_a_r5(void) { M_SUB(R5); } |
| 415 | | static void sub_a_r6(void) { M_SUB(R6); } |
| 416 | | static void sub_a_r7(void) { M_SUB(R7); } |
| 417 | 422 | |
| 423 | static void sub_a_r0(void) { M_SUB(RD_REG(0)); } |
| 424 | static void sub_a_r1(void) { M_SUB(RD_REG(1)); } |
| 425 | static void sub_a_r2(void) { M_SUB(RD_REG(2)); } |
| 426 | static void sub_a_r3(void) { M_SUB(RD_REG(3)); } |
| 427 | static void sub_a_r4(void) { M_SUB(RD_REG(4)); } |
| 428 | static void sub_a_r5(void) { M_SUB(RD_REG(5)); } |
| 429 | static void sub_a_r6(void) { M_SUB(RD_REG(6)); } |
| 430 | static void sub_a_r7(void) { M_SUB(RD_REG(7)); } |
| 431 | |
| 418 | 432 | static void and_a_n(void) { M_AND(M_RDMEM_OPCODE()); } |
| 419 | | static void and_a_r0(void) { M_AND(R0); } |
| 420 | | static void and_a_r1(void) { M_AND(R1); } |
| 421 | | static void and_a_r2(void) { M_AND(R2); } |
| 422 | | static void and_a_r3(void) { M_AND(R3); } |
| 423 | | static void and_a_r4(void) { M_AND(R4); } |
| 424 | | static void and_a_r5(void) { M_AND(R5); } |
| 425 | | static void and_a_r6(void) { M_AND(R6); } |
| 426 | | static void and_a_r7(void) { M_AND(R7); } |
| 427 | 433 | |
| 434 | static void and_a_r0(void) { M_AND(RD_REG(0)); } |
| 435 | static void and_a_r1(void) { M_AND(RD_REG(1)); } |
| 436 | static void and_a_r2(void) { M_AND(RD_REG(2)); } |
| 437 | static void and_a_r3(void) { M_AND(RD_REG(3)); } |
| 438 | static void and_a_r4(void) { M_AND(RD_REG(4)); } |
| 439 | static void and_a_r5(void) { M_AND(RD_REG(5)); } |
| 440 | static void and_a_r6(void) { M_AND(RD_REG(6)); } |
| 441 | static void and_a_r7(void) { M_AND(RD_REG(7)); } |
| 442 | |
| 428 | 443 | static void or_a_n(void) { M_OR(M_RDMEM_OPCODE()); } |
| 429 | | static void or_a_r0(void) { M_OR(R0); } |
| 430 | | static void or_a_r1(void) { M_OR(R1); } |
| 431 | | static void or_a_r2(void) { M_OR(R2); } |
| 432 | | static void or_a_r3(void) { M_OR(R3); } |
| 433 | | static void or_a_r4(void) { M_OR(R4); } |
| 434 | | static void or_a_r5(void) { M_OR(R5); } |
| 435 | | static void or_a_r6(void) { M_OR(R6); } |
| 436 | | static void or_a_r7(void) { M_OR(R7); } |
| 437 | 444 | |
| 438 | | static void add_ix0_0(void) {} |
| 445 | static void or_a_r0(void) { M_OR(RD_REG(0)); } |
| 446 | static void or_a_r1(void) { M_OR(RD_REG(1)); } |
| 447 | static void or_a_r2(void) { M_OR(RD_REG(2)); } |
| 448 | static void or_a_r3(void) { M_OR(RD_REG(3)); } |
| 449 | static void or_a_r4(void) { M_OR(RD_REG(4)); } |
| 450 | static void or_a_r5(void) { M_OR(RD_REG(5)); } |
| 451 | static void or_a_r6(void) { M_OR(RD_REG(6)); } |
| 452 | static void or_a_r7(void) { M_OR(RD_REG(7)); } |
| 453 | |
| 454 | static void add_ix0_0(void) { } |
| 439 | 455 | static void add_ix0_1(void) { IX0 += 1; } |
| 440 | 456 | static void add_ix0_2(void) { IX0 += 2; } |
| 441 | 457 | static void add_ix0_3(void) { IX0 += 3; } |
| r2018 | r2019 | |
| 452 | 468 | static void add_ix0_e(void) { IX0 += 14; } |
| 453 | 469 | static void add_ix0_f(void) { IX0 += 15; } |
| 454 | 470 | |
| 455 | | static void add_ix1_0(void) {} |
| 471 | static void add_ix1_0(void) { } |
| 456 | 472 | static void add_ix1_1(void) { IX1 += 1; } |
| 457 | 473 | static void add_ix1_2(void) { IX1 += 2; } |
| 458 | 474 | static void add_ix1_3(void) { IX1 += 3; } |
| r2018 | r2019 | |
| 469 | 485 | static void add_ix1_e(void) { IX1 += 14; } |
| 470 | 486 | static void add_ix1_f(void) { IX1 += 15; } |
| 471 | 487 | |
| 472 | | static void add_ix2_0(void) {} |
| 488 | static void add_ix2_0(void) { } |
| 473 | 489 | static void add_ix2_1(void) { IX2 += 1; } |
| 474 | 490 | static void add_ix2_2(void) { IX2 += 2; } |
| 475 | 491 | static void add_ix2_3(void) { IX2 += 3; } |
| r2018 | r2019 | |
| 486 | 502 | static void add_ix2_e(void) { IX2 += 14; } |
| 487 | 503 | static void add_ix2_f(void) { IX2 += 15; } |
| 488 | 504 | |
| 489 | | static void ld_base_0(void) { regPTR = 0<<3; } |
| 490 | | static void ld_base_1(void) { regPTR = 1<<3; } |
| 491 | | static void ld_base_2(void) { regPTR = 2<<3; } |
| 492 | | static void ld_base_3(void) { regPTR = 3<<3; } |
| 493 | | static void ld_base_4(void) { regPTR = 4<<3; } |
| 494 | | static void ld_base_5(void) { regPTR = 5<<3; } |
| 495 | | static void ld_base_6(void) { regPTR = 6<<3; } |
| 496 | | static void ld_base_7(void) { regPTR = 7<<3; } |
| 505 | static void ld_base_0(void) { regPTR = 0; } |
| 506 | static void ld_base_1(void) { regPTR = 1; } |
| 507 | static void ld_base_2(void) { regPTR = 2; } |
| 508 | static void ld_base_3(void) { regPTR = 3; } |
| 509 | static void ld_base_4(void) { regPTR = 4; } |
| 510 | static void ld_base_5(void) { regPTR = 5; } |
| 511 | static void ld_base_6(void) { regPTR = 6; } |
| 512 | static void ld_base_7(void) { regPTR = 7; } |
| 497 | 513 | |
| 498 | 514 | static void ld_bank_0(void) { R.mb = 0; } |
| 499 | 515 | static void ld_bank_1(void) { R.mb = 1; } |
| 500 | 516 | static void ld_bank_2(void) { R.mb = 2; } |
| 501 | 517 | static void ld_bank_3(void) { R.mb = 3; } |
| 502 | 518 | |
| 503 | | static void halt(void) |
| 519 | static void stop(void) |
| 504 | 520 | { |
| 505 | 521 | UINT8 pcptr = M_RDMEM(0x001) & 0x1f; |
| 506 | | M_WRMEM(pcptr,0x08); /* mark entry point ODD to HALT */ |
| 522 | M_WRMEM(pcptr,(M_RDMEM(pcptr)&0xf)+0x08); /* mark entry point ODD to HALT */ |
| 507 | 523 | R.mb |= 0x08; /* mark internal HALT state */ |
| 508 | 524 | } |
| 509 | 525 | |
| r2018 | r2019 | |
| 518 | 534 | static void djnz_lp0(void) { UINT8 i=M_RDMEM_OPCODE(); LP0--; if (LP0 != 0) M_JMP(i); } |
| 519 | 535 | static void djnz_lp1(void) { UINT8 i=M_RDMEM_OPCODE(); LP1--; if (LP1 != 0) M_JMP(i); } |
| 520 | 536 | static void djnz_lp2(void) { UINT8 i=M_RDMEM_OPCODE(); LP2--; if (LP2 != 0) M_JMP(i); } |
| 521 | | static void jnz(void) { UINT8 i=M_RDMEM_OPCODE(); if (!R.zf) M_JMP(i); } |
| 522 | | static void jc(void) { UINT8 i=M_RDMEM_OPCODE(); if ( R.cf) M_JMP(i); } |
| 523 | | static void jz(void) { UINT8 i=M_RDMEM_OPCODE(); if ( R.zf) M_JMP(i); } |
| 537 | static void jnz(void) { UINT8 i=M_RDMEM_OPCODE(); if (!ZF) M_JMP(i); } |
| 538 | static void jnc(void) { UINT8 i=M_RDMEM_OPCODE(); if (!CF) M_JMP(i);} |
| 539 | static void jz(void) { UINT8 i=M_RDMEM_OPCODE(); if ( ZF) M_JMP(i); } |
| 524 | 540 | static void jmp(void) { M_JMP( M_RDMEM_OPCODE() ); } |
| 525 | 541 | |
| 526 | 542 | #if (HAS_ALPHA8201) |
| 527 | 543 | static const s_opcode opcode_8201[256]= |
| 528 | 544 | { |
| 529 | | {C1, nop },{C1,rrca },{C1, rlca },{C1,inc_b },{C1, dec_b },{C1, inc_a },{C1, dec_a },{C1, cpl }, |
| 545 | {C1, nop },{C1,rora },{C1, rola },{C1,inc_b },{C1,dec_b },{C1, inc_a },{C1, dec_a },{C1, cpl }, |
| 530 | 546 | {C2,ld_a_ix0_0 },{C2,ld_a_ix0_1},{C2, ld_a_ix0_2},{C2,ld_a_ix0_3},{C2,ld_a_ix0_4},{C2,ld_a_ix0_5},{C2,ld_a_ix0_6},{C2,ld_a_ix0_7}, |
| 531 | 547 | {C2,ld_a_ix1_0 },{C2,ld_a_ix1_1},{C2, ld_a_ix1_2},{C2,ld_a_ix1_3},{C2,ld_a_ix1_4},{C2,ld_a_ix1_5},{C2,ld_a_ix1_6},{C2,ld_a_ix1_7}, |
| 532 | 548 | {C2,ld_ix2_0_a },{C2,ld_ix2_1_a},{C2, ld_ix2_2_a},{C2,ld_ix2_3_a},{C2,ld_ix2_4_a},{C2,ld_ix2_5_a},{C2,ld_ix2_6_a},{C2,ld_ix2_7_a}, |
| 533 | 549 | /* 20 */ |
| 534 | 550 | {C2,ld_ix0_0_b },{C2,ld_ix0_1_b},{C2, ld_ix0_2_b},{C2,ld_ix0_3_b},{C2,ld_ix0_4_b},{C2,ld_ix0_5_b},{C2,ld_ix0_6_b},{C2,ld_ix0_7_b}, |
| 535 | | {C2,ld_ix1_0_b },{C2,ld_ix1_1_b},{C2, ld_ix1_2_b},{C2,ld_ix1_3_b},{C2,ld_ix1_4_b},{C2,ld_ix1_5_b},{C2,ld_ix1_6_b},{C2,ld_ix1_7_b}, |
| 536 | | {C2,ld_b_ix2_0 },{C2,ld_b_ix2_1},{C2, ld_b_ix2_2},{C2,ld_b_ix2_3},{C2,ld_b_ix2_4},{C2,ld_b_ix2_5},{C2,ld_b_ix2_6},{C2,ld_b_ix2_7}, |
| 551 | {C2,undefined },{C2,undefined },{C2, undefined },{C2,undefined },{C2,undefined },{C2,undefined },{C2,undefined },{C2,undefined }, |
| 552 | {C2,undefined },{C2,undefined },{C2, undefined },{C2,undefined },{C2,undefined },{C2,undefined },{C2,undefined },{C2,undefined }, |
| 537 | 553 | {C2,bit_r0_0 },{C2,bit_r0_1 },{C2, bit_r0_2 },{C2, bit_r0_3 },{C2, bit_r0_4 },{C2, bit_r0_5 },{C2, bit_r0_6 },{C2, bit_r0_7 }, |
| 538 | 554 | /* 40 : 8201 */ |
| 539 | 555 | {C2, ld_a_r0 },{C2, ld_r0_a },{C2, ld_a_r1 },{C2, ld_r1_a },{C2, ld_a_r2 },{C2, ld_r2_a },{C2, ld_a_r3 },{C2, ld_r3_a }, |
| r2018 | r2019 | |
| 551 | 567 | {C1, add_ix2_8 },{C1, add_ix2_9},{C1, add_ix2_a},{C1, add_ix2_b},{C1, add_ix2_c},{C1, add_ix2_d},{C1, add_ix2_e},{C1, add_ix2_f}, |
| 552 | 568 | {C1, ld_base_0 },{C1, ld_base_1},{C1, ld_base_2},{C1, ld_base_3},{C1, ld_base_4},{C1, ld_base_5},{C1, ld_base_6},{C1, ld_base_7}, |
| 553 | 569 | {C1, undefined },{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined}, |
| 554 | | {C1, ld_bank_0 },{C1, ld_bank_1},{C1, ld_bank_2},{C1, ld_bank_3},{C2, halt },{C1, undefined},{C1, undefined},{C1, undefined}, |
| 570 | {C1, ld_bank_0 },{C1, ld_bank_1},{C1, ld_bank_2},{C1, ld_bank_3},{C2, stop },{C1, undefined},{C1, undefined},{C1, undefined}, |
| 555 | 571 | {C1, undefined },{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined}, |
| 556 | 572 | /* c0 : 8201 */ |
| 557 | 573 | {C2, ld_ix0_n },{C2, ld_ix1_n },{C2, ld_ix2_n },{C2, ld_a_n },{C2, ld_lp0_n },{C2, ld_lp1_n },{C2, ld_lp2_n },{C2, ld_b_n }, |
| 558 | 574 | {C2, add_a_n },{C2, sub_a_n },{C2, and_a_n },{C2, or_a_n },{C2, djnz_lp0 },{C2, djnz_lp1 },{C2, djnz_lp2 },{C2, jnz }, |
| 559 | | {C2, jc },{C2, jz },{C2, jmp },{C2,undefined2},{C2,undefined2},{C2,undefined2},{C2,undefined2},{C2, undefined2}, |
| 575 | {C2, jnc },{C2, jz },{C2, jmp },{C2,undefined2},{C2,undefined2},{C2,undefined2},{C2,undefined2},{C2, undefined2}, |
| 560 | 576 | {C2, undefined2 },{C2,undefined2},{C2,undefined2},{C2,undefined2},{C2,undefined2},{C2,undefined2},{C2,undefined2},{C2, undefined2}, |
| 561 | 577 | /* E0 : 8201*/ |
| 562 | 578 | {C1, undefined },{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined}, |
| r2018 | r2019 | |
| 571 | 587 | /* ALPHA 8301 : added instruction */ |
| 572 | 588 | static void dec_ix0(void) { IX0--; } /* OK */ |
| 573 | 589 | |
| 590 | static void ld_a_x(void) { R.A = R.B; need_verify("LD A,unk"); } |
| 591 | static void ld_x_a(void) { R.B = R.A; need_verify("LD unk,A"); } |
| 574 | 592 | static void ld_a_b(void) { R.A = R.B; } |
| 575 | 593 | static void ld_b_a(void) { R.B = R.A; } |
| 594 | static void exg_a_lp0(void) { UINT8 t=R.A; R.A = LP0; LP0 = t; } |
| 595 | static void ld_lp0_a(void) { LP0 = R.A; } |
| 576 | 596 | |
| 577 | 597 | static void ld_ix0_a(void) { IX0 = R.A; } /* maybe OK */ |
| 578 | 598 | static void ld_ix1_a(void) { IX1 = R.A; need_verify("LD IX1,A"); } /* not found */ |
| 579 | 599 | static void ld_ix2_a(void) { IX2 = R.A; } /* maybe OK */ |
| 580 | 600 | |
| 581 | | static void ld_ix2_ix0(void) { IX2 = IX0; } /* OK */ |
| 601 | static void exg_ix0_ix2(void) { UINT8 t=IX2; IX2 = IX0; IX0 = t; } |
| 582 | 602 | |
| 583 | | /* used by exctscc2 initialize routine */ |
| 584 | | /* A=2 , D5 01 , D4 00 -> R=5 */ |
| 585 | | /* A=5 , D4 01 -> R=2 */ |
| 586 | | /* |
| 587 | | 300: DA 02 CMP A,$02 ; A is 2 |
| 588 | | 302: CF 00 JNZ $00 |
| 589 | | 304: A7 LD RB,7 |
| 590 | | 305: 41 LD R0,A |
| 591 | | 306: 4F LD R7,A |
| 592 | | 307: D5 01 -------------- |
| 593 | | 309: D4 00 -------------- |
| 594 | | 30B: DA 05 CMP A,$05 ; A must be set 5 |
| 595 | | 30D: CF 00 JNZ $00 |
| 596 | | 30F: D4 01 -------------- |
| 597 | | 311: DA 02 CMP A,$02 ; A must be set 5 |
| 598 | | 313: CF 00 JNZ $00 |
| 599 | | 315: FD clr a ? |
| 600 | | */ |
| 601 | | static void op_d4(void) { undefined2(); } |
| 602 | | static void op_d5(void) { undefined2(); } |
| 603 | static void op_d4(void) { R.A = M_RDMEM( ((RD_REG(7) & 3) << 8) | M_RDMEM_OPCODE() ); } |
| 604 | static void op_d5(void) { M_WRMEM( ((RD_REG(7) & 3) << 8) | M_RDMEM_OPCODE(), R.A ); } |
| 605 | static void op_d6(void) { LP0 = M_RDMEM( ((RD_REG(7) & 3) << 8) | M_RDMEM_OPCODE() ); } |
| 606 | static void op_d7(void) { M_WRMEM( ((RD_REG(7) & 3) << 8) | M_RDMEM_OPCODE(), LP0 ); } |
| 607 | static void ld_a_abs(void) { R.A = M_RDMEM( ((R.mb & 3) << 8) | M_RDMEM_OPCODE() ); } |
| 608 | static void ld_abs_a(void) { M_WRMEM( ((R.mb & 3) << 8) | M_RDMEM_OPCODE(), R.A ); } |
| 603 | 609 | |
| 604 | | /* used by exctsccr/exctscc2 ROM check sum routine (382-3cf) */ |
| 605 | | /* ZF = 0 in op_f8 are patch for bypass exctsccr and exctscc2 check sum error */ |
| 606 | | static void op_f6(void) { logerror("ALPHA-8301 Unknown OP-code PC = %03x, opcode = 0xf6: alu ?,a ??\n",PC-1); } |
| 607 | | static void op_f8(void) { ZF = 1; logerror("ALPHA-8301 Unknown OP-code PC = %03x, opcode = 0xf8: alu ?,a ??\n",PC-1); } |
| 608 | | static void op_f9(void) { logerror("ALPHA-8301 Unknown OP-code PC = %03x, opcode = 0xf9: alu a,? ??\n",PC-1); } |
| 610 | static void op_dd(void) { regRAM[(M_RDMEM_OPCODE()>>1)&0x3f] = R.A; } |
| 611 | static void op_ldir(void) { M_WRMEM(BIX2+0, regRAM[(R.B>>1)&0x3f]); IX2++; R.B+=2; LP0--; if (LP0 != 0) PCL--; } |
| 612 | static void op_f6(void) { regRAM[(R.B>>1)&0x3f] = R.A; } |
| 613 | static void op_f8(void) { M_SUB( regRAM[(R.B>>1)&0x3f] ); need_verify("SUB/CMP A,(RXB)"); } |
| 614 | static void op_f9(void) { M_XOR( regRAM[(R.B>>1)&0x3f] ); } |
| 609 | 615 | |
| 610 | | static void add_a_cf(void) { R.A += CF; CF = 0; ZF = (R.A==0); } /* OK */ |
| 611 | | static void tst_a(void) { ZF = (R.A==0); } /* maybe OK */ |
| 612 | | static void clr_a(void) { R.A = 0; ZF = (R.A==0); } /* maybe OK */ |
| 613 | | static void cmp_a_n(void) { UINT8 i=M_RDMEM_OPCODE(); ZF = (R.A==i); CF = (R.A<i); } |
| 614 | | static void call(void) { UINT8 i=M_RDMEM_OPCODE(); R.retptr.w.l = PC; M_JMP(i); } /* OK , but stack is unknown */ |
| 615 | | static void ld_a_ix0_a(void) { R.A = M_RDMEM(BIX0+R.A); } /* maybe OK */ |
| 616 | | static void ret(void) { R.mb = R.retptr.b.h; M_JMP( R.retptr.b.l ); } /* OK , but stack is unknown */ |
| 616 | static void add_a_cf(void) { R.A += CF; CF = 0; ZF = (R.A==0); } |
| 617 | static void tst_a(void) { ZF = (R.A==0); } |
| 618 | static void clr_a(void) { R.A = 0; ZF = (R.A==0); } |
| 619 | static void cmp_a_n(void) { UINT8 i=M_RDMEM_OPCODE(); ZF = (R.A==i); CF = (R.A>=i); } |
| 620 | static void xor_a_n(void) { M_XOR( M_RDMEM_OPCODE() ); } |
| 621 | static void call(void) { UINT8 i=M_RDMEM_OPCODE(); R.retptr.w.l = PC; M_JMP(i); }; /* OK , but stack is unknown */ |
| 622 | static void ld_a_ix0_a(void) { R.A = M_RDMEM(BIX0+R.A); } |
| 623 | static void ret(void) { R.mb = R.retptr.b.h; M_JMP( R.retptr.b.l ); }; /* OK , but stack is unknown */ |
| 617 | 624 | |
| 618 | 625 | static const s_opcode opcode_8301[256]= |
| 619 | 626 | { |
| 620 | | {C1, nop },{C1,rrca },{C1, rlca },{C1,inc_b },{C1, dec_b },{C1, inc_a },{C1, dec_a },{C1, cpl }, |
| 627 | {C1, nop },{C1,rora },{C1, rola },{C1,inc_b },{C1,dec_b },{C1, inc_a },{C1, dec_a },{C1, cpl }, |
| 621 | 628 | {C2,ld_a_ix0_0 },{C2,ld_a_ix0_1},{C2, ld_a_ix0_2},{C2,ld_a_ix0_3},{C2,ld_a_ix0_4},{C2,ld_a_ix0_5},{C2,ld_a_ix0_6},{C2,ld_a_ix0_7}, |
| 622 | 629 | {C2,ld_a_ix1_0 },{C2,ld_a_ix1_1},{C2, ld_a_ix1_2},{C2,ld_a_ix1_3},{C2,ld_a_ix1_4},{C2,ld_a_ix1_5},{C2,ld_a_ix1_6},{C2,ld_a_ix1_7}, |
| 623 | 630 | {C2,ld_ix2_0_a },{C2,ld_ix2_1_a},{C2, ld_ix2_2_a},{C2,ld_ix2_3_a},{C2,ld_ix2_4_a},{C2,ld_ix2_5_a},{C2,ld_ix2_6_a},{C2,ld_ix2_7_a}, |
| 624 | 631 | /* 20 : 8301 */ |
| 625 | 632 | {C2,ld_ix0_0_b },{C2,ld_ix0_1_b},{C2, ld_ix0_2_b},{C2,ld_ix0_3_b},{C2,ld_ix0_4_b},{C2,ld_ix0_5_b},{C2,ld_ix0_6_b},{C2,ld_ix0_7_b}, |
| 626 | | {C2,ld_ix1_0_b },{C2,ld_ix1_1_b},{C2, ld_ix1_2_b},{C2,ld_ix1_3_b},{C2,ld_ix1_4_b},{C2,ld_ix1_5_b},{C2,ld_ix1_6_b},{C2,ld_ix1_7_b}, |
| 627 | | {C2,ld_b_ix2_0 },{C2,ld_b_ix2_1},{C2, ld_b_ix2_2},{C2,ld_b_ix2_3},{C2,ld_b_ix2_4},{C2,ld_b_ix2_5},{C2,ld_b_ix2_6},{C2,ld_b_ix2_7}, |
| 633 | {C2,undefined },{C2,undefined },{C2, undefined },{C2,undefined },{C2,undefined },{C2,undefined },{C2,undefined },{C2,undefined }, |
| 634 | {C2,undefined },{C2,undefined },{C2, undefined },{C2,undefined },{C2,undefined },{C2,undefined },{C2,undefined },{C2,undefined }, |
| 628 | 635 | {C2,bit_r0_0 },{C2,bit_r0_1 },{C2, bit_r0_2 },{C2, bit_r0_3 },{C2, bit_r0_4 },{C2, bit_r0_5 },{C2, bit_r0_6 },{C2, bit_r0_7 }, |
| 629 | 636 | /* 40 : 8301 */ |
| 630 | 637 | {C2, ld_a_r0 },{C2, ld_r0_a },{C2, ld_a_r1 },{C2, ld_r1_a },{C2, ld_a_r2 },{C2, ld_r2_a },{C2, ld_a_r3 },{C2, ld_r3_a }, |
| r2018 | r2019 | |
| 644 | 651 | /* A0 : 8301 */ |
| 645 | 652 | {C1, ld_base_0 },{C1, ld_base_1},{C1, ld_base_2},{C1, ld_base_3},{C1, ld_base_4},{C1, ld_base_5},{C1, ld_base_6},{C1, ld_base_7}, |
| 646 | 653 | {C1, undefined },{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined}, |
| 647 | | {C1, ld_bank_0 },{C1, ld_bank_1},{C1, ld_bank_2},{C1, ld_bank_3},{C2, halt },{C1, undefined},{C1, undefined},{C1, undefined}, |
| 654 | {C1, ld_bank_0 },{C1, ld_bank_1},{C1, ld_bank_2},{C1, ld_bank_3},{C2, stop },{C1, undefined},{C1, undefined},{C1, undefined}, |
| 648 | 655 | {C1, undefined },{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined}, |
| 649 | 656 | /* c0 : 8301 */ |
| 650 | | {C2, ld_ix0_n },{C2, ld_ix1_n },{C2, ld_ix2_n },{C2, ld_a_n },{C2, ld_lp0_n },{C2, ld_lp1_n },{C2, ld_lp2_n },{C2, ld_b_n }, |
| 657 | {C2, ld_ix0_n },{C2, ld_ix1_n},{C2, ld_ix2_n },{C2, ld_a_n },{C2, ld_lp0_n },{C2, ld_lp1_n },{C2, ld_lp2_n },{C2, ld_b_n }, |
| 651 | 658 | {C2, add_a_n },{C2, sub_a_n },{C2, and_a_n },{C2, or_a_n },{C2, djnz_lp0 },{C2, djnz_lp1 },{C2, djnz_lp2 },{C2, jnz }, |
| 652 | | {C2, jc },{C2, jz },{C2, jmp },{C2,undefined2},{C2, op_d4 },{C2, op_d5 },{C2,undefined2},{C2, undefined2}, |
| 653 | | {C2, undefined2 },{C2,undefined2},{C2,cmp_a_n },{C2,undefined2},{C2,undefined2},{C2,undefined2},{C2,undefined2},{C2, call}, |
| 659 | {C2, jnc },{C2, jz },{C2, jmp },{C2,undefined2},{C2, op_d4 },{C2, op_d5 },{C2, op_d6 },{C2, op_d7 }, |
| 660 | {C2, ld_a_abs },{C2, ld_abs_a},{C2,cmp_a_n },{C2,xor_a_n },{C2,undefined2},{C2, op_dd },{C2,undefined2},{C2, call}, |
| 654 | 661 | /* E0 : 8301 */ |
| 655 | | {C1, dec_ix0 },{C1, undefined},{C1, undefined},{C1, ld_a_b },{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined}, |
| 656 | | {C1, ld_ix0_a },{C1, ld_ix1_a },{C1, ld_ix2_a },{C1, ld_b_a },{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined}, |
| 657 | | {C1, undefined },{C1,ld_ix2_ix0},{C1, undefined},{C1, undefined},{C1, undefined},{C1, undefined},{C1, op_f6 },{C1, undefined}, |
| 662 | {C1, dec_ix0 },{C1, undefined},{C1, undefined},{C1, ld_a_x },{C1, undefined},{C1, ld_a_b },{C1, exg_a_lp0 },{C1, undefined}, |
| 663 | {C1, ld_ix0_a },{C1, ld_ix1_a },{C1, ld_ix2_a },{C1, ld_x_a },{C1, undefined},{C1, ld_b_a },{C1, ld_lp0_a },{C1, undefined}, |
| 664 | {C1, undefined },{C1,exg_ix0_ix2},{C1,op_ldir },{C1, undefined},{C1, undefined},{C1, undefined},{C1, op_f6 },{C1, undefined}, |
| 658 | 665 | {C1, op_f8 },{C1, op_f9 },{C1, add_a_cf },{C1, undefined},{C1, tst_a },{C1, clr_a },{C1,ld_a_ix0_a},{C1, ret } |
| 659 | 666 | }; |
| 660 | 667 | #endif |
| r2018 | r2019 | |
| 668 | 675 | state_save_register_item("ALPHA8201", index, R.PREVPC); |
| 669 | 676 | state_save_register_item("ALPHA8201", index, PC); |
| 670 | 677 | state_save_register_item("ALPHA8201", index, regPTR); |
| 671 | | state_save_register_item("ALPHA8201", index, R.zf); |
| 672 | | state_save_register_item("ALPHA8201", index, R.cf); |
| 678 | state_save_register_item("ALPHA8201", index, ZF); |
| 679 | state_save_register_item("ALPHA8201", index, CF); |
| 673 | 680 | state_save_register_item("ALPHA8201", index, R.mb); |
| 674 | 681 | #if HANDLE_HALT_LINE |
| 675 | 682 | state_save_register_item("ALPHA8201", index, R.halt); |
| r2018 | r2019 | |
| 704 | 711 | #if HANDLE_HALT_LINE |
| 705 | 712 | R.halt = 0; |
| 706 | 713 | #endif |
| 707 | | /* memset(R.RAM, 0, sizeof(R.RAM)); */ |
| 708 | 714 | } |
| 709 | 715 | |
| 710 | 716 | /**************************************************************************** |
| r2018 | r2019 | |
| 855 | 861 | case CPUINFO_INT_REGISTER + ALPHA8201_PC: PC = info->i; break; |
| 856 | 862 | case CPUINFO_INT_SP: |
| 857 | 863 | case CPUINFO_INT_REGISTER + ALPHA8201_SP: M_WRMEM(0x001,info->i); break; |
| 858 | | case CPUINFO_INT_REGISTER + ALPHA8201_RB: regPTR = (info->i & 7)<<3; break; |
| 864 | case CPUINFO_INT_REGISTER + ALPHA8201_RB: regPTR = info->i & 7; break; |
| 859 | 865 | case CPUINFO_INT_REGISTER + ALPHA8201_MB: R.mb = info->i & 0x03; break; |
| 860 | 866 | #if 0 |
| 861 | | case CPUINFO_INT_REGISTER + ALPHA8201_ZF: R.zf= info->i & 0x01; break; |
| 862 | | case CPUINFO_INT_REGISTER + ALPHA8201_CF: R.cf= info->i & 0x01; break; |
| 867 | case CPUINFO_INT_REGISTER + ALPHA8201_ZF: ZF= info->i & 0x01; break; |
| 868 | case CPUINFO_INT_REGISTER + ALPHA8201_CF: CF= info->i & 0x01; break; |
| 863 | 869 | #endif |
| 864 | 870 | case CPUINFO_INT_REGISTER + ALPHA8201_IX0: IX0 = info->i; break; |
| 865 | 871 | case CPUINFO_INT_REGISTER + ALPHA8201_IX1: IX1 = info->i; break; |
| r2018 | r2019 | |
| 869 | 875 | case CPUINFO_INT_REGISTER + ALPHA8201_LP2: LP2 = info->i; break; |
| 870 | 876 | case CPUINFO_INT_REGISTER + ALPHA8201_A: R.A = info->i; break; |
| 871 | 877 | case CPUINFO_INT_REGISTER + ALPHA8201_B: R.B = info->i; break; |
| 872 | | case CPUINFO_INT_REGISTER + ALPHA8201_R0: R0 = info->i; break; |
| 873 | | case CPUINFO_INT_REGISTER + ALPHA8201_R1: R1 = info->i; break; |
| 874 | | case CPUINFO_INT_REGISTER + ALPHA8201_R2: R2 = info->i; break; |
| 875 | | case CPUINFO_INT_REGISTER + ALPHA8201_R3: R3 = info->i; break; |
| 876 | | case CPUINFO_INT_REGISTER + ALPHA8201_R4: R4 = info->i; break; |
| 877 | | case CPUINFO_INT_REGISTER + ALPHA8201_R5: R5 = info->i; break; |
| 878 | | case CPUINFO_INT_REGISTER + ALPHA8201_R6: R6 = info->i; break; |
| 879 | | case CPUINFO_INT_REGISTER + ALPHA8201_R7: R7 = info->i; break; |
| 878 | case CPUINFO_INT_REGISTER + ALPHA8201_R0: WR_REG(0,info->i); break; |
| 879 | case CPUINFO_INT_REGISTER + ALPHA8201_R1: WR_REG(1,info->i); break; |
| 880 | case CPUINFO_INT_REGISTER + ALPHA8201_R2: WR_REG(2,info->i); break; |
| 881 | case CPUINFO_INT_REGISTER + ALPHA8201_R3: WR_REG(3,info->i); break; |
| 882 | case CPUINFO_INT_REGISTER + ALPHA8201_R4: WR_REG(4,info->i); break; |
| 883 | case CPUINFO_INT_REGISTER + ALPHA8201_R5: WR_REG(5,info->i); break; |
| 884 | case CPUINFO_INT_REGISTER + ALPHA8201_R6: WR_REG(6,info->i); break; |
| 885 | case CPUINFO_INT_REGISTER + ALPHA8201_R7: WR_REG(7,info->i); break; |
| 880 | 886 | } |
| 881 | 887 | } |
| 882 | 888 | |
| r2018 | r2019 | |
| 932 | 938 | case CPUINFO_INT_REGISTER + ALPHA8201_LP2: info->i = LP2; break; |
| 933 | 939 | case CPUINFO_INT_REGISTER + ALPHA8201_A: info->i = R.A; break; |
| 934 | 940 | case CPUINFO_INT_REGISTER + ALPHA8201_B: info->i = R.B; break; |
| 935 | | case CPUINFO_INT_REGISTER + ALPHA8201_R0: info->i = R0; break; |
| 936 | | case CPUINFO_INT_REGISTER + ALPHA8201_R1: info->i = R1; break; |
| 937 | | case CPUINFO_INT_REGISTER + ALPHA8201_R2: info->i = R2; break; |
| 938 | | case CPUINFO_INT_REGISTER + ALPHA8201_R3: info->i = R3; break; |
| 939 | | case CPUINFO_INT_REGISTER + ALPHA8201_R4: info->i = R4; break; |
| 940 | | case CPUINFO_INT_REGISTER + ALPHA8201_R5: info->i = R5; break; |
| 941 | | case CPUINFO_INT_REGISTER + ALPHA8201_R6: info->i = R6; break; |
| 942 | | case CPUINFO_INT_REGISTER + ALPHA8201_R7: info->i = R7; break; |
| 941 | case CPUINFO_INT_REGISTER + ALPHA8201_R0: info->i = RD_REG(0); break; |
| 942 | case CPUINFO_INT_REGISTER + ALPHA8201_R1: info->i = RD_REG(1); break; |
| 943 | case CPUINFO_INT_REGISTER + ALPHA8201_R2: info->i = RD_REG(2); break; |
| 944 | case CPUINFO_INT_REGISTER + ALPHA8201_R3: info->i = RD_REG(3); break; |
| 945 | case CPUINFO_INT_REGISTER + ALPHA8201_R4: info->i = RD_REG(4); break; |
| 946 | case CPUINFO_INT_REGISTER + ALPHA8201_R5: info->i = RD_REG(5); break; |
| 947 | case CPUINFO_INT_REGISTER + ALPHA8201_R6: info->i = RD_REG(6); break; |
| 948 | case CPUINFO_INT_REGISTER + ALPHA8201_R7: info->i = RD_REG(7); break; |
| 943 | 949 | |
| 944 | 950 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 945 | 951 | case CPUINFO_PTR_SET_INFO: info->setinfo = ALPHA8201_set_info; break; |
| r2018 | r2019 | |
| 962 | 968 | case CPUINFO_STR_FLAGS: sprintf(info->s, "%c%c", CF?'C':'.',ZF?'Z':'.'); break; |
| 963 | 969 | case CPUINFO_STR_REGISTER + ALPHA8201_PC: sprintf(info->s, "PC:%03X", PC); break; |
| 964 | 970 | case CPUINFO_STR_REGISTER + ALPHA8201_SP: sprintf(info->s, "SP:%02X", M_RDMEM(0x001) ); break; |
| 965 | | case CPUINFO_STR_REGISTER + ALPHA8201_RB: sprintf(info->s, "RB:%02X", regPTR>>3); break; |
| 971 | case CPUINFO_STR_REGISTER + ALPHA8201_RB: sprintf(info->s, "RB:%X", regPTR); break; |
| 966 | 972 | case CPUINFO_STR_REGISTER + ALPHA8201_MB: sprintf(info->s, "MB:%X", R.mb); break; |
| 967 | 973 | #if 0 |
| 968 | | case CPUINFO_STR_REGISTER + ALPHA8201_ZF: sprintf(info->s, "ZF:%X", R.zf); break; |
| 969 | | case CPUINFO_STR_REGISTER + ALPHA8201_CF: sprintf(info->s, "CF:%X", R.cf); break; |
| 974 | case CPUINFO_STR_REGISTER + ALPHA8201_ZF: sprintf(info->s, "ZF:%X", ZF); break; |
| 975 | case CPUINFO_STR_REGISTER + ALPHA8201_CF: sprintf(info->s, "CF:%X", CF); break; |
| 970 | 976 | #endif |
| 971 | 977 | case CPUINFO_STR_REGISTER + ALPHA8201_IX0: sprintf(info->s, "IX0:%02X", IX0); break; |
| 972 | 978 | case CPUINFO_STR_REGISTER + ALPHA8201_IX1: sprintf(info->s, "IX1:%02X", IX1); break; |
| r2018 | r2019 | |
| 976 | 982 | case CPUINFO_STR_REGISTER + ALPHA8201_LP2: sprintf(info->s, "LP2:%02X", LP2); break; |
| 977 | 983 | case CPUINFO_STR_REGISTER + ALPHA8201_A: sprintf(info->s, "A:%02X", R.A); break; |
| 978 | 984 | case CPUINFO_STR_REGISTER + ALPHA8201_B: sprintf(info->s, "B:%02X", R.B); break; |
| 979 | | case CPUINFO_STR_REGISTER + ALPHA8201_R0: sprintf(info->s, "R0:%02X", R0); break; |
| 980 | | case CPUINFO_STR_REGISTER + ALPHA8201_R1: sprintf(info->s, "R1:%02X", R1); break; |
| 981 | | case CPUINFO_STR_REGISTER + ALPHA8201_R2: sprintf(info->s, "R2:%02X", R2); break; |
| 982 | | case CPUINFO_STR_REGISTER + ALPHA8201_R3: sprintf(info->s, "R3:%02X", R3); break; |
| 983 | | case CPUINFO_STR_REGISTER + ALPHA8201_R4: sprintf(info->s, "R4:%02X", R4); break; |
| 984 | | case CPUINFO_STR_REGISTER + ALPHA8201_R5: sprintf(info->s, "R5:%02X", R5); break; |
| 985 | | case CPUINFO_STR_REGISTER + ALPHA8201_R6: sprintf(info->s, "R6:%02X", R6); break; |
| 986 | | case CPUINFO_STR_REGISTER + ALPHA8201_R7: sprintf(info->s, "R7:%02X", R7); break; |
| 985 | case CPUINFO_STR_REGISTER + ALPHA8201_R0: sprintf(info->s, "R0:%02X", RD_REG(0)); break; |
| 986 | case CPUINFO_STR_REGISTER + ALPHA8201_R1: sprintf(info->s, "R1:%02X", RD_REG(1)); break; |
| 987 | case CPUINFO_STR_REGISTER + ALPHA8201_R2: sprintf(info->s, "R2:%02X", RD_REG(2)); break; |
| 988 | case CPUINFO_STR_REGISTER + ALPHA8201_R3: sprintf(info->s, "R3:%02X", RD_REG(3)); break; |
| 989 | case CPUINFO_STR_REGISTER + ALPHA8201_R4: sprintf(info->s, "R4:%02X", RD_REG(4)); break; |
| 990 | case CPUINFO_STR_REGISTER + ALPHA8201_R5: sprintf(info->s, "R5:%02X", RD_REG(5)); break; |
| 991 | case CPUINFO_STR_REGISTER + ALPHA8201_R6: sprintf(info->s, "R6:%02X", RD_REG(6)); break; |
| 992 | case CPUINFO_STR_REGISTER + ALPHA8201_R7: sprintf(info->s, "R7:%02X", RD_REG(7)); break; |
| 987 | 993 | } |
| 988 | 994 | } |
| 989 | 995 | #if (HAS_ALPHA8201) |
src/emu/drawgfx.c
| r2018 | r2019 | |
| 121 | 121 | |
| 122 | 122 | /* packed case */ |
| 123 | 123 | if (gfx->flags & GFX_ELEMENT_PACKED) |
| 124 | | { |
| 125 | 124 | for (y = 0; y < gfx->height; y++) |
| 126 | 125 | { |
| 127 | 126 | for (x = 0; x < gfx->width/2; x++) |
| r2018 | r2019 | |
| 129 | 128 | |
| 130 | 129 | dp += gfx->line_modulo; |
| 131 | 130 | } |
| 132 | | } |
| 133 | 131 | |
| 134 | 132 | /* unpacked case */ |
| 135 | 133 | else |
| 136 | | { |
| 137 | 134 | for (y = 0; y < gfx->height; y++) |
| 138 | 135 | { |
| 139 | 136 | for (x = 0; x < gfx->width; x++) |
| r2018 | r2019 | |
| 141 | 138 | |
| 142 | 139 | dp += gfx->line_modulo; |
| 143 | 140 | } |
| 144 | | } |
| 145 | 141 | |
| 146 | 142 | /* store the final result */ |
| 147 | 143 | gfx->pen_usage[num] = usage; |
| r2018 | r2019 | |
| 172 | 168 | |
| 173 | 169 | /* packed case */ |
| 174 | 170 | if (gfx->flags & GFX_ELEMENT_PACKED) |
| 175 | | { |
| 176 | 171 | for (plane = 0; plane < planes; plane++) |
| 177 | 172 | { |
| 178 | 173 | int planebit = 1 << (planes - 1 - plane); |
| r2018 | r2019 | |
| 192 | 187 | } |
| 193 | 188 | } |
| 194 | 189 | } |
| 195 | | } |
| 196 | 190 | |
| 197 | 191 | /* unpacked case */ |
| 198 | 192 | else |
| 199 | | { |
| 200 | 193 | for (plane = 0; plane < planes; plane++) |
| 201 | 194 | { |
| 202 | 195 | int planebit = 1 << (planes - 1 - plane); |
| r2018 | r2019 | |
| 212 | 205 | dp[x] |= planebit; |
| 213 | 206 | } |
| 214 | 207 | } |
| 215 | | } |
| 216 | 208 | |
| 217 | 209 | /* compute pen usage */ |
| 218 | 210 | calc_penusage(gfx, num); |
| r2018 | r2019 | |
| 250 | 242 | memcpy(buffer, gl->extxoffs, sizeof(gfx->layout.extxoffs[0]) * gl->width); |
| 251 | 243 | gfx->layout.extxoffs = buffer; |
| 252 | 244 | } |
| 245 | |
| 253 | 246 | if (gl->extyoffs != NULL) |
| 254 | 247 | { |
| 255 | 248 | UINT32 *buffer = malloc_or_die(sizeof(buffer[0]) * gl->height); |
| r2018 | r2019 | |
| 323 | 316 | |
| 324 | 317 | /* otherwise, we get to manually decode */ |
| 325 | 318 | else |
| 326 | | { |
| 327 | 319 | for (c = first; c <= last; c++) |
| 328 | 320 | decodechar(gfx, c, src); |
| 329 | | } |
| 330 | 321 | } |
| 331 | 322 | |
| 332 | 323 | |
| r2018 | r2019 | |
| 358 | 349 | BLOCKMOVE PRIMITIVES |
| 359 | 350 | ***************************************************************************/ |
| 360 | 351 | |
| 361 | | #ifdef UNUSED_FUNCTION |
| 362 | | INLINE void blockmove_NtoN_transpen_noremap8( |
| 363 | | const UINT8 *srcdata,int srcwidth,int srcheight,int srcmodulo, |
| 364 | | UINT8 *dstdata,int dstmodulo, |
| 365 | | int transpen) |
| 366 | | { |
| 367 | | UINT8 *end; |
| 368 | | int trans4; |
| 369 | | UINT32 *sd4; |
| 370 | | |
| 371 | | srcmodulo -= srcwidth; |
| 372 | | dstmodulo -= srcwidth; |
| 373 | | |
| 374 | | trans4 = transpen * 0x01010101; |
| 375 | | |
| 376 | | while (srcheight) |
| 377 | | { |
| 378 | | end = dstdata + srcwidth; |
| 379 | | while (((FPTR)srcdata & 3) && dstdata < end) /* longword align */ |
| 380 | | { |
| 381 | | int col; |
| 382 | | |
| 383 | | col = *(srcdata++); |
| 384 | | if (col != transpen) *dstdata = col; |
| 385 | | dstdata++; |
| 386 | | } |
| 387 | | sd4 = (UINT32 *)srcdata; |
| 388 | | while (dstdata <= end - 4) |
| 389 | | { |
| 390 | | UINT32 col4; |
| 391 | | |
| 392 | | if ((col4 = *(sd4++)) != trans4) |
| 393 | | { |
| 394 | | UINT32 xod4; |
| 395 | | |
| 396 | | xod4 = col4 ^ trans4; |
| 397 | | if( (xod4&0x000000ff) && (xod4&0x0000ff00) && |
| 398 | | (xod4&0x00ff0000) && (xod4&0xff000000) ) |
| 399 | | { |
| 400 | | write_dword((UINT32 *)dstdata,col4); |
| 401 | | } |
| 402 | | else |
| 403 | | { |
| 404 | | if (xod4 & (0xff<<SHIFT0)) dstdata[0] = col4>>SHIFT0; |
| 405 | | if (xod4 & (0xff<<SHIFT1)) dstdata[1] = col4>>SHIFT1; |
| 406 | | if (xod4 & (0xff<<SHIFT2)) dstdata[2] = col4>>SHIFT2; |
| 407 | | if (xod4 & (0xff<<SHIFT3)) dstdata[3] = col4>>SHIFT3; |
| 408 | | } |
| 409 | | } |
| 410 | | dstdata += 4; |
| 411 | | } |
| 412 | | srcdata = (UINT8 *)sd4; |
| 413 | | while (dstdata < end) |
| 414 | | { |
| 415 | | int col; |
| 416 | | |
| 417 | | col = *(srcdata++); |
| 418 | | if (col != transpen) *dstdata = col; |
| 419 | | dstdata++; |
| 420 | | } |
| 421 | | |
| 422 | | srcdata += srcmodulo; |
| 423 | | dstdata += dstmodulo; |
| 424 | | srcheight--; |
| 425 | | } |
| 426 | | } |
| 427 | | #endif |
| 428 | | |
| 429 | | #ifdef UNUSED_FUNCTION |
| 430 | | INLINE void blockmove_NtoN_transpen_noremap_flipx8( |
| 431 | | const UINT8 *srcdata,int srcwidth,int srcheight,int srcmodulo, |
| 432 | | UINT8 *dstdata,int dstmodulo, |
| 433 | | int transpen) |
| 434 | | { |
| 435 | | UINT8 *end; |
| 436 | | int trans4; |
| 437 | | UINT32 *sd4; |
| 438 | | |
| 439 | | srcmodulo += srcwidth; |
| 440 | | dstmodulo -= srcwidth; |
| 441 | | srcdata -= 3; |
| 442 | | |
| 443 | | trans4 = transpen * 0x01010101; |
| 444 | | |
| 445 | | while (srcheight) |
| 446 | | { |
| 447 | | end = dstdata + srcwidth; |
| 448 | | while (((FPTR)srcdata & 3) && dstdata < end) /* longword align */ |
| 449 | | { |
| 450 | | int col; |
| 451 | | |
| 452 | | col = srcdata[3]; |
| 453 | | srcdata--; |
| 454 | | if (col != transpen) *dstdata = col; |
| 455 | | dstdata++; |
| 456 | | } |
| 457 | | sd4 = (UINT32 *)srcdata; |
| 458 | | while (dstdata <= end - 4) |
| 459 | | { |
| 460 | | UINT32 col4; |
| 461 | | |
| 462 | | if ((col4 = *(sd4--)) != trans4) |
| 463 | | { |
| 464 | | UINT32 xod4; |
| 465 | | |
| 466 | | xod4 = col4 ^ trans4; |
| 467 | | if (xod4 & (0xff<<SHIFT0)) dstdata[3] = (col4>>SHIFT0); |
| 468 | | if (xod4 & (0xff<<SHIFT1)) dstdata[2] = (col4>>SHIFT1); |
| 469 | | if (xod4 & (0xff<<SHIFT2)) dstdata[1] = (col4>>SHIFT2); |
| 470 | | if (xod4 & (0xff<<SHIFT3)) dstdata[0] = (col4>>SHIFT3); |
| 471 | | } |
| 472 | | dstdata += 4; |
| 473 | | } |
| 474 | | srcdata = (UINT8 *)sd4; |
| 475 | | while (dstdata < end) |
| 476 | | { |
| 477 | | int col; |
| 478 | | |
| 479 | | col = srcdata[3]; |
| 480 | | srcdata--; |
| 481 | | if (col != transpen) *dstdata = col; |
| 482 | | dstdata++; |
| 483 | | } |
| 484 | | |
| 485 | | srcdata += srcmodulo; |
| 486 | | dstdata += dstmodulo; |
| 487 | | srcheight--; |
| 488 | | } |
| 489 | | } |
| 490 | | #endif |
| 491 | | |
| 492 | 352 | INLINE void blockmove_NtoN_transpen_noremap16( |
| 493 | 353 | const UINT16 *srcdata,int srcwidth,int srcheight,int srcmodulo, |
| 494 | 354 | UINT16 *dstdata,int dstmodulo, |
| r2018 | r2019 | |
| 632 | 492 | DATA_TYPE *dstdata,int dstwidth,int dstheight,int dstmodulo |
| 633 | 493 | |
| 634 | 494 | #define RAW 1 |
| 635 | | #define COLOR_ARG unsigned int colorbase,UINT8 *pridata,UINT32 pmask |
| 495 | #define COLOR_ARG int color,UINT8 *pridata,UINT32 pmask |
| 636 | 496 | #define INCREMENT_DST(n) {dstdata+=(n);pridata += (n);} |
| 637 | | #define LOOKUP(n) (colorbase + (n)) |
| 497 | #define LOOKUP(n) (color + (n)) |
| 638 | 498 | #define SETPIXELCOLOR(dest,n) { if (((1 << (pridata[dest] & 0x1f)) & pmask) == 0) { if (pridata[dest] & 0x80) { dstdata[dest] = palette_shadow_table[n];} else { dstdata[dest] = (n);} } pridata[dest] = (pridata[dest] & 0x7f) | afterdrawmask; } |
| 639 | 499 | #define DECLARE_SWAP_RAW_PRI(function,args,body) static void function##_raw_pri16 args body |
| 640 | 500 | #include "drawgfx.c" |
| r2018 | r2019 | |
| 645 | 505 | #undef RAW |
| 646 | 506 | |
| 647 | 507 | #define RAW 0 |
| 648 | | #define COLOR_ARG const pen_t *paldata,UINT8 *pridata,UINT32 pmask |
| 649 | | #define LOOKUP(n) (paldata[n]) |
| 508 | #define COLOR_ARG int colorbase,const pen_t *paldata,UINT8 *pridata,UINT32 pmask |
| 509 | #define LOOKUP(n) (colorbase + (n)) |
| 650 | 510 | #define SETPIXELCOLOR(dest,n) { if (((1 << (pridata[dest] & 0x1f)) & pmask) == 0) { if (pridata[dest] & 0x80) { dstdata[dest] = palette_shadow_table[n];} else { dstdata[dest] = (n);} } pridata[dest] = (pridata[dest] & 0x7f) | afterdrawmask; } |
| 651 | 511 | #define DECLARE_SWAP_RAW_PRI(function,args,body) static void function##_pri16 args body |
| 652 | 512 | #include "drawgfx.c" |
| r2018 | r2019 | |
| 658 | 518 | #undef RAW |
| 659 | 519 | |
| 660 | 520 | #define RAW 1 |
| 661 | | #define COLOR_ARG unsigned int colorbase |
| 521 | #define COLOR_ARG int color |
| 662 | 522 | #define INCREMENT_DST(n) {dstdata+=(n);} |
| 663 | | #define LOOKUP(n) (colorbase + (n)) |
| 523 | #define LOOKUP(n) (color + (n)) |
| 664 | 524 | #define SETPIXELCOLOR(dest,n) {dstdata[dest] = (n);} |
| 665 | 525 | #define DECLARE_SWAP_RAW_PRI(function,args,body) static void function##_raw16 args body |
| 666 | 526 | #include "drawgfx.c" |
| r2018 | r2019 | |
| 671 | 531 | #undef RAW |
| 672 | 532 | |
| 673 | 533 | #define RAW 0 |
| 674 | | #define COLOR_ARG const pen_t *paldata |
| 675 | | #define LOOKUP(n) (paldata[n]) |
| 534 | #define COLOR_ARG int colorbase, const pen_t *paldata |
| 535 | #define LOOKUP(n) (colorbase + (n)) |
| 676 | 536 | #define SETPIXELCOLOR(dest,n) {dstdata[dest] = (n);} |
| 677 | 537 | #define DECLARE_SWAP_RAW_PRI(function,args,body) static void function##16 args body |
| 678 | 538 | #include "drawgfx.c" |
| r2018 | r2019 | |
| 740 | 600 | DATA_TYPE *dstdata,int dstwidth,int dstheight,int dstmodulo |
| 741 | 601 | |
| 742 | 602 | #define RAW 1 |
| 743 | | #define COLOR_ARG unsigned int colorbase,UINT8 *pridata,UINT32 pmask |
| 603 | #define COLOR_ARG int color,UINT8 *pridata,UINT32 pmask |
| 744 | 604 | #define INCREMENT_DST(n) {dstdata+=(n);pridata += (n);} |
| 745 | | #define LOOKUP(n) (colorbase + (n)) |
| 605 | #define LOOKUP(n) (color + (n)) |
| 746 | 606 | #define SETPIXELCOLOR(dest,n) { UINT8 r8=pridata[dest]; if(!(1<<(r8&0x1f)&pmask)){ if(afterdrawmask){ r8&=0x7f; r8|=0x1f; dstdata[dest]=(n); pridata[dest]=r8; } else if(!(r8&0x80)){ dstdata[dest]=SHADOW32(palette_shadow_table,n); pridata[dest]|=0x80; } } } |
| 747 | 607 | #define DECLARE_SWAP_RAW_PRI(function,args,body) static void function##_raw_pri32 args body |
| 748 | 608 | #include "drawgfx.c" |
| r2018 | r2019 | |
| 753 | 613 | #undef RAW |
| 754 | 614 | |
| 755 | 615 | #define RAW 0 |
| 756 | | #define COLOR_ARG const pen_t *paldata,UINT8 *pridata,UINT32 pmask |
| 616 | #define COLOR_ARG int colorbase, const pen_t *paldata,UINT8 *pridata,UINT32 pmask |
| 757 | 617 | #define LOOKUP(n) (paldata[n]) |
| 758 | 618 | #define SETPIXELCOLOR(dest,n) { UINT8 r8=pridata[dest]; if(!(1<<(r8&0x1f)&pmask)){ if(afterdrawmask){ r8&=0x7f; r8|=0x1f; dstdata[dest]=(n); pridata[dest]=r8; } else if(!(r8&0x80)){ dstdata[dest]=SHADOW32(palette_shadow_table,n); pridata[dest]|=0x80; } } } |
| 759 | 619 | #define DECLARE_SWAP_RAW_PRI(function,args,body) static void function##_pri32 args body |
| r2018 | r2019 | |
| 766 | 626 | #undef RAW |
| 767 | 627 | |
| 768 | 628 | #define RAW 1 |
| 769 | | #define COLOR_ARG unsigned int colorbase |
| 629 | #define COLOR_ARG int color |
| 770 | 630 | #define INCREMENT_DST(n) {dstdata+=(n);} |
| 771 | | #define LOOKUP(n) (colorbase + (n)) |
| 631 | #define LOOKUP(n) (color + (n)) |
| 772 | 632 | #define SETPIXELCOLOR(dest,n) {dstdata[dest] = (n);} |
| 773 | 633 | #define DECLARE_SWAP_RAW_PRI(function,args,body) static void function##_raw32 args body |
| 774 | 634 | #include "drawgfx.c" |
| r2018 | r2019 | |
| 779 | 639 | #undef RAW |
| 780 | 640 | |
| 781 | 641 | #define RAW 0 |
| 782 | | #define COLOR_ARG const pen_t *paldata |
| 642 | #define COLOR_ARG int colorbase, const pen_t *paldata |
| 783 | 643 | #define LOOKUP(n) (paldata[n]) |
| 784 | 644 | #define SETPIXELCOLOR(dest,n) {dstdata[dest] = (n);} |
| 785 | 645 | #define DECLARE_SWAP_RAW_PRI(function,args,body) static void function##32 args body |
| r2018 | r2019 | |
| 871 | 731 | int transmask = 0; |
| 872 | 732 | |
| 873 | 733 | if (transparency == TRANSPARENCY_PEN) |
| 874 | | { |
| 875 | 734 | transmask = 1 << (transparent_color & 0xff); |
| 876 | | } |
| 877 | 735 | else /* transparency == TRANSPARENCY_PENS */ |
| 878 | | { |
| 879 | 736 | transmask = transparent_color; |
| 880 | | } |
| 881 | 737 | |
| 882 | 738 | if ((gfx->pen_usage[code] & ~transmask) == 0) |
| 883 | 739 | /* character is totally transparent, no need to draw */ |
| r2018 | r2019 | |
| 1020 | 876 | int col,colwidth; |
| 1021 | 877 | rectangle myclip; |
| 1022 | 878 | |
| 1023 | | |
| 1024 | 879 | colwidth = srcwidth / cols; |
| 1025 | 880 | |
| 1026 | 881 | myclip.min_y = clip->min_y; |
| r2018 | r2019 | |
| 1031 | 886 | { |
| 1032 | 887 | int cons,scroll; |
| 1033 | 888 | |
| 1034 | | |
| 1035 | 889 | /* count consecutive columns scrolled by the same amount */ |
| 1036 | 890 | scroll = colscroll[col]; |
| 1037 | 891 | cons = 1; |
| 1038 | 892 | while (col + cons < cols && colscroll[col + cons] == scroll) |
| 1039 | 893 | cons++; |
| 1040 | 894 | |
| 1041 | | if (scroll < 0) scroll = srcheight - (-scroll) % srcheight; |
| 1042 | | else scroll %= srcheight; |
| 895 | if (scroll < 0) |
| 896 | scroll = srcheight - (-scroll) % srcheight; |
| 897 | else |
| 898 | scroll %= srcheight; |
| 1043 | 899 | |
| 1044 | 900 | myclip.min_x = col * colwidth; |
| 1045 | 901 | if (myclip.min_x < clip->min_x) myclip.min_x = clip->min_x; |
| r2018 | r2019 | |
| 1058 | 914 | int row,rowheight; |
| 1059 | 915 | rectangle myclip; |
| 1060 | 916 | |
| 1061 | | |
| 1062 | 917 | rowheight = srcheight / rows; |
| 1063 | 918 | |
| 1064 | 919 | myclip.min_x = clip->min_x; |
| r2018 | r2019 | |
| 1069 | 924 | { |
| 1070 | 925 | int cons,scroll; |
| 1071 | 926 | |
| 1072 | | |
| 1073 | 927 | /* count consecutive rows scrolled by the same amount */ |
| 1074 | 928 | scroll = rowscroll[row]; |
| 1075 | 929 | cons = 1; |
| 1076 | 930 | while (row + cons < rows && rowscroll[row + cons] == scroll) |
| 1077 | 931 | cons++; |
| 1078 | 932 | |
| 1079 | | if (scroll < 0) scroll = srcwidth - (-scroll) % srcwidth; |
| 1080 | | else scroll %= srcwidth; |
| 933 | if (scroll < 0) |
| 934 | scroll = srcwidth - (-scroll) % srcwidth; |
| 935 | else |
| 936 | scroll %= srcwidth; |
| 1081 | 937 | |
| 1082 | 938 | myclip.min_y = row * rowheight; |
| 1083 | 939 | if (myclip.min_y < clip->min_y) myclip.min_y = clip->min_y; |
| r2018 | r2019 | |
| 1095 | 951 | /* XY scrolling playfield */ |
| 1096 | 952 | int scrollx,scrolly,sx,sy; |
| 1097 | 953 | |
| 954 | if (rowscroll[0] < 0) |
| 955 | scrollx = srcwidth - (-rowscroll[0]) % srcwidth; |
| 956 | else |
| 957 | scrollx = rowscroll[0] % srcwidth; |
| 1098 | 958 | |
| 1099 | | if (rowscroll[0] < 0) scrollx = srcwidth - (-rowscroll[0]) % srcwidth; |
| 1100 | | else scrollx = rowscroll[0] % srcwidth; |
| 959 | if (colscroll[0] < 0) |
| 960 | scrolly = srcheight - (-colscroll[0]) % srcheight; |
| 961 | else |
| 962 | scrolly = colscroll[0] % srcheight; |
| 1101 | 963 | |
| 1102 | | if (colscroll[0] < 0) scrolly = srcheight - (-colscroll[0]) % srcheight; |
| 1103 | | else scrolly = colscroll[0] % srcheight; |
| 1104 | | |
| 1105 | 964 | for (sx = scrollx - srcwidth;sx < destwidth;sx += srcwidth) |
| 1106 | 965 | for (sy = scrolly - srcheight;sy < destheight;sy += srcheight) |
| 1107 | 966 | copybitmap_common(dest,src,0,0,sx,sy,clip,transparency,transparent_color); |
| r2018 | r2019 | |
| 1113 | 972 | int scrollx; |
| 1114 | 973 | rectangle myclip; |
| 1115 | 974 | |
| 975 | if (rowscroll[0] < 0) |
| 976 | scrollx = srcwidth - (-rowscroll[0]) % srcwidth; |
| 977 | else |
| 978 | scrollx = rowscroll[0] % srcwidth; |
| 1116 | 979 | |
| 1117 | | if (rowscroll[0] < 0) scrollx = srcwidth - (-rowscroll[0]) % srcwidth; |
| 1118 | | else scrollx = rowscroll[0] % srcwidth; |
| 1119 | | |
| 1120 | 980 | colwidth = srcwidth / cols; |
| 1121 | 981 | |
| 1122 | 982 | myclip.min_y = clip->min_y; |
| r2018 | r2019 | |
| 1127 | 987 | { |
| 1128 | 988 | int cons,scroll; |
| 1129 | 989 | |
| 1130 | | |
| 1131 | 990 | /* count consecutive columns scrolled by the same amount */ |
| 1132 | 991 | scroll = colscroll[col]; |
| 1133 | 992 | cons = 1; |
| 1134 | 993 | while (col + cons < cols && colscroll[col + cons] == scroll) |
| 1135 | 994 | cons++; |
| 1136 | 995 | |
| 1137 | | if (scroll < 0) scroll = srcheight - (-scroll) % srcheight; |
| 1138 | | else scroll %= srcheight; |
| 996 | if (scroll < 0) |
| 997 | scroll = srcheight - (-scroll) % srcheight; |
| 998 | else |
| 999 | scroll %= srcheight; |
| 1139 | 1000 | |
| 1140 | 1001 | myclip.min_x = col * colwidth + scrollx; |
| 1141 | 1002 | if (myclip.min_x < clip->min_x) myclip.min_x = clip->min_x; |
| r2018 | r2019 | |
| 1163 | 1024 | int scrolly; |
| 1164 | 1025 | rectangle myclip; |
| 1165 | 1026 | |
| 1027 | if (colscroll[0] < 0) |
| 1028 | scrolly = srcheight - (-colscroll[0]) % srcheight; |
| 1029 | else |
| 1030 | scrolly = colscroll[0] % srcheight; |
| 1166 | 1031 | |
| 1167 | | if (colscroll[0] < 0) scrolly = srcheight - (-colscroll[0]) % srcheight; |
| 1168 | | else scrolly = colscroll[0] % srcheight; |
| 1169 | | |
| 1170 | 1032 | rowheight = srcheight / rows; |
| 1171 | 1033 | |
| 1172 | 1034 | myclip.min_x = clip->min_x; |
| r2018 | r2019 | |
| 1177 | 1039 | { |
| 1178 | 1040 | int cons,scroll; |
| 1179 | 1041 | |
| 1180 | | |
| 1181 | 1042 | /* count consecutive rows scrolled by the same amount */ |
| 1182 | 1043 | scroll = rowscroll[row]; |
| 1183 | 1044 | cons = 1; |
| 1184 | 1045 | while (row + cons < rows && rowscroll[row + cons] == scroll) |
| 1185 | 1046 | cons++; |
| 1186 | 1047 | |
| 1187 | | if (scroll < 0) scroll = srcwidth - (-scroll) % srcwidth; |
| 1188 | | else scroll %= srcwidth; |
| 1048 | if (scroll < 0) |
| 1049 | scroll = srcwidth - (-scroll) % srcwidth; |
| 1050 | else |
| 1051 | scroll %= srcwidth; |
| 1189 | 1052 | |
| 1190 | 1053 | myclip.min_y = row * rowheight + scrolly; |
| 1191 | 1054 | if (myclip.min_y < clip->min_y) myclip.min_y = clip->min_y; |
| r2018 | r2019 | |
| 1294 | 1157 | 1<<17 : double to 200% |
| 1295 | 1158 | */ |
| 1296 | 1159 | |
| 1297 | | |
| 1298 | 1160 | /* force clip to bitmap boundary */ |
| 1299 | 1161 | if (clip) |
| 1300 | 1162 | { |
| r2018 | r2019 | |
| 1313 | 1175 | clip = &myclip; |
| 1314 | 1176 | } |
| 1315 | 1177 | |
| 1316 | | |
| 1317 | 1178 | /* 16-bit destination bitmap */ |
| 1318 | 1179 | if (dest_bmp->bpp == 16) |
| 1319 | 1180 | { |
| 1320 | | const pen_t *pal = &Machine->pens[gfx->color_base + gfx->color_granularity * (color % gfx->total_colors)]; |
| 1181 | int colorbase = gfx->color_base + gfx->color_granularity * (color % gfx->total_colors); |
| 1321 | 1182 | UINT8 *source_base = gfx->gfxdata + (code % gfx->total_elements) * gfx->char_modulo; |
| 1322 | 1183 | |
| 1323 | 1184 | int sprite_screen_height = (scaley*gfx->height+0x8000)>>16; |
| r2018 | r2019 | |
| 1335 | 1196 | int x_index_base; |
| 1336 | 1197 | int y_index; |
| 1337 | 1198 | |
| 1338 | | if( flipx ) |
| 1199 | if (flipx) |
| 1339 | 1200 | { |
| 1340 | 1201 | x_index_base = (sprite_screen_width-1)*dx; |
| 1341 | 1202 | dx = -dx; |
| 1342 | 1203 | } |
| 1343 | 1204 | else |
| 1344 | | { |
| 1345 | 1205 | x_index_base = 0; |
| 1346 | | } |
| 1347 | 1206 | |
| 1348 | | if( flipy ) |
| 1207 | if (flipy) |
| 1349 | 1208 | { |
| 1350 | 1209 | y_index = (sprite_screen_height-1)*dy; |
| 1351 | 1210 | dy = -dy; |
| 1352 | 1211 | } |
| 1353 | 1212 | else |
| 1354 | | { |
| 1355 | 1213 | y_index = 0; |
| 1356 | | } |
| 1357 | 1214 | |
| 1358 | | if( clip ) |
| 1215 | if (clip) |
| 1359 | 1216 | { |
| 1360 | | if( sx < clip->min_x) |
| 1217 | if (sx < clip->min_x) |
| 1361 | 1218 | { /* clip left */ |
| 1362 | 1219 | int pixels = clip->min_x-sx; |
| 1363 | 1220 | sx += pixels; |
| 1364 | 1221 | x_index_base += pixels*dx; |
| 1365 | 1222 | } |
| 1366 | | if( sy < clip->min_y ) |
| 1223 | |
| 1224 | if (sy < clip->min_y) |
| 1367 | 1225 | { /* clip top */ |
| 1368 | 1226 | int pixels = clip->min_y-sy; |
| 1369 | 1227 | sy += pixels; |
| 1370 | 1228 | y_index += pixels*dy; |
| 1371 | 1229 | } |
| 1372 | | /* NS 980211 - fixed incorrect clipping */ |
| 1373 | | if( ex > clip->max_x+1 ) |
| 1230 | |
| 1231 | if (ex > clip->max_x + 1) |
| 1374 | 1232 | { /* clip right */ |
| 1375 | 1233 | int pixels = ex-clip->max_x-1; |
| 1376 | 1234 | ex -= pixels; |
| 1377 | 1235 | } |
| 1378 | | if( ey > clip->max_y+1 ) |
| 1236 | |
| 1237 | if (ey > clip->max_y + 1) |
| 1379 | 1238 | { /* clip bottom */ |
| 1380 | 1239 | int pixels = ey-clip->max_y-1; |
| 1381 | 1240 | ey -= pixels; |
| 1382 | 1241 | } |
| 1383 | 1242 | } |
| 1384 | 1243 | |
| 1385 | | if( ex>sx ) |
| 1244 | if (ex > sx) |
| 1386 | 1245 | { /* skip if inner loop doesn't draw anything */ |
| 1387 | 1246 | int y; |
| 1388 | 1247 | |
| r2018 | r2019 | |
| 1392 | 1251 | if (pri_buffer) |
| 1393 | 1252 | { |
| 1394 | 1253 | if (gfx->flags & GFX_ELEMENT_PACKED) |
| 1395 | | { |
| 1396 | | for( y=sy; y<ey; y++ ) |
| 1254 | for (y = sy; y < ey; y++) |
| 1397 | 1255 | { |
| 1398 | 1256 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1399 | 1257 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1400 | 1258 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 1401 | 1259 | |
| 1402 | 1260 | int x, x_index = x_index_base; |
| 1403 | | for( x=sx; x<ex; x++ ) |
| 1261 | for (x = sx; x < ex; x++) |
| 1404 | 1262 | { |
| 1405 | 1263 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1406 | | dest[x] = pal[(source[x_index>>17] >> ((x_index & 0x10000) >> 14)) & 0x0f]; |
| 1264 | dest[x] = colorbase + ((source[x_index>>17] >> ((x_index & 0x10000) >> 14)) & 0x0f); |
| 1407 | 1265 | pri[x] = 31; |
| 1408 | 1266 | x_index += dx; |
| 1409 | 1267 | } |
| 1410 | 1268 | |
| 1411 | 1269 | y_index += dy; |
| 1412 | 1270 | } |
| 1413 | | } |
| 1414 | 1271 | else |
| 1415 | | { |
| 1416 | | for( y=sy; y<ey; y++ ) |
| 1272 | for (y = sy; y < ey; y++) |
| 1417 | 1273 | { |
| 1418 | 1274 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1419 | 1275 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1420 | 1276 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 1421 | 1277 | |
| 1422 | 1278 | int x, x_index = x_index_base; |
| 1423 | | for( x=sx; x<ex; x++ ) |
| 1279 | for (x = sx; x < ex; x++) |
| 1424 | 1280 | { |
| 1425 | 1281 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1426 | | dest[x] = pal[source[x_index>>16]]; |
| 1282 | dest[x] = colorbase + source[x_index>>16]; |
| 1427 | 1283 | pri[x] = 31; |
| 1428 | 1284 | x_index += dx; |
| 1429 | 1285 | } |
| 1430 | 1286 | |
| 1431 | 1287 | y_index += dy; |
| 1432 | 1288 | } |
| 1433 | | } |
| 1434 | 1289 | } |
| 1435 | 1290 | else |
| 1436 | 1291 | { |
| 1437 | 1292 | if (gfx->flags & GFX_ELEMENT_PACKED) |
| 1438 | | { |
| 1439 | | for( y=sy; y<ey; y++ ) |
| 1293 | for (y = sy; y < ey; y++) |
| 1440 | 1294 | { |
| 1441 | 1295 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1442 | 1296 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1443 | 1297 | |
| 1444 | 1298 | int x, x_index = x_index_base; |
| 1445 | | for( x=sx; x<ex; x++ ) |
| 1299 | for (x = sx; x < ex; x++) |
| 1446 | 1300 | { |
| 1447 | | dest[x] = pal[(source[x_index>>17] >> ((x_index & 0x10000) >> 14)) & 0x0f]; |
| 1301 | dest[x] = colorbase + ((source[x_index>>17] >> ((x_index & 0x10000) >> 14)) & 0x0f); |
| 1448 | 1302 | x_index += dx; |
| 1449 | 1303 | } |
| 1450 | 1304 | |
| 1451 | 1305 | y_index += dy; |
| 1452 | 1306 | } |
| 1453 | | } |
| 1454 | 1307 | else |
| 1455 | | { |
| 1456 | | for( y=sy; y<ey; y++ ) |
| 1308 | for (y = sy; y < ey; y++) |
| 1457 | 1309 | { |
| 1458 | 1310 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1459 | 1311 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1460 | 1312 | |
| 1461 | 1313 | int x, x_index = x_index_base; |
| 1462 | | for( x=sx; x<ex; x++ ) |
| 1314 | for (x = sx; x < ex; x++) |
| 1463 | 1315 | { |
| 1464 | | dest[x] = pal[source[x_index>>16]]; |
| 1316 | dest[x] = colorbase + source[x_index>>16]; |
| 1465 | 1317 | x_index += dx; |
| 1466 | 1318 | } |
| 1467 | 1319 | |
| 1468 | 1320 | y_index += dy; |
| 1469 | 1321 | } |
| 1470 | | } |
| 1471 | 1322 | } |
| 1472 | 1323 | } |
| 1473 | 1324 | |
| r2018 | r2019 | |
| 1477 | 1328 | if (pri_buffer) |
| 1478 | 1329 | { |
| 1479 | 1330 | if (gfx->flags & GFX_ELEMENT_PACKED) |
| 1480 | | { |
| 1481 | | for( y=sy; y<ey; y++ ) |
| 1331 | for(y = sy; y < ey; y++) |
| 1482 | 1332 | { |
| 1483 | 1333 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1484 | 1334 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1485 | 1335 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 1486 | 1336 | |
| 1487 | 1337 | int x, x_index = x_index_base; |
| 1488 | | for( x=sx; x<ex; x++ ) |
| 1338 | for (x = sx; x < ex; x++) |
| 1489 | 1339 | { |
| 1490 | 1340 | int c = (source[x_index>>17] >> ((x_index & 0x10000) >> 14)) & 0x0f; |
| 1491 | | if( c != transparent_color ) |
| 1341 | if (c != transparent_color) |
| 1492 | 1342 | { |
| 1493 | 1343 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1494 | | dest[x] = pal[c]; |
| 1344 | dest[x] = colorbase + c; |
| 1495 | 1345 | pri[x] = 31; |
| 1496 | 1346 | } |
| 1497 | 1347 | x_index += dx; |
| r2018 | r2019 | |
| 1499 | 1349 | |
| 1500 | 1350 | y_index += dy; |
| 1501 | 1351 | } |
| 1502 | | } |
| 1503 | 1352 | else |
| 1504 | | { |
| 1505 | | for( y=sy; y<ey; y++ ) |
| 1353 | for(y = sy; y < ey; y++) |
| 1506 | 1354 | { |
| 1507 | 1355 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1508 | 1356 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1509 | 1357 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 1510 | 1358 | |
| 1511 | 1359 | int x, x_index = x_index_base; |
| 1512 | | for( x=sx; x<ex; x++ ) |
| 1360 | for (x = sx; x < ex; x++) |
| 1513 | 1361 | { |
| 1514 | 1362 | int c = source[x_index>>16]; |
| 1515 | | if( c != transparent_color ) |
| 1363 | if (c != transparent_color) |
| 1516 | 1364 | { |
| 1517 | 1365 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1518 | | dest[x] = pal[c]; |
| 1366 | dest[x] = colorbase + c; |
| 1519 | 1367 | pri[x] = 31; |
| 1520 | 1368 | } |
| 1521 | 1369 | x_index += dx; |
| r2018 | r2019 | |
| 1523 | 1371 | |
| 1524 | 1372 | y_index += dy; |
| 1525 | 1373 | } |
| 1526 | | } |
| 1527 | 1374 | } |
| 1528 | 1375 | else |
| 1529 | 1376 | { |
| 1530 | 1377 | if (gfx->flags & GFX_ELEMENT_PACKED) |
| 1531 | | { |
| 1532 | | for( y=sy; y<ey; y++ ) |
| 1378 | for (y = sy; y < ey; y++) |
| 1533 | 1379 | { |
| 1534 | 1380 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1535 | 1381 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1536 | 1382 | |
| 1537 | 1383 | int x, x_index = x_index_base; |
| 1538 | | for( x=sx; x<ex; x++ ) |
| 1384 | for (x = sx; x < ex; x++) |
| 1539 | 1385 | { |
| 1540 | 1386 | int c = (source[x_index>>17] >> ((x_index & 0x10000) >> 14)) & 0x0f; |
| 1541 | | if( c != transparent_color ) dest[x] = pal[c]; |
| 1387 | if (c != transparent_color) dest[x] = colorbase + c; |
| 1542 | 1388 | x_index += dx; |
| 1543 | 1389 | } |
| 1544 | 1390 | |
| 1545 | 1391 | y_index += dy; |
| 1546 | 1392 | } |
| 1547 | | } |
| 1548 | 1393 | else |
| 1549 | | { |
| 1550 | | for( y=sy; y<ey; y++ ) |
| 1394 | for (y = sy; y < ey; y++) |
| 1551 | 1395 | { |
| 1552 | 1396 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1553 | 1397 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1554 | 1398 | |
| 1555 | 1399 | int x, x_index = x_index_base; |
| 1556 | | for( x=sx; x<ex; x++ ) |
| 1400 | for (x = sx; x < ex; x++) |
| 1557 | 1401 | { |
| 1558 | 1402 | int c = source[x_index>>16]; |
| 1559 | | if( c != transparent_color ) dest[x] = pal[c]; |
| 1403 | if (c != transparent_color) dest[x] = colorbase + c; |
| 1560 | 1404 | x_index += dx; |
| 1561 | 1405 | } |
| 1562 | 1406 | |
| 1563 | 1407 | y_index += dy; |
| 1564 | 1408 | } |
| 1565 | | } |
| 1566 | 1409 | } |
| 1567 | 1410 | } |
| 1568 | 1411 | |
| r2018 | r2019 | |
| 1570 | 1413 | if (transparency == TRANSPARENCY_PEN_RAW) |
| 1571 | 1414 | { |
| 1572 | 1415 | if (pri_buffer) |
| 1573 | | { |
| 1574 | | for( y=sy; y<ey; y++ ) |
| 1416 | for (y = sy; y < ey; y++) |
| 1575 | 1417 | { |
| 1576 | 1418 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1577 | 1419 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1578 | 1420 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 1579 | 1421 | |
| 1580 | 1422 | int x, x_index = x_index_base; |
| 1581 | | for( x=sx; x<ex; x++ ) |
| 1423 | for (x = sx; x < ex; x++) |
| 1582 | 1424 | { |
| 1583 | 1425 | int c = source[x_index>>16]; |
| 1584 | | if( c != transparent_color ) |
| 1426 | if (c != transparent_color) |
| 1585 | 1427 | { |
| 1586 | 1428 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1587 | 1429 | dest[x] = color + c; |
| r2018 | r2019 | |
| 1592 | 1434 | |
| 1593 | 1435 | y_index += dy; |
| 1594 | 1436 | } |
| 1595 | | } |
| 1596 | 1437 | else |
| 1597 | | { |
| 1598 | | for( y=sy; y<ey; y++ ) |
| 1438 | for (y = sy; y < ey; y++) |
| 1599 | 1439 | { |
| 1600 | 1440 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1601 | 1441 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1602 | 1442 | |
| 1603 | 1443 | int x, x_index = x_index_base; |
| 1604 | | for( x=sx; x<ex; x++ ) |
| 1444 | for (x = sx; x < ex; x++) |
| 1605 | 1445 | { |
| 1606 | 1446 | int c = source[x_index>>16]; |
| 1607 | | if( c != transparent_color ) dest[x] = color + c; |
| 1447 | if (c != transparent_color) dest[x] = color + c; |
| 1608 | 1448 | x_index += dx; |
| 1609 | 1449 | } |
| 1610 | 1450 | |
| 1611 | 1451 | y_index += dy; |
| 1612 | 1452 | } |
| 1613 | | } |
| 1614 | 1453 | } |
| 1615 | 1454 | |
| 1616 | 1455 | /* case 2: TRANSPARENCY_PENS */ |
| 1617 | 1456 | if (transparency == TRANSPARENCY_PENS) |
| 1618 | 1457 | { |
| 1619 | 1458 | if (pri_buffer) |
| 1620 | | { |
| 1621 | | for( y=sy; y<ey; y++ ) |
| 1459 | for (y = sy; y < ey; y++) |
| 1622 | 1460 | { |
| 1623 | 1461 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1624 | 1462 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1625 | 1463 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 1626 | 1464 | |
| 1627 | 1465 | int x, x_index = x_index_base; |
| 1628 | | for( x=sx; x<ex; x++ ) |
| 1466 | for (x = sx; x < ex; x++) |
| 1629 | 1467 | { |
| 1630 | 1468 | int c = source[x_index>>16]; |
| 1631 | 1469 | if (((1 << c) & transparent_color) == 0) |
| 1632 | 1470 | { |
| 1633 | 1471 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1634 | | dest[x] = pal[c]; |
| 1472 | dest[x] = colorbase + c; |
| 1635 | 1473 | pri[x] = 31; |
| 1636 | 1474 | } |
| 1637 | 1475 | x_index += dx; |
| r2018 | r2019 | |
| 1639 | 1477 | |
| 1640 | 1478 | y_index += dy; |
| 1641 | 1479 | } |
| 1642 | | } |
| 1643 | 1480 | else |
| 1644 | | { |
| 1645 | | for( y=sy; y<ey; y++ ) |
| 1481 | for (y = sy; y < ey; y++) |
| 1646 | 1482 | { |
| 1647 | 1483 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1648 | 1484 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1649 | 1485 | |
| 1650 | 1486 | int x, x_index = x_index_base; |
| 1651 | | for( x=sx; x<ex; x++ ) |
| 1487 | for (x = sx; x < ex; x++) |
| 1652 | 1488 | { |
| 1653 | 1489 | int c = source[x_index>>16]; |
| 1654 | 1490 | if (((1 << c) & transparent_color) == 0) |
| 1655 | | dest[x] = pal[c]; |
| 1491 | dest[x] = colorbase + c; |
| 1656 | 1492 | x_index += dx; |
| 1657 | 1493 | } |
| 1658 | 1494 | |
| 1659 | 1495 | y_index += dy; |
| 1660 | 1496 | } |
| 1661 | | } |
| 1662 | 1497 | } |
| 1663 | 1498 | |
| 1664 | 1499 | /* case 3: TRANSPARENCY_PEN_TABLE */ |
| r2018 | r2019 | |
| 1669 | 1504 | { |
| 1670 | 1505 | UINT8 al = (pdrawgfx_shadow_lowpri) ? 0 : 0x80; |
| 1671 | 1506 | |
| 1672 | | for( y=sy; y<ey; y++ ) |
| 1507 | for (y = sy; y < ey; y++) |
| 1673 | 1508 | { |
| 1674 | 1509 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1675 | 1510 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1676 | 1511 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 1677 | 1512 | |
| 1678 | 1513 | int x, x_index = x_index_base; |
| 1679 | | for( x=sx; x<ex; x++ ) |
| 1514 | for (x = sx; x < ex; x++) |
| 1680 | 1515 | { |
| 1681 | 1516 | int c = source[x_index>>16]; |
| 1682 | | if( c != transparent_color ) |
| 1517 | if (c != transparent_color) |
| 1683 | 1518 | { |
| 1684 | 1519 | UINT8 ah; |
| 1685 | 1520 | |
| r2018 | r2019 | |
| 1690 | 1525 | if (((1 << (ah & 0x1f)) & pri_mask) == 0) |
| 1691 | 1526 | { |
| 1692 | 1527 | if (ah & 0x80) |
| 1693 | | dest[x] = palette_shadow_table[pal[c]]; |
| 1528 | dest[x] = palette_shadow_table[colorbase + c]; |
| 1694 | 1529 | else |
| 1695 | | dest[x] = pal[c]; |
| 1530 | dest[x] = colorbase + c; |
| 1696 | 1531 | } |
| 1697 | 1532 | pri[x] = (ah & 0x7f) | 31; |
| 1698 | 1533 | break; |
| r2018 | r2019 | |
| 1711 | 1546 | } |
| 1712 | 1547 | else |
| 1713 | 1548 | { |
| 1714 | | for( y=sy; y<ey; y++ ) |
| 1549 | for (y = sy; y < ey; y++) |
| 1715 | 1550 | { |
| 1716 | 1551 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1717 | 1552 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1718 | 1553 | |
| 1719 | 1554 | int x, x_index = x_index_base; |
| 1720 | | for( x=sx; x<ex; x++ ) |
| 1555 | for (x = sx; x < ex; x++) |
| 1721 | 1556 | { |
| 1722 | 1557 | int c = source[x_index>>16]; |
| 1723 | | if( c != transparent_color ) |
| 1558 | if (c != transparent_color) |
| 1724 | 1559 | { |
| 1725 | 1560 | switch(gfx_drawmode_table[c]) |
| 1726 | 1561 | { |
| 1727 | 1562 | case DRAWMODE_SOURCE: |
| 1728 | | dest[x] = pal[c]; |
| 1563 | dest[x] = colorbase + c; |
| 1729 | 1564 | break; |
| 1730 | 1565 | case DRAWMODE_SHADOW: |
| 1731 | 1566 | dest[x] = palette_shadow_table[dest[x]]; |
| r2018 | r2019 | |
| 1744 | 1579 | if (transparency == TRANSPARENCY_ALPHA) |
| 1745 | 1580 | { |
| 1746 | 1581 | if (pri_buffer) |
| 1747 | | { |
| 1748 | | for( y=sy; y<ey; y++ ) |
| 1582 | for (y = sy; y < ey; y++) |
| 1749 | 1583 | { |
| 1750 | 1584 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1751 | 1585 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1752 | 1586 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 1753 | 1587 | |
| 1754 | 1588 | int x, x_index = x_index_base; |
| 1755 | | for( x=sx; x<ex; x++ ) |
| 1589 | for (x = sx; x < ex; x++) |
| 1756 | 1590 | { |
| 1757 | 1591 | int c = source[x_index>>16]; |
| 1758 | | if( c != transparent_color ) |
| 1592 | if (c != transparent_color) |
| 1759 | 1593 | { |
| 1760 | 1594 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1761 | | dest[x] = alpha_blend16(dest[x], pal[c]); |
| 1595 | dest[x] = alpha_blend16(dest[x], colorbase + c); |
| 1762 | 1596 | pri[x] = 31; |
| 1763 | 1597 | } |
| 1764 | 1598 | x_index += dx; |
| r2018 | r2019 | |
| 1766 | 1600 | |
| 1767 | 1601 | y_index += dy; |
| 1768 | 1602 | } |
| 1769 | | } |
| 1770 | 1603 | else |
| 1771 | | { |
| 1772 | | for( y=sy; y<ey; y++ ) |
| 1604 | for (y = sy; y < ey; y++) |
| 1773 | 1605 | { |
| 1774 | 1606 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1775 | 1607 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1776 | 1608 | |
| 1777 | 1609 | int x, x_index = x_index_base; |
| 1778 | | for( x=sx; x<ex; x++ ) |
| 1610 | for (x = sx; x < ex; x++) |
| 1779 | 1611 | { |
| 1780 | 1612 | int c = source[x_index>>16]; |
| 1781 | | if( c != transparent_color ) dest[x] = alpha_blend16(dest[x], pal[c]); |
| 1613 | if (c != transparent_color) dest[x] = alpha_blend16(dest[x], colorbase + c); |
| 1782 | 1614 | x_index += dx; |
| 1783 | 1615 | } |
| 1784 | 1616 | |
| 1785 | 1617 | y_index += dy; |
| 1786 | 1618 | } |
| 1787 | | } |
| 1788 | 1619 | } |
| 1789 | 1620 | |
| 1790 | | /* pjp 31/5/02 */ |
| 1791 | 1621 | /* case 7: TRANSPARENCY_ALPHARANGE */ |
| 1792 | 1622 | if (transparency == TRANSPARENCY_ALPHARANGE) |
| 1793 | 1623 | { |
| 1794 | 1624 | if (pri_buffer) |
| 1795 | | { |
| 1796 | | for( y=sy; y<ey; y++ ) |
| 1625 | for (y = sy; y < ey; y++) |
| 1797 | 1626 | { |
| 1798 | 1627 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1799 | 1628 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1800 | 1629 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 1801 | 1630 | |
| 1802 | 1631 | int x, x_index = x_index_base; |
| 1803 | | for( x=sx; x<ex; x++ ) |
| 1632 | for (x = sx; x < ex; x++) |
| 1804 | 1633 | { |
| 1805 | 1634 | int c = source[x_index>>16]; |
| 1806 | | if( c != transparent_color ) |
| 1635 | if (c != transparent_color) |
| 1807 | 1636 | { |
| 1808 | 1637 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1809 | 1638 | { |
| 1810 | | if( gfx_alpharange_table[c] == 0xff ) |
| 1811 | | dest[x] = pal[c]; |
| 1639 | if (gfx_alpharange_table[c] == 0xff) |
| 1640 | dest[x] = colorbase + c; |
| 1812 | 1641 | else |
| 1813 | | dest[x] = alpha_blend_r16(dest[x], pal[c], gfx_alpharange_table[c]); |
| 1642 | dest[x] = alpha_blend_r16(dest[x], colorbase + c, gfx_alpharange_table[c]); |
| 1814 | 1643 | } |
| 1815 | 1644 | pri[x] = 31; |
| 1816 | 1645 | } |
| r2018 | r2019 | |
| 1819 | 1648 | |
| 1820 | 1649 | y_index += dy; |
| 1821 | 1650 | } |
| 1822 | | } |
| 1823 | 1651 | else |
| 1824 | | { |
| 1825 | | for( y=sy; y<ey; y++ ) |
| 1652 | for (y = sy; y < ey; y++) |
| 1826 | 1653 | { |
| 1827 | 1654 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1828 | 1655 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); |
| 1829 | 1656 | |
| 1830 | 1657 | int x, x_index = x_index_base; |
| 1831 | | for( x=sx; x<ex; x++ ) |
| 1658 | for (x = sx; x < ex; x++) |
| 1832 | 1659 | { |
| 1833 | 1660 | int c = source[x_index>>16]; |
| 1834 | | if( c != transparent_color ) |
| 1661 | if (c != transparent_color) |
| 1835 | 1662 | { |
| 1836 | | if( gfx_alpharange_table[c] == 0xff ) |
| 1837 | | dest[x] = pal[c]; |
| 1663 | if (gfx_alpharange_table[c] == 0xff) |
| 1664 | dest[x] = colorbase + c; |
| 1838 | 1665 | else |
| 1839 | | dest[x] = alpha_blend_r16(dest[x], pal[c], gfx_alpharange_table[c]); |
| 1666 | dest[x] = alpha_blend_r16(dest[x], colorbase + c, gfx_alpharange_table[c]); |
| 1840 | 1667 | } |
| 1841 | 1668 | x_index += dx; |
| 1842 | 1669 | } |
| 1843 | 1670 | |
| 1844 | 1671 | y_index += dy; |
| 1845 | 1672 | } |
| 1846 | | } |
| 1847 | 1673 | } |
| 1848 | 1674 | } |
| 1849 | 1675 | } |
| r2018 | r2019 | |
| 1870 | 1696 | int x_index_base; |
| 1871 | 1697 | int y_index; |
| 1872 | 1698 | |
| 1873 | | if( flipx ) |
| 1699 | if (flipx) |
| 1874 | 1700 | { |
| 1875 | 1701 | x_index_base = (sprite_screen_width-1)*dx; |
| 1876 | 1702 | dx = -dx; |
| r2018 | r2019 | |
| 1880 | 1706 | x_index_base = 0; |
| 1881 | 1707 | } |
| 1882 | 1708 | |
| 1883 | | if( flipy ) |
| 1709 | if (flipy) |
| 1884 | 1710 | { |
| 1885 | 1711 | y_index = (sprite_screen_height-1)*dy; |
| 1886 | 1712 | dy = -dy; |
| r2018 | r2019 | |
| 1890 | 1716 | y_index = 0; |
| 1891 | 1717 | } |
| 1892 | 1718 | |
| 1893 | | if( clip ) |
| 1719 | if (clip) |
| 1894 | 1720 | { |
| 1895 | | if( sx < clip->min_x) |
| 1721 | if (sx < clip->min_x) |
| 1896 | 1722 | { /* clip left */ |
| 1897 | 1723 | int pixels = clip->min_x-sx; |
| 1898 | 1724 | sx += pixels; |
| 1899 | 1725 | x_index_base += pixels*dx; |
| 1900 | 1726 | } |
| 1901 | | if( sy < clip->min_y ) |
| 1727 | |
| 1728 | if (sy < clip->min_y) |
| 1902 | 1729 | { /* clip top */ |
| 1903 | 1730 | int pixels = clip->min_y-sy; |
| 1904 | 1731 | sy += pixels; |
| 1905 | 1732 | y_index += pixels*dy; |
| 1906 | 1733 | } |
| 1907 | | /* NS 980211 - fixed incorrect clipping */ |
| 1908 | | if( ex > clip->max_x+1 ) |
| 1734 | |
| 1735 | if (ex > clip->max_x + 1) |
| 1909 | 1736 | { /* clip right */ |
| 1910 | 1737 | int pixels = ex-clip->max_x-1; |
| 1911 | 1738 | ex -= pixels; |
| 1912 | 1739 | } |
| 1913 | | if( ey > clip->max_y+1 ) |
| 1740 | |
| 1741 | if (ey > clip->max_y + 1) |
| 1914 | 1742 | { /* clip bottom */ |
| 1915 | 1743 | int pixels = ey-clip->max_y-1; |
| 1916 | 1744 | ey -= pixels; |
| 1917 | 1745 | } |
| 1918 | 1746 | } |
| 1919 | 1747 | |
| 1920 | | if( ex>sx ) |
| 1748 | if (ex > sx) |
| 1921 | 1749 | { /* skip if inner loop doesn't draw anything */ |
| 1922 | 1750 | int y; |
| 1923 | 1751 | |
| r2018 | r2019 | |
| 1925 | 1753 | if (transparency == TRANSPARENCY_NONE) |
| 1926 | 1754 | { |
| 1927 | 1755 | if (pri_buffer) |
| 1928 | | { |
| 1929 | | for( y=sy; y<ey; y++ ) |
| 1756 | for (y = sy; y < ey; y++) |
| 1930 | 1757 | { |
| 1931 | 1758 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1932 | 1759 | UINT32 *dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 1933 | 1760 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 1934 | 1761 | |
| 1935 | 1762 | int x, x_index = x_index_base; |
| 1936 | | for( x=sx; x<ex; x++ ) |
| 1763 | for (x = sx; x < ex; x++) |
| 1937 | 1764 | { |
| 1938 | 1765 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1939 | 1766 | dest[x] = pal[source[x_index>>16]]; |
| r2018 | r2019 | |
| 1943 | 1770 | |
| 1944 | 1771 | y_index += dy; |
| 1945 | 1772 | } |
| 1946 | | } |
| 1947 | 1773 | else |
| 1948 | | { |
| 1949 | | for( y=sy; y<ey; y++ ) |
| 1774 | for (y = sy; y < ey; y++) |
| 1950 | 1775 | { |
| 1951 | 1776 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1952 | 1777 | UINT32 *dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 1953 | 1778 | |
| 1954 | 1779 | int x, x_index = x_index_base; |
| 1955 | | for( x=sx; x<ex; x++ ) |
| 1780 | for (x = sx; x < ex; x++) |
| 1956 | 1781 | { |
| 1957 | 1782 | dest[x] = pal[source[x_index>>16]]; |
| 1958 | 1783 | x_index += dx; |
| r2018 | r2019 | |
| 1960 | 1785 | |
| 1961 | 1786 | y_index += dy; |
| 1962 | 1787 | } |
| 1963 | | } |
| 1964 | 1788 | } |
| 1965 | 1789 | |
| 1966 | 1790 | /* case 1: TRANSPARENCY_PEN */ |
| 1967 | 1791 | if (transparency == TRANSPARENCY_PEN) |
| 1968 | 1792 | { |
| 1969 | 1793 | if (pri_buffer) |
| 1970 | | { |
| 1971 | | for( y=sy; y<ey; y++ ) |
| 1794 | for (y = sy; y < ey; y++) |
| 1972 | 1795 | { |
| 1973 | 1796 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1974 | 1797 | UINT32 *dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 1975 | 1798 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 1976 | 1799 | |
| 1977 | 1800 | int x, x_index = x_index_base; |
| 1978 | | for( x=sx; x<ex; x++ ) |
| 1801 | for (x = sx; x < ex; x++) |
| 1979 | 1802 | { |
| 1980 | 1803 | int c = source[x_index>>16]; |
| 1981 | | if( c != transparent_color ) |
| 1804 | if (c != transparent_color) |
| 1982 | 1805 | { |
| 1983 | 1806 | if (((1 << pri[x]) & pri_mask) == 0) |
| 1984 | 1807 | dest[x] = pal[c]; |
| r2018 | r2019 | |
| 1989 | 1812 | |
| 1990 | 1813 | y_index += dy; |
| 1991 | 1814 | } |
| 1992 | | } |
| 1993 | 1815 | else |
| 1994 | | { |
| 1995 | | for( y=sy; y<ey; y++ ) |
| 1816 | for (y = sy; y < ey; y++) |
| 1996 | 1817 | { |
| 1997 | 1818 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 1998 | 1819 | UINT32 *dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 1999 | 1820 | |
| 2000 | 1821 | int x, x_index = x_index_base; |
| 2001 | | for( x=sx; x<ex; x++ ) |
| 1822 | for (x = sx; x < ex; x++) |
| 2002 | 1823 | { |
| 2003 | 1824 | int c = source[x_index>>16]; |
| 2004 | | if( c != transparent_color ) dest[x] = pal[c]; |
| 1825 | if (c != transparent_color) dest[x] = pal[c]; |
| 2005 | 1826 | x_index += dx; |
| 2006 | 1827 | } |
| 2007 | 1828 | |
| 2008 | 1829 | y_index += dy; |
| 2009 | 1830 | } |
| 2010 | | } |
| 2011 | 1831 | } |
| 2012 | 1832 | |
| 2013 | 1833 | /* case 1b: TRANSPARENCY_PEN_RAW */ |
| 2014 | 1834 | if (transparency == TRANSPARENCY_PEN_RAW) |
| 2015 | 1835 | { |
| 2016 | 1836 | if (pri_buffer) |
| 2017 | | { |
| 2018 | | for( y=sy; y<ey; y++ ) |
| 1837 | for (y = sy; y < ey; y++) |
| 2019 | 1838 | { |
| 2020 | 1839 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 2021 | 1840 | UINT32 *dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 2022 | 1841 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 2023 | 1842 | |
| 2024 | 1843 | int x, x_index = x_index_base; |
| 2025 | | for( x=sx; x<ex; x++ ) |
| 1844 | for (x = sx; x < ex; x++) |
| 2026 | 1845 | { |
| 2027 | 1846 | int c = source[x_index>>16]; |
| 2028 | | if( c != transparent_color ) |
| 1847 | if (c != transparent_color) |
| 2029 | 1848 | { |
| 2030 | 1849 | if (((1 << pri[x]) & pri_mask) == 0) |
| 2031 | 1850 | dest[x] = color + c; |
| r2018 | r2019 | |
| 2036 | 1855 | |
| 2037 | 1856 | y_index += dy; |
| 2038 | 1857 | } |
| 2039 | | } |
| 2040 | 1858 | else |
| 2041 | | { |
| 2042 | | for( y=sy; y<ey; y++ ) |
| 1859 | for (y = sy; y < ey; y++) |
| 2043 | 1860 | { |
| 2044 | 1861 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 2045 | 1862 | UINT32 *dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 2046 | 1863 | |
| 2047 | 1864 | int x, x_index = x_index_base; |
| 2048 | | for( x=sx; x<ex; x++ ) |
| 1865 | for (x = sx; x < ex; x++) |
| 2049 | 1866 | { |
| 2050 | 1867 | int c = source[x_index>>16]; |
| 2051 | | if( c != transparent_color ) dest[x] = color + c; |
| 1868 | if (c != transparent_color) dest[x] = color + c; |
| 2052 | 1869 | x_index += dx; |
| 2053 | 1870 | } |
| 2054 | 1871 | |
| 2055 | 1872 | y_index += dy; |
| 2056 | 1873 | } |
| 2057 | | } |
| 2058 | 1874 | } |
| 2059 | 1875 | |
| 2060 | 1876 | /* case 2: TRANSPARENCY_PENS */ |
| 2061 | 1877 | if (transparency == TRANSPARENCY_PENS) |
| 2062 | 1878 | { |
| 2063 | 1879 | if (pri_buffer) |
| 2064 | | { |
| 2065 | | for( y=sy; y<ey; y++ ) |
| 1880 | for (y = sy; y < ey; y++) |
| 2066 | 1881 | { |
| 2067 | 1882 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 2068 | 1883 | UINT32 *dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 2069 | 1884 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 2070 | 1885 | |
| 2071 | 1886 | int x, x_index = x_index_base; |
| 2072 | | for( x=sx; x<ex; x++ ) |
| 1887 | for (x = sx; x < ex; x++) |
| 2073 | 1888 | { |
| 2074 | 1889 | int c = source[x_index>>16]; |
| 2075 | 1890 | if (((1 << c) & transparent_color) == 0) |
| r2018 | r2019 | |
| 2083 | 1898 | |
| 2084 | 1899 | y_index += dy; |
| 2085 | 1900 | } |
| 2086 | | } |
| 2087 | 1901 | else |
| 2088 | | { |
| 2089 | | for( y=sy; y<ey; y++ ) |
| 1902 | for (y = sy; y < ey; y++) |
| 2090 | 1903 | { |
| 2091 | 1904 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 2092 | 1905 | UINT32 *dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 2093 | 1906 | |
| 2094 | 1907 | int x, x_index = x_index_base; |
| 2095 | | for( x=sx; x<ex; x++ ) |
| 1908 | for (x = sx; x < ex; x++) |
| 2096 | 1909 | { |
| 2097 | 1910 | int c = source[x_index>>16]; |
| 2098 | 1911 | if (((1 << c) & transparent_color) == 0) |
| r2018 | r2019 | |
| 2102 | 1915 | |
| 2103 | 1916 | y_index += dy; |
| 2104 | 1917 | } |
| 2105 | | } |
| 2106 | 1918 | } |
| 2107 | 1919 | |
| 2108 | 1920 | /* case 3: TRANSPARENCY_PEN_TABLE */ |
| r2018 | r2019 | |
| 2116 | 1928 | UINT8 al, ah; |
| 2117 | 1929 | |
| 2118 | 1930 | if (pri_buffer) |
| 2119 | | { |
| 2120 | | for( y=sy; y<ey; y++ ) |
| 1931 | for (y = sy; y < ey; y++) |
| 2121 | 1932 | { |
| 2122 | 1933 | source = source_base + (y_index>>16) * gfx->line_modulo; |
| 2123 | 1934 | y_index += dy; |
| r2018 | r2019 | |
| 2125 | 1936 | pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 2126 | 1937 | x_index = x_index_base; |
| 2127 | 1938 | |
| 2128 | | for( x=sx; x<ex; x++ ) |
| 1939 | for (x = sx; x < ex; x++) |
| 2129 | 1940 | { |
| 2130 | 1941 | int ebx = x_index; |
| 2131 | 1942 | x_index += dx; |
| r2018 | r2019 | |
| 2156 | 1967 | } |
| 2157 | 1968 | } |
| 2158 | 1969 | } |
| 2159 | | } |
| 2160 | 1970 | else |
| 2161 | | { |
| 2162 | | for( y=sy; y<ey; y++ ) |
| 1971 | for (y = sy; y < ey; y++) |
| 2163 | 1972 | { |
| 2164 | 1973 | source = source_base + (y_index>>16) * gfx->line_modulo; |
| 2165 | 1974 | y_index += dy; |
| 2166 | 1975 | dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 2167 | 1976 | x_index = x_index_base; |
| 2168 | 1977 | |
| 2169 | | for( x=sx; x<ex; x++ ) |
| 1978 | for (x = sx; x < ex; x++) |
| 2170 | 1979 | { |
| 2171 | 1980 | c = source[x_index>>16]; |
| 2172 | 1981 | x_index += dx; |
| r2018 | r2019 | |
| 2178 | 1987 | dest[x] = SHADOW32(palette_shadow_table,dest[x]); |
| 2179 | 1988 | } |
| 2180 | 1989 | } |
| 2181 | | } |
| 2182 | 1990 | } |
| 2183 | 1991 | |
| 2184 | 1992 | /* case 6: TRANSPARENCY_ALPHA */ |
| 2185 | 1993 | if (transparency == TRANSPARENCY_ALPHA) |
| 2186 | 1994 | { |
| 2187 | 1995 | if (pri_buffer) |
| 2188 | | { |
| 2189 | | for( y=sy; y<ey; y++ ) |
| 1996 | for (y = sy; y < ey; y++) |
| 2190 | 1997 | { |
| 2191 | 1998 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 2192 | 1999 | UINT32 *dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 2193 | 2000 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 2194 | 2001 | |
| 2195 | 2002 | int x, x_index = x_index_base; |
| 2196 | | for( x=sx; x<ex; x++ ) |
| 2003 | for (x = sx; x < ex; x++) |
| 2197 | 2004 | { |
| 2198 | 2005 | int c = source[x_index>>16]; |
| 2199 | | if( c != transparent_color ) |
| 2006 | if (c != transparent_color) |
| 2200 | 2007 | { |
| 2201 | 2008 | if (((1 << pri[x]) & pri_mask) == 0) |
| 2202 | 2009 | dest[x] = alpha_blend32(dest[x], pal[c]); |
| r2018 | r2019 | |
| 2207 | 2014 | |
| 2208 | 2015 | y_index += dy; |
| 2209 | 2016 | } |
| 2210 | | } |
| 2211 | 2017 | else |
| 2212 | | { |
| 2213 | | for( y=sy; y<ey; y++ ) |
| 2018 | for (y = sy; y < ey; y++) |
| 2214 | 2019 | { |
| 2215 | 2020 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 2216 | 2021 | UINT32 *dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 2217 | 2022 | |
| 2218 | 2023 | int x, x_index = x_index_base; |
| 2219 | | for( x=sx; x<ex; x++ ) |
| 2024 | for (x = sx; x < ex; x++) |
| 2220 | 2025 | { |
| 2221 | 2026 | int c = source[x_index>>16]; |
| 2222 | | if( c != transparent_color ) dest[x] = alpha_blend32(dest[x], pal[c]); |
| 2027 | if (c != transparent_color) dest[x] = alpha_blend32(dest[x], pal[c]); |
| 2223 | 2028 | x_index += dx; |
| 2224 | 2029 | } |
| 2225 | 2030 | |
| 2226 | 2031 | y_index += dy; |
| 2227 | 2032 | } |
| 2228 | | } |
| 2229 | 2033 | } |
| 2230 | 2034 | |
| 2231 | | /* pjp 31/5/02 */ |
| 2232 | 2035 | /* case 7: TRANSPARENCY_ALPHARANGE */ |
| 2233 | 2036 | if (transparency == TRANSPARENCY_ALPHARANGE) |
| 2234 | 2037 | { |
| 2235 | 2038 | if (pri_buffer) |
| 2236 | | { |
| 2237 | | for( y=sy; y<ey; y++ ) |
| 2039 | for (y = sy; y < ey; y++) |
| 2238 | 2040 | { |
| 2239 | 2041 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 2240 | 2042 | UINT32 *dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 2241 | 2043 | UINT8 *pri = BITMAP_ADDR8(pri_buffer, y, 0); |
| 2242 | 2044 | |
| 2243 | 2045 | int x, x_index = x_index_base; |
| 2244 | | for( x=sx; x<ex; x++ ) |
| 2046 | for (x = sx; x < ex; x++) |
| 2245 | 2047 | { |
| 2246 | 2048 | int c = source[x_index>>16]; |
| 2247 | | if( c != transparent_color ) |
| 2049 | if (c != transparent_color) |
| 2248 | 2050 | { |
| 2249 | 2051 | if (((1 << pri[x]) & pri_mask) == 0) |
| 2250 | 2052 | { |
| 2251 | | if( gfx_alpharange_table[c] == 0xff ) |
| 2053 | if (gfx_alpharange_table[c] == 0xff) |
| 2252 | 2054 | dest[x] = pal[c]; |
| 2253 | 2055 | else |
| 2254 | 2056 | dest[x] = alpha_blend_r32(dest[x], pal[c], gfx_alpharange_table[c]); |
| r2018 | r2019 | |
| 2260 | 2062 | |
| 2261 | 2063 | y_index += dy; |
| 2262 | 2064 | } |
| 2263 | | } |
| 2264 | 2065 | else |
| 2265 | | { |
| 2266 | | for( y=sy; y<ey; y++ ) |
| 2066 | for (y = sy; y < ey; y++) |
| 2267 | 2067 | { |
| 2268 | 2068 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; |
| 2269 | 2069 | UINT32 *dest = BITMAP_ADDR32(dest_bmp, y, 0); |
| 2270 | 2070 | |
| 2271 | 2071 | int x, x_index = x_index_base; |
| 2272 | | for( x=sx; x<ex; x++ ) |
| 2072 | for (x = sx; x < ex; x++) |
| 2273 | 2073 | { |
| 2274 | 2074 | int c = source[x_index>>16]; |
| 2275 | | if( c != transparent_color ) |
| 2075 | if (c != transparent_color) |
| 2276 | 2076 | { |
| 2277 | | if( gfx_alpharange_table[c] == 0xff ) |
| 2077 | if (gfx_alpharange_table[c] == 0xff) |
| 2278 | 2078 | dest[x] = pal[c]; |
| 2279 | 2079 | else |
| 2280 | 2080 | dest[x] = alpha_blend_r32(dest[x], pal[c], gfx_alpharange_table[c]); |
| r2018 | r2019 | |
| 2284 | 2084 | |
| 2285 | 2085 | y_index += dy; |
| 2286 | 2086 | } |
| 2287 | | } |
| 2288 | 2087 | } |
| 2289 | 2088 | } |
| 2290 | 2089 | } |
| r2018 | r2019 | |
| 2380 | 2179 | |
| 2381 | 2180 | |
| 2382 | 2181 | #if (RAW == 0) |
| 2383 | | DECLARE_SWAP_RAW_PRI(blockmove_8toN_opaque,(COMMON_ARGS, |
| 2384 | | COLOR_ARG), |
| 2182 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_opaque,(COMMON_ARGS, COLOR_ARG), |
| 2385 | 2183 | { |
| 2386 | 2184 | pen_t *palette_shadow_table = Machine->shadow_table; |
| 2387 | 2185 | ADJUST_8 |
| r2018 | r2019 | |
| 2456 | 2254 | #endif |
| 2457 | 2255 | |
| 2458 | 2256 | #if (RAW == 0) |
| 2459 | | DECLARE_SWAP_RAW_PRI(blockmove_4toN_opaque,(COMMON_ARGS, |
| 2460 | | COLOR_ARG), |
| 2257 | DECLARE_SWAP_RAW_PRI(blockmove_4toN_opaque,(COMMON_ARGS, COLOR_ARG), |
| 2461 | 2258 | { |
| 2462 | 2259 | pen_t *palette_shadow_table = Machine->shadow_table; |
| 2463 | 2260 | ADJUST_4 |
| r2018 | r2019 | |
| 2553 | 2350 | }) |
| 2554 | 2351 | #endif |
| 2555 | 2352 | |
| 2556 | | DECLARE_SWAP_RAW_PRI(blockmove_8toN_transpen,(COMMON_ARGS, |
| 2557 | | COLOR_ARG,int transpen), |
| 2353 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_transpen,(COMMON_ARGS, COLOR_ARG, int transpen), |
| 2558 | 2354 | { |
| 2559 | 2355 | pen_t *palette_shadow_table = Machine->shadow_table; |
| 2560 | 2356 | ADJUST_8 |
| r2018 | r2019 | |
| 2665 | 2461 | } |
| 2666 | 2462 | }) |
| 2667 | 2463 | |
| 2668 | | DECLARE_SWAP_RAW_PRI(blockmove_4toN_transpen,(COMMON_ARGS, |
| 2669 | | COLOR_ARG,int transpen), |
| 2464 | DECLARE_SWAP_RAW_PRI(blockmove_4toN_transpen,(COMMON_ARGS, COLOR_ARG, int transpen), |
| 2670 | 2465 | { |
| 2671 | 2466 | pen_t *palette_shadow_table = Machine->shadow_table; |
| 2672 | 2467 | ADJUST_4 |
| r2018 | r2019 | |
| 2744 | 2539 | #if (RAW == 0) |
| 2745 | 2540 | #define PEN_IS_OPAQUE ((1<<col)&transmask) == 0 |
| 2746 | 2541 | |
| 2747 | | DECLARE_SWAP_RAW_PRI(blockmove_8toN_transmask,(COMMON_ARGS, |
| 2748 | | COLOR_ARG,int transmask), |
| 2542 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_transmask,(COMMON_ARGS, COLOR_ARG, int transmask), |
| 2749 | 2543 | { |
| 2750 | 2544 | pen_t *palette_shadow_table = Machine->shadow_table; |
| 2751 | 2545 | ADJUST_8 |
| r2018 | r2019 | |
| 2853 | 2647 | |
| 2854 | 2648 | #if (RAW == 0) |
| 2855 | 2649 | #if (DEPTH == 32) |
| 2856 | | DECLARE_SWAP_RAW_PRI(blockmove_8toN_pen_table,(COMMON_ARGS, |
| 2857 | | COLOR_ARG,int transcolor), |
| 2650 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_pen_table,(COMMON_ARGS, COLOR_ARG, int transcolor), |
| 2858 | 2651 | { |
| 2859 | 2652 | pen_t *palette_shadow_table = Machine->shadow_table; |
| 2860 | 2653 | ADJUST_8 |
| r2018 | r2019 | |
| 2931 | 2724 | } |
| 2932 | 2725 | }) |
| 2933 | 2726 | #else |
| 2934 | | DECLARE_SWAP_RAW_PRI(blockmove_8toN_pen_table,(COMMON_ARGS, |
| 2935 | | COLOR_ARG,int transcolor), |
| 2727 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_pen_table,(COMMON_ARGS, COLOR_ARG, int transcolor), |
| 2936 | 2728 | { |
| 2937 | 2729 | pen_t *palette_shadow_table = Machine->shadow_table; |
| 2938 | 2730 | int eax = (pdrawgfx_shadow_lowpri) ? 0 : 0x80; |
| r2018 | r2019 | |
| 3014 | 2806 | #endif |
| 3015 | 2807 | |
| 3016 | 2808 | #if (RAW == 0) |
| 3017 | | DECLARE_SWAP_RAW_PRI(blockmove_8toN_alpha,(COMMON_ARGS, |
| 3018 | | COLOR_ARG,int transpen), |
| 2809 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_alpha,(COMMON_ARGS, COLOR_ARG, int transpen), |
| 3019 | 2810 | { |
| 3020 | 2811 | pen_t *palette_shadow_table = Machine->shadow_table; |
| 3021 | 2812 | ADJUST_8 |
| r2018 | r2019 | |
| 3127 | 2918 | }) |
| 3128 | 2919 | |
| 3129 | 2920 | /* pjp 02/06/02 */ |
| 3130 | | DECLARE_SWAP_RAW_PRI(blockmove_8toN_alpharange,(COMMON_ARGS, |
| 3131 | | COLOR_ARG,int transpen), |
| 2921 | DECLARE_SWAP_RAW_PRI(blockmove_8toN_alpharange,(COMMON_ARGS, COLOR_ARG, int transpen), |
| 3132 | 2922 | { |
| 3133 | 2923 | pen_t *palette_shadow_table = Machine->shadow_table; |
| 3134 | 2924 | ADJUST_8 |
| r2018 | r2019 | |
| 3280 | 3070 | int dw = ex-sx+1; /* dest width */ |
| 3281 | 3071 | int dh = ey-sy+1; /* dest height */ |
| 3282 | 3072 | int dm = dest->rowpixels; /* dest modulo */ |
| 3283 | | const pen_t *paldata = &Machine->pens[gfx->color_base + gfx->color_granularity * color]; |
| 3073 | int colorbase = gfx->color_base + gfx->color_granularity * color; |
| 3074 | const pen_t *paldata = &Machine->pens[colorbase]; |
| 3284 | 3075 | UINT8 *pribuf = (pri_buffer) ? BITMAP_ADDR8(pri_buffer, sy, sx) : NULL; |
| 3285 | 3076 | |
| 3286 | 3077 | switch (transparency) |
| r2018 | r2019 | |
| 3289 | 3080 | if (gfx->flags & GFX_ELEMENT_PACKED) |
| 3290 | 3081 | { |
| 3291 | 3082 | if (pribuf) |
| 3292 | | BLOCKMOVEPRI(4toN_opaque,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,pribuf,pri_mask)); |
| 3083 | BLOCKMOVEPRI(4toN_opaque,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,pribuf,pri_mask)); |
| 3293 | 3084 | else |
| 3294 | | BLOCKMOVELU(4toN_opaque,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata)); |
| 3085 | BLOCKMOVELU(4toN_opaque,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata)); |
| 3295 | 3086 | } |
| 3296 | 3087 | else |
| 3297 | 3088 | { |
| 3298 | 3089 | if (pribuf) |
| 3299 | | BLOCKMOVEPRI(8toN_opaque,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,pribuf,pri_mask)); |
| 3090 | BLOCKMOVEPRI(8toN_opaque,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,pribuf,pri_mask)); |
| 3300 | 3091 | else |
| 3301 | | BLOCKMOVELU(8toN_opaque,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata)); |
| 3092 | BLOCKMOVELU(8toN_opaque,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata)); |
| 3302 | 3093 | } |
| 3303 | 3094 | break; |
| 3304 | 3095 | |
| r2018 | r2019 | |
| 3306 | 3097 | if (gfx->flags & GFX_ELEMENT_PACKED) |
| 3307 | 3098 | { |
| 3308 | 3099 | if (pribuf) |
| 3309 | | BLOCKMOVEPRI(4toN_transpen,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,pribuf,pri_mask,transparent_color)); |
| 3100 | BLOCKMOVEPRI(4toN_transpen,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,pribuf,pri_mask,transparent_color)); |
| 3310 | 3101 | else |
| 3311 | | BLOCKMOVELU(4toN_transpen,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,transparent_color)); |
| 3102 | BLOCKMOVELU(4toN_transpen,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,transparent_color)); |
| 3312 | 3103 | } |
| 3313 | 3104 | else |
| 3314 | 3105 | { |
| 3315 | 3106 | if (pribuf) |
| 3316 | | BLOCKMOVEPRI(8toN_transpen,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,pribuf,pri_mask,transparent_color)); |
| 3107 | BLOCKMOVEPRI(8toN_transpen,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,pribuf,pri_mask,transparent_color)); |
| 3317 | 3108 | else |
| 3318 | | BLOCKMOVELU(8toN_transpen,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,transparent_color)); |
| 3109 | BLOCKMOVELU(8toN_transpen,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,transparent_color)); |
| 3319 | 3110 | } |
| 3320 | 3111 | break; |
| 3321 | 3112 | |
| r2018 | r2019 | |
| 3338 | 3129 | |
| 3339 | 3130 | case TRANSPARENCY_PENS: |
| 3340 | 3131 | if (pribuf) |
| 3341 | | BLOCKMOVEPRI(8toN_transmask,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,pribuf,pri_mask,transparent_color)); |
| 3132 | BLOCKMOVEPRI(8toN_transmask,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,pribuf,pri_mask,transparent_color)); |
| 3342 | 3133 | else |
| 3343 | | BLOCKMOVELU(8toN_transmask,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,transparent_color)); |
| 3134 | BLOCKMOVELU(8toN_transmask,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,transparent_color)); |
| 3344 | 3135 | break; |
| 3345 | 3136 | |
| 3346 | 3137 | case TRANSPARENCY_PEN_TABLE: |
| 3347 | 3138 | if (pribuf) |
| 3348 | | BLOCKMOVEPRI(8toN_pen_table,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,pribuf,pri_mask,transparent_color)); |
| 3139 | BLOCKMOVEPRI(8toN_pen_table,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,pribuf,pri_mask,transparent_color)); |
| 3349 | 3140 | else |
| 3350 | | BLOCKMOVELU(8toN_pen_table,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,transparent_color)); |
| 3141 | BLOCKMOVELU(8toN_pen_table,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,transparent_color)); |
| 3351 | 3142 | break; |
| 3352 | 3143 | |
| 3353 | 3144 | case TRANSPARENCY_ALPHA: |
| 3354 | 3145 | if (pribuf) |
| 3355 | | BLOCKMOVEPRI(8toN_alpha,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,pribuf,pri_mask,transparent_color)); |
| 3146 | BLOCKMOVEPRI(8toN_alpha,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,pribuf,pri_mask,transparent_color)); |
| 3356 | 3147 | else |
| 3357 | | BLOCKMOVELU(8toN_alpha,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,transparent_color)); |
| 3148 | BLOCKMOVELU(8toN_alpha,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,transparent_color)); |
| 3358 | 3149 | break; |
| 3359 | 3150 | |
| 3360 | 3151 | case TRANSPARENCY_ALPHARANGE: |
| 3361 | 3152 | if (pribuf) |
| 3362 | | BLOCKMOVEPRI(8toN_alpharange,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,pribuf,pri_mask,transparent_color)); |
| 3153 | BLOCKMOVEPRI(8toN_alpharange,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,pribuf,pri_mask,transparent_color)); |
| 3363 | 3154 | else |
| 3364 | | BLOCKMOVELU(8toN_alpharange,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,paldata,transparent_color)); |
| 3155 | BLOCKMOVELU(8toN_alpharange,(sd,sw,sh,sm,ls,ts,flipx,flipy,dd,dw,dh,dm,colorbase,paldata,transparent_color)); |
| 3365 | 3156 | break; |
| 3366 | 3157 | |
| 3367 | 3158 | default: |