src/mame/video/tx1.c
| r1463 | r1464 | |
| 1 | | /*====================================================================*/ |
| 2 | | /* TX-1/Buggy Boy (Tatsumi) Hardware */ |
| 3 | | /* Philip J Bennett 2005 */ |
| 4 | | /* */ |
| 5 | | /* Video Emulation */ |
| 6 | | /*====================================================================*/ |
| 1 | /*************************************************************************** |
| 7 | 2 | |
| 3 | Tatsumi TX-1/Buggy Boy video hardware |
| 4 | |
| 5 | ****************************************************************************/ |
| 8 | 6 | #include "driver.h" |
| 7 | #include "profiler.h" |
| 8 | #include "render.h" |
| 9 | #include "cpu/i86/i86.h" |
| 10 | #include "tx1.h" |
| 9 | 11 | |
| 10 | | extern UINT16 *buggyb1_vram; |
| 11 | | extern UINT16 *buggyboy_vram; |
| 12 | | extern UINT16 *bb_objram; |
| 13 | | extern UINT16 *bb_sky; |
| 12 | #define PRINT_CRTC_DATA 1 |
| 14 | 13 | |
| 15 | | extern tilemap *buggyb1_tilemap; |
| 16 | | extern tilemap *buggyboy_tilemap; |
| 17 | | extern size_t bb_objectram_size; |
| 14 | /* |
| 15 | HD46505S-2 CRT Controller |
| 16 | */ |
| 17 | READ16_HANDLER( tx1_crtc_r ) |
| 18 | { |
| 19 | return 0xffff; |
| 20 | } |
| 18 | 21 | |
| 22 | WRITE16_HANDLER( tx1_crtc_w ) |
| 23 | { |
| 24 | #if PRINT_CRTC_DATA |
| 25 | data &= 0xff; |
| 26 | if (offset == 0) |
| 27 | { |
| 28 | switch (data) |
| 29 | { |
| 30 | case 0x00: mame_printf_debug("Horizontal Total "); break; |
| 31 | case 0x01: mame_printf_debug("Horizontal displayed "); break; |
| 32 | case 0x02: mame_printf_debug("Horizontal sync position "); break; |
| 33 | case 0x03: mame_printf_debug("Horizontal sync width "); break; |
| 34 | case 0x04: mame_printf_debug("Vertical total "); break; |
| 35 | case 0x05: mame_printf_debug("Vertical total adjust "); break; |
| 36 | case 0x06: mame_printf_debug("Vertical displayed "); break; |
| 37 | case 0x07: mame_printf_debug("Vertical sync position "); break; |
| 38 | case 0x08: mame_printf_debug("Interlace mode "); break; |
| 39 | case 0x09: mame_printf_debug("Max. scan line address "); break; |
| 40 | case 0x0a: mame_printf_debug("Cursror start "); break; |
| 41 | case 0x0b: mame_printf_debug("Cursor end "); break; |
| 42 | case 0x0c: mame_printf_debug("Start address (h) "); break; |
| 43 | case 0x0d: mame_printf_debug("Start address (l) "); break; |
| 44 | case 0x0e: mame_printf_debug("Cursor (h) "); break; |
| 45 | case 0x0f: mame_printf_debug("Cursor (l) "); break; |
| 46 | case 0x10: mame_printf_debug("Light pen (h)) "); break; |
| 47 | case 0x11: mame_printf_debug("Light pen (l) "); break; |
| 48 | } |
| 49 | } |
| 50 | else if (offset == 1) |
| 51 | { |
| 52 | mame_printf_debug("0x%.2x, (%d)\n",data, data); |
| 53 | } |
| 54 | #endif |
| 55 | } |
| 19 | 56 | |
| 20 | | extern UINT16 *tx1_vram; |
| 21 | | extern UINT16 *tx1_object_ram; |
| 22 | 57 | |
| 23 | | extern tilemap *tx1_tilemap; |
| 24 | | extern size_t tx1_objectram_size; |
| 58 | /*************************************************************************** |
| 25 | 59 | |
| 26 | | /*********/ |
| 27 | | /* TX-1 */ |
| 28 | | /********/ |
| 60 | TX-1 |
| 29 | 61 | |
| 62 | ***************************************************************************/ |
| 63 | static struct |
| 64 | { |
| 65 | UINT16 scol; /* Road colours */ |
| 66 | UINT32 slock; /* Scroll lock */ |
| 67 | UINT8 flags; /* Road flags */ |
| 68 | |
| 69 | UINT32 ba_val; /* Accumulator */ |
| 70 | UINT32 ba_inc; |
| 71 | |
| 72 | UINT16 h_val; /* Accumulator */ |
| 73 | UINT16 h_inc; |
| 74 | |
| 75 | UINT8 slin_val; /* Accumulator */ |
| 76 | UINT8 slin_inc; |
| 77 | } tx1_vregs; |
| 78 | |
| 79 | /* Offsets into the palette PROMs */ |
| 80 | #define TX1_COLORS_CHAR 0x00 |
| 81 | #define TX1_COLORS_OBJ 0x80 |
| 82 | #define TX1_COLORS_ROAD 0xC0 |
| 83 | |
| 84 | UINT16 *tx1_vram; |
| 85 | UINT16 *tx1_objram; |
| 86 | UINT16 *tx1_rcram; |
| 87 | size_t tx1_objram_size; |
| 88 | |
| 89 | static tilemap *tx1_tilemap; |
| 90 | static mame_bitmap *tx1_bitmap; |
| 91 | static render_texture *tx1_texture; |
| 92 | |
| 30 | 93 | WRITE16_HANDLER( tx1_vram_w ) |
| 31 | 94 | { |
| 32 | 95 | COMBINE_DATA(&tx1_vram[offset]); |
| 33 | | tilemap_mark_tile_dirty(tx1_tilemap,offset); |
| 96 | tilemap_mark_tile_dirty(tx1_tilemap, offset); |
| 34 | 97 | } |
| 35 | 98 | |
| 36 | 99 | static TILE_GET_INFO( get_tx1_tile_info ) |
| 37 | 100 | { |
| 38 | | int tileno = (tx1_vram[tile_index]&0x03ff) | ((tx1_vram[tile_index] & 0x8000) >> 5); |
| 101 | int tilenum, color; |
| 39 | 102 | |
| 40 | | SET_TILE_INFO(0,tileno,0,0); |
| 103 | color = (tx1_vram[tile_index] >> 10) & 0x3f; |
| 104 | tilenum = (tx1_vram[tile_index]&0x03ff) | ((tx1_vram[tile_index] & 0x8000) >> 5); |
| 105 | |
| 106 | SET_TILE_INFO(0, tilenum, color, 0); |
| 41 | 107 | } |
| 42 | 108 | |
| 109 | /*************************************************************************** |
| 110 | |
| 111 | Palette initialisation |
| 112 | |
| 113 | TODO: Add some notes |
| 114 | |
| 115 | bit 3 -- 220 ohm resistor -- RED/GREEN/BLUE |
| 116 | -- 470 ohm resistor -- RED/GREEN/BLUE |
| 117 | -- 1.0kohm resistor -- RED/GREEN/BLUE |
| 118 | bit 0 -- 2.2kohm resistor -- RED/GREEN/BLUE |
| 119 | |
| 120 | ***************************************************************************/ |
| 121 | PALETTE_INIT( tx1 ) |
| 122 | { |
| 123 | int i; |
| 124 | |
| 125 | for (i = 0; i < 256; ++i) |
| 126 | { |
| 127 | int bit0, bit1, bit2, bit3; |
| 128 | int r, g, b; |
| 129 | |
| 130 | bit0 = BIT(color_prom[i], 0); |
| 131 | bit1 = BIT(color_prom[i], 1); |
| 132 | bit2 = BIT(color_prom[i], 2); |
| 133 | bit3 = BIT(color_prom[i], 3); |
| 134 | r = 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; |
| 135 | |
| 136 | bit0 = BIT(color_prom[i + 0x100], 0); |
| 137 | bit1 = BIT(color_prom[i + 0x100], 1); |
| 138 | bit2 = BIT(color_prom[i + 0x100], 2); |
| 139 | bit3 = BIT(color_prom[i + 0x100], 3); |
| 140 | g = 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; |
| 141 | |
| 142 | bit0 = BIT(color_prom[i + 0x200], 0); |
| 143 | bit1 = BIT(color_prom[i + 0x200], 1); |
| 144 | bit2 = BIT(color_prom[i + 0x200], 2); |
| 145 | bit3 = BIT(color_prom[i + 0x200], 3); |
| 146 | b = 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; |
| 147 | |
| 148 | palette_set_color(machine, i, MAKE_RGB(r, g, b)); |
| 149 | } |
| 150 | |
| 151 | /* TODO */ |
| 152 | for (i = 0; i < 256; ++i) |
| 153 | { |
| 154 | colortable[i] = (color_prom[i + 0x900] & 0xf) + 0x00; |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | WRITE16_HANDLER( tx1_bankcs_w ) |
| 159 | { |
| 160 | // AAB2 = /BASET0 |
| 161 | // AAB3 = /BASET |
| 162 | // AAB4 = /BSET |
| 163 | // AAB5 = /HASET |
| 164 | // AAB6 = /HSET |
| 165 | |
| 166 | offset <<= 1; |
| 167 | |
| 168 | if ( offset & 0x04 ) |
| 169 | { |
| 170 | tx1_vregs.ba_inc &= ~0x0000ffff; |
| 171 | tx1_vregs.ba_inc |= data; |
| 172 | |
| 173 | if ( !(offset & 2) ) |
| 174 | tx1_vregs.ba_val &= ~0x000ffff; |
| 175 | } |
| 176 | if ( offset & 0x08 ) |
| 177 | { |
| 178 | data &= 0xff; |
| 179 | tx1_vregs.ba_inc &= ~0xffff0000; |
| 180 | tx1_vregs.ba_inc |= data << 16; |
| 181 | |
| 182 | if ( !(offset & 2) ) |
| 183 | tx1_vregs.ba_val &= ~0xffff0000; |
| 184 | } |
| 185 | if ( offset & 0x10 ) |
| 186 | { |
| 187 | /* Ignore data */ |
| 188 | if ( offset & 2 ) |
| 189 | { |
| 190 | tx1_vregs.ba_val = (tx1_vregs.ba_inc + tx1_vregs.ba_val) & 0x00ffffff; |
| 191 | } |
| 192 | } |
| 193 | if ( offset & 0x20 ) |
| 194 | { |
| 195 | tx1_vregs.h_inc = data; |
| 196 | |
| 197 | if ( !(offset & 2) ) |
| 198 | tx1_vregs.h_val = 0; |
| 199 | } |
| 200 | if ( !(offset & 0x40) ) |
| 201 | { |
| 202 | /* Ignore data? */ |
| 203 | if ( offset & 2 ) |
| 204 | tx1_vregs.h_val += tx1_vregs.h_inc; |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | WRITE16_HANDLER( tx1_slincs_w ) |
| 209 | { |
| 210 | if ( offset == 1 ) |
| 211 | tx1_vregs.slin_inc = data; |
| 212 | else |
| 213 | tx1_vregs.slin_inc = tx1_vregs.slin_val = 0; |
| 214 | } |
| 215 | |
| 216 | WRITE16_HANDLER( tx1_slock_w ) |
| 217 | { |
| 218 | tx1_vregs.slock = data & 1; |
| 219 | } |
| 220 | |
| 221 | WRITE16_HANDLER( tx1_scolst_w ) |
| 222 | { |
| 223 | tx1_vregs.scol = data & 0x0707; |
| 224 | } |
| 225 | |
| 226 | WRITE16_HANDLER( tx1_flgcs_w ) |
| 227 | { |
| 228 | tx1_vregs.flags = data & 0xff; |
| 229 | } |
| 230 | |
| 231 | |
| 232 | /* Preliminary */ |
| 233 | static void tx1_draw_objects(mame_bitmap *bitmap, const rectangle *cliprect) |
| 234 | { |
| 235 | #define FRAC 16 |
| 236 | |
| 237 | UINT32 offs; |
| 238 | |
| 239 | /* The many lookup table ROMs */ |
| 240 | const UINT8 *const ic48 = (UINT8*)memory_region(REGION_USER3); |
| 241 | const UINT8 *const ic281 = (UINT8*)memory_region(REGION_USER3) + 0x2000; |
| 242 | const UINT8 *const ic25 = (UINT8*)memory_region(REGION_PROMS) + 0x1000; |
| 243 | |
| 244 | const UINT8 *const ic106 = (UINT8*)memory_region(REGION_USER2); |
| 245 | const UINT8 *const ic73 = (UINT8*)memory_region(REGION_USER2) + 0x4000; |
| 246 | |
| 247 | const UINT8 *const ic190 = (UINT8*)memory_region(REGION_PROMS) + 0xc00; |
| 248 | const UINT8 *const ic162 = (UINT8*)memory_region(REGION_PROMS) + 0xe00; |
| 249 | |
| 250 | const UINT8 *const pixdata_rgn = (UINT8*)memory_region(REGION_GFX2); |
| 251 | |
| 252 | for (offs = 0x0; offs <= tx1_objram_size; offs += 8) |
| 253 | { |
| 254 | UINT32 x; |
| 255 | UINT32 y; |
| 256 | UINT32 gxflip; |
| 257 | |
| 258 | UINT32 x_scale; |
| 259 | UINT32 x_step; |
| 260 | UINT16 y_scale; |
| 261 | UINT16 y_step; |
| 262 | |
| 263 | UINT8 pctmp0_7; |
| 264 | UINT8 code; |
| 265 | |
| 266 | /* Check for end of object list */ |
| 267 | if ( (tx1_objram[offs] & 0xff00) == 0xff00 ) |
| 268 | break; |
| 269 | |
| 270 | /* X scale */ |
| 271 | x_scale = tx1_objram[offs + 2] & 0xff; |
| 272 | |
| 273 | /* TODO: Confirm against hardware? */ |
| 274 | if ( x_scale == 0 ) |
| 275 | continue; |
| 276 | |
| 277 | /* 16-bit y-scale accumulator */ |
| 278 | y_scale = tx1_objram[offs + 1]; |
| 279 | y_step = tx1_objram[offs + 3]; |
| 280 | |
| 281 | /* Object number */ |
| 282 | code = tx1_objram[offs] & 0xff; |
| 283 | |
| 284 | /* Attributes */ |
| 285 | pctmp0_7 = tx1_objram[offs + 2] >> 8; |
| 286 | |
| 287 | /* Global x-flip */ |
| 288 | gxflip = (pctmp0_7 & 0x80) >> 7; |
| 289 | |
| 290 | /* Add 1 to account for line buffering */ |
| 291 | y = (tx1_objram[offs] >> 8) + 1; |
| 292 | |
| 293 | for (; y <= cliprect->max_y; ++y) |
| 294 | { |
| 295 | UINT32 rom_addr2 = 0; |
| 296 | UINT8 ic106_data = 0; |
| 297 | UINT8 ic73_data; |
| 298 | |
| 299 | /* Are we drawing on this line? */ |
| 300 | |
| 301 | /* TODO: See big lampposts. */ |
| 302 | if ( y_scale & 0x8000 ) |
| 303 | break; |
| 304 | |
| 305 | { |
| 306 | UINT32 psa0_11; |
| 307 | UINT32 ic48_addr; |
| 308 | UINT32 ic48_data; |
| 309 | UINT32 rom_addr; |
| 310 | UINT32 x_acc; |
| 311 | UINT32 newtile = 1; |
| 312 | UINT32 dataend = 0; |
| 313 | UINT8 data1 = 0; |
| 314 | UINT8 data2 = 0; |
| 315 | UINT32 xflip = 0; |
| 316 | UINT32 opcd0_7 = 0; |
| 317 | UINT32 lasttile = 0; |
| 318 | |
| 319 | /* Use the object code to lookup the tile sequence data in ROM */ |
| 320 | ic48_addr = code << 4; |
| 321 | ic48_addr |= ((y_scale >> 11) & 0xf); |
| 322 | ic48_data = ic48[ic48_addr]; |
| 323 | |
| 324 | /* Reached the bottom of the object? (/PASS2E) */ |
| 325 | if ( ic48_data == 0xff ) |
| 326 | break; |
| 327 | |
| 328 | /* Combine ROM and PROM data */ |
| 329 | psa0_11 = ((ic25[code] << 8) | ic48_data) & 0xfff; |
| 330 | |
| 331 | /* psa8_11 */ |
| 332 | rom_addr = (psa0_11 & ~0xff) << 2; |
| 333 | |
| 334 | /* Prepare the x-scaling */ |
| 335 | x_step = (128 << FRAC) / x_scale; |
| 336 | x_acc = (psa0_11 & 0xff) << (FRAC + 5); |
| 337 | |
| 338 | /* TODO */ |
| 339 | //x = tx1_objram[offs + 4] & 0x7ff; |
| 340 | x = tx1_objram[offs + 4]; |
| 341 | |
| 342 | for (;;) |
| 343 | { |
| 344 | #define MASK 0x3ff |
| 345 | |
| 346 | if (newtile) |
| 347 | { |
| 348 | UINT32 low_addr = ((x_acc >> (FRAC + 3)) & MASK); |
| 349 | |
| 350 | if (gxflip) |
| 351 | { |
| 352 | UINT32 xor_mask; |
| 353 | |
| 354 | if ( BIT(psa0_11, 11) && BIT(psa0_11, 10) ) |
| 355 | xor_mask = 0xf; |
| 356 | else if ( BIT(psa0_11, 9) ) |
| 357 | xor_mask = 0x7; |
| 358 | else |
| 359 | xor_mask = 0x3; |
| 360 | |
| 361 | rom_addr2 = rom_addr + (xor_mask ^ low_addr); |
| 362 | } |
| 363 | else |
| 364 | rom_addr2 = rom_addr + low_addr; |
| 365 | |
| 366 | ic106_data = ic106[rom_addr2 & 0x3fff]; |
| 367 | |
| 368 | if ( (ic106_data & 0x40) && dataend ) |
| 369 | lasttile = 1; |
| 370 | |
| 371 | dataend |= ic106_data & 0x40; |
| 372 | } |
| 373 | |
| 374 | { |
| 375 | if ( newtile ) |
| 376 | { |
| 377 | UINT32 psbb0_12; |
| 378 | UINT32 pscb0_14; |
| 379 | UINT32 pscb11; |
| 380 | UINT8 *romptr; |
| 381 | UINT32 ic281_addr; |
| 382 | UINT32 grom_addr; |
| 383 | UINT32 lut_data; |
| 384 | |
| 385 | /* Retrieve data for an 8x8 tile */ |
| 386 | ic73_data = ic73[rom_addr2]; |
| 387 | |
| 388 | // This is the data from the LUT pair |
| 389 | lut_data = (ic106_data << 8) | ic73_data; |
| 390 | psbb0_12 = lut_data & 0x1fff; |
| 391 | |
| 392 | // 0000 1100 0011 1111 |
| 393 | pscb0_14 = (psbb0_12 & 0xc3f); |
| 394 | |
| 395 | |
| 396 | /* Bits 9_6 are from PCTMP11-8 or PSBB9-6 */ |
| 397 | |
| 398 | /* 0000 0011 1100 0000 */ |
| 399 | if ( BIT(psbb0_12, 12) ) |
| 400 | pscb0_14 |= psbb0_12 & 0x3c0; |
| 401 | else |
| 402 | pscb0_14 |= (pctmp0_7 & 0xf) << 6; |
| 403 | |
| 404 | // This is the important one! |
| 405 | if ( BIT(lut_data, 13) ) // PSBB13 |
| 406 | pscb0_14 |= BIT(psbb0_12, 10) << 12; |
| 407 | else |
| 408 | pscb0_14 |= ((pctmp0_7 & 0x70) << 8); |
| 409 | |
| 410 | |
| 411 | |
| 412 | // 1 = Bit 12 is Bit 10 duplicated. |
| 413 | // Schematics indicate otherwise... |
| 414 | #if 1 |
| 415 | pscb0_14 &= ~(1 << 12); |
| 416 | pscb0_14 |= BIT(psbb0_12, 10) << 12; |
| 417 | #endif |
| 418 | |
| 419 | pscb11 = BIT(pscb0_14, 11); |
| 420 | |
| 421 | /* TODO: Remove this - it's constant. */ |
| 422 | romptr = (UINT8*)(pixdata_rgn + pscb11 * (0x4000 * 2)); |
| 423 | |
| 424 | grom_addr = ((pscb0_14 << 3) | ((y_scale >> 8) & 7)) & 0x3fff; |
| 425 | |
| 426 | /* Get raw 8x8 2bpp pixel row data */ |
| 427 | data1 = *(grom_addr + romptr); |
| 428 | data2 = *(grom_addr + romptr + 0x4000); |
| 429 | |
| 430 | /* Determine flip state (global XOR local) */ |
| 431 | xflip = gxflip ^ !BIT(lut_data, 15); |
| 432 | |
| 433 | /* WRONG */ |
| 434 | ic281_addr = pscb0_14 & 0x3ff; // Bits 9_0 |
| 435 | ic281_addr |= ((pscb0_14 & 0x7000) >> 2); //Bits 14 13 12 |
| 436 | ic281_addr |= pscb11 << 13; // Bit 11 |
| 437 | |
| 438 | opcd0_7 = ic281[ic281_addr]; |
| 439 | } |
| 440 | |
| 441 | /* Draw a pixel? */ |
| 442 | if ( x <= cliprect->max_x ) |
| 443 | { |
| 444 | UINT8 pix; |
| 445 | UINT8 bit; |
| 446 | |
| 447 | bit = (x_acc >> FRAC) & 7; |
| 448 | |
| 449 | if ( xflip ) |
| 450 | bit ^= 7; |
| 451 | |
| 452 | pix = (((data1 >> bit) & 1) << 1) | ((data2 >> bit) & 1); |
| 453 | |
| 454 | /* Draw pixel, if not transparent */ |
| 455 | if ( !(!(opcd0_7 & 0x80) && !pix) ) |
| 456 | { |
| 457 | UINT8 color; |
| 458 | UINT32 prom_addr; |
| 459 | |
| 460 | prom_addr = ((opcd0_7 << 2) | pix) & 0x1ff; |
| 461 | |
| 462 | /* Inverted on schematic */ |
| 463 | if (x & 1) |
| 464 | color = ~ic190[prom_addr] & 0x3f; |
| 465 | else |
| 466 | color = ~ic162[prom_addr] & 0x3f; |
| 467 | |
| 468 | *BITMAP_ADDR16(bitmap, y, x) = Machine->pens[TX1_COLORS_OBJ + color]; |
| 469 | } |
| 470 | } |
| 471 | } |
| 472 | newtile = 0; |
| 473 | |
| 474 | /* Check if we've stepped into a new 8x8 tile */ |
| 475 | /* TODO */ |
| 476 | if ( (((x_acc + x_step) >> (FRAC + 3)) & MASK) != ((x_acc >> (FRAC + 3)) & MASK) ) |
| 477 | { |
| 478 | newtile = 1; |
| 479 | |
| 480 | if ( lasttile ) |
| 481 | break; |
| 482 | } |
| 483 | |
| 484 | // TODO! |
| 485 | //x = (x + 1) & 0x7ff; |
| 486 | x = (x + 1); |
| 487 | x_acc += x_step; |
| 488 | } |
| 489 | }// if (yscale) |
| 490 | y_scale += y_step; |
| 491 | } /* for (y) */ |
| 492 | }/* for (offs) */ |
| 493 | } |
| 494 | |
| 495 | |
| 43 | 496 | VIDEO_START( tx1 ) |
| 44 | 497 | { |
| 45 | | tx1_tilemap = tilemap_create(get_tx1_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN, 8, 8,128,64); |
| 46 | | tilemap_set_transparent_pen(tx1_tilemap,0xff); |
| 498 | tx1_tilemap = tilemap_create(get_tx1_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 8, 8, 128, 64); |
| 499 | tilemap_set_transparent_pen(tx1_tilemap, 0xff); |
| 500 | |
| 501 | /* Allocate a large bitmap that covers the three screens */ |
| 502 | tx1_bitmap = auto_bitmap_alloc(768, 256, BITMAP_FORMAT_INDEXED16); |
| 503 | tx1_texture = render_texture_alloc(NULL, NULL); |
| 47 | 504 | } |
| 48 | 505 | |
| 506 | VIDEO_EOF( tx1 ) |
| 507 | { |
| 508 | /* /VSYNC: Update TZ113 */ |
| 509 | tx1_vregs.slin_val += tx1_vregs.slin_inc; |
| 510 | } |
| 511 | |
| 512 | |
| 513 | /* Experimental :) */ |
| 49 | 514 | VIDEO_UPDATE( tx1 ) |
| 50 | 515 | { |
| 51 | | /* the video hardware seems to use one large tilemap, scroll it to the right position for each screen */ |
| 52 | | int xscrollamount = screen*256; |
| 53 | | tilemap_set_scrollx(tx1_tilemap,0,xscrollamount); |
| 516 | int y; |
| 54 | 517 | |
| 518 | if ( screen == 0 ) |
| 519 | { |
| 520 | rectangle rect = { 0, 768 - 1, 0, 240 - 1 }; |
| 55 | 521 | |
| 56 | | tilemap_draw(bitmap,cliprect,tx1_tilemap,0,0); |
| 522 | // tilemap_set_scrollx(tx1_tilemap, 0, scroll); |
| 523 | tilemap_draw(tx1_bitmap, &rect, tx1_tilemap, 0, 0); |
| 524 | // tx1_draw_road(tx1_bitmap, &rect); |
| 525 | tx1_draw_objects(tx1_bitmap, &rect); |
| 526 | } |
| 527 | |
| 528 | for (y = 0; y < 240; ++y) |
| 529 | memcpy(BITMAP_ADDR16(bitmap, y, 0), BITMAP_ADDR16(tx1_bitmap, y, screen * 256), sizeof(UINT16) * 256); |
| 530 | |
| 57 | 531 | return 0; |
| 58 | 532 | } |
| 59 | 533 | |
| 60 | | /*************/ |
| 61 | | /* Buggy Boy */ |
| 62 | | /*************/ |
| 63 | 534 | |
| 64 | 535 | /*************************************************************************** |
| 65 | 536 | |
| 537 | Buggy Boy |
| 538 | |
| 539 | ***************************************************************************/ |
| 540 | |
| 541 | /* Road register bits */ |
| 542 | #define BB_RDFLAG_WAVE1 7 |
| 543 | #define BB_RDFLAG_WAVE0 6 |
| 544 | #define BB_RDFLAG_TNLMD1 5 |
| 545 | #define BB_RDFLAG_TNLMD0 4 |
| 546 | #define BB_RDFLAG_TNLF 3 |
| 547 | #define BB_RDFLAG_LINF 2 |
| 548 | #define BB_RDFLAG_RVA7 1 |
| 549 | #define BB_RDFLAG_WANGL 0 |
| 550 | |
| 551 | /* Video registers */ |
| 552 | static struct |
| 553 | { |
| 554 | UINT32 ba_val; |
| 555 | UINT32 ba_inc; |
| 556 | |
| 557 | UINT32 bank_mode; |
| 558 | |
| 559 | UINT16 h_val; |
| 560 | UINT16 h_inc; |
| 561 | UINT16 h_init; |
| 562 | |
| 563 | UINT8 wa8; |
| 564 | UINT8 wa4; |
| 565 | |
| 566 | UINT8 slin; |
| 567 | UINT8 slin_inc; |
| 568 | |
| 569 | UINT16 wave_lfsr; |
| 570 | UINT16 scol; |
| 571 | UINT8 sky; |
| 572 | UINT16 gas; |
| 573 | UINT8 flags; |
| 574 | UINT8 shift; |
| 575 | } vregs; |
| 576 | |
| 577 | |
| 578 | UINT16 *buggyboy_objram; |
| 579 | UINT16 *buggyboy_rcram; |
| 580 | UINT16 *buggyboy_vram; |
| 581 | UINT16 *buggybjr_vram; |
| 582 | size_t buggyboy_objram_size; |
| 583 | size_t buggyboy_rcram_size; |
| 584 | |
| 585 | tilemap *buggybjr_tilemap; |
| 586 | tilemap *buggyboy_tilemap; |
| 587 | |
| 588 | UINT8 *chr_bmp; |
| 589 | UINT8 *obj_bmp; |
| 590 | UINT8 *rod_bmp; |
| 591 | |
| 592 | /*************************************************************************** |
| 593 | |
| 66 | 594 | Convert the color PROMs into a more useable format. |
| 67 | 595 | |
| 68 | 596 | IC39, BB12 = Blue |
| r1463 | r1464 | |
| 83 | 611 | ***************************************************************************/ |
| 84 | 612 | PALETTE_INIT( buggyboy ) |
| 85 | 613 | { |
| 86 | | int i; |
| 614 | int i; |
| 87 | 615 | |
| 88 | | for (i = 0; i < 256;i++) |
| 616 | for (i = 0; i < 256; ++i) |
| 89 | 617 | { |
| 90 | | int bit0,bit1,bit2,bit3,bit4,r,g,b; |
| 618 | int bit0, bit1, bit2, bit3, bit4; |
| 619 | int r, g, b; |
| 91 | 620 | |
| 92 | | bit0 = color_prom[i] & 1; |
| 93 | | bit1 = (color_prom[i] >> 1) & 1; |
| 94 | | bit2 = (color_prom[i] >> 2) & 1; |
| 95 | | bit3 = (color_prom[i] >> 3) & 1; |
| 96 | | bit4 = (color_prom[i+0x300] >> 2) & 1; |
| 97 | | r = 0x06 * bit4 + 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; |
| 621 | bit0 = BIT(color_prom[i], 0); |
| 622 | bit1 = BIT(color_prom[i], 1); |
| 623 | bit2 = BIT(color_prom[i], 2); |
| 624 | bit3 = BIT(color_prom[i], 3); |
| 625 | bit4 = BIT(color_prom[i + 0x300], 2); |
| 626 | r = 0x06 * bit4 + 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; |
| 98 | 627 | |
| 99 | | bit0 = color_prom[i+0x100] & 1; |
| 100 | | bit1 = (color_prom[i+0x100] >> 1) & 1; |
| 101 | | bit2 = (color_prom[i+0x100] >> 2) & 1; |
| 102 | | bit3 = (color_prom[i+0x100] >> 3) & 1; |
| 103 | | bit4 = (color_prom[i+0x300] >> 1) & 1; |
| 104 | | g = 0x06 * bit4 + 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; |
| 628 | bit0 = BIT(color_prom[i + 0x100], 0); |
| 629 | bit1 = BIT(color_prom[i + 0x100], 1); |
| 630 | bit2 = BIT(color_prom[i + 0x100], 2); |
| 631 | bit3 = BIT(color_prom[i + 0x100], 3); |
| 632 | bit4 = BIT(color_prom[i + 0x300], 1); |
| 633 | g = 0x06 * bit4 + 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; |
| 105 | 634 | |
| 106 | | bit0 = color_prom[i+0x200] & 1; |
| 107 | | bit1 = (color_prom[i+0x200] >> 1) & 1; |
| 108 | | bit2 = (color_prom[i+0x200] >> 2) & 1; |
| 109 | | bit3 = (color_prom[i+0x200] >> 3) & 1; |
| 110 | | bit4 = (color_prom[i+0x300]) & 1; |
| 111 | | b = 0x06 * bit4 + 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; |
| 635 | bit0 = BIT(color_prom[i + 0x200], 0); |
| 636 | bit1 = BIT(color_prom[i + 0x200], 1); |
| 637 | bit2 = BIT(color_prom[i + 0x200], 2); |
| 638 | bit3 = BIT(color_prom[i + 0x200], 3); |
| 639 | bit4 = BIT(color_prom[i + 0x300], 0); |
| 640 | b = 0x06 * bit4 + 0x0d * bit0 + 0x1e * bit1 + 0x41 * bit2 + 0x8a * bit3; |
| 112 | 641 | |
| 113 | | palette_set_color(machine,i,MAKE_RGB(r,g,b)); |
| 642 | palette_set_color(machine, i, MAKE_RGB(r,g,b)); |
| 114 | 643 | } |
| 115 | 644 | |
| 645 | /* Characters use colours 192-255 */ |
| 646 | for (i = 0; i < 256; ++i) |
| 647 | { |
| 648 | colortable[i] = 192 + color_prom[i + 0x400] + ((i & 0xc0) >> 2); |
| 649 | } |
| 650 | } |
| 116 | 651 | |
| 117 | | /** Set up the colour lookups **/ |
| 652 | WRITE16_HANDLER( buggyboy_vram_w ) |
| 653 | { |
| 654 | COMBINE_DATA(&buggyboy_vram[offset]); |
| 655 | tilemap_mark_tile_dirty(buggyboy_tilemap, offset); |
| 656 | } |
| 118 | 657 | |
| 119 | | /* Objects use colours 0-63 */ |
| 120 | | /* There are 2048 palette, however, this is expanded to 8192 */ |
| 658 | WRITE16_HANDLER( buggybjr_vram_w ) |
| 659 | { |
| 660 | COMBINE_DATA(&buggybjr_vram[offset]); |
| 661 | } |
| 121 | 662 | |
| 122 | | for (i = 0; i < 2048; i++) |
| 123 | | colortable[256+i] = ((0xf-color_prom[i + 0x500]) & 0xf) + 48; |
| 663 | static TILE_GET_INFO( get_buggyboy_tile_info ) |
| 664 | { |
| 665 | int color, tilenum; |
| 124 | 666 | |
| 125 | | for (i = 0; i < 2048; i++) |
| 126 | | colortable[256+2048+i] = ((0xf-color_prom[i + 0x500]) & 0xf) + 32; |
| 667 | color = (buggyboy_vram[tile_index] >> 10) & 0x3f; |
| 668 | tilenum = (buggyboy_vram[tile_index]&0x03ff) | ((buggyboy_vram[tile_index] & 0x8000) >> 5); |
| 127 | 669 | |
| 128 | | for (i = 0; i < 2048; i++) |
| 129 | | colortable[256+2048+2048+i] = ((0xf-color_prom[i + 0x500]) & 0xf) + 16; |
| 670 | SET_TILE_INFO(0, tilenum, color, 0); |
| 671 | } |
| 130 | 672 | |
| 131 | | /* Only this is used? */ |
| 132 | | for (i = 0; i < 2048; i++) |
| 133 | | colortable[256+2048+2048+2048+i] = ((0xf-color_prom[i + 0x500]) & 0xf); |
| 673 | /*************************************************************************** |
| 134 | 674 | |
| 135 | | /* Road uses 64-127 */ |
| 136 | | /* Colour PROM only constitutes bits 0-3 - so expand 4-6*/ |
| 137 | | for (i = 0; i < 256; i++) |
| 138 | | colortable[256+8192+i] = (color_prom[i + 0x1500] & 0xf) + 64; |
| 675 | Buggy Boy Road Hardware |
| 139 | 676 | |
| 140 | | for (i = 0; i < 256; i++) |
| 141 | | colortable[256+8192+256+i] = (color_prom[i + 0x1500] & 0xf) + 64 + 16; |
| 677 | A mega-hack of TX-1 but without the second road. |
| 142 | 678 | |
| 143 | | for (i = 0; i < 256; i++) |
| 144 | | colortable[256+8192+256*2+i] = (color_prom[i + 0x1500] & 0xf) + 64 + 32; |
| 679 | There are two lists in road/common RAM (double buffered) starting at 0x800 |
| 680 | and 0xa00: |
| 145 | 681 | |
| 146 | | for (i = 0; i < 256; i++) |
| 147 | | colortable[256+8192+256*3+i] = (color_prom[i + 0x1500] & 0xf) + 64 + 48; |
| 682 | 0x1800 - 0x18ff: Road line horizontal position word (128 entries). |
| 683 | 0x19e0 - 0x19ef: Vertical positions (starting line, water, tunnels etc) |
| 684 | 0x19f0 - 0x19ff: Horizontal positions (walls and tunnels) |
| 148 | 685 | |
| 149 | | /* Sky uses colours 128-191 directly - no lookup */ |
| 686 | Three TZ1113 accumulators are used to vary: |
| 687 | * Road camber (update per pixel) |
| 688 | * Road vertical scale/position (update per scanline) |
| 689 | * Road 'speed' (update per frame) |
| 150 | 690 | |
| 151 | | /* Characters use colours 192-255 */ |
| 152 | | for (i = 0; i < 256; i++) |
| 153 | | colortable[i] = (color_prom[i + 0x400] & 0xf) + 192; |
| 691 | Road flags register (0x24E0): |
| 692 | 7 : Water sparkle control 1 |
| 693 | 6 : Water sparkle control 0 ('WAVE0,1') |
| 694 | 5 : Tunnel mode 1 |
| 695 | 4 : Tunnel mode 0 ('TNLMD0,1') |
| 696 | 3 : Tunnel flag ('TNLF') |
| 697 | 2 : Starting Line flag ('LINF') |
| 698 | 1 : Road list select |
| 699 | 0 : Wall angle enable ('WANGL') |
| 154 | 700 | |
| 155 | | } |
| 701 | Road PAL equations: |
| 156 | 702 | |
| 703 | http://philwip.mameworld.info/buggyboy/PAL14H4.149.htm |
| 704 | http://philwip.mameworld.info/buggyboy/PAL14L4.151.htm |
| 705 | http://philwip.mameworld.info/buggyboy/PAL16H2.3.htm |
| 706 | http://philwip.mameworld.info/buggyboy/PAL16L8.4.htm |
| 707 | http://philwip.mameworld.info/buggyboy/PAL16L8.150.htm |
| 157 | 708 | |
| 158 | | WRITE16_HANDLER( buggyb1_vram_w ) |
| 709 | ***************************************************************************/ |
| 710 | static void buggybjr_draw_road(UINT8 *bitmap) |
| 159 | 711 | { |
| 160 | | COMBINE_DATA(&buggyb1_vram[offset]); |
| 161 | | tilemap_mark_tile_dirty(buggyb1_tilemap,offset); |
| 162 | | } |
| 712 | #define X_ADJUST 384 |
| 713 | #define LOAD_HPOS_COUNTER( NUM ) \ |
| 714 | ram_val = buggyboy_rcram[(rva_offs + 0x1f8 + (2*NUM)) >> 1]; \ |
| 715 | rcrs10 = ram_val & 0xfc00 ? 0x0400 : 0x0000; \ |
| 716 | hp = vregs.wa8 + ((BIT(ram_val, 15) << 11) | rcrs10 | (ram_val & 0x03ff)); \ |
| 717 | hp##NUM = hp & 0xff; \ |
| 718 | hp >>= 8; \ |
| 719 | hps##NUM##0 = (BIT(hp, 0) || BIT(hp, 2)) && !BIT(hp, 3); \ |
| 720 | hps##NUM##1 = (BIT(hp, 1) || BIT(hp, 2)) && !BIT(hp, 3); \ |
| 721 | hps##NUM##2 = BIT(hp, 2); \ |
| 163 | 722 | |
| 164 | | WRITE16_HANDLER( buggyboy_vram_w ) |
| 165 | | { |
| 166 | | COMBINE_DATA(&buggyboy_vram[offset]); |
| 167 | | tilemap_mark_tile_dirty(buggyboy_tilemap,offset); |
| 168 | | } |
| 723 | /* Check carry out calc */ |
| 724 | #define UPDATE_HPOS( NUM ) \ |
| 725 | if (hp##NUM##_en) \ |
| 726 | { \ |
| 727 | if ((hp##NUM & 0xff) == 0xff) \ |
| 728 | hp##NUM##_cy = 1; \ |
| 729 | else \ |
| 730 | hp##NUM = hp##NUM + 1; \ |
| 731 | } \ |
| 169 | 732 | |
| 733 | INT32 x; |
| 734 | UINT32 y; |
| 735 | UINT16 rva_offs; |
| 736 | UINT32 tnlmd0; |
| 737 | UINT32 tnlmd1; |
| 738 | UINT32 linf; |
| 739 | UINT32 tnlf; |
| 740 | UINT32 wangl; |
| 741 | UINT32 tcmd; |
| 742 | UINT32 wave0; |
| 743 | UINT32 wave1; |
| 744 | UINT32 rva20_6; |
| 170 | 745 | |
| 171 | | static TILE_GET_INFO( get_buggyb1_tile_info ) |
| 172 | | { |
| 173 | | int color, tileno; |
| 746 | /* ROM/PROM lookup tables */ |
| 747 | const UINT8 *rcols = (UINT8*)(memory_region(REGION_PROMS) + 0x1500); |
| 748 | const UINT8 *rom = memory_region(REGION_GFX6); |
| 749 | const UINT8 *prom0 = rom + 0x4000; |
| 750 | const UINT8 *prom1 = rom + 0x4200; |
| 751 | const UINT8 *prom2 = rom + 0x4400; |
| 752 | const UINT8 *vprom = rom + 0x4600; |
| 174 | 753 | |
| 175 | | color = ((buggyb1_vram[tile_index] >>10) & 0x3f); |
| 176 | | tileno = (buggyb1_vram[tile_index]&0x03ff) | ((buggyb1_vram[tile_index] & 0x8000) >> 5); |
| 754 | /* Extract constant values */ |
| 755 | tcmd = ((vregs.scol & 0xc000) >> 12) | ((vregs.scol & 0x00c0) >> 6); |
| 756 | tnlmd0 = BIT(vregs.flags, BB_RDFLAG_TNLMD0); |
| 757 | tnlmd1 = BIT(vregs.flags, BB_RDFLAG_TNLMD1); |
| 758 | linf = BIT(vregs.flags, BB_RDFLAG_LINF); |
| 759 | tnlf = BIT(vregs.flags, BB_RDFLAG_TNLF); |
| 760 | wangl = BIT(vregs.flags, BB_RDFLAG_WANGL); |
| 761 | wave0 = BIT(vregs.flags, BB_RDFLAG_WAVE0); |
| 762 | wave1 = BIT(vregs.flags, BB_RDFLAG_WAVE1); |
| 763 | rva_offs = BIT(vregs.flags, BB_RDFLAG_RVA7) ? 0x800 : 0xc00; |
| 177 | 764 | |
| 178 | | SET_TILE_INFO(0,tileno,color,0); |
| 179 | | } |
| 765 | profiler_mark(PROFILER_USER1); |
| 180 | 766 | |
| 181 | | static TILE_GET_INFO( get_buggyboy_tile_info ) |
| 182 | | { |
| 183 | | int color, tileno; |
| 767 | for (y = 0; y < 240; ++y) |
| 768 | { |
| 769 | UINT8 rva0_6; |
| 770 | UINT8 ram_addr; |
| 771 | UINT16 rcrdb0_15; |
| 772 | UINT16 rcrs10; |
| 773 | UINT16 ls161_156_a; |
| 774 | UINT16 ls161; |
| 775 | UINT8 sld; |
| 776 | UINT32 rva8; |
| 777 | UINT32 rm0, rm1; |
| 778 | UINT32 rcmd; |
| 779 | UINT32 bnkcs = 1; |
| 184 | 780 | |
| 185 | | color = ((buggyboy_vram[tile_index] >>10) & 0x3f); |
| 186 | | tileno = (buggyboy_vram[tile_index]&0x03ff) | ((buggyboy_vram[tile_index] & 0x8000) >> 5); |
| 781 | UINT32 x_offs; |
| 187 | 782 | |
| 188 | | SET_TILE_INFO(0,tileno,color,0); |
| 189 | | } |
| 783 | /* Vertical positions shift register */ |
| 784 | UINT32 ram_val; |
| 785 | UINT32 hp; |
| 786 | UINT32 vp1, vp2, vp3, vp4, vp5, vp6, vp7; |
| 190 | 787 | |
| 788 | /* PAL outputs */ |
| 789 | UINT32 ic4_o12; |
| 790 | UINT32 ic4_o13; |
| 791 | UINT32 ic149_o15; |
| 792 | UINT32 ic151_o14; |
| 191 | 793 | |
| 192 | | /* |
| 794 | /* Horizontal positions */ |
| 795 | UINT32 hp0, hp1, hp2, hp3; |
| 796 | UINT8 hps00, hps01, hps02; |
| 797 | UINT8 hps10, hps11, hps12; |
| 798 | UINT8 hps20, hps21, hps22; |
| 799 | UINT8 hps30, hps31, hps32; |
| 193 | 800 | |
| 194 | | Applies to both versions of Buggy Boy |
| 801 | /* Road pixel data planes */ |
| 802 | UINT8 rc0 = 0, rc1 = 0, rc2 = 0, rc3 = 0; |
| 195 | 803 | |
| 196 | | Each object entry occupies 16 bytes: |
| 804 | /* Horizontal position counter carry out */ |
| 805 | UINT8 hp0_cy = 0, hp1_cy = 0, hp2_cy = 0, hp3_cy = 0; |
| 197 | 806 | |
| 198 | | Byte 0: Sprite code |
| 199 | | Byte 1: Y-Position (bit 15 has some significance) |
| 807 | UINT8 *bmpaddr = bitmap + (y * 256); |
| 200 | 808 | |
| 201 | | Byte 2: Scale |
| 202 | | Byte 3: Scale |
| 809 | UINT32 bank_cnt; |
| 810 | UINT8 roadpix; |
| 203 | 811 | |
| 204 | | Byte 4: Scale 0=Tiny 0x7f=Normal 0xff=Huge ? |
| 205 | | Byte 5: Bit 7 = X-Flip, Bit 4 = chunk bank, Bit 5-6 = palette select, Bit 0-1 = palette related (PC_TMP) |
| 812 | rva8 = (vregs.h_val & 0x8000) || !(vregs.shift & 0x80); |
| 206 | 813 | |
| 207 | | Byte 6: Scale |
| 208 | | Byte 7: Scale |
| 814 | /* Get RVA0_6 from TZ113 accumulator chain @ 122/123 */ |
| 815 | rva0_6 = (vregs.h_val >> 7) & 0x7f; |
| 209 | 816 | |
| 210 | | Byte 8: X position bits 0-7 |
| 211 | | Byte 9: X position bits 8-9 |
| 817 | /* For /WAVE bit logic later */ |
| 818 | rva20_6 = ((rva0_6 >> 3) & 0xe) | ((rva0_6 & 2) >> 1); |
| 212 | 819 | |
| 213 | | Remaining bytes are unusued. |
| 820 | /* RVA is inverted! */ |
| 821 | ram_addr = (~rva0_6 & 0x7f) << 1; |
| 214 | 822 | |
| 215 | | */ |
| 823 | /* Get the road RAM data for this line */ |
| 824 | rcrdb0_15 = buggyboy_rcram[(rva_offs + ram_addr) >> 1]; |
| 216 | 825 | |
| 217 | | /* Rewrite once scale parameters etc. are discovered */ |
| 218 | | static void draw_objects(running_machine *machine, mame_bitmap *bitmap,const rectangle *cliprect,int xdrawoffset) |
| 219 | | { |
| 220 | | int offs; |
| 826 | /* If 15-10 == 000000, then 0 */ |
| 827 | rcrs10 = rcrdb0_15 & 0xfc00 ? 0x0400 : 0x0000; |
| 221 | 828 | |
| 222 | | UINT8 PROM_lookup; |
| 223 | | UINT16 ROM_lookup; |
| 829 | /* If 15-10 == 111111, then 1 */ |
| 830 | ls161_156_a = (rcrdb0_15 & 0xfc00) == 0xfc00 ? 0x800 : 0x0000; |
| 224 | 831 | |
| 225 | | UINT8 *rom_lut = (UINT8 *)memory_region(REGION_USER3); /* Object index ROM */ |
| 226 | | UINT8 *prom_lut = (UINT8 *)memory_region(REGION_PROMS)+0x1600; /* Object index PROM */ |
| 832 | /* LS161 15-bit counter chain - loaded with RAM data (bar bits 10-13) */ |
| 833 | ls161 = ((rcrdb0_15 & 0x8000) >> 1) | ls161_156_a | rcrs10 | (rcrdb0_15 & 0x03ff); |
| 227 | 834 | |
| 228 | | UINT8 *ROM_LUTA = (UINT8 *)memory_region(REGION_USER2); /* Object LUT (lower byte) */ |
| 229 | | UINT8 *ROM_LUTB = (UINT8 *)memory_region(REGION_USER2)+0x8000; /* Object LUT (lower byte) */ |
| 230 | | UINT8 *ROM_CLUT = (UINT8 *)memory_region(REGION_USER3)+0x2000; /* Object palette LUT */ |
| 835 | /* SLD */ |
| 836 | sld = (vprom[rva0_6] + vregs.slin) & 0x38; |
| 231 | 837 | |
| 232 | | for (offs = 0x0; offs <= (bb_objectram_size)/2; offs += 8) |
| 233 | | { |
| 234 | | int inc,last; |
| 235 | | int bit_12, PSA0_12, PSA, object_flip_x; |
| 236 | | int index_y,index_x,index=0; |
| 838 | /* Determine the x-offset */ |
| 839 | x_offs = ls161 & 7; |
| 840 | ls161 &= ~7; |
| 237 | 841 | |
| 842 | /* Fill vertical position shift register with bits for this line */ |
| 843 | /* TODO; cheated slightly to shift stuff up one pixel*/ |
| 844 | vp1 = buggyboy_rcram[(rva_offs + 0x1e2) >> 1] >= y ? 0 : 1; |
| 845 | vp2 = buggyboy_rcram[(rva_offs + 0x1e4) >> 1] >= y ? 0 : 1; |
| 846 | vp3 = buggyboy_rcram[(rva_offs + 0x1e6) >> 1] >= y ? 0 : 1; |
| 847 | vp4 = buggyboy_rcram[(rva_offs + 0x1e8) >> 1] >= y ? 0 : 1; |
| 848 | vp5 = buggyboy_rcram[(rva_offs + 0x1ea) >> 1] >= y ? 0 : 1; |
| 849 | vp6 = buggyboy_rcram[(rva_offs + 0x1ec) >> 1] >= y ? 0 : 1; |
| 850 | vp7 = buggyboy_rcram[(rva_offs + 0x1ee) >> 1] >= y ? 0 : 1; |
| 238 | 851 | |
| 239 | | if((bb_objram[offs+0] >> 8) == 0xff) /* End of object list marker? */ |
| 240 | | return; |
| 852 | /* Stuff */ |
| 853 | rm0 = vp7 ? BIT(vregs.scol, 4) : BIT(vregs.scol, 12); |
| 854 | rm1 = vp7 ? BIT(vregs.scol, 5) : BIT(vregs.scol, 13); |
| 241 | 855 | |
| 242 | | /* The object code is fed into ROM and PROM to generate a lookup into a pair of ROMs */ |
| 243 | | PROM_lookup = bb_objram[offs] & 0xff; |
| 244 | | ROM_lookup = ((bb_objram[offs] & 0xff) << 4) | ((bb_objram[offs+1]>>11) & 0xf); |
| 856 | /* Wall/tunnel control */ |
| 857 | rcmd = (vp7 ? vregs.scol : vregs.scol >> 8) & 0xf; |
| 245 | 858 | |
| 246 | | if(rom_lut[ROM_lookup] == 0xff) /* Do not draw object */ |
| 247 | | continue; |
| 859 | /* Load 'em up */ |
| 860 | LOAD_HPOS_COUNTER(0); |
| 861 | LOAD_HPOS_COUNTER(1); |
| 862 | LOAD_HPOS_COUNTER(2); |
| 863 | LOAD_HPOS_COUNTER(3); |
| 248 | 864 | |
| 865 | /* Some PAL equations that we can evaluate outside of the x-loop */ |
| 866 | ic4_o12 = (!vp1 && !vp2 && !vp6) || (!vp1 && !vp2 && vp7) || (vp4 && !vp6) || (vp4 && vp7); |
| 867 | ic4_o13 = (!vp1 && !vp2 && !vp5) || (!vp1 && !vp2 && vp7) || (vp3 && !vp5) || (vp3 && vp7); |
| 868 | ic149_o15 = (!vp5 && !vp6) || vp7 || !linf; |
| 869 | ic151_o14 = !BIT(sld, 3) || tnlmd0 || tnlmd1 || ic149_o15; |
| 249 | 870 | |
| 250 | | /* Calculate 13-bit index into object lookup ROMs that holds 8x8 chunk sequence */ |
| 251 | | bit_12 = (((bb_objram[offs]>>7)&0x1) | ((bb_objram[offs]>>6)&0x1)) <<12; |
| 252 | | PSA0_12 = ( ( (prom_lut[PROM_lookup]&0xf)<<8) | rom_lut[ROM_lookup] | bit_12) & 0x1fff; |
| 871 | /* Load the bank counter with accumulator bits 14-5 */ |
| 872 | bank_cnt = (vregs.ba_val >> 5) & 0x3ff; |
| 253 | 873 | |
| 254 | | PSA = (PSA0_12 << 2); |
| 874 | bnkcs = 1; |
| 255 | 875 | |
| 256 | | object_flip_x = (bb_objram[offs+2]>>15)&0x1; |
| 876 | for (x = -x_offs; x < 256; ++x) |
| 877 | { |
| 878 | UINT16 ls283_159; |
| 879 | UINT32 ls283_159_co; |
| 880 | UINT16 rha; |
| 881 | UINT32 rom_flip; |
| 882 | UINT32 rom_en; |
| 883 | UINT32 pix; |
| 884 | UINT32 hp0_en, hp1_en, hp2_en, hp3_en; |
| 885 | UINT32 _rorevcs = 0; |
| 257 | 886 | |
| 258 | | for (index_y=0; index_y<16; index_y++) |
| 259 | | { |
| 260 | | if (object_flip_x) |
| 887 | /* The many PALs */ |
| 888 | |
| 889 | UINT32 ic149_o16; |
| 890 | |
| 891 | UINT32 ic4_o18; |
| 892 | UINT32 ic3_o15; |
| 893 | UINT32 ic150_o12 = 0; |
| 894 | UINT32 ic150_o16; |
| 895 | UINT32 ic150_o17; |
| 896 | UINT32 ic150_o18; |
| 897 | UINT32 ic150_o19; |
| 898 | UINT32 ic151_o15; |
| 899 | UINT32 ic151_o16; |
| 900 | UINT32 ic151_o17; |
| 901 | |
| 902 | UINT32 rcsd0_3 = 0; |
| 903 | |
| 904 | UINT32 sld5 = BIT(sld, 5); |
| 905 | UINT32 sld4 = BIT(sld, 4); |
| 906 | UINT32 mux; |
| 907 | |
| 908 | UINT32 cprom_addr; |
| 909 | |
| 910 | UINT8 px0, px1, px2, px3; |
| 911 | |
| 912 | /* Counter Q10-7 are added to 384 */ |
| 913 | ls283_159_co = (ls283_159 = (ls161 & 0x780) + X_ADJUST) & 0x800; |
| 914 | rom_flip = ls283_159 & 0x200 ? 0 : 1; |
| 915 | rom_en = !(ls283_159 & 0x400) && !(ls283_159_co ^ (ls161 & 0x800)); |
| 916 | |
| 917 | /* Strip pixel number */ |
| 918 | pix = (ls161 & 7) ^ 7; |
| 919 | |
| 920 | /* Horizotnal position counter enables - also used as PAL inputs */ |
| 921 | hp0_en = !(hp0_cy || hps02); |
| 922 | hp1_en = !(hp1_cy || hps12); |
| 923 | hp2_en = !(hp2_cy || hps22); |
| 924 | hp3_en = !(hp3_cy || hps32); |
| 925 | |
| 926 | _rorevcs = !( (rom_en && rom_flip) || (!rom_en && (ls161 & 0x4000)) ); |
| 927 | |
| 928 | /* Load in a new road gfx strip */ |
| 929 | if ( (ls161 & 7) == 0 ) |
| 261 | 930 | { |
| 262 | | index_x=16; |
| 263 | | inc=-1; |
| 264 | | last=0; |
| 931 | UINT8 d0 = 0; |
| 932 | UINT8 d1 = 0; |
| 933 | |
| 934 | /* TODO: ROM data is 0xff if not enabled. */ |
| 935 | if (rom_en) |
| 936 | { |
| 937 | UINT8 rom_data; |
| 938 | UINT16 prom_addr; |
| 939 | |
| 940 | /* 6 bit road horizontal address */ |
| 941 | rha = (ls283_159 & 0x180) | (ls161 & 0x78); |
| 942 | |
| 943 | if (rom_flip) |
| 944 | rha ^= 0x1f8; |
| 945 | |
| 946 | /* Get road chunk first */ |
| 947 | rom_data = rom[(1 << 13) | (rha << 4) | rva0_6]; |
| 948 | prom_addr = (rom_flip ? 0x80 : 0) | (rom_data & 0x7f); |
| 949 | |
| 950 | rc0 = prom0[prom_addr]; |
| 951 | rc1 = prom1[prom_addr]; |
| 952 | rc2 = prom2[prom_addr]; |
| 953 | |
| 954 | /* Now get the dirt chunk */ |
| 955 | rom_data = rom[(rha << 4) | rva0_6]; |
| 956 | prom_addr = 0x100 | rom_data; |
| 957 | |
| 958 | d0 = prom0[prom_addr]; |
| 959 | d1 = prom1[prom_addr]; |
| 960 | } |
| 961 | else |
| 962 | { |
| 963 | /* |
| 964 | TODO: When ROM is not enabled, data = 0xff |
| 965 | But does anybody care? |
| 966 | */ |
| 967 | rc0 = rc1 = rc2 = rc3 = 0; |
| 968 | } |
| 969 | |
| 970 | /* The data is mixed by two TZ0314 PALs */ |
| 971 | if (BIT(sld, 4)) |
| 972 | { |
| 973 | if (BIT(sld, 5)) |
| 974 | d1 = ~d1; |
| 975 | |
| 976 | rc3 = d0 & d1; |
| 977 | |
| 978 | if (rom_flip) |
| 979 | rc3 = BITSWAP8(rc3, 0, 1, 2, 3, 4, 5, 6, 7); |
| 980 | } |
| 981 | else |
| 982 | rc3 = 0; |
| 265 | 983 | } |
| 984 | |
| 985 | /* NEW!!!! Road camber */ |
| 986 | if (vregs.bank_mode == 0) |
| 987 | { |
| 988 | if ( BIT(vregs.ba_val, 23) ) |
| 989 | bnkcs = 1; |
| 990 | else if (vregs.ba_val & 0x007f8000) |
| 991 | bnkcs = 0; |
| 992 | else |
| 993 | bnkcs = bank_cnt < 0x300; |
| 994 | } |
| 266 | 995 | else |
| 267 | 996 | { |
| 268 | | index_x=0; |
| 269 | | inc=1; |
| 270 | | last=16; |
| 997 | if ( BIT(vregs.ba_val, 23) ) |
| 998 | bnkcs = 0; |
| 999 | else if (vregs.ba_val & 0x007f8000) |
| 1000 | bnkcs = 1; |
| 1001 | else |
| 1002 | bnkcs = bank_cnt >= 0x300; |
| 271 | 1003 | } |
| 272 | 1004 | |
| 273 | | while(index_x!=last) |
| 1005 | px0 = BIT(rc0, pix); |
| 1006 | px1 = BIT(rc1, pix); |
| 1007 | px2 = BIT(rc2, pix); |
| 1008 | px3 = BIT(rc3, pix); |
| 1009 | |
| 1010 | /* |
| 1011 | Uh oh... |
| 1012 | */ |
| 1013 | if (vp2) |
| 1014 | ic4_o18 = (hps00 && hps01 && hp3_en && !hps30) || |
| 1015 | (!hp0_en && hps01 && hp3_en && !hps30) || |
| 1016 | (hps00 && hps01 && !hps31) || |
| 1017 | (!hp0_en && hps01 && !hps31) || |
| 1018 | vp7; |
| 1019 | else |
| 1020 | ic4_o18 = !vp1; |
| 1021 | |
| 1022 | |
| 1023 | if (tnlf) |
| 1024 | ic3_o15 = (vp4 && !vp6 && !hp2_en && hps21) || |
| 1025 | (vp4 && !vp6 && hps20 && hps21) || |
| 1026 | (vp1 && !vp4 && !tnlmd1 && !tnlmd0) || |
| 1027 | (vp1 && !vp3 && !tnlmd1 && !tnlmd0) || |
| 1028 | (hp1_en && !hps10 && vp3 && !vp5) || |
| 1029 | (!hps11 && vp3 && !vp5); |
| 1030 | else |
| 1031 | ic3_o15 = !ic4_o18; |
| 1032 | |
| 1033 | ic151_o17 = (_rorevcs && !tnlmd1 && tnlmd0) || |
| 1034 | (!_rorevcs && tnlmd1 && !tnlmd0) || |
| 1035 | (_rorevcs && ic4_o12) || |
| 1036 | (!_rorevcs && ic4_o13); |
| 1037 | |
| 1038 | if (!ic3_o15) |
| 1039 | ic151_o15 = (px0 && (bnkcs && wangl)) || |
| 1040 | (px1 && (bnkcs && wangl)) || |
| 1041 | ic151_o17 || |
| 1042 | px2 || |
| 1043 | !tnlf; |
| 1044 | else |
| 1045 | ic151_o15 = !tnlf; |
| 1046 | |
| 1047 | ic151_o16 = (px1 && !px0 && tnlmd1 && !tnlmd0) || |
| 1048 | (px2 && tnlmd1 && tnlmd0) || |
| 1049 | ic149_o15; |
| 1050 | |
| 1051 | mux = BIT(tcmd, 3) ? ic149_o15 : ic151_o16; |
| 1052 | |
| 1053 | ic150_o19 = (px2 && !rva8) || |
| 1054 | !bnkcs || |
| 1055 | !mux || |
| 1056 | !ic151_o15; |
| 1057 | |
| 1058 | /* Don't calculate the pixel colour if not visible */ |
| 1059 | if (ic150_o19) |
| 274 | 1060 | { |
| 275 | | /* Bit 14 of chunk_number = data_end, related to end of line */ |
| 276 | | int chunk_number = (ROM_LUTB[PSA+index]<<8) | ROM_LUTA[PSA+index]; // PSBB0-15 |
| 1061 | ic149_o16 = (_rorevcs && !px2 && ic151_o15) || |
| 1062 | (tnlf && vp5 && !vp7 && px2 && !tnlmd0 && !tnlmd1 && ic151_o15) || |
| 1063 | (tnlf && vp6 && !vp7 && px2 && !tnlmd0 && !tnlmd1 && ic151_o15) || |
| 1064 | (tnlf && !ic4_o18); |
| 277 | 1065 | |
| 278 | | int sx = (bb_objram[offs+4])+(index_x*8); |
| 279 | | int sy = (bb_objram[offs+0] >> 8)+(index_y*7); |
| 1066 | ic150_o16 = (px2 && mux && rm1) || |
| 1067 | (mux && rva8 && ic151_o15) || |
| 1068 | (!px0 && mux) || |
| 1069 | !ic151_o15; |
| 280 | 1070 | |
| 281 | | /* Calculate the 14-bit CLUT ROM address */ |
| 282 | | int bit13 = (bb_objram[offs+2] & 0x1000) << 1; |
| 283 | | int bit12 = (chunk_number & 0x2000) >> 1; |
| 1071 | { |
| 1072 | UINT32 a = mux && ic151_o15; |
| 284 | 1073 | |
| 285 | | /* Tile Number bit 12 -> 1 = Bits 6-7 of BUG16s or bits 8-9 of PC_TMP */ |
| 286 | | int bits6_and_7 = (chunk_number & 0x1000 ? chunk_number : bb_objram[offs+2] >> 2) & 0xc0; |
| 287 | | int CLUT_ROM_ADDR = (chunk_number & 0xf3f) + bits6_and_7 + bit12 + bit13; |
| 1074 | ic150_o17 = (a && !rm0 && px0) || |
| 1075 | (a && !px1) || |
| 1076 | (rva8 && a); |
| 288 | 1077 | |
| 289 | | /* Now form the 12 bit OPCD */ |
| 290 | | int bits10_and_11 = 0xc00 - (bb_objram[offs+2] & 0xc00); |
| 291 | | int OPCS = (bb_objram[offs+2] & 0x6000) >> 5; // bits 8 and 9 |
| 292 | | int OPCD = (ROM_CLUT[CLUT_ROM_ADDR] + OPCS + bits10_and_11) & 0xfff; |
| 1078 | ic150_o18 = (a && !px2) || |
| 1079 | (rva8 && a); |
| 1080 | } |
| 293 | 1081 | |
| 294 | | int tmp = (OPCD&0x7f); // bits 0-6 |
| 295 | | int tmp2= (OPCD&0x300)>>1; // bits 9,8 (bit 7 is not there) |
| 296 | | int tmp3 = bits10_and_11 >> 1; |
| 1082 | if (ic151_o14) |
| 1083 | ic150_o12 = rva8 || !mux || !ic151_o15 || |
| 1084 | (px2 && px1 && px0 && rm1 && !rm0) || |
| 1085 | (!px2 && px1 && px0 && !sld4 && rm0) || |
| 1086 | (px2 && px0 && !sld5 && !rm1 && !rm0) || |
| 1087 | (px2 && !px1 && px0 && !sld5 && !rm1) || |
| 1088 | (px2 && px1 && px0 && !sld5 && !sld4) || |
| 1089 | (px2 && px1 && px0 && !sld4 && rm1) || |
| 1090 | (!px2 && !px3 && !rm0) || |
| 1091 | (!px1 && !px3 && rm1) || |
| 1092 | (!px2 && !px1 && !px3) || |
| 1093 | (!px0 && !px3); |
| 1094 | else |
| 1095 | ic150_o12 = 0; |
| 297 | 1096 | |
| 298 | | int color = (tmp + tmp2 + tmp3); |
| 299 | | int trans; |
| 1097 | if (vp6 || ic151_o16) |
| 1098 | { |
| 1099 | UINT32 ic150_i5 = BIT(tcmd, 3) ? ic149_o15 : ic151_o16; |
| 300 | 1100 | |
| 301 | | /* 8x8 chunk ROM bank (0-2) */ |
| 302 | | int bank = (((bb_objram[offs+2]>>11)&0x2) | ((chunk_number>>13)&0x1))+1; |
| 303 | | int zoomx = 0xffff; //object_ram[offs+6]<<8; |
| 304 | | int zoomy = 0xffff; //object_ram[offs+4]<<8; |
| 305 | | int flipx = ((chunk_number>>15) & 0x1) ^ object_flip_x; |
| 306 | | int flipy = 0; |
| 1101 | if ( !(ic151_o15 && ic150_i5) ) |
| 1102 | cprom_addr = (tcmd & 0x7) | (ic151_o16 ? 0x08 : 0); |
| 1103 | else |
| 1104 | cprom_addr = rcmd; |
| 307 | 1105 | |
| 308 | | const gfx_element *gfx = machine->gfx[bank]; |
| 1106 | /* Inverted! */ |
| 1107 | cprom_addr = ((~cprom_addr) & 0xf) << 4; |
| 1108 | } |
| 1109 | else |
| 1110 | cprom_addr = 0xf0; |
| 309 | 1111 | |
| 310 | | if(!(OPCD & 0x80)) /* Seems to work! */ |
| 311 | | trans = TRANSPARENCY_PEN; |
| 1112 | cprom_addr |= (ic149_o16 ? 0x8 : 0) | |
| 1113 | (ic150_o18 ? 0x4 : 0) | |
| 1114 | (ic150_o17 ? 0x2 : 0) | |
| 1115 | (ic150_o16 ? 0x1 : 0); |
| 1116 | |
| 1117 | /* Lower four bits of colour output come from PROM BB7 @ 188 */ |
| 1118 | rcsd0_3 = rcols[cprom_addr] & 0xf; |
| 1119 | |
| 1120 | { |
| 1121 | UINT32 lfsr = vregs.wave_lfsr; |
| 1122 | UINT32 wave = |
| 1123 | (wave0 ^ BIT(lfsr, 0)) && |
| 1124 | (wave1 ^ BIT(lfsr, 3)) && |
| 1125 | BIT(lfsr, 5) && |
| 1126 | !BIT(lfsr, 15) && |
| 1127 | BIT(lfsr, 11) && |
| 1128 | BIT(lfsr, 13) && |
| 1129 | (rva20_6 < ((lfsr >> 8) & 0xf)); |
| 1130 | |
| 1131 | roadpix = 0x40 | (wave ? 0 : 0x20) | (ic150_o12 ? 0x10 : 0) | rcsd0_3; |
| 1132 | } |
| 1133 | } |
| 1134 | else |
| 1135 | roadpix = 0; |
| 1136 | |
| 1137 | |
| 1138 | /* Horizontal position counters */ |
| 1139 | if (x >= 0) |
| 1140 | { |
| 1141 | *bmpaddr++ = roadpix; |
| 1142 | |
| 1143 | UPDATE_HPOS(0); |
| 1144 | UPDATE_HPOS(1); |
| 1145 | UPDATE_HPOS(2); |
| 1146 | UPDATE_HPOS(3); |
| 1147 | |
| 1148 | /* Update the LFSR */ |
| 1149 | vregs.wave_lfsr = (vregs.wave_lfsr << 1) | (BIT(vregs.wave_lfsr, 6) ^ !BIT(vregs.wave_lfsr, 15)); |
| 1150 | |
| 1151 | /* Increment the bank counter */ |
| 1152 | bank_cnt = (bank_cnt + 1) & 0x7ff; |
| 1153 | } |
| 1154 | |
| 1155 | /* X pos */ |
| 1156 | ls161 = (ls161 + 1) & 0x7fff; |
| 1157 | } |
| 1158 | |
| 1159 | /* WANGL active? Update the 8-bit counter */ |
| 1160 | if ( wangl ) |
| 1161 | { |
| 1162 | if ( BIT(vregs.flags, BB_RDFLAG_TNLMD0) ) |
| 1163 | vregs.wa8 -= 1; |
| 1164 | else |
| 1165 | vregs.wa8 += 1; |
| 1166 | } |
| 1167 | |
| 1168 | /* No carry out - just increment */ |
| 1169 | if ( vregs.wa4 != 0xf ) |
| 1170 | vregs.wa4 += 1; |
| 1171 | else |
| 1172 | { |
| 1173 | /* Carry out; increment again on /TMG2S rise */ |
| 1174 | if ( wangl ) |
| 1175 | { |
| 1176 | if ( BIT(vregs.flags, BB_RDFLAG_TNLMD0) ) |
| 1177 | vregs.wa8 -= 1; |
| 312 | 1178 | else |
| 313 | | trans = TRANSPARENCY_NONE; |
| 1179 | vregs.wa8 += 1; |
| 1180 | } |
| 1181 | vregs.wa4 = 1; |
| 1182 | } |
| 314 | 1183 | |
| 315 | | index_x+=inc; |
| 316 | | index++; |
| 1184 | /* Update accumulator */ |
| 1185 | vregs.h_val += vregs.h_inc; |
| 317 | 1186 | |
| 318 | | drawgfxzoom(bitmap, gfx, |
| 319 | | chunk_number, |
| 320 | | color, |
| 321 | | flipx,flipy, |
| 322 | | sx-xdrawoffset,sy, |
| 323 | | cliprect,trans,0, |
| 324 | | zoomx,zoomy); |
| 325 | | } |
| 326 | | } |
| 327 | | } |
| 1187 | /* Seems correct */ |
| 1188 | { |
| 1189 | UINT8 sf = vregs.shift; |
| 1190 | |
| 1191 | if ((vregs.shift & 0x80) == 0) |
| 1192 | { |
| 1193 | vregs.shift <<= 1; |
| 1194 | |
| 1195 | if ((sf & 0x08) == 0) |
| 1196 | vregs.shift |= BIT(vregs.h_val, 15); |
| 1197 | } |
| 1198 | |
| 1199 | if ((sf & 0x08) && !(vregs.shift & 0x08)) |
| 1200 | vregs.h_inc = vregs.gas; |
| 1201 | } |
| 1202 | |
| 1203 | /* Finally, increment the banking accumulator */ |
| 1204 | vregs.ba_val = (vregs.ba_val + vregs.ba_inc) & 0x00ffffff; |
| 1205 | } |
| 1206 | |
| 1207 | profiler_mark(PROFILER_END); |
| 328 | 1208 | } |
| 329 | 1209 | |
| 330 | 1210 | |
| 331 | | VIDEO_START( buggyb1 ) |
| 1211 | /*************************************************************************** |
| 1212 | |
| 1213 | Buggy Boy Object Drawing |
| 1214 | |
| 1215 | X-scaling isn't quite right but you wouldn't notice... |
| 1216 | |
| 1217 | -------- xxxxxxxx Object number |
| 1218 | xxxxxxxx -------- Y position |
| 1219 | |
| 1220 | xxxxxxxx xxxxxxxx Y scale value |
| 1221 | |
| 1222 | -------- xxxxxxxx X scale |
| 1223 | 00 = Invisible? |
| 1224 | 80 = 1:1 |
| 1225 | FF = Double size |
| 1226 | xxxxxxxx -------- Attributes |
| 1227 | |
| 1228 | xxxxxxxx xxxxxxxx Y scale delta |
| 1229 | |
| 1230 | ------xx xxxxxxxx X position |
| 1231 | |
| 1232 | **************************************************************************/ |
| 1233 | static void buggyboy_draw_objs(UINT8 *bitmap) |
| 332 | 1234 | { |
| 333 | | buggyb1_tilemap = tilemap_create(get_buggyb1_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN, 8, 8,64,64); |
| 334 | | tilemap_set_transparent_pen(buggyb1_tilemap, 0); |
| 335 | | } |
| 1235 | #define FRAC 16 |
| 336 | 1236 | |
| 1237 | UINT32 offs; |
| 337 | 1238 | |
| 338 | | VIDEO_START( buggyboy ) |
| 339 | | { |
| 340 | | buggyboy_tilemap = tilemap_create(get_buggyboy_tile_info,tilemap_scan_rows,TILEMAP_TYPE_PEN, 8, 8,128,64); |
| 341 | | tilemap_set_transparent_pen(buggyboy_tilemap, 0); |
| 1239 | /* The many lookup table ROMs */ |
| 1240 | const UINT8 *const bug13 = (UINT8*)memory_region(REGION_USER3); |
| 1241 | const UINT8 *const bug18s = (UINT8*)memory_region(REGION_USER3) + 0x2000; |
| 1242 | const UINT8 *const bb8 = (UINT8*)memory_region(REGION_PROMS) + 0x1600; |
| 1243 | |
| 1244 | const UINT8 *const bug16s = (UINT8*)memory_region(REGION_USER2); |
| 1245 | const UINT8 *const bug17s = (UINT8*)memory_region(REGION_USER2) + 0x8000; |
| 1246 | |
| 1247 | const UINT8 *const bb9o = (UINT8*)memory_region(REGION_PROMS) + 0x500; |
| 1248 | const UINT8 *const bb9e = (UINT8*)memory_region(REGION_PROMS) + 0xd00; |
| 1249 | |
| 1250 | const UINT8 *const pixdata_rgn = (UINT8*)memory_region(REGION_GFX2); |
| 1251 | |
| 1252 | profiler_mark(PROFILER_USER1); |
| 1253 | |
| 1254 | for (offs = 0; offs <= buggyboy_objram_size; offs += 8) |
| 1255 | { |
| 1256 | UINT32 x; |
| 1257 | UINT32 y; |
| 1258 | UINT32 gxflip; |
| 1259 | |
| 1260 | UINT32 x_scale; |
| 1261 | UINT32 x_step; |
| 1262 | UINT16 y_scale; |
| 1263 | UINT16 y_step; |
| 1264 | |
| 1265 | UINT8 pctmp0_7; |
| 1266 | UINT8 code; |
| 1267 | |
| 1268 | /* Check for end of object list */ |
| 1269 | if ( (buggyboy_objram[offs] & 0xff00) == 0xff00 ) |
| 1270 | break; |
| 1271 | |
| 1272 | /* X scale */ |
| 1273 | x_scale = buggyboy_objram[offs + 2] & 0xff; |
| 1274 | |
| 1275 | /* TODO: Confirm against hardware? */ |
| 1276 | if ( x_scale == 0 ) |
| 1277 | continue; |
| 1278 | |
| 1279 | /* 16-bit y-scale accumulator */ |
| 1280 | y_scale = buggyboy_objram[offs + 1]; |
| 1281 | y_step = buggyboy_objram[offs + 3]; |
| 1282 | |
| 1283 | /* Object number */ |
| 1284 | code = buggyboy_objram[offs] & 0xff; |
| 1285 | |
| 1286 | /* Attributes */ |
| 1287 | pctmp0_7 = buggyboy_objram[offs + 2] >> 8; |
| 1288 | |
| 1289 | /* Global x-flip */ |
| 1290 | gxflip = (pctmp0_7 & 0x80) >> 7; |
| 1291 | |
| 1292 | /* Add 1 to account for line buffering */ |
| 1293 | y = (buggyboy_objram[offs] >> 8) + 1; |
| 1294 | |
| 1295 | if (code == 0xa8) |
| 1296 | code = 0xa8; |
| 1297 | |
| 1298 | for (; y < 240; ++y) |
| 1299 | { |
| 1300 | UINT32 rom_addr2 = 0; |
| 1301 | UINT8 bug17s_data = 0; |
| 1302 | UINT8 bug16s_data; |
| 1303 | |
| 1304 | /* Are we drawing on this line? */ |
| 1305 | |
| 1306 | // TODO: See big lampposts. |
| 1307 | if ( y_scale & 0x8000 ) |
| 1308 | break; |
| 1309 | |
| 1310 | { |
| 1311 | UINT32 psa0_12; |
| 1312 | UINT32 bug13_addr; |
| 1313 | UINT32 bug13_data; |
| 1314 | UINT32 rom_addr; |
| 1315 | UINT32 x_acc; |
| 1316 | UINT32 newtile = 1; |
| 1317 | UINT32 dataend = 0; |
| 1318 | UINT8 data1 = 0; |
| 1319 | UINT8 data2 = 0; |
| 1320 | UINT32 xflip = 0; |
| 1321 | UINT32 opcd10_11; |
| 1322 | UINT32 opcd8_9; |
| 1323 | UINT32 opcd0_11 = 0; |
| 1324 | UINT32 lasttile = 0; |
| 1325 | |
| 1326 | /* Use the object code to lookup the tile sequence data */ |
| 1327 | bug13_addr = code << 4; |
| 1328 | bug13_addr |= ((y_scale >> 11) & 0xf); |
| 1329 | bug13_data = bug13[bug13_addr]; |
| 1330 | |
| 1331 | /* Reached the bottom of the object */ |
| 1332 | if (bug13_data == 0xff) |
| 1333 | break; |
| 1334 | |
| 1335 | psa0_12 = (((code & 0x80) << 5) | ((code & 0x40) << 6)) & 0x1000; |
| 1336 | psa0_12 |= ((bb8[code] << 8) | bug13_data) & 0x1fff; |
| 1337 | |
| 1338 | /* Static part of the BUG17S/BUG16S ROM address */ |
| 1339 | rom_addr = (psa0_12 & ~0xff) << 2; |
| 1340 | |
| 1341 | /* Prepare the x-scaling */ |
| 1342 | x_step = (128 << FRAC) / x_scale; |
| 1343 | x_acc = (psa0_12 & 0xff) << (FRAC + 5); |
| 1344 | |
| 1345 | /* TODO Add note */ |
| 1346 | x = buggyboy_objram[offs + 4] & 0x3ff; |
| 1347 | |
| 1348 | for (;;) |
| 1349 | { |
| 1350 | #define MASK 0x3ff |
| 1351 | |
| 1352 | /* Get data and attributes for an 8x8 tile */ |
| 1353 | if (newtile) |
| 1354 | { |
| 1355 | UINT32 pscb0_11; |
| 1356 | UINT32 psbb0_15; |
| 1357 | UINT32 psbb6_7; |
| 1358 | UINT32 rombank; |
| 1359 | UINT8 *romptr; |
| 1360 | UINT32 bug18s_data; |
| 1361 | UINT32 low_addr = ((x_acc >> (FRAC + 3)) & MASK); |
| 1362 | |
| 1363 | /* |
| 1364 | Objects are grouped by width (either 16, 8 or 4 tiles) in |
| 1365 | the LUT ROMs. The ROM address lines therefore indicate |
| 1366 | width and are used to determine the correct scan order |
| 1367 | when x-flip is set. |
| 1368 | */ |
| 1369 | if (gxflip) |
| 1370 | { |
| 1371 | UINT32 xor_mask; |
| 1372 | |
| 1373 | if ( BIT(psa0_12, 11) || !BIT(psa0_12, 12) ) |
| 1374 | xor_mask = 0xf; |
| 1375 | else if ( !BIT(psa0_12, 9) ) |
| 1376 | xor_mask = 0x7; |
| 1377 | else |
| 1378 | xor_mask = 0x3; |
| 1379 | |
| 1380 | rom_addr2 = rom_addr + (low_addr ^ xor_mask); |
| 1381 | } |
| 1382 | else |
| 1383 | rom_addr2 = rom_addr + low_addr; |
| 1384 | |
| 1385 | bug17s_data = bug17s[rom_addr2 & 0x7fff]; |
| 1386 | |
| 1387 | if ((bug17s_data & 0x40) && dataend) |
| 1388 | lasttile = 1; |
| 1389 | |
| 1390 | dataend |= (bug17s_data & 0x40); |
| 1391 | |
| 1392 | /* Retrieve data for an 8x8 tile */ |
| 1393 | bug16s_data = bug16s[rom_addr2]; |
| 1394 | psbb0_15 = (bug17s_data << 8) | bug16s_data; |
| 1395 | psbb6_7 = (BIT(psbb0_15, 12) ? psbb0_15 : (pctmp0_7 << 6)) & 0xc0; |
| 1396 | |
| 1397 | /* Form the tile ROM address */ |
| 1398 | pscb0_11 = ((((psbb0_15 & ~0xc0) | psbb6_7) << 3) | ((y_scale >> 8) & 7)) & 0x7fff; |
| 1399 | |
| 1400 | /* Choose from one of three banks */ |
| 1401 | rombank = ((BIT(pctmp0_7, 4) << 1) | BIT(psbb0_15, 13)) & 3; |
| 1402 | |
| 1403 | /* TODO: Remember to put all the data into one GFX region */ |
| 1404 | romptr = (UINT8*)(pixdata_rgn + rombank * (0x8000 * 2)); |
| 1405 | |
| 1406 | /* Get raw 8x8 pixel row data */ |
| 1407 | data1 = *(pscb0_11 + romptr); |
| 1408 | data2 = *(pscb0_11 + romptr + 0x8000); |
| 1409 | |
| 1410 | /* Determine flip state (global XOR local) */ |
| 1411 | xflip = gxflip ^ !BIT(psbb0_15, 15); |
| 1412 | |
| 1413 | bug18s_data = bug18s[ (BIT(pctmp0_7, 4) << 13) | |
| 1414 | (BIT(psbb0_15, 13) << 12) | |
| 1415 | (psbb0_15 & ~0xf0c0) | |
| 1416 | psbb6_7 ]; |
| 1417 | |
| 1418 | /* Get the colour data. Note that bits 11 and 10 are inverted */ |
| 1419 | opcd10_11 = ((pctmp0_7 << 8) & 0xc00) ^ 0xc00; |
| 1420 | opcd8_9 = ((pctmp0_7 & 0x60) << 3); |
| 1421 | opcd0_11 = (opcd10_11 | opcd8_9 | bug18s_data) & 0xfff; |
| 1422 | |
| 1423 | newtile = 0; |
| 1424 | } |
| 1425 | |
| 1426 | /* Draw a pixel? */ |
| 1427 | if (x < 256) |
| 1428 | { |
| 1429 | UINT8 pix; |
| 1430 | UINT8 bit; |
| 1431 | |
| 1432 | bit = (x_acc >> FRAC) & 7; |
| 1433 | |
| 1434 | if (xflip) |
| 1435 | bit ^= 7; |
| 1436 | |
| 1437 | pix = (((data1 >> bit) & 1) << 1) | ((data2 >> bit) & 1); |
| 1438 | |
| 1439 | /* Write the pixel if not transparent */ |
| 1440 | if ( !(!(opcd0_11 & 0x80) && !pix) ) |
| 1441 | { |
| 1442 | UINT8 color; |
| 1443 | UINT32 bb9_addr; |
| 1444 | |
| 1445 | bb9_addr = ((opcd0_11 << 1) & 0x600) | ((opcd0_11 & 0x7f) << 2) | pix; |
| 1446 | color = ((opcd0_11 >> 6) & 0x30); |
| 1447 | |
| 1448 | /* Inverted on schematic */ |
| 1449 | if (x & 1) |
| 1450 | color = ~(color | bb9o[bb9_addr]) & 0x3f; |
| 1451 | else |
| 1452 | color = ~(color | bb9e[bb9_addr]) & 0x3f; |
| 1453 | |
| 1454 | *(bitmap + 256*y + x) = 0x40 | color; |
| 1455 | } |
| 1456 | } |
| 1457 | |
| 1458 | /* Check if we've stepped into a new 8x8 tile */ |
| 1459 | if ( (((x_acc + x_step) >> (FRAC + 3)) & MASK) != ((x_acc >> (FRAC + 3)) & MASK) ) |
| 1460 | { |
| 1461 | if (lasttile) |
| 1462 | break; |
| 1463 | |
| 1464 | newtile = 1; |
| 1465 | } |
| 1466 | |
| 1467 | x = (x + 1) & 0x3ff; |
| 1468 | x_acc += x_step; |
| 1469 | } |
| 1470 | }// if (yscale) |
| 1471 | y_scale += y_step; |
| 1472 | } /* for (y) */ |
| 1473 | }/* for (offs) */ |
| 1474 | |
| 1475 | profiler_mark(PROFILER_END); |
| 342 | 1476 | } |
| 343 | 1477 | |
| 344 | 1478 | |
| 1479 | /* |
| 1480 | 2400-24FF is road control (R/W) |
| 345 | 1481 | |
| 346 | | /* Gradient sky - 'scrolls' up and down */ |
| 347 | | static void draw_sky(running_machine *machine, mame_bitmap *bitmap, const rectangle *cliprect) |
| 1482 | /GAS = 24XX: |
| 1483 | /BASET0 = 2400-F, 2410-F |
| 1484 | /BASET1 = 2420-F, 2430-F |
| 1485 | /BSET = 2440-F, 2450-F |
| 1486 | /HASET = 2460-F, 2470-F |
| 1487 | /HSET = 2480-F, 2490-F |
| 1488 | /WASET = 24A0-F, 24B0-F |
| 1489 | /FLAGS = 24E0-F, 24F0-F |
| 1490 | */ |
| 1491 | WRITE16_HANDLER( buggyboy_gas_w ) |
| 348 | 1492 | { |
| 349 | | int x,y,colour; |
| 350 | | for (y = cliprect->min_y; y <= cliprect->max_y; y++) |
| 1493 | offset <<= 1; |
| 1494 | |
| 1495 | switch (offset & 0xe0) |
| 351 | 1496 | { |
| 352 | | for (x = cliprect->min_x; x <= cliprect->max_x; x++) |
| 1497 | case 0x00: |
| 353 | 1498 | { |
| 354 | | colour = (((*bb_sky & 0x7f) + y)>>2)&0x3f; |
| 355 | | *BITMAP_ADDR16(bitmap, y, x) = machine->pens[0x80 + colour]; |
| 1499 | vregs.ba_inc &= ~0x0000ffff; |
| 1500 | vregs.ba_inc |= data; |
| 1501 | |
| 1502 | if ( !(offset & 2) ) |
| 1503 | vregs.ba_val &= ~0x0000ffff; |
| 1504 | |
| 1505 | break; |
| 356 | 1506 | } |
| 1507 | case 0x20: |
| 1508 | { |
| 1509 | data &= 0xff; |
| 1510 | vregs.ba_inc &= ~0xffff0000; |
| 1511 | vregs.ba_inc |= data << 16; |
| 1512 | |
| 1513 | vregs.bank_mode = data & 1; |
| 1514 | |
| 1515 | if ( !(offset & 2) ) |
| 1516 | vregs.ba_val &= ~0xffff0000; |
| 1517 | |
| 1518 | break; |
| 1519 | } |
| 1520 | case 0x40: |
| 1521 | { |
| 1522 | /* Ignore data? */ |
| 1523 | if ( offset & 2 ) |
| 1524 | { |
| 1525 | vregs.ba_val = (vregs.ba_inc + vregs.ba_val) & 0x00ffffff; |
| 1526 | } |
| 1527 | |
| 1528 | break; |
| 1529 | } |
| 1530 | case 0x60: |
| 1531 | { |
| 1532 | vregs.h_inc = data; |
| 1533 | vregs.shift = 0; |
| 1534 | |
| 1535 | if ( !(offset & 2) ) |
| 1536 | vregs.h_val = 0; |
| 1537 | |
| 1538 | break; |
| 1539 | } |
| 1540 | case 0x80: |
| 1541 | { |
| 1542 | /* Ignore data? */ |
| 1543 | if ( offset & 2 ) |
| 1544 | vregs.h_val += vregs.h_inc; |
| 1545 | break; |
| 1546 | } |
| 1547 | case 0xa0: |
| 1548 | { |
| 1549 | vregs.wa8 = data >> 8; |
| 1550 | vregs.wa4 = 0; |
| 1551 | break; |
| 1552 | } |
| 1553 | case 0xe0: |
| 1554 | { |
| 1555 | cpunum_set_input_line(1, INPUT_LINE_TEST, CLEAR_LINE); |
| 1556 | vregs.flags = data; |
| 1557 | break; |
| 1558 | } |
| 357 | 1559 | } |
| 1560 | |
| 1561 | /* Value is latched by LS373 76/77 */ |
| 1562 | vregs.gas = data; |
| 358 | 1563 | } |
| 359 | 1564 | |
| 360 | 1565 | |
| 361 | | /* |
| 362 | | The current layer mixing implementation is incorrect. |
| 1566 | WRITE16_HANDLER( buggyboy_sky_w ) |
| 1567 | { |
| 1568 | vregs.sky = data; |
| 1569 | } |
| 363 | 1570 | |
| 364 | | On the actual PCB, the GAME OVER sign chains should be behind the text but the |
| 365 | | objects are often in front of the characters. |
| 1571 | WRITE16_HANDLER( buggyboy_slincs_w ) |
| 1572 | { |
| 1573 | if ( offset == 1 ) |
| 1574 | vregs.slin_inc = data; |
| 1575 | else |
| 1576 | vregs.slin_inc = vregs.slin = 0; |
| 1577 | } |
| 366 | 1578 | |
| 367 | | See schematic page 11 for mixing logic. |
| 1579 | WRITE16_HANDLER( buggyboy_scolst_w ) |
| 1580 | { |
| 1581 | vregs.scol = data; |
| 1582 | } |
| 368 | 1583 | |
| 369 | | */ |
| 370 | 1584 | |
| 371 | 1585 | |
| 372 | | VIDEO_UPDATE( buggyb1 ) |
| 1586 | VIDEO_START( buggyboy ) |
| 373 | 1587 | { |
| 374 | | if(*bb_sky & 0x80) |
| 375 | | { |
| 376 | | draw_sky(machine, bitmap, cliprect); |
| 377 | | tilemap_draw(bitmap,cliprect,buggyb1_tilemap,0,0); |
| 378 | | draw_objects(machine, bitmap,cliprect,0); |
| 379 | | } |
| 380 | | else |
| 381 | | { |
| 382 | | tilemap_draw(bitmap,cliprect,buggyb1_tilemap,TILEMAP_DRAW_OPAQUE,0); |
| 383 | | draw_objects(machine, bitmap,cliprect,0); |
| 384 | | } |
| 385 | | return 0; |
| 1588 | buggyboy_tilemap = tilemap_create(get_buggyboy_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 8, 8, 128, 64); |
| 1589 | tilemap_set_transparent_pen(buggyboy_tilemap, 0); |
| 386 | 1590 | } |
| 387 | 1591 | |
| 1592 | |
| 1593 | |
| 388 | 1594 | VIDEO_UPDATE( buggyboy ) |
| 389 | 1595 | { |
| 390 | | /* the video hardware seems to use one large tilemap, scroll it to the right position for each screen */ |
| 391 | | int xscrollamount = screen*256; |
| 392 | | tilemap_set_scrollx(buggyboy_tilemap,0,xscrollamount); |
| 1596 | /* The video hardware seems to use one large tilemap, scroll it to the right position for each screen */ |
| 1597 | int xscrollamount = screen * 256; |
| 1598 | tilemap_set_scrollx(buggyboy_tilemap, 0, xscrollamount); |
| 393 | 1599 | |
| 394 | | if(*bb_sky & 0x80) |
| 1600 | tilemap_draw(bitmap, cliprect, buggyboy_tilemap, TILEMAP_DRAW_OPAQUE, 0); |
| 1601 | return 0; |
| 1602 | } |
| 1603 | |
| 1604 | |
| 1605 | VIDEO_EOF( buggyboy ) |
| 1606 | { |
| 1607 | /* /VSYNC: Update TZ113 @ 219 */ |
| 1608 | vregs.slin += vregs.slin_inc; |
| 1609 | |
| 1610 | /* /VSYNC: Clear wave LFSR */ |
| 1611 | vregs.wave_lfsr = 0; |
| 1612 | } |
| 1613 | |
| 1614 | |
| 1615 | VIDEO_START( buggybjr ) |
| 1616 | { |
| 1617 | /* Allocate some bitmaps */ |
| 1618 | chr_bmp = auto_malloc(sizeof(UINT8) * 256 * 240); |
| 1619 | obj_bmp = auto_malloc(sizeof(UINT8) * 256 * 240); |
| 1620 | rod_bmp = auto_malloc(sizeof(UINT8) * 256 * 240); |
| 1621 | } |
| 1622 | |
| 1623 | /* |
| 1624 | Draw the tilemap with scrolling |
| 1625 | */ |
| 1626 | static void buggyboy_draw_char(UINT8 *bitmap) |
| 1627 | { |
| 1628 | INT32 x, y; |
| 1629 | UINT32 scroll_x, scroll_y; |
| 1630 | UINT8 *gfx1, *gfx2; |
| 1631 | |
| 1632 | profiler_mark(PROFILER_USER3); |
| 1633 | |
| 1634 | /* 2bpp characters */ |
| 1635 | gfx1 = memory_region(REGION_GFX1); |
| 1636 | gfx2 = memory_region(REGION_GFX1) + 0x4000; |
| 1637 | |
| 1638 | /* X/Y scroll values are the last word in char RAM */ |
| 1639 | scroll_y = (buggybjr_vram[0x7ff] >> 10) & 0x3f; |
| 1640 | scroll_x = buggybjr_vram[0x7ff] & 0x1ff; |
| 1641 | |
| 1642 | for (y = 0; y < 240; ++y) |
| 395 | 1643 | { |
| 396 | | draw_sky(machine, bitmap, cliprect); |
| 397 | | tilemap_draw(bitmap,cliprect,buggyboy_tilemap,0,0); |
| 398 | | draw_objects(machine, bitmap,cliprect,xscrollamount); |
| 1644 | UINT32 d0 = 0, d1 = 0; |
| 1645 | UINT32 colour = 0; |
| 1646 | UINT32 y_offs; |
| 1647 | UINT32 x_offs; |
| 1648 | UINT32 y_gran; |
| 1649 | |
| 1650 | /* There's no y-scrolling between scanlines 0 and 1 */ |
| 1651 | if (y < 64) |
| 1652 | y_offs = y; |
| 1653 | else |
| 1654 | { |
| 1655 | y_offs = (y + (scroll_y | 0xc0) + 1) & 0xff; |
| 1656 | |
| 1657 | /* Clamp */ |
| 1658 | if (y_offs < 64) |
| 1659 | y_offs |= 0xc0; |
| 1660 | } |
| 1661 | |
| 1662 | if ( (y_offs >= 64) && (y_offs < 128) ) |
| 1663 | x_offs = scroll_x; |
| 1664 | else |
| 1665 | x_offs = 0; |
| 1666 | |
| 1667 | |
| 1668 | y_gran = y_offs & 7; |
| 1669 | |
| 1670 | if (x_offs & 7) |
| 1671 | { |
| 1672 | UINT32 tilenum; |
| 1673 | UINT16 ram_val = buggybjr_vram[((y_offs << 3) & 0x7c0) + ((x_offs >> 3) & 0x3f)]; |
| 1674 | |
| 1675 | tilenum = (ram_val & 0x03ff) | ((ram_val & 0x8000) >> 5); |
| 1676 | colour = (ram_val & 0xfc00) >> 8; |
| 1677 | d0 = *(gfx2 + (tilenum << 3) + y_gran); |
| 1678 | d1 = *(gfx1 + (tilenum << 3) + y_gran); |
| 1679 | } |
| 1680 | |
| 1681 | for (x = 0; x < 256; ++x) |
| 1682 | { |
| 1683 | UINT32 x_gran = x_offs & 7; |
| 1684 | |
| 1685 | if (!x_gran) |
| 1686 | { |
| 1687 | UINT32 tilenum; |
| 1688 | UINT16 ram_val = buggybjr_vram[((y_offs << 3) & 0x7c0) + ((x_offs >> 3) & 0x3f)]; |
| 1689 | |
| 1690 | tilenum = (ram_val & 0x03ff) | ((ram_val & 0x8000) >> 5); |
| 1691 | colour = (ram_val & 0xfc00) >> 8; |
| 1692 | d0 = *(gfx2 + (tilenum << 3) + y_gran); |
| 1693 | d1 = *(gfx1 + (tilenum << 3) + y_gran); |
| 1694 | } |
| 1695 | |
| 1696 | *bitmap++ = colour | |
| 1697 | (((d1 >> (7 ^ x_gran)) & 1) << 1) | |
| 1698 | ((d0 >> (7 ^ x_gran)) & 1); |
| 1699 | |
| 1700 | x_offs = (x_offs + 1) & 0x1ff; |
| 1701 | } |
| 1702 | |
| 399 | 1703 | } |
| 400 | | else |
| 1704 | |
| 1705 | profiler_mark(PROFILER_END); |
| 1706 | } |
| 1707 | |
| 1708 | VIDEO_UPDATE( buggybjr ) |
| 1709 | { |
| 1710 | int x, y; |
| 1711 | UINT8 *chr_pal = (memory_region(REGION_PROMS) + 0x400); |
| 1712 | |
| 1713 | memset(obj_bmp, 0, 256*240); |
| 1714 | |
| 1715 | buggyboy_draw_char(chr_bmp); |
| 1716 | buggybjr_draw_road(rod_bmp); |
| 1717 | buggyboy_draw_objs(obj_bmp); |
| 1718 | |
| 1719 | for (y = 0; y < 240; ++y) |
| 401 | 1720 | { |
| 402 | | tilemap_draw(bitmap,cliprect,buggyboy_tilemap,TILEMAP_DRAW_OPAQUE,0); |
| 403 | | draw_objects(machine, bitmap,cliprect,xscrollamount); |
| 1721 | UINT16 *bmp_addr = BITMAP_ADDR16(bitmap, y, 0); |
| 1722 | |
| 1723 | UINT8 *chr_addr = chr_bmp + (y * 256); |
| 1724 | UINT8 *rod_addr = rod_bmp + (y * 256); |
| 1725 | UINT8 *obj_addr = obj_bmp + (y * 256); |
| 1726 | |
| 1727 | UINT32 sky_en = BIT(vregs.sky, 7); |
| 1728 | UINT32 sky_val = (((vregs.sky & 0x7f) + y) >> 2) & 0x3f; |
| 1729 | |
| 1730 | for (x = 0; x < 256; ++x) |
| 1731 | { |
| 1732 | UINT32 out_val; |
| 1733 | |
| 1734 | UINT32 char_val = *chr_addr++; |
| 1735 | UINT32 char_6_7 = (char_val & 0xc0) >> 2; |
| 1736 | |
| 1737 | UINT32 obj_val = *obj_addr++; |
| 1738 | UINT32 obj6 = BIT(obj_val, 6); |
| 1739 | |
| 1740 | UINT32 rod_val = *rod_addr++; |
| 1741 | UINT32 rod6 = BIT(rod_val, 6); |
| 1742 | |
| 1743 | UINT32 chr = !(BIT(char_val, 7) && (char_val & 3) ); |
| 1744 | |
| 1745 | UINT32 sel = |
| 1746 | ( |
| 1747 | ( BIT(obj_val, 6) && chr) || |
| 1748 | ( sky_en && !(char_val & 3) && (!obj6 && !rod6) ) |
| 1749 | ) ? 0 : 1; |
| 1750 | |
| 1751 | sel |= (!(obj6 || rod6) || !chr) ? 2 : 0; |
| 1752 | |
| 1753 | /* Select the layer */ |
| 1754 | if (sel == 0) out_val = obj_val & 0x3f; |
| 1755 | else if (sel == 1) out_val = rod_val & 0x3f; |
| 1756 | else if (sel == 2) out_val = sky_val; |
| 1757 | else out_val = char_6_7 + chr_pal[char_val]; |
| 1758 | |
| 1759 | *bmp_addr++ = (sel << 6) + out_val; |
| 1760 | } |
| 404 | 1761 | } |
| 1762 | |
| 405 | 1763 | return 0; |
| 406 | 1764 | } |
src/mame/drivers/itech32.c
| r1463 | r1464 | |
| 12 | 12 | * Hard Yardage (2 sets) |
| 13 | 13 | * Pairs (2 sets) |
| 14 | 14 | * Driver's Edge (1 set) |
| 15 | | * World Class Bowling (7 sets) |
| 15 | * World Class Bowling (8 sets) |
| 16 | 16 | * Street Fighter: The Movie (4 sets) |
| 17 | 17 | * Shuffleshot (3 sets) |
| 18 | 18 | * Golden Tee 3D Golf (11 sets) |
| r1463 | r1464 | |
| 822 | 822 | ((UINT8 *)nvram)[i] = mame_rand(Machine); |
| 823 | 823 | } |
| 824 | 824 | |
| 825 | | static NVRAM_HANDLER( gt3dt ) |
| 825 | static NVRAM_HANDLER( tournament ) |
| 826 | 826 | { |
| 827 | 827 | nvram_handler_itech020( machine, file, read_or_write ); |
| 828 | 828 | nvram_handler_timekeeper_0( machine, file, read_or_write ); |
| r1463 | r1464 | |
| 1585 | 1585 | MACHINE_DRIVER_END |
| 1586 | 1586 | |
| 1587 | 1587 | |
| 1588 | | static MACHINE_DRIVER_START( gt3dt ) |
| 1588 | static MACHINE_DRIVER_START( tourny ) |
| 1589 | 1589 | |
| 1590 | 1590 | /* basic machine hardware */ |
| 1591 | 1591 | MDRV_IMPORT_FROM(sftm) |
| 1592 | 1592 | |
| 1593 | | MDRV_NVRAM_HANDLER( gt3dt ) /* Make Tournament sets load/store the Timekeeper info */ |
| 1593 | MDRV_NVRAM_HANDLER( tournament ) /* Make Tournament sets load/store the Timekeeper info */ |
| 1594 | 1594 | MACHINE_DRIVER_END |
| 1595 | 1595 | |
| 1596 | 1596 | |
| 1597 | | static MACHINE_DRIVER_START( wcbowlt ) |
| 1598 | 1597 | |
| 1599 | | /* basic machine hardware */ |
| 1600 | | MDRV_IMPORT_FROM(sftm) |
| 1601 | | |
| 1602 | | MDRV_NVRAM_HANDLER( gt3dt ) /* Make WCB Tournament load/store the Timekeeper info */ |
| 1603 | | MACHINE_DRIVER_END |
| 1604 | | |
| 1605 | | |
| 1606 | | |
| 1607 | 1598 | /************************************* |
| 1608 | 1599 | * |
| 1609 | 1600 | * ROM definitions |
| r1463 | r1464 | |
| 1942 | 1933 | |
| 1943 | 1934 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 1944 | 1935 | ROM_LOAD( "hotmem_snd.u17", 0x10000, 0x18000, CRC(805941c7) SHA1(4a6832d93ff2b986cb54052658af62584782cb59) ) |
| 1945 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 1936 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 1946 | 1937 | |
| 1947 | 1938 | ROM_REGION( 0x880000, REGION_GFX1, 0 ) |
| 1948 | 1939 | ROM_LOAD32_BYTE( "hotmem.grom0", 0x000000, 0x80000, CRC(68f279ef) SHA1(66098e68474e692676662b03835d1b74f581b0f4) ) |
| r1463 | r1464 | |
| 1961 | 1952 | ROM_LOAD16_BYTE( "hotmem.srom0", 0x000000, 0x80000, CRC(c1103224) SHA1(52cf341ff9092ecb8cb94f66a96ee0c726bf1412) ) |
| 1962 | 1953 | ROM_END |
| 1963 | 1954 | |
| 1964 | | ROM_START( wcbowldx ) /* Deluxe version 2.00 (PCB P/N 1082 Rev 2) */ |
| 1955 | ROM_START( wcbowldx ) /* Deluxe version 2.00 (PCB P/N 1082 Rev 2), This version is derived from the Tournament version, but tournament features have be removed/disabled */ |
| 1965 | 1956 | ROM_REGION32_BE( CODE_SIZE, REGION_USER1, 0 ) |
| 1966 | 1957 | ROM_LOAD32_BYTE( "wcbdprm0.200", 0x00000, 0x20000, CRC(280df7f0) SHA1(dacffe8fc21263093b0f4a4fbf444abd49afbff1) ) |
| 1967 | 1958 | ROM_LOAD32_BYTE( "wcbdprm1.200", 0x00001, 0x20000, CRC(526eded0) SHA1(106d5503ed4db2411e1f3446d613eac525a8a9cc) ) |
| r1463 | r1464 | |
| 1970 | 1961 | |
| 1971 | 1962 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 1972 | 1963 | ROM_LOAD( "wcb_snd.u88", 0x10000, 0x18000, CRC(e97a6d28) SHA1(96d7b7856918abcc460083f2a46582ba2a689288) ) /* Actual version is 4.01 but may be labeled V4.0 or V4.01 */ |
| 1973 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 1964 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 1974 | 1965 | |
| 1975 | 1966 | ROM_REGION( 0x880000, REGION_GFX1, 0 ) |
| 1976 | 1967 | ROM_LOAD32_BYTE( "wcb_grom.0_0", 0x000000, 0x080000, CRC(6fcb4246) SHA1(91fb5d18ea9494b08251d1e611c80414df3aad66) ) |
| r1463 | r1464 | |
| 1997 | 1988 | ROM_END |
| 1998 | 1989 | |
| 1999 | 1990 | |
| 1991 | ROM_START( wcbwl140 ) /* Version 1.40 Tournament (PCB P/N 1082 Rev 2) */ |
| 1992 | ROM_REGION32_BE( CODE_SIZE, REGION_USER1, 0 ) |
| 1993 | ROM_LOAD32_BYTE( "wcbtprm0.140", 0x00000, 0x20000, CRC(9d31ceb1) SHA1(d147976a763ba1e18d861351b12c5d275b94a562) ) |
| 1994 | ROM_LOAD32_BYTE( "wcbtprm1.140", 0x00001, 0x20000, CRC(c6669452) SHA1(ba58da7bee5120682e2306454da287c969014899) ) |
| 1995 | ROM_LOAD32_BYTE( "wcbtprm2.140", 0x00002, 0x20000, CRC(d2fc4d09) SHA1(17983759ad6137a2e67b8414ea58880865311534) ) |
| 1996 | ROM_LOAD32_BYTE( "wcbtprm3.140", 0x00003, 0x20000, CRC(c41258a4) SHA1(182e8a25bdb126a4de8a44a1c26fd8b66f06d66e) ) |
| 1997 | |
| 1998 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 1999 | ROM_LOAD( "wcb_snd.u88", 0x10000, 0x18000, CRC(e97a6d28) SHA1(96d7b7856918abcc460083f2a46582ba2a689288) ) /* Actual version is 4.01 but may be labeled V4.0 or V4.01 */ |
| 2000 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2001 | |
| 2002 | ROM_REGION( 0x880000, REGION_GFX1, 0 ) |
| 2003 | ROM_LOAD32_BYTE( "wcb_grom.0_0", 0x000000, 0x080000, CRC(6fcb4246) SHA1(91fb5d18ea9494b08251d1e611c80414df3aad66) ) |
| 2004 | ROM_LOAD32_BYTE( "wcb_grom.0_1", 0x000001, 0x080000, CRC(2ae31f45) SHA1(85218aa9a7ca7c6870427ffbd08b78255813ff90) ) |
| 2005 | ROM_LOAD32_BYTE( "wcb_grom.0_2", 0x000002, 0x080000, CRC(bccc0f35) SHA1(2389662e881e86f8cdb36eb2a082923d976676c8) ) |
| 2006 | ROM_LOAD32_BYTE( "wcb_grom.0_3", 0x000003, 0x080000, CRC(ab1da462) SHA1(3f3a4a083483d2d95d5ef540eea077cad799fcb7) ) |
| 2007 | ROM_LOAD32_BYTE( "wcb_grom.1_0", 0x200000, 0x080000, CRC(bdfafd1f) SHA1(bc0e6fe83d3f8e88c2e55ba3a436875d5470de5b) ) |
| 2008 | ROM_LOAD32_BYTE( "wcb_grom.1_1", 0x200001, 0x080000, CRC(7d6baa2e) SHA1(c47854b064aa96d2581c23afe13cd05a36f9dae3) ) |
| 2009 | ROM_LOAD32_BYTE( "wcb_grom.1_2", 0x200002, 0x080000, CRC(7513d3de) SHA1(b17650ed5210860c3bde53647a30f8fce67aaa38) ) |
| 2010 | ROM_LOAD32_BYTE( "wcb_grom.1_3", 0x200003, 0x080000, CRC(e46877e6) SHA1(f50c904ec5b2b8cbc92f2b28641433c91ee17af5) ) |
| 2011 | ROM_LOAD32_BYTE( "wcbdgrom.2_0", 0x400000, 0x040000, CRC(3b4c5a5c) SHA1(152cbc5d1aa84012f49fa13d91fd89a10f874508) ) |
| 2012 | ROM_LOAD32_BYTE( "wcbdgrom.2_1", 0x400001, 0x040000, CRC(ed0b9b26) SHA1(5173e3936cae419255b3034e2b8a69f6bd136b93) ) |
| 2013 | ROM_LOAD32_BYTE( "wcbdgrom.2_2", 0x400002, 0x040000, CRC(4b9e345e) SHA1(6842a8a6690db8478bdbb8e8119d3eef5e77439b) ) |
| 2014 | ROM_LOAD32_BYTE( "wcbdgrom.2_3", 0x400003, 0x040000, CRC(4e13ee7a) SHA1(245ce87cd6839119a9a976b9a90cd1028aa3e291) ) |
| 2015 | ROM_FILL( 0x500000, 0x380000, 0xff ) |
| 2016 | |
| 2017 | ROM_REGION16_BE( 0x400000, REGION_SOUND1, ROMREGION_ERASE00 ) |
| 2018 | ROM_LOAD16_BYTE( "wcb_srom.0", 0x000000, 0x080000, CRC(d42dd283) SHA1(8ef75c398d1c51d2d7d299ac309a2352179864d9) ) /* Newer sound sample roms */ |
| 2019 | ROM_LOAD16_BYTE( "wcb_srom.1", 0x200000, 0x080000, CRC(7a69ab54) SHA1(d1f9194446e235af69c6ff28af0dccc44ab9b5d3) ) /* Newer sound sample roms */ |
| 2020 | |
| 2021 | ROM_REGION16_BE( 0x400000, REGION_SOUND2, ROMREGION_ERASE00 ) |
| 2022 | ROM_LOAD16_BYTE( "wcb_srom.2", 0x000000, 0x080000, CRC(346530a2) SHA1(9951971ad6d368fb718027e18331d12f0a72970c) ) /* Newer sound sample roms */ |
| 2023 | ROM_LOAD16_BYTE( "wcb_srom.3", 0x200000, 0x040000, CRC(1dfe3a31) SHA1(94947f495692288fbf14fc7796a84c5548a2e8a8) ) /* Newer sound sample roms, rom is a 27C020 in this set */ |
| 2024 | ROM_END |
| 2025 | |
| 2026 | |
| 2000 | 2027 | ROM_START( wcbowl ) /* Version 1.66 (PCB P/N 1082 Rev 2) */ |
| 2001 | 2028 | ROM_REGION32_BE( CODE_SIZE, REGION_USER1, 0 ) |
| 2002 | 2029 | ROM_LOAD32_BYTE( "wcb_prm0.166", 0x00000, 0x20000, CRC(f6774112) SHA1(cb09bb3e40490b3cdc3a5f7d18168384b5b29d85) ) |
| r1463 | r1464 | |
| 2006 | 2033 | |
| 2007 | 2034 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2008 | 2035 | ROM_LOAD( "wcb_snd.u88", 0x10000, 0x18000, CRC(e97a6d28) SHA1(96d7b7856918abcc460083f2a46582ba2a689288) ) /* Actual version is 4.01 but may be labeled V4.0 or V4.01 */ |
| 2009 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2036 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2010 | 2037 | |
| 2011 | 2038 | ROM_REGION( 0x880000, REGION_GFX1, 0 ) |
| 2012 | 2039 | ROM_LOAD32_BYTE( "wcb_grom.0_0", 0x000000, 0x080000, CRC(6fcb4246) SHA1(91fb5d18ea9494b08251d1e611c80414df3aad66) ) |
| r1463 | r1464 | |
| 2038 | 2065 | |
| 2039 | 2066 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2040 | 2067 | ROM_LOAD( "wcb_snd.u88", 0x10000, 0x18000, CRC(e97a6d28) SHA1(96d7b7856918abcc460083f2a46582ba2a689288) ) /* Actual version is 4.01 but may be labeled V4.0 or V4.01 */ |
| 2041 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2068 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2042 | 2069 | |
| 2043 | 2070 | ROM_REGION( 0x880000, REGION_GFX1, 0 ) |
| 2044 | 2071 | ROM_LOAD32_BYTE( "wcb_grom.0_0", 0x000000, 0x080000, CRC(6fcb4246) SHA1(91fb5d18ea9494b08251d1e611c80414df3aad66) ) |
| r1463 | r1464 | |
| 2070 | 2097 | |
| 2071 | 2098 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2072 | 2099 | ROM_LOAD( "wcbo_snd.u88", 0x10000, 0x18000, CRC(194a51d7) SHA1(c67b042008ff2a2713562d3789e5bc3a312fae17) ) /* Version 4.0 */ |
| 2073 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2100 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2074 | 2101 | |
| 2075 | 2102 | ROM_REGION( 0x880000, REGION_GFX1, 0 ) |
| 2076 | 2103 | ROM_LOAD32_BYTE( "wcb_grom.0_0", 0x000000, 0x080000, CRC(6fcb4246) SHA1(91fb5d18ea9494b08251d1e611c80414df3aad66) ) |
| r1463 | r1464 | |
| 2093 | 2120 | ROM_END |
| 2094 | 2121 | |
| 2095 | 2122 | |
| 2096 | | ROM_START( wcbwl140 ) /* Version 1.40 Tournament (PCB P/N 1082 Rev 2) */ |
| 2097 | | ROM_REGION32_BE( CODE_SIZE, REGION_USER1, 0 ) |
| 2098 | | ROM_LOAD32_BYTE( "wcbtprm0.140", 0x00000, 0x20000, CRC(9d31ceb1) SHA1(d147976a763ba1e18d861351b12c5d275b94a562) ) |
| 2099 | | ROM_LOAD32_BYTE( "wcbtprm1.140", 0x00001, 0x20000, CRC(c6669452) SHA1(ba58da7bee5120682e2306454da287c969014899) ) |
| 2100 | | ROM_LOAD32_BYTE( "wcbtprm2.140", 0x00002, 0x20000, CRC(d2fc4d09) SHA1(17983759ad6137a2e67b8414ea58880865311534) ) |
| 2101 | | ROM_LOAD32_BYTE( "wcbtprm3.140", 0x00003, 0x20000, CRC(c41258a4) SHA1(182e8a25bdb126a4de8a44a1c26fd8b66f06d66e) ) |
| 2123 | ROM_START( wcbwl15 ) /* Version 1.5 (3-tier board set: P/N 1059 Rev 3, P/N 1079 Rev 1 & P/N 1060 Rev 0) */ |
| 2124 | /* v1.0 for this platform have been confirmed, but not dumped */ |
| 2125 | ROM_REGION16_BE( 0x80000, REGION_USER1, 0 ) |
| 2126 | ROM_LOAD16_BYTE( "wcb_v15.u83", 0x00000, 0x20000, CRC(3ca9ab85) SHA1(364946dceb3f7279b7d67d9d685a98ba7f4901aa) ) /* Labeled as "WCB V1.5 (U83)" */ |
| 2127 | ROM_LOAD16_BYTE( "wcb_v15.u88", 0x00001, 0x20000, CRC(d43e6fad) SHA1(fd72f6945e7f5ef86dc28503749d18086dd29906) ) /* Labeled as "WCB V1.5 (U88)" */ |
| 2102 | 2128 | |
| 2103 | 2129 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2104 | | ROM_LOAD( "wcb_snd.u88", 0x10000, 0x18000, CRC(e97a6d28) SHA1(96d7b7856918abcc460083f2a46582ba2a689288) ) /* Actual version is 4.01 but may be labeled V4.0 or V4.01 */ |
| 2130 | ROM_LOAD( "wcb_snd2.u17", 0x10000, 0x18000, CRC(c14907ba) SHA1(e52fb87c1f9b5847efc0ef15eb7e6c04dcf38110) ) /* Labeled as "WCB SND V2.0" */ |
| 2105 | 2131 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2106 | 2132 | |
| 2107 | 2133 | ROM_REGION( 0x880000, REGION_GFX1, 0 ) |
| 2108 | | ROM_LOAD32_BYTE( "wcb_grom.0_0", 0x000000, 0x080000, CRC(6fcb4246) SHA1(91fb5d18ea9494b08251d1e611c80414df3aad66) ) |
| 2109 | | ROM_LOAD32_BYTE( "wcb_grom.0_1", 0x000001, 0x080000, CRC(2ae31f45) SHA1(85218aa9a7ca7c6870427ffbd08b78255813ff90) ) |
| 2110 | | ROM_LOAD32_BYTE( "wcb_grom.0_2", 0x000002, 0x080000, CRC(bccc0f35) SHA1(2389662e881e86f8cdb36eb2a082923d976676c8) ) |
| 2111 | | ROM_LOAD32_BYTE( "wcb_grom.0_3", 0x000003, 0x080000, CRC(ab1da462) SHA1(3f3a4a083483d2d95d5ef540eea077cad799fcb7) ) |
| 2112 | | ROM_LOAD32_BYTE( "wcb_grom.1_0", 0x200000, 0x080000, CRC(bdfafd1f) SHA1(bc0e6fe83d3f8e88c2e55ba3a436875d5470de5b) ) |
| 2113 | | ROM_LOAD32_BYTE( "wcb_grom.1_1", 0x200001, 0x080000, CRC(7d6baa2e) SHA1(c47854b064aa96d2581c23afe13cd05a36f9dae3) ) |
| 2114 | | ROM_LOAD32_BYTE( "wcb_grom.1_2", 0x200002, 0x080000, CRC(7513d3de) SHA1(b17650ed5210860c3bde53647a30f8fce67aaa38) ) |
| 2115 | | ROM_LOAD32_BYTE( "wcb_grom.1_3", 0x200003, 0x080000, CRC(e46877e6) SHA1(f50c904ec5b2b8cbc92f2b28641433c91ee17af5) ) |
| 2116 | | ROM_LOAD32_BYTE( "wcbdgrom.2_0", 0x400000, 0x040000, CRC(3b4c5a5c) SHA1(152cbc5d1aa84012f49fa13d91fd89a10f874508) ) |
| 2117 | | ROM_LOAD32_BYTE( "wcbdgrom.2_1", 0x400001, 0x040000, CRC(ed0b9b26) SHA1(5173e3936cae419255b3034e2b8a69f6bd136b93) ) |
| 2118 | | ROM_LOAD32_BYTE( "wcbdgrom.2_2", 0x400002, 0x040000, CRC(4b9e345e) SHA1(6842a8a6690db8478bdbb8e8119d3eef5e77439b) ) |
| 2119 | | ROM_LOAD32_BYTE( "wcbdgrom.2_3", 0x400003, 0x040000, CRC(4e13ee7a) SHA1(245ce87cd6839119a9a976b9a90cd1028aa3e291) ) |
| 2120 | | ROM_FILL( 0x500000, 0x380000, 0xff ) |
| 2134 | /* No known set specificly checks for this, however the GROM data may be in the form of four 8 Meg roms: |
| 2135 | ROM_LOAD32_BYTE( "wcb8grom.0_0", 0x000000, 0x100000, CRC(40837737) SHA1(f073943ec6f84285a8559553fb292ec1f8a629d0) ) Labeled as "WCB GROM0_0 *" ect |
| 2136 | ROM_LOAD32_BYTE( "wcb8grom.0_1", 0x000001, 0x100000, CRC(1615aee8) SHA1(6184919371a894b1d6f2e06a2b328cb55abed4a9) ) |
| 2137 | ROM_LOAD32_BYTE( "wcb8grom.0_2", 0x000002, 0x100000, CRC(d8e0b06e) SHA1(4981c0cf16df68a1b4da7ebf65ca587c21292478) ) |
| 2138 | ROM_LOAD32_BYTE( "wcb8grom.0_3", 0x000003, 0x100000, CRC(0348a7f0) SHA1(462f77514c0e9a28da63732a4f31e9483d4c483e) ) |
| 2139 | */ |
| 2140 | ROM_LOAD32_BYTE( "wcb_grm0.0", 0x000000, 0x080000, CRC(5d79aaae) SHA1(e1bf5c46843f69b8bac41dde73d89ba59b4c8b7f) ) |
| 2141 | ROM_LOAD32_BYTE( "wcb_grm0.1", 0x000001, 0x080000, CRC(e26dcedb) SHA1(15441b97dd3d50d28007062fe28841fa3f762ec9) ) |
| 2142 | ROM_LOAD32_BYTE( "wcb_grm0.2", 0x000002, 0x080000, CRC(32735875) SHA1(4017a8577d8efa8c5b95bd30723ebbf6ecaeba2b) ) |
| 2143 | ROM_LOAD32_BYTE( "wcb_grm0.3", 0x000003, 0x080000, CRC(019d0ab8) SHA1(3281eada296ad746da80ef6e5909c50b03b90d08) ) |
| 2144 | ROM_LOAD32_BYTE( "wcb_grm1.0", 0x200000, 0x080000, CRC(8bd31762) SHA1(a7274c8173b4fb04a6aed0b6a622b52a811a8c83) ) |
| 2145 | ROM_LOAD32_BYTE( "wcb_grm1.1", 0x200001, 0x080000, CRC(b3f761fc) SHA1(5880ca1423cea9a7ca3d0875c8db33787f4056d4) ) |
| 2146 | ROM_LOAD32_BYTE( "wcb_grm1.2", 0x200002, 0x080000, CRC(c22f44ad) SHA1(b25b11346ee1812b2be79105faf64faa0302c105) ) |
| 2147 | ROM_LOAD32_BYTE( "wcb_grm1.3", 0x200003, 0x080000, CRC(036084c4) SHA1(6d2e402d2f4565e037a2676ba676e4b1da2b5dfe) ) |
| 2148 | ROM_FILL( 0x400000, 0x480000, 0xff ) |
| 2121 | 2149 | |
| 2122 | 2150 | ROM_REGION16_BE( 0x400000, REGION_SOUND1, ROMREGION_ERASE00 ) |
| 2123 | | ROM_LOAD16_BYTE( "wcb_srom.0", 0x000000, 0x080000, CRC(d42dd283) SHA1(8ef75c398d1c51d2d7d299ac309a2352179864d9) ) /* Newer sound sample roms */ |
| 2124 | | ROM_LOAD16_BYTE( "wcb_srom.1", 0x200000, 0x080000, CRC(7a69ab54) SHA1(d1f9194446e235af69c6ff28af0dccc44ab9b5d3) ) /* Newer sound sample roms */ |
| 2151 | ROM_LOAD16_BYTE( "ensoniq.2mx", 0x000000, 0x200000, CRC(0814ab80) SHA1(e92525f7cf58cf480510c278fea705f67225e58f) ) /* Ensoniq 2MX16U 1350901801 */ |
| 2125 | 2152 | |
| 2126 | | ROM_REGION16_BE( 0x400000, REGION_SOUND2, ROMREGION_ERASE00 ) |
| 2127 | | ROM_LOAD16_BYTE( "wcb_srom.2", 0x000000, 0x080000, CRC(346530a2) SHA1(9951971ad6d368fb718027e18331d12f0a72970c) ) /* Newer sound sample roms */ |
| 2128 | | ROM_LOAD16_BYTE( "wcb_srom.3", 0x200000, 0x040000, CRC(1dfe3a31) SHA1(94947f495692288fbf14fc7796a84c5548a2e8a8) ) /* Newer sound sample roms, rom is a 27C020 in this set */ |
| 2153 | ROM_REGION16_BE( 0x400000, REGION_SOUND3, ROMREGION_ERASE00 ) |
| 2154 | ROM_LOAD16_BYTE( "wcb_srm.0", 0x000000, 0x080000, CRC(115bcd1f) SHA1(c321bf3145c11de1351c8f9cd554ab3d6600e854) ) |
| 2155 | ROM_LOAD16_BYTE( "wcb_srm.1", 0x100000, 0x080000, CRC(87a4a4d8) SHA1(60db2f466686481857eb39b90ac7a19d0a96adac) ) |
| 2129 | 2156 | ROM_END |
| 2130 | 2157 | |
| 2131 | 2158 | |
| 2132 | | ROM_START( wcbwl15 ) /* Version 1.5 (3-tier board set: P/N 1059 Rev 3, P/N 1079 Rev 1 & P/N 1060 Rev 0) */ |
| 2133 | | /* v1.0 & v1.3 for this platform have been confirmed, but not dumped */ |
| 2159 | ROM_START( wcbwl13 ) /* Version 1.3 (3-tier board set: P/N 1059 Rev 3, P/N 1079 Rev 1 & P/N 1060 Rev 0) */ |
| 2134 | 2160 | ROM_REGION16_BE( 0x80000, REGION_USER1, 0 ) |
| 2135 | | ROM_LOAD16_BYTE( "wcb_v15.u83", 0x00000, 0x20000, CRC(3ca9ab85) SHA1(364946dceb3f7279b7d67d9d685a98ba7f4901aa) ) /* Labeled as "WCB V1.5 (U83)" */ |
| 2136 | | ROM_LOAD16_BYTE( "wcb_v15.u88", 0x00001, 0x20000, CRC(d43e6fad) SHA1(fd72f6945e7f5ef86dc28503749d18086dd29906) ) /* Labeled as "WCB V1.5 (U88)" */ |
| 2161 | ROM_LOAD16_BYTE( "wcb_v13.u83", 0x00000, 0x20000, CRC(2b6d284e) SHA1(339951661509d07b69c670b7249f30a616872bdf) ) /* Labeled as "WCB V1.3 (U83)" */ |
| 2162 | ROM_LOAD16_BYTE( "wcb_v13.u88", 0x00001, 0x20000, CRC(039af877) SHA1(2ac9a57e358ab1ccf9a4d18f7992b59f172e31cf) ) /* Labeled as "WCB V1.3 (U88)" */ |
| 2137 | 2163 | |
| 2138 | 2164 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2139 | 2165 | ROM_LOAD( "wcb_snd2.u17", 0x10000, 0x18000, CRC(c14907ba) SHA1(e52fb87c1f9b5847efc0ef15eb7e6c04dcf38110) ) /* Labeled as "WCB SND V2.0" */ |
| 2140 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2166 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2141 | 2167 | |
| 2142 | 2168 | ROM_REGION( 0x880000, REGION_GFX1, 0 ) |
| 2143 | 2169 | /* No known set specificly checks for this, however the GROM data may be in the form of four 8 Meg roms: |
| r1463 | r1464 | |
| 2172 | 2198 | |
| 2173 | 2199 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2174 | 2200 | ROM_LOAD( "wcb_snd2.u17", 0x10000, 0x18000, CRC(c14907ba) SHA1(e52fb87c1f9b5847efc0ef15eb7e6c04dcf38110) ) /* Labeled as "WCB SND V2.0" */ |
| 2175 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2201 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2176 | 2202 | |
| 2177 | 2203 | ROM_REGION( 0x880000, REGION_GFX1, 0 ) |
| 2178 | 2204 | /* No known set specificly checks for this, however the GROM data may be in the form of four 8 Meg roms: |
| r1463 | r1464 | |
| 2251 | 2277 | |
| 2252 | 2278 | ROM_REGION( 0x48000, REGION_CPU2, 0 ) |
| 2253 | 2279 | ROM_LOAD( "sfmsndv1.u23", 0x10000, 0x38000, CRC(10d85366) SHA1(10d539c3ba37e277642c0c5888cb1886fb0f55fc) ) |
| 2254 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2280 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2255 | 2281 | |
| 2256 | 2282 | ROM_REGION( 0x2080000, REGION_GFX1, 0 ) |
| 2257 | 2283 | ROM_LOAD32_BYTE( "rm0-0.bin", 0x0000000, 0x400000, CRC(09ef29cb) SHA1(430da5b00554582391478849d5b1547fe12eedbe) ) |
| r1463 | r1464 | |
| 2284 | 2310 | |
| 2285 | 2311 | ROM_REGION( 0x48000, REGION_CPU2, 0 ) |
| 2286 | 2312 | ROM_LOAD( "sfmsndv1.u23", 0x10000, 0x38000, CRC(10d85366) SHA1(10d539c3ba37e277642c0c5888cb1886fb0f55fc) ) |
| 2287 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2313 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2288 | 2314 | |
| 2289 | 2315 | ROM_REGION( 0x2080000, REGION_GFX1, 0 ) |
| 2290 | 2316 | ROM_LOAD32_BYTE( "rm0-0.bin", 0x0000000, 0x400000, CRC(09ef29cb) SHA1(430da5b00554582391478849d5b1547fe12eedbe) ) |
| r1463 | r1464 | |
| 2317 | 2343 | |
| 2318 | 2344 | ROM_REGION( 0x48000, REGION_CPU2, 0 ) |
| 2319 | 2345 | ROM_LOAD( "sfmsndv1.u23", 0x10000, 0x38000, CRC(10d85366) SHA1(10d539c3ba37e277642c0c5888cb1886fb0f55fc) ) |
| 2320 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2346 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2321 | 2347 | |
| 2322 | 2348 | ROM_REGION( 0x2080000, REGION_GFX1, 0 ) |
| 2323 | 2349 | ROM_LOAD32_BYTE( "rm0-0.bin", 0x0000000, 0x400000, CRC(09ef29cb) SHA1(430da5b00554582391478849d5b1547fe12eedbe) ) |
| r1463 | r1464 | |
| 2383 | 2409 | |
| 2384 | 2410 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2385 | 2411 | ROM_LOAD( "shotsnd.u88", 0x10000, 0x18000, CRC(e37d599d) SHA1(105f91e968ecf553d910a97726ddc536289bbb2b) ) |
| 2386 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2412 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2387 | 2413 | |
| 2388 | 2414 | ROM_REGION( 0x800000, REGION_GFX1, 0 ) |
| 2389 | 2415 | ROM_LOAD32_BYTE( "shf_grom.0_0", 0x000000, 0x80000, CRC(832a3d6a) SHA1(443328fa61b79c93ec6c9d24893b2ec38358a905) ) |
| r1463 | r1464 | |
| 2418 | 2444 | |
| 2419 | 2445 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2420 | 2446 | ROM_LOAD( "shotsnd.u88", 0x10000, 0x18000, CRC(e37d599d) SHA1(105f91e968ecf553d910a97726ddc536289bbb2b) ) |
| 2421 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2447 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2422 | 2448 | |
| 2423 | 2449 | ROM_REGION( 0x800000, REGION_GFX1, 0 ) |
| 2424 | 2450 | ROM_LOAD32_BYTE( "shf_grom.0_0", 0x000000, 0x80000, CRC(832a3d6a) SHA1(443328fa61b79c93ec6c9d24893b2ec38358a905) ) |
| r1463 | r1464 | |
| 2453 | 2479 | |
| 2454 | 2480 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2455 | 2481 | ROM_LOAD( "shotsnd.u88", 0x10000, 0x18000, CRC(e37d599d) SHA1(105f91e968ecf553d910a97726ddc536289bbb2b) ) |
| 2456 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2482 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2457 | 2483 | |
| 2458 | 2484 | ROM_REGION( 0x800000, REGION_GFX1, 0 ) |
| 2459 | 2485 | ROM_LOAD32_BYTE( "shf_grom.0_0", 0x000000, 0x80000, CRC(832a3d6a) SHA1(443328fa61b79c93ec6c9d24893b2ec38358a905) ) |
| r1463 | r1464 | |
| 2488 | 2514 | |
| 2489 | 2515 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2490 | 2516 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 2491 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2517 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2492 | 2518 | |
| 2493 | 2519 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 2494 | 2520 | ROM_LOAD32_BYTE( "gtg3_grm.0_0", 0x000000, 0x80000, CRC(1b10379d) SHA1(b6d61771e2bc3909ea4229777867b217a3e9e580) ) |
| r1463 | r1464 | |
| 2815 | 2841 | |
| 2816 | 2842 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2817 | 2843 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 2818 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2844 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2819 | 2845 | |
| 2820 | 2846 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 2821 | 2847 | ROM_LOAD32_BYTE( "gtg3_grm.0_0", 0x000000, 0x80000, CRC(1b10379d) SHA1(b6d61771e2bc3909ea4229777867b217a3e9e580) ) |
| r1463 | r1464 | |
| 2846 | 2872 | |
| 2847 | 2873 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2848 | 2874 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 2849 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2875 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2850 | 2876 | |
| 2851 | 2877 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 2852 | 2878 | ROM_LOAD32_BYTE( "gtg38grm.0_0", 0x000000, 0x100000, CRC(22c481b7) SHA1(399bffec5e3b27aec2ebd8d7d49689b92f453e39) ) /* actually labeled "GTG3 GROM 0_0**" ect */ |
| r1463 | r1464 | |
| 2877 | 2903 | |
| 2878 | 2904 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2879 | 2905 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 2880 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2906 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2881 | 2907 | |
| 2882 | 2908 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 2883 | 2909 | ROM_LOAD32_BYTE( "gt97_grm.0_0", 0x000000, 0x80000, CRC(81784aaf) SHA1(9544ed2087ca5f71c747e3b782513614937a51ed) ) |
| r1463 | r1464 | |
| 2908 | 2934 | |
| 2909 | 2935 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2910 | 2936 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 2911 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2937 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2912 | 2938 | |
| 2913 | 2939 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 2914 | 2940 | ROM_LOAD32_BYTE( "gt97_grm.0_0", 0x000000, 0x80000, CRC(81784aaf) SHA1(9544ed2087ca5f71c747e3b782513614937a51ed) ) |
| r1463 | r1464 | |
| 2939 | 2965 | |
| 2940 | 2966 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2941 | 2967 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 2942 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2968 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2943 | 2969 | |
| 2944 | 2970 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 2945 | 2971 | ROM_LOAD32_BYTE( "gt97_grm.0_0", 0x000000, 0x80000, CRC(81784aaf) SHA1(9544ed2087ca5f71c747e3b782513614937a51ed) ) |
| r1463 | r1464 | |
| 2970 | 2996 | |
| 2971 | 2997 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 2972 | 2998 | ROM_LOAD( "gt322_nr.u23", 0x10000, 0x18000, CRC(04effd73) SHA1(4277031655f8de851eba0e4134ba619a12f5dd4a) ) |
| 2973 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2999 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 2974 | 3000 | |
| 2975 | 3001 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 2976 | 3002 | ROM_LOAD32_BYTE( "gt97_grm.0_0", 0x000000, 0x80000, CRC(81784aaf) SHA1(9544ed2087ca5f71c747e3b782513614937a51ed) ) |
| r1463 | r1464 | |
| 3001 | 3027 | |
| 3002 | 3028 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3003 | 3029 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3004 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3030 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3005 | 3031 | |
| 3006 | 3032 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3007 | 3033 | ROM_LOAD32_BYTE( "gt97_grm.0_0", 0x000000, 0x80000, CRC(81784aaf) SHA1(9544ed2087ca5f71c747e3b782513614937a51ed) ) |
| r1463 | r1464 | |
| 3032 | 3058 | |
| 3033 | 3059 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3034 | 3060 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3035 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3061 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3036 | 3062 | |
| 3037 | 3063 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3038 | 3064 | ROM_LOAD32_BYTE( "gt97_grm.0_0", 0x000000, 0x80000, CRC(81784aaf) SHA1(9544ed2087ca5f71c747e3b782513614937a51ed) ) |
| r1463 | r1464 | |
| 3063 | 3089 | |
| 3064 | 3090 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3065 | 3091 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3066 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3092 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3067 | 3093 | |
| 3068 | 3094 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3069 | 3095 | ROM_LOAD32_BYTE( "gt97_grm.0_0", 0x000000, 0x80000, CRC(81784aaf) SHA1(9544ed2087ca5f71c747e3b782513614937a51ed) ) |
| r1463 | r1464 | |
| 3094 | 3120 | |
| 3095 | 3121 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3096 | 3122 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3097 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3123 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3098 | 3124 | |
| 3099 | 3125 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3100 | 3126 | ROM_LOAD32_BYTE( "gt98_grm.0_0", 0x000000, 0x80000, CRC(2d79492b) SHA1(16d66d937c34ddf616f31cba0d285326a31cad85) ) |
| r1463 | r1464 | |
| 3125 | 3151 | |
| 3126 | 3152 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3127 | 3153 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3128 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3154 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3129 | 3155 | |
| 3130 | 3156 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3131 | 3157 | ROM_LOAD32_BYTE( "gt98_grm.0_0", 0x000000, 0x80000, CRC(2d79492b) SHA1(16d66d937c34ddf616f31cba0d285326a31cad85) ) |
| r1463 | r1464 | |
| 3156 | 3182 | |
| 3157 | 3183 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3158 | 3184 | ROM_LOAD( "gt322_nr.u23", 0x10000, 0x18000, CRC(04effd73) SHA1(4277031655f8de851eba0e4134ba619a12f5dd4a) ) |
| 3159 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3185 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3160 | 3186 | |
| 3161 | 3187 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3162 | 3188 | ROM_LOAD32_BYTE( "gt98_grm.0_0", 0x000000, 0x80000, CRC(2d79492b) SHA1(16d66d937c34ddf616f31cba0d285326a31cad85) ) |
| r1463 | r1464 | |
| 3187 | 3213 | |
| 3188 | 3214 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3189 | 3215 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3190 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3216 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3191 | 3217 | |
| 3192 | 3218 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3193 | 3219 | ROM_LOAD32_BYTE( "gt98_grm.0_0", 0x000000, 0x80000, CRC(2d79492b) SHA1(16d66d937c34ddf616f31cba0d285326a31cad85) ) |
| r1463 | r1464 | |
| 3218 | 3244 | |
| 3219 | 3245 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3220 | 3246 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3221 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3247 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3222 | 3248 | |
| 3223 | 3249 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3224 | 3250 | ROM_LOAD32_BYTE( "gt99_grm.0_0", 0x000000, 0x80000, CRC(c22b50f9) SHA1(9e8acfce6cc30adc150b602d026c00fa1fb7747f) ) |
| r1463 | r1464 | |
| 3286 | 3312 | |
| 3287 | 3313 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3288 | 3314 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3289 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3315 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3290 | 3316 | |
| 3291 | 3317 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3292 | 3318 | ROM_LOAD32_BYTE( "gt99_grm.0_0", 0x000000, 0x80000, CRC(c22b50f9) SHA1(9e8acfce6cc30adc150b602d026c00fa1fb7747f) ) |
| r1463 | r1464 | |
| 3320 | 3346 | |
| 3321 | 3347 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3322 | 3348 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3323 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3349 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3324 | 3350 | |
| 3325 | 3351 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3326 | 3352 | ROM_LOAD32_BYTE( "gt99_grm.0_0", 0x000000, 0x80000, CRC(c22b50f9) SHA1(9e8acfce6cc30adc150b602d026c00fa1fb7747f) ) |
| r1463 | r1464 | |
| 3354 | 3380 | |
| 3355 | 3381 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3356 | 3382 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3357 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3383 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3358 | 3384 | |
| 3359 | 3385 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3360 | 3386 | ROM_LOAD32_BYTE( "gt2k_grm.0_0", 0x000000, 0x80000, CRC(c22b50f9) SHA1(9e8acfce6cc30adc150b602d026c00fa1fb7747f) ) |
| r1463 | r1464 | |
| 3422 | 3448 | |
| 3423 | 3449 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3424 | 3450 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3425 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3451 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3426 | 3452 | |
| 3427 | 3453 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3428 | 3454 | ROM_LOAD32_BYTE( "gt2k_grm.0_0", 0x000000, 0x80000, CRC(c22b50f9) SHA1(9e8acfce6cc30adc150b602d026c00fa1fb7747f) ) |
| r1463 | r1464 | |
| 3456 | 3482 | |
| 3457 | 3483 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3458 | 3484 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3459 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3485 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3460 | 3486 | |
| 3461 | 3487 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3462 | 3488 | ROM_LOAD32_BYTE( "gt2k_grm.0_0", 0x000000, 0x80000, CRC(c22b50f9) SHA1(9e8acfce6cc30adc150b602d026c00fa1fb7747f) ) |
| r1463 | r1464 | |
| 3491 | 3517 | |
| 3492 | 3518 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3493 | 3519 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3494 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3520 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3495 | 3521 | |
| 3496 | 3522 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3497 | 3523 | ROM_LOAD32_BYTE( "gtc_grom.0_0", 0x000000, 0x80000, CRC(c22b50f9) SHA1(9e8acfce6cc30adc150b602d026c00fa1fb7747f) ) |
| r1463 | r1464 | |
| 3525 | 3551 | |
| 3526 | 3552 | ROM_REGION( 0x28000, REGION_CPU2, 0 ) |
| 3527 | 3553 | ROM_LOAD( "gt_nr.u88", 0x10000, 0x18000, CRC(2cee9e98) SHA1(02edac7abab2335c1cd824d1d9b26aa32238a2de) ) |
| 3528 | | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3554 | ROM_CONTINUE( 0x08000, 0x08000 ) |
| 3529 | 3555 | |
| 3530 | 3556 | ROM_REGION( 0x600000, REGION_GFX1, 0 ) |
| 3531 | 3557 | ROM_LOAD32_BYTE( "gtc_grom.0_0", 0x000000, 0x80000, CRC(c22b50f9) SHA1(9e8acfce6cc30adc150b602d026c00fa1fb7747f) ) |
| r1463 | r1464 | |
| 3857 | 3883 | GAME( 1995, wcbowl, 0, sftm, wcbowln, wcbowln, ROT0, "Incredible Technologies", "World Class Bowling (v1.66)" , 0) /* PIC 16C54 labeled as ITBWL-3 */ |
| 3858 | 3884 | GAME( 1995, wcbwl165, wcbowl, sftm, shufbowl, wcbowln, ROT0, "Incredible Technologies", "World Class Bowling (v1.65)" , 0) /* PIC 16C54 labeled as ITBWL-3 */ |
| 3859 | 3885 | GAME( 1995, wcbwl161, wcbowl, sftm, shufbowl, wcbowln, ROT0, "Incredible Technologies", "World Class Bowling (v1.61)" , 0) /* PIC 16C54 labeled as ITBWL-3 */ |
| 3860 | | GAME( 1997, wcbwl140, wcbowldx, wcbowlt, wcbowldx, wcbowlt, ROT0, "Incredible Technologies", "World Class Bowling Tournament (v1.40)" , 0) /* PIC 16C54 labeled as ITBWL-4 */ |
| 3861 | 3886 | GAME( 1995, wcbwl15, wcbowl, bloodstm, wcbowl, wcbowl, ROT0, "Incredible Technologies", "World Class Bowling (v1.5)" , 0) /* PIC 16C54 labeled as ITBWL-1 */ |
| 3887 | GAME( 1995, wcbwl13, wcbowl, bloodstm, wcbowl, wcbowl, ROT0, "Incredible Technologies", "World Class Bowling (v1.3)" , 0) /* PIC 16C54 labeled as ITBWL-1 */ |
| 3862 | 3888 | GAME( 1995, wcbwl12, wcbowl, bloodstm, wcbowl, wcbowl, ROT0, "Incredible Technologies", "World Class Bowling (v1.2)" , 0) /* PIC 16C54 labeled as ITBWL-1 */ |
| 3863 | 3889 | GAME( 1995, sftm, 0, sftm, sftm, sftm, ROT0, "Capcom/Incredible Technologies", "Street Fighter: The Movie (v1.12)" , 0) /* PIC 16C54 labeled as ITSF-1 */ |
| 3864 | 3890 | GAME( 1995, sftm111, sftm, sftm, sftm, sftm110, ROT0, "Capcom/Incredible Technologies", "Street Fighter: The Movie (v1.11)" , 0) /* PIC 16C54 labeled as ITSF-1 */ |
| r1463 | r1464 | |
| 3867 | 3893 | GAME( 1997, shufshot, 0, sftm, shufshot, shufshot, ROT0, "Strata/Incredible Technologies", "Shuffleshot (v1.40)" , 0) /* PIC 16C54 labeled as ITSHF-1 */ |
| 3868 | 3894 | GAME( 1997, sshot139, shufshot, sftm, shufshot, shufshot, ROT0, "Strata/Incredible Technologies", "Shuffleshot (v1.39)" , 0) /* PIC 16C54 labeled as ITSHF-1 */ |
| 3869 | 3895 | GAME( 1997, sshot137, shufshot, sftm, shufbowl, shufshot, ROT0, "Strata/Incredible Technologies", "Shuffleshot (v1.37)" , 0) /* PIC 16C54 labeled as ITSHF-1 */ |
| 3896 | GAME( 1997, wcbwl140, wcbowldx, tourny, wcbowldx, wcbowlt, ROT0, "Incredible Technologies", "World Class Bowling Tournament (v1.40)" , 0) /* PIC 16C54 labeled as ITBWL-4 */ |
| 3870 | 3897 | GAME( 1999, wcbowldx, 0, sftm, wcbowldx, shufshot, ROT0, "Incredible Technologies", "World Class Bowling Deluxe (v2.00)" , 0) /* PIC 16C54 labeled as ITBWL-4 */ |
| 3871 | 3898 | |
| 3872 | 3899 | /* |
| r1463 | r1464 | |
| 3919 | 3946 | GAME( 1995, gt3dv16, gt3d, sftm, gt3d, gt3d, ROT0, "Incredible Technologies", "Golden Tee 3D Golf (v1.6)" , 0) /* PIC 16C54 labeled as ITGF-1 */ |
| 3920 | 3947 | GAME( 1995, gt3dv15, gt3d, sftm, gt3d, gt3d, ROT0, "Incredible Technologies", "Golden Tee 3D Golf (v1.5)" , 0) /* PIC 16C54 labeled as ITGF-1 */ |
| 3921 | 3948 | GAME( 1995, gt3dv14, gt3d, sftm, gt3d, gt3d, ROT0, "Incredible Technologies", "Golden Tee 3D Golf (v1.4)" , 0) /* PIC 16C54 labeled as ITGF-1 */ |
| 3922 | | GAME( 1995, gt3dt231, gt3d, gt3dt, gt3d, aamat, ROT0, "Incredible Technologies", "Golden Tee 3D Golf Tournament (v2.31)" , 0) /* PIC 16C54 labeled as ITGF-2 */ |
| 3923 | | GAME( 1995, gt3dt211, gt3d, gt3dt, gt3d, aamat, ROT0, "Incredible Technologies", "Golden Tee 3D Golf Tournament (v2.11)" , 0) /* PIC 16C54 labeled as ITGF-2 */ |
| 3949 | GAME( 1995, gt3dt231, gt3d, tourny, gt3d, aamat, ROT0, "Incredible Technologies", "Golden Tee 3D Golf Tournament (v2.31)" , 0) /* PIC 16C54 labeled as ITGF-2 */ |
| 3950 | GAME( 1995, gt3dt211, gt3d, tourny, gt3d, aamat, ROT0, "Incredible Technologies", "Golden Tee 3D Golf Tournament (v2.11)" , 0) /* PIC 16C54 labeled as ITGF-2 */ |
| 3924 | 3951 | |
| 3925 | 3952 | GAME( 1997, gt97, 0, sftm, gt97, aama, ROT0, "Incredible Technologies", "Golden Tee '97 (v1.30)" , 0) /* PIC 16C54 labeled as ITGFS-3 */ |
| 3926 | 3953 | GAME( 1997, gt97v122, gt97, sftm, gt97o, aama, ROT0, "Incredible Technologies", "Golden Tee '97 (v1.22)" , 0) /* PIC 16C54 labeled as ITGFS-3 */ |
| 3927 | 3954 | GAME( 1997, gt97v121, gt97, sftm, gt97o, aama, ROT0, "Incredible Technologies", "Golden Tee '97 (v1.21)" , 0) /* PIC 16C54 labeled as ITGFS-3 */ |
| 3928 | 3955 | GAME( 1997, gt97s121, gt97, sftm, gt97s, s_ver, ROT0, "Incredible Technologies", "Golden Tee '97 (v1.21S)" , 0) /* PIC 16C54 labeled as ITGFM-3 */ |
| 3929 | 3956 | GAME( 1997, gt97v120, gt97, sftm, gt97o, aama, ROT0, "Incredible Technologies", "Golden Tee '97 (v1.20)" , 0) /* PIC 16C54 labeled as ITGFS-3 */ |
| 3930 | | GAME( 1997, gt97t240, gt97, gt3dt, gt97o, aamat, ROT0, "Incredible Technologies", "Golden Tee '97 Tournament (v2.40)" , 0) /* PIC 16C54 labeled as ITGFS-3 */ |
| 3931 | | GAME( 1997, gt97t243, gt97, gt3dt, gt97o, aamat, ROT0, "Incredible Technologies", "Golden Tee '97 Tournament (v2.43)" , 0) /* PIC 16C54 labeled as ITGFS-3 */ |
| 3957 | GAME( 1997, gt97t240, gt97, tourny, gt97o, aamat, ROT0, "Incredible Technologies", "Golden Tee '97 Tournament (v2.40)" , 0) /* PIC 16C54 labeled as ITGFS-3 */ |
| 3958 | GAME( 1997, gt97t243, gt97, tourny, gt97o, aamat, ROT0, "Incredible Technologies", "Golden Tee '97 Tournament (v2.43)" , 0) /* PIC 16C54 labeled as ITGFS-3 */ |
| 3932 | 3959 | |
| 3933 | 3960 | GAME( 1998, gt98, 0, sftm, aama, aama, ROT0, "Incredible Technologies", "Golden Tee '98 (v1.10)" , 0) /* PIC 16C54 labeled as ITGF98 */ |
| 3934 | 3961 | GAME( 1998, gt98v100, gt98, sftm, gt98, aama, ROT0, "Incredible Technologies", "Golden Tee '98 (v1.00)" , 0) /* PIC 16C54 labeled as ITGF98 */ |
| 3935 | 3962 | GAME( 1998, gt98s100, gt98, sftm, gt98s, s_ver, ROT0, "Incredible Technologies", "Golden Tee '98 (v1.00S)" , 0) /* PIC 16C54 labeled as ITGF98-M */ |
| 3936 | | GAME( 1998, gt98t303, gt98, gt3dt, gt98s, aamat, ROT0, "Incredible Technologies", "Golden Tee '98 Tournament (v3.03)" , 0) /* PIC 16C54 labeled as ITGF98 */ |
| 3963 | GAME( 1998, gt98t303, gt98, tourny, gt98s, aamat, ROT0, "Incredible Technologies", "Golden Tee '98 Tournament (v3.03)" , 0) /* PIC 16C54 labeled as ITGF98 */ |
| 3937 | 3964 | |
| 3938 | 3965 | GAME( 1999, gt99, 0, sftm, aama, aama, ROT0, "Incredible Technologies", "Golden Tee '99 (v1.00)" , 0) /* PIC 16C54 labeled as ITGF99 */ |
| 3939 | 3966 | GAME( 1999, gt99s100, gt99, sftm, s_ver, s_ver, ROT0, "Incredible Technologies", "Golden Tee '99 (v1.00S)" , 0) /* PIC 16C54 labeled as ITGF99-M */ |
| 3940 | | GAME( 1999, gt99t400, gt99, gt3dt, gt98s, aamat, ROT0, "Incredible Technologies", "Golden Tee '99 Tournament (v4.00)" , 0) /* PIC 16C54 labeled as ITGF99 */ |
| 3941 | | GAME( 1999, gtroyal, gt99, gt3dt, gt98s, aamat, ROT0, "Incredible Technologies", "Golden Tee Royal Edition Tournament (v4.02)" , 0) /* PIC 16C54 labeled as ITGF99I */ |
| 3967 | GAME( 1999, gt99t400, gt99, tourny, gt98s, aamat, ROT0, "Incredible Technologies", "Golden Tee '99 Tournament (v4.00)" , 0) /* PIC 16C54 labeled as ITGF99 */ |
| 3968 | GAME( 1999, gtroyal, gt99, tourny, gt98s, aamat, ROT0, "Incredible Technologies", "Golden Tee Royal Edition Tournament (v4.02)" , 0) /* PIC 16C54 labeled as ITGF99I */ |
| 3942 | 3969 | |
| 3943 | 3970 | GAME( 2000, gt2k, 0, sftm, aama, aama, ROT0, "Incredible Technologies", "Golden Tee 2K (v1.00)" , 0) /* PIC 16C54 labeled as ITGF2K */ |
| 3944 | 3971 | GAME( 2000, gt2ks100, gt2k, sftm, s_ver, s_ver, ROT0, "Incredible Technologies", "Golden Tee 2K (v1.00S)" , 0) /* PIC 16C54 labeled as ITGF2K-M */ |
| 3945 | | GAME( 2000, gt2kt500, gt2k, gt3dt, gt98s, aamat, ROT0, "Incredible Technologies", "Golden Tee 2K Tournament (v5.00)" , 0) /* PIC 16C54 labeled as ITGF2K */ |
| 3946 | | GAME( 2002, gtsuprem, gt2k, gt3dt, gt98s, aamat, ROT0, "Incredible Technologies", "Golden Tee Supreme Edition Tournament (v5.10)" , 0) /* PIC 16C54 labeled as ITGF2K-I */ |
| 3972 | GAME( 2000, gt2kt500, gt2k, tourny, gt98s, aamat, ROT0, "Incredible Technologies", "Golden Tee 2K Tournament (v5.00)" , 0) /* PIC 16C54 labeled as ITGF2K */ |
| 3973 | GAME( 2002, gtsuprem, gt2k, tourny, gt98s, aamat, ROT0, "Incredible Technologies", "Golden Tee Supreme Edition Tournament (v5.10)" , 0) /* PIC 16C54 labeled as ITGF2K-I */ |
| 3947 | 3974 | |
| 3948 | 3975 | GAME( 2001, gtclassc, 0, sftm, aama, aama, ROT0, "Incredible Technologies", "Golden Tee Classic (v1.00)" , 0) /* PIC 16C54 labeled as ITGFCL */ |
| 3949 | 3976 | GAME( 2001, gtclassp, gtclassc, sftm, aama, gtclassp, ROT0, "Incredible Technologies", "Golden Tee Classic (v1.00) Alt" , 0) /* PIC 16C54 labeled as ITGFCL */ |
src/mame/drivers/tx1.c
| r1463 | r1464 | |
| 1 | | /*====================================================================*/ |
| 2 | | /* TX-1/Buggy Boy (Tatsumi) Hardware */ |
| 3 | | /* Philip J Bennett 2005 */ |
| 4 | | /*====================================================================*/ |
| 1 | /*************************************************************************** |
| 5 | 2 | |
| 6 | | /* |
| 7 | | Notes: |
| 8 | | ====== |
| 9 | | TX-1 |
| 10 | | ==== |
| 11 | | * ROM dumps incomplete. |
| 12 | | * Arithmetic unit/interface not implemented. |
| 13 | | * Several sound related things are guessed (I don't have the relevent schematic sheet or an actual PCB to verify). |
| 3 | Tatsumi TX-1/Buggy Boy hardware |
| 14 | 4 | |
| 15 | | Buggy Boy |
| 16 | | ========= |
| 17 | | * Buggy Boy/Speed Buggy and the copyrights are changed via wire jumper on the sound PCB. |
| 18 | | * Fiddle with dipswitch 'Do Not Change 2' to skip errors if necessary. |
| 19 | | * The 3-monitor version of Buggy Boy is not fully dumped (will be taken care of). |
| 5 | driver by Phil Bennett |
| 20 | 6 | |
| 21 | | * Arithmetic unit/interface not fully implemented/understood. |
| 22 | | * Road hardware emulation is lacking. |
| 23 | | * Object drawing is not fully understood (scale parameters and end of line/sprite flags especially). |
| 24 | | * Discrete sound emulation is not implemented. |
| 25 | | * Character layer scrolling is not implemented. |
| 26 | | * Layer mixing is incorrect. |
| 7 | Games supported: |
| 8 | * TX-1 (1983) [2 sets] |
| 9 | * Buggy Boy (1985) |
| 10 | * Buggy Boy Junior (1986) |
| 27 | 11 | |
| 28 | | * Buggy Boy controls don't work correctly. |
| 29 | | * At some point the slave CPU writes F0 to EVERY 15th memory location. Hmmm. (see PC=fc630) |
| 30 | | * Without ROM patches, the game hangs on bootup (sometimes giving error 22): Z80->8086 communication timeout. |
| 31 | | The Z80<->Main CPU comms needs work (although they work fine during the game). |
| 12 | Notes: |
| 13 | * 'buggyboy' and 'tx1' are preliminary |
| 14 | * 'buggyboy' set is using ROMs from 'buggybjr' for testing purposes |
| 15 | until the original set can be dumped. |
| 32 | 16 | |
| 33 | | Useful memory locations: |
| 34 | | * Score = 0x544 |
| 35 | | * Timer = 0x54A |
| 17 | **************************************************************************** |
| 36 | 18 | |
| 37 | | Buggy Boy Error Codes TX-1 Error Codes |
| 38 | | ===================== ================ |
| 19 | Buggy Boy Error Codes TX-1 Error Codes |
| 20 | ===================== ================ |
| 39 | 21 | |
| 40 | | 1. Main CPU RAM 1. Main microprocessor RAM |
| 41 | | 2. Video (character) RAM 2. Video RAM |
| 42 | | 3. Road/common RAM 3. Common RAM |
| 43 | | 4. Sound RAM 4. Sound RAM |
| 44 | | 5. Main CPU ROM 5. Main microprocessor ROM |
| 45 | | 6. Sound ROM 6. Sound ROM |
| 46 | | 8. Auxillary ROM 10. Interface ROM (time-out error) |
| 47 | | 12. Arithmetic unit 11. Common RAM (access for arithmetic CPU) |
| 48 | | 22. Main 8086-Z80 timeout 12. Common RAM (access for arithmetic CPU) |
| 49 | | 13. Arithmetic RAM |
| 50 | | 14. Common RAM (access for arithmetic CPU) |
| 51 | | 15. Object RAM |
| 52 | | 16. Arithmetic ROM |
| 53 | | 17. Data ROM (Checksum) |
| 54 | | 18. Arithmetic unit |
| 55 | | */ |
| 22 | 1 Main CPU RAM 1 Main microprocessor RAM |
| 23 | 2 Video (character) RAM 2 Video RAM |
| 24 | 3 Road/common RAM 3 Common RAM |
| 25 | 4 Sound RAM 4 Sound RAM |
| 26 | 5 Main CPU ROM 5 Main microprocessor ROM |
| 27 | 6 Sound ROM 6 Sound ROM |
| 28 | 8 Auxillary ROM 10 Interface ROM (time-out error) |
| 29 | 12 Arithmetic unit 11 Common RAM (access for arithmetic CPU) |
| 30 | 22 Main 8086-Z80 timeout 12 Common RAM (access for arithmetic CPU) |
| 31 | 13 Arithmetic RAM |
| 32 | 14 Common RAM (access for arithmetic CPU) |
| 33 | 15 Object RAM |
| 34 | 16 Arithmetic ROM |
| 35 | 17 Data ROM (checksum) |
| 36 | 18 Arithmetic unit |
| 56 | 37 | |
| 38 | ***************************************************************************/ |
| 39 | |
| 57 | 40 | #include "driver.h" |
| 58 | | #include "machine/8255ppi.h" |
| 59 | 41 | #include "sound/ay8910.h" |
| 42 | #include "sound/custom.h" |
| 60 | 43 | #include "cpu/i86/i86.h" |
| 61 | 44 | #include "rendlay.h" |
| 45 | #include "tx1.h" |
| 62 | 46 | |
| 63 | | #define PRINT_CRT 0 |
| 64 | | #define ROM_PATCHES 1 |
| 47 | /************************************* |
| 48 | * |
| 49 | * Globals |
| 50 | * |
| 51 | *************************************/ |
| 52 | UINT16 *tx1_math_ram; |
| 53 | static UINT8 *z80_ram; |
| 54 | static UINT8 tx1_ppi_latch_a; |
| 55 | static UINT8 tx1_ppi_latch_b; |
| 56 | static UINT32 ts; |
| 65 | 57 | |
| 66 | | static int TS, z80_int = 0; |
| 67 | 58 | |
| 68 | | UINT16 *tx1_vram; |
| 69 | | static UINT16 *tx1_object_ram; |
| 70 | | |
| 71 | | UINT16 *buggyboy_vram; /* Tile RAM (three monitor) */ |
| 72 | | UINT16 *buggyb1_vram; /* Tile RAM (single monitor) */ |
| 73 | | static UINT8 *z80_ram; /* Main 8086/Z80 shared RAM */ |
| 74 | | UINT16 *bb_objram; |
| 75 | | UINT16 *bb_sky; /* Sky register */ |
| 76 | | static UINT16 *bb_rcram; |
| 77 | | |
| 78 | | static size_t tx1_objectram_size; |
| 79 | | size_t bb_objectram_size; |
| 80 | | static size_t bb_rcram_size; |
| 81 | | |
| 82 | | tilemap *tx1_tilemap; |
| 83 | | tilemap *buggyboy_tilemap; |
| 84 | | tilemap *buggyb1_tilemap; |
| 85 | | |
| 86 | | /* machine/tx1.c */ |
| 87 | | void MMI_74S516(int ins, UINT16 *data); |
| 88 | | READ16_HANDLER( BB_AU_R ); |
| 89 | | WRITE16_HANDLER( BB_AU_W ); |
| 90 | | |
| 91 | | /* video/tx1.c */ |
| 92 | | WRITE16_HANDLER( tx1_vram_w ); |
| 93 | | VIDEO_START( tx1 ); |
| 94 | | VIDEO_UPDATE( tx1 ); |
| 95 | | |
| 96 | | PALETTE_INIT( buggyboy ); |
| 97 | | WRITE16_HANDLER( buggyboy_vram_w ); |
| 98 | | WRITE16_HANDLER( buggyb1_vram_w ); |
| 99 | | VIDEO_START( buggyboy ); |
| 100 | | VIDEO_UPDATE( buggyboy ); |
| 101 | | VIDEO_START( buggyb1 ); |
| 102 | | VIDEO_UPDATE( buggyb1 ); |
| 103 | | |
| 104 | | |
| 105 | | static INTERRUPT_GEN( main_irq ) |
| 59 | /* Main CPU and Z80 synchronisation */ |
| 60 | static WRITE16_HANDLER( z80_busreq_w ) |
| 106 | 61 | { |
| 107 | | cpunum_set_input_line_and_vector(0, 0, HOLD_LINE, 0x80/4); |
| 62 | cpunum_set_input_line(2, INPUT_LINE_HALT, (data & 1) ? CLEAR_LINE : ASSERT_LINE); |
| 108 | 63 | } |
| 109 | 64 | |
| 110 | | /* Periodic Z80 interrupt */ |
| 111 | | static INTERRUPT_GEN( z80_irq ) |
| 65 | static WRITE16_HANDLER( resume_math_w ) |
| 112 | 66 | { |
| 113 | | if(!z80_int){ |
| 114 | | cpunum_set_input_line(2, 0, HOLD_LINE); |
| 115 | | z80_int = 1; |
| 116 | | } |
| 67 | cpunum_set_input_line(1, INPUT_LINE_TEST, ASSERT_LINE); |
| 117 | 68 | } |
| 118 | 69 | |
| 119 | | |
| 120 | | /* HD46505S-2 CRT Controller */ |
| 121 | | /* Buggy Boy: The main 8086 at F003C expects non-zero value or else jump to 4000:0000 and execute crap */ |
| 122 | | static READ16_HANDLER(crt_read) |
| 70 | static WRITE16_HANDLER( halt_math_w ) |
| 123 | 71 | { |
| 124 | | return 1; |
| 72 | cpunum_set_input_line(1, INPUT_LINE_TEST, CLEAR_LINE); |
| 125 | 73 | } |
| 126 | 74 | |
| 127 | | /* Remove this eventually */ |
| 128 | | static WRITE16_HANDLER(crt_write) |
| 75 | /* Z80 can trigger an interrupt itself */ |
| 76 | static WRITE8_HANDLER( z80_intreq_w ) |
| 129 | 77 | { |
| 130 | | #if PRINT_CRT |
| 131 | | if (ACCESSING_LSB) |
| 132 | | { |
| 133 | | data &= 0xff; |
| 134 | | if(offset==0) |
| 135 | | { |
| 136 | | switch (data) |
| 137 | | { |
| 138 | | case 0:mame_printf_debug("Horizontal Total"); |
| 139 | | break; |
| 140 | | case 1:mame_printf_debug("Horizontal displayed"); |
| 141 | | break; |
| 142 | | case 2:mame_printf_debug("Horizontal sync position"); |
| 143 | | break; |
| 144 | | case 3:mame_printf_debug("Horizontal sync width"); |
| 145 | | break; |
| 146 | | case 4:mame_printf_debug("Vertical total"); |
| 147 | | break; |
| 148 | | case 5:mame_printf_debug("Vertical total adj"); |
| 149 | | break; |
| 150 | | case 6:mame_printf_debug("Vertical displayed"); |
| 151 | | break; |
| 152 | | case 7:mame_printf_debug("Vertical sync position"); |
| 153 | | break; |
| 154 | | case 8:mame_printf_debug("Interlace mode"); |
| 155 | | break; |
| 156 | | case 9:mame_printf_debug("Max. scan line address"); |
| 157 | | break; |
| 158 | | case 0xa:mame_printf_debug("Cursror start"); |
| 159 | | break; |
| 160 | | case 0xb:mame_printf_debug("Cursor end"); |
| 161 | | break; |
| 162 | | case 0xc:mame_printf_debug("Start address (h)"); |
| 163 | | break; |
| 164 | | case 0xd:mame_printf_debug("Start address (l)"); |
| 165 | | break; |
| 166 | | case 0xe:mame_printf_debug("Cursor (h)"); |
| 167 | | break; |
| 168 | | case 0xf:mame_printf_debug("Cursor (l)"); |
| 169 | | break; |
| 170 | | case 0x10:mame_printf_debug("Light pen (h))"); |
| 171 | | break; |
| 172 | | case 0x11:mame_printf_debug("Light pen (l)"); |
| 173 | | break; |
| 174 | | } |
| 175 | | } |
| 176 | | if(offset==1) mame_printf_debug("= 0x%x, %d\n",data,data); |
| 177 | | } |
| 178 | | #endif |
| 78 | cpunum_set_input_line(2, 0, HOLD_LINE); |
| 179 | 79 | } |
| 180 | 80 | |
| 181 | | |
| 182 | | /* Main CPU and Z80 synchronisation*/ |
| 183 | | static WRITE16_HANDLER(z80_busreq) |
| 81 | /* Periodic Z80 interrupt */ |
| 82 | static INTERRUPT_GEN( z80_irq ) |
| 184 | 83 | { |
| 185 | | if (ACCESSING_LSB) |
| 186 | | { |
| 187 | | if (data & 0xff) |
| 188 | | cpunum_set_input_line(2, INPUT_LINE_HALT, CLEAR_LINE); |
| 189 | | else |
| 190 | | cpunum_set_input_line(2, INPUT_LINE_HALT, ASSERT_LINE); |
| 191 | | } |
| 84 | cpunum_set_input_line(2, 0, HOLD_LINE); |
| 192 | 85 | } |
| 193 | 86 | |
| 194 | | |
| 195 | | /* Called by main 8086 to wake up slave */ |
| 196 | | static WRITE16_HANDLER(resume_slave) |
| 87 | static READ16_HANDLER( z80_shared_r ) |
| 197 | 88 | { |
| 198 | | cpunum_set_input_line(1, INPUT_LINE_TEST, ASSERT_LINE); |
| 199 | | } |
| 89 | UINT16 result = 0xffff; |
| 200 | 90 | |
| 201 | | static READ16_HANDLER(halt_slave_r) |
| 202 | | { |
| 203 | | cpunum_set_input_line(1, INPUT_LINE_TEST, CLEAR_LINE); |
| 204 | | return 0; |
| 205 | | } |
| 91 | cpuintrf_push_context(2); |
| 92 | result = program_read_byte(offset); |
| 93 | cpuintrf_pop_context(); |
| 206 | 94 | |
| 207 | | /* Called by slave 8086 to halt on WAIT instruction */ |
| 208 | | static void halt_slave(void) |
| 209 | | { |
| 210 | | cpunum_set_input_line(1, INPUT_LINE_TEST, CLEAR_LINE); |
| 95 | return result; |
| 211 | 96 | } |
| 212 | 97 | |
| 213 | | |
| 214 | | static WRITE8_HANDLER(z80_intreq_w) |
| 98 | static WRITE16_HANDLER( z80_shared_w ) |
| 215 | 99 | { |
| 216 | | z80_int=0; |
| 100 | cpuintrf_push_context(2); |
| 101 | program_write_byte(offset, data & 0xff); |
| 102 | cpuintrf_pop_context(); |
| 217 | 103 | } |
| 218 | 104 | |
| 219 | | static READ8_HANDLER(z80_intreq_r) |
| 220 | | { |
| 221 | | z80_int=0; |
| 222 | | return 0; |
| 223 | | } |
| 224 | 105 | |
| 106 | /************************************* |
| 107 | * |
| 108 | * Port definitions |
| 109 | * |
| 110 | *************************************/ |
| 225 | 111 | |
| 226 | | /* Handlers for main CPU<->Z80 RAM */ |
| 227 | | static READ16_HANDLER(z80_shared_r) |
| 228 | | { |
| 229 | | return z80_ram[offset]; |
| 230 | | } |
| 112 | static INPUT_PORTS_START( tx1 ) |
| 113 | PORT_START_TAG("DSW") |
| 114 | PORT_DIPNAME( 0x0003, 0x0003, "Game Cost" ) |
| 115 | PORT_DIPSETTING( 0x0000, "1 Coin Unit for 1 Credit" ) |
| 116 | PORT_DIPSETTING( 0x0001, "2 Coin Units for 1 Credit" ) |
| 117 | PORT_DIPSETTING( 0x0002, "3 Coin Units for 1 Credit" ) |
| 118 | PORT_DIPSETTING( 0x0003, "4 Coin Units for 1 Credit" ) |
| 231 | 119 | |
| 232 | | static WRITE16_HANDLER(z80_shared_w) |
| 233 | | { |
| 234 | | if (ACCESSING_LSB) |
| 235 | | z80_ram[offset] = data; |
| 236 | | } |
| 120 | PORT_DIPNAME( 0x0004, 0x0004, "Left Coin Mechanism" ) |
| 121 | PORT_DIPSETTING( 0x0000, "1 Coin for 1 Coin Unit" ) |
| 122 | PORT_DIPSETTING( 0x0004, "1 Coin for 2 Coin Units" ) |
| 237 | 123 | |
| 238 | | static INPUT_PORTS_START( tx1 ) |
| 239 | | PORT_START_TAG("DSW1") |
| 240 | | PORT_DIPNAME( 0x0700, 0x0300, DEF_STR( Difficulty ) ) |
| 241 | | PORT_DIPSETTING( 0x0000, "A" ) |
| 124 | PORT_DIPNAME( 0x0018, 0x0000, "Right Coin Mechanism" ) |
| 125 | PORT_DIPSETTING( 0x0000, "1 Coin Units 1 Credit" ) |
| 126 | PORT_DIPSETTING( 0x0008, "1 Coin Units 4 Credit" ) |
| 127 | PORT_DIPSETTING( 0x0010, "1 Coin Units 5 Credit" ) |
| 128 | PORT_DIPSETTING( 0x0018, "1 Coin Unit 6 Credit" ) |
| 129 | |
| 130 | PORT_DIPNAME( 0x0700, 0x0300, DEF_STR( Difficulty ) ) |
| 131 | PORT_DIPSETTING( 0x0000, "A (Easiest)" ) |
| 242 | 132 | PORT_DIPSETTING( 0x0100, "B" ) |
| 243 | 133 | PORT_DIPSETTING( 0x0200, "C" ) |
| 244 | 134 | PORT_DIPSETTING( 0x0300, "D" ) |
| 245 | 135 | PORT_DIPSETTING( 0x0400, "E" ) |
| 246 | 136 | PORT_DIPSETTING( 0x0500, "F" ) |
| 247 | 137 | PORT_DIPSETTING( 0x0600, "G" ) |
| 248 | | PORT_DIPSETTING( 0x0700, "H" ) |
| 138 | PORT_DIPSETTING( 0x0700, "H (Hardest)" ) |
| 249 | 139 | |
| 250 | 140 | PORT_DIPNAME( 0x1800, 0x0800, DEF_STR( Game_Time ) ) |
| 251 | | PORT_DIPSETTING( 0x0000, "A" ) |
| 141 | PORT_DIPSETTING( 0x0000, "A (Longest)" ) |
| 252 | 142 | PORT_DIPSETTING( 0x0800, "B" ) |
| 253 | 143 | PORT_DIPSETTING( 0x1000, "C" ) |
| 254 | | PORT_DIPSETTING( 0x1800, "D" ) |
| 144 | PORT_DIPSETTING( 0x1800, "D (Shortest)" ) |
| 255 | 145 | |
| 256 | 146 | PORT_DIPNAME( 0xe000, 0xe000, "Bonus Adder" ) |
| 257 | | PORT_DIPSETTING( 0x0000, "No Bonus" ) |
| 258 | | PORT_DIPSETTING( 0x2000, "2 Coin Units for 1 Credit" ) |
| 259 | | PORT_DIPSETTING( 0x4000, "3 Coin Units for 1 Credit" ) |
| 260 | | PORT_DIPSETTING( 0x6000, "4 Coin Units for 1 Credit" ) |
| 261 | | PORT_DIPSETTING( 0x8000, "5 Coin Units for 1 Credit" ) |
| 262 | | PORT_DIPSETTING( 0xa000, "4 Coin Units for 2 Credit" ) |
| 263 | | PORT_DIPSETTING( 0xc000, DEF_STR( Free_Play ) ) |
| 264 | | PORT_DIPSETTING( 0xe000, "No Bonus" ) |
| 147 | PORT_DIPSETTING( 0x0000, "No Bonus" ) |
| 148 | PORT_DIPSETTING( 0x2000, "2 Coin Units for 1 Credit" ) |
| 149 | PORT_DIPSETTING( 0x4000, "3 Coin Units for 1 Credit" ) |
| 150 | PORT_DIPSETTING( 0x6000, "4 Coin Units for 1 Credit" ) |
| 151 | PORT_DIPSETTING( 0x8000, "5 Coin Units for 1 Credit" ) |
| 152 | PORT_DIPSETTING( 0xa000, "4 Coin Units for 2 Credit" ) |
| 153 | PORT_DIPSETTING( 0xc000, DEF_STR( Free_Play ) ) |
| 154 | PORT_DIPSETTING( 0xe000, "No Bonus" ) |
| 265 | 155 | |
| 266 | | /* These don't correspond to the Atari manual :( */ |
| 267 | | PORT_DIPNAME( 0x0003, 0x0003, "Game Cost" ) |
| 268 | | PORT_DIPSETTING( 0x0000, "1 Coin Unit for 1 Credit" ) |
| 269 | | PORT_DIPSETTING( 0x0001, "2 Coin Units for 1 Credit" ) |
| 270 | | PORT_DIPSETTING( 0x0002, "3 Coin Units for 1 Credit" ) |
| 271 | | PORT_DIPSETTING( 0x0003, "4 Coin Units for 1 Credit" ) |
| 156 | PORT_START_TAG("AN_STEERING") |
| 157 | PORT_BIT( 0x0f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(25) |
| 272 | 158 | |
| 273 | | PORT_DIPNAME( 0x0004, 0x0004, "Left Coin Mechanism" ) |
| 274 | | PORT_DIPSETTING( 0x0000, "1 Coin for 1 Coin Unit" ) |
| 275 | | PORT_DIPSETTING( 0x0004, "1 Coin for 2 Coin Units" ) |
| 159 | PORT_START_TAG("AN_ACCELERATOR") |
| 160 | PORT_BIT( 0x1f, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00,0x1f) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) |
| 276 | 161 | |
| 277 | | PORT_DIPNAME( 0x0018, 0x0000, "Right Coin Mechanism" ) |
| 278 | | PORT_DIPSETTING( 0x0000, "1 Coin Units 1 Credit" ) |
| 279 | | PORT_DIPSETTING( 0x0008, "1 Coin Units 4 Credit" ) |
| 280 | | PORT_DIPSETTING( 0x0010, "1 Coin Units 5 Credit" ) |
| 281 | | PORT_DIPSETTING( 0x0018, "1 Coin Unit 6 Credit" ) |
| 162 | PORT_START_TAG("AN_BRAKE") |
| 163 | PORT_BIT( 0x1f, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0x00,0x1f) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) |
| 282 | 164 | |
| 283 | | PORT_START_TAG("ANALOG_A") |
| 284 | | PORT_BIT( 0x000f, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(1) /* Accelerator */ |
| 285 | | PORT_BIT( 0xf0, 0x10, IPT_PEDAL ) PORT_MINMAX(0x10,0xf0) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(2) /* Brake */ |
| 286 | | PORT_START_TAG("ANALOG_B") |
| 287 | | PORT_BIT( 0x0f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(1) /* Steering */ |
| 288 | | /* Wire jumper setting on sound PCB */ |
| 289 | | PORT_DIPNAME( 0xf0, 0x80, DEF_STR( Unknown ) ) |
| 290 | | PORT_DIPSETTING( 0x10, "1" ) |
| 291 | | PORT_DIPSETTING( 0x20, "2" ) |
| 292 | | PORT_DIPSETTING( 0x40, "3" ) |
| 293 | | PORT_DIPSETTING( 0x80, "4" ) |
| 294 | | |
| 295 | | PORT_START_TAG("INPUTS") |
| 165 | PORT_START_TAG("PPI_PORTC") |
| 296 | 166 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 297 | 167 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 298 | 168 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) PORT_TOGGLE |
| 299 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_TOGGLE |
| 169 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Gear Change") PORT_CODE(KEYCODE_SPACE) PORT_TOGGLE |
| 170 | |
| 171 | PORT_START_TAG("PPI_PORTD") |
| 172 | /* Wire jumper setting on sound PCB */ |
| 173 | PORT_DIPNAME( 0xf0, 0x80, DEF_STR( Unknown ) ) |
| 174 | PORT_DIPSETTING( 0x10, "1" ) |
| 175 | PORT_DIPSETTING( 0x20, "2" ) |
| 176 | PORT_DIPSETTING( 0x40, "3" ) |
| 177 | PORT_DIPSETTING( 0x80, "4" ) |
| 300 | 178 | INPUT_PORTS_END |
| 301 | 179 | |
| 302 | 180 | |
| 303 | 181 | static INPUT_PORTS_START( buggyboy ) |
| 304 | | PORT_START_TAG("DSW1") |
| 305 | | PORT_DIPNAME( 0xe000, 0x0000, DEF_STR( Coin_A ) ) |
| 306 | | PORT_DIPSETTING( 0x4000, DEF_STR( 3C_1C ) ) |
| 307 | | PORT_DIPSETTING( 0x2000, DEF_STR( 2C_1C ) ) |
| 308 | | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) |
| 309 | | PORT_DIPSETTING( 0xc000, DEF_STR( 2C_3C ) ) |
| 310 | | PORT_DIPSETTING( 0x6000, DEF_STR( 1C_2C ) ) |
| 311 | | PORT_DIPSETTING( 0x8000, DEF_STR( 1C_5C ) ) |
| 312 | | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_6C ) ) |
| 313 | | PORT_DIPSETTING( 0xe000, "Free-Play" ) |
| 314 | | |
| 315 | | PORT_DIPNAME( 0x1800, 0x0800, DEF_STR( Coin_B ) ) |
| 316 | | PORT_DIPSETTING( 0x0800, DEF_STR( 2C_1C ) ) |
| 317 | | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) |
| 318 | | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_2C ) ) |
| 319 | | PORT_DIPSETTING( 0x1800, DEF_STR( 1C_5C ) ) |
| 320 | | |
| 321 | | PORT_DIPNAME( 0x0700, 0x0700, "Do not change 1" ) |
| 182 | PORT_START_TAG("DSW") |
| 183 | /* Dipswitch 0 is unconnected */ |
| 184 | PORT_DIPNAME( 0x0003, 0x0003, "Do not change 2" ) |
| 322 | 185 | PORT_DIPSETTING( 0x0000, "0" ) |
| 323 | | PORT_DIPSETTING( 0x0100, "1" ) |
| 324 | | PORT_DIPSETTING( 0x0200, "2" ) |
| 325 | | PORT_DIPSETTING( 0x0300, "3" ) |
| 326 | | PORT_DIPSETTING( 0x0400, "4" ) |
| 327 | | PORT_DIPSETTING( 0x0500, "5" ) |
| 328 | | PORT_DIPSETTING( 0x0600, "6" ) |
| 329 | | PORT_DIPSETTING( 0x0700, "7" ) |
| 330 | | |
| 331 | | PORT_DIPNAME( 0x0003, 0x0003, "Do not change 2" ) /* Dipswitch 0 is unconnected */ |
| 332 | | PORT_DIPSETTING( 0x0000, "0" ) |
| 333 | 186 | PORT_DIPSETTING( 0x0001, "1" ) |
| 334 | 187 | PORT_DIPSETTING( 0x0002, "2" ) |
| 335 | 188 | PORT_DIPSETTING( 0x0003, "3" ) |
| r1463 | r1464 | |
| 343 | 196 | PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) |
| 344 | 197 | |
| 345 | 198 | PORT_DIPNAME( 0x0030, 0x0030, "Time Rank" ) |
| 346 | | PORT_DIPSETTING( 0x0000, "A" ) |
| 199 | PORT_DIPSETTING( 0x0000, "A (Short)" ) |
| 347 | 200 | PORT_DIPSETTING( 0x0010, "B" ) |
| 348 | 201 | PORT_DIPSETTING( 0x0020, "C" ) |
| 349 | | PORT_DIPSETTING( 0x0030, "D" ) |
| 202 | PORT_DIPSETTING( 0x0030, "D (Long)" ) |
| 350 | 203 | |
| 351 | 204 | PORT_DIPNAME( 0x00c0, 0x0040, "Game Rank" ) |
| 352 | | PORT_DIPSETTING( 0x0000, "A") |
| 205 | PORT_DIPSETTING( 0x0000, "A (Easy)") |
| 353 | 206 | PORT_DIPSETTING( 0x0040, "B" ) |
| 354 | 207 | PORT_DIPSETTING( 0x0080, "C" ) |
| 355 | | PORT_DIPSETTING( 0x00c0, "D" ) |
| 208 | PORT_DIPSETTING( 0x00c0, "D (Difficult)" ) |
| 356 | 209 | |
| 357 | | PORT_START_TAG("YM2149_IC19_A") |
| 358 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 359 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 360 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) |
| 361 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_TOGGLE /* Gear shift */ |
| 362 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) PORT_TOGGLE |
| 363 | | |
| 364 | | |
| 365 | | /* Read by 8255 I think */ |
| 366 | | PORT_START_TAG("YM2149_IC19_B") |
| 367 | | PORT_DIPNAME( 0xff, 0x80, "Sound PCB Jumper:" ) |
| 368 | | PORT_DIPSETTING( 0x00, "0" ) |
| 369 | | PORT_DIPSETTING( 0x01, "1" ) |
| 370 | | PORT_DIPSETTING( 0x02, "2" ) |
| 371 | | PORT_DIPSETTING( 0x04, "3" ) |
| 372 | | PORT_DIPSETTING( 0x08, "4" ) |
| 373 | | PORT_DIPSETTING( 0x10, "5" ) |
| 374 | | PORT_DIPSETTING( 0x20, "Speed Buggy/Data East" ) |
| 375 | | PORT_DIPSETTING( 0x40, "Buggy Boy/Taito" ) |
| 376 | | PORT_DIPSETTING( 0x80, "Buggy Boy/Tatsumi" ) |
| 377 | | |
| 378 | | /* Fix me */ |
| 379 | | PORT_START_TAG("ANALOG_A") |
| 380 | | PORT_BIT( 0x0f, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(1) /* Accelerator */ |
| 381 | | PORT_BIT( 0xf0, 0x00, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(1) /* Steering */ |
| 382 | | PORT_START_TAG("ANALOG_B") |
| 383 | | PORT_BIT( 0xf0, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(2) /* Brake */ |
| 384 | | |
| 385 | | INPUT_PORTS_END |
| 386 | | |
| 387 | | static INPUT_PORTS_START( buggyb1 ) |
| 388 | | PORT_START_TAG("DSW1") |
| 389 | 210 | PORT_DIPNAME( 0xe000, 0x0000, DEF_STR( Coin_A ) ) |
| 390 | | PORT_DIPSETTING( 0x4000, DEF_STR( 3C_1C ) ) |
| 391 | | PORT_DIPSETTING( 0x2000, DEF_STR( 2C_1C ) ) |
| 392 | | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) |
| 393 | | PORT_DIPSETTING( 0xc000, DEF_STR( 2C_3C ) ) |
| 394 | | PORT_DIPSETTING( 0x6000, DEF_STR( 1C_2C ) ) |
| 395 | | PORT_DIPSETTING( 0x8000, DEF_STR( 1C_5C ) ) |
| 396 | | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_6C ) ) |
| 397 | | PORT_DIPSETTING( 0xe000, "Free-Play" ) |
| 211 | PORT_DIPSETTING( 0x4000, DEF_STR( 3C_1C ) ) |
| 212 | PORT_DIPSETTING( 0x2000, DEF_STR( 2C_1C ) ) |
| 213 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) |
| 214 | PORT_DIPSETTING( 0xc000, DEF_STR( 2C_3C ) ) |
| 215 | PORT_DIPSETTING( 0x6000, DEF_STR( 1C_2C ) ) |
| 216 | PORT_DIPSETTING( 0x8000, DEF_STR( 1C_5C ) ) |
| 217 | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_6C ) ) |
| 218 | PORT_DIPSETTING( 0xe000, "Free-Play" ) |
| 398 | 219 | |
| 399 | 220 | PORT_DIPNAME( 0x1800, 0x0800, DEF_STR( Coin_B ) ) |
| 400 | | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_1C ) ) |
| 401 | | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_4C ) ) |
| 402 | | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_5C ) ) |
| 403 | | PORT_DIPSETTING( 0x1800, DEF_STR( 1C_6C ) ) |
| 221 | PORT_DIPSETTING( 0x0800, DEF_STR( 2C_1C ) ) |
| 222 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) |
| 223 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_2C ) ) |
| 224 | PORT_DIPSETTING( 0x1800, DEF_STR( 1C_5C ) ) |
| 404 | 225 | |
| 405 | | PORT_DIPNAME( 0x0700, 0x0700, "Do not change 1" ) |
| 226 | PORT_DIPNAME( 0x0700, 0x0700, "Do not change 1" ) |
| 406 | 227 | PORT_DIPSETTING( 0x0000, "0" ) |
| 407 | 228 | PORT_DIPSETTING( 0x0100, "1" ) |
| 408 | 229 | PORT_DIPSETTING( 0x0200, "2" ) |
| r1463 | r1464 | |
| 412 | 233 | PORT_DIPSETTING( 0x0600, "6" ) |
| 413 | 234 | PORT_DIPSETTING( 0x0700, "7" ) |
| 414 | 235 | |
| 415 | | PORT_DIPNAME( 0x0003, 0x0003, "Do not change 2" ) /* Dipswitch 0 is unconnected */ |
| 236 | PORT_START_TAG("PPI_PORTA") |
| 237 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 238 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 239 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) |
| 240 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Gear Change") PORT_CODE(KEYCODE_SPACE) PORT_TOGGLE |
| 241 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) PORT_TOGGLE |
| 242 | |
| 243 | PORT_START_TAG("PPI_PORTC") |
| 244 | PORT_DIPNAME( 0xff, 0x80, "Sound PCB Jumper:" ) |
| 245 | PORT_DIPSETTING( 0x00, "0" ) |
| 246 | PORT_DIPSETTING( 0x01, "1" ) |
| 247 | PORT_DIPSETTING( 0x02, "2" ) |
| 248 | PORT_DIPSETTING( 0x04, "3" ) |
| 249 | PORT_DIPSETTING( 0x08, "4" ) |
| 250 | PORT_DIPSETTING( 0x10, "5" ) |
| 251 | PORT_DIPSETTING( 0x20, "Speed Buggy/Data East" ) |
| 252 | PORT_DIPSETTING( 0x40, "Buggy Boy/Taito" ) |
| 253 | PORT_DIPSETTING( 0x80, "Buggy Boy/Tatsumi" ) |
| 254 | |
| 255 | PORT_START_TAG("AN_STEERING") |
| 256 | PORT_BIT( 0x0f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(25) |
| 257 | |
| 258 | PORT_START_TAG("AN_ACCELERATOR") |
| 259 | PORT_BIT( 0x1f, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00,0x1f) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) |
| 260 | |
| 261 | PORT_START_TAG("AN_BRAKE") |
| 262 | PORT_BIT( 0x1f, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0x00,0x1f) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) |
| 263 | INPUT_PORTS_END |
| 264 | |
| 265 | static INPUT_PORTS_START( buggybjr ) |
| 266 | PORT_START_TAG("DSW") |
| 267 | /* Dipswitch 0 is unconnected */ |
| 268 | PORT_DIPNAME( 0x0003, 0x0003, "Do not change 2" ) |
| 416 | 269 | PORT_DIPSETTING( 0x0000, "0" ) |
| 417 | 270 | PORT_DIPSETTING( 0x0001, "1" ) |
| 418 | 271 | PORT_DIPSETTING( 0x0002, "2" ) |
| r1463 | r1464 | |
| 427 | 280 | PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) |
| 428 | 281 | |
| 429 | 282 | PORT_DIPNAME( 0x0030, 0x0030, "Time Rank" ) |
| 430 | | PORT_DIPSETTING( 0x0000, "A" ) |
| 283 | PORT_DIPSETTING( 0x0000, "A (Short)" ) |
| 431 | 284 | PORT_DIPSETTING( 0x0010, "B" ) |
| 432 | 285 | PORT_DIPSETTING( 0x0020, "C" ) |
| 433 | | PORT_DIPSETTING( 0x0030, "D" ) |
| 286 | PORT_DIPSETTING( 0x0030, "D (Long)" ) |
| 434 | 287 | |
| 435 | 288 | PORT_DIPNAME( 0x00c0, 0x0040, "Game Rank" ) |
| 436 | | PORT_DIPSETTING( 0x0000, "A") |
| 289 | PORT_DIPSETTING( 0x0000, "A (Easy)") |
| 437 | 290 | PORT_DIPSETTING( 0x0040, "B" ) |
| 438 | 291 | PORT_DIPSETTING( 0x0080, "C" ) |
| 439 | | PORT_DIPSETTING( 0x00c0, "D" ) |
| 292 | PORT_DIPSETTING( 0x00c0, "D (Difficult)" ) |
| 440 | 293 | |
| 441 | | PORT_START_TAG("YM2149_IC19_A") |
| 294 | PORT_DIPNAME( 0xe000, 0x0000, DEF_STR( Coin_A ) ) |
| 295 | PORT_DIPSETTING( 0x4000, DEF_STR( 3C_1C ) ) |
| 296 | PORT_DIPSETTING( 0x2000, DEF_STR( 2C_1C ) ) |
| 297 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) |
| 298 | PORT_DIPSETTING( 0xc000, DEF_STR( 2C_3C ) ) |
| 299 | PORT_DIPSETTING( 0x6000, DEF_STR( 1C_2C ) ) |
| 300 | PORT_DIPSETTING( 0x8000, DEF_STR( 1C_5C ) ) |
| 301 | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_6C ) ) |
| 302 | PORT_DIPSETTING( 0xe000, "Free-Play" ) |
| 303 | |
| 304 | PORT_DIPNAME( 0x1800, 0x0800, DEF_STR( Coin_B ) ) |
| 305 | PORT_DIPSETTING( 0x0000, DEF_STR( 2C_1C ) ) |
| 306 | PORT_DIPSETTING( 0x1000, DEF_STR( 1C_4C ) ) |
| 307 | PORT_DIPSETTING( 0x0800, DEF_STR( 1C_5C ) ) |
| 308 | PORT_DIPSETTING( 0x1800, DEF_STR( 1C_6C ) ) |
| 309 | |
| 310 | PORT_DIPNAME( 0x0700, 0x0700, "Do not change 1" ) |
| 311 | PORT_DIPSETTING( 0x0000, "0" ) |
| 312 | PORT_DIPSETTING( 0x0100, "1" ) |
| 313 | PORT_DIPSETTING( 0x0200, "2" ) |
| 314 | PORT_DIPSETTING( 0x0300, "3" ) |
| 315 | PORT_DIPSETTING( 0x0400, "4" ) |
| 316 | PORT_DIPSETTING( 0x0500, "5" ) |
| 317 | PORT_DIPSETTING( 0x0600, "6" ) |
| 318 | PORT_DIPSETTING( 0x0700, "7" ) |
| 319 | |
| 320 | PORT_START_TAG("YM2149_IC19_A") |
| 442 | 321 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 443 | 322 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 444 | 323 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN3 ) |
| 445 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_TOGGLE /* Gear shift */ |
| 324 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Gear Change") PORT_CODE(KEYCODE_SPACE) PORT_TOGGLE |
| 446 | 325 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) PORT_TOGGLE |
| 447 | 326 | |
| 448 | | /* Wire jumper setting on sound PCB */ |
| 449 | | PORT_START_TAG("YM2149_IC19_B") |
| 450 | | PORT_DIPNAME( 0xff, 0x80, "Sound PCB Jumper:" ) |
| 451 | | PORT_DIPSETTING( 0x00, "0" ) |
| 452 | | PORT_DIPSETTING( 0x01, "1" ) |
| 453 | | PORT_DIPSETTING( 0x02, "2" ) |
| 454 | | PORT_DIPSETTING( 0x04, "3" ) |
| 455 | | PORT_DIPSETTING( 0x08, "4" ) |
| 456 | | PORT_DIPSETTING( 0x10, "5" ) |
| 457 | | PORT_DIPSETTING( 0x20, "Speed Buggy/Data East" ) |
| 458 | | PORT_DIPSETTING( 0x40, "Buggy Boy/Taito" ) |
| 459 | | PORT_DIPSETTING( 0x80, "Buggy Boy/Tatsumi" ) |
| 327 | /* Wire jumper setting on sound PCB */ |
| 328 | PORT_START_TAG("YM2149_IC19_B") |
| 329 | PORT_DIPNAME( 0xff, 0x80, "Sound PCB Jumper:" ) |
| 330 | PORT_DIPSETTING( 0x00, "0" ) |
| 331 | PORT_DIPSETTING( 0x01, "1" ) |
| 332 | PORT_DIPSETTING( 0x02, "2" ) |
| 333 | PORT_DIPSETTING( 0x04, "3" ) |
| 334 | PORT_DIPSETTING( 0x08, "4" ) |
| 335 | PORT_DIPSETTING( 0x10, "5" ) |
| 336 | PORT_DIPSETTING( 0x20, "Speed Buggy/Data East" ) |
| 337 | PORT_DIPSETTING( 0x40, "Buggy Boy/Taito" ) |
| 338 | PORT_DIPSETTING( 0x80, "Buggy Boy/Tatsumi" ) |
| 460 | 339 | |
| 461 | | PORT_START_TAG("ANALOG_A") |
| 462 | | PORT_BIT( 0x0f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(1) /* Steering */ |
| 463 | | PORT_BIT( 0xf0, 0x10, IPT_PEDAL ) PORT_MINMAX(0x10,0xf0) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(1) /* Accelerator */ |
| 464 | | PORT_START_TAG("ANALOG_B") |
| 465 | | PORT_BIT( 0xf0, 0x00, IPT_PEDAL ) PORT_SENSITIVITY(50) PORT_KEYDELTA(10) PORT_PLAYER(2) /* Brake */ |
| 340 | PORT_START_TAG("AN_STEERING") |
| 341 | PORT_BIT( 0x0f, 0x00, IPT_DIAL ) PORT_SENSITIVITY(25) PORT_KEYDELTA(25) |
| 342 | |
| 343 | PORT_START_TAG("AN_ACCELERATOR") |
| 344 | PORT_BIT( 0x1f, 0x00, IPT_PEDAL ) PORT_MINMAX(0x00, 0x1f) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) |
| 345 | |
| 346 | PORT_START_TAG("AN_BRAKE") |
| 347 | PORT_BIT( 0x1f, 0x00, IPT_PEDAL2 ) PORT_MINMAX(0x00, 0x1f) PORT_SENSITIVITY(25) PORT_KEYDELTA(10) |
| 466 | 348 | INPUT_PORTS_END |
| 467 | 349 | |
| 350 | static READ16_HANDLER( dipswitches_r ) |
| 351 | { |
| 352 | return (readinputport(0) & 0xfffe) | ts; |
| 353 | } |
| 468 | 354 | |
| 469 | | /********************/ |
| 470 | | /* TX-1 Memory Maps */ |
| 471 | | /********************/ |
| 472 | | static ADDRESS_MAP_START( tx1_master, ADDRESS_SPACE_PROGRAM, 16 ) |
| 473 | | AM_RANGE(0x00000, 0x00fff) AM_MIRROR(0x1000) AM_RAM /* RAM */ |
| 474 | | AM_RANGE(0x02000, 0x02fff) AM_MIRROR(0x1000) AM_RAM /* RAM */ |
| 475 | | AM_RANGE(0x04000, 0x04fff) AM_MIRROR(0x1000) AM_RAM /* Backup RAM */ |
| 476 | | AM_RANGE(0x06000, 0x06009) AM_READWRITE(crt_read, crt_write) |
| 477 | | AM_RANGE(0x08000, 0x09fff) AM_READWRITE(MRA16_RAM,tx1_vram_w) AM_BASE(&tx1_vram) |
| 478 | | AM_RANGE(0x0a000, 0x0afff) AM_RAM AM_SHARE(1) /* Road/common RAM */ |
| 479 | | AM_RANGE(0x0b000, 0x0b001) AM_READWRITE (input_port_0_word_r, z80_busreq) |
| 480 | | AM_RANGE(0x0c000, 0x0c001) AM_RAM /* /SCOLST */ |
| 481 | | AM_RANGE(0x0d000, 0x0d001) AM_RAM /* /SLINCS */ |
| 482 | | AM_RANGE(0x0e000, 0x0e001) AM_RAM /* /SLOCK */ |
| 483 | | AM_RANGE(0x0f000, 0x0f003) AM_READWRITE (MRA16_NOP, resume_slave) /* Watchdog and slave resume */ |
| 484 | | AM_RANGE(0x10000, 0x13fff) AM_ROM /* Z80 ROM */ |
| 485 | | AM_RANGE(0x16000, 0x16fff) AM_READWRITE (z80_shared_r, z80_shared_w) |
| 355 | /* |
| 356 | (TODO) TS: Connected in place of dipswitch A bit 0 |
| 357 | Accessed on startup as some sort of acknowledgement |
| 358 | */ |
| 359 | static WRITE8_HANDLER( ts_w ) |
| 360 | { |
| 361 | // TS = 1; |
| 362 | z80_ram[offset] = data; |
| 363 | } |
| 364 | |
| 365 | static READ8_HANDLER( ts_r ) |
| 366 | { |
| 367 | // TS = 1; |
| 368 | return z80_ram[offset]; |
| 369 | } |
| 370 | |
| 371 | /************************************* |
| 372 | * |
| 373 | * TX-1 Memory Maps |
| 374 | * |
| 375 | *************************************/ |
| 376 | |
| 377 | static ADDRESS_MAP_START( tx1_main, ADDRESS_SPACE_PROGRAM, 16 ) |
| 378 | AM_RANGE(0x00000, 0x00fff) AM_MIRROR(0x1000) AM_RAM |
| 379 | AM_RANGE(0x02000, 0x02fff) AM_MIRROR(0x1000) AM_RAM |
| 380 | AM_RANGE(0x04000, 0x04fff) AM_MIRROR(0x1000) AM_RAM AM_BASE(&generic_nvram16) AM_SIZE(&generic_nvram_size) |
| 381 | AM_RANGE(0x06000, 0x06fff) AM_READWRITE(tx1_crtc_r, tx1_crtc_w) |
| 382 | AM_RANGE(0x08000, 0x09fff) AM_READWRITE(MRA16_RAM, tx1_vram_w) AM_BASE(&tx1_vram) |
| 383 | AM_RANGE(0x0a000, 0x0afff) AM_RAM AM_SHARE(1) AM_BASE(&tx1_rcram) |
| 384 | AM_RANGE(0x0b000, 0x0b001) AM_READWRITE(dipswitches_r, z80_busreq_w) |
| 385 | AM_RANGE(0x0c000, 0x0c001) AM_WRITE(tx1_scolst_w) |
| 386 | AM_RANGE(0x0d000, 0x0d003) AM_WRITE(tx1_slincs_w) |
| 387 | AM_RANGE(0x0e000, 0x0e001) AM_WRITE(tx1_slock_w) |
| 388 | AM_RANGE(0x0f000, 0x0f001) AM_READWRITE(watchdog_reset16_r, resume_math_w) |
| 389 | AM_RANGE(0x10000, 0x1ffff) AM_READWRITE(z80_shared_r, z80_shared_w) |
| 486 | 390 | AM_RANGE(0xf0000, 0xfffff) AM_ROM |
| 487 | 391 | ADDRESS_MAP_END |
| 488 | 392 | |
| 489 | | /* Lot of unknown writes - I haven't investigated further */ |
| 490 | | static ADDRESS_MAP_START( tx1_slave, ADDRESS_SPACE_PROGRAM, 16 ) |
| 491 | | AM_RANGE(0x00000, 0x007ff) AM_MIRROR(0x800) AM_RAM /* Arithmetic RAM (IC169, IC158) A10 is grounded */ |
| 492 | | AM_RANGE(0x01000, 0x01fff) AM_RAM AM_SHARE(1) /* Common RAM (IC195, IC210) */ |
| 493 | | AM_RANGE(0x02000, 0x022ff) AM_RAM AM_BASE(&tx1_object_ram) AM_SIZE(&tx1_objectram_size) /* Object RAM (IC43, IC68) A10-A8 are grounded*/ |
| 494 | | AM_RANGE(0x02400, 0x027ff) AM_RAM /* /BANKCS */ |
| 495 | | AM_RANGE(0x02800, 0x02bff) AM_READWRITE(halt_slave_r, MWA16_NOP) /* /DRAK */ |
| 496 | | AM_RANGE(0x02C00, 0x02fff) AM_RAM /* /FLGCS */ |
| 497 | | AM_RANGE(0x03000, 0x03fff) AM_RAM /* SN74S516 arithmetic unit */ |
| 498 | | AM_RANGE(0x04000, 0x07fff) AM_ROM /* ROM mirror? */ |
| 499 | | AM_RANGE(0x08000, 0x0bfff) AM_ROM /* ROM mirror? */ |
| 500 | | AM_RANGE(0x0c000, 0x0ffff) AM_ROM /* ROM mirror? */ |
| 393 | static ADDRESS_MAP_START( tx1_math, ADDRESS_SPACE_PROGRAM, 16 ) |
| 394 | AM_RANGE(0x00000, 0x007ff) AM_RAM AM_BASE(&tx1_math_ram) |
| 395 | AM_RANGE(0x00800, 0x00fff) AM_READWRITE(tx1_spcs_ram_r, tx1_spcs_ram_w) |
| 396 | AM_RANGE(0x01000, 0x01fff) AM_RAM AM_SHARE(1) |
| 397 | AM_RANGE(0x02000, 0x022ff) AM_RAM AM_BASE(&tx1_objram) AM_SIZE(&tx1_objram_size) |
| 398 | AM_RANGE(0x02400, 0x027ff) AM_WRITE(tx1_bankcs_w) |
| 399 | AM_RANGE(0x02800, 0x02bff) AM_WRITE(halt_math_w) |
| 400 | AM_RANGE(0x02C00, 0x02fff) AM_WRITE(tx1_flgcs_w) |
| 401 | AM_RANGE(0x03000, 0x03fff) AM_READWRITE(tx1_math_r, tx1_math_w) |
| 402 | AM_RANGE(0x05000, 0x07fff) AM_READ(tx1_spcs_rom_r) |
| 403 | AM_RANGE(0x08000, 0x0bfff) AM_ROM |
| 404 | AM_RANGE(0x0c000, 0x0ffff) AM_ROM |
| 501 | 405 | AM_RANGE(0xfc000, 0xfffff) AM_ROM |
| 502 | 406 | ADDRESS_MAP_END |
| 503 | 407 | |
| 504 | 408 | |
| 505 | | /* Sound */ |
| 409 | static WRITE8_HANDLER( tx1_ppi_latch_w ) |
| 410 | { |
| 411 | tx1_ppi_latch_a = ((readinputportbytag("AN_BRAKE") & 0xf) << 4) | (readinputportbytag("AN_ACCELERATOR") & 0xf); |
| 412 | tx1_ppi_latch_b = readinputportbytag("AN_STEERING"); |
| 413 | } |
| 414 | |
| 415 | static READ8_HANDLER( tx1_ppi_porta_r ) |
| 416 | { |
| 417 | return tx1_ppi_latch_a; |
| 418 | } |
| 419 | |
| 420 | static READ8_HANDLER( tx1_ppi_portb_r ) |
| 421 | { |
| 422 | return readinputportbytag("PPI_PORTD") | tx1_ppi_latch_b; |
| 423 | } |
| 424 | |
| 506 | 425 | static ADDRESS_MAP_START( tx1_sound_prg, ADDRESS_SPACE_PROGRAM, 8 ) |
| 507 | 426 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 508 | | AM_RANGE(0x3000, 0x37ff) AM_RAM AM_MIRROR(0x800) AM_BASE (&z80_ram) |
| 509 | | AM_RANGE(0x4000, 0x4000) AM_READ (z80_intreq_r) /* Unconfirmed */ |
| 427 | AM_RANGE(0x3000, 0x37ff) AM_RAM AM_MIRROR(0x800) AM_BASE(&z80_ram) |
| 428 | AM_RANGE(0x4000, 0x4000) AM_WRITE(z80_intreq_w) |
| 510 | 429 | AM_RANGE(0x5000, 0x5003) AM_READWRITE(ppi8255_0_r, ppi8255_0_w) |
| 511 | | AM_RANGE(0x6000, 0x6003) AM_RAM /* 8253A PIT */ |
| 512 | | AM_RANGE(0x7000, 0x70DF) AM_RAM /* Propigate input signals into 8255 */ |
| 513 | | AM_RANGE(0xb00b, 0xb00b) AM_RAM /* Read once - TS?*/ |
| 430 | AM_RANGE(0x6000, 0x6003) AM_READWRITE(pit8253_r, pit8253_w) |
| 431 | AM_RANGE(0x7000, 0x7fff) AM_WRITE(tx1_ppi_latch_w) |
| 432 | AM_RANGE(0xb000, 0xbfff) AM_READWRITE(ts_r, ts_w) |
| 514 | 433 | ADDRESS_MAP_END |
| 515 | 434 | |
| 516 | 435 | |
| r1463 | r1464 | |
| 521 | 440 | ADDRESS_MAP_END |
| 522 | 441 | |
| 523 | 442 | |
| 524 | | /*************************/ |
| 525 | | /* Buggy Boy Memory Maps */ |
| 526 | | /*************************/ |
| 443 | /************************************* |
| 444 | * |
| 445 | * Buggy Boy Memory Maps |
| 446 | * |
| 447 | *************************************/ |
| 527 | 448 | |
| 528 | | static READ16_HANDLER(input_port_0A_r) |
| 529 | | { |
| 530 | | return (readinputport(0) & 0xfffe) | TS; |
| 531 | | } |
| 532 | | |
| 533 | | static ADDRESS_MAP_START( buggyb1_master, ADDRESS_SPACE_PROGRAM, 16 ) |
| 534 | | AM_RANGE(0x00000, 0x03fff) AM_RAM /* 1kB RAM - battery backed */ |
| 535 | | AM_RANGE(0x04000, 0x04fff) AM_READWRITE(crt_read, crt_write) /* HD46505S-2 or equivalent CRT controller */ |
| 536 | | AM_RANGE(0x08000, 0x08fff) AM_READWRITE(MRA16_RAM,buggyb1_vram_w) AM_BASE(&buggyb1_vram) /* Character mapped RAM */ |
| 537 | | AM_RANGE(0x0a000, 0x0afff) AM_RAM AM_SHARE(1) AM_BASE(&bb_rcram) AM_SIZE(&bb_rcram_size) /* Road/common RAM - 1800-18ff & 1c00-1cff are read by road H/W */ |
| 538 | | AM_RANGE(0x0b000, 0x0b001) AM_READWRITE (input_port_0A_r, z80_busreq) /* Dipswitches and Z80 busreq */ |
| 539 | | AM_RANGE(0x0c000, 0x0c001) AM_RAM /* /SCOLW */ |
| 540 | | AM_RANGE(0x0d000, 0x0d003) AM_RAM /* /SLINCS */ |
| 541 | | AM_RANGE(0x0e000, 0x0e001) AM_RAM AM_BASE(&bb_sky) /* /SKYCS */ |
| 542 | | AM_RANGE(0x0f000, 0x0f003) AM_READWRITE (MRA16_NOP, resume_slave) /* Watchdog and slave resume */ |
| 543 | | AM_RANGE(0x10000, 0x17fff) AM_ROM /* Z80 ROM */ |
| 544 | | AM_RANGE(0x18000, 0x18fff) AM_READWRITE (z80_shared_r, z80_shared_w) |
| 449 | static ADDRESS_MAP_START( buggyboy_main, ADDRESS_SPACE_PROGRAM, 16 ) |
| 450 | AM_RANGE(0x00000, 0x03fff) AM_RAM AM_BASE(&generic_nvram16) AM_SIZE(&generic_nvram_size) |
| 451 | AM_RANGE(0x04000, 0x04fff) AM_READWRITE(tx1_crtc_r, tx1_crtc_w) |
| 452 | AM_RANGE(0x08000, 0x09fff) AM_READWRITE(MRA16_RAM, buggyboy_vram_w) AM_BASE(&buggyboy_vram) |
| 453 | AM_RANGE(0x0a000, 0x0afff) AM_RAM AM_SHARE(1) AM_BASE(&buggyboy_rcram) AM_SIZE(&buggyboy_rcram_size) |
| 454 | AM_RANGE(0x0b000, 0x0b001) AM_READWRITE(dipswitches_r, z80_busreq_w) |
| 455 | AM_RANGE(0x0c000, 0x0c001) AM_WRITE(buggyboy_scolst_w) |
| 456 | AM_RANGE(0x0d000, 0x0d003) AM_WRITE(buggyboy_slincs_w) |
| 457 | AM_RANGE(0x0e000, 0x0e001) AM_WRITE(buggyboy_sky_w) |
| 458 | AM_RANGE(0x0f000, 0x0f003) AM_READWRITE(watchdog_reset16_r, resume_math_w) |
| 459 | AM_RANGE(0x10000, 0x1ffff) AM_READWRITE(z80_shared_r, z80_shared_w) |
| 545 | 460 | AM_RANGE(0x20000, 0x2ffff) AM_ROM |
| 546 | 461 | AM_RANGE(0xf0000, 0xfffff) AM_ROM |
| 547 | 462 | ADDRESS_MAP_END |
| 548 | 463 | |
| 549 | | |
| 550 | | static ADDRESS_MAP_START( buggyboy_master, ADDRESS_SPACE_PROGRAM, 16 ) |
| 551 | | AM_RANGE(0x00000, 0x03fff) AM_RAM /* 1kB RAM - battery backed */ |
| 552 | | AM_RANGE(0x04000, 0x04fff) AM_READWRITE(crt_read, crt_write) /* HD46505S-2 or equivalent CRT controller */ |
| 553 | | AM_RANGE(0x08000, 0x09fff) AM_READWRITE(MRA16_RAM,buggyboy_vram_w) AM_BASE(&buggyboy_vram) /* Character mapped RAM */ |
| 554 | | AM_RANGE(0x0a000, 0x0afff) AM_RAM AM_SHARE(1) AM_BASE(&bb_rcram) AM_SIZE(&bb_rcram_size) /* Road/common RAM */ |
| 555 | | AM_RANGE(0x0b000, 0x0b001) AM_READWRITE (input_port_0A_r, z80_busreq) /* Dipswitches and Z80 busreq */ |
| 556 | | AM_RANGE(0x0c000, 0x0c001) AM_RAM /* /SCOLW */ |
| 557 | | AM_RANGE(0x0d000, 0x0d003) AM_RAM /* /SLINCS */ |
| 558 | | AM_RANGE(0x0e000, 0x0e001) AM_RAM AM_BASE(&bb_sky) /* /SKYCS */ |
| 559 | | AM_RANGE(0x0f000, 0x0f003) AM_READWRITE (MRA16_NOP, resume_slave) /* Watchdog and slave resume */ |
| 560 | | AM_RANGE(0x10000, 0x17fff) AM_ROM /* Z80 ROM */ |
| 561 | | AM_RANGE(0x18000, 0x18fff) AM_READWRITE (z80_shared_r, z80_shared_w) |
| 464 | static ADDRESS_MAP_START( buggybjr_main, ADDRESS_SPACE_PROGRAM, 16 ) |
| 465 | AM_RANGE(0x00000, 0x03fff) AM_RAM AM_BASE(&generic_nvram16) AM_SIZE(&generic_nvram_size) |
| 466 | AM_RANGE(0x04000, 0x04fff) AM_READWRITE(tx1_crtc_r, tx1_crtc_w) |
| 467 | AM_RANGE(0x08000, 0x08fff) AM_RAM AM_BASE(&buggybjr_vram) |
| 468 | AM_RANGE(0x0a000, 0x0afff) AM_RAM AM_SHARE(1) AM_BASE(&buggyboy_rcram) AM_SIZE(&buggyboy_rcram_size) |
| 469 | AM_RANGE(0x0b000, 0x0b001) AM_READWRITE(dipswitches_r, z80_busreq_w) |
| 470 | AM_RANGE(0x0c000, 0x0c001) AM_WRITE(buggyboy_scolst_w) |
| 471 | AM_RANGE(0x0d000, 0x0d003) AM_WRITE(buggyboy_slincs_w) |
| 472 | AM_RANGE(0x0e000, 0x0e001) AM_WRITE(buggyboy_sky_w) |
| 473 | AM_RANGE(0x0f000, 0x0f003) AM_READWRITE(watchdog_reset16_r, resume_math_w) |
| 474 | AM_RANGE(0x10000, 0x1ffff) AM_READWRITE(z80_shared_r, z80_shared_w) |
| 562 | 475 | AM_RANGE(0x20000, 0x2ffff) AM_ROM |
| 563 | 476 | AM_RANGE(0xf0000, 0xfffff) AM_ROM |
| 564 | 477 | ADDRESS_MAP_END |
| 565 | 478 | |
| 479 | static ADDRESS_MAP_START( buggyboy_math, ADDRESS_SPACE_PROGRAM, 16 ) |
| 480 | AM_RANGE(0x00000, 0x007ff) AM_RAM AM_BASE(&tx1_math_ram) |
| 481 | AM_RANGE(0x00800, 0x00fff) AM_READWRITE(buggyboy_spcs_ram_r, buggyboy_spcs_ram_w) |
| 482 | AM_RANGE(0x01000, 0x01fff) AM_RAM AM_SHARE(1) |
| 483 | AM_RANGE(0x02000, 0x022ff) AM_RAM AM_BASE(&buggyboy_objram) AM_SIZE(&buggyboy_objram_size) |
| 484 | AM_RANGE(0x02400, 0x024ff) AM_WRITE(buggyboy_gas_w) |
| 485 | AM_RANGE(0x03000, 0x03fff) AM_READWRITE(buggyboy_math_r, buggyboy_math_w) |
| 486 | AM_RANGE(0x04000, 0x04fff) AM_ROM |
| 487 | AM_RANGE(0x05000, 0x07fff) AM_READ(buggyboy_spcs_rom_r) |
| 488 | AM_RANGE(0x08000, 0x0bfff) AM_ROM |
| 489 | AM_RANGE(0x0c000, 0x0ffff) AM_ROM |
| 490 | AM_RANGE(0xfc000, 0xfffff) AM_ROM |
| 491 | ADDRESS_MAP_END |
| 566 | 492 | |
| 567 | | /* |
| 568 | | 2400-24FF appear to be road control (R/W) |
| 569 | 493 | |
| 570 | | From the single monitor schematics: |
| 571 | | |
| 572 | | -GAS = 24XX: |
| 573 | | -BASET0 = 2400-F, 2410-F |
| 574 | | -BASET1 = 2420-F, 2430-F |
| 575 | | -BSET = 2440-F, 2450-F |
| 576 | | -HASET = 2460-F, 2470-F |
| 577 | | -HSET = 2480-F, 2490-F |
| 578 | | -WASET = 24A0-F, 24B0-F |
| 579 | | -FLAGS = 24E0-F, 24F0-F |
| 580 | | */ |
| 581 | | |
| 582 | | static READ16_HANDLER(GAS_r) |
| 494 | /* TODO */ |
| 495 | static READ8_HANDLER( bb_analog_r ) |
| 583 | 496 | { |
| 584 | | if(offset >= 0xe0/2) halt_slave(); |
| 585 | | return 0; |
| 497 | if ( offset == 1 ) |
| 498 | { |
| 499 | return ((readinputportbytag("AN_ACCELERATOR") & 0xf) << 4) | readinputportbytag("AN_STEERING"); |
| 500 | } |
| 501 | else |
| 502 | { |
| 503 | return (readinputportbytag("AN_BRAKE") & 0xf) << 4; |
| 504 | } |
| 586 | 505 | } |
| 587 | 506 | |
| 588 | | static WRITE16_HANDLER(GAS_w) |
| 507 | static READ8_HANDLER( bbjr_analog_r ) |
| 589 | 508 | { |
| 590 | | if(offset >= 0xe0/2) halt_slave(); |
| 509 | if ( offset == 0 ) |
| 510 | { |
| 511 | return ((readinputportbytag("AN_ACCELERATOR") & 0xf) << 4) | readinputportbytag("AN_STEERING"); |
| 512 | } |
| 513 | else |
| 514 | { |
| 515 | return (readinputportbytag("AN_BRAKE") & 0xf) << 4; |
| 516 | } |
| 591 | 517 | } |
| 592 | 518 | |
| 593 | | |
| 594 | | /* |
| 595 | | From single monitor PCB TC-041: |
| 596 | | |
| 597 | | TZ0310 IC87 (PAL12L6) |
| 598 | | ============================ |
| 599 | | /SPCS = !A15.!A14.!A13.A12 + A14.!A13.!A12 + !A14.A12.A9 + !A14.A13./A12 + !A14.!A11 + A15 |
| 600 | | /PRCS (Program ROM) = !A15.!A14.A13.A12 + !A15.!A14.!A13.A12 + !A15.!A14.!A12 |
| 601 | | /ARCRCS (Road/Common RAM) = A15.!A14.A13.A12 + !A15.!A14.!A12 + A14 + A15 |
| 602 | | /INSALD = /AT3RD.!AT3WDRART + !AT3WDRART.A15 + !AT3WDRART.!A13 + !AT3WDRART.A14 + !AT3WDRART.!A12 + !A7 |
| 603 | | /CNTST = /AT3RD.!AT3WDRART + !AT3WDRART.A15 + !AT3WDRART.!A13 + !AT3WDRART.A14 + !AT3WDRART.!A12 + !A8 |
| 604 | | LS245 IC24/55 /G (Program ROM and RAM data bus) = !A15.!A14.A13.!A11 + !A15.!A14.A13.A12 + !A15.!A14.!A13.A12 + /ADEN |
| 605 | | |
| 606 | | |
| 607 | | TZ0311 IC88 (PAL10L8) (protection fuse was set, yet it read) |
| 608 | | ============================ |
| 609 | | |
| 610 | | /ARTCS (Arithmetic unit and interface) = !(A12.A13.!A14.!A15) |
| 611 | | /GAS (Road registers) = !(Q.ADT/#R + Q.!Q.ADT/#R.!ADT/#R) <-- ??? |
| 612 | | /EXPCS (Expansion RAM) = !(A11.!A12.A13.!A14.!A15) |
| 613 | | /PRMHCS (Program RAM high-byte) = !(!A12.!A13.!A14.!A15.!/ADHE) |
| 614 | | /PRMLCS (Program RAM low-byte) = !(!A0.!A12.!A13.!A14.!A15) |
| 615 | | /OCRCS (Object RAM) = !(!A10.!A11.!A12.A13.!A14.!A15) |
| 616 | | /MLPCS (Arithmetic Unit Instruction = A1-A3) = !(!A10.!A11.A12.A13.!A14.!A15) |
| 617 | | /DPRCS (Function Data ROM) = !(A10.A11.A12.A13.!A14.!A15) |
| 618 | | */ |
| 619 | | |
| 620 | | /* Memory map and ROM contents are the same for both versions */ |
| 621 | | static ADDRESS_MAP_START( buggyboy_slave, ADDRESS_SPACE_PROGRAM, 16 ) |
| 622 | | AM_RANGE(0x00000, 0x00fff) AM_RAM /* 4kB RAM */ |
| 623 | | AM_RANGE(0x01000, 0x01fff) AM_RAM AM_SHARE(1) /* Road/Common RAM */ |
| 624 | | AM_RANGE(0x02000, 0x022ff) AM_RAM AM_BASE(&bb_objram) AM_SIZE(&bb_objectram_size) /* RAM A10-A8 are grounded */ |
| 625 | | AM_RANGE(0x02400, 0x024ff) AM_READWRITE (GAS_r, GAS_w) /* Road control registers */ |
| 626 | | AM_RANGE(0x03000, 0x03fff) AM_READWRITE (BB_AU_R, BB_AU_W) /* SN74S516 arithmetic unit */ |
| 627 | | AM_RANGE(0x04000, 0x07fff) AM_ROM /* ROM mirror */ |
| 628 | | AM_RANGE(0x08000, 0x0bfff) AM_ROM /* ROM mirror */ |
| 629 | | AM_RANGE(0x0c000, 0x0ffff) AM_ROM /* ROM mirror */ |
| 630 | | AM_RANGE(0xfc000, 0xfffff) AM_ROM /* ROM */ |
| 631 | | ADDRESS_MAP_END |
| 632 | | |
| 633 | | |
| 634 | | /* Connected in place of dipswitch A bit 0 */ |
| 635 | | /* Accessed on startup as some sort of acknowledgement */ |
| 636 | | static WRITE8_HANDLER(_TS_) |
| 637 | | { |
| 638 | | // TS = 1; |
| 639 | | } |
| 640 | | |
| 641 | | /* Buggy Boy Sound PCB TC033A. */ |
| 519 | /* Buggy Boy Sound PCB TC033A */ |
| 642 | 520 | static ADDRESS_MAP_START( buggyboy_sound_prg, ADDRESS_SPACE_PROGRAM, 8 ) |
| 643 | 521 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 644 | | AM_RANGE(0x4000, 0x47ff) AM_RAM AM_BASE(&z80_ram) /* 2kB RAM - shared with Main CPU */ |
| 645 | | AM_RANGE(0x6000, 0x6000) AM_READ(input_port_4_r) /* Steering and accelerator */ |
| 646 | | AM_RANGE(0x6001, 0x6001) AM_READ(input_port_5_r) /* Brake (NOT USED) */ |
| 647 | | AM_RANGE(0x6800, 0x6803) AM_READWRITE(ppi8255_0_r, ppi8255_0_w) /* Digital inputs (coins etc.) - check me */ |
| 648 | | AM_RANGE(0x7000, 0x7003) AM_RAM /* 8253 Programmable Interval Timer (Engine Sound) */ |
| 649 | | AM_RANGE(0xc024, 0xc024) AM_WRITE(_TS_) /* /TS? */ |
| 650 | | AM_RANGE(0x7800, 0x7800) AM_WRITE(z80_intreq_w) /* /INTREQ? */ |
| 522 | AM_RANGE(0x4000, 0x47ff) AM_RAM AM_BASE(&z80_ram) |
| 523 | AM_RANGE(0x6000, 0x6001) AM_READ(bb_analog_r) |
| 524 | AM_RANGE(0x6800, 0x6803) AM_READWRITE(ppi8255_0_r, ppi8255_0_w) |
| 525 | AM_RANGE(0x7000, 0x7003) AM_RAM |
| 526 | AM_RANGE(0x7800, 0x7800) AM_WRITE(z80_intreq_w) |
| 527 | AM_RANGE(0xc000, 0xc7ff) AM_READWRITE(ts_r, ts_w) |
| 651 | 528 | ADDRESS_MAP_END |
| 652 | 529 | |
| 653 | | /* Buggy Boy (single monitor) Sound PCB TC-043 (no 8255). */ |
| 654 | | static ADDRESS_MAP_START( buggyb1_sound_prg, ADDRESS_SPACE_PROGRAM, 8 ) |
| 530 | /* Buggy Boy Jr Sound PCB TC043 */ |
| 531 | static ADDRESS_MAP_START( buggybjr_sound_prg, ADDRESS_SPACE_PROGRAM, 8 ) |
| 655 | 532 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 656 | | AM_RANGE(0x4000, 0x47ff) AM_RAM AM_BASE(&z80_ram) /* 2kB RAM - shared with Main 8086 */ |
| 657 | | AM_RANGE(0x5000, 0x5003) AM_RAM /* 8253 Programmable Interval Timer (Engine Sound) */ |
| 658 | | AM_RANGE(0x6000, 0x6000) AM_READ(input_port_4_r) /* Steering and accelerator */ |
| 659 | | AM_RANGE(0x6001, 0x6001) AM_READ(input_port_5_r) /* Brake (NOT USED) */ |
| 660 | | AM_RANGE(0xc024, 0xc024) AM_WRITE(_TS_) /* /TS? */ |
| 661 | | AM_RANGE(0x7000, 0x7001) AM_WRITE(z80_intreq_w) /* /INTREQ */ |
| 533 | AM_RANGE(0x4000, 0x47ff) AM_RAM AM_BASE(&z80_ram) |
| 534 | AM_RANGE(0x5000, 0x5003) AM_READWRITE(pit8253_r, pit8253_w) |
| 535 | AM_RANGE(0x6000, 0x6001) AM_READ(bbjr_analog_r) |
| 536 | AM_RANGE(0x7000, 0x7000) AM_WRITE(z80_intreq_w) |
| 537 | AM_RANGE(0xc000, 0xc7ff) AM_READWRITE(ts_r, ts_w) |
| 662 | 538 | ADDRESS_MAP_END |
| 663 | 539 | |
| 664 | | |
| 665 | | /* Common to both versions*/ |
| 540 | /* Common */ |
| 666 | 541 | static ADDRESS_MAP_START( buggyboy_sound_io, ADDRESS_SPACE_IO, 8 ) |
| 667 | 542 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 668 | 543 | AM_RANGE(0x40, 0x40) AM_READWRITE(AY8910_read_port_0_r, AY8910_write_port_0_w) |
| 669 | 544 | AM_RANGE(0x41, 0x41) AM_WRITE(AY8910_control_port_0_w) |
| 670 | | |
| 671 | 545 | AM_RANGE(0x80, 0x80) AM_READWRITE(AY8910_read_port_1_r, AY8910_write_port_1_w) |
| 672 | 546 | AM_RANGE(0x81, 0x81) AM_WRITE(AY8910_control_port_1_w) |
| 673 | 547 | ADDRESS_MAP_END |
| 674 | 548 | |
| 675 | 549 | |
| 676 | | /* Common to TX-1 and Buggy Boy */ |
| 550 | /************************************* |
| 551 | * |
| 552 | * Graphics definitions |
| 553 | * |
| 554 | *************************************/ |
| 555 | |
| 677 | 556 | static const gfx_layout char_layout = |
| 678 | 557 | { |
| 679 | 558 | 8,8, |
| r1463 | r1464 | |
| 685 | 564 | 8*8 |
| 686 | 565 | }; |
| 687 | 566 | |
| 688 | | static const gfx_layout bb_object_layout = |
| 689 | | { |
| 690 | | 8,8, |
| 691 | | 4096, |
| 692 | | 2, |
| 693 | | { 0, 8*8*4096 }, |
| 694 | | { 0,1,2,3,4,5,6,7 }, |
| 695 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 696 | | 8*8 |
| 697 | | }; |
| 698 | | |
| 699 | | static const gfx_layout tx1_object_layout = |
| 700 | | { |
| 701 | | 8,8, |
| 702 | | 2048, |
| 703 | | 2, |
| 704 | | { 0, 8*8*2048 }, |
| 705 | | { 0,1,2,3,4,5,6,7 }, |
| 706 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 707 | | 8*8 |
| 708 | | }; |
| 709 | | |
| 710 | | static GFXDECODE_START( bb ) |
| 567 | static GFXDECODE_START( buggyboy ) |
| 711 | 568 | GFXDECODE_ENTRY( REGION_GFX1, 0, char_layout, 0, 256 ) |
| 712 | | GFXDECODE_ENTRY( REGION_GFX2, 0, bb_object_layout, 256, 2048 ) |
| 713 | | GFXDECODE_ENTRY( REGION_GFX3, 0, bb_object_layout, 256, 2048 ) |
| 714 | | GFXDECODE_ENTRY( REGION_GFX4, 0, bb_object_layout, 256, 2048 ) |
| 715 | 569 | GFXDECODE_END |
| 716 | 570 | |
| 717 | 571 | static GFXDECODE_START( tx1 ) |
| 718 | 572 | GFXDECODE_ENTRY( REGION_GFX1, 0, char_layout, 0, 16 ) |
| 719 | | GFXDECODE_ENTRY( REGION_GFX2, 0, tx1_object_layout, 0, 16 ) |
| 720 | | GFXDECODE_ENTRY( REGION_GFX3, 0, tx1_object_layout, 0, 16 ) |
| 721 | 573 | GFXDECODE_END |
| 722 | 574 | |
| 723 | 575 | |
| 724 | | /****************************/ |
| 725 | | /* TX-1 Sound Hardware */ |
| 726 | | /****************************/ |
| 576 | /************************************* |
| 577 | * |
| 578 | * Sound Hardware |
| 579 | * |
| 580 | *************************************/ |
| 727 | 581 | |
| 728 | | static const struct AY8910interface tx1_ay8910_interface = |
| 582 | static struct AY8910interface tx1_ay8910_interface = |
| 729 | 583 | { |
| 730 | | 0, /* Probably hooked up to discrete sound filters */ |
| 584 | /* TODO */ |
| 731 | 585 | 0, |
| 732 | | 0, |
| 733 | | 0, |
| 586 | 0, |
| 587 | 0, |
| 588 | 0, |
| 734 | 589 | }; |
| 735 | 590 | |
| 736 | | /****************************/ |
| 737 | | /* Buggy Boy Sound Hardware */ |
| 738 | | /****************************/ |
| 739 | 591 | |
| 740 | | /* |
| 741 | | According to the single monitor schematics: |
| 742 | | |
| 743 | | YM-2149 IC 24 |
| 744 | | ============= |
| 745 | | |
| 746 | | Port A Port B |
| 747 | | ====== ====== |
| 748 | | |
| 749 | | 0: Engine sound control 0: Coin Counter 1 |
| 750 | | 1: Engine sound control 1: Coin Counter 2 |
| 751 | | 2: Engine sound control 2: Coin Counter 3 (Unused) |
| 752 | | 3: Engine sound control 3: Engine sound 4066B |
| 753 | | 4: Engine sound control 4: Noise EN1 |
| 754 | | 5: Engine sound control 5: Noise EN2 |
| 755 | | 6: Engine sound control 6: Enable YM IC24 on rear right speaker |
| 756 | | 7: Engine Noise control 7: Enable YM IC19 on rear left speaker |
| 757 | | |
| 758 | | YM-2149 IC 19 |
| 759 | | ============= |
| 760 | | |
| 761 | | Port A Port B |
| 762 | | ====== ====== |
| 763 | | |
| 764 | | 0: Engine sound control 0: Coin Counter 1 |
| 765 | | 1: Engine sound control 1: Coin Counter 2 |
| 766 | | 2: Engine sound control 2: Coin Counter 3 (Unused) |
| 767 | | 3: Engine sound control 3: Engine sound 4066B |
| 768 | | 4: Engine sound control 4: Noise EN1 |
| 769 | | 5: Engine sound control 5: Noise EN2 |
| 770 | | 6: Engine sound control 6: Enable YM IC24 on rear right speaker |
| 771 | | 7: Engine Noise control 7: Enable YM IC19 on rear left speaker |
| 772 | | */ |
| 773 | | |
| 774 | | |
| 775 | | static WRITE8_HANDLER(BB_YM2149_1_A_w) |
| 592 | /* YM2149 IC19 */ |
| 593 | static struct AY8910interface buggyboy_ym2149_interface_1 = |
| 776 | 594 | { |
| 777 | | |
| 778 | | } |
| 779 | | |
| 780 | | static WRITE8_HANDLER(BB_YM2149_1_B_w) |
| 781 | | { |
| 782 | | coin_counter_w(0,data & 0x01); |
| 783 | | coin_counter_w(1,data & 0x02); |
| 784 | | } |
| 785 | | |
| 786 | | |
| 787 | | /* YM2149 IC19 - front left */ |
| 788 | | static const struct AY8910interface buggyboy_ay8910_interface_1 = |
| 789 | | { |
| 595 | input_port_1_r, |
| 790 | 596 | input_port_2_r, |
| 791 | | input_port_3_r, |
| 792 | 597 | 0, |
| 793 | 598 | 0, |
| 794 | 599 | }; |
| 795 | 600 | |
| 796 | | |
| 797 | | /* YM2149 IC24 - front right */ |
| 798 | | static const struct AY8910interface buggyboy_ay8910_interface_2 = |
| 601 | /* YM2149 IC24 */ |
| 602 | static struct AY8910interface buggyboy_ym2149_interface_2 = |
| 799 | 603 | { |
| 800 | 604 | 0, |
| 801 | 605 | 0, |
| 802 | | BB_YM2149_1_A_w, |
| 803 | | BB_YM2149_1_B_w, |
| 606 | bb_ym1_a_w, |
| 607 | bb_ym1_b_w, |
| 804 | 608 | }; |
| 805 | 609 | |
| 806 | | static WRITE8_HANDLER(TX1_COIN_COUNTER) |
| 610 | static WRITE8_HANDLER( tx1_coin_cnt ) |
| 807 | 611 | { |
| 808 | | coin_counter_w(0,data & 0x80); |
| 809 | | coin_counter_w(1,data & 0x40); |
| 612 | coin_counter_w(0, data & 0x80); |
| 613 | coin_counter_w(1, data & 0x40); |
| 810 | 614 | } |
| 811 | | static const ppi8255_interface tx1_ppi8255_intf = |
| 615 | |
| 616 | ppi8255_interface tx1_ppi8255_intf = |
| 812 | 617 | { |
| 813 | 618 | 1, |
| 814 | | { input_port_2_r }, /* Accelerator and brake */ |
| 815 | | { input_port_3_r }, /* Steering and sound wire jumpers */ |
| 816 | | { input_port_4_r }, /* Coin and shift inputs */ |
| 817 | | { NULL }, |
| 818 | | { NULL }, |
| 819 | | { TX1_COIN_COUNTER }, |
| 619 | { tx1_ppi_porta_r }, /* Accelerator and brake */ |
| 620 | { tx1_ppi_portb_r }, /* Steering and sound wire jumpers */ |
| 621 | { input_port_4_r }, |
| 622 | { 0 }, |
| 623 | { 0 }, |
| 624 | { tx1_coin_cnt }, |
| 820 | 625 | }; |
| 821 | 626 | |
| 627 | static struct CustomSound_interface tx1_custom_interface = |
| 628 | { |
| 629 | tx1_sh_start, |
| 630 | NULL, |
| 631 | tx1_sh_reset |
| 632 | }; |
| 822 | 633 | |
| 823 | | /* Buggy Boy (3-monitor) uses a 8255 instead of the YM2149 ports for inputs */ |
| 824 | | static const ppi8255_interface buggyboy_ppi8255_intf = |
| 634 | /* Buggy Boy uses an 8255 PPI instead of YM2149 ports for inputs! */ |
| 635 | ppi8255_interface buggyboy_ppi8255_intf = |
| 825 | 636 | { |
| 826 | 637 | 1, |
| 638 | { input_port_1_r }, |
| 639 | { 0 }, |
| 827 | 640 | { input_port_2_r }, |
| 828 | | { NULL }, |
| 829 | | { input_port_3_r }, |
| 830 | | { NULL }, |
| 831 | | { NULL }, |
| 832 | | { NULL }, |
| 641 | { 0 }, |
| 642 | { 0 }, |
| 643 | { 0 }, |
| 833 | 644 | }; |
| 834 | 645 | |
| 835 | | static MACHINE_RESET( buggyb1 ) |
| 646 | static struct CustomSound_interface bb_custom_interface = |
| 836 | 647 | { |
| 837 | | UINT8 *rom = (UINT8 *)memory_region(REGION_CPU1); |
| 648 | buggyboy_sh_start, |
| 649 | NULL, |
| 650 | buggyboy_sh_reset |
| 651 | }; |
| 838 | 652 | |
| 839 | | /* |
| 840 | | The main CPU /TEST line is connected to the /BUSAK output of the Z80. |
| 653 | /************************************* |
| 654 | * |
| 655 | * Machine driver |
| 656 | * |
| 657 | *************************************/ |
| 841 | 658 | |
| 842 | | TODO: Improve communications. |
| 843 | | */ |
| 844 | | #if ROM_PATCHES |
| 845 | | rom[0xf00d0]=0x3b; /* Patch out cmp Al,05 - z80 comms */ |
| 846 | | rom[0xf00d1]=0xc0; |
| 847 | | #endif |
| 848 | | } |
| 849 | | |
| 850 | | |
| 851 | | static MACHINE_RESET( buggyboy ) |
| 852 | | { |
| 853 | | UINT8 *rom = (UINT8 *)memory_region(REGION_CPU1); |
| 854 | | |
| 855 | | ppi8255_init(&buggyboy_ppi8255_intf); |
| 856 | | |
| 857 | | #ifdef ROM_PATCHES |
| 858 | | rom[0xf00d0]=0x3b; /* Patch out cmp Al,05 - z80 comms */ |
| 859 | | rom[0xf00d1]=0xc0; |
| 860 | | #endif |
| 861 | | } |
| 862 | | |
| 863 | | static MACHINE_RESET( tx1 ) |
| 864 | | { |
| 865 | | UINT8 *rom = (UINT8 *)memory_region(REGION_CPU1); |
| 866 | | UINT8 *rom_b = (UINT8 *)memory_region(REGION_CPU2); |
| 867 | | |
| 868 | | ppi8255_init(&tx1_ppi8255_intf); |
| 869 | | |
| 870 | | rom = rom; |
| 871 | | rom_b = rom_b; |
| 872 | | |
| 873 | | /* For tx1a: Needed to skip the startup tests */ |
| 874 | | #if 0 |
| 875 | | rom_b[0xfcf38]=0x3B; /* Patch out AU check */ |
| 876 | | rom_b[0xfcf39]=0xc0; |
| 877 | | rom_b[0xfcf3a]=0x90; |
| 878 | | rom_b[0xfcf3b]=0x90; |
| 879 | | rom_b[0xfcf3c]=0x90; |
| 880 | | |
| 881 | | rom_b[0xfce68]=0x3b; |
| 882 | | rom_b[0xfce69]=0xc0; |
| 883 | | rom_b[0xfce6a]=0x90; |
| 884 | | |
| 885 | | rom_b[0xfcf43]=0x3B; /* Patch out AU check */ |
| 886 | | rom_b[0xfcf44]=0xc0; |
| 887 | | rom_b[0xfcf45]=0x90; |
| 888 | | rom_b[0xfcf46]=0x90; |
| 889 | | rom_b[0xfcf47]=0x90; |
| 890 | | |
| 891 | | rom[0xf3c38]=0x3b; /* Main ROM Checksum */ |
| 892 | | rom[0xf3c39]=0xc0; |
| 893 | | rom[0xf0251]=0x3b; /* Patch out cmp Al,?? */ |
| 894 | | rom[0xf0252]=0xc0; |
| 895 | | rom[0xf0265]=0x3b; /* Patch out cmp Al,?? */ |
| 896 | | rom[0xf0266]=0xc0; |
| 897 | | rom[0xf0271]=0x90; /* NOP */ |
| 898 | | rom[0xf0280]=0x3b; /* Patch out cmp Al,?? */ |
| 899 | | rom[0xf0281]=0xc0; |
| 900 | | #endif |
| 901 | | } |
| 902 | | |
| 903 | 659 | static MACHINE_DRIVER_START( tx1 ) |
| 904 | | MDRV_CPU_ADD(I8086,5000000 ) |
| 905 | | MDRV_CPU_PROGRAM_MAP(tx1_master,0) |
| 906 | | MDRV_CPU_PERIODIC_INT(main_irq, 46 ) /* To do: measure HD46505 CUDISP output rate */ |
| 907 | | //MDRV_WATCHDOG_TIME_INIT(ATTOTIME_IN_SEC(5)) /* To do: measure watchdog time interval */ |
| 660 | MDRV_CPU_ADD(I8086, 5000000) |
| 661 | MDRV_CPU_PROGRAM_MAP(tx1_main, 0) |
| 662 | // MDRV_WATCHDOG_TIME_INIT(5) |
| 908 | 663 | |
| 909 | | MDRV_CPU_ADD(I8086,5000000 ) |
| 910 | | MDRV_CPU_PROGRAM_MAP(tx1_slave,0) |
| 664 | MDRV_CPU_ADD(I8086,5000000) |
| 665 | MDRV_CPU_PROGRAM_MAP(tx1_math, 0) |
| 911 | 666 | |
| 912 | | MDRV_CPU_ADD(Z80,3750000 ) /* Guess */ |
| 913 | | MDRV_CPU_PROGRAM_MAP(tx1_sound_prg,0) |
| 914 | | MDRV_CPU_IO_MAP(tx1_sound_io,0) |
| 915 | | MDRV_CPU_PERIODIC_INT(irq0_line_hold, 915.52734375/2 ) /* Guess */ |
| 667 | MDRV_CPU_ADD(Z80, TX1_PIXEL_CLOCK / 2) |
| 668 | MDRV_CPU_PROGRAM_MAP(tx1_sound_prg, 0) |
| 669 | MDRV_CPU_IO_MAP(tx1_sound_io, 0) |
| 670 | MDRV_CPU_PERIODIC_INT(irq0_line_hold, TX1_PIXEL_CLOCK / 4 / 2048 / 2) |
| 916 | 671 | |
| 917 | 672 | MDRV_MACHINE_RESET(tx1) |
| 918 | | MDRV_INTERLEAVE(100) |
| 673 | MDRV_MACHINE_START(tx1) |
| 674 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 919 | 675 | |
| 920 | 676 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 921 | 677 | MDRV_GFXDECODE(tx1) |
| 922 | | MDRV_PALETTE_LENGTH(32768) |
| 678 | MDRV_PALETTE_LENGTH(256) |
| 679 | MDRV_COLORTABLE_LENGTH(256+(256*4)+(2048*4)) |
| 680 | MDRV_PALETTE_INIT(tx1) |
| 681 | MDRV_VIDEO_EOF(tx1) |
| 682 | |
| 923 | 683 | MDRV_DEFAULT_LAYOUT(layout_triphsxs) |
| 924 | 684 | |
| 925 | 685 | MDRV_SCREEN_ADD("left", 0x000) |
| 926 | 686 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 927 | 687 | MDRV_SCREEN_REFRESH_RATE(60) |
| 928 | | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| 929 | | MDRV_SCREEN_SIZE(256, 256) |
| 930 | | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 688 | MDRV_SCREEN_RAW_PARAMS(TX1_PIXEL_CLOCK, TX1_HTOTAL, TX1_HBEND, TX1_HBSTART, TX1_VTOTAL, TX1_VBEND, TX1_VBSTART) |
| 931 | 689 | |
| 932 | | MDRV_SCREEN_ADD("middle", 0x000) |
| 690 | MDRV_SCREEN_ADD("center", 0x000) |
| 933 | 691 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 934 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 935 | | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| 936 | | MDRV_SCREEN_SIZE(256, 256) |
| 937 | | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 692 | MDRV_SCREEN_RAW_PARAMS(TX1_PIXEL_CLOCK, TX1_HTOTAL, TX1_HBEND, TX1_HBSTART, TX1_VTOTAL, TX1_VBEND, TX1_VBSTART) |
| 938 | 693 | |
| 939 | 694 | MDRV_SCREEN_ADD("right", 0x000) |
| 940 | 695 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 941 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 942 | | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| 943 | | MDRV_SCREEN_SIZE(256, 256) |
| 944 | | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 696 | MDRV_SCREEN_RAW_PARAMS(TX1_PIXEL_CLOCK, TX1_HTOTAL, TX1_HBEND, TX1_HBSTART, TX1_VTOTAL, TX1_VBEND, TX1_VBSTART) |
| 945 | 697 | |
| 946 | 698 | MDRV_VIDEO_START(tx1) |
| 947 | 699 | MDRV_VIDEO_UPDATE(tx1) |
| 948 | 700 | |
| 949 | | MDRV_SPEAKER_STANDARD_MONO("Mono") /* Mono for the time being */ |
| 701 | MDRV_SPEAKER_STANDARD_STEREO("Front Left", "Front Right") |
| 702 | // MDRV_SPEAKER_STANDARD_STEREO("Rear Left", "Rear Right") |
| 950 | 703 | |
| 951 | | MDRV_SOUND_ADD(AY8910, 1875000) /* Guess */ |
| 704 | MDRV_SOUND_ADD(AY8910, TX1_PIXEL_CLOCK / 8) |
| 952 | 705 | MDRV_SOUND_CONFIG(tx1_ay8910_interface) |
| 953 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "Mono", 0.5) |
| 706 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "Front Left", 0.5) |
| 707 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "Front Right", 0.5) |
| 708 | |
| 709 | MDRV_SOUND_ADD(CUSTOM, 0) |
| 710 | MDRV_SOUND_CONFIG(tx1_custom_interface) |
| 711 | MDRV_SOUND_ROUTE(0, "Front Left", 0.2) |
| 712 | MDRV_SOUND_ROUTE(1, "Front Right", 0.2) |
| 954 | 713 | MACHINE_DRIVER_END |
| 955 | 714 | |
| 715 | |
| 956 | 716 | static MACHINE_DRIVER_START( buggyboy ) |
| 957 | | MDRV_CPU_ADD(I8086,5000000 ) |
| 958 | | MDRV_CPU_PROGRAM_MAP(buggyboy_master,0) |
| 959 | | MDRV_CPU_PERIODIC_INT(main_irq, 46 ) /* To do: measure HD46505 CUDISP output rate */ |
| 960 | | //MDRV_WATCHDOG_TIME_INIT(ATTOTIME_IN_SEC(5)) /* To do: measure watchdog time interval */ |
| 717 | MDRV_CPU_ADD(BUGGYBOY_CPU_TYPE, 5000000) |
| 718 | MDRV_CPU_PROGRAM_MAP(buggyboy_main, 0) |
| 719 | // MDRV_WATCHDOG_TIME_INIT(5) |
| 961 | 720 | |
| 962 | | MDRV_CPU_ADD(I8086,5000000 ) |
| 963 | | MDRV_CPU_PROGRAM_MAP(buggyboy_slave,0) |
| 721 | MDRV_CPU_ADD(BUGGYBOY_CPU_TYPE, 5000000) |
| 722 | MDRV_CPU_PROGRAM_MAP(buggyboy_math, 0) |
| 964 | 723 | |
| 965 | | MDRV_CPU_ADD(Z80,3750000 ) /* audio CPU */ |
| 966 | | MDRV_CPU_PROGRAM_MAP(buggyboy_sound_prg,0) |
| 967 | | MDRV_CPU_PERIODIC_INT(z80_irq, 915.52734375/2 ) /* To do: verify against real PCB */ |
| 968 | | MDRV_CPU_IO_MAP(buggyboy_sound_io,0) |
| 724 | MDRV_CPU_ADD(Z80, BUGGYBOY_ZCLK / 2) |
| 725 | MDRV_CPU_PROGRAM_MAP(buggyboy_sound_prg, 0) |
| 726 | MDRV_CPU_PERIODIC_INT(z80_irq, BUGGYBOY_ZCLK / 2 / 4 / 2048) |
| 727 | MDRV_CPU_IO_MAP(buggyboy_sound_io, 0) |
| 969 | 728 | |
| 970 | 729 | MDRV_MACHINE_RESET(buggyboy) |
| 971 | | MDRV_INTERLEAVE(100) |
| 730 | MDRV_MACHINE_START(buggyboy) |
| 731 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 972 | 732 | |
| 973 | 733 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 974 | | MDRV_GFXDECODE(bb) |
| 734 | MDRV_GFXDECODE(buggyboy) |
| 975 | 735 | MDRV_DEFAULT_LAYOUT(layout_triphsxs) |
| 976 | 736 | |
| 977 | 737 | MDRV_SCREEN_ADD("left", 0x000) |
| 978 | 738 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 979 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 980 | | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| 981 | | MDRV_SCREEN_SIZE(256, 256) |
| 982 | | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 739 | MDRV_SCREEN_RAW_PARAMS(BB_PIXEL_CLOCK, BB_HTOTAL, BB_HBEND, BB_HBSTART, BB_VTOTAL, BB_VBEND, BB_VBSTART) |
| 983 | 740 | |
| 984 | | MDRV_SCREEN_ADD("middle", 0x000) |
| 741 | MDRV_SCREEN_ADD("center", 0x000) |
| 985 | 742 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 986 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 987 | | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| 988 | | MDRV_SCREEN_SIZE(256, 256) |
| 989 | | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 743 | MDRV_SCREEN_RAW_PARAMS(BB_PIXEL_CLOCK, BB_HTOTAL, BB_HBEND, BB_HBSTART, BB_VTOTAL, BB_VBEND, BB_VBSTART) |
| 990 | 744 | |
| 991 | 745 | MDRV_SCREEN_ADD("right", 0x000) |
| 992 | 746 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 993 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 994 | | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| 995 | | MDRV_SCREEN_SIZE(256, 256) |
| 996 | | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
| 747 | MDRV_SCREEN_RAW_PARAMS(BB_PIXEL_CLOCK, BB_HTOTAL, BB_HBEND, BB_HBSTART, BB_VTOTAL, BB_VBEND, BB_VBSTART) |
| 997 | 748 | |
| 998 | 749 | MDRV_PALETTE_LENGTH(256) |
| 999 | 750 | MDRV_COLORTABLE_LENGTH(256+(256*4)+(2048*4)) |
| r1463 | r1464 | |
| 1001 | 752 | MDRV_VIDEO_START(buggyboy) |
| 1002 | 753 | MDRV_VIDEO_UPDATE(buggyboy) |
| 1003 | 754 | |
| 1004 | | /* Sound hardware */ |
| 1005 | 755 | MDRV_SPEAKER_STANDARD_STEREO("Front Left", "Front Right") |
| 1006 | | /* MDRV_SPEAKER_STANDARD_STEREO("Rear Left", "Rear Right") */ |
| 756 | // MDRV_SPEAKER_STANDARD_STEREO("Rear Left", "Rear Right") |
| 1007 | 757 | |
| 1008 | | MDRV_SOUND_ADD(AY8910, 1875000) |
| 1009 | | MDRV_SOUND_CONFIG(buggyboy_ay8910_interface_1) |
| 758 | MDRV_SOUND_ADD(YM2149, BUGGYBOY_ZCLK / 4) |
| 759 | MDRV_SOUND_CONFIG(buggyboy_ym2149_interface_1) |
| 1010 | 760 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "Front Left", 0.15) |
| 1011 | 761 | |
| 1012 | | MDRV_SOUND_ADD(AY8910, 1875000) |
| 1013 | | MDRV_SOUND_CONFIG(buggyboy_ay8910_interface_2) |
| 762 | MDRV_SOUND_ADD(YM2149, BUGGYBOY_ZCLK / 4) |
| 763 | MDRV_SOUND_CONFIG(buggyboy_ym2149_interface_2) |
| 1014 | 764 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "Front Right", 0.15) |
| 765 | |
| 766 | MDRV_SOUND_ADD(CUSTOM, 0) |
| 767 | MDRV_SOUND_CONFIG(bb_custom_interface) |
| 768 | MDRV_SOUND_ROUTE(0, "Front Left", 0.2) |
| 769 | MDRV_SOUND_ROUTE(1, "Front Right", 0.2) |
| 1015 | 770 | MACHINE_DRIVER_END |
| 1016 | 771 | |
| 1017 | 772 | |
| 1018 | | /* Need to verify clocks on real PCB */ |
| 1019 | | static MACHINE_DRIVER_START( buggyb1 ) |
| 1020 | | MDRV_CPU_ADD(I8086,5000000 ) |
| 1021 | | MDRV_CPU_PROGRAM_MAP(buggyb1_master,0) |
| 1022 | | MDRV_CPU_PERIODIC_INT(main_irq, 46 ) /* To do: measure HD46505 CUDISP output rate */ |
| 1023 | | //MDRV_WATCHDOG_TIME_INIT(ATTOTIME_IN_SEC(5)) /* To do: measure watchdog time interval */ |
| 773 | static MACHINE_DRIVER_START( buggybjr ) |
| 774 | MDRV_CPU_ADD(BUGGYBOY_CPU_TYPE, 5000000) |
| 775 | MDRV_CPU_PROGRAM_MAP(buggybjr_main, 0) |
| 776 | // MDRV_WATCHDOG_TIME_INIT(5) |
| 1024 | 777 | |
| 1025 | | MDRV_CPU_ADD(I8086,5000000 ) |
| 1026 | | MDRV_CPU_PROGRAM_MAP(buggyboy_slave,0) |
| 778 | MDRV_CPU_ADD(BUGGYBOY_CPU_TYPE, 5000000) |
| 779 | MDRV_CPU_PROGRAM_MAP(buggyboy_math, 0) |
| 1027 | 780 | |
| 1028 | | MDRV_CPU_ADD(Z80,3750000 ) /* audio CPU */ |
| 1029 | | MDRV_CPU_PROGRAM_MAP(buggyb1_sound_prg,0) |
| 1030 | | MDRV_CPU_PERIODIC_INT(z80_irq, 915.52734375/2 ) /* To do: verify against real PCB*/ |
| 1031 | | MDRV_CPU_IO_MAP(buggyboy_sound_io,0) |
| 781 | MDRV_CPU_ADD(Z80, BUGGYBOY_ZCLK / 2) |
| 782 | MDRV_CPU_PROGRAM_MAP(buggybjr_sound_prg, 0) |
| 783 | MDRV_CPU_IO_MAP(buggyboy_sound_io, 0) |
| 784 | MDRV_CPU_PERIODIC_INT(z80_irq, BUGGYBOY_ZCLK / 2 / 4 / 2048) |
| 1032 | 785 | |
| 1033 | | /* Confirm this stuff */ |
| 1034 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 1035 | | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| 1036 | | MDRV_MACHINE_RESET( buggyb1 ) |
| 1037 | | MDRV_INTERLEAVE(100) /* ? */ |
| 786 | MDRV_MACHINE_RESET(buggybjr) |
| 787 | MDRV_MACHINE_START(buggybjr) |
| 788 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1038 | 789 | |
| 1039 | 790 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 1040 | 791 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 792 | |
| 793 | #if 0 |
| 794 | MDRV_SCREEN_RAW_PARAMS(BB_PIXEL_CLOCK, BB_HTOTAL, BB_HBEND, BB_HBSTART, BB_VTOTAL, BB_VBEND, BB_VBSTART) |
| 795 | #else |
| 796 | MDRV_SCREEN_REFRESH_RATE(54.10) |
| 797 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(3072)) |
| 1041 | 798 | MDRV_SCREEN_SIZE(256, 256) |
| 1042 | 799 | MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 239) |
| 1043 | | MDRV_GFXDECODE(bb) |
| 1044 | | |
| 800 | #endif |
| 801 | MDRV_GFXDECODE(buggyboy) |
| 1045 | 802 | MDRV_PALETTE_LENGTH(256) |
| 1046 | | MDRV_COLORTABLE_LENGTH(256+(256*4)+(2048*4)) /* 256 for chars, 2048 for objects */ |
| 803 | MDRV_COLORTABLE_LENGTH(256) |
| 1047 | 804 | MDRV_PALETTE_INIT(buggyboy) |
| 1048 | | MDRV_VIDEO_START(buggyb1) |
| 1049 | | MDRV_VIDEO_UPDATE(buggyb1) |
| 805 | MDRV_VIDEO_START(buggybjr) |
| 806 | MDRV_VIDEO_UPDATE(buggybjr) |
| 807 | MDRV_VIDEO_EOF(buggyboy) |
| 1050 | 808 | |
| 1051 | | /* Sound hardware */ |
| 1052 | 809 | MDRV_SPEAKER_STANDARD_STEREO("Front Left", "Front Right") |
| 1053 | | /* MDRV_SPEAKER_STANDARD_STEREO("Rear Left", "Rear Right") */ |
| 810 | // MDRV_SPEAKER_STANDARD_STEREO("Rear Left", "Rear Right") |
| 1054 | 811 | |
| 1055 | | MDRV_SOUND_ADD(AY8910, 1875000) |
| 1056 | | MDRV_SOUND_CONFIG(buggyboy_ay8910_interface_1) |
| 812 | MDRV_SOUND_ADD(YM2149, BUGGYBOY_ZCLK / 4) |
| 813 | MDRV_SOUND_CONFIG(buggyboy_ym2149_interface_1) |
| 1057 | 814 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "Front Left", 0.15) |
| 1058 | 815 | |
| 1059 | | MDRV_SOUND_ADD(AY8910, 1875000) |
| 1060 | | MDRV_SOUND_CONFIG(buggyboy_ay8910_interface_2) |
| 816 | MDRV_SOUND_ADD(YM2149, BUGGYBOY_ZCLK / 4) |
| 817 | MDRV_SOUND_CONFIG(buggyboy_ym2149_interface_2) |
| 1061 | 818 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "Front Right", 0.15) |
| 819 | |
| 820 | MDRV_SOUND_ADD(CUSTOM, 0) |
| 821 | MDRV_SOUND_CONFIG(bb_custom_interface) |
| 822 | MDRV_SOUND_ROUTE(0, "Front Left", 0.2) |
| 823 | MDRV_SOUND_ROUTE(1, "Front Right", 0.2) |
| 1062 | 824 | MACHINE_DRIVER_END |
| 1063 | 825 | |
| 826 | /************************************* |
| 827 | * |
| 828 | * ROM definition(s) |
| 829 | * |
| 830 | *************************************/ |
| 1064 | 831 | |
| 1065 | 832 | ROM_START( tx1 ) |
| 1066 | 833 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) |
| 1067 | | ROM_LOAD16_BYTE( "8411-136027-157.11", 0x10000, 0x2000, CRC(10ae3075) SHA1(69c5f62f2473aba848383eed3cecf15e273d86ca) ) /* Z80 ROM - checksummed by main CPU */ |
| 1068 | | |
| 1069 | 834 | ROM_LOAD16_BYTE( "tx1_1c.ic22", 0xf0000, 0x4000, CRC(eedcee83) SHA1(7fa0590b142fb13c6562126a9bdd5a1e032880c7) ) |
| 1070 | 835 | ROM_LOAD16_BYTE( "tx1_2c.ic29", 0xf0001, 0x4000, CRC(294bf5bf) SHA1(02b425caba8a187c58211bab27988205eb044558) ) |
| 836 | |
| 1071 | 837 | ROM_LOAD16_BYTE( "tx1_4c.ic54", 0xf8001, 0x4000, CRC(15bb8ef2) SHA1(83968f010ec555fcd0548a80562fb23a892b5afb) ) |
| 1072 | 838 | ROM_LOAD16_BYTE( "tx1_3c.ic45", 0xf8000, 0x4000, CRC(21a8aa55) SHA1(21bc4adefb22a95fcd7a4e305bf0b05e2cb34129) ) |
| 1073 | 839 | |
| r1463 | r1464 | |
| 1080 | 846 | ROM_RELOAD( 0x4001, 0x2000 ) |
| 1081 | 847 | ROM_RELOAD( 0x8001, 0x2000 ) |
| 1082 | 848 | ROM_RELOAD( 0xc001, 0x2000 ) |
| 849 | |
| 1083 | 850 | /* Sound */ |
| 1084 | 851 | ROM_REGION( 0x10000, REGION_CPU3, 0 ) |
| 1085 | 852 | ROM_LOAD( "8411-136027-157.11", 0x00000, 0x2000, CRC(10ae3075) SHA1(69c5f62f2473aba848383eed3cecf15e273d86ca) ) |
| 1086 | 853 | |
| 1087 | 854 | /* 8x8 characters */ |
| 1088 | 855 | ROM_REGION( 0x20000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 1089 | | ROM_LOAD( "tx1_20a.ic174", 0x0000, 0x4000, CRC(dbe595fc) SHA1(1ed2f775f0a1b46a2ffbc056eb4ef732ed546d3c) ) |
| 1090 | | ROM_LOAD( "tx1_21a.ic204", 0x4000, 0x4000, CRC(cd3441ad) SHA1(8e6597b3177b8aaa34ed3373d85fc4b6231e1333) ) |
| 856 | ROM_LOAD( "tx1_21a.ic204", 0x0000, 0x4000, CRC(cd3441ad) SHA1(8e6597b3177b8aaa34ed3373d85fc4b6231e1333) ) |
| 857 | ROM_LOAD( "tx1_20a.ic174", 0x4000, 0x4000, CRC(dbe595fc) SHA1(1ed2f775f0a1b46a2ffbc056eb4ef732ed546d3c) ) |
| 1091 | 858 | |
| 1092 | 859 | /* 8x8 object chunks */ |
| 1093 | | ROM_REGION( 0x40000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 860 | ROM_REGION( 0x40000, REGION_GFX2, 0 ) |
| 1094 | 861 | ROM_LOAD( "tx1_16b.ic203", 0x0000, 0x4000, CRC(1141c965) SHA1(4b90c1428bcbd72d0449c064856a5596269b3fc6) ) |
| 1095 | 862 | ROM_LOAD( "tx1_18b.ic258", 0x4000, 0x4000, NO_DUMP ) |
| 1096 | 863 | |
| 1097 | 864 | /* 8x8 object chunks */ |
| 1098 | | ROM_REGION( 0x40000, REGION_GFX3, ROMREGION_DISPOSE ) |
| 865 | ROM_REGION( 0x40000, REGION_GFX3, 0 ) |
| 1099 | 866 | ROM_LOAD( "tx1_15b.ic173", 0x0000, 0x4000, CRC(30d1a8d5) SHA1(b4c585b7b8a8920bb3949d643e9e10c17d4009a0) ) |
| 1100 | 867 | ROM_LOAD( "tx1_17b.ic232", 0x4000, 0x4000, CRC(364bb354) SHA1(a26581ca1088b979285471e2c6595048df84d75e) ) |
| 1101 | 868 | |
| 1102 | 869 | /* Road LUTs */ |
| 1103 | | ROM_REGION( 0x40000, REGION_GFX4, ROMREGION_DISPOSE ) |
| 870 | ROM_REGION( 0x40000, REGION_GFX4, 0 ) |
| 1104 | 871 | ROM_LOAD( "tx1_5a.ic56", 0x0000, 0x2000, CRC(5635b8c1) SHA1(5cc9437a2ff0843f1917f2451852d4561c240b24) ) |
| 1105 | 872 | ROM_LOAD( "tx1_6a.ic66", 0x2000, 0x2000, CRC(03d83cf8) SHA1(5c0cfc6bf02ad2b3f37e1ceb493f69eb9829ab1e) ) |
| 1106 | 873 | ROM_LOAD( "tx1_7a.ic76", 0x4000, 0x2000, CRC(ad56013a) SHA1(ae3a91f58f30daff334754476db33ad1d12569fc) ) |
| 1107 | 874 | |
| 1108 | 875 | /* Arithmetic Unit Function Data ROMs */ |
| 1109 | | ROM_REGION( 0x10000, REGION_USER1, 0 ) |
| 876 | ROM_REGION( 0x10000, REGION_USER1, ROMREGION_LE ) |
| 1110 | 877 | ROM_LOAD16_BYTE( "tx1_10b.ic184", 0x0000, 0x4000, CRC(acf754e8) SHA1(06779e18636f0799efdaa09396e9ccd59f426257) ) |
| 1111 | 878 | ROM_LOAD16_BYTE( "tx1_11b.ic185", 0x0001, 0x4000, CRC(f89d3e20) SHA1(4b4cf679b7e3d63cded9989d2b667941f718ff57) ) |
| 879 | ROM_LOAD16_BYTE( "xb02b.ic223", 0x8000, 0x200, CRC(22c77af6) SHA1(1be8585b95316b4fc5712cdaef699e676320cd4d) ) |
| 880 | ROM_LOAD16_BYTE( "xb01b.ic213", 0x8001, 0x200, CRC(f6b8b70b) SHA1(b79374acf11d71db1e4ad3c494ac5f500a52677b) ) |
| 1112 | 881 | |
| 882 | /* Object chunk sequence LUT */ |
| 1113 | 883 | ROM_REGION( 0x50000, REGION_USER2, 0 ) |
| 1114 | | ROM_LOAD( "tx1_14b.ic106", 0x0000, 0x4000, CRC(68c63d6e) SHA1(110e02b99c44d31041be588bd14642e26890ecbd) ) /* Object chunk sequence LUT */ |
| 1115 | | ROM_LOAD( "tx1_13b.ic73", 0x4000, 0x4000, CRC(b0c581b2) SHA1(20926bc15e7c97045b219b828acfcdd99b8712a6) ) /* Object chunk sequence LUT */ |
| 884 | ROM_LOAD( "tx1_14b.ic106", 0x0000, 0x4000, CRC(68c63d6e) SHA1(110e02b99c44d31041be588bd14642e26890ecbd) ) |
| 885 | ROM_LOAD( "tx1_13b.ic73", 0x4000, 0x4000, CRC(b0c581b2) SHA1(20926bc15e7c97045b219b828acfcdd99b8712a6) ) |
| 1116 | 886 | |
| 887 | /* Object LUT */ |
| 888 | /* Object palette LUT */ |
| 1117 | 889 | ROM_REGION( 0x50000, REGION_USER3, 0 ) |
| 1118 | | ROM_LOAD( "tx1_12b.ic48", 0x0000, 0x2000, CRC(4b3d7956) SHA1(fc2432dd69f3be7007d4fd6f7c86c7c19453b1ba) ) /* Object LUT */ |
| 1119 | | ROM_LOAD( "tx1_19b.ic281", 0x2000, 0x4000, NO_DUMP ) /* Object palette LUT */ |
| 890 | ROM_LOAD( "tx1_12b.ic48", 0x0000, 0x2000, CRC(4b3d7956) SHA1(fc2432dd69f3be7007d4fd6f7c86c7c19453b1ba) ) |
| 891 | ROM_LOAD( "tx1_19b.ic281", 0x2000, 0x4000, NO_DUMP ) |
| 1120 | 892 | |
| 1121 | 893 | ROM_REGION( 0x10000, REGION_PROMS, 0 ) |
| 1122 | | ROM_LOAD( "xb01b.ic213",0x0000, 0x200, CRC(f6b8b70b) SHA1(b79374acf11d71db1e4ad3c494ac5f500a52677b) ) |
| 1123 | | ROM_LOAD( "xb02b.ic223",0x0200, 0x200, CRC(22c77af6) SHA1(1be8585b95316b4fc5712cdaef699e676320cd4d) ) |
| 1124 | | ROM_LOAD( "xb03a.ic25", 0x0300, 0x100, CRC(616a7a85) SHA1(b7c1060ecb128154092441212de64dc304aa3fcd) ) |
| 1125 | | ROM_LOAD( "xb04a.ic276",0x0500, 0x200, CRC(92bf5533) SHA1(4d9127417325af66099234178ab2641d23ee9d22) ) |
| 1126 | | ROM_LOAD( "xb04a.ic277",0x0700, 0x200, CRC(92bf5533) SHA1(4d9127417325af66099234178ab2641d23ee9d22) ) |
| 1127 | | ROM_LOAD( "xb05a.ic36", 0x0800, 0x100, CRC(3b387d01) SHA1(1229548e3052ad34eeee9598743091d19f6b8f88) ) |
| 1128 | | ROM_LOAD( "xb05a.ic57", 0x0900, 0x100, CRC(3b387d01) SHA1(1229548e3052ad34eeee9598743091d19f6b8f88) ) |
| 1129 | | ROM_LOAD( "xb05a.ic8", 0x0a00, 0x100, CRC(3b387d01) SHA1(1229548e3052ad34eeee9598743091d19f6b8f88) ) |
| 1130 | | ROM_LOAD( "xb06a.ic37", 0x0b00, 0x100, CRC(f6f4d7d9) SHA1(866024b76b26d6942bd4e1d2494686299414f6be) ) |
| 1131 | | ROM_LOAD( "xb06a.ic58", 0x0c00, 0x100, CRC(f6f4d7d9) SHA1(866024b76b26d6942bd4e1d2494686299414f6be) ) |
| 1132 | | ROM_LOAD( "xb06a.ic9", 0x0d00, 0x100, CRC(f6f4d7d9) SHA1(866024b76b26d6942bd4e1d2494686299414f6be) ) |
| 1133 | | ROM_LOAD( "xb07a.ic10", 0x0e00, 0x100, CRC(824e7532) SHA1(917ce74d2bae6af90f2c4e41d12a69f884320915) ) |
| 1134 | | ROM_LOAD( "xb07a.ic38", 0x0f00, 0x100, CRC(824e7532) SHA1(917ce74d2bae6af90f2c4e41d12a69f884320915) ) |
| 1135 | | ROM_LOAD( "xb07a.ic59", 0x1000, 0x100, CRC(824e7532) SHA1(917ce74d2bae6af90f2c4e41d12a69f884320915) ) |
| 1136 | | ROM_LOAD( "xb08.ic116", 0x1100, 0x100, CRC(5aeef5cc) SHA1(e123bf01d556178b0cf9d495bcce445f3f8421cd) ) |
| 1137 | | ROM_LOAD( "xb08.ic148", 0x1200, 0x100, CRC(5aeef5cc) SHA1(e123bf01d556178b0cf9d495bcce445f3f8421cd) ) |
| 1138 | | ROM_LOAD( "xb08.ic85", 0x1300, 0x100, CRC(5aeef5cc) SHA1(e123bf01d556178b0cf9d495bcce445f3f8421cd) ) |
| 1139 | | ROM_LOAD( "xb09.ic33", 0x1500, 0x200, CRC(fafb6917) SHA1(30eb182c7623026dce7dba9e249bc8a9eb7a7f3e) ) |
| 1140 | | ROM_LOAD( "xb10.ic40", 0x1700, 0x200, CRC(93deb894) SHA1(5ae9a21298c836fe649a52f3df2b4067f9012b91) ) |
| 1141 | | ROM_LOAD( "xb11.ic49", 0x1900, 0x200, CRC(aa5ed232) SHA1(f33e7bc2dd33ac6d75fb06b93c4dd58e5d10010d) ) |
| 1142 | | ROM_LOAD( "xb12.ic50", 0x1b00, 0x200, CRC(6b424cea) SHA1(83127326c20116b0a4be1126e163f9c6755e19dc) ) |
| 894 | /* RGB palette (left) */ |
| 895 | ROM_LOAD( "xb05a.ic57", 0x0000, 0x100, CRC(3b387d01) SHA1(1229548e3052ad34eeee9598743091d19f6b8f88) ) |
| 896 | ROM_LOAD( "xb06a.ic58", 0x0100, 0x100, CRC(f6f4d7d9) SHA1(866024b76b26d6942bd4e1d2494686299414f6be) ) |
| 897 | ROM_LOAD( "xb07a.ic59", 0x0200, 0x100, CRC(824e7532) SHA1(917ce74d2bae6af90f2c4e41d12a69f884320915) ) |
| 898 | |
| 899 | /* RGB palette (center) */ |
| 900 | ROM_LOAD( "xb05a.ic36", 0x0300, 0x100, CRC(3b387d01) SHA1(1229548e3052ad34eeee9598743091d19f6b8f88) ) |
| 901 | ROM_LOAD( "xb06a.ic37", 0x0400, 0x100, CRC(f6f4d7d9) SHA1(866024b76b26d6942bd4e1d2494686299414f6be) ) |
| 902 | ROM_LOAD( "xb07a.ic38", 0x0500, 0x100, CRC(824e7532) SHA1(917ce74d2bae6af90f2c4e41d12a69f884320915) ) |
| 903 | |
| 904 | /* RGB palette (right) */ |
| 905 | ROM_LOAD( "xb05a.ic8", 0x0600, 0x100, CRC(3b387d01) SHA1(1229548e3052ad34eeee9598743091d19f6b8f88) ) |
| 906 | ROM_LOAD( "xb06a.ic9", 0x0700, 0x100, CRC(f6f4d7d9) SHA1(866024b76b26d6942bd4e1d2494686299414f6be) ) |
| 907 | ROM_LOAD( "xb07a.ic10", 0x0800, 0x100, CRC(824e7532) SHA1(917ce74d2bae6af90f2c4e41d12a69f884320915) ) |
| 908 | |
| 909 | /* Character colour tables (L, C, R) */ |
| 910 | ROM_LOAD( "xb08.ic85", 0x0900, 0x100, CRC(5aeef5cc) SHA1(e123bf01d556178b0cf9d495bcce445f3f8421cd) ) |
| 911 | ROM_LOAD( "xb08.ic116", 0x0a00, 0x100, CRC(5aeef5cc) SHA1(e123bf01d556178b0cf9d495bcce445f3f8421cd) ) |
| 912 | ROM_LOAD( "xb08.ic148", 0x0b00, 0x100, CRC(5aeef5cc) SHA1(e123bf01d556178b0cf9d495bcce445f3f8421cd) ) |
| 913 | |
| 914 | /* Object colour table */ |
| 915 | ROM_LOAD( "xb04a.ic276",0x0c00, 0x200, CRC(92bf5533) SHA1(4d9127417325af66099234178ab2641d23ee9d22) ) |
| 916 | ROM_LOAD( "xb04a.ic277",0x0e00, 0x200, CRC(92bf5533) SHA1(4d9127417325af66099234178ab2641d23ee9d22) ) |
| 917 | |
| 918 | /* Object tile lookup */ |
| 919 | ROM_LOAD( "xb03a.ic25", 0x1000, 0x100, CRC(616a7a85) SHA1(b7c1060ecb128154092441212de64dc304aa3fcd) ) |
| 920 | |
| 921 | /* Road graphics */ |
| 922 | ROM_LOAD( "xb09.ic33", 0x1100, 0x200, CRC(fafb6917) SHA1(30eb182c7623026dce7dba9e249bc8a9eb7a7f3e) ) |
| 923 | ROM_LOAD( "xb10.ic40", 0x1300, 0x200, CRC(93deb894) SHA1(5ae9a21298c836fe649a52f3df2b4067f9012b91) ) |
| 924 | ROM_LOAD( "xb11.ic49", 0x1500, 0x200, CRC(aa5ed232) SHA1(f33e7bc2dd33ac6d75fb06b93c4dd58e5d10010d) ) |
| 925 | |
| 926 | /* Road related */ |
| 927 | ROM_LOAD( "xb12.ic50", 0x1700, 0x200, CRC(6b424cea) SHA1(83127326c20116b0a4be1126e163f9c6755e19dc) ) |
| 928 | |
| 929 | /* Arithmetic unit instructions */ |
| 930 | ROM_LOAD16_BYTE( "xb02b.ic223", 0x1800, 0x200, CRC(22c77af6) SHA1(1be8585b95316b4fc5712cdaef699e676320cd4d) ) |
| 931 | ROM_LOAD16_BYTE( "xb01b.ic213", 0x1801, 0x200, CRC(f6b8b70b) SHA1(b79374acf11d71db1e4ad3c494ac5f500a52677b) ) |
| 1143 | 932 | ROM_END |
| 1144 | 933 | |
| 1145 | 934 | ROM_START( tx1a ) |
| 1146 | 935 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) |
| 1147 | | ROM_LOAD16_BYTE( "8411-136027-157.11", 0x10000, 0x2000, CRC(10ae3075) SHA1(69c5f62f2473aba848383eed3cecf15e273d86ca) ) /* Z80 ROM - checksummed by main CPU */ |
| 1148 | | |
| 1149 | 936 | ROM_LOAD16_BYTE( "8412-136027-244.22", 0xf0000, 0x4000, CRC(2e9cefa2) SHA1(4ca04eae446e8df08ab793488a79217ed1a27875) ) |
| 1150 | 937 | ROM_LOAD16_BYTE( "8412-136027-245.29", 0xf0001, 0x4000, CRC(ade7895c) SHA1(1c33a574cae46fddb4cadb85f5de17f02ae7a596) ) |
| 1151 | 938 | ROM_LOAD16_BYTE( "8412-136027-250.54", 0xf8001, 0x4000, CRC(c8c9368f) SHA1(0972d54d506216eb2b204cf22ccdff9210fb7b10) ) |
| r1463 | r1464 | |
| 1167 | 954 | |
| 1168 | 955 | /* 8x8 characters */ |
| 1169 | 956 | ROM_REGION( 0x20000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 1170 | | ROM_LOAD( "8411-136027-155.174", 0x0000, 0x4000, CRC(e59a6b72) SHA1(c10efa77ab421ac60b97227a8d547f50f8415670) ) |
| 1171 | | ROM_LOAD( "8411-136027-156.204", 0x4000, 0x4000, CRC(60f3c616) SHA1(59c4361891e4274e27e6279c919e8fd6803af7cf) ) |
| 957 | ROM_LOAD( "8411-136027-156.204", 0x0000, 0x4000, CRC(60f3c616) SHA1(59c4361891e4274e27e6279c919e8fd6803af7cf) ) |
| 958 | ROM_LOAD( "8411-136027-155.174", 0x4000, 0x4000, CRC(e59a6b72) SHA1(c10efa77ab421ac60b97227a8d547f50f8415670) ) |
| 1172 | 959 | |
| 1173 | 960 | /* 8x8 object chunks */ |
| 1174 | | ROM_REGION( 0x40000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 961 | ROM_REGION( 0x40000, REGION_GFX2, 0 ) |
| 1175 | 962 | ROM_LOAD( "8411-136027-114.203", 0x0000, 0x4000, CRC(fc91328b) SHA1(e57fd2056b65d37cf2e1f0af56616c6555df3006) ) |
| 1176 | 963 | ROM_LOAD( "8411-136027-116.258", 0x4000, 0x4000, CRC(5745f671) SHA1(6e471633cd6de9926b3361a84430c088e1f6a097) ) |
| 964 | ROM_LOAD( "8411-136027-115.173", 0x8000, 0x4000, CRC(720e5873) SHA1(151d9063c35b26f5876cf94bdf0c2665ec701bbd) ) |
| 965 | ROM_LOAD( "8411-136027-117.232", 0xc000, 0x4000, CRC(3c68d0bc) SHA1(2dbaf2a268b90214fd61c016ac945d4371057826) ) |
| 1177 | 966 | |
| 1178 | | /* 8x8 object chunks */ |
| 1179 | | ROM_REGION( 0x40000, REGION_GFX3, ROMREGION_DISPOSE ) |
| 1180 | | ROM_LOAD( "8411-136027-115.173", 0x0000, 0x4000, CRC(720e5873) SHA1(151d9063c35b26f5876cf94bdf0c2665ec701bbd) ) |
| 1181 | | ROM_LOAD( "8411-136027-117.232", 0x4000, 0x4000, CRC(3c68d0bc) SHA1(2dbaf2a268b90214fd61c016ac945d4371057826) ) |
| 1182 | | |
| 1183 | 967 | /* Road LUTs */ |
| 1184 | | ROM_REGION( 0x40000, REGION_GFX4, ROMREGION_DISPOSE ) |
| 968 | ROM_REGION( 0x40000, REGION_GFX3, 0 ) |
| 1185 | 969 | ROM_LOAD( "8411-136027-146.56", 0x0000, 0x2000, CRC(5635b8c1) SHA1(5cc9437a2ff0843f1917f2451852d4561c240b24) ) |
| 1186 | 970 | ROM_LOAD( "8411-136027-147.66", 0x2000, 0x2000, CRC(03d83cf8) SHA1(5c0cfc6bf02ad2b3f37e1ceb493f69eb9829ab1e) ) |
| 1187 | 971 | ROM_LOAD( "8411-136027-148.76", 0x4000, 0x2000, CRC(ad56013a) SHA1(ae3a91f58f30daff334754476db33ad1d12569fc) ) |
| 1188 | 972 | |
| 1189 | 973 | /* Arithmetic Unit Function Data ROMs */ |
| 1190 | | ROM_REGION( 0x10000, REGION_USER1, 0 ) |
| 974 | ROM_REGION( 0x10000, REGION_USER1, ROMREGION_LE ) |
| 1191 | 975 | ROM_LOAD16_BYTE( "8411-136027-153.184", 0x0000, 0x4000, CRC(acf754e8) SHA1(06779e18636f0799efdaa09396e9ccd59f426257) ) |
| 1192 | 976 | ROM_LOAD16_BYTE( "8411-136027-154.185", 0x0001, 0x4000, CRC(f89d3e20) SHA1(4b4cf679b7e3d63cded9989d2b667941f718ff57) ) |
| 977 | ROM_LOAD16_BYTE( "xb02b.ic223", 0x8000, 0x200, CRC(22c77af6) SHA1(1be8585b95316b4fc5712cdaef699e676320cd4d) ) |
| 978 | ROM_LOAD16_BYTE( "xb01b.ic213", 0x8001, 0x200, CRC(f6b8b70b) SHA1(b79374acf11d71db1e4ad3c494ac5f500a52677b) ) |
| 1193 | 979 | |
| 1194 | 980 | ROM_REGION( 0x50000, REGION_USER2, 0 ) |
| 1195 | 981 | ROM_LOAD( "8411-136027-119.106", 0x0000, 0x4000, CRC(88eec0fb) SHA1(81d7a69dc1a4b3b81d7f28d97a3f80697cdcc6eb) ) /* Object chunk sequence LUT */ |
| 1196 | | ROM_LOAD( "8411-136027-120.73", 0x4000, 0x4000, CRC(407cbe65) SHA1(e1c11b65f3c6abde6d55afeaffdb39cdd6d66377) ) /* Object chunk sequence LUT */ |
| 982 | ROM_LOAD( "8411-136027-120.73", 0x4000, 0x4000, CRC(407cbe65) SHA1(e1c11b65f3c6abde6d55afeaffdb39cdd6d66377) ) /* Object chunk sequence LUT */ |
| 1197 | 983 | |
| 1198 | 984 | ROM_REGION( 0x50000, REGION_USER3, 0 ) |
| 1199 | 985 | ROM_LOAD( "8411-136027-113.48", 0x0000, 0x2000, CRC(4b3d7956) SHA1(fc2432dd69f3be7007d4fd6f7c86c7c19453b1ba) ) /* Object LUT */ |
| 1200 | 986 | ROM_LOAD( "8411-136027-118.281", 0x2000, 0x4000, CRC(de418dc7) SHA1(1233e2f7499ec5a73a40ee336d3fe26c06187784) ) /* Object palette LUT */ |
| 1201 | 987 | |
| 1202 | | /* PROMs not dumped. May well be the same as the Tazmi set. */ |
| 988 | /* Atari PROMs are not dumped but should be the same as the Tatsumi set. */ |
| 989 | ROM_REGION( 0x10000, REGION_PROMS, 0 ) |
| 990 | /* RGB palette (left) */ |
| 991 | ROM_LOAD( "xb05a.ic57", 0x0000, 0x100, CRC(3b387d01) SHA1(1229548e3052ad34eeee9598743091d19f6b8f88) ) |
| 992 | ROM_LOAD( "xb06a.ic58", 0x0100, 0x100, CRC(f6f4d7d9) SHA1(866024b76b26d6942bd4e1d2494686299414f6be) ) |
| 993 | ROM_LOAD( "xb07a.ic59", 0x0200, 0x100, CRC(824e7532) SHA1(917ce74d2bae6af90f2c4e41d12a69f884320915) ) |
| 994 | |
| 995 | /* RGB palette (center) */ |
| 996 | ROM_LOAD( "xb05a.ic36", 0x0300, 0x100, CRC(3b387d01) SHA1(1229548e3052ad34eeee9598743091d19f6b8f88) ) |
| 997 | ROM_LOAD( "xb06a.ic37", 0x0400, 0x100, CRC(f6f4d7d9) SHA1(866024b76b26d6942bd4e1d2494686299414f6be) ) |
| 998 | ROM_LOAD( "xb07a.ic38", 0x0500, 0x100, CRC(824e7532) SHA1(917ce74d2bae6af90f2c4e41d12a69f884320915) ) |
| 999 | |
| 1000 | /* RGB palette (right) */ |
| 1001 | ROM_LOAD( "xb05a.ic8", 0x0600, 0x100, CRC(3b387d01) SHA1(1229548e3052ad34eeee9598743091d19f6b8f88) ) |
| 1002 | ROM_LOAD( "xb06a.ic9", 0x0700, 0x100, CRC(f6f4d7d9) SHA1(866024b76b26d6942bd4e1d2494686299414f6be) ) |
| 1003 | ROM_LOAD( "xb07a.ic10", 0x0800, 0x100, CRC(824e7532) SHA1(917ce74d2bae6af90f2c4e41d12a69f884320915) ) |
| 1004 | |
| 1005 | /* Character colour tables (L, C, R) */ |
| 1006 | ROM_LOAD( "xb08.ic85", 0x0900, 0x100, CRC(5aeef5cc) SHA1(e123bf01d556178b0cf9d495bcce445f3f8421cd) ) |
| 1007 | ROM_LOAD( "xb08.ic116", 0x0a00, 0x100, CRC(5aeef5cc) SHA1(e123bf01d556178b0cf9d495bcce445f3f8421cd) ) |
| 1008 | ROM_LOAD( "xb08.ic148", 0x0b00, 0x100, CRC(5aeef5cc) SHA1(e123bf01d556178b0cf9d495bcce445f3f8421cd) ) |
| 1009 | |
| 1010 | /* Object colour table */ |
| 1011 | ROM_LOAD( "xb04a.ic276",0x0c00, 0x200, CRC(92bf5533) SHA1(4d9127417325af66099234178ab2641d23ee9d22) ) |
| 1012 | ROM_LOAD( "xb04a.ic277",0x0e00, 0x200, CRC(92bf5533) SHA1(4d9127417325af66099234178ab2641d23ee9d22) ) |
| 1013 | |
| 1014 | /* Object tile lookup */ |
| 1015 | ROM_LOAD( "xb03a.ic25", 0x1000, 0x100, CRC(616a7a85) SHA1(b7c1060ecb128154092441212de64dc304aa3fcd) ) |
| 1016 | |
| 1017 | /* Road graphics */ |
| 1018 | ROM_LOAD( "xb09.ic33", 0x1100, 0x200, CRC(fafb6917) SHA1(30eb182c7623026dce7dba9e249bc8a9eb7a7f3e) ) |
| 1019 | ROM_LOAD( "xb10.ic40", 0x1300, 0x200, CRC(93deb894) SHA1(5ae9a21298c836fe649a52f3df2b4067f9012b91) ) |
| 1020 | ROM_LOAD( "xb11.ic49", 0x1500, 0x200, CRC(aa5ed232) SHA1(f33e7bc2dd33ac6d75fb06b93c4dd58e5d10010d) ) |
| 1021 | |
| 1022 | /* Road related */ |
| 1023 | ROM_LOAD( "xb12.ic50", 0x1700, 0x200, CRC(6b424cea) SHA1(83127326c20116b0a4be1126e163f9c6755e19dc) ) |
| 1203 | 1024 | ROM_END |
| 1204 | 1025 | |
| 1205 | 1026 | /* The single monitor is the parent set at the moment, as the 3-monitor dump is incomplete */ |
| 1206 | | |
| 1207 | | /* Single Monitor Version */ |
| 1208 | | ROM_START( buggyb1 ) |
| 1027 | ROM_START( buggybjr ) |
| 1209 | 1028 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) |
| 1210 | | ROM_LOAD16_BYTE( "bug35s.21", 0x10000, 0x4000, CRC(65d9af57) SHA1(17b09404942d17e7254550c43b56ae96a8c55680) ) /* Z80 ROM - checksummed by main CPU */ |
| 1211 | | |
| 1212 | 1029 | ROM_LOAD16_BYTE( "bug1a.214", 0x20000, 0x8000, CRC(92797c25) SHA1(8f7434abbd7f557d3202abb01b1e4899c82c67a5) ) |
| 1213 | 1030 | ROM_LOAD16_BYTE( "bug4a.175", 0x20001, 0x8000, CRC(40ce3930) SHA1(4bf62ebeea1549a13a21a32cb860717f064b186a) ) |
| 1214 | 1031 | |
| r1463 | r1464 | |
| 1230 | 1047 | ROM_LOAD( "bug35s.21", 0x00000, 0x4000, CRC(65d9af57) SHA1(17b09404942d17e7254550c43b56ae96a8c55680) ) |
| 1231 | 1048 | |
| 1232 | 1049 | /* 8x8 characters */ |
| 1233 | | ROM_REGION( 0x20000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 1050 | ROM_REGION( 0x8000, REGION_GFX1, 0 ) |
| 1234 | 1051 | ROM_LOAD( "bug34s.46", 0x00000, 0x4000, CRC(8ea8fec4) SHA1(75e67c9a59a86fcdedf2a70fafd303baa552aa18) ) |
| 1235 | 1052 | ROM_LOAD( "bug33s.47", 0x04000, 0x4000, CRC(459c2b03) SHA1(ff62a86195042a349fbe799c638cf590fe9572bb) ) |
| 1236 | 1053 | |
| 1237 | 1054 | /* 8x8 object chunks */ |
| 1238 | | ROM_REGION( 0x40000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 1239 | | ROM_LOAD( "bug26s.147", 0x0000, 0x8000, CRC(14033710) SHA1(e05afeb557ce14055fa8b4f6d8805307feaa1660) ) |
| 1240 | | ROM_LOAD( "bug19s.144", 0x8000, 0x8000, CRC(838e0697) SHA1(0e9aff2c4065d79350ddb55edff57a899c33ef1c) ) |
| 1055 | ROM_REGION( 0x40000, REGION_GFX2, 0 ) |
| 1056 | ROM_LOAD( "bug26s.147", 0x00000, 0x8000, CRC(14033710) SHA1(e05afeb557ce14055fa8b4f6d8805307feaa1660) ) |
| 1057 | ROM_LOAD( "bug19s.144", 0x08000, 0x8000, CRC(838e0697) SHA1(0e9aff2c4065d79350ddb55edff57a899c33ef1c) ) |
| 1058 | ROM_LOAD( "bug28s.146", 0x10000, 0x8000, CRC(8b47d227) SHA1(a3e57594ad0085e8b1bd327c580eb36237f3e3d2) ) |
| 1059 | ROM_LOAD( "bug21s.143", 0x18000, 0x8000, CRC(876a5666) SHA1(db485cdf35f63c080c919ee86374f63e577092c3) ) |
| 1060 | ROM_LOAD( "bug30s.145", 0x20000, 0x8000, CRC(11d8e2a8) SHA1(9bf198229a12d331e8e7352b7ee3f39f6891f517) ) |
| 1061 | ROM_LOAD( "bug23s.142", 0x28000, 0x8000, CRC(015db5d8) SHA1(39ef8b44f2eb9399fb1555cffa6763e06d59c181) ) |
| 1241 | 1062 | |
| 1242 | | /* 8x8 object chunks */ |
| 1243 | | ROM_REGION( 0x40000, REGION_GFX3, ROMREGION_DISPOSE ) |
| 1244 | | ROM_LOAD( "bug28s.146", 0x0000, 0x8000, CRC(8b47d227) SHA1(a3e57594ad0085e8b1bd327c580eb36237f3e3d2) ) |
| 1245 | | ROM_LOAD( "bug21s.143", 0x8000, 0x8000, CRC(876a5666) SHA1(db485cdf35f63c080c919ee86374f63e577092c3) ) |
| 1246 | | |
| 1247 | | /* 8x8 object chunks */ |
| 1248 | | ROM_REGION( 0x40000, REGION_GFX4, ROMREGION_DISPOSE ) |
| 1249 | | ROM_LOAD( "bug30s.145", 0x0000, 0x8000, CRC(11d8e2a8) SHA1(9bf198229a12d331e8e7352b7ee3f39f6891f517) ) |
| 1250 | | ROM_LOAD( "bug23s.142", 0x8000, 0x8000, CRC(015db5d8) SHA1(39ef8b44f2eb9399fb1555cffa6763e06d59c181) ) |
| 1251 | | |
| 1252 | 1063 | /* Road */ |
| 1253 | | ROM_REGION( 0x40000, REGION_GFX6, 0) |
| 1254 | | ROM_LOAD( "bb3s", 0x000, 0x200, CRC(2ab3d5ff) SHA1(9f8359cb4ba2e7d15dbb9dc21cd71c0902cd2153) ) |
| 1255 | | ROM_LOAD( "bb4s", 0x200, 0x200, CRC(630f68a4) SHA1(d730f050353c688f81d090e33e00cd35e7b7b6fa) ) |
| 1256 | | ROM_LOAD( "bb5s", 0x400, 0x200, CRC(65925c9e) SHA1(d1ff1cb9f83c09e52a96632945e4edfedc335fd4) ) |
| 1257 | | ROM_LOAD( "bug11s.225", 0x1000, 0x4000, CRC(771af4e1) SHA1(a42b164dd0567c78c0d308ee48d63e5a284897bb) ) /* Road Lookup */ |
| 1064 | ROM_REGION( 0x40000, REGION_GFX6, 0 ) |
| 1065 | ROM_LOAD( "bug11s.225", 0x0000, 0x4000, CRC(771af4e1) SHA1(a42b164dd0567c78c0d308ee48d63e5a284897bb) ) |
| 1066 | ROM_LOAD( "bb3s", 0x4000, 0x200, CRC(2ab3d5ff) SHA1(9f8359cb4ba2e7d15dbb9dc21cd71c0902cd2153) ) |
| 1067 | ROM_LOAD( "bb4s", 0x4200, 0x200, CRC(630f68a4) SHA1(d730f050353c688f81d090e33e00cd35e7b7b6fa) ) |
| 1068 | ROM_LOAD( "bb5s", 0x4400, 0x200, CRC(65925c9e) SHA1(d1ff1cb9f83c09e52a96632945e4edfedc335fd4) ) |
| 1069 | ROM_LOAD( "bb6.224", 0x4600, 0x200, CRC(ad43e02a) SHA1(c50a398020508f52ddf8d45881f211d17d096fa1) ) |
| 1258 | 1070 | |
| 1259 | 1071 | /* Arithmetic Unit Function Data ROMs */ |
| 1260 | | ROM_REGION( 0x10000, REGION_USER1, 0 ) |
| 1261 | | ROM_LOAD( "bug9.138", 0x0800, 0x800, CRC(7d84135b) SHA1(3c669c4e796e83672aceeb6de1aeea28f9f2fef0) ) |
| 1262 | | ROM_CONTINUE( 0x1800, 0x800 ) |
| 1263 | | ROM_CONTINUE( 0x2800, 0x800 ) |
| 1264 | | ROM_CONTINUE( 0x3800, 0x800 ) |
| 1265 | | ROM_CONTINUE( 0x4800, 0x800 ) |
| 1266 | | ROM_CONTINUE( 0x5800, 0x800 ) |
| 1267 | | ROM_CONTINUE( 0x6800, 0x800 ) |
| 1268 | | ROM_CONTINUE( 0x7800, 0x800 ) |
| 1072 | ROM_REGION( 0x10000, REGION_USER1, ROMREGION_LE ) |
| 1073 | ROM_LOAD16_BYTE( "bug9.138", 0x0000, 0x4000, CRC(7d84135b) SHA1(3c669c4e796e83672aceeb6de1aeea28f9f2fef0) ) |
| 1074 | ROM_LOAD16_BYTE( "bug10.95", 0x0001, 0x4000, CRC(b518dd6f) SHA1(7cefa2f9438306c81dc83cd260928c835eb9b712) ) |
| 1075 | ROM_LOAD16_BYTE( "bb1.163", 0x8000, 0x0200, CRC(0ddbd36d) SHA1(7a08901a350c315d46ab8d0aa881db384b9f37d2) ) |
| 1076 | ROM_LOAD16_BYTE( "bb2.162", 0x8001, 0x0200, CRC(71d47de1) SHA1(2da9aeb3f2ebb1114631c8042a37c4f4c18e741b) ) |
| 1269 | 1077 | |
| 1270 | | ROM_LOAD( "bug10.95", 0x0000, 0x800, CRC(b518dd6f) SHA1(7cefa2f9438306c81dc83cd260928c835eb9b712) ) |
| 1271 | | ROM_CONTINUE( 0x1000, 0x800 ) |
| 1272 | | ROM_CONTINUE( 0x2000, 0x800 ) |
| 1273 | | ROM_CONTINUE( 0x3000, 0x800 ) |
| 1274 | | ROM_CONTINUE( 0x4000, 0x800 ) |
| 1275 | | ROM_CONTINUE( 0x5000, 0x800 ) |
| 1276 | | ROM_CONTINUE( 0x6000, 0x800 ) |
| 1277 | | ROM_CONTINUE( 0x7000, 0x800 ) |
| 1278 | | |
| 1078 | /* Object chunk sequence LUT */ |
| 1279 | 1079 | ROM_REGION( 0x100000, REGION_USER2, 0 ) |
| 1280 | | ROM_LOAD( "bug16s.139", 0x0000, 0x8000, CRC(1903a9ad) SHA1(526c404c15e3f04b4afb27dee66e9deb0a6b9704) ) /* Object chunk sequence LUT */ |
| 1281 | | ROM_LOAD( "bug17s.140", 0x8000, 0x8000, CRC(82cabdd4) SHA1(94324fcf83c373621fc40553473ae3cb552ab704) ) /* Object chunk sequence LUT */ |
| 1080 | ROM_LOAD( "bug16s.139", 0x0000, 0x8000, CRC(1903a9ad) SHA1(526c404c15e3f04b4afb27dee66e9deb0a6b9704) ) |
| 1081 | ROM_LOAD( "bug17s.140", 0x8000, 0x8000, CRC(82cabdd4) SHA1(94324fcf83c373621fc40553473ae3cb552ab704) ) |
| 1282 | 1082 | |
| 1083 | /* Object LUT and palette LUT*/ |
| 1283 | 1084 | ROM_REGION( 0x10000, REGION_USER3, 0 ) |
| 1284 | | ROM_LOAD( "bug13.32", 0x0000, 0x2000, CRC(53604d7a) SHA1(bfa304cd885162ece7a5f54988d9880fc541eb3a) ) /* Object LUT */ |
| 1285 | | ROM_LOAD( "bug18s.141", 0x2000, 0x4000, CRC(67786327) SHA1(32cc1f5bc654497c968ddcd4af29720c6d659482) ) /* Object palette LUT */ |
| 1085 | ROM_LOAD( "bug13.32", 0x0000, 0x2000, CRC(53604d7a) SHA1(bfa304cd885162ece7a5f54988d9880fc541eb3a) ) |
| 1086 | ROM_LOAD( "bug18s.141", 0x2000, 0x4000, CRC(67786327) SHA1(32cc1f5bc654497c968ddcd4af29720c6d659482) ) |
| 1286 | 1087 | |
| 1287 | 1088 | ROM_REGION( 0x10000, REGION_PROMS, 0 ) |
| 1288 | | ROM_LOAD( "bb10.41", 0x000, 0x100, CRC(f2368398) SHA1(53f28dba11bb494d033bb279abf138975c84b20d) ) /* RED */ |
| 1289 | | ROM_LOAD( "bb11.40", 0x100, 0x100, CRC(bf77f624) SHA1(b042d293d2094dbabb32d628fd9addd832f084ef) ) /* GREEN */ |
| 1290 | | ROM_LOAD( "bb12.39", 0x200, 0x100, CRC(10a2e8d1) SHA1(51a8c51ecbbb7bd04ae46fb5598d2c8de8097581) ) /* BLUE */ |
| 1089 | /* RGBI */ |
| 1090 | ROM_LOAD( "bb10.41", 0x000, 0x100, CRC(f2368398) SHA1(53f28dba11bb494d033bb279abf138975c84b20d) ) |
| 1091 | ROM_LOAD( "bb11.40", 0x100, 0x100, CRC(bf77f624) SHA1(b042d293d2094dbabb32d628fd9addd832f084ef) ) |
| 1092 | ROM_LOAD( "bb12.39", 0x200, 0x100, CRC(10a2e8d1) SHA1(51a8c51ecbbb7bd04ae46fb5598d2c8de8097581) ) |
| 1291 | 1093 | ROM_LOAD( "bb13.42", 0x300, 0x100, CRC(40d10dfa) SHA1(e40b4c424827937fec6df1a27b19b8dc09d3274a) ) |
| 1292 | | ROM_LOAD( "bb14.19", 0x400, 0x100, CRC(0b821e0b) SHA1(b9401b9364fb99e15f562df91dcfdec1b989af2d) ) /* Character colour LUT */ |
| 1293 | 1094 | |
| 1294 | | ROM_LOAD( "bb9.190", 0x500, 0x800, CRC(6fc807d1) SHA1(3442cbb21bbedf6291a3fe1747d479445f613d26) ) /* Object colour LUT (odd) */ |
| 1295 | | ROM_LOAD( "bb9.162", 0xd00, 0x800, CRC(6fc807d1) SHA1(3442cbb21bbedf6291a3fe1747d479445f613d26) ) /* Object colour LUT (even)*/ |
| 1296 | | ROM_LOAD( "bb7.188", 0x1500, 0x100, CRC(b57b609f) SHA1(2dea375437c62cb4c64b21d5e6ddc09397b6ab35) ) /* Road colour LUT */ |
| 1095 | /* Character colour LUT */ |
| 1096 | ROM_LOAD( "bb14.19", 0x400, 0x100, CRC(0b821e0b) SHA1(b9401b9364fb99e15f562df91dcfdec1b989af2d) ) |
| 1297 | 1097 | |
| 1298 | | ROM_LOAD( "bb8.31", 0x1600, 0x100, CRC(2330ff4f) SHA1(e86eb63ce47572bcbbf325f9bb749d10d96bf2e7) ) /* Object tile LUT */ |
| 1299 | | ROM_LOAD( "bb1.163", 0x1700, 0x200, CRC(0ddbd36d) SHA1(7a08901a350c315d46ab8d0aa881db384b9f37d2) ) /* Arithmetic instruction PROM */ |
| 1300 | | ROM_LOAD( "bb2.162", 0x1900, 0x200, CRC(71d47de1) SHA1(2da9aeb3f2ebb1114631c8042a37c4f4c18e741b) ) /* Arithmetic instruction PROM */ |
| 1301 | | ROM_LOAD( "bb6.224", 0x1b00, 0x200, CRC(ad43e02a) SHA1(c50a398020508f52ddf8d45881f211d17d096fa1) ) /* Road video timing? */ |
| 1098 | /* Object colour LUTs (odd and even pixels) */ |
| 1099 | ROM_LOAD( "bb9.190", 0x500, 0x800, CRC(6fc807d1) SHA1(3442cbb21bbedf6291a3fe1747d479445f613d26) ) |
| 1100 | ROM_LOAD( "bb9.162", 0xd00, 0x800, CRC(6fc807d1) SHA1(3442cbb21bbedf6291a3fe1747d479445f613d26) ) |
| 1101 | |
| 1102 | /* Object tile LUT */ |
| 1103 | ROM_LOAD( "bb8.31", 0x1600, 0x100, CRC(2330ff4f) SHA1(e86eb63ce47572bcbbf325f9bb749d10d96bf2e7) ) |
| 1104 | |
| 1105 | /* Road */ |
| 1106 | ROM_LOAD( "bb7.188", 0x1500, 0x100, CRC(b57b609f) SHA1(2dea375437c62cb4c64b21d5e6ddc09397b6ab35) ) |
| 1302 | 1107 | ROM_END |
| 1303 | 1108 | |
| 1304 | | /* 3 Monitor Version */ |
| 1109 | |
| 1305 | 1110 | ROM_START( buggyboy ) |
| 1306 | 1111 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) |
| 1307 | 1112 | ROM_LOAD16_BYTE( "bug1a.230", 0x20000, 0x8000, CRC(92797c25) SHA1(8f7434abbd7f557d3202abb01b1e4899c82c67a5) ) |
| r1463 | r1464 | |
| 1313 | 1118 | ROM_LOAD16_BYTE( "bug3b.232", 0xf8000, 0x4000, CRC(43cce3f0) SHA1(17de3728d809d386f6a7a330c8c8701975d4ebed) ) |
| 1314 | 1119 | ROM_LOAD16_BYTE( "bug6b.175", 0xf8001, 0x4000, CRC(8f000dfa) SHA1(5fd78a03a00f547bbb431839f78a8d10a4ba8e3e) ) |
| 1315 | 1120 | |
| 1316 | | ROM_LOAD16_BYTE( "bug35.11", 0x10000, 0x4000, CRC(7aa16e9e) SHA1(ea54e56270f70351a62a78fa32027bb41ef9861e) ) /* Z80 ROM - tested by main CPU */ |
| 1317 | | |
| 1318 | 1121 | ROM_REGION( 0x100000, REGION_CPU2, 0 ) |
| 1319 | 1122 | ROM_LOAD16_BYTE( "bug8a.061", 0x4000, 0x2000, CRC(512291cd) SHA1(60f87133c86b88b982ba4680f96d0ac55970cb8d) ) |
| 1320 | 1123 | ROM_RELOAD( 0x8000, 0x2000 ) |
| r1463 | r1464 | |
| 1326 | 1129 | ROM_RELOAD( 0xc001, 0x2000 ) |
| 1327 | 1130 | ROM_RELOAD( 0xfc001, 0x2000 ) |
| 1328 | 1131 | |
| 1329 | | ROM_REGION( 0x10000, REGION_CPU3, 0 ) /* Sound */ |
| 1132 | ROM_REGION( 0x10000, REGION_CPU3, 0 ) |
| 1330 | 1133 | ROM_LOAD( "bug35.11", 0x00000, 0x4000, CRC(7aa16e9e) SHA1(ea54e56270f70351a62a78fa32027bb41ef9861e) ) |
| 1331 | 1134 | |
| 1332 | | /* 8x8 Characters */ |
| 1333 | 1135 | ROM_REGION( 0x20000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 1334 | 1136 | ROM_LOAD( "bug34s.46", 0x00000, 0x4000, CRC(8ea8fec4) SHA1(75e67c9a59a86fcdedf2a70fafd303baa552aa18) ) |
| 1335 | 1137 | ROM_LOAD( "bug33s.47", 0x04000, 0x4000, CRC(459c2b03) SHA1(ff62a86195042a349fbe799c638cf590fe9572bb) ) |
| 1336 | 1138 | |
| 1337 | | /* 8x8 object chunks */ |
| 1338 | 1139 | ROM_REGION( 0x40000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 1339 | 1140 | ROM_LOAD( "bug26s.147", 0x0000, 0x8000, CRC(14033710) SHA1(e05afeb557ce14055fa8b4f6d8805307feaa1660) ) |
| 1340 | 1141 | ROM_LOAD( "bug19s.144", 0x8000, 0x8000, CRC(838e0697) SHA1(0e9aff2c4065d79350ddb55edff57a899c33ef1c) ) |
| 1341 | 1142 | |
| 1342 | | /* 8x8 object chunks */ |
| 1343 | 1143 | ROM_REGION( 0x40000, REGION_GFX3, ROMREGION_DISPOSE ) |
| 1344 | 1144 | ROM_LOAD( "bug28s.146", 0x0000, 0x8000, CRC(8b47d227) SHA1(a3e57594ad0085e8b1bd327c580eb36237f3e3d2) ) |
| 1345 | 1145 | ROM_LOAD( "bug21s.143", 0x8000, 0x8000, CRC(876a5666) SHA1(db485cdf35f63c080c919ee86374f63e577092c3) ) |
| 1346 | 1146 | |
| 1347 | | /* 8x8 object chunks */ |
| 1348 | 1147 | ROM_REGION( 0x40000, REGION_GFX4, ROMREGION_DISPOSE ) |
| 1349 | 1148 | ROM_LOAD( "bug30s.145", 0x0000, 0x8000, CRC(11d8e2a8) SHA1(9bf198229a12d331e8e7352b7ee3f39f6891f517) ) |
| 1350 | 1149 | ROM_LOAD( "bug23s.142", 0x8000, 0x8000, CRC(015db5d8) SHA1(39ef8b44f2eb9399fb1555cffa6763e06d59c181) ) |
| 1351 | 1150 | |
| 1352 | | /* Object Lookups */ |
| 1353 | 1151 | ROM_REGION( 0x40000, REGION_GFX5, ROMREGION_DISPOSE ) |
| 1354 | 1152 | ROM_LOAD( "bug16s.139", 0x0000, 0x8000, CRC(1903a9ad) SHA1(526c404c15e3f04b4afb27dee66e9deb0a6b9704) ) |
| 1355 | 1153 | ROM_LOAD( "bug17s.140", 0x8000, 0x8000, CRC(82cabdd4) SHA1(94324fcf83c373621fc40553473ae3cb552ab704) ) |
| 1356 | 1154 | ROM_LOAD( "bug18s.141", 0x10000, 0x4000, CRC(67786327) SHA1(32cc1f5bc654497c968ddcd4af29720c6d659482) ) |
| 1357 | 1155 | |
| 1358 | | /* Road */ |
| 1359 | 1156 | ROM_REGION( 0x40000, REGION_GFX6, 0) |
| 1360 | 1157 | ROM_LOAD( "bb3s", 0x000, 0x200, CRC(2ab3d5ff) SHA1(9f8359cb4ba2e7d15dbb9dc21cd71c0902cd2153) ) |
| 1361 | 1158 | ROM_LOAD( "bb4s", 0x200, 0x200, CRC(630f68a4) SHA1(d730f050353c688f81d090e33e00cd35e7b7b6fa) ) |
| 1362 | 1159 | ROM_LOAD( "bb5s", 0x400, 0x200, CRC(65925c9e) SHA1(d1ff1cb9f83c09e52a96632945e4edfedc335fd4) ) |
| 1363 | | ROM_LOAD( "bug11s.225", 0x1000, 0x4000, CRC(771af4e1) SHA1(a42b164dd0567c78c0d308ee48d63e5a284897bb) ) /* Road Lookup */ |
| 1160 | ROM_LOAD( "bug11s.225", 0x1000, 0x4000, CRC(771af4e1) SHA1(a42b164dd0567c78c0d308ee48d63e5a284897bb) ) |
| 1364 | 1161 | |
| 1365 | | /* Arithmetic Unit Function Data ROMs */ |
| 1366 | | ROM_REGION( 0x10000, REGION_USER1, 0 ) |
| 1367 | | ROM_LOAD( "bug9.138", 0x0800, 0x800, CRC(7d84135b) SHA1(3c669c4e796e83672aceeb6de1aeea28f9f2fef0) ) |
| 1368 | | ROM_CONTINUE( 0x1800, 0x800 ) |
| 1369 | | ROM_CONTINUE( 0x2800, 0x800 ) |
| 1370 | | ROM_CONTINUE( 0x3800, 0x800 ) |
| 1371 | | ROM_CONTINUE( 0x4800, 0x800 ) |
| 1372 | | ROM_CONTINUE( 0x5800, 0x800 ) |
| 1373 | | ROM_CONTINUE( 0x6800, 0x800 ) |
| 1374 | | ROM_CONTINUE( 0x7800, 0x800 ) |
| 1162 | ROM_REGION( 0x10000, REGION_USER1, ROMREGION_LE ) |
| 1163 | ROM_LOAD16_BYTE( "bug9.138", 0x0000, 0x4000, CRC(7d84135b) SHA1(3c669c4e796e83672aceeb6de1aeea28f9f2fef0) ) |
| 1164 | ROM_LOAD16_BYTE( "bug10.95", 0x0001, 0x4000, CRC(b518dd6f) SHA1(7cefa2f9438306c81dc83cd260928c835eb9b712) ) |
| 1165 | ROM_LOAD16_BYTE( "bb1.163", 0x8000, 0x0200, CRC(0ddbd36d) SHA1(7a08901a350c315d46ab8d0aa881db384b9f37d2) ) |
| 1166 | ROM_LOAD16_BYTE( "bb2.162", 0x8001, 0x0200, CRC(71d47de1) SHA1(2da9aeb3f2ebb1114631c8042a37c4f4c18e741b) ) |
| 1375 | 1167 | |
| 1376 | | ROM_LOAD( "bug10.95", 0x0000, 0x800, CRC(b518dd6f) SHA1(7cefa2f9438306c81dc83cd260928c835eb9b712) ) |
| 1377 | | ROM_CONTINUE( 0x1000, 0x800 ) |
| 1378 | | ROM_CONTINUE( 0x2000, 0x800 ) |
| 1379 | | ROM_CONTINUE( 0x3000, 0x800 ) |
| 1380 | | ROM_CONTINUE( 0x4000, 0x800 ) |
| 1381 | | ROM_CONTINUE( 0x5000, 0x800 ) |
| 1382 | | ROM_CONTINUE( 0x6000, 0x800 ) |
| 1383 | | ROM_CONTINUE( 0x7000, 0x800 ) |
| 1384 | | |
| 1385 | 1168 | ROM_REGION( 0x100000, REGION_USER2, 0 ) |
| 1386 | | ROM_LOAD( "bug16s.139", 0x0000, 0x8000, CRC(1903a9ad) SHA1(526c404c15e3f04b4afb27dee66e9deb0a6b9704) ) /* Object chunk sequence LUT */ |
| 1387 | | ROM_LOAD( "bug17s.140", 0x8000, 0x8000, CRC(82cabdd4) SHA1(94324fcf83c373621fc40553473ae3cb552ab704) ) /* Object chunk sequence LUT */ |
| 1169 | ROM_LOAD( "bug16s.139", 0x0000, 0x8000, CRC(1903a9ad) SHA1(526c404c15e3f04b4afb27dee66e9deb0a6b9704) ) |
| 1170 | ROM_LOAD( "bug17s.140", 0x8000, 0x8000, CRC(82cabdd4) SHA1(94324fcf83c373621fc40553473ae3cb552ab704) ) |
| 1388 | 1171 | |
| 1389 | 1172 | ROM_REGION( 0x10000, REGION_USER3, 0 ) |
| 1390 | | ROM_LOAD( "bug13.32", 0x0000, 0x2000, CRC(53604d7a) SHA1(bfa304cd885162ece7a5f54988d9880fc541eb3a) ) /* Object LUT */ |
| 1391 | | ROM_LOAD( "bug18s.141", 0x2000, 0x4000, CRC(67786327) SHA1(32cc1f5bc654497c968ddcd4af29720c6d659482) ) /* Object palette LUT */ |
| 1173 | ROM_LOAD( "bug13.32", 0x0000, 0x2000, CRC(53604d7a) SHA1(bfa304cd885162ece7a5f54988d9880fc541eb3a) ) |
| 1174 | ROM_LOAD( "bug18s.141", 0x2000, 0x4000, CRC(67786327) SHA1(32cc1f5bc654497c968ddcd4af29720c6d659482) ) |
| 1392 | 1175 | |
| 1393 | 1176 | ROM_REGION( 0x10000, REGION_PROMS, 0 ) |
| 1394 | | ROM_LOAD( "bb10.41", 0x000, 0x100, CRC(f2368398) SHA1(53f28dba11bb494d033bb279abf138975c84b20d) ) /* RED */ |
| 1395 | | ROM_LOAD( "bb11.40", 0x100, 0x100, CRC(bf77f624) SHA1(b042d293d2094dbabb32d628fd9addd832f084ef) ) /* GREEN */ |
| 1396 | | ROM_LOAD( "bb12.39", 0x200, 0x100, CRC(10a2e8d1) SHA1(51a8c51ecbbb7bd04ae46fb5598d2c8de8097581) ) /* BLUE */ |
| 1177 | ROM_LOAD( "bb10.41", 0x000, 0x100, CRC(f2368398) SHA1(53f28dba11bb494d033bb279abf138975c84b20d) ) |
| 1178 | ROM_LOAD( "bb11.40", 0x100, 0x100, CRC(bf77f624) SHA1(b042d293d2094dbabb32d628fd9addd832f084ef) ) |
| 1179 | ROM_LOAD( "bb12.39", 0x200, 0x100, CRC(10a2e8d1) SHA1(51a8c51ecbbb7bd04ae46fb5598d2c8de8097581) ) |
| 1397 | 1180 | ROM_LOAD( "bb13.42", 0x300, 0x100, CRC(40d10dfa) SHA1(e40b4c424827937fec6df1a27b19b8dc09d3274a) ) |
| 1398 | | ROM_LOAD( "bb14.19", 0x400, 0x100, CRC(0b821e0b) SHA1(b9401b9364fb99e15f562df91dcfdec1b989af2d) ) /* Character colour LUT */ |
| 1181 | ROM_LOAD( "bb14.19", 0x400, 0x100, CRC(0b821e0b) SHA1(b9401b9364fb99e15f562df91dcfdec1b989af2d) ) |
| 1399 | 1182 | |
| 1400 | | ROM_LOAD( "bb9.190", 0x500, 0x800, CRC(6fc807d1) SHA1(3442cbb21bbedf6291a3fe1747d479445f613d26) ) /* Object colour LUT (odd) */ |
| 1401 | | ROM_LOAD( "bb9.162", 0xd00, 0x800, CRC(6fc807d1) SHA1(3442cbb21bbedf6291a3fe1747d479445f613d26) ) /* Object colour LUT (even)*/ |
| 1402 | | ROM_LOAD( "bb7.188", 0x1500,0x100, CRC(b57b609f) SHA1(2dea375437c62cb4c64b21d5e6ddc09397b6ab35) ) /* Road colour LUT */ |
| 1403 | | |
| 1404 | | ROM_LOAD( "bb8.31", 0x1600, 0x100, CRC(2330ff4f) SHA1(e86eb63ce47572bcbbf325f9bb749d10d96bf2e7) ) /* Object tile LUT */ |
| 1405 | | ROM_LOAD( "bb1.163", 0x1700, 0x200, CRC(0ddbd36d) SHA1(7a08901a350c315d46ab8d0aa881db384b9f37d2) ) /* Arithmetic instruction PROM */ |
| 1406 | | ROM_LOAD( "bb2.162", 0x1900, 0x200, CRC(71d47de1) SHA1(2da9aeb3f2ebb1114631c8042a37c4f4c18e741b) ) /* Arithmetic instruction PROM */ |
| 1183 | ROM_LOAD( "bb9.190", 0x500, 0x800, CRC(6fc807d1) SHA1(3442cbb21bbedf6291a3fe1747d479445f613d26) ) |
| 1184 | ROM_LOAD( "bb9.162", 0xd00, 0x800, CRC(6fc807d1) SHA1(3442cbb21bbedf6291a3fe1747d479445f613d26) ) |
| 1185 | ROM_LOAD( "bb7.188", 0x1500,0x100, CRC(b57b609f) SHA1(2dea375437c62cb4c64b21d5e6ddc09397b6ab35) ) |
| 1186 | ROM_LOAD( "bb8.31", 0x1600, 0x100, CRC(2330ff4f) SHA1(e86eb63ce47572bcbbf325f9bb749d10d96bf2e7) ) |
| 1407 | 1187 | ROM_END |
| 1408 | 1188 | |
| 1409 | | GAME( 1983, tx1, 0, tx1, tx1, 0, ROT0, "Tazmi", "TX-1", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1410 | | GAME( 1983, tx1a, 0, tx1, tx1, 0, ROT0, "Tazmi", "TX-1 (Atari/Namco/Taito License)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1411 | | GAME( 1985, buggyboy, buggyb1, buggyboy, buggyboy, 0, ROT0, "Tatsumi", "Buggy Boy", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1412 | | GAME( 1986, buggyb1, 0, buggyb1, buggyb1, 0, ROT0, "Tatsumi", "Buggy Boy (Single Monitor)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1189 | /************************************* |
| 1190 | * |
| 1191 | * Game driver(s) |
| 1192 | * |
| 1193 | *************************************/ |
| 1194 | |
| 1195 | GAME( 1983, tx1, 0, tx1, tx1, 0, ROT0, "Tatsumi", "TX-1", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1196 | GAME( 1983, tx1a, tx1, tx1, tx1, 0, ROT0, "Tatsumi", "TX-1 (Atari/Namco/Taito license)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1197 | GAME( 1985, buggyboy, buggybjr, buggyboy, buggyboy, 0, ROT0, "Tatsumi", "Buggy Boy/Speed Buggy (Cockpit)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1198 | GAME( 1986, buggybjr, 0, buggybjr, buggybjr, 0, ROT0, "Tatsumi", "Buggy Boy Junior/Speed Buggy (Upright)", 0 ) |
src/mame/drivers/nmk16.c
| r1463 | r1464 | |
| 16 | 16 | Thunder Dragon 2 1993 NMK 68000 Z80 YM2203 2xOKIM6295 |
| 17 | 17 | Rapid Hero 1994 NMK 68000 tmp90c841 YM2203 2xOKIM6295 |
| 18 | 18 | |
| 19 | | S.S. Mission 1992 Comad 68000 Z80 OKIM6295 |
| 20 | | Air Attack 1996 Comad 68000 Z80 OKIM6295 |
| 19 | S.S. Mission 1992 Comad 68000 Z80 OKIM6295 (hack of Thunder Dragon) |
| 20 | Air Attack 1996 Comad 68000 Z80 OKIM6295 (hack of Thunder Dragon) |
| 21 | 21 | |
| 22 | 22 | Mustang (bootleg) 68000 Z80 YM3812 OKIM6295 |
| 23 | 23 | Thunder Dragon (bootleg) 68000 Z80 YM3812 OKIM6295 |
| r1463 | r1464 | |
| 124 | 124 | Z80 program (but the music is intact and recognizable). See audio/seibu.c |
| 125 | 125 | for more info on this. |
| 126 | 126 | |
| 127 | --- |
| 128 | |
| 129 | Afega Games |
| 130 | |
| 131 | 95 Twin Action this is a hack of Mustang with new graphics |
| 132 | 97 Red Hawk US Version of Stagger 1 |
| 133 | 98 Sen Jin - Guardian Storm |
| 134 | 98 Stagger I |
| 135 | |
| 136 | 98 Bubble 2000 By Tuning, but it seems to be the same HW |
| 137 | / Hot Bubble |
| 138 | |
| 139 | 00 Spectrum 2000 By YomaTech -- NOTE sprite bugs happen on real hw!! |
| 140 | |
| 141 | 01 Fire Hawk By ESD with different sound hardware: 2 M6295, |
| 142 | this doesn't have the glitches present in spec2k |
| 143 | |
| 144 | |
| 127 | 145 | ********************************************************************/ |
| 128 | 146 | |
| 129 | 147 | #include "driver.h" |
| r1463 | r1464 | |
| 136 | 154 | #include "cpu/pic16c5x/pic16c5x.h" |
| 137 | 155 | |
| 138 | 156 | |
| 157 | /********************************************************** |
| 158 | Protection: Memory Scrambling |
| 159 | |
| 160 | Several NMK and Afega games (notably the ones running at |
| 161 | the lower resolution) require strange handling of work |
| 162 | RAM when performing 8-bit writes. This handling breaks |
| 163 | some of the later games if used, but is essential for |
| 164 | Mustang, Black Heart, Task Force Harrier, and the Afega |
| 165 | shooters to work correctly without ROM patches. Tests |
| 166 | on the board would help verify this as correct. |
| 167 | |
| 168 | I'm not sure if this is actually protection, or just |
| 169 | poor board design. |
| 170 | |
| 171 | **********************************************************/ |
| 172 | |
| 173 | UINT16* nmk16_mainram; |
| 174 | |
| 175 | static WRITE16_HANDLER( nmk16_mainram_strange_w ) |
| 176 | { |
| 177 | UINT16* dstram; |
| 178 | |
| 179 | dstram = nmk16_mainram; |
| 180 | |
| 181 | if (!ACCESSING_MSB) |
| 182 | { |
| 183 | dstram[offset] = (data & 0x00ff) | ((data & 0x00ff)<<8); |
| 184 | } |
| 185 | else if (!ACCESSING_LSB) |
| 186 | { |
| 187 | dstram[offset] = (data & 0xff00) | ((data & 0xff00)>>8); |
| 188 | } |
| 189 | else |
| 190 | { |
| 191 | dstram[offset] = data; |
| 192 | } |
| 193 | } |
| 194 | |
| 139 | 195 | extern UINT16 *nmk_bgvideoram,*nmk_fgvideoram,*nmk_txvideoram; |
| 140 | 196 | extern UINT16 *gunnail_scrollram; |
| 141 | | extern UINT16 tharrier_scroll; |
| 142 | 197 | |
| 143 | 198 | READ16_HANDLER( nmk_bgvideoram_r ); |
| 144 | 199 | WRITE16_HANDLER( nmk_bgvideoram_w ); |
| r1463 | r1464 | |
| 178 | 233 | VIDEO_UPDATE( tdragon ); |
| 179 | 234 | VIDEO_EOF( nmk ); |
| 180 | 235 | |
| 236 | /* Variables defined in video: */ |
| 181 | 237 | |
| 238 | extern UINT16 *afega_vram_0, *afega_scroll_0; |
| 239 | extern UINT16 *afega_vram_1, *afega_scroll_1; |
| 240 | |
| 241 | /* Functions defined in video: */ |
| 242 | |
| 243 | WRITE16_HANDLER( afega_vram_0_w ); |
| 244 | WRITE16_HANDLER( afega_vram_1_w ); |
| 245 | //WRITE16_HANDLER( afega_palette_w ); |
| 246 | |
| 247 | PALETTE_INIT( grdnstrm ); |
| 248 | |
| 249 | VIDEO_START( afega ); |
| 250 | VIDEO_START( firehawk ); |
| 251 | VIDEO_UPDATE( afega ); |
| 252 | VIDEO_UPDATE( redhawkb ); |
| 253 | VIDEO_UPDATE( bubl2000 ); |
| 254 | VIDEO_UPDATE( firehawk ); |
| 255 | |
| 256 | |
| 257 | |
| 182 | 258 | static MACHINE_RESET( nmk16 ) |
| 183 | 259 | { |
| 184 | 260 | } |
| r1463 | r1464 | |
| 215 | 291 | } |
| 216 | 292 | |
| 217 | 293 | |
| 218 | | static UINT16 *ram; |
| 219 | 294 | |
| 220 | 295 | |
| 221 | | static WRITE16_HANDLER( tharrier_shared_w ) |
| 222 | | { |
| 223 | | if(offset==0xf00/2) |
| 224 | | COMBINE_DATA(&tharrier_scroll); |
| 225 | | COMBINE_DATA(&ram[offset]); |
| 226 | | } |
| 227 | 296 | |
| 228 | | static READ16_HANDLER( tharrier_shared_r ) |
| 229 | | { |
| 230 | | if (ACCESSING_MSB && ACCESSING_LSB && (offset==0 || offset==0x6c/2 )) |
| 231 | | return (ram[offset]>>8)|(ram[offset]&0xff00); |
| 232 | 297 | |
| 233 | | return ram[offset]; |
| 234 | | } |
| 235 | | |
| 236 | 298 | static WRITE16_HANDLER( tharrier_mcu_control_w ) |
| 237 | 299 | { |
| 238 | 300 | // logerror("%04x: mcu_control_w %02x\n",activecpu_get_pc(),data); |
| r1463 | r1464 | |
| 252 | 314 | |
| 253 | 315 | int res; |
| 254 | 316 | |
| 255 | | if (activecpu_get_pc()==0x8aa) res = (ram[0x064/2])|0x20; /* Task Force Harrier */ |
| 256 | | else if (activecpu_get_pc()==0x8ce) res = (ram[0x064/2])|0x60; /* Task Force Harrier */ |
| 317 | if (activecpu_get_pc()==0x8aa) res = (nmk16_mainram[0x9064/2])|0x20; /* Task Force Harrier */ |
| 318 | else if (activecpu_get_pc()==0x8ce) res = (nmk16_mainram[0x9064/2])|0x60; /* Task Force Harrier */ |
| 257 | 319 | else |
| 258 | 320 | { |
| 259 | 321 | res = to_main[prot_count++]; |
| r1463 | r1464 | |
| 303 | 365 | memcpy(rom + 0x20000,rom + 0x40000 + data * 0x20000,0x20000); |
| 304 | 366 | } |
| 305 | 367 | |
| 368 | static WRITE16_HANDLER( afega_soundlatch_w ) |
| 369 | { |
| 370 | if (ACCESSING_LSB) |
| 371 | { |
| 372 | soundlatch_w(0,data&0xff); |
| 373 | cpunum_set_input_line(1, 0, HOLD_LINE); |
| 374 | } |
| 375 | } |
| 376 | |
| 306 | 377 | /***************************************************************************/ |
| 307 | 378 | |
| 308 | 379 | static ADDRESS_MAP_START( vandyke_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 315 | 386 | AM_RANGE(0x088000, 0x0887ff) AM_READ(MRA16_RAM) |
| 316 | 387 | AM_RANGE(0x090000, 0x093fff) AM_READ(nmk_bgvideoram_r) |
| 317 | 388 | AM_RANGE(0x09d000, 0x09d7ff) AM_READ(nmk_txvideoram_r) |
| 318 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_READ(MRA16_RAM) |
| 319 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_READ(MRA16_RAM) |
| 320 | | AM_RANGE(0x0f9000, 0x0fffff) AM_READ(MRA16_RAM) |
| 389 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_BASE(&nmk16_mainram) |
| 321 | 390 | ADDRESS_MAP_END |
| 322 | 391 | |
| 323 | 392 | static ADDRESS_MAP_START( vandyke_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 330 | 399 | AM_RANGE(0x090000, 0x093fff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 331 | 400 | AM_RANGE(0x094000, 0x097fff) AM_WRITE(MWA16_RAM) /* what is this */ |
| 332 | 401 | AM_RANGE(0x09d000, 0x09d7ff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 333 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_WRITE(MWA16_RAM) |
| 334 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 335 | | AM_RANGE(0x0f9000, 0x0fffff) AM_WRITE(MWA16_RAM) /* not tested in tests .. hardly used probably some registers not ram */ |
| 336 | 402 | ADDRESS_MAP_END |
| 337 | 403 | |
| 338 | | static READ16_HANDLER(logr) |
| 339 | | { |
| 340 | | //logerror("Read input port 1 %05x\n",activecpu_get_pc()); |
| 341 | | return ~input_port_0_word_r(0,0); |
| 342 | | } |
| 343 | 404 | |
| 344 | 405 | static ADDRESS_MAP_START( manybloc_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 345 | 406 | AM_RANGE(0x000000, 0x03ffff) AM_READ(MRA16_ROM) |
| r1463 | r1464 | |
| 351 | 412 | AM_RANGE(0x090000, 0x093fff) AM_READ(nmk_bgvideoram_r) |
| 352 | 413 | AM_RANGE(0x09c000, 0x09cfff) AM_READ(MRA16_RAM) |
| 353 | 414 | AM_RANGE(0x09d000, 0x09d7ff) AM_READ(nmk_txvideoram_r) |
| 354 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_READ(MRA16_RAM) |
| 355 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_READ(MRA16_RAM) |
| 356 | | AM_RANGE(0x0f9000, 0x0fffff) AM_READ(MRA16_RAM) |
| 415 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_BASE(&nmk16_mainram) |
| 357 | 416 | ADDRESS_MAP_END |
| 358 | 417 | |
| 359 | 418 | static ADDRESS_MAP_START( manybloc_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 367 | 426 | AM_RANGE(0x090000, 0x093fff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 368 | 427 | AM_RANGE(0x09c000, 0x09cfff) AM_WRITE(manybloc_scroll_w) AM_BASE(&gunnail_scrollram) |
| 369 | 428 | AM_RANGE(0x09d000, 0x09d7ff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 370 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 371 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 372 | | AM_RANGE(0x0f9000, 0x0fffff) AM_WRITE(MWA16_RAM) AM_BASE(&ram) |
| 373 | 429 | ADDRESS_MAP_END |
| 374 | 430 | |
| 375 | 431 | static ADDRESS_MAP_START( tharrier_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| r1463 | r1464 | |
| 404 | 460 | |
| 405 | 461 | static ADDRESS_MAP_START( tharrier_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 406 | 462 | AM_RANGE(0x000000, 0x03ffff) AM_READ(MRA16_ROM) |
| 407 | | AM_RANGE(0x080000, 0x080001) AM_READ(logr)//input_port_0_word_r }, |
| 463 | AM_RANGE(0x080000, 0x080001) AM_READ(input_port_0_word_r) |
| 408 | 464 | AM_RANGE(0x080002, 0x080003) AM_READ(tharrier_mcu_r) //input_port_1_word_r }, |
| 409 | 465 | AM_RANGE(0x080004, 0x080005) AM_READ(input_port_2_word_r) |
| 410 | 466 | AM_RANGE(0x08000e, 0x08000f) AM_READ(soundlatch2_word_r) /* from Z80 */ |
| 467 | AM_RANGE(0x080202, 0x080203) AM_READ(input_port_3_word_r ) |
| 468 | |
| 411 | 469 | AM_RANGE(0x088000, 0x0883ff) AM_READ(MRA16_RAM) |
| 412 | 470 | AM_RANGE(0x090000, 0x093fff) AM_READ(nmk_bgvideoram_r) |
| 413 | 471 | AM_RANGE(0x09d000, 0x09d7ff) AM_READ(nmk_txvideoram_r) |
| 414 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_READ(MRA16_RAM) |
| 415 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_READ(MRA16_RAM) |
| 416 | | AM_RANGE(0x0f9000, 0x0fffff) AM_READ(tharrier_shared_r)//MRA16_RAM) |
| 472 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_WRITE(nmk16_mainram_strange_w) AM_BASE(&nmk16_mainram) |
| 417 | 473 | ADDRESS_MAP_END |
| 418 | 474 | |
| 419 | 475 | static ADDRESS_MAP_START( tharrier_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 424 | 480 | // AM_RANGE(0x080018, 0x080019) AM_WRITE(nmk_tilebank_w) |
| 425 | 481 | AM_RANGE(0x08001e, 0x08001f) AM_WRITE(soundlatch_word_w) |
| 426 | 482 | AM_RANGE(0x088000, 0x0883ff) AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 427 | | AM_RANGE(0x08c000, 0x08c007) AM_WRITE(nmk_scroll_w) |
| 483 | // AM_RANGE(0x08c000, 0x08c007) AM_WRITE(nmk_scroll_w) |
| 428 | 484 | AM_RANGE(0x090000, 0x093fff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 429 | 485 | AM_RANGE(0x09c000, 0x09c7ff) AM_WRITE(MWA16_NOP) /* Unused txvideoram area? */ |
| 430 | 486 | AM_RANGE(0x09d000, 0x09d7ff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 431 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 432 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 433 | | AM_RANGE(0x0f9000, 0x0fffff) AM_WRITE(tharrier_shared_w) AM_BASE(&ram) /* Work RAM again (fe000-fefff is shared with the sound CPU) */ |
| 434 | 487 | ADDRESS_MAP_END |
| 435 | 488 | |
| 436 | 489 | //Read input port 1 030c8/ BAD |
| 437 | 490 | //3478 GOOD |
| 438 | 491 | |
| 439 | | static ADDRESS_MAP_START( mustang_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 440 | | AM_RANGE(0x000000, 0x03ffff) AM_READ(MRA16_ROM) |
| 492 | static ADDRESS_MAP_START( mustang_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 493 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 441 | 494 | AM_RANGE(0x080000, 0x080001) AM_READ(input_port_0_word_r) |
| 442 | 495 | AM_RANGE(0x080002, 0x080003) AM_READ(input_port_1_word_r) |
| 443 | 496 | AM_RANGE(0x080004, 0x080005) AM_READ(input_port_2_word_r) |
| 444 | | AM_RANGE(0x08000e, 0x08000f) AM_READ(NMK004_r) |
| 445 | | // AM_RANGE(0x08000e, 0x08000f) AM_READ(soundlatch2_word_r) /* from Z80 bootleg only? */ |
| 446 | | AM_RANGE(0x088000, 0x0887ff) AM_READ(MRA16_RAM) |
| 447 | | AM_RANGE(0x090000, 0x093fff) AM_READ(nmk_bgvideoram_r) |
| 448 | | AM_RANGE(0x09c000, 0x09c7ff) AM_READ(nmk_txvideoram_r) |
| 449 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_READ(MRA16_RAM) |
| 450 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_READ(MRA16_RAM) |
| 451 | | AM_RANGE(0x0f9000, 0x0fffff) AM_READ(MRA16_RAM) |
| 452 | | ADDRESS_MAP_END |
| 453 | | |
| 454 | | static ADDRESS_MAP_START( mustang_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 455 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(MWA16_ROM) |
| 456 | | AM_RANGE(0x08000e, 0x08000f) AM_WRITE(MWA16_NOP) |
| 497 | AM_RANGE(0x08000e, 0x08000f) AM_READWRITE(NMK004_r, MWA16_NOP) |
| 457 | 498 | AM_RANGE(0x080014, 0x080015) AM_WRITE(nmk_flipscreen_w) |
| 458 | 499 | AM_RANGE(0x080016, 0x080017) AM_WRITE(MWA16_NOP) // frame number? |
| 459 | 500 | AM_RANGE(0x08001e, 0x08001f) AM_WRITE(NMK004_w) |
| 460 | | AM_RANGE(0x088000, 0x0887ff) AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 501 | AM_RANGE(0x088000, 0x0887ff) AM_RAM AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 461 | 502 | AM_RANGE(0x08c000, 0x08c001) AM_WRITE(mustang_scroll_w) |
| 462 | 503 | AM_RANGE(0x08c002, 0x08c087) AM_WRITE(MWA16_NOP) // ?? |
| 463 | | AM_RANGE(0x090000, 0x093fff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 464 | | AM_RANGE(0x09c000, 0x09c7ff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 465 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 466 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 467 | | AM_RANGE(0x0f9000, 0x0fffff) AM_WRITE(MWA16_RAM) AM_BASE(&ram) /* Work RAM */ |
| 504 | AM_RANGE(0x090000, 0x093fff) AM_RAM AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 505 | AM_RANGE(0x09c000, 0x09c7ff) AM_RAM AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 506 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_WRITE(nmk16_mainram_strange_w) AM_BASE(&nmk16_mainram) |
| 468 | 507 | ADDRESS_MAP_END |
| 469 | 508 | |
| 470 | | static ADDRESS_MAP_START( mustangb_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 471 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(MWA16_ROM) |
| 509 | static ADDRESS_MAP_START( mustangb_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 510 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 511 | AM_RANGE(0x080000, 0x080001) AM_READ(input_port_0_word_r) |
| 512 | AM_RANGE(0x080002, 0x080003) AM_READ(input_port_1_word_r) |
| 513 | AM_RANGE(0x080004, 0x080005) AM_READ(input_port_2_word_r) |
| 514 | AM_RANGE(0x08000e, 0x08000f) AM_READWRITE(MRA16_NOP, MWA16_NOP) |
| 472 | 515 | AM_RANGE(0x080014, 0x080015) AM_WRITE(nmk_flipscreen_w) |
| 473 | 516 | AM_RANGE(0x080016, 0x080017) AM_WRITE(MWA16_NOP) // frame number? |
| 474 | 517 | AM_RANGE(0x08001e, 0x08001f) AM_WRITE(seibu_main_mustb_w) |
| 475 | | AM_RANGE(0x088000, 0x0887ff) AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 518 | AM_RANGE(0x088000, 0x0887ff) AM_RAM AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 476 | 519 | AM_RANGE(0x08c000, 0x08c001) AM_WRITE(mustang_scroll_w) |
| 477 | | AM_RANGE(0x090000, 0x093fff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 478 | | AM_RANGE(0x09c000, 0x09c7ff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 479 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 480 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 481 | | AM_RANGE(0x0f9000, 0x0fffff) AM_WRITE(MWA16_RAM) AM_BASE(&ram) /* Work RAM */ |
| 520 | AM_RANGE(0x08c002, 0x08c087) AM_WRITE(MWA16_NOP) // ?? |
| 521 | AM_RANGE(0x090000, 0x093fff) AM_RAM AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 522 | AM_RANGE(0x09c000, 0x09c7ff) AM_RAM AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 523 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_WRITE(nmk16_mainram_strange_w) AM_BASE(&nmk16_mainram) |
| 482 | 524 | ADDRESS_MAP_END |
| 483 | 525 | |
| 526 | |
| 527 | static ADDRESS_MAP_START( twinactn_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 528 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 529 | AM_RANGE(0x080000, 0x080001) AM_READ(input_port_0_word_r) |
| 530 | AM_RANGE(0x080002, 0x080003) AM_READ(input_port_1_word_r) |
| 531 | AM_RANGE(0x080004, 0x080005) AM_READ(input_port_2_word_r) |
| 532 | AM_RANGE(0x08000e, 0x08000f) AM_READWRITE(MRA16_NOP, MWA16_NOP) |
| 533 | AM_RANGE(0x080014, 0x080015) AM_WRITE(nmk_flipscreen_w) |
| 534 | AM_RANGE(0x080016, 0x080017) AM_WRITE(MWA16_NOP) // frame number? |
| 535 | AM_RANGE(0x08001e, 0x08001f) AM_WRITE(afega_soundlatch_w) |
| 536 | AM_RANGE(0x088000, 0x0887ff) AM_RAM AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 537 | AM_RANGE(0x08c000, 0x08c001) AM_WRITE(mustang_scroll_w) |
| 538 | AM_RANGE(0x08c002, 0x08c087) AM_WRITE(MWA16_NOP) // ?? |
| 539 | AM_RANGE(0x090000, 0x093fff) AM_RAM AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 540 | AM_RANGE(0x09c000, 0x09c7ff) AM_RAM AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 541 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_WRITE(nmk16_mainram_strange_w) AM_BASE(&nmk16_mainram) |
| 542 | ADDRESS_MAP_END |
| 543 | |
| 544 | |
| 545 | |
| 546 | |
| 547 | |
| 548 | |
| 549 | |
| 484 | 550 | static ADDRESS_MAP_START( acrobatm_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 485 | 551 | AM_RANGE(0x00000, 0x3ffff) AM_READ(MRA16_ROM) |
| 486 | | AM_RANGE(0x80000, 0x8ffff) AM_READ(MRA16_RAM) |
| 552 | |
| 553 | AM_RANGE(0x80000, 0x8ffff) AM_RAM AM_BASE(&nmk16_mainram) |
| 554 | |
| 487 | 555 | AM_RANGE(0xc0000, 0xc0001) AM_READ(input_port_0_word_r) |
| 488 | 556 | AM_RANGE(0xc0002, 0xc0003) AM_READ(input_port_1_word_r) |
| 489 | 557 | AM_RANGE(0xc0008, 0xc0009) AM_READ(input_port_2_word_r) |
| r1463 | r1464 | |
| 496 | 564 | |
| 497 | 565 | static ADDRESS_MAP_START( acrobatm_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 498 | 566 | AM_RANGE(0x00000, 0x3ffff) AM_WRITE(MWA16_ROM) |
| 499 | | AM_RANGE(0x88000, 0x88fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 500 | | AM_RANGE(0x80000, 0x8ffff) AM_WRITE(MWA16_RAM) |
| 501 | 567 | AM_RANGE(0xc0014, 0xc0015) AM_WRITE(nmk_flipscreen_w) |
| 502 | 568 | AM_RANGE(0xc0016, 0xc0017) AM_WRITENOP |
| 503 | 569 | AM_RANGE(0xc0018, 0xc0019) AM_WRITE(nmk_tilebank_w) |
| r1463 | r1464 | |
| 518 | 584 | AM_RANGE(0x088000, 0x0887ff) AM_READ(MRA16_RAM) |
| 519 | 585 | AM_RANGE(0x090000, 0x093fff) AM_READ(nmk_bgvideoram_r) |
| 520 | 586 | AM_RANGE(0x09c000, 0x09c7ff) AM_READ(nmk_txvideoram_r) |
| 521 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_READ(MRA16_RAM) |
| 522 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_READ(MRA16_RAM) |
| 523 | | AM_RANGE(0x0f9000, 0x0fffff) AM_READ(MRA16_RAM) |
| 587 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_BASE(&nmk16_mainram) |
| 524 | 588 | ADDRESS_MAP_END |
| 525 | 589 | |
| 526 | 590 | static ADDRESS_MAP_START( bioship_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 533 | 597 | AM_RANGE(0x08c010, 0x08c017) AM_WRITE(bioship_scroll_w) |
| 534 | 598 | AM_RANGE(0x090000, 0x093fff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 535 | 599 | AM_RANGE(0x09c000, 0x09c7ff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 536 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 537 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 538 | | AM_RANGE(0x0f9000, 0x0fffff) AM_WRITE(MWA16_RAM) /* Work RAM again (fe000-fefff is shared with the sound CPU) */ |
| 539 | 600 | ADDRESS_MAP_END |
| 540 | 601 | |
| 541 | 602 | /****************************************************************************************** |
| r1463 | r1464 | |
| 554 | 615 | |
| 555 | 616 | ******************************************************************************************/ |
| 556 | 617 | |
| 557 | | UINT16 *nmk16_mcu_shared_ram; |
| 558 | | UINT16 *nmk16_mcu_work_ram; |
| 559 | 618 | |
| 560 | 619 | #define PROT_JSR(_offs_,_protvalue_,_pc_) \ |
| 561 | | if(nmk16_mcu_shared_ram[(_offs_)/2] == _protvalue_) \ |
| 620 | if(nmk16_mainram[(_offs_)/2] == _protvalue_) \ |
| 562 | 621 | { \ |
| 563 | | nmk16_mcu_shared_ram[(_offs_)/2] = 0xffff; /*(MCU job done)*/ \ |
| 564 | | nmk16_mcu_shared_ram[(_offs_+2-0x10)/2] = 0x4ef9;/*JMP*/\ |
| 565 | | nmk16_mcu_shared_ram[(_offs_+4-0x10)/2] = 0x0000;/*HI-DWORD*/\ |
| 566 | | nmk16_mcu_shared_ram[(_offs_+6-0x10)/2] = _pc_; /*LO-DWORD*/\ |
| 622 | nmk16_mainram[(_offs_)/2] = 0xffff; /*(MCU job done)*/ \ |
| 623 | nmk16_mainram[(_offs_+2-0x10)/2] = 0x4ef9;/*JMP*/\ |
| 624 | nmk16_mainram[(_offs_+4-0x10)/2] = 0x0000;/*HI-DWORD*/\ |
| 625 | nmk16_mainram[(_offs_+6-0x10)/2] = _pc_; /*LO-DWORD*/\ |
| 567 | 626 | } \ |
| 568 | 627 | |
| 569 | 628 | #define PROT_INPUT(_offs_,_protvalue_,_protinput_,_input_) \ |
| 570 | | if(nmk16_mcu_shared_ram[_offs_] == _protvalue_) \ |
| 629 | if(nmk16_mainram[_offs_] == _protvalue_) \ |
| 571 | 630 | {\ |
| 572 | | nmk16_mcu_shared_ram[_protinput_] = ((_input_ & 0xffff0000)>>16);\ |
| 573 | | nmk16_mcu_shared_ram[_protinput_+1] = (_input_ & 0x0000ffff);\ |
| 631 | nmk16_mainram[_protinput_] = ((_input_ & 0xffff0000)>>16);\ |
| 632 | nmk16_mainram[_protinput_+1] = (_input_ & 0x0000ffff);\ |
| 574 | 633 | } |
| 575 | 634 | |
| 635 | /* |
| 576 | 636 | static READ16_HANDLER( mcu_shared_r ) |
| 577 | 637 | { |
| 578 | | return nmk16_mcu_shared_ram[offset]; |
| 638 | return nmk16_mcu_shared_ram[offset]; |
| 579 | 639 | } |
| 640 | */ |
| 580 | 641 | |
| 581 | 642 | //td - hmf |
| 582 | 643 | //008D9E - 00796e |
| r1463 | r1464 | |
| 642 | 703 | |
| 643 | 704 | */ |
| 644 | 705 | |
| 645 | | static WRITE16_HANDLER( hachamf_mcu_shared_w ) |
| 706 | static WRITE16_HANDLER( hachamf_mainram_w ) |
| 646 | 707 | { |
| 647 | | COMBINE_DATA(&nmk16_mcu_shared_ram[offset]); |
| 708 | COMBINE_DATA(&nmk16_mainram[offset]); |
| 648 | 709 | |
| 649 | 710 | switch(offset) |
| 650 | 711 | { |
| 651 | | case 0x058/2: PROT_INPUT(0x058/2,0xc71f,0x000/2,0x00080000); break; |
| 652 | | case 0x182/2: PROT_INPUT(0x182/2,0x865d,0x004/2,0x00080002); break; |
| 653 | | case 0x51e/2: PROT_INPUT(0x51e/2,0x0f82,0x008/2,0x00080008); break; |
| 654 | | case 0x6b4/2: PROT_INPUT(0x6b4/2,0x79be,0x00c/2,0x0008000a); break; |
| 655 | | case 0x10e/2: PROT_JSR(0x10e,0x8007,0x870a);//870a not 9d66 |
| 656 | | PROT_JSR(0x10e,0x8000,0xd9c6); break; |
| 657 | | case 0x11e/2: PROT_JSR(0x11e,0x8038,0x972a);//972a |
| 658 | | PROT_JSR(0x11e,0x8031,0xd1f8); break; |
| 659 | | case 0x12e/2: PROT_JSR(0x12e,0x8019,0x9642);//OK-9642 |
| 660 | | PROT_JSR(0x12e,0x8022,0xda06); break; |
| 661 | | case 0x13e/2: PROT_JSR(0x13e,0x802a,0x9d66);//9d66 not 9400 - OK |
| 662 | | PROT_JSR(0x13e,0x8013,0x81aa); break; |
| 663 | | case 0x14e/2: PROT_JSR(0x14e,0x800b,0xb3f2);//b3f2 - OK |
| 664 | | PROT_JSR(0x14e,0x8004,0x8994); break; |
| 665 | | case 0x15e/2: PROT_JSR(0x15e,0x803c,0xb59e);//b59e - OK |
| 666 | | PROT_JSR(0x15e,0x8035,0x8d0c); break; |
| 667 | | case 0x16e/2: PROT_JSR(0x16e,0x801d,0x9ac2);//9ac2 - OK |
| 668 | | PROT_JSR(0x16e,0x8026,0x8c36); break; |
| 669 | | case 0x17e/2: PROT_JSR(0x17e,0x802e,0xc366);//c366 - OK |
| 670 | | PROT_JSR(0x17e,0x8017,0x870a); break; |
| 671 | | case 0x18e/2: PROT_JSR(0x18e,0x8004,0xd620); //unused |
| 672 | | PROT_JSR(0x18e,0x8008,0x972a); break; //unused |
| 673 | | case 0x19e/2: PROT_JSR(0x19e,0x8030,0xd9c6);//OK-d9c6 |
| 674 | | PROT_JSR(0x19e,0x8039,0x9642); break; |
| 675 | | case 0x1ae/2: PROT_JSR(0x1ae,0x8011,0xd1f8);//d1f8 not c67e |
| 676 | | PROT_JSR(0x1ae,0x802a,0x9d66); break; |
| 677 | | case 0x1be/2: PROT_JSR(0x1be,0x8022,0xda06);//da06 |
| 678 | | PROT_JSR(0x1be,0x801b,0xb3f2); break; |
| 679 | | case 0x1ce/2: PROT_JSR(0x1ce,0x8003,0x81aa);//81aa |
| 680 | | PROT_JSR(0x1ce,0x800c,0xb59e); break; |
| 681 | | case 0x1de/2: PROT_JSR(0x1de,0x8034,0x8994);//8994 - OK |
| 682 | | PROT_JSR(0x1de,0x803d,0x9ac2); break; |
| 683 | | case 0x1ee/2: PROT_JSR(0x1ee,0x8015,0x8d0c);//8d0c not 82f6 |
| 684 | | PROT_JSR(0x1ee,0x802e,0xc366); break; |
| 685 | | case 0x1fe/2: PROT_JSR(0x1fe,0x8026,0x8c36);//8c36 |
| 686 | | PROT_JSR(0x1fe,0x8016,0xd620); break; //unused |
| 687 | | case 0xf00/2: |
| 688 | | if(nmk16_mcu_shared_ram[0xf00/2] == 0x60fe) |
| 712 | case 0xe058/2: PROT_INPUT(0xe058/2,0xc71f,0xe000/2,0x00080000); break; |
| 713 | case 0xe182/2: PROT_INPUT(0xe182/2,0x865d,0xe004/2,0x00080002); break; |
| 714 | case 0xe51e/2: PROT_INPUT(0xe51e/2,0x0f82,0xe008/2,0x00080008); break; |
| 715 | case 0xe6b4/2: PROT_INPUT(0xe6b4/2,0x79be,0xe00c/2,0x0008000a); break; |
| 716 | case 0xe10e/2: PROT_JSR(0xe10e,0x8007,0x870a);//870a not 9d66 |
| 717 | PROT_JSR(0xe10e,0x8000,0xd9c6); break; |
| 718 | case 0xe11e/2: PROT_JSR(0xe11e,0x8038,0x972a);//972a |
| 719 | PROT_JSR(0xe11e,0x8031,0xd1f8); break; |
| 720 | case 0xe12e/2: PROT_JSR(0xe12e,0x8019,0x9642);//OK-9642 |
| 721 | PROT_JSR(0xe12e,0x8022,0xda06); break; |
| 722 | case 0xe13e/2: PROT_JSR(0xe13e,0x802a,0x9d66);//9d66 not 9400 - OK |
| 723 | PROT_JSR(0xe13e,0x8013,0x81aa); break; |
| 724 | case 0xe14e/2: PROT_JSR(0xe14e,0x800b,0xb3f2);//b3f2 - OK |
| 725 | PROT_JSR(0xe14e,0x8004,0x8994); break; |
| 726 | case 0xe15e/2: PROT_JSR(0xe15e,0x803c,0xb59e);//b59e - OK |
| 727 | PROT_JSR(0xe15e,0x8035,0x8d0c); break; |
| 728 | case 0xe16e/2: PROT_JSR(0xe16e,0x801d,0x9ac2);//9ac2 - OK |
| 729 | PROT_JSR(0xe16e,0x8026,0x8c36); break; |
| 730 | case 0xe17e/2: PROT_JSR(0xe17e,0x802e,0xc366);//c366 - OK |
| 731 | PROT_JSR(0xe17e,0x8017,0x870a); break; |
| 732 | case 0xe18e/2: PROT_JSR(0xe18e,0x8004,0xd620); //unused |
| 733 | PROT_JSR(0xe18e,0x8008,0x972a); break; //unused |
| 734 | case 0xe19e/2: PROT_JSR(0xe19e,0x8030,0xd9c6);//OK-d9c6 |
| 735 | PROT_JSR(0xe19e,0x8039,0x9642); break; |
| 736 | case 0xe1ae/2: PROT_JSR(0xe1ae,0x8011,0xd1f8);//d1f8 not c67e |
| 737 | PROT_JSR(0xe1ae,0x802a,0x9d66); break; |
| 738 | case 0xe1be/2: PROT_JSR(0xe1be,0x8022,0xda06);//da06 |
| 739 | PROT_JSR(0xe1be,0x801b,0xb3f2); break; |
| 740 | case 0xe1ce/2: PROT_JSR(0xe1ce,0x8003,0x81aa);//81aa |
| 741 | PROT_JSR(0xe1ce,0x800c,0xb59e); break; |
| 742 | case 0xe1de/2: PROT_JSR(0xe1de,0x8034,0x8994);//8994 - OK |
| 743 | PROT_JSR(0xe1de,0x803d,0x9ac2); break; |
| 744 | case 0xe1ee/2: PROT_JSR(0xe1ee,0x8015,0x8d0c);//8d0c not 82f6 |
| 745 | PROT_JSR(0xe1ee,0x802e,0xc366); break; |
| 746 | case 0xe1fe/2: PROT_JSR(0xe1fe,0x8026,0x8c36);//8c36 |
| 747 | PROT_JSR(0xe1fe,0x8016,0xd620); break; //unused |
| 748 | case 0xef00/2: |
| 749 | if(nmk16_mainram[0xef00/2] == 0x60fe) |
| 689 | 750 | { |
| 690 | | nmk16_mcu_shared_ram[0xf00/2] = 0x0000; //this is the coin counter |
| 691 | | nmk16_mcu_shared_ram[0xf02/2] = 0x0000; |
| 692 | | nmk16_mcu_shared_ram[0xf04/2] = 0x4ef9; |
| 693 | | nmk16_mcu_shared_ram[0xf06/2] = 0x0000; |
| 694 | | nmk16_mcu_shared_ram[0xf08/2] = 0x7dc2; |
| 751 | nmk16_mainram[0xef00/2] = 0x0000; //this is the coin counter |
| 752 | nmk16_mainram[0xef02/2] = 0x0000; |
| 753 | nmk16_mainram[0xef04/2] = 0x4ef9; |
| 754 | nmk16_mainram[0xef06/2] = 0x0000; |
| 755 | nmk16_mainram[0xef08/2] = 0x7dc2; |
| 695 | 756 | } |
| 696 | 757 | break; |
| 697 | 758 | } |
| 698 | 759 | } |
| 699 | 760 | |
| 700 | | static ADDRESS_MAP_START( hachamf_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 701 | | AM_RANGE(0x000000, 0x03ffff) AM_READ(MRA16_ROM) |
| 761 | |
| 762 | static ADDRESS_MAP_START( hachamf_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 763 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 764 | /* I/O Region */ |
| 702 | 765 | AM_RANGE(0x080000, 0x080001) AM_READ(input_port_0_word_r) |
| 703 | 766 | AM_RANGE(0x080002, 0x080003) AM_READ(input_port_1_word_r) |
| 704 | 767 | AM_RANGE(0x080008, 0x080009) AM_READ(input_port_2_word_r) |
| 705 | 768 | AM_RANGE(0x08000a, 0x08000b) AM_READ(input_port_3_word_r) |
| 706 | 769 | AM_RANGE(0x08000e, 0x08000f) AM_READ(NMK004_r) |
| 707 | | AM_RANGE(0x088000, 0x0887ff) AM_READ(MRA16_RAM) |
| 708 | | AM_RANGE(0x090000, 0x093fff) AM_READ(nmk_bgvideoram_r) |
| 709 | | AM_RANGE(0x09c000, 0x09c7ff) AM_READ(nmk_txvideoram_r) |
| 710 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_READ(MRA16_RAM) |
| 711 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_READ(MRA16_RAM) |
| 712 | | //AM_RANGE(0x0fe000, 0x0fe00b) AM_READ(hachamf_protection_hack_r) |
| 713 | | AM_RANGE(0x0f9000, 0x0fdfff) AM_READ(MRA16_RAM) |
| 714 | | AM_RANGE(0x0fe000, 0x0fefff) AM_READ(MRA16_RAM) |
| 715 | | AM_RANGE(0x0ff000, 0x0fffff) AM_READ(MRA16_RAM) |
| 716 | | ADDRESS_MAP_END |
| 717 | | |
| 718 | | static ADDRESS_MAP_START( hachamf_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 719 | | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(MWA16_ROM) |
| 720 | 770 | AM_RANGE(0x080014, 0x080015) AM_WRITE(nmk_flipscreen_w) |
| 721 | 771 | AM_RANGE(0x080018, 0x080019) AM_WRITE(nmk_tilebank_w) |
| 722 | 772 | AM_RANGE(0x08001e, 0x08001f) AM_WRITE(NMK004_w) |
| 723 | | AM_RANGE(0x088000, 0x0887ff) AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 773 | /* Video Region */ |
| 774 | AM_RANGE(0x088000, 0x0887ff) AM_RAM AM_WRITE(paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) |
| 724 | 775 | AM_RANGE(0x08c000, 0x08c007) AM_WRITE(nmk_scroll_w) |
| 725 | | AM_RANGE(0x090000, 0x093fff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 726 | | AM_RANGE(0x09c000, 0x09c7ff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 727 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 728 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 729 | | AM_RANGE(0x0f9000, 0x0fdfff) AM_WRITE(MWA16_RAM) AM_BASE(&nmk16_mcu_work_ram) /* Work RAM */ |
| 730 | | AM_RANGE(0x0fe000, 0x0fefff) AM_RAM AM_READWRITE(mcu_shared_r,hachamf_mcu_shared_w) AM_BASE(&nmk16_mcu_shared_ram) /* Work RAM */ |
| 731 | | AM_RANGE(0x0ff000, 0x0fffff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 776 | AM_RANGE(0x090000, 0x093fff) AM_RAM AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 777 | AM_RANGE(0x09c000, 0x09c7ff) AM_RAM AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 778 | /* Main RAM, inc sprites, shared with MCU */ |
| 779 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_WRITE(hachamf_mainram_w) AM_BASE(&nmk16_mainram) // ram is shared with MCU |
| 732 | 780 | ADDRESS_MAP_END |
| 733 | 781 | |
| 734 | | static WRITE16_HANDLER( tdragon_mcu_shared_w ) |
| 782 | |
| 783 | |
| 784 | static WRITE16_HANDLER( tdragon_mainram_w ) |
| 735 | 785 | { |
| 736 | | COMBINE_DATA(&nmk16_mcu_shared_ram[offset]); |
| 786 | COMBINE_DATA(&nmk16_mainram[offset]); |
| 737 | 787 | |
| 738 | 788 | switch(offset) |
| 739 | 789 | { |
| 740 | | case 0x066/2: PROT_INPUT(0x066/2,0xe23e,0x000/2,0x000c0000); break; |
| 741 | | case 0x144/2: PROT_INPUT(0x144/2,0xf54d,0x004/2,0x000c0002); break; |
| 742 | | case 0x60e/2: PROT_INPUT(0x60e/2,0x067c,0x008/2,0x000c0008); break; |
| 743 | | case 0x714/2: PROT_INPUT(0x714/2,0x198b,0x00c/2,0x000c000a); break; |
| 744 | | case 0x70e/2: PROT_JSR(0x70e,0x8007,0x9e22); |
| 745 | | PROT_JSR(0x70e,0x8000,0xd518); break; |
| 746 | | case 0x71e/2: PROT_JSR(0x71e,0x8038,0xaa0a); |
| 747 | | PROT_JSR(0x71e,0x8031,0x8e7c); break; |
| 748 | | case 0x72e/2: PROT_JSR(0x72e,0x8019,0xac48); |
| 749 | | PROT_JSR(0x72e,0x8022,0xd558); break; |
| 750 | | case 0x73e/2: PROT_JSR(0x73e,0x802a,0xb110); |
| 751 | | PROT_JSR(0x73e,0x8013,0x96da); break; |
| 752 | | case 0x74e/2: PROT_JSR(0x74e,0x800b,0xb9b2); |
| 753 | | PROT_JSR(0x74e,0x8004,0xa062); break; |
| 754 | | case 0x75e/2: PROT_JSR(0x75e,0x803c,0xbb4c); |
| 755 | | PROT_JSR(0x75e,0x8035,0xa154); break; |
| 756 | | case 0x76e/2: PROT_JSR(0x76e,0x801d,0xafa6); |
| 757 | | PROT_JSR(0x76e,0x8026,0xa57a); break; |
| 758 | | case 0x77e/2: PROT_JSR(0x77e,0x802e,0xc6a4); |
| 759 | | PROT_JSR(0x77e,0x8017,0x9e22); break; |
| 760 | | case 0x78e/2: PROT_JSR(0x78e,0x8004,0xaa0a); |
| 761 | | PROT_JSR(0x78e,0x8008,0xaa0a); break; |
| 762 | | case 0x79e/2: PROT_JSR(0x79e,0x8030,0xd518); |
| 763 | | PROT_JSR(0x79e,0x8039,0xac48); break; |
| 764 | | case 0x7ae/2: PROT_JSR(0x7ae,0x8011,0x8e7c); |
| 765 | | PROT_JSR(0x7ae,0x802a,0xb110); break; |
| 766 | | case 0x7be/2: PROT_JSR(0x7be,0x8022,0xd558); |
| 767 | | PROT_JSR(0x7be,0x801b,0xb9b2); break; |
| 768 | | case 0x7ce/2: PROT_JSR(0x7ce,0x8003,0x96da); |
| 769 | | PROT_JSR(0x7ce,0x800c,0xbb4c); break; |
| 770 | | case 0x7de/2: PROT_JSR(0x7de,0x8034,0xa062); |
| 771 | | PROT_JSR(0x7de,0x803d,0xafa6); break; |
| 772 | | case 0x7ee/2: PROT_JSR(0x7ee,0x8015,0xa154); |
| 773 | | PROT_JSR(0x7ee,0x802e,0xc6a4); break; |
| 774 | | case 0x7fe/2: PROT_JSR(0x7fe,0x8026,0xa57a); |
| 775 | | PROT_JSR(0x7fe,0x8016,0xa57a); break; |
| 776 | | case 0xf00/2: |
| 777 | | if(nmk16_mcu_shared_ram[0xf00/2] == 0x60fe) |
| 790 | case 0xe066/2: PROT_INPUT(0xe066/2,0xe23e,0xe000/2,0x000c0000); break; |
| 791 | case 0xe144/2: PROT_INPUT(0xe144/2,0xf54d,0xe004/2,0x000c0002); break; |
| 792 | case 0xe60e/2: PROT_INPUT(0xe60e/2,0x067c,0xe008/2,0x000c0008); break; |
| 793 | case 0xe714/2: PROT_INPUT(0xe714/2,0x198b,0xe00c/2,0x000c000a); break; |
| 794 | case 0xe70e/2: PROT_JSR(0xe70e,0x8007,0x9e22); |
| 795 | PROT_JSR(0xe70e,0x8000,0xd518); break; |
| 796 | case 0xe71e/2: PROT_JSR(0xe71e,0x8038,0xaa0a); |
| 797 | PROT_JSR(0xe71e,0x8031,0x8e7c); break; |
| 798 | case 0xe72e/2: PROT_JSR(0xe72e,0x8019,0xac48); |
| 799 | PROT_JSR(0xe72e,0x8022,0xd558); break; |
| 800 | case 0xe73e/2: PROT_JSR(0xe73e,0x802a,0xb110); |
| 801 | PROT_JSR(0xe73e,0x8013,0x96da); break; |
| 802 | case 0xe74e/2: PROT_JSR(0xe74e,0x800b,0xb9b2); |
| 803 | PROT_JSR(0xe74e,0x8004,0xa062); break; |
| 804 | case 0xe75e/2: PROT_JSR(0xe75e,0x803c,0xbb4c); |
| 805 | PROT_JSR(0xe75e,0x8035,0xa154); break; |
| 806 | case 0xe76e/2: PROT_JSR(0xe76e,0x801d,0xafa6); |
| 807 | PROT_JSR(0xe76e,0x8026,0xa57a); break; |
| 808 | case 0xe77e/2: PROT_JSR(0xe77e,0x802e,0xc6a4); |
| 809 | PROT_JSR(0xe77e,0x8017,0x9e22); break; |
| 810 | case 0xe78e/2: PROT_JSR(0xe78e,0x8004,0xaa0a); |
| 811 | PROT_JSR(0xe78e,0x8008,0xaa0a); break; |
| 812 | case 0xe79e/2: PROT_JSR(0xe79e,0x8030,0xd518); |
| 813 | PROT_JSR(0xe79e,0x8039,0xac48); break; |
| 814 | case 0xe7ae/2: PROT_JSR(0xe7ae,0x8011,0x8e7c); |
| 815 | PROT_JSR(0xe7ae,0x802a,0xb110); break; |
| 816 | case 0xe7be/2: PROT_JSR(0xe7be,0x8022,0xd558); |
| 817 | PROT_JSR(0xe7be,0x801b,0xb9b2); break; |
| 818 | case 0xe7ce/2: PROT_JSR(0xe7ce,0x8003,0x96da); |
| 819 | PROT_JSR(0xe7ce,0x800c,0xbb4c); break; |
| 820 | case 0xe7de/2: PROT_JSR(0xe7de,0x8034,0xa062); |
| 821 | PROT_JSR(0xe7de,0x803d,0xafa6); break; |
| 822 | case 0xe7ee/2: PROT_JSR(0xe7ee,0x8015,0xa154); |
| 823 | PROT_JSR(0xe7ee,0x802e,0xc6a4); break; |
| 824 | case 0xe7fe/2: PROT_JSR(0xe7fe,0x8026,0xa57a); |
| 825 | PROT_JSR(0xe7fe,0x8016,0xa57a); break; |
| 826 | case 0xef00/2: |
| 827 | if(nmk16_mainram[0xef00/2] == 0x60fe) |
| 778 | 828 | { |
| 779 | | nmk16_mcu_shared_ram[0xf00/2] = 0x0000; //this is the coin counter |
| 780 | | nmk16_mcu_shared_ram[0xf02/2] = 0x0000; |
| 781 | | nmk16_mcu_shared_ram[0xf04/2] = 0x4ef9; |
| 782 | | nmk16_mcu_shared_ram[0xf06/2] = 0x0000; |
| 783 | | nmk16_mcu_shared_ram[0xf08/2] = 0x92f4; |
| 829 | nmk16_mainram[0xef00/2] = 0x0000; //this is the coin counter |
| 830 | nmk16_mainram[0xef02/2] = 0x0000; |
| 831 | nmk16_mainram[0xef04/2] = 0x4ef9; |
| 832 | nmk16_mainram[0xef06/2] = 0x0000; |
| 833 | nmk16_mainram[0xef08/2] = 0x92f4; |
| 784 | 834 | } |
| 785 | 835 | break; |
| 786 | 836 | } |
| 787 | 837 | } |
| 788 | 838 | |
| 839 | |
| 789 | 840 | static ADDRESS_MAP_START( tdragon_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 790 | 841 | AM_RANGE(0x000000, 0x03ffff) AM_READ(MRA16_ROM) |
| 791 | 842 | AM_RANGE(0x044022, 0x044023) AM_READ(MRA16_NOP) /* No Idea */ |
| 792 | | AM_RANGE(0x0b0000, 0x0b7fff) AM_READ(MRA16_RAM) /* Work RAM */ |
| 793 | | AM_RANGE(0x0b8000, 0x0b8fff) AM_READ(MRA16_RAM) /* Sprite RAM */ |
| 794 | | AM_RANGE(0x0b9000, 0x0bdfff) AM_READ(MRA16_RAM) /* Work RAM */ |
| 795 | | AM_RANGE(0x0be000, 0x0befff) AM_READ(MRA16_RAM) /* Work RAM */ |
| 796 | | AM_RANGE(0x0bf000, 0x0bffff) AM_READ(MRA16_RAM) /* Work RAM */ |
| 843 | // AM_RANGE(0x0b0000, 0x0b7fff) AM_READ(MRA16_RAM) /* Work RAM */ |
| 844 | // AM_RANGE(0x0b8000, 0x0b8fff) AM_READ(MRA16_RAM) /* Sprite RAM */ |
| 845 | // AM_RANGE(0x0b9000, 0x0bdfff) AM_READ(MRA16_RAM) /* Work RAM */ |
| 846 | // AM_RANGE(0x0be000, 0x0befff) AM_READ(MRA16_RAM) /* Work RAM */ |
| 847 | // AM_RANGE(0x0bf000, 0x0bffff) AM_READ(MRA16_RAM) /* Work RAM */ |
| 848 | AM_RANGE(0x0b0000, 0x0bffff) AM_RAM AM_WRITE( tdragon_mainram_w ) AM_BASE(&nmk16_mainram) |
| 849 | |
| 850 | |
| 797 | 851 | AM_RANGE(0x0c8000, 0x0c87ff) AM_READ(MRA16_RAM) /* Palette RAM */ |
| 798 | 852 | AM_RANGE(0x0c0000, 0x0c0001) AM_READ(input_port_0_word_r) |
| 799 | 853 | AM_RANGE(0x0c0002, 0x0c0003) AM_READ(input_port_1_word_r) |
| r1463 | r1464 | |
| 806 | 860 | |
| 807 | 861 | static ADDRESS_MAP_START( tdragon_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 808 | 862 | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(MWA16_ROM) |
| 809 | | AM_RANGE(0x0b0000, 0x0b7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 810 | | AM_RANGE(0x0b8000, 0x0b8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* Sprite RAM */ |
| 811 | | AM_RANGE(0x0b9000, 0x0bdfff) AM_WRITE(MWA16_RAM) AM_BASE(&nmk16_mcu_work_ram) /* Work RAM */ |
| 812 | | AM_RANGE(0x0be000, 0x0befff) AM_RAM AM_READWRITE(mcu_shared_r,tdragon_mcu_shared_w) AM_BASE(&nmk16_mcu_shared_ram) /* Work RAM */ |
| 813 | | AM_RANGE(0x0bf000, 0x0bffff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 863 | // AM_RANGE(0x0b0000, 0x0b7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 864 | // AM_RANGE(0x0b8000, 0x0b8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* Sprite RAM */ |
| 865 | // AM_RANGE(0x0b9000, 0x0bdfff) AM_WRITE(MWA16_RAM) AM_BASE(&nmk16_mcu_work_ram) /* Work RAM */ |
| 866 | // AM_RANGE(0x0be000, 0x0befff) AM_RAM AM_READWRITE(mcu_shared_r,tdragon_mcu_shared_w) AM_BASE(&nmk16_mcu_shared_ram) /* Work RAM */ |
| 867 | // AM_RANGE(0x0bf000, 0x0bffff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 814 | 868 | AM_RANGE(0x0c0014, 0x0c0015) AM_WRITE(nmk_flipscreen_w) /* Maybe */ |
| 815 | 869 | AM_RANGE(0x0c0018, 0x0c0019) AM_WRITE(nmk_tilebank_w) /* Tile Bank ? */ |
| 816 | 870 | AM_RANGE(0x0c001e, 0x0c001f) AM_WRITE(NMK004_w) |
| r1463 | r1464 | |
| 822 | 876 | |
| 823 | 877 | static ADDRESS_MAP_START( tdragonb_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 824 | 878 | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(MWA16_ROM) |
| 825 | | AM_RANGE(0x0b0000, 0x0b7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 826 | | AM_RANGE(0x0b8000, 0x0b8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* Sprite RAM */ |
| 827 | | AM_RANGE(0x0b9000, 0x0bffff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 879 | AM_RANGE(0x0b0000, 0x0bffff) AM_RAM AM_BASE(&nmk16_mainram) |
| 828 | 880 | AM_RANGE(0x0c0014, 0x0c0015) AM_WRITE(nmk_flipscreen_w) /* Maybe */ |
| 829 | 881 | AM_RANGE(0x0c0018, 0x0c0019) AM_WRITE(nmk_tilebank_w) /* Tile Bank ? */ |
| 830 | 882 | AM_RANGE(0x0c001e, 0x0c001f) AM_WRITE(seibu_main_mustb_w) |
| r1463 | r1464 | |
| 836 | 888 | |
| 837 | 889 | static ADDRESS_MAP_START( ssmissin_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 838 | 890 | AM_RANGE(0x000000, 0x03ffff) AM_READ(MRA16_ROM) |
| 839 | | AM_RANGE(0x0b0000, 0x0b7fff) AM_READ(MRA16_RAM) /* Work RAM */ |
| 840 | | AM_RANGE(0x0b8000, 0x0b8fff) AM_READ(MRA16_RAM) /* Sprite RAM */ |
| 841 | | AM_RANGE(0x0b9000, 0x0bffff) AM_READ(MRA16_RAM) /* Work RAM */ |
| 891 | AM_RANGE(0x0b0000, 0x0bffff) AM_RAM AM_BASE(&nmk16_mainram) |
| 842 | 892 | AM_RANGE(0x0c8000, 0x0c87ff) AM_READ(MRA16_RAM) /* Palette RAM */ |
| 843 | 893 | AM_RANGE(0x0c0000, 0x0c0001) AM_READ(input_port_0_word_r) |
| 844 | 894 | AM_RANGE(0x0c0004, 0x0c0005) AM_READ(input_port_1_word_r) |
| r1463 | r1464 | |
| 852 | 902 | |
| 853 | 903 | static ADDRESS_MAP_START( ssmissin_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 854 | 904 | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(MWA16_ROM) |
| 855 | | AM_RANGE(0x0b0000, 0x0b7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 856 | | AM_RANGE(0x0b8000, 0x0b8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* Sprite RAM */ |
| 857 | | AM_RANGE(0x0b9000, 0x0bffff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 858 | 905 | AM_RANGE(0x0c0014, 0x0c0015) AM_WRITE(nmk_flipscreen_w) /* Maybe */ |
| 859 | 906 | AM_RANGE(0x0c0018, 0x0c0019) AM_WRITE(nmk_tilebank_w) /* Tile Bank ? */ |
| 860 | 907 | AM_RANGE(0x0c001e, 0x0c001f) AM_WRITE(ssmissin_sound_w) |
| r1463 | r1464 | |
| 894 | 941 | AM_RANGE(0x90000, 0x93fff) AM_READ(nmk_bgvideoram_r) |
| 895 | 942 | AM_RANGE(0x94000, 0x97fff) AM_READ(nmk_fgvideoram_r) |
| 896 | 943 | AM_RANGE(0x9c000, 0x9c7ff) AM_READ(nmk_txvideoram_r) |
| 897 | | AM_RANGE(0xf0000, 0xf7fff) AM_READ(MRA16_RAM) |
| 898 | | AM_RANGE(0xf8000, 0xfefff) AM_READ(MRA16_RAM) |
| 899 | | AM_RANGE(0xff000, 0xfffff) AM_READ(MRA16_RAM) |
| 944 | AM_RANGE(0xf0000, 0xfffff) AM_RAM AM_BASE(&nmk16_mainram) |
| 900 | 945 | ADDRESS_MAP_END |
| 901 | 946 | |
| 902 | 947 | static ADDRESS_MAP_START( strahl_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 910 | 955 | AM_RANGE(0x90000, 0x93fff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 911 | 956 | AM_RANGE(0x94000, 0x97fff) AM_WRITE(nmk_fgvideoram_w) AM_BASE(&nmk_fgvideoram) |
| 912 | 957 | AM_RANGE(0x9c000, 0x9c7ff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 913 | | AM_RANGE(0xf0000, 0xf7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 914 | | AM_RANGE(0xf8000, 0xfefff) AM_WRITE(MWA16_RAM) AM_BASE(&ram) /* Work RAM again */ |
| 915 | | AM_RANGE(0xff000, 0xfffff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 916 | 958 | ADDRESS_MAP_END |
| 917 | 959 | |
| 918 | 960 | static ADDRESS_MAP_START( macross_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 925 | 967 | AM_RANGE(0x088000, 0x0887ff) AM_READ(MRA16_RAM) |
| 926 | 968 | AM_RANGE(0x090000, 0x093fff) AM_READ(nmk_bgvideoram_r) |
| 927 | 969 | AM_RANGE(0x09c000, 0x09c7ff) AM_READ(nmk_txvideoram_r) |
| 928 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_READ(MRA16_RAM) |
| 929 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_READ(MRA16_RAM) |
| 930 | | AM_RANGE(0x0f9000, 0x0fffff) AM_READ(MRA16_RAM) |
| 970 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_WRITE(nmk16_mainram_strange_w) AM_BASE(&nmk16_mainram) |
| 931 | 971 | ADDRESS_MAP_END |
| 932 | 972 | |
| 933 | 973 | static ADDRESS_MAP_START( macross_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 940 | 980 | AM_RANGE(0x08c000, 0x08c007) AM_WRITE(nmk_scroll_w) |
| 941 | 981 | AM_RANGE(0x090000, 0x093fff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 942 | 982 | AM_RANGE(0x09c000, 0x09c7ff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 943 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 944 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 945 | | AM_RANGE(0x0f9000, 0x0fffff) AM_WRITE(MWA16_RAM) AM_BASE(&ram) /* Work RAM again */ |
| 946 | 983 | ADDRESS_MAP_END |
| 947 | 984 | |
| 948 | 985 | static ADDRESS_MAP_START( gunnail_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 956 | 993 | AM_RANGE(0x090000, 0x093fff) AM_READ(nmk_bgvideoram_r) |
| 957 | 994 | AM_RANGE(0x09c000, 0x09cfff) AM_READ(nmk_txvideoram_r) |
| 958 | 995 | AM_RANGE(0x09d000, 0x09dfff) AM_READ(nmk_txvideoram_r) /* mirror */ |
| 959 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_READ(MRA16_RAM) |
| 960 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_READ(MRA16_RAM) |
| 961 | | AM_RANGE(0x0f9000, 0x0fffff) AM_READ(MRA16_RAM) |
| 996 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_BASE(&nmk16_mainram) |
| 962 | 997 | ADDRESS_MAP_END |
| 963 | 998 | |
| 964 | 999 | static ADDRESS_MAP_START( gunnail_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 974 | 1009 | AM_RANGE(0x090000, 0x093fff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 975 | 1010 | AM_RANGE(0x09c000, 0x09cfff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 976 | 1011 | AM_RANGE(0x09d000, 0x09dfff) AM_WRITE(nmk_txvideoram_w) /* mirror */ |
| 977 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 978 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 979 | | AM_RANGE(0x0f9000, 0x0fffff) AM_WRITE(MWA16_RAM) AM_BASE(&ram) /* Work RAM again */ |
| 980 | 1012 | ADDRESS_MAP_END |
| 981 | 1013 | |
| 982 | 1014 | static ADDRESS_MAP_START( macross2_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 990 | 1022 | AM_RANGE(0x140000, 0x14ffff) AM_READ(nmk_bgvideoram_r) |
| 991 | 1023 | AM_RANGE(0x170000, 0x170fff) AM_READ(nmk_txvideoram_r) |
| 992 | 1024 | AM_RANGE(0x171000, 0x171fff) AM_READ(nmk_txvideoram_r) /* mirror */ |
| 993 | | AM_RANGE(0x1f0000, 0x1f7fff) AM_READ(MRA16_RAM) |
| 994 | | AM_RANGE(0x1f8000, 0x1f8fff) AM_READ(MRA16_RAM) |
| 995 | | AM_RANGE(0x1f9000, 0x1fffff) AM_READ(MRA16_RAM) |
| 1025 | AM_RANGE(0x1f0000, 0x1fffff) AM_RAM AM_BASE(&nmk16_mainram) |
| 996 | 1026 | ADDRESS_MAP_END |
| 997 | 1027 | |
| 998 | 1028 | static ADDRESS_MAP_START( macross2_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 1007 | 1037 | AM_RANGE(0x140000, 0x14ffff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 1008 | 1038 | AM_RANGE(0x170000, 0x170fff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 1009 | 1039 | AM_RANGE(0x171000, 0x171fff) AM_WRITE(nmk_txvideoram_w) /* mirror */ |
| 1010 | | AM_RANGE(0x1f0000, 0x1f7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 1011 | | AM_RANGE(0x1f8000, 0x1f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1012 | | AM_RANGE(0x1f9000, 0x1fffff) AM_WRITE(MWA16_RAM) AM_BASE(&ram) /* Work RAM again */ |
| 1013 | 1040 | ADDRESS_MAP_END |
| 1014 | 1041 | |
| 1015 | 1042 | static ADDRESS_MAP_START( raphero_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 1023 | 1050 | AM_RANGE(0x140000, 0x14ffff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 1024 | 1051 | AM_RANGE(0x170000, 0x170fff) AM_WRITE(nmk_txvideoram_w) AM_BASE(&nmk_txvideoram) |
| 1025 | 1052 | AM_RANGE(0x171000, 0x171fff) AM_WRITE(nmk_txvideoram_w) /* mirror */ |
| 1026 | | AM_RANGE(0x1f0000, 0x1f7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 1027 | | AM_RANGE(0x1f8000, 0x1f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1028 | | AM_RANGE(0x1f9000, 0x1fffff) AM_WRITE(MWA16_RAM) AM_BASE(&ram) /* Work RAM again */ |
| 1029 | 1053 | ADDRESS_MAP_END |
| 1030 | 1054 | |
| 1031 | 1055 | #if 0 |
| r1463 | r1464 | |
| 1105 | 1129 | AM_RANGE(0x088000, 0x0887ff) AM_READ(MRA16_RAM) |
| 1106 | 1130 | AM_RANGE(0x09c000, 0x09cfff) AM_READ(nmk_bgvideoram_r) |
| 1107 | 1131 | AM_RANGE(0x09d000, 0x09dfff) AM_READ(nmk_bgvideoram_r) /* mirror */ |
| 1108 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_READ(MRA16_RAM) |
| 1109 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_READ(MRA16_RAM) |
| 1110 | | AM_RANGE(0x0f9000, 0x0fffff) AM_READ(MRA16_RAM) |
| 1111 | 1132 | ADDRESS_MAP_END |
| 1112 | 1133 | |
| 1113 | 1134 | static ADDRESS_MAP_START( bjtwin_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r1463 | r1464 | |
| 1121 | 1142 | AM_RANGE(0x094002, 0x094003) AM_WRITE(MWA16_NOP) /* IRQ enable? */ |
| 1122 | 1143 | AM_RANGE(0x09c000, 0x09cfff) AM_WRITE(nmk_bgvideoram_w) AM_BASE(&nmk_bgvideoram) |
| 1123 | 1144 | AM_RANGE(0x09d000, 0x09dfff) AM_WRITE(nmk_bgvideoram_w) /* mirror */ |
| 1124 | | AM_RANGE(0x0f0000, 0x0f7fff) AM_WRITE(MWA16_RAM) /* Work RAM */ |
| 1125 | | AM_RANGE(0x0f8000, 0x0f8fff) AM_WRITE(MWA16_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) |
| 1126 | | AM_RANGE(0x0f9000, 0x0fffff) AM_WRITE(MWA16_RAM) /* Work RAM again */ |
| 1145 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_BASE(&nmk16_mainram) |
| 1127 | 1146 | ADDRESS_MAP_END |
| 1128 | 1147 | |
| 1129 | 1148 | |
| r1463 | r1464 | |
| 1354 | 1373 | PORT_DIPSETTING( 0x8000, "Best" ) |
| 1355 | 1374 | INPUT_PORTS_END |
| 1356 | 1375 | |
| 1376 | /********************************************************** |
| 1377 | Input Ports: Task Force Harrier |
| 1378 | |
| 1379 | this is a little strange compared to the other games, the |
| 1380 | protection might be more involved here than it first |
| 1381 | appears, however, this works. |
| 1382 | **********************************************************/ |
| 1383 | |
| 1384 | |
| 1357 | 1385 | static INPUT_PORTS_START( tharrier ) |
| 1358 | 1386 | PORT_START /* IN0 */ |
| 1359 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1360 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1361 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 1362 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) |
| 1363 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) |
| 1364 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1365 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1366 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 1367 | | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 1368 | | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 1369 | | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 1370 | | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1371 | | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1372 | | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 1373 | | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1374 | | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* Mcu status? */ |
| 1387 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 1388 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 1389 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 1390 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_START1 ) |
| 1391 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_START2 ) |
| 1392 | PORT_BIT( 0x7fe0, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1393 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_SPECIAL ) /* Mcu status? */ |
| 1375 | 1394 | |
| 1376 | 1395 | PORT_START /* IN1 */ |
| 1377 | | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1)//IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1378 | | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2)//IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1379 | | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 1380 | | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1381 | | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN) //IPT_COIN1 ) |
| 1396 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1) |
| 1397 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2) //title |
| 1398 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1399 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1400 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN) |
| 1382 | 1401 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 1383 | | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 )//COIN ? SERVICE ? |
| 1384 | | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN1 )//BUTTON3 ) PORT_PLAYER(1) |
| 1385 | | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 1386 | | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 1387 | | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 1388 | | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 1389 | | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1390 | | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 1402 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1403 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 1404 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START2 ) //in game |
| 1405 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1406 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1407 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1408 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1409 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1391 | 1410 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1392 | | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) |
| 1411 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1393 | 1412 | |
| 1394 | 1413 | PORT_START /* DSW */ |
| 1395 | 1414 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| r1463 | r1464 | |
| 1437 | 1456 | PORT_DIPSETTING( 0xc000, "3" ) |
| 1438 | 1457 | PORT_DIPSETTING( 0x8000, "4" ) |
| 1439 | 1458 | PORT_DIPSETTING( 0x0000, "5" ) |
| 1459 | |
| 1460 | PORT_START /* IN2 ? */ |
| 1461 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 1462 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_PLAYER(1) |
| 1463 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_PLAYER(1) |
| 1464 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) |
| 1465 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| 1466 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 1467 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 1468 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_BUTTON3 )PORT_PLAYER(1) |
| 1469 | |
| 1470 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_UNKNOWN )//coin ? |
| 1471 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_PLAYER(2) |
| 1472 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_PLAYER(2) |
| 1473 | PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 1474 | PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 1475 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 1476 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 1477 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) //coin ? |
| 1440 | 1478 | INPUT_PORTS_END |
| 1441 | 1479 | |
| 1480 | |
| 1442 | 1481 | static INPUT_PORTS_START( mustang ) |
| 1443 | 1482 | PORT_START /* IN0 */ |
| 1444 | 1483 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r1463 | r1464 | |
| 2814 | 2853 | |
| 2815 | 2854 | |
| 2816 | 2855 | |
| 2856 | |
| 2857 | /*************************************************************************** |
| 2858 | |
| 2859 | |
| 2860 | Input Ports |
| 2861 | |
| 2862 | |
| 2863 | ***************************************************************************/ |
| 2864 | |
| 2865 | /*************************************************************************** |
| 2866 | Stagger I |
| 2867 | ***************************************************************************/ |
| 2868 | |
| 2869 | static INPUT_PORTS_START( stagger1 ) |
| 2870 | PORT_START_TAG("IN0") // $080000.w |
| 2871 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 2872 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 2873 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 2874 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) |
| 2875 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) |
| 2876 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2877 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2878 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2879 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2880 | |
| 2881 | PORT_START_TAG("IN1") // $080002.w |
| 2882 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 2883 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 2884 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 2885 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 2886 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 2887 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 2888 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2889 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2890 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 2891 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 2892 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 2893 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 2894 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 2895 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 2896 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2897 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2898 | |
| 2899 | PORT_START_TAG("IN2") // $080004.w |
| 2900 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) |
| 2901 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) |
| 2902 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2903 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 2904 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unused ) ) |
| 2905 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) |
| 2906 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2907 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unused ) ) |
| 2908 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) |
| 2909 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2910 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) |
| 2911 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) |
| 2912 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2913 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) |
| 2914 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 2915 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2916 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Lives ) ) |
| 2917 | PORT_DIPSETTING( 0x0000, "1" ) |
| 2918 | PORT_DIPSETTING( 0x0080, "2" ) |
| 2919 | PORT_DIPSETTING( 0x00c0, "3" ) |
| 2920 | PORT_DIPSETTING( 0x0040, "5" ) |
| 2921 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Flip_Screen ) ) |
| 2922 | PORT_DIPSETTING( 0x0300, DEF_STR( Off ) ) |
| 2923 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2924 | PORT_DIPSETTING( 0x0200, "Horizontally" ) |
| 2925 | PORT_DIPSETTING( 0x0100, "Vertically" ) |
| 2926 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unused ) ) |
| 2927 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) |
| 2928 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2929 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) ) |
| 2930 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 2931 | PORT_DIPSETTING( 0x1800, DEF_STR( Normal ) ) |
| 2932 | PORT_DIPSETTING( 0x1000, DEF_STR( Hard ) ) |
| 2933 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 2934 | PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) ) |
| 2935 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 2936 | PORT_DIPSETTING( 0x8000, DEF_STR( 3C_1C ) ) |
| 2937 | PORT_DIPSETTING( 0x4000, DEF_STR( 2C_1C ) ) |
| 2938 | PORT_DIPSETTING( 0xc000, DEF_STR( 3C_2C ) ) |
| 2939 | PORT_DIPSETTING( 0xe000, DEF_STR( 1C_1C ) ) |
| 2940 | PORT_DIPSETTING( 0x2000, DEF_STR( 2C_3C ) ) |
| 2941 | PORT_DIPSETTING( 0x6000, DEF_STR( 1C_2C ) ) |
| 2942 | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_3C ) ) |
| 2943 | INPUT_PORTS_END |
| 2944 | |
| 2945 | /* everything seems active high.. not low */ |
| 2946 | static INPUT_PORTS_START( redhawkb ) |
| 2947 | PORT_START_TAG("IN0") // $080000.w |
| 2948 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 2949 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 2950 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_SERVICE1 ) |
| 2951 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_START1 ) |
| 2952 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_START2 ) |
| 2953 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2954 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2955 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2956 | PORT_BIT( 0xff00, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2957 | |
| 2958 | PORT_START_TAG("IN1") // $080002.w |
| 2959 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 2960 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 2961 | PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 2962 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 2963 | PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 2964 | PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 2965 | PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2966 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2967 | PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 2968 | PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 2969 | PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 2970 | PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 2971 | PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 2972 | PORT_BIT( 0x2000, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 2973 | PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2974 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 2975 | |
| 2976 | PORT_START_TAG("IN2") // $080004.w -- probably just redhawk but inverted |
| 2977 | PORT_SERVICE( 0x0001, IP_ACTIVE_HIGH ) /* not working */ |
| 2978 | PORT_DIPNAME( 0x0002, 0x0000, DEF_STR( Demo_Sounds ) ) |
| 2979 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 2980 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 2981 | PORT_DIPNAME( 0x0004, 0x0000, DEF_STR( Unused ) ) |
| 2982 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2983 | PORT_DIPSETTING( 0x0004, DEF_STR( On ) ) |
| 2984 | PORT_DIPNAME( 0x0008, 0x0000, DEF_STR( Unused ) ) |
| 2985 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2986 | PORT_DIPSETTING( 0x0008, DEF_STR( On ) ) |
| 2987 | PORT_DIPNAME( 0x0010, 0x0000, DEF_STR( Unused ) ) |
| 2988 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2989 | PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) |
| 2990 | PORT_DIPNAME( 0x0020, 0x0000, DEF_STR( Unused ) ) |
| 2991 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 2992 | PORT_DIPSETTING( 0x0020, DEF_STR( On ) ) |
| 2993 | PORT_DIPNAME( 0x00c0, 0x0000, DEF_STR( Lives ) ) |
| 2994 | PORT_DIPSETTING( 0x00c0, "1" ) |
| 2995 | PORT_DIPSETTING( 0x0040, "2" ) |
| 2996 | PORT_DIPSETTING( 0x0000, "3" ) |
| 2997 | PORT_DIPSETTING( 0x0080, "5" ) |
| 2998 | PORT_DIPNAME( 0x0300, 0x0000, DEF_STR( Flip_Screen ) ) /* not supported */ |
| 2999 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3000 | PORT_DIPSETTING( 0x0300, DEF_STR( On ) ) |
| 3001 | PORT_DIPSETTING( 0x0100, "Horizontally" ) |
| 3002 | PORT_DIPSETTING( 0x0200, "Vertically" ) |
| 3003 | PORT_DIPNAME( 0x0400, 0x0000, DEF_STR( Unused ) ) |
| 3004 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3005 | PORT_DIPSETTING( 0x0400, DEF_STR( On ) ) |
| 3006 | PORT_DIPNAME( 0x1800, 0x0000, DEF_STR( Difficulty ) ) |
| 3007 | PORT_DIPSETTING( 0x1000, DEF_STR( Easy ) ) |
| 3008 | PORT_DIPSETTING( 0x0000, DEF_STR( Normal ) ) |
| 3009 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) |
| 3010 | PORT_DIPSETTING( 0x1800, DEF_STR( Hardest ) ) |
| 3011 | PORT_DIPNAME( 0xe000, 0x0000, DEF_STR( Coinage ) ) |
| 3012 | PORT_DIPSETTING( 0xe000, DEF_STR( 4C_1C ) ) |
| 3013 | PORT_DIPSETTING( 0x6000, DEF_STR( 3C_1C ) ) |
| 3014 | PORT_DIPSETTING( 0xa000, DEF_STR( 2C_1C ) ) |
| 3015 | PORT_DIPSETTING( 0x2000, DEF_STR( 3C_2C ) ) |
| 3016 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_1C ) ) |
| 3017 | PORT_DIPSETTING( 0xc000, DEF_STR( 2C_3C ) ) |
| 3018 | PORT_DIPSETTING( 0x8000, DEF_STR( 1C_2C ) ) |
| 3019 | PORT_DIPSETTING( 0x4000, DEF_STR( 1C_3C ) ) |
| 3020 | INPUT_PORTS_END |
| 3021 | |
| 3022 | /*************************************************************************** |
| 3023 | Sen Jin - Guardian Storm |
| 3024 | ***************************************************************************/ |
| 3025 | |
| 3026 | static INPUT_PORTS_START( grdnstrm ) |
| 3027 | PORT_START_TAG("IN0") // $080000.w |
| 3028 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3029 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 3030 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 3031 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) |
| 3032 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) |
| 3033 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3034 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3035 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3036 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3037 | |
| 3038 | PORT_START_TAG("IN1") // IN1 - $080002.w |
| 3039 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 3040 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 3041 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 3042 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 3043 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 3044 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 3045 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3046 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3047 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 3048 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 3049 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 3050 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 3051 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 3052 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 3053 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3054 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3055 | |
| 3056 | PORT_START_TAG("IN2") // $080004.w |
| 3057 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) |
| 3058 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) |
| 3059 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3060 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 3061 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Free_Play ) ) |
| 3062 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) |
| 3063 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3064 | PORT_DIPNAME( 0x0008, 0x0008, "Bombs" ) |
| 3065 | PORT_DIPSETTING( 0x0008, "2" ) |
| 3066 | PORT_DIPSETTING( 0x0000, "3" ) |
| 3067 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) |
| 3068 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) |
| 3069 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3070 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) |
| 3071 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 3072 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3073 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Lives ) ) |
| 3074 | PORT_DIPSETTING( 0x0000, "1" ) |
| 3075 | PORT_DIPSETTING( 0x0080, "2" ) |
| 3076 | PORT_DIPSETTING( 0x00c0, "3" ) |
| 3077 | PORT_DIPSETTING( 0x0040, "5" ) |
| 3078 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Flip_Screen ) ) |
| 3079 | PORT_DIPSETTING( 0x0300, DEF_STR( Off ) ) |
| 3080 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3081 | PORT_DIPSETTING( 0x0200, "Horizontally" ) |
| 3082 | PORT_DIPSETTING( 0x0100, "Vertically" ) |
| 3083 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unused ) ) |
| 3084 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) |
| 3085 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3086 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) ) |
| 3087 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 3088 | PORT_DIPSETTING( 0x1800, DEF_STR( Normal ) ) |
| 3089 | PORT_DIPSETTING( 0x1000, DEF_STR( Hard ) ) |
| 3090 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3091 | PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) ) |
| 3092 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 3093 | PORT_DIPSETTING( 0x8000, DEF_STR( 3C_1C ) ) |
| 3094 | PORT_DIPSETTING( 0x4000, DEF_STR( 2C_1C ) ) |
| 3095 | PORT_DIPSETTING( 0xc000, DEF_STR( 3C_2C ) ) |
| 3096 | PORT_DIPSETTING( 0xe000, DEF_STR( 1C_1C ) ) |
| 3097 | PORT_DIPSETTING( 0x2000, DEF_STR( 2C_3C ) ) |
| 3098 | PORT_DIPSETTING( 0x6000, DEF_STR( 1C_2C ) ) |
| 3099 | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_3C ) ) |
| 3100 | INPUT_PORTS_END |
| 3101 | |
| 3102 | /* Pop's Pop's */ |
| 3103 | |
| 3104 | static INPUT_PORTS_START( popspops ) |
| 3105 | PORT_START_TAG("IN0") // $080000.w |
| 3106 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3107 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 3108 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 3109 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) |
| 3110 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) |
| 3111 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3112 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3113 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3114 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3115 | |
| 3116 | PORT_START_TAG("IN1") // IN1 - $080002.w |
| 3117 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 3118 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 3119 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 3120 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 3121 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 3122 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 3123 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3124 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3125 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 3126 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 3127 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 3128 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 3129 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 3130 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 3131 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3132 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3133 | |
| 3134 | /* the dips on this are a mess.. service mode doesn't seem to be 100% trustable */ |
| 3135 | PORT_START_TAG("IN2") // $080004.w |
| 3136 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) |
| 3137 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) |
| 3138 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3139 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 3140 | PORT_DIPNAME( 0x0004, 0x0000, DEF_STR( Unknown ) ) // if ON it tells you the answers?! |
| 3141 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) |
| 3142 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3143 | PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Unknown ) ) |
| 3144 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) |
| 3145 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3146 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) |
| 3147 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) |
| 3148 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3149 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) |
| 3150 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 3151 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3152 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play ) ) |
| 3153 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 3154 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3155 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) |
| 3156 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 3157 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3158 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) ) |
| 3159 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 3160 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3161 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) |
| 3162 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 3163 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3164 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) |
| 3165 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) |
| 3166 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3167 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) ) |
| 3168 | PORT_DIPSETTING( 0x1000, DEF_STR( Easy ) ) |
| 3169 | PORT_DIPSETTING( 0x1800, DEF_STR( Normal ) ) |
| 3170 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) |
| 3171 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3172 | PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) ) |
| 3173 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 3174 | PORT_DIPSETTING( 0x2000, DEF_STR( 3C_1C ) ) |
| 3175 | PORT_DIPSETTING( 0x4000, DEF_STR( 2C_1C ) ) |
| 3176 | PORT_DIPSETTING( 0x6000, DEF_STR( 3C_2C ) ) |
| 3177 | PORT_DIPSETTING( 0xe000, DEF_STR( 1C_1C ) ) |
| 3178 | PORT_DIPSETTING( 0x8000, DEF_STR( 2C_3C ) ) |
| 3179 | PORT_DIPSETTING( 0xc000, DEF_STR( 1C_2C ) ) |
| 3180 | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_3C ) ) |
| 3181 | INPUT_PORTS_END |
| 3182 | |
| 3183 | |
| 3184 | |
| 3185 | /*************************************************************************** |
| 3186 | Bubble 2000 |
| 3187 | ***************************************************************************/ |
| 3188 | |
| 3189 | static INPUT_PORTS_START( bubl2000 ) |
| 3190 | PORT_START_TAG("IN0") // $080000.w |
| 3191 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3192 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 3193 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 3194 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) |
| 3195 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) |
| 3196 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3197 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3198 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3199 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3200 | |
| 3201 | PORT_START_TAG("IN1") // $080002.w |
| 3202 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 3203 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 3204 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 3205 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 3206 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 3207 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 3208 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3209 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3210 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 3211 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 3212 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 3213 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 3214 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 3215 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 3216 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3217 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3218 | |
| 3219 | PORT_START_TAG("IN2") // $080004.w |
| 3220 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unused ) ) |
| 3221 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 3222 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3223 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Unused ) ) |
| 3224 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 3225 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3226 | PORT_DIPNAME( 0x000c, 0x000c, DEF_STR( Difficulty ) ) |
| 3227 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 3228 | PORT_DIPSETTING( 0x000c, DEF_STR( Normal ) ) |
| 3229 | PORT_DIPSETTING( 0x0004, DEF_STR( Hard ) ) |
| 3230 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3231 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unused ) ) |
| 3232 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) |
| 3233 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3234 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unused ) ) |
| 3235 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 3236 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3237 | PORT_DIPNAME( 0x00c0, 0x00c0, "Free Credit" ) |
| 3238 | PORT_DIPSETTING( 0x0080, "500k" ) |
| 3239 | PORT_DIPSETTING( 0x00c0, "800k" ) |
| 3240 | PORT_DIPSETTING( 0x0040, "1000k" ) |
| 3241 | PORT_DIPSETTING( 0x0000, "1500k" ) |
| 3242 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unused ) ) |
| 3243 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 3244 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3245 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Demo_Sounds ) ) |
| 3246 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3247 | PORT_DIPSETTING( 0x0200, DEF_STR( On ) ) |
| 3248 | PORT_DIPNAME( 0x1c00, 0x1c00, DEF_STR( Coin_B ) ) |
| 3249 | PORT_DIPSETTING( 0x1000, DEF_STR( 4C_1C ) ) |
| 3250 | PORT_DIPSETTING( 0x0800, DEF_STR( 3C_1C ) ) |
| 3251 | PORT_DIPSETTING( 0x1800, DEF_STR( 2C_1C ) ) |
| 3252 | PORT_DIPSETTING( 0x1c00, DEF_STR( 1C_1C ) ) |
| 3253 | PORT_DIPSETTING( 0x0c00, DEF_STR( 1C_2C ) ) |
| 3254 | PORT_DIPSETTING( 0x1400, DEF_STR( 1C_3C ) ) |
| 3255 | PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) ) |
| 3256 | // PORT_DIPSETTING( 0x0000, "Disabled" ) |
| 3257 | PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coin_A ) ) |
| 3258 | PORT_DIPSETTING( 0x8000, DEF_STR( 4C_1C ) ) |
| 3259 | PORT_DIPSETTING( 0x4000, DEF_STR( 3C_1C ) ) |
| 3260 | PORT_DIPSETTING( 0xc000, DEF_STR( 2C_1C ) ) |
| 3261 | PORT_DIPSETTING( 0xe000, DEF_STR( 1C_1C ) ) |
| 3262 | PORT_DIPSETTING( 0x6000, DEF_STR( 1C_2C ) ) |
| 3263 | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_3C ) ) |
| 3264 | PORT_DIPSETTING( 0x2000, DEF_STR( 1C_4C ) ) |
| 3265 | // PORT_DIPSETTING( 0x0000, "Disabled" ) |
| 3266 | INPUT_PORTS_END |
| 3267 | |
| 3268 | /*************************************************************************** |
| 3269 | Mang Chi |
| 3270 | ***************************************************************************/ |
| 3271 | |
| 3272 | static INPUT_PORTS_START( mangchi ) |
| 3273 | PORT_START_TAG("IN0") // $080000.w |
| 3274 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3275 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 3276 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 3277 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) |
| 3278 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) |
| 3279 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3280 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3281 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3282 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3283 | |
| 3284 | PORT_START_TAG("IN1") // $080002.w |
| 3285 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 3286 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 3287 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 3288 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 3289 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 3290 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 3291 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3292 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3293 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 3294 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 3295 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 3296 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 3297 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 3298 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 3299 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3300 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3301 | |
| 3302 | PORT_START_TAG("IN2") // $080004.w |
| 3303 | PORT_DIPNAME( 0x0001, 0x0001, "DSWS" ) /* Setting to on cuases screen issues, Flip Screen? or unfinished test mode? */ |
| 3304 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 3305 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3306 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) |
| 3307 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3308 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 3309 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Unknown ) ) |
| 3310 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) |
| 3311 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3312 | PORT_DIPNAME( 0x0018, 0x0018, "Vs Rounds" ) |
| 3313 | PORT_DIPSETTING( 0x0018, "2" ) |
| 3314 | PORT_DIPSETTING( 0x0010, "3" ) |
| 3315 | PORT_DIPSETTING( 0x0008, "4" ) |
| 3316 | PORT_DIPSETTING( 0x0000, "5" ) |
| 3317 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) |
| 3318 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 3319 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3320 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Free_Play ) ) |
| 3321 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 3322 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3323 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) |
| 3324 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 3325 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3326 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) ) |
| 3327 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 3328 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3329 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) |
| 3330 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 3331 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3332 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) |
| 3333 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) |
| 3334 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3335 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) ) /* Hard to tell levels of difficulty by play :-( */ |
| 3336 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 3337 | PORT_DIPSETTING( 0x1800, DEF_STR( Normal ) ) |
| 3338 | PORT_DIPSETTING( 0x1000, DEF_STR( Hard ) ) |
| 3339 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3340 | PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) ) |
| 3341 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 3342 | PORT_DIPSETTING( 0x2000, DEF_STR( 3C_1C ) ) |
| 3343 | PORT_DIPSETTING( 0x4000, DEF_STR( 2C_1C ) ) |
| 3344 | PORT_DIPSETTING( 0x6000, DEF_STR( 3C_2C ) ) |
| 3345 | PORT_DIPSETTING( 0xe000, DEF_STR( 1C_1C ) ) |
| 3346 | PORT_DIPSETTING( 0x8000, DEF_STR( 2C_3C ) ) |
| 3347 | PORT_DIPSETTING( 0xc000, DEF_STR( 1C_2C ) ) |
| 3348 | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_3C ) ) |
| 3349 | INPUT_PORTS_END |
| 3350 | |
| 3351 | |
| 3352 | /*************************************************************************** |
| 3353 | Fire Hawk |
| 3354 | ***************************************************************************/ |
| 3355 | |
| 3356 | static INPUT_PORTS_START( firehawk ) |
| 3357 | PORT_START_TAG("IN0") // $080000.w |
| 3358 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3359 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 3360 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 3361 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) |
| 3362 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) |
| 3363 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3364 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3365 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3366 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3367 | |
| 3368 | PORT_START_TAG("IN1") // $080002.w |
| 3369 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 3370 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 3371 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 3372 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 3373 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 3374 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 3375 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3376 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3377 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 3378 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 3379 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 3380 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 3381 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 3382 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 3383 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3384 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3385 | |
| 3386 | PORT_START_TAG("IN2") // $080004.w |
| 3387 | PORT_DIPNAME( 0x0001, 0x0001, "Show Dip-Switch Settings" ) |
| 3388 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 3389 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3390 | PORT_DIPNAME( 0x000e, 0x000e, DEF_STR( Difficulty ) ) |
| 3391 | PORT_DIPSETTING( 0x0006, DEF_STR( Very_Easy) ) |
| 3392 | PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) |
| 3393 | // PORT_DIPSETTING( 0x000a, DEF_STR( Easy ) ) |
| 3394 | PORT_DIPSETTING( 0x000e, DEF_STR( Normal ) ) |
| 3395 | // PORT_DIPSETTING( 0x0000, DEF_STR( Hard ) ) |
| 3396 | PORT_DIPSETTING( 0x0002, DEF_STR( Hard ) ) |
| 3397 | PORT_DIPSETTING( 0x0004, DEF_STR( Hardest ) ) |
| 3398 | PORT_DIPSETTING( 0x000c, DEF_STR( Very_Hard ) ) |
| 3399 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Demo_Sounds ) ) |
| 3400 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3401 | PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) |
| 3402 | PORT_DIPNAME( 0x0020, 0x0020, "Number of Bombs" ) |
| 3403 | PORT_DIPSETTING( 0x0020, "2" ) |
| 3404 | PORT_DIPSETTING( 0x0000, "3" ) |
| 3405 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Lives ) ) |
| 3406 | PORT_DIPSETTING( 0x0000, "1" ) |
| 3407 | PORT_DIPSETTING( 0x0080, "2" ) |
| 3408 | PORT_DIPSETTING( 0x00c0, "3" ) |
| 3409 | PORT_DIPSETTING( 0x0040, "4" ) |
| 3410 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) ) |
| 3411 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 3412 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3413 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Region ) ) |
| 3414 | PORT_DIPSETTING( 0x0200, DEF_STR( English ) ) |
| 3415 | PORT_DIPSETTING( 0x0000, "China" ) |
| 3416 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Free_Play ) ) |
| 3417 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) |
| 3418 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3419 | PORT_DIPNAME( 0x1800, 0x1800, "Continue Coins" ) |
| 3420 | PORT_DIPSETTING( 0x1800, "1 Coin" ) |
| 3421 | PORT_DIPSETTING( 0x0800, "2 Coins" ) |
| 3422 | PORT_DIPSETTING( 0x1000, "3 Coins" ) |
| 3423 | PORT_DIPSETTING( 0x0000, "4 Coins" ) |
| 3424 | PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) ) |
| 3425 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 3426 | PORT_DIPSETTING( 0x8000, DEF_STR( 3C_1C ) ) |
| 3427 | PORT_DIPSETTING( 0x4000, DEF_STR( 2C_1C ) ) |
| 3428 | PORT_DIPSETTING( 0xc000, DEF_STR( 3C_2C ) ) |
| 3429 | PORT_DIPSETTING( 0xe000, DEF_STR( 1C_1C ) ) |
| 3430 | PORT_DIPSETTING( 0x2000, DEF_STR( 2C_3C ) ) |
| 3431 | PORT_DIPSETTING( 0x6000, DEF_STR( 1C_2C ) ) |
| 3432 | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_3C ) ) |
| 3433 | INPUT_PORTS_END |
| 3434 | |
| 3435 | |
| 3436 | /*************************************************************************** |
| 3437 | Spectrum 2000 |
| 3438 | ***************************************************************************/ |
| 3439 | |
| 3440 | static INPUT_PORTS_START( spec2k ) |
| 3441 | PORT_START_TAG("IN0") // $080000.w |
| 3442 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3443 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 3444 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 3445 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) |
| 3446 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) |
| 3447 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3448 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3449 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3450 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3451 | |
| 3452 | PORT_START_TAG("IN1") // $080002.w |
| 3453 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 3454 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 3455 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 3456 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 3457 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 3458 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 3459 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3460 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3461 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 3462 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 3463 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 3464 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 3465 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 3466 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 3467 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3468 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3469 | |
| 3470 | PORT_START_TAG("IN2") // $080004.w |
| 3471 | PORT_SERVICE( 0x0001, IP_ACTIVE_LOW ) |
| 3472 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) |
| 3473 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3474 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 3475 | PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Free_Play ) ) |
| 3476 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) |
| 3477 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3478 | PORT_DIPNAME( 0x0008, 0x0008, "Number of Bombs" ) |
| 3479 | PORT_DIPSETTING( 0x0008, "2" ) |
| 3480 | PORT_DIPSETTING( 0x0000, "3" ) |
| 3481 | PORT_DIPNAME( 0x0010, 0x0010, "Copyright Notice" ) |
| 3482 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3483 | PORT_DIPSETTING( 0x0010, DEF_STR( On ) ) |
| 3484 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) |
| 3485 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 3486 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3487 | PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Lives ) ) |
| 3488 | PORT_DIPSETTING( 0x0000, "1" ) |
| 3489 | PORT_DIPSETTING( 0x0080, "2" ) |
| 3490 | PORT_DIPSETTING( 0x00c0, "3" ) |
| 3491 | PORT_DIPSETTING( 0x0040, "5" ) |
| 3492 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Unknown ) ) |
| 3493 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 3494 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3495 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) |
| 3496 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 3497 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3498 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) |
| 3499 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) |
| 3500 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3501 | PORT_DIPNAME( 0x1800, 0x1800, DEF_STR( Difficulty ) ) |
| 3502 | PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) ) |
| 3503 | PORT_DIPSETTING( 0x1800, DEF_STR( Normal ) ) |
| 3504 | PORT_DIPSETTING( 0x1000, DEF_STR( Hard ) ) |
| 3505 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3506 | PORT_DIPNAME( 0xe000, 0xe000, DEF_STR( Coinage ) ) |
| 3507 | PORT_DIPSETTING( 0x0000, DEF_STR( 4C_1C ) ) |
| 3508 | PORT_DIPSETTING( 0x8000, DEF_STR( 3C_1C ) ) |
| 3509 | PORT_DIPSETTING( 0x4000, DEF_STR( 2C_1C ) ) |
| 3510 | PORT_DIPSETTING( 0xc000, DEF_STR( 3C_2C ) ) |
| 3511 | PORT_DIPSETTING( 0xe000, DEF_STR( 1C_1C ) ) |
| 3512 | PORT_DIPSETTING( 0x2000, DEF_STR( 2C_3C ) ) |
| 3513 | PORT_DIPSETTING( 0x6000, DEF_STR( 1C_2C ) ) |
| 3514 | PORT_DIPSETTING( 0xa000, DEF_STR( 1C_3C ) ) |
| 3515 | INPUT_PORTS_END |
| 3516 | |
| 3517 | |
| 3518 | /*************************************************************************** |
| 3519 | Twin Action |
| 3520 | ***************************************************************************/ |
| 3521 | |
| 3522 | static INPUT_PORTS_START( twinactn ) |
| 3523 | PORT_START_TAG("IN0") // $080000.w |
| 3524 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 3525 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 3526 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 3527 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) |
| 3528 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) |
| 3529 | PORT_SERVICE_NO_TOGGLE(0x0020, IP_ACTIVE_LOW ) // Test in service mode |
| 3530 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3531 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3532 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3533 | |
| 3534 | PORT_START_TAG("IN1") // $080002.w |
| 3535 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 3536 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) |
| 3537 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) |
| 3538 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) |
| 3539 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 3540 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 3541 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3542 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH,IPT_UNKNOWN ) // Tested at boot |
| 3543 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 3544 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 3545 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 3546 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 3547 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 3548 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 3549 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 3550 | PORT_BIT( 0x8000, IP_ACTIVE_HIGH,IPT_UNKNOWN ) // Tested at boot |
| 3551 | |
| 3552 | PORT_START_TAG("IN2") // $080004.w |
| 3553 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| 3554 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 3555 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3556 | PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Demo_Sounds ) ) |
| 3557 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 3558 | PORT_DIPSETTING( 0x0002, DEF_STR( On ) ) |
| 3559 | PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) ) |
| 3560 | PORT_DIPSETTING( 0x0010, DEF_STR( 4C_1C ) ) |
| 3561 | PORT_DIPSETTING( 0x0008, DEF_STR( 3C_1C ) ) |
| 3562 | PORT_DIPSETTING( 0x0018, DEF_STR( 2C_1C ) ) |
| 3563 | PORT_DIPSETTING( 0x001c, DEF_STR( 1C_1C ) ) |
| 3564 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_2C ) ) |
| 3565 | PORT_DIPSETTING( 0x0014, DEF_STR( 1C_3C ) ) |
| 3566 | PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) ) |
| 3567 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 3568 | PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) ) |
| 3569 | PORT_DIPSETTING( 0x0080, DEF_STR( 4C_1C ) ) |
| 3570 | PORT_DIPSETTING( 0x0040, DEF_STR( 3C_1C ) ) |
| 3571 | PORT_DIPSETTING( 0x00c0, DEF_STR( 2C_1C ) ) |
| 3572 | PORT_DIPSETTING( 0x00e0, DEF_STR( 1C_1C ) ) |
| 3573 | PORT_DIPSETTING( 0x0060, DEF_STR( 1C_2C ) ) |
| 3574 | PORT_DIPSETTING( 0x00a0, DEF_STR( 1C_3C ) ) |
| 3575 | PORT_DIPSETTING( 0x0020, DEF_STR( 1C_4C ) ) |
| 3576 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 3577 | |
| 3578 | PORT_DIPNAME( 0x0100, 0x0100, DEF_STR( Flip_Screen ) ) |
| 3579 | PORT_DIPSETTING( 0x0100, DEF_STR( Off ) ) |
| 3580 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3581 | PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Unknown ) ) |
| 3582 | PORT_DIPSETTING( 0x0200, DEF_STR( Off ) ) |
| 3583 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3584 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) |
| 3585 | PORT_DIPSETTING( 0x0c00, DEF_STR( Easy ) ) |
| 3586 | PORT_DIPSETTING( 0x0400, DEF_STR( Normal ) ) |
| 3587 | PORT_DIPSETTING( 0x0800, DEF_STR( Hard ) ) |
| 3588 | PORT_DIPSETTING( 0x0000, DEF_STR( Hardest ) ) |
| 3589 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) |
| 3590 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 3591 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3592 | PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) |
| 3593 | PORT_DIPSETTING( 0x2000, DEF_STR( Off ) ) |
| 3594 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 3595 | PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) ) |
| 3596 | PORT_DIPSETTING( 0x4000, "2" ) |
| 3597 | PORT_DIPSETTING( 0xc000, "3" ) |
| 3598 | PORT_DIPSETTING( 0x8000, "4" ) |
| 3599 | PORT_DIPSETTING( 0x0000, "5" ) |
| 3600 | INPUT_PORTS_END |
| 3601 | |
| 3602 | |
| 3603 | |
| 2817 | 3604 | static const gfx_layout charlayout = |
| 2818 | 3605 | { |
| 2819 | 3606 | 8,8, |
| r1463 | r1464 | |
| 2917 | 3704 | MDRV_CPU_PROGRAM_MAP(tharrier_sound_readmem,tharrier_sound_writemem) |
| 2918 | 3705 | MDRV_CPU_IO_MAP(tharrier_sound_readport,tharrier_sound_writeport) |
| 2919 | 3706 | |
| 2920 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 2921 | | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 2922 | 3707 | MDRV_MACHINE_RESET(mustang_sound) |
| 2923 | 3708 | |
| 3709 | |
| 2924 | 3710 | /* video hardware */ |
| 2925 | 3711 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 3712 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3713 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 2926 | 3714 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2927 | 3715 | MDRV_SCREEN_SIZE(256, 256) |
| 2928 | 3716 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 3717 | |
| 2929 | 3718 | MDRV_GFXDECODE(tharrier) |
| 2930 | 3719 | MDRV_PALETTE_LENGTH(512) |
| 2931 | 3720 | |
| r1463 | r1464 | |
| 2958 | 3747 | MDRV_CPU_ADD(M68000, 10000000) /* 10? MHz - check */ |
| 2959 | 3748 | MDRV_CPU_PROGRAM_MAP(manybloc_readmem,manybloc_writemem) |
| 2960 | 3749 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 2961 | | MDRV_CPU_PERIODIC_INT(irq1_line_hold,60)/* is this is too high it breaks the game on this one, too low sprites flicker */ |
| 3750 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,56)/* this needs to equal the framerate on this, rather than being double it .. */ |
| 2962 | 3751 | |
| 2963 | 3752 | MDRV_CPU_ADD(Z80, 3000000) |
| 2964 | 3753 | /* audio CPU */ |
| 2965 | 3754 | MDRV_CPU_PROGRAM_MAP(tharrier_sound_readmem,tharrier_sound_writemem) |
| 2966 | 3755 | MDRV_CPU_IO_MAP(tharrier_sound_readport,tharrier_sound_writeport) |
| 2967 | 3756 | |
| 2968 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 3757 | MDRV_SCREEN_REFRESH_RATE(56) |
| 2969 | 3758 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 2970 | 3759 | |
| 2971 | 3760 | /* video hardware */ |
| r1463 | r1464 | |
| 2977 | 3766 | MDRV_PALETTE_LENGTH(512) |
| 2978 | 3767 | |
| 2979 | 3768 | MDRV_VIDEO_START(macross) |
| 2980 | | // MDRV_VIDEO_EOF(nmk) |
| 3769 | MDRV_VIDEO_EOF(nmk) |
| 2981 | 3770 | MDRV_VIDEO_UPDATE(manybloc) |
| 2982 | 3771 | |
| 2983 | 3772 | /* sound hardware */ |
| r1463 | r1464 | |
| 3003 | 3792 | |
| 3004 | 3793 | /* basic machine hardware */ |
| 3005 | 3794 | MDRV_CPU_ADD(M68000, 10000000) /* 10 MHz ? */ |
| 3006 | | MDRV_CPU_PROGRAM_MAP(mustang_readmem,mustang_writemem) |
| 3795 | MDRV_CPU_PROGRAM_MAP(mustang_map,0) |
| 3007 | 3796 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 3008 | 3797 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3009 | 3798 | |
| 3010 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 3799 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3011 | 3800 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3012 | 3801 | MDRV_MACHINE_RESET(NMK004) |
| 3013 | 3802 | |
| r1463 | r1464 | |
| 3047 | 3836 | |
| 3048 | 3837 | /* basic machine hardware */ |
| 3049 | 3838 | MDRV_CPU_ADD(M68000, 10000000) /* 10 MHz ? */ |
| 3050 | | MDRV_CPU_PROGRAM_MAP(mustang_readmem,mustangb_writemem) |
| 3839 | MDRV_CPU_PROGRAM_MAP(mustangb_map,0) |
| 3051 | 3840 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 3052 | 3841 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3053 | 3842 | |
| 3054 | 3843 | SEIBU_SOUND_SYSTEM_CPU(14318180/4) |
| 3055 | 3844 | |
| 3056 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 3845 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3057 | 3846 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3058 | 3847 | MDRV_MACHINE_RESET(mustang_sound) |
| 3059 | 3848 | |
| r1463 | r1464 | |
| 3132 | 3921 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 3133 | 3922 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3134 | 3923 | |
| 3135 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 3924 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3136 | 3925 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3137 | 3926 | MDRV_MACHINE_RESET(NMK004) |
| 3138 | 3927 | |
| r1463 | r1464 | |
| 3175 | 3964 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 3176 | 3965 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3177 | 3966 | |
| 3178 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 3967 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3179 | 3968 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3180 | 3969 | MDRV_MACHINE_RESET(NMK004) |
| 3181 | 3970 | |
| r1463 | r1464 | |
| 3221 | 4010 | MDRV_CPU_ADD(PIC16C57, (12000000/PIC16C5x_CLOCK_DIVIDER)) /* 3MHz */ |
| 3222 | 4011 | MDRV_CPU_FLAGS(CPU_DISABLE) |
| 3223 | 4012 | |
| 3224 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 4013 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3225 | 4014 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3226 | 4015 | //MDRV_MACHINE_RESET(NMK004) // no NMK004 |
| 3227 | 4016 | |
| r1463 | r1464 | |
| 3248 | 4037 | static MACHINE_DRIVER_START( acrobatm ) |
| 3249 | 4038 | |
| 3250 | 4039 | /* basic machine hardware */ |
| 3251 | | MDRV_CPU_ADD(M68000, 10000000) /* 10 MHz ? 12 MHz? */ |
| 4040 | MDRV_CPU_ADD(M68000, 10000000) /* 10 MHz (verified on pcb) */ |
| 3252 | 4041 | MDRV_CPU_PROGRAM_MAP(acrobatm_readmem,acrobatm_writemem) |
| 3253 | 4042 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 3254 | 4043 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3255 | 4044 | |
| 3256 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 4045 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3257 | 4046 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3258 | 4047 | MDRV_MACHINE_RESET(NMK004) |
| 3259 | 4048 | |
| r1463 | r1464 | |
| 3272 | 4061 | /* sound hardware */ |
| 3273 | 4062 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 3274 | 4063 | |
| 3275 | | MDRV_SOUND_ADD(YM2203, 1500000) |
| 4064 | MDRV_SOUND_ADD(YM2203, 1500000) /* (verified on pcb) */ |
| 3276 | 4065 | MDRV_SOUND_CONFIG(ym2203_nmk004_interface) |
| 3277 | 4066 | MDRV_SOUND_ROUTE(0, "mono", 0.50) |
| 3278 | 4067 | MDRV_SOUND_ROUTE(1, "mono", 0.50) |
| 3279 | 4068 | MDRV_SOUND_ROUTE(2, "mono", 0.50) |
| 3280 | 4069 | MDRV_SOUND_ROUTE(3, "mono", 2.00) |
| 3281 | 4070 | |
| 3282 | | MDRV_SOUND_ADD(OKIM6295, 16000000/4) |
| 3283 | | MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7low) |
| 4071 | MDRV_SOUND_ADD(OKIM6295, 16000000/4) /* (verified on pcb) */ |
| 4072 | MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7low) /* on the pcb pin7 is not connected to gnd or +5v! */ |
| 3284 | 4073 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) |
| 3285 | 4074 | |
| 3286 | | MDRV_SOUND_ADD(OKIM6295, 16000000/4) |
| 3287 | | MDRV_SOUND_CONFIG(okim6295_interface_region_2_pin7low) |
| 4075 | MDRV_SOUND_ADD(OKIM6295, 16000000/4) /* (verified on pcb) */ |
| 4076 | MDRV_SOUND_CONFIG(okim6295_interface_region_2_pin7low) /* on the pcb pin7 is not connected to gnd or +5v! */ |
| 3288 | 4077 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) |
| 3289 | 4078 | MACHINE_DRIVER_END |
| 3290 | 4079 | |
| r1463 | r1464 | |
| 3295 | 4084 | /* basic machine hardware */ |
| 3296 | 4085 | MDRV_CPU_ADD(M68000, 10000000) |
| 3297 | 4086 | MDRV_CPU_PROGRAM_MAP(tdragon_readmem,tdragonb_writemem) |
| 3298 | | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 4087 | //MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 4088 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 3299 | 4089 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ?? drives music */ |
| 3300 | 4090 | |
| 3301 | 4091 | SEIBU_SOUND_SYSTEM_CPU(14318180/4) |
| 3302 | 4092 | |
| 3303 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 4093 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3304 | 4094 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3305 | 4095 | MDRV_MACHINE_RESET(mustang_sound) |
| 3306 | 4096 | |
| r1463 | r1464 | |
| 3325 | 4115 | /* basic machine hardware */ |
| 3326 | 4116 | MDRV_CPU_ADD(M68000, 10000000) |
| 3327 | 4117 | MDRV_CPU_PROGRAM_MAP(tdragon_readmem,tdragon_writemem) |
| 3328 | | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 4118 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 4119 | //MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 3329 | 4120 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ?? drives music */ |
| 3330 | 4121 | |
| 3331 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 4122 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3332 | 4123 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3333 | 4124 | MDRV_MACHINE_RESET(NMK004) |
| 3334 | 4125 | |
| r1463 | r1464 | |
| 3374 | 4165 | MDRV_CPU_ADD(Z80, 8000000/2) /* 4 Mhz */ |
| 3375 | 4166 | MDRV_CPU_PROGRAM_MAP(ssmissin_sound_readmem,ssmissin_sound_writemem) |
| 3376 | 4167 | |
| 3377 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 4168 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3378 | 4169 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3379 | 4170 | MDRV_MACHINE_RESET(nmk16) |
| 3380 | 4171 | |
| r1463 | r1464 | |
| 3407 | 4198 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 3408 | 4199 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3409 | 4200 | |
| 3410 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 4201 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3411 | 4202 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3412 | 4203 | MDRV_MACHINE_RESET(NMK004) |
| 3413 | 4204 | |
| r1463 | r1464 | |
| 3447 | 4238 | |
| 3448 | 4239 | /* basic machine hardware */ |
| 3449 | 4240 | MDRV_CPU_ADD(M68000, 10000000) /* 10 MHz ? */ |
| 3450 | | MDRV_CPU_PROGRAM_MAP(hachamf_readmem,hachamf_writemem) |
| 4241 | MDRV_CPU_PROGRAM_MAP(hachamf_map,0) |
| 3451 | 4242 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 3452 | 4243 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3453 | 4244 | |
| 3454 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 4245 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3455 | 4246 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3456 | 4247 | MDRV_MACHINE_RESET(NMK004) |
| 3457 | 4248 | |
| r1463 | r1464 | |
| 3495 | 4286 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 3496 | 4287 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 3497 | 4288 | |
| 3498 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 4289 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3499 | 4290 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3500 | 4291 | MDRV_MACHINE_RESET(NMK004) |
| 3501 | 4292 | |
| r1463 | r1464 | |
| 3539 | 4330 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 3540 | 4331 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112) |
| 3541 | 4332 | |
| 3542 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 4333 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3543 | 4334 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3544 | 4335 | MDRV_MACHINE_RESET(NMK004) |
| 3545 | 4336 | |
| r1463 | r1464 | |
| 3588 | 4379 | MDRV_CPU_PROGRAM_MAP(macross2_sound_readmem,macross2_sound_writemem) |
| 3589 | 4380 | MDRV_CPU_IO_MAP(macross2_sound_readport,macross2_sound_writeport) |
| 3590 | 4381 | |
| 3591 | | MDRV_SCREEN_REFRESH_RATE(57) |
| 4382 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3592 | 4383 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3593 | 4384 | MDRV_MACHINE_RESET(nmk16) |
| 3594 | 4385 | |
| r1463 | r1464 | |
| 3633 | 4424 | MDRV_CPU_PROGRAM_MAP(macross2_sound_readmem,macross2_sound_writemem) |
| 3634 | 4425 | MDRV_CPU_IO_MAP(macross2_sound_readport,macross2_sound_writeport) |
| 3635 | 4426 | |
| 3636 | | MDRV_SCREEN_REFRESH_RATE(57) |
| 4427 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3637 | 4428 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3638 | 4429 | MDRV_MACHINE_RESET(nmk16) |
| 3639 | 4430 | |
| r1463 | r1464 | |
| 3716 | 4507 | MDRV_CPU_VBLANK_INT(irq4_line_hold,1) |
| 3717 | 4508 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ?? drives music */ |
| 3718 | 4509 | |
| 3719 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 4510 | MDRV_SCREEN_REFRESH_RATE(56) |
| 3720 | 4511 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 3721 | 4512 | MDRV_MACHINE_RESET(nmk16) |
| 3722 | 4513 | |
| r1463 | r1464 | |
| 3744 | 4535 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.20) |
| 3745 | 4536 | MACHINE_DRIVER_END |
| 3746 | 4537 | |
| 4538 | |
| 4539 | static UINT8 decode_byte(UINT8 src, const UINT8 *bitp) |
| 4540 | { |
| 4541 | UINT8 ret, i; |
| 4542 | |
| 4543 | ret = 0; |
| 4544 | for (i=0; i<8; i++) |
| 4545 | ret |= (((src >> bitp[i]) & 1) << (7-i)); |
| 4546 | |
| 4547 | return ret; |
| 4548 | } |
| 4549 | |
| 4550 | static UINT32 bjtwin_address_map_bg0(UINT32 addr) |
| 4551 | { |
| 4552 | return ((addr&0x00004)>> 2) | ((addr&0x00800)>> 10) | ((addr&0x40000)>>16); |
| 4553 | } |
| 4554 | |
| 4555 | |
| 4556 | static UINT16 decode_word(UINT16 src, const UINT8 *bitp) |
| 4557 | { |
| 4558 | UINT16 ret, i; |
| 4559 | |
| 4560 | ret=0; |
| 4561 | for (i=0; i<16; i++) |
| 4562 | ret |= (((src >> bitp[i]) & 1) << (15-i)); |
| 4563 | |
| 4564 | return ret; |
| 4565 | } |
| 4566 | |
| 4567 | |
| 4568 | static UINT32 bjtwin_address_map_sprites(UINT32 addr) |
| 4569 | { |
| 4570 | return ((addr&0x00010)>> 4) | ((addr&0x20000)>>16) | ((addr&0x100000)>>18); |
| 4571 | } |
| 4572 | |
| 4573 | |
| 4574 | static void decode_gfx(void) |
| 4575 | { |
| 4576 | /* GFX are scrambled. We decode them here. (BIG Thanks to Antiriad for descrambling info) */ |
| 4577 | UINT8 *rom; |
| 4578 | int A; |
| 4579 | |
| 4580 | static const UINT8 decode_data_bg[8][8] = |
| 4581 | { |
| 4582 | {0x3,0x0,0x7,0x2,0x5,0x1,0x4,0x6}, |
| 4583 | {0x1,0x2,0x6,0x5,0x4,0x0,0x3,0x7}, |
| 4584 | {0x7,0x6,0x5,0x4,0x3,0x2,0x1,0x0}, |
| 4585 | {0x7,0x6,0x5,0x0,0x1,0x4,0x3,0x2}, |
| 4586 | {0x2,0x0,0x1,0x4,0x3,0x5,0x7,0x6}, |
| 4587 | {0x5,0x3,0x7,0x0,0x4,0x6,0x2,0x1}, |
| 4588 | {0x2,0x7,0x0,0x6,0x5,0x3,0x1,0x4}, |
| 4589 | {0x3,0x4,0x7,0x6,0x2,0x0,0x5,0x1}, |
| 4590 | }; |
| 4591 | |
| 4592 | static const UINT8 decode_data_sprite[8][16] = |
| 4593 | { |
| 4594 | {0x9,0x3,0x4,0x5,0x7,0x1,0xb,0x8,0x0,0xd,0x2,0xc,0xe,0x6,0xf,0xa}, |
| 4595 | {0x1,0x3,0xc,0x4,0x0,0xf,0xb,0xa,0x8,0x5,0xe,0x6,0xd,0x2,0x7,0x9}, |
| 4596 | {0xf,0xe,0xd,0xc,0xb,0xa,0x9,0x8,0x7,0x6,0x5,0x4,0x3,0x2,0x1,0x0}, |
| 4597 | {0xf,0xe,0xc,0x6,0xa,0xb,0x7,0x8,0x9,0x2,0x3,0x4,0x5,0xd,0x1,0x0}, |
| 4598 | |
| 4599 | {0x1,0x6,0x2,0x5,0xf,0x7,0xb,0x9,0xa,0x3,0xd,0xe,0xc,0x4,0x0,0x8}, /* Haze 20/07/00 */ |
| 4600 | {0x7,0x5,0xd,0xe,0xb,0xa,0x0,0x1,0x9,0x6,0xc,0x2,0x3,0x4,0x8,0xf}, /* Haze 20/07/00 */ |
| 4601 | {0x0,0x5,0x6,0x3,0x9,0xb,0xa,0x7,0x1,0xd,0x2,0xe,0x4,0xc,0x8,0xf}, /* Antiriad, Corrected by Haze 20/07/00 */ |
| 4602 | {0x9,0xc,0x4,0x2,0xf,0x0,0xb,0x8,0xa,0xd,0x3,0x6,0x5,0xe,0x1,0x7}, /* Antiriad, Corrected by Haze 20/07/00 */ |
| 4603 | }; |
| 4604 | |
| 4605 | |
| 4606 | /* background */ |
| 4607 | rom = memory_region(REGION_GFX2); |
| 4608 | for (A = 0;A < memory_region_length(REGION_GFX2);A++) |
| 4609 | { |
| 4610 | rom[A] = decode_byte( rom[A], decode_data_bg[bjtwin_address_map_bg0(A)]); |
| 4611 | } |
| 4612 | |
| 4613 | /* sprites */ |
| 4614 | rom = memory_region(REGION_GFX3); |
| 4615 | for (A = 0;A < memory_region_length(REGION_GFX3);A += 2) |
| 4616 | { |
| 4617 | UINT16 tmp = decode_word( rom[A+1]*256 + rom[A], decode_data_sprite[bjtwin_address_map_sprites(A)]); |
| 4618 | rom[A+1] = tmp >> 8; |
| 4619 | rom[A] = tmp & 0xff; |
| 4620 | } |
| 4621 | } |
| 4622 | |
| 4623 | static void decode_tdragonb(void) |
| 4624 | { |
| 4625 | /* Descrambling Info Again Taken from Raine, Huge Thanks to Antiriad and the Raine Team for |
| 4626 | going Open Source, best of luck in future development. */ |
| 4627 | |
| 4628 | UINT8 *rom; |
| 4629 | int A; |
| 4630 | |
| 4631 | /* The Main 68k Program of the Bootleg is Bitswapped */ |
| 4632 | static const UINT8 decode_data_tdragonb[1][16] = |
| 4633 | { |
| 4634 | {0xe,0xc,0xa,0x8,0x7,0x5,0x3,0x1,0xf,0xd,0xb,0x9,0x6,0x4,0x2,0x0}, |
| 4635 | }; |
| 4636 | |
| 4637 | /* Graphic Roms Could Also Do With Rearranging to make things simpler */ |
| 4638 | static const UINT8 decode_data_tdragonbgfx[1][8] = |
| 4639 | { |
| 4640 | {0x7,0x6,0x5,0x3,0x4,0x2,0x1,0x0}, |
| 4641 | }; |
| 4642 | |
| 4643 | rom = memory_region(REGION_CPU1); |
| 4644 | for (A = 0;A < memory_region_length(REGION_CPU1);A += 2) |
| 4645 | { |
| 4646 | #ifdef LSB_FIRST |
| 4647 | UINT16 tmp = decode_word( rom[A+1]*256 + rom[A], decode_data_tdragonb[0]); |
| 4648 | rom[A+1] = tmp >> 8; |
| 4649 | rom[A] = tmp & 0xff; |
| 4650 | #else |
| 4651 | UINT16 tmp = decode_word( rom[A]*256 + rom[A+1], decode_data_tdragonb[0]); |
| 4652 | rom[A] = tmp >> 8; |
| 4653 | rom[A+1] = tmp & 0xff; |
| 4654 | #endif |
| 4655 | } |
| 4656 | |
| 4657 | rom = memory_region(REGION_GFX2); |
| 4658 | for (A = 0;A < memory_region_length(REGION_GFX2);A++) |
| 4659 | { |
| 4660 | rom[A] = decode_byte( rom[A], decode_data_tdragonbgfx[0]); |
| 4661 | } |
| 4662 | |
| 4663 | rom = memory_region(REGION_GFX3); |
| 4664 | for (A = 0;A < memory_region_length(REGION_GFX3);A++) |
| 4665 | { |
| 4666 | rom[A] = decode_byte( rom[A], decode_data_tdragonbgfx[0]); |
| 4667 | } |
| 4668 | } |
| 4669 | |
| 4670 | static void decode_ssmissin(void) |
| 4671 | { |
| 4672 | /* Like Thunder Dragon Bootleg without the Program Rom Swapping */ |
| 4673 | UINT8 *rom; |
| 4674 | int A; |
| 4675 | |
| 4676 | /* Graphic Roms Could Also Do With Rearranging to make things simpler */ |
| 4677 | static const UINT8 decode_data_tdragonbgfx[1][8] = |
| 4678 | { |
| 4679 | {0x7,0x6,0x5,0x3,0x4,0x2,0x1,0x0}, |
| 4680 | }; |
| 4681 | |
| 4682 | rom = memory_region(REGION_GFX2); |
| 4683 | for (A = 0;A < memory_region_length(REGION_GFX2);A++) |
| 4684 | { |
| 4685 | rom[A] = decode_byte( rom[A], decode_data_tdragonbgfx[0]); |
| 4686 | } |
| 4687 | |
| 4688 | rom = memory_region(REGION_GFX3); |
| 4689 | for (A = 0;A < memory_region_length(REGION_GFX3);A++) |
| 4690 | { |
| 4691 | rom[A] = decode_byte( rom[A], decode_data_tdragonbgfx[0]); |
| 4692 | } |
| 4693 | } |
| 4694 | |
| 4695 | |
| 4696 | static DRIVER_INIT( nmk ) |
| 4697 | { |
| 4698 | decode_gfx(); |
| 4699 | } |
| 4700 | |
| 4701 | static DRIVER_INIT( hachamf ) |
| 4702 | { |
| 4703 | UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1); |
| 4704 | |
| 4705 | //rom[0x0006/2] = 0x7dc2; /* replace reset vector with the "real" one */ |
| 4706 | |
| 4707 | // kludge the sound communication to let commands go through. |
| 4708 | rom[0x048a/2] = 0x4e71; |
| 4709 | rom[0x04aa/2] = 0x4e71; |
| 4710 | } |
| 4711 | |
| 4712 | static DRIVER_INIT( tdragonb ) |
| 4713 | { |
| 4714 | UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1); |
| 4715 | |
| 4716 | decode_tdragonb(); |
| 4717 | |
| 4718 | /* The Following Patch is taken from Raine, Otherwise the game has no Sprites in Attract Mode or After Level 1 |
| 4719 | which is rather odd considering its a bootleg.. */ |
| 4720 | rom[0x00308/2] = 0x4e71; /* Sprite Problem */ |
| 4721 | } |
| 4722 | |
| 4723 | static DRIVER_INIT( tdragon ) |
| 4724 | { |
| 4725 | UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1); |
| 4726 | |
| 4727 | //rom[0x94b0/2] = 0; /* Patch out JMP to shared memory (protection) */ |
| 4728 | //rom[0x94b2/2] = 0x92f4; |
| 4729 | |
| 4730 | // kludge the sound communication to let commands go through. |
| 4731 | rom[0x048a/2] = 0x4e71; |
| 4732 | rom[0x04aa/2] = 0x4e71; |
| 4733 | } |
| 4734 | |
| 4735 | static DRIVER_INIT( ssmissin ) |
| 4736 | { |
| 4737 | decode_ssmissin(); |
| 4738 | } |
| 4739 | |
| 4740 | |
| 4741 | int is_blkheart; |
| 4742 | |
| 4743 | |
| 4744 | static DRIVER_INIT( bjtwin ) |
| 4745 | { |
| 4746 | driver_init_nmk(machine); |
| 4747 | |
| 4748 | /* Patch rom to enable test mode */ |
| 4749 | |
| 4750 | /* 008F54: 33F9 0008 0000 000F FFFC move.w $80000.l, $ffffc.l |
| 4751 | * 008F5E: 3639 0008 0002 move.w $80002.l, D3 |
| 4752 | * 008F64: 3003 move.w D3, D0 \ |
| 4753 | * 008F66: 3203 move.w D3, D1 | This code remaps |
| 4754 | * 008F68: 0041 BFBF ori.w #-$4041, D1 | buttons 2 and 3 to |
| 4755 | * 008F6C: E441 asr.w #2, D1 | button 1, so |
| 4756 | * 008F6E: 0040 DFDF ori.w #-$2021, D0 | you can't enter |
| 4757 | * 008F72: E240 asr.w #1, D0 | service mode |
| 4758 | * 008F74: C640 and.w D0, D3 | |
| 4759 | * 008F76: C641 and.w D1, D3 / |
| 4760 | * 008F78: 33C3 000F FFFE move.w D3, $ffffe.l |
| 4761 | * 008F7E: 207C 000F 9000 movea.l #$f9000, A0 |
| 4762 | */ |
| 4763 | |
| 4764 | // data 16_t *rom = (UINT16 *)memory_region(REGION_CPU1); |
| 4765 | // rom[0x09172/2] = 0x6006; /* patch checksum error */ |
| 4766 | // rom[0x08f74/2] = 0x4e71); |
| 4767 | } |
| 4768 | |
| 4769 | /* NO NMK004, it has a PIC instead */ |
| 4770 | static READ16_HANDLER( vandykeb_r ) { return 0x0000; }; |
| 4771 | static DRIVER_INIT (vandykeb) |
| 4772 | { |
| 4773 | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x08000e, 0x08000f, 0, 0, vandykeb_r ); |
| 4774 | memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0x08001e, 0x08001f, 0, 0, MWA16_NOP ); |
| 4775 | } |
| 4776 | |
| 4777 | |
| 4778 | /*************************************************************************** |
| 4779 | |
| 4780 | |
| 4781 | Memory Maps - Main CPU |
| 4782 | |
| 4783 | |
| 4784 | ***************************************************************************/ |
| 4785 | |
| 4786 | static READ16_HANDLER( afega_unknown_r ) |
| 4787 | { |
| 4788 | /* This fixes the text in Service Mode. */ |
| 4789 | return 0x0100; |
| 4790 | } |
| 4791 | |
| 4792 | |
| 4793 | |
| 4794 | static WRITE16_HANDLER( afega_scroll0_w ) |
| 4795 | { |
| 4796 | COMBINE_DATA(&afega_scroll_0[offset]); |
| 4797 | } |
| 4798 | |
| 4799 | static WRITE16_HANDLER( afega_scroll1_w ) |
| 4800 | { |
| 4801 | COMBINE_DATA(&afega_scroll_1[offset]); |
| 4802 | } |
| 4803 | |
| 4804 | /* |
| 4805 | Lines starting with an empty comment in the following MemoryReadAddress |
| 4806 | arrays are there for debug (e.g. the game does not read from those ranges |
| 4807 | AFAIK) |
| 4808 | */ |
| 4809 | |
| 4810 | |
| 4811 | static ADDRESS_MAP_START( afega, ADDRESS_SPACE_PROGRAM, 16 ) |
| 4812 | ADDRESS_MAP_FLAGS( AMEF_ABITS(20) ) |
| 4813 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 4814 | AM_RANGE(0x080000, 0x080001) AM_READ(input_port_0_word_r) // Buttons |
| 4815 | AM_RANGE(0x080002, 0x080003) AM_READ(input_port_1_word_r) // P1 + P2 |
| 4816 | AM_RANGE(0x080004, 0x080005) AM_READ(input_port_2_word_r) // 2 x DSW |
| 4817 | AM_RANGE(0x080012, 0x080013) AM_READ(afega_unknown_r) |
| 4818 | AM_RANGE(0x080000, 0x08001d) AM_WRITE(MWA16_RAM) // |
| 4819 | AM_RANGE(0x08001e, 0x08001f) AM_WRITE(afega_soundlatch_w) // To Sound CPU |
| 4820 | /**/AM_RANGE(0x084000, 0x084003) AM_RAM AM_WRITE(afega_scroll0_w) // Scroll on redhawkb (mirror or changed?..) |
| 4821 | /**/AM_RANGE(0x084004, 0x084007) AM_RAM AM_WRITE(afega_scroll1_w) // Scroll on redhawkb (mirror or changed?..) |
| 4822 | AM_RANGE(0x080020, 0x087fff) AM_WRITE(MWA16_RAM) // |
| 4823 | /**/AM_RANGE(0x088000, 0x0885ff) AM_READWRITE(MRA16_RAM, paletteram16_RRRRGGGGBBBBRGBx_word_w) AM_BASE(&paletteram16) // Palette |
| 4824 | AM_RANGE(0x088600, 0x08bfff) AM_WRITE(MWA16_RAM) // |
| 4825 | /**/AM_RANGE(0x08c000, 0x08c003) AM_RAM AM_WRITE(afega_scroll0_w) AM_BASE(&afega_scroll_0) // Scroll |
| 4826 | /**/AM_RANGE(0x08c004, 0x08c007) AM_RAM AM_WRITE(afega_scroll1_w) AM_BASE(&afega_scroll_1) // |
| 4827 | AM_RANGE(0x08c008, 0x08ffff) AM_WRITE(MWA16_RAM) // |
| 4828 | /**/AM_RANGE(0x090000, 0x091fff) AM_READWRITE(MRA16_RAM, afega_vram_0_w) AM_BASE(&afega_vram_0) // Layer 0 |
| 4829 | /**/AM_RANGE(0x092000, 0x093fff) AM_RAM // ? |
| 4830 | /**/AM_RANGE(0x09c000, 0x09c7ff) AM_READWRITE(MRA16_RAM, afega_vram_1_w) AM_BASE(&afega_vram_1) // Layer 1 |
| 4831 | |
| 4832 | AM_RANGE(0x0c0000, 0x0cffff) AM_RAM AM_SHARE(1) AM_WRITE(nmk16_mainram_strange_w) AM_BASE(&nmk16_mainram) |
| 4833 | AM_RANGE(0x0f0000, 0x0fffff) AM_RAM AM_SHARE(1) AM_WRITE(nmk16_mainram_strange_w) |
| 4834 | ADDRESS_MAP_END |
| 4835 | |
| 4836 | #if 0 |
| 4837 | // The high byte of the word written is the address to write to (byte offset), the low byte is data |
| 4838 | static WRITE16_HANDLER( twinactn_scroll0_w ) |
| 4839 | { |
| 4840 | int byte = ((data >> 8) & 3) ^ 2; |
| 4841 | int bit = ((byte & 1) ? 0 : 8); |
| 4842 | afega_scroll_0[byte / 2] = (afega_scroll_0[byte / 2] & (0xff << (8-bit))) | ((data & 0xff) << bit); |
| 4843 | } |
| 4844 | static WRITE16_HANDLER( twinactn_scroll1_w ) |
| 4845 | { |
| 4846 | int byte = ((data >> 8) & 3) ^ 2; |
| 4847 | int bit = ((byte & 1) ? 0 : 8); |
| 4848 | afega_scroll_1[byte / 2] = (afega_scroll_1[byte / 2] & (0xff << (8-bit))) | ((data & 0xff) << bit); |
| 4849 | } |
| 4850 | |
| 4851 | static WRITE16_HANDLER( twinactn_flipscreen_w ) |
| 4852 | { |
| 4853 | if (ACCESSING_LSB) |
| 4854 | flip_screen_set(data & 1); |
| 4855 | |
| 4856 | if (data & (~1)) |
| 4857 | logerror("%06x: unknown flip screen bit written %04x\n", activecpu_get_pc(), data); |
| 4858 | } |
| 4859 | #endif |
| 4860 | |
| 4861 | /*************************************************************************** |
| 4862 | |
| 4863 | |
| 4864 | Memory Maps - Sound CPU |
| 4865 | |
| 4866 | |
| 4867 | ***************************************************************************/ |
| 4868 | static WRITE8_HANDLER( spec2k_oki1_banking_w ) |
| 4869 | { |
| 4870 | if(data == 0xfe) |
| 4871 | OKIM6295_set_bank_base(1, 0); |
| 4872 | else if(data == 0xff) |
| 4873 | OKIM6295_set_bank_base(1, 0x40000); |
| 4874 | } |
| 4875 | |
| 4876 | static ADDRESS_MAP_START( afega_sound_cpu, ADDRESS_SPACE_PROGRAM, 8 ) |
| 4877 | AM_RANGE(0x0003, 0x0003) AM_WRITE(MWA8_NOP) // bug in sound prg? |
| 4878 | AM_RANGE(0x0004, 0x0004) AM_WRITE(MWA8_NOP) // bug in sound prg? |
| 4879 | AM_RANGE(0x0000, 0xefff) AM_ROM |
| 4880 | AM_RANGE(0xf000, 0xf7ff) AM_RAM // RAM |
| 4881 | AM_RANGE(0xf800, 0xf800) AM_READ(soundlatch_r) // From Main CPU |
| 4882 | AM_RANGE(0xf808, 0xf808) AM_WRITE(YM2151_register_port_0_w) // YM2151 |
| 4883 | AM_RANGE(0xf809, 0xf809) AM_READWRITE(YM2151_status_port_0_r, YM2151_data_port_0_w) // YM2151 |
| 4884 | AM_RANGE(0xf80a, 0xf80a) AM_READWRITE(OKIM6295_status_0_r, OKIM6295_data_0_w) // M6295 |
| 4885 | ADDRESS_MAP_END |
| 4886 | |
| 4887 | static ADDRESS_MAP_START( firehawk_sound_cpu, ADDRESS_SPACE_PROGRAM, 8 ) |
| 4888 | AM_RANGE(0x0000, 0xefff) AM_ROM |
| 4889 | AM_RANGE(0xf000, 0xf7ff) AM_RAM |
| 4890 | AM_RANGE(0xfff0, 0xfff0) AM_READ(soundlatch_r) |
| 4891 | AM_RANGE(0xfff2, 0xfff2) AM_WRITE(spec2k_oki1_banking_w ) |
| 4892 | AM_RANGE(0xfff8, 0xfff8) AM_READWRITE(OKIM6295_status_1_r, OKIM6295_data_1_w) |
| 4893 | AM_RANGE(0xfffa, 0xfffa) AM_READWRITE(OKIM6295_status_0_r, OKIM6295_data_0_w) |
| 4894 | AM_RANGE(0xf800, 0xffff) AM_RAM // not used, only tested |
| 4895 | ADDRESS_MAP_END |
| 4896 | |
| 4897 | |
| 4898 | static WRITE8_HANDLER( twinactn_oki_bank_w ) |
| 4899 | { |
| 4900 | OKIM6295_set_bank_base(0, (data & 3) * 0x40000); |
| 4901 | |
| 4902 | if (data & (~3)) |
| 4903 | logerror("%04x: invalid oki bank %02x\n", activecpu_get_pc(), data); |
| 4904 | |
| 4905 | // logerror("%04x: oki bank %02x\n", activecpu_get_pc(), data); |
| 4906 | } |
| 4907 | |
| 4908 | static ADDRESS_MAP_START( twinactn_sound_cpu, ADDRESS_SPACE_PROGRAM, 8 ) |
| 4909 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 4910 | AM_RANGE(0x8000, 0x87ff) AM_RAM |
| 4911 | AM_RANGE(0x9000, 0x9000) AM_WRITE(twinactn_oki_bank_w) |
| 4912 | AM_RANGE(0x9800, 0x9800) AM_READWRITE(OKIM6295_status_0_r, OKIM6295_data_0_w) |
| 4913 | AM_RANGE(0xa000, 0xa000) AM_READ(soundlatch_r) // From Main CPU |
| 4914 | ADDRESS_MAP_END |
| 4915 | |
| 4916 | /*************************************************************************** |
| 4917 | |
| 4918 | |
| 4919 | Graphics Layouts |
| 4920 | |
| 4921 | |
| 4922 | ***************************************************************************/ |
| 4923 | |
| 4924 | static const gfx_layout layout_8x8x4 = |
| 4925 | { |
| 4926 | 8,8, |
| 4927 | RGN_FRAC(1,1), |
| 4928 | 4, |
| 4929 | { STEP4(0,1) }, |
| 4930 | { STEP8(0,4) }, |
| 4931 | { STEP8(0,8*4) }, |
| 4932 | 8*8*4 |
| 4933 | }; |
| 4934 | |
| 4935 | static const gfx_layout layout_16x16x4 = |
| 4936 | { |
| 4937 | 16,16, |
| 4938 | RGN_FRAC(1,1), |
| 4939 | 4, |
| 4940 | { STEP4(0,1) }, |
| 4941 | { STEP8(0,4), STEP8(8*8*4*2,4) }, |
| 4942 | { STEP8(0,8*4), STEP8(8*8*4*1,8*4) }, |
| 4943 | 16*16*4 |
| 4944 | }; |
| 4945 | |
| 4946 | static const gfx_layout layout_16x16x8 = |
| 4947 | { |
| 4948 | 16,16, |
| 4949 | RGN_FRAC(1,2), |
| 4950 | 8, |
| 4951 | { STEP4(RGN_FRAC(0,2),1), STEP4(RGN_FRAC(1,2),1) }, |
| 4952 | { STEP8(0,4), STEP8(8*8*4*2,4) }, |
| 4953 | { STEP8(0,8*4), STEP8(8*8*4*1,8*4) }, |
| 4954 | 16*16*4 |
| 4955 | }; |
| 4956 | |
| 4957 | |
| 4958 | static const gfx_layout layout_16x16x4_swapped = |
| 4959 | { |
| 4960 | 16,16, |
| 4961 | RGN_FRAC(1,1), |
| 4962 | 4, |
| 4963 | { STEP4(0,1) }, |
| 4964 | { 4,0,12,8,20,16,28,24, 512+4,512+0,512+12,512+8,512+20,512+16,512+28,512+24}, |
| 4965 | { STEP8(0,8*4), STEP8(8*8*4*1,8*4) }, |
| 4966 | 16*16*4 |
| 4967 | }; |
| 4968 | |
| 4969 | static GFXDECODE_START( grdnstrm ) |
| 4970 | GFXDECODE_ENTRY( REGION_GFX2, 0, layout_16x16x8, 256*3, 16 ) // [1] Layer 0 |
| 4971 | GFXDECODE_ENTRY( REGION_GFX3, 0, layout_8x8x4, 256*2, 16 ) // [2] Layer 1 |
| 4972 | GFXDECODE_ENTRY( REGION_GFX1, 0, layout_16x16x4, 256*1, 16 ) // [0] Sprites |
| 4973 | GFXDECODE_END |
| 4974 | |
| 4975 | static GFXDECODE_START( stagger1 ) |
| 4976 | GFXDECODE_ENTRY( REGION_GFX2, 0, layout_16x16x4, 256*0, 16 ) // [1] Layer 0 |
| 4977 | GFXDECODE_ENTRY( REGION_GFX3, 0, layout_8x8x4, 256*2, 16 ) // [2] Layer 1 |
| 4978 | GFXDECODE_ENTRY( REGION_GFX1, 0, layout_16x16x4, 256*1, 16 ) // [0] Sprites |
| 4979 | GFXDECODE_END |
| 4980 | |
| 4981 | static GFXDECODE_START( redhawkb ) |
| 4982 | GFXDECODE_ENTRY( REGION_GFX2, 0, layout_16x16x4_swapped, 256*0, 16 ) // [1] Layer 0 |
| 4983 | GFXDECODE_ENTRY( REGION_GFX3, 0, layout_8x8x4, 256*2, 16 ) // [2] Layer 1 |
| 4984 | GFXDECODE_ENTRY( REGION_GFX1, 0, layout_16x16x4_swapped, 256*1, 16 ) // [0] Sprites |
| 4985 | GFXDECODE_END |
| 4986 | |
| 4987 | |
| 4988 | /*************************************************************************** |
| 4989 | |
| 4990 | |
| 4991 | Machine Drivers |
| 4992 | |
| 4993 | |
| 4994 | ***************************************************************************/ |
| 4995 | |
| 4996 | static void irq_handler(int irq) |
| 4997 | { |
| 4998 | cpunum_set_input_line(1,0,irq ? ASSERT_LINE : CLEAR_LINE); |
| 4999 | } |
| 5000 | |
| 5001 | static const struct YM2151interface afega_ym2151_intf = |
| 5002 | { |
| 5003 | irq_handler |
| 5004 | }; |
| 5005 | |
| 5006 | |
| 5007 | |
| 5008 | static MACHINE_DRIVER_START( stagger1 ) |
| 5009 | |
| 5010 | /* basic machine hardware */ |
| 5011 | MDRV_CPU_ADD(M68000,12000000) |
| 5012 | MDRV_CPU_PROGRAM_MAP(afega,0) |
| 5013 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 5014 | |
| 5015 | MDRV_CPU_ADD(Z80, 4000000) |
| 5016 | /* audio CPU */ /* ? */ |
| 5017 | MDRV_CPU_PROGRAM_MAP(afega_sound_cpu,0) |
| 5018 | |
| 5019 | /* video hardware */ |
| 5020 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 5021 | MDRV_SCREEN_REFRESH_RATE(56) |
| 5022 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 5023 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 5024 | MDRV_SCREEN_SIZE(256, 256) |
| 5025 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 5026 | |
| 5027 | MDRV_GFXDECODE(stagger1) |
| 5028 | MDRV_PALETTE_LENGTH(768) |
| 5029 | |
| 5030 | MDRV_VIDEO_START(afega) |
| 5031 | MDRV_VIDEO_UPDATE(afega) |
| 5032 | MDRV_VIDEO_EOF(nmk) |
| 5033 | |
| 5034 | /* sound hardware */ |
| 5035 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") |
| 5036 | |
| 5037 | MDRV_SOUND_ADD(YM2151, 4000000) |
| 5038 | MDRV_SOUND_CONFIG(afega_ym2151_intf) |
| 5039 | MDRV_SOUND_ROUTE(0, "left", 0.30) |
| 5040 | MDRV_SOUND_ROUTE(1, "right", 0.30) |
| 5041 | |
| 5042 | MDRV_SOUND_ADD(OKIM6295, 1000000) |
| 5043 | MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7high) |
| 5044 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.70) |
| 5045 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.70) |
| 5046 | MACHINE_DRIVER_END |
| 5047 | |
| 5048 | static MACHINE_DRIVER_START( redhawkb ) |
| 5049 | /* basic machine hardware */ |
| 5050 | MDRV_IMPORT_FROM(stagger1) |
| 5051 | /* video hardware */ |
| 5052 | MDRV_GFXDECODE(redhawkb) |
| 5053 | MDRV_VIDEO_UPDATE(redhawkb) |
| 5054 | MACHINE_DRIVER_END |
| 5055 | |
| 5056 | static MACHINE_DRIVER_START( grdnstrm ) |
| 5057 | |
| 5058 | /* basic machine hardware */ |
| 5059 | MDRV_IMPORT_FROM(stagger1) |
| 5060 | |
| 5061 | /* video hardware */ |
| 5062 | MDRV_GFXDECODE(grdnstrm) |
| 5063 | MDRV_PALETTE_LENGTH(768) |
| 5064 | MDRV_COLORTABLE_LENGTH(768 + 16*256) |
| 5065 | |
| 5066 | MDRV_PALETTE_INIT(grdnstrm) |
| 5067 | MACHINE_DRIVER_END |
| 5068 | |
| 5069 | static MACHINE_DRIVER_START( popspops ) |
| 5070 | |
| 5071 | /* basic machine hardware */ |
| 5072 | MDRV_IMPORT_FROM(stagger1) |
| 5073 | |
| 5074 | /* video hardware */ |
| 5075 | MDRV_GFXDECODE(grdnstrm) |
| 5076 | MDRV_PALETTE_LENGTH(768) |
| 5077 | MDRV_COLORTABLE_LENGTH(768 + 16*256) |
| 5078 | |
| 5079 | MDRV_PALETTE_INIT(grdnstrm) |
| 5080 | |
| 5081 | MDRV_VIDEO_UPDATE(bubl2000) |
| 5082 | MACHINE_DRIVER_END |
| 5083 | |
| 5084 | |
| 5085 | static MACHINE_DRIVER_START( bubl2000 ) |
| 5086 | |
| 5087 | /* basic machine hardware */ |
| 5088 | MDRV_IMPORT_FROM(grdnstrm) |
| 5089 | |
| 5090 | /* video hardware */ |
| 5091 | MDRV_VIDEO_UPDATE(bubl2000) |
| 5092 | MACHINE_DRIVER_END |
| 5093 | |
| 5094 | static MACHINE_DRIVER_START( firehawk ) |
| 5095 | |
| 5096 | /* basic machine hardware */ |
| 5097 | MDRV_CPU_ADD(M68000,12000000) |
| 5098 | MDRV_CPU_PROGRAM_MAP(afega,0) |
| 5099 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 5100 | |
| 5101 | MDRV_CPU_ADD(Z80,4000000) |
| 5102 | /* audio CPU */ |
| 5103 | MDRV_CPU_PROGRAM_MAP(firehawk_sound_cpu,0) |
| 5104 | |
| 5105 | /* video hardware */ |
| 5106 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 5107 | MDRV_SCREEN_REFRESH_RATE(56) |
| 5108 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 5109 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 5110 | MDRV_SCREEN_SIZE(256, 256) |
| 5111 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 5112 | |
| 5113 | MDRV_GFXDECODE(grdnstrm) |
| 5114 | MDRV_PALETTE_LENGTH(768) |
| 5115 | MDRV_COLORTABLE_LENGTH(768 + 16*256) |
| 5116 | |
| 5117 | MDRV_PALETTE_INIT(grdnstrm) |
| 5118 | MDRV_VIDEO_START(firehawk) |
| 5119 | MDRV_VIDEO_UPDATE(firehawk) |
| 5120 | MDRV_VIDEO_EOF(nmk) |
| 5121 | |
| 5122 | /* sound hardware */ |
| 5123 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 5124 | |
| 5125 | MDRV_SOUND_ADD(OKIM6295, 1000000) |
| 5126 | MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7high) |
| 5127 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 5128 | |
| 5129 | MDRV_SOUND_ADD(OKIM6295, 1000000) |
| 5130 | MDRV_SOUND_CONFIG(okim6295_interface_region_2_pin7high) |
| 5131 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 5132 | MACHINE_DRIVER_END |
| 5133 | |
| 5134 | |
| 5135 | |
| 5136 | static MACHINE_DRIVER_START( twinactn ) |
| 5137 | |
| 5138 | /* basic machine hardware */ |
| 5139 | MDRV_CPU_ADD(M68000,12000000) |
| 5140 | MDRV_CPU_PROGRAM_MAP(twinactn_map,0) |
| 5141 | MDRV_CPU_VBLANK_INT(nmk_interrupt,2) |
| 5142 | MDRV_CPU_PERIODIC_INT(irq1_line_hold,112)/* ???????? */ |
| 5143 | |
| 5144 | MDRV_CPU_ADD(Z80, 4000000) |
| 5145 | MDRV_CPU_PROGRAM_MAP(twinactn_sound_cpu,0) |
| 5146 | |
| 5147 | MDRV_SCREEN_REFRESH_RATE(56) |
| 5148 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 5149 | |
| 5150 | /* video hardware */ |
| 5151 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 5152 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 5153 | MDRV_SCREEN_SIZE(256, 256) |
| 5154 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 5155 | MDRV_GFXDECODE(macross) |
| 5156 | MDRV_PALETTE_LENGTH(1024) |
| 5157 | |
| 5158 | MDRV_VIDEO_START(macross) |
| 5159 | MDRV_VIDEO_EOF(nmk) |
| 5160 | MDRV_VIDEO_UPDATE(macross) |
| 5161 | |
| 5162 | |
| 5163 | /* sound hardware */ |
| 5164 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 5165 | |
| 5166 | MDRV_SOUND_ADD(OKIM6295, 1000000) |
| 5167 | MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7high) |
| 5168 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 5169 | MACHINE_DRIVER_END |
| 5170 | |
| 5171 | |
| 5172 | /*************************************************************************** |
| 5173 | |
| 5174 | |
| 5175 | ROMs Loading |
| 5176 | |
| 5177 | |
| 5178 | ***************************************************************************/ |
| 5179 | |
| 5180 | /* Address lines scrambling */ |
| 5181 | |
| 5182 | static void decryptcode( int a23, int a22, int a21, int a20, int a19, int a18, int a17, int a16, int a15, int a14, int a13, int a12, |
| 5183 | int a11, int a10, int a9, int a8, int a7, int a6, int a5, int a4, int a3, int a2, int a1, int a0 ) |
| 5184 | { |
| 5185 | int i; |
| 5186 | UINT8 *RAM = memory_region( REGION_CPU1 ); |
| 5187 | size_t size = memory_region_length( REGION_CPU1 ); |
| 5188 | UINT8 *buffer = malloc_or_die( size ); |
| 5189 | |
| 5190 | memcpy( buffer, RAM, size ); |
| 5191 | for( i = 0; i < size; i++ ) |
| 5192 | { |
| 5193 | RAM[ i ] = buffer[ BITSWAP24( i, a23, a22, a21, a20, a19, a18, a17, a16, a15, a14, a13, a12, |
| 5194 | a11, a10, a9, a8, a7, a6, a5, a4, a3, a2, a1, a0 ) ]; |
| 5195 | } |
| 5196 | free( buffer ); |
| 5197 | } |
| 5198 | |
| 5199 | |
| 5200 | |
| 3747 | 5201 | ROM_START( vandyke ) |
| 3748 | 5202 | ROM_REGION( 0x40000, REGION_CPU1, 0 ) /* 68000 code */ |
| 3749 | 5203 | ROM_LOAD16_BYTE( "vdk-1.16", 0x00000, 0x20000, CRC(c1d01c59) SHA1(04a7fd31ca4d87d078070390660edf08bf1d96b5) ) |
| r1463 | r1464 | |
| 4850 | 6304 | |
| 4851 | 6305 | |
| 4852 | 6306 | |
| 4853 | | static UINT8 decode_byte(UINT8 src, const UINT8 *bitp) |
| 4854 | | { |
| 4855 | | UINT8 ret, i; |
| 6307 | /*************************************************************************** |
| 4856 | 6308 | |
| 4857 | | ret = 0; |
| 4858 | | for (i=0; i<8; i++) |
| 4859 | | ret |= (((src >> bitp[i]) & 1) << (7-i)); |
| 6309 | Stagger I |
| 6310 | (AFEGA 1998) |
| 4860 | 6311 | |
| 4861 | | return ret; |
| 4862 | | } |
| 6312 | Parts: |
| 4863 | 6313 | |
| 4864 | | static UINT32 bjtwin_address_map_bg0(UINT32 addr) |
| 4865 | | { |
| 4866 | | return ((addr&0x00004)>> 2) | ((addr&0x00800)>> 10) | ((addr&0x40000)>>16); |
| 4867 | | } |
| 6314 | 1 MC68HC000P10 |
| 6315 | 1 Z80 |
| 6316 | 2 Lattice ispLSI 1032E |
| 4868 | 6317 | |
| 6318 | ***************************************************************************/ |
| 4869 | 6319 | |
| 4870 | | static UINT16 decode_word(UINT16 src, const UINT8 *bitp) |
| 4871 | | { |
| 4872 | | UINT16 ret, i; |
| 6320 | ROM_START( stagger1 ) |
| 6321 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6322 | ROM_LOAD16_BYTE( "2.bin", 0x000000, 0x020000, CRC(8555929b) SHA1(b405d81c2a45191111b1a4458ac6b5c0a129b8f1) ) |
| 6323 | ROM_LOAD16_BYTE( "3.bin", 0x000001, 0x020000, CRC(5b0b63ac) SHA1(239f793b6845a88d1630da790a2762da730a450d) ) |
| 4873 | 6324 | |
| 4874 | | ret=0; |
| 4875 | | for (i=0; i<16; i++) |
| 4876 | | ret |= (((src >> bitp[i]) & 1) << (15-i)); |
| 6325 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* Z80 Code */ |
| 6326 | ROM_LOAD( "1.bin", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) ) |
| 4877 | 6327 | |
| 4878 | | return ret; |
| 4879 | | } |
| 6328 | ROM_REGION( 0x100000, REGION_GFX1, ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */ |
| 6329 | ROM_LOAD16_BYTE( "7.bin", 0x00000, 0x80000, CRC(048f7683) SHA1(7235b7dcfbb72abf44e60b114e3f504f16d29ebf) ) |
| 6330 | ROM_LOAD16_BYTE( "6.bin", 0x00001, 0x80000, CRC(051d4a77) SHA1(664182748e72b3e44202caa20f337d02e946ca62) ) |
| 4880 | 6331 | |
| 6332 | ROM_REGION( 0x080000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x4 */ |
| 6333 | ROM_LOAD( "4.bin", 0x00000, 0x80000, CRC(46463d36) SHA1(4265bc4d24ff64e39d9273965701c740d7e3fee0) ) |
| 4881 | 6334 | |
| 4882 | | static UINT32 bjtwin_address_map_sprites(UINT32 addr) |
| 6335 | ROM_REGION( 0x00100, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF ) /* Layer 1, 8x8x4 */ |
| 6336 | // Unused |
| 6337 | |
| 6338 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* Samples */ |
| 6339 | ROM_LOAD( "5", 0x00000, 0x40000, CRC(e911ce33) SHA1(a29c4dea98a22235122303325c63c15fadd3431d) ) |
| 6340 | ROM_END |
| 6341 | |
| 6342 | |
| 6343 | /*************************************************************************** |
| 6344 | |
| 6345 | Red Hawk (c)1997 Afega |
| 6346 | |
| 6347 | |
| 6348 | |
| 6349 | 6116 ym2151 MSM6295 5 4MHz |
| 6350 | 1 |
| 6351 | Z80 pLSI1032 4 |
| 6352 | 76C88 |
| 6353 | 6116 76C256 76C88 |
| 6354 | 6116 76C256 |
| 6355 | 2 76C256 76C256 |
| 6356 | 3 76C256 76C256 |
| 6357 | |
| 6358 | 68000-10 6116 |
| 6359 | 6116 |
| 6360 | SW1 6 |
| 6361 | SW21 pLSI1032 7 |
| 6362 | 12MHz |
| 6363 | |
| 6364 | ***************************************************************************/ |
| 6365 | |
| 6366 | ROM_START( redhawk ) |
| 6367 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6368 | ROM_LOAD16_BYTE( "2", 0x000000, 0x020000, CRC(3ef5f326) SHA1(e89c7c24a05886a14995d7c399958dc00ad35d63) ) |
| 6369 | ROM_LOAD16_BYTE( "3", 0x000001, 0x020000, CRC(9b3a10ef) SHA1(d03480329b23474e5a9e42a75b09d2140eed4443) ) |
| 6370 | |
| 6371 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* Z80 Code */ |
| 6372 | ROM_LOAD( "1.bin", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) ) |
| 6373 | |
| 6374 | ROM_REGION( 0x100000, REGION_GFX1, ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */ |
| 6375 | ROM_LOAD16_BYTE( "6", 0x000001, 0x080000, CRC(61560164) SHA1(d727ab2d037dab40745dec9c4389744534fdf07d) ) |
| 6376 | ROM_LOAD16_BYTE( "7", 0x000000, 0x080000, CRC(66a8976d) SHA1(dd9b89cf29eb5557845599d55ef3a15f53c070a4) ) |
| 6377 | |
| 6378 | ROM_REGION( 0x080000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */ |
| 6379 | ROM_LOAD( "4", 0x000000, 0x080000, CRC(d6427b8a) SHA1(556de1b5ce29d1c3c54bb315dcaa4dd0848ca462) ) |
| 6380 | |
| 6381 | ROM_REGION( 0x00100, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF ) /* Layer 1, 8x8x4 */ |
| 6382 | // Unused |
| 6383 | |
| 6384 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* Samples */ |
| 6385 | ROM_LOAD( "5", 0x00000, 0x40000, CRC(e911ce33) SHA1(a29c4dea98a22235122303325c63c15fadd3431d) ) |
| 6386 | ROM_END |
| 6387 | |
| 6388 | static DRIVER_INIT( redhawk ) |
| 4883 | 6389 | { |
| 4884 | | return ((addr&0x00010)>> 4) | ((addr&0x20000)>>16) | ((addr&0x100000)>>18); |
| 6390 | decryptcode( 23, 22, 21, 20, 19, 18, 16, 15, 14, 17, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 ); |
| 4885 | 6391 | } |
| 4886 | 6392 | |
| 6393 | ROM_START( redhawkb ) |
| 6394 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6395 | ROM_LOAD16_BYTE( "rhb-1.bin", 0x000000, 0x020000, CRC(e733ea07) SHA1(b1ffeda633d5e701f0e97c79930a54d7b89a85c5) ) |
| 6396 | ROM_LOAD16_BYTE( "rhb-2.bin", 0x000001, 0x020000, CRC(f9fa5684) SHA1(057ea3eebbaa1a208a72beef21b9368df7032ce1) ) |
| 4887 | 6397 | |
| 4888 | | static void decode_gfx(void) |
| 4889 | | { |
| 4890 | | /* GFX are scrambled. We decode them here. (BIG Thanks to Antiriad for descrambling info) */ |
| 4891 | | UINT8 *rom; |
| 4892 | | int A; |
| 6398 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* Z80 Code */ |
| 6399 | ROM_LOAD( "1.bin", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) ) |
| 4893 | 6400 | |
| 4894 | | static const UINT8 decode_data_bg[8][8] = |
| 4895 | | { |
| 4896 | | {0x3,0x0,0x7,0x2,0x5,0x1,0x4,0x6}, |
| 4897 | | {0x1,0x2,0x6,0x5,0x4,0x0,0x3,0x7}, |
| 4898 | | {0x7,0x6,0x5,0x4,0x3,0x2,0x1,0x0}, |
| 4899 | | {0x7,0x6,0x5,0x0,0x1,0x4,0x3,0x2}, |
| 4900 | | {0x2,0x0,0x1,0x4,0x3,0x5,0x7,0x6}, |
| 4901 | | {0x5,0x3,0x7,0x0,0x4,0x6,0x2,0x1}, |
| 4902 | | {0x2,0x7,0x0,0x6,0x5,0x3,0x1,0x4}, |
| 4903 | | {0x3,0x4,0x7,0x6,0x2,0x0,0x5,0x1}, |
| 4904 | | }; |
| 6401 | ROM_REGION( 0x100000, REGION_GFX1, ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */ |
| 6402 | ROM_LOAD( "rhb-3.bin", 0x000000, 0x080000, CRC(0318d68b) SHA1(c773de7b6f9c706e62349dc73af4339d1a3f9af6) ) |
| 6403 | ROM_LOAD( "rhb-4.bin", 0x080000, 0x080000, CRC(ba21c1ef) SHA1(66b0dee67acb5b3a21c7dba057be4093a92e10a9) ) |
| 4905 | 6404 | |
| 4906 | | static const UINT8 decode_data_sprite[8][16] = |
| 4907 | | { |
| 4908 | | {0x9,0x3,0x4,0x5,0x7,0x1,0xb,0x8,0x0,0xd,0x2,0xc,0xe,0x6,0xf,0xa}, |
| 4909 | | {0x1,0x3,0xc,0x4,0x0,0xf,0xb,0xa,0x8,0x5,0xe,0x6,0xd,0x2,0x7,0x9}, |
| 4910 | | {0xf,0xe,0xd,0xc,0xb,0xa,0x9,0x8,0x7,0x6,0x5,0x4,0x3,0x2,0x1,0x0}, |
| 4911 | | {0xf,0xe,0xc,0x6,0xa,0xb,0x7,0x8,0x9,0x2,0x3,0x4,0x5,0xd,0x1,0x0}, |
| 6405 | ROM_REGION( 0x080000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */ |
| 6406 | ROM_LOAD( "rhb-5.bin", 0x000000, 0x080000, CRC(d0eaf6f2) SHA1(6e946e13b06df897a63e885c9842816ec908a709) ) |
| 4912 | 6407 | |
| 4913 | | {0x1,0x6,0x2,0x5,0xf,0x7,0xb,0x9,0xa,0x3,0xd,0xe,0xc,0x4,0x0,0x8}, /* Haze 20/07/00 */ |
| 4914 | | {0x7,0x5,0xd,0xe,0xb,0xa,0x0,0x1,0x9,0x6,0xc,0x2,0x3,0x4,0x8,0xf}, /* Haze 20/07/00 */ |
| 4915 | | {0x0,0x5,0x6,0x3,0x9,0xb,0xa,0x7,0x1,0xd,0x2,0xe,0x4,0xc,0x8,0xf}, /* Antiriad, Corrected by Haze 20/07/00 */ |
| 4916 | | {0x9,0xc,0x4,0x2,0xf,0x0,0xb,0x8,0xa,0xd,0x3,0x6,0x5,0xe,0x1,0x7}, /* Antiriad, Corrected by Haze 20/07/00 */ |
| 4917 | | }; |
| 6408 | ROM_REGION( 0x080000, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF ) /* Layer 1, 8x8x4 */ |
| 4918 | 6409 | |
| 6410 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* Samples */ |
| 6411 | ROM_LOAD( "5", 0x00000, 0x40000, CRC(e911ce33) SHA1(a29c4dea98a22235122303325c63c15fadd3431d) ) |
| 6412 | ROM_END |
| 4919 | 6413 | |
| 4920 | | /* background */ |
| 4921 | | rom = memory_region(REGION_GFX2); |
| 4922 | | for (A = 0;A < memory_region_length(REGION_GFX2);A++) |
| 4923 | | { |
| 4924 | | rom[A] = decode_byte( rom[A], decode_data_bg[bjtwin_address_map_bg0(A)]); |
| 4925 | | } |
| 4926 | 6414 | |
| 4927 | | /* sprites */ |
| 4928 | | rom = memory_region(REGION_GFX3); |
| 4929 | | for (A = 0;A < memory_region_length(REGION_GFX3);A += 2) |
| 4930 | | { |
| 4931 | | UINT16 tmp = decode_word( rom[A+1]*256 + rom[A], decode_data_sprite[bjtwin_address_map_sprites(A)]); |
| 4932 | | rom[A+1] = tmp >> 8; |
| 4933 | | rom[A] = tmp & 0xff; |
| 4934 | | } |
| 4935 | | } |
| 6415 | /*************************************************************************** |
| 4936 | 6416 | |
| 4937 | | static void decode_tdragonb(void) |
| 4938 | | { |
| 4939 | | /* Descrambling Info Again Taken from Raine, Huge Thanks to Antiriad and the Raine Team for |
| 4940 | | going Open Source, best of luck in future development. */ |
| 6417 | Sen Jin - Guardian Storm |
| 4941 | 6418 | |
| 4942 | | UINT8 *rom; |
| 4943 | | int A; |
| 6419 | (C) Afega 1998 |
| 4944 | 6420 | |
| 4945 | | /* The Main 68k Program of the Bootleg is Bitswapped */ |
| 4946 | | static const UINT8 decode_data_tdragonb[1][16] = |
| 4947 | | { |
| 4948 | | {0xe,0xc,0xa,0x8,0x7,0x5,0x3,0x1,0xf,0xd,0xb,0x9,0x6,0x4,0x2,0x0}, |
| 4949 | | }; |
| 6421 | CPU: 68HC000FN10 (68000, 68 pin PLCC) |
| 6422 | SND: Z84C000FEC (Z80, 44 pin PQFP), AD-65 (OKI M6295), |
| 6423 | BS901 (YM2151, 24 pin DIP), BS901 (YM3012, 16 pin DIP) |
| 6424 | OSC: 12.000MHz (near 68000), 4.000MHz (Near Z84000) |
| 6425 | RAM: LH52B256 x 8, 6116 x 7 |
| 6426 | DIPS: 2 x 8 position |
| 4950 | 6427 | |
| 4951 | | /* Graphic Roms Could Also Do With Rearranging to make things simpler */ |
| 4952 | | static const UINT8 decode_data_tdragonbgfx[1][8] = |
| 4953 | | { |
| 4954 | | {0x7,0x6,0x5,0x3,0x4,0x2,0x1,0x0}, |
| 4955 | | }; |
| 6428 | Other Chips: AFEGA AFI-GFSK (68 pin PLCC, located next to 68000) |
| 6429 | AFEGA AFI-GFLK (208 pin PQFP) |
| 4956 | 6430 | |
| 4957 | | rom = memory_region(REGION_CPU1); |
| 4958 | | for (A = 0;A < memory_region_length(REGION_CPU1);A += 2) |
| 4959 | | { |
| 4960 | | #ifdef LSB_FIRST |
| 4961 | | UINT16 tmp = decode_word( rom[A+1]*256 + rom[A], decode_data_tdragonb[0]); |
| 4962 | | rom[A+1] = tmp >> 8; |
| 4963 | | rom[A] = tmp & 0xff; |
| 4964 | | #else |
| 4965 | | UINT16 tmp = decode_word( rom[A]*256 + rom[A+1], decode_data_tdragonb[0]); |
| 4966 | | rom[A] = tmp >> 8; |
| 4967 | | rom[A+1] = tmp & 0xff; |
| 4968 | | #endif |
| 4969 | | } |
| 6431 | ROMS: |
| 6432 | GST-01.U92 27C512, \ |
| 6433 | GST-02.U95 27C2000 > Sound Related, all located near Z80 |
| 6434 | GST-03.U4 27C512 / |
| 4970 | 6435 | |
| 4971 | | rom = memory_region(REGION_GFX2); |
| 4972 | | for (A = 0;A < memory_region_length(REGION_GFX2);A++) |
| 4973 | | { |
| 4974 | | rom[A] = decode_byte( rom[A], decode_data_tdragonbgfx[0]); |
| 4975 | | } |
| 6436 | GST-04.112 27C2000 \ |
| 6437 | GST-05.107 27C2000 /Main Program |
| 4976 | 6438 | |
| 4977 | | rom = memory_region(REGION_GFX3); |
| 4978 | | for (A = 0;A < memory_region_length(REGION_GFX3);A++) |
| 4979 | | { |
| 4980 | | rom[A] = decode_byte( rom[A], decode_data_tdragonbgfx[0]); |
| 4981 | | } |
| 4982 | | } |
| 6439 | GST-06.C13 read as 27C160 label = AF1-SP (Sprites?) |
| 6440 | GST-07.C08 read as 27C160 label = AF1=B2 (Backgrounds?) |
| 6441 | GST-08.C03 read as 27C160 label = AF1=B1 (Backgrounds?) |
| 4983 | 6442 | |
| 4984 | | static void decode_ssmissin(void) |
| 4985 | | { |
| 4986 | | /* Like Thunder Dragon Bootleg without the Program Rom Swapping */ |
| 4987 | | UINT8 *rom; |
| 4988 | | int A; |
| 6443 | ***************************************************************************/ |
| 4989 | 6444 | |
| 4990 | | /* Graphic Roms Could Also Do With Rearranging to make things simpler */ |
| 4991 | | static const UINT8 decode_data_tdragonbgfx[1][8] = |
| 4992 | | { |
| 4993 | | {0x7,0x6,0x5,0x3,0x4,0x2,0x1,0x0}, |
| 4994 | | }; |
| 6445 | ROM_START( grdnstrm ) |
| 6446 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6447 | ROM_LOAD16_BYTE( "gst-04.112", 0x000000, 0x040000, CRC(922c931a) SHA1(1d1511033c8c424535a73f5c5bf58560a8b1842e) ) |
| 6448 | ROM_LOAD16_BYTE( "gst-05.107", 0x000001, 0x040000, CRC(d22ca2dc) SHA1(fa21c8ec804570d64f4b167b7f65fd5811435e46) ) |
| 4995 | 6449 | |
| 4996 | | rom = memory_region(REGION_GFX2); |
| 4997 | | for (A = 0;A < memory_region_length(REGION_GFX2);A++) |
| 4998 | | { |
| 4999 | | rom[A] = decode_byte( rom[A], decode_data_tdragonbgfx[0]); |
| 5000 | | } |
| 6450 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* Z80 Code */ |
| 6451 | ROM_LOAD( "gst-01.u92", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) ) |
| 5001 | 6452 | |
| 5002 | | rom = memory_region(REGION_GFX3); |
| 5003 | | for (A = 0;A < memory_region_length(REGION_GFX3);A++) |
| 5004 | | { |
| 5005 | | rom[A] = decode_byte( rom[A], decode_data_tdragonbgfx[0]); |
| 5006 | | } |
| 5007 | | } |
| 6453 | ROM_REGION( 0x200000, REGION_GFX1, ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */ |
| 6454 | ROM_LOAD( "gst-06.c13", 0x000000, 0x200000, CRC(7d4d4985) SHA1(15c6c1aecd3f12050c1db2376f929f1a26a1d1cf) ) |
| 5008 | 6455 | |
| 6456 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */ |
| 6457 | ROM_LOAD( "gst-07.c08", 0x000000, 0x200000, CRC(d68588c2) SHA1(c5f397d74a6ecfd2e375082f82e37c5a330fba62) ) |
| 6458 | ROM_LOAD( "gst-08.c03", 0x200000, 0x200000, CRC(f8b200a8) SHA1(a6c43dd57b752d87138d7125b47dc0df83df8987) ) |
| 5009 | 6459 | |
| 5010 | | static DRIVER_INIT( nmk ) |
| 6460 | ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE ) /* Layer 1, 8x8x4 */ |
| 6461 | ROM_LOAD( "gst-03.u4", 0x00000, 0x10000, CRC(a1347297) SHA1(583f4da991eeedeb523cf4fa3b6900d40e342063) ) |
| 6462 | |
| 6463 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* Samples */ |
| 6464 | ROM_LOAD( "gst-02.u95", 0x00000, 0x40000, CRC(e911ce33) SHA1(a29c4dea98a22235122303325c63c15fadd3431d) ) |
| 6465 | ROM_END |
| 6466 | |
| 6467 | static DRIVER_INIT( grdnstrm ) |
| 5011 | 6468 | { |
| 5012 | | decode_gfx(); |
| 6469 | decryptcode( 23, 22, 21, 20, 19, 18, 16, 17, 14, 15, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 ); |
| 5013 | 6470 | } |
| 5014 | 6471 | |
| 5015 | | static DRIVER_INIT( hachamf ) |
| 5016 | | { |
| 5017 | | UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1); |
| 6472 | /* Pop's Pop's */ |
| 5018 | 6473 | |
| 5019 | | //rom[0x0006/2] = 0x7dc2; /* replace reset vector with the "real" one */ |
| 6474 | /* |
| 5020 | 6475 | |
| 5021 | | // kludge the sound communication to let commands go through. |
| 5022 | | rom[0x048a/2] = 0x4e71; |
| 5023 | | rom[0x04aa/2] = 0x4e71; |
| 5024 | | } |
| 6476 | Pop's Pop's by Afega (1999) |
| 5025 | 6477 | |
| 5026 | | static DRIVER_INIT( tdragonb ) |
| 5027 | | { |
| 5028 | | UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1); |
| 6478 | The pcb might be missing an eprom in a socket |
| 6479 | --- i just think it uses a generic PCB but no sprites in this case,. |
| 5029 | 6480 | |
| 5030 | | decode_tdragonb(); |
| 6481 | 1x 68k |
| 6482 | 1x z80 |
| 6483 | 1x Ad65 (oki 6295) |
| 6484 | 1x OSC 12mhz (near 68k) |
| 6485 | 1x OSC 4mhz (near z80) |
| 6486 | 1x ym2151 |
| 6487 | 1x Afega AF1-CFLK custom chip Smt |
| 6488 | 1x Afega AF1-CF5K custom chip socketed |
| 6489 | 2x dipswitch banks |
| 5031 | 6490 | |
| 5032 | | /* The Following Patch is taken from Raine, Otherwise the game has no Sprites in Attract Mode or After Level 1 |
| 5033 | | which is rather odd considering its a bootleg.. */ |
| 5034 | | rom[0x00308/2] = 0x4e71; /* Sprite Problem */ |
| 5035 | | } |
| 6491 | */ |
| 5036 | 6492 | |
| 5037 | | static DRIVER_INIT( tdragon ) |
| 5038 | | { |
| 5039 | | UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1); |
| 6493 | ROM_START( popspops ) |
| 6494 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6495 | ROM_LOAD16_BYTE( "afega4.u112", 0x000000, 0x040000, CRC(db191762) SHA1(901fdc20374473127d694513d4291e29e65eafe8) ) |
| 6496 | ROM_LOAD16_BYTE( "afega5.u107", 0x000001, 0x040000, CRC(17e0c48b) SHA1(833c61c4b3ee293b0bcddfa86dfa9c1014375115) ) |
| 5040 | 6497 | |
| 5041 | | //rom[0x94b0/2] = 0; /* Patch out JMP to shared memory (protection) */ |
| 5042 | | //rom[0x94b2/2] = 0x92f4; |
| 6498 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* Z80 Code */ |
| 6499 | ROM_LOAD( "afega1.u92", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) ) |
| 5043 | 6500 | |
| 5044 | | // kludge the sound communication to let commands go through. |
| 5045 | | rom[0x048a/2] = 0x4e71; |
| 5046 | | rom[0x04aa/2] = 0x4e71; |
| 5047 | | } |
| 6501 | ROM_REGION( 0x400000, REGION_GFX1, ROMREGION_ERASEFF | ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */ |
| 6502 | /* no sprite roms? */ |
| 5048 | 6503 | |
| 5049 | | static DRIVER_INIT( ssmissin ) |
| 6504 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */ |
| 6505 | ROM_LOAD( "afega6.uc8", 0x000000, 0x200000, CRC(6d506c97) SHA1(4909c0b530f9526c8bf76e502c914ef10a50d1fc) ) |
| 6506 | ROM_LOAD( "afega7.uc3", 0x200000, 0x200000, CRC(02d7f9de) SHA1(10102ffbf37a57afa300b01cb5067b7e672f4999) ) |
| 6507 | |
| 6508 | ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE ) /* Layer 1, 8x8x4 */ |
| 6509 | ROM_LOAD( "afega3.u4", 0x00000, 0x10000, CRC(f39dd5d2) SHA1(80d05d57a621b0063f63ce05be9314f718b3c111) ) |
| 6510 | |
| 6511 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* Samples */ |
| 6512 | ROM_LOAD( "afega2.u95", 0x00000, 0x40000, CRC(ecd8eeac) SHA1(849beba8f04cc322bb8435fa4c26551a6d0dec64) ) |
| 6513 | ROM_END |
| 6514 | |
| 6515 | /* |
| 6516 | Mang-chi by Afega |
| 6517 | |
| 6518 | 1x osc 4mhz |
| 6519 | 1x osc 12mhz |
| 6520 | 1x tmp68hc0000p-10 |
| 6521 | 1x z80c006 |
| 6522 | 1x AD65 (MSM6295) |
| 6523 | 1x CY5001 (YM2151 rebadged) |
| 6524 | 2x dipswitch |
| 6525 | 1x fpga |
| 6526 | 1x smd ASIC not marked |
| 6527 | |
| 6528 | Dumped by Corrado Tomaselli |
| 6529 | */ |
| 6530 | |
| 6531 | ROM_START( mangchi ) |
| 6532 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6533 | ROM_LOAD16_BYTE( "afega9.u112", 0x00000, 0x40000, CRC(0b1517a5) SHA1(50e307641759bb2a35aff56ef9598364740803a0) ) |
| 6534 | ROM_LOAD16_BYTE( "afega10.u107", 0x00001, 0x40000, CRC(b1d0f33d) SHA1(68b5be3f7911f7299566c5bf5801e90099433613) ) |
| 6535 | |
| 6536 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* Z80 Code */ |
| 6537 | ROM_LOAD( "sound.u92", 0x00000, 0x10000, CRC(bec4f9aa) SHA1(18fb2ee06892983c117a62b70cd72a98f60a08b6) ) |
| 6538 | |
| 6539 | ROM_REGION( 0x080000, REGION_GFX1, ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */ |
| 6540 | ROM_LOAD16_BYTE( "afega6.uc11", 0x000000, 0x040000, CRC(979efc30) SHA1(227fe1e20137253aac04585d2bbf67091d032e56) ) |
| 6541 | ROM_LOAD16_BYTE( "afega7.uc14", 0x000001, 0x040000, CRC(c5cbcc38) SHA1(86070a9598e80f90ec7892d623e1a975ccc68178) ) |
| 6542 | |
| 6543 | ROM_REGION( 0x100000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */ |
| 6544 | ROM_LOAD( "afega5.uc6", 0x000000, 0x80000, CRC(c73261e0) SHA1(0bb66aa315aaecb26169812cf47a6504a74f0db5) ) |
| 6545 | ROM_LOAD( "afega4.uc1", 0x080000, 0x80000, CRC(73940917) SHA1(070305c81de959c9d00b6cf1cc20bbafa204976a) ) |
| 6546 | |
| 6547 | ROM_REGION( 0x100000, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF ) /* Layer 1, 8x8x4 */ |
| 6548 | |
| 6549 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* Samples */ |
| 6550 | ROM_LOAD( "afega2.u95", 0x00000, 0x40000, CRC(78c8c1f9) SHA1(eee0d03164a0ac0ddc5186ab56090320e9d33aa7) ) |
| 6551 | ROM_END |
| 6552 | |
| 6553 | /*************************************************************************** |
| 6554 | |
| 6555 | Bubble 2000 (c)1998 Tuning |
| 6556 | |
| 6557 | Bubble 2000 |
| 6558 | Tuning, 1998 |
| 6559 | |
| 6560 | CPU : TMP68HC000P-10 (68000) |
| 6561 | SOUND : Z840006 (Z80, 44 pin QFP), YM2151, OKI M6295 |
| 6562 | OSC : 4.000MHZ, 12.000MHz |
| 6563 | DIPSW : 8 position (x2) |
| 6564 | RAM : 6116 (x5, gfx related?) 6116 (x1, sound program ram), 6116 (x1, near rom3) |
| 6565 | 64256 (x4, gfx related?), 62256 (x2, main program ram), 6264 (x2, gfx related?) |
| 6566 | PALs/PROMs: None |
| 6567 | Custom: Unknown 208 pin QFP labelled LTC2 (Graphics generator) |
| 6568 | Unknown 68 pin PLCC labelled LTC1 (?, near rom 2 and rom 3) |
| 6569 | ROMs : |
| 6570 | |
| 6571 | Filename Type Possible Use |
| 6572 | ---------------------------------------------- |
| 6573 | rom01.92 27C512 Sound Program |
| 6574 | rom02.95 27C020 Oki Samples |
| 6575 | rom03.4 27C512 ? (located near rom 1 and 2 and near LTC1) |
| 6576 | rom04.1 27C040 \ |
| 6577 | rom05.3 27C040 | |
| 6578 | rom06.6 27C040 | |
| 6579 | rom07.9 27C040 | Gfx |
| 6580 | rom08.11 27C040 | |
| 6581 | rom09.14 27C040 | |
| 6582 | rom12.2 27C040 | |
| 6583 | rom13.7 27C040 / |
| 6584 | |
| 6585 | rom10.112 27C040 \ Main Program |
| 6586 | rom11.107 27C040 / |
| 6587 | |
| 6588 | |
| 6589 | |
| 6590 | |
| 6591 | ***************************************************************************/ |
| 6592 | |
| 6593 | ROM_START( bubl2000 ) |
| 6594 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6595 | ROM_LOAD16_BYTE( "rom10.112", 0x00000, 0x20000, CRC(87f960d7) SHA1(d22fe1740217ac20963bd9003245850598ccecf2) ) |
| 6596 | ROM_LOAD16_BYTE( "rom11.107", 0x00001, 0x20000, CRC(b386041a) SHA1(cac36e22a39b5be0c5cd54dce5c912ff811edb28) ) |
| 6597 | |
| 6598 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* Z80 Code */ |
| 6599 | ROM_LOAD( "rom01.92", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) ) /* same as the other games on this driver */ |
| 6600 | |
| 6601 | ROM_REGION( 0x080000, REGION_GFX1, ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */ |
| 6602 | ROM_LOAD16_BYTE( "rom08.11", 0x000000, 0x040000, CRC(519dfd82) SHA1(116b06f6e7b283a5417338f716bbaab6cfadb41d) ) |
| 6603 | ROM_LOAD16_BYTE( "rom09.14", 0x000001, 0x040000, CRC(04fcb5c6) SHA1(7594fa6bf98fc01b8848473a222a621c7c9ff00d) ) |
| 6604 | |
| 6605 | ROM_REGION( 0x300000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */ |
| 6606 | ROM_LOAD( "rom06.6", 0x000000, 0x080000, CRC(ac1aabf5) SHA1(abce6ba381b189ab3ec703a8ef74bccbe10876e0) ) |
| 6607 | ROM_LOAD( "rom07.9", 0x080000, 0x080000, CRC(69aff769) SHA1(89b98c1023710861e622c8a186b6ec48f5109d42) ) |
| 6608 | ROM_LOAD( "rom13.7", 0x100000, 0x080000, CRC(3a5b7226) SHA1(1127740c5bc2f830d73a77c8831e1b0db6606375) ) |
| 6609 | ROM_LOAD( "rom04.1", 0x180000, 0x080000, CRC(46acd054) SHA1(1bd7a1b6b2ce6a3daa8c92843c546beb377af8fb) ) |
| 6610 | ROM_LOAD( "rom05.3", 0x200000, 0x080000, CRC(37deb6a1) SHA1(3a8a3d961800bb15fd389429b92fa1e5b5f416df) ) |
| 6611 | ROM_LOAD( "rom12.2", 0x280000, 0x080000, CRC(1fdc59dd) SHA1(d38e21c878241b4315a36e0590397211ca63f2c4) ) |
| 6612 | |
| 6613 | ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE ) /* Layer 1, 8x8x4 */ |
| 6614 | ROM_LOAD( "rom03.4", 0x00000, 0x10000, CRC(f4c15588) SHA1(a21ae71c0a8c7c1df63f9905fd86303bc2d3991c) ) |
| 6615 | |
| 6616 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* Samples */ |
| 6617 | ROM_LOAD( "rom02.95", 0x00000, 0x40000, CRC(859a86e5) SHA1(7b51964227411a40aac54b9cd9ff64f091bdf2b0) ) |
| 6618 | ROM_END |
| 6619 | |
| 6620 | |
| 6621 | /* |
| 6622 | |
| 6623 | Hot Bubble |
| 6624 | Afega, 1998 |
| 6625 | |
| 6626 | PCB Layout |
| 6627 | ---------- |
| 6628 | |
| 6629 | Bottom Board |
| 6630 | |
| 6631 | |------------------------------------------| |
| 6632 | | BS902 BS901 Z80 4MHz | |
| 6633 | | | |
| 6634 | | 6116 6295 | |
| 6635 | | 62256 | |
| 6636 | | 6116 62256 | |
| 6637 | | 6116 | |
| 6638 | |J 6116 |------------| | |
| 6639 | |A 6116 | 68000 | | |
| 6640 | |M |------------| | |
| 6641 | |M DSW2 6264 | |
| 6642 | |A 6264 | |
| 6643 | | | |
| 6644 | | |-------| | |
| 6645 | | | | | |
| 6646 | | | | | |
| 6647 | | DSW1 | | 62256 62256 | |
| 6648 | | |-------| | |
| 6649 | | 6116 62256 62256 | |
| 6650 | |12MHz 6116 | |
| 6651 | |------------------------------------------| |
| 6652 | Notes: |
| 6653 | 68000 - running at 12.000MHz |
| 6654 | Z80 - running at 4.000MHz |
| 6655 | 62256 - 32K x8 SRAM |
| 6656 | 6264 - 8K x8 SRAM |
| 6657 | 6116 - 2K x8 SRAM |
| 6658 | BS901 - YM2151, running at 4.000MHz |
| 6659 | BS902 - YM3012 |
| 6660 | 6295 - OKI MSM6295 running at 1.000MHz [4/4], sample rate = 1000000 / 132 |
| 6661 | * - Unknown QFP208 |
| 6662 | VSync - 56.2Hz (measured on 68000 IPL1) |
| 6663 | |
| 6664 | Top Board |
| 6665 | |
| 6666 | |---------------------------| |
| 6667 | | | |
| 6668 | | S1 S2 T1 | |
| 6669 | | | |
| 6670 | | CR5 CR7 C1 | |
| 6671 | | | |
| 6672 | | CR6 +CR8 C2 | |
| 6673 | | | |
| 6674 | | BR1 BR3 | |
| 6675 | | | |
| 6676 | | +BR2 +BR4 | |
| 6677 | | | |
| 6678 | | CR1 CR3 |------| | |
| 6679 | | | * | | |
| 6680 | | CR2 +CR4 | | | |
| 6681 | | |------| | |
| 6682 | |---------------------------| |
| 6683 | Notes: |
| 6684 | * - Unknown PLCC68 IC |
| 6685 | + - Not populated |
| 6686 | |
| 6687 | */ |
| 6688 | |
| 6689 | ROM_START( hotbubl ) |
| 6690 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6691 | ROM_LOAD16_BYTE( "c1.uc1", 0x00001, 0x40000, CRC(7bb240e9) SHA1(99048fa275182c3da3bfb0dedd790f4b5858bd92) ) |
| 6692 | ROM_LOAD16_BYTE( "c2.uc9", 0x00000, 0x40000, CRC(7917b95d) SHA1(0344bae9c373c5943e7693720e5e531bc2e0d7ee) ) |
| 6693 | |
| 6694 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* Z80 Code */ |
| 6695 | ROM_LOAD( "s1.uc14", 0x00000, 0x10000, CRC(5d8cf28e) SHA1(2a440bf5136f95af137b6688e566a14e65be94b1) ) /* same as the other games on this driver */ |
| 6696 | |
| 6697 | ROM_REGION( 0x100000, REGION_GFX1, ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */ |
| 6698 | ROM_LOAD16_BYTE( "br1.uc3", 0x000000, 0x080000, CRC(6fc18de4) SHA1(57b4823fc41637780f64eadd1ddf61db531a2599) ) |
| 6699 | ROM_LOAD16_BYTE( "br3.uc10", 0x000001, 0x080000, CRC(bb677240) SHA1(d7a26bcd33d491cee441edda6d092a1d08308b0e) ) |
| 6700 | |
| 6701 | ROM_REGION( 0x300000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */ |
| 6702 | ROM_LOAD( "cr6.uc16", 0x100000, 0x080000, CRC(99d6523c) SHA1(0b628585d749e175d5a4dc600af1ba9cb936bfeb) ) |
| 6703 | ROM_LOAD( "cr7.uc19", 0x080000, 0x080000, CRC(a89d9ce4) SHA1(5965b2b4b67bc91bc0e7474e593c7e1953b75adc) ) |
| 6704 | ROM_LOAD( "cr5.uc15", 0x000000, 0x080000, CRC(65bd5159) SHA1(627ccc0ab131e643c3c52ee9bb41c7a85153c35e) ) |
| 6705 | |
| 6706 | ROM_LOAD( "cr2.uc7", 0x280000, 0x080000, CRC(27ad6fc8) SHA1(00b1a5c5e1a245590b300b9baf71585d41813e3e) ) |
| 6707 | ROM_LOAD( "cr3.uc12", 0x200000, 0x080000, CRC(c841a4f6) SHA1(9b0ee5623c87a0cfc63d3741a65d399bd6593f18) ) |
| 6708 | ROM_LOAD( "cr1.uc6", 0x180000, 0x080000, CRC(fc9101d2) SHA1(1d5b8484264b6d73fe032946096a469226cce901) ) |
| 6709 | |
| 6710 | ROM_REGION( 0x10000, REGION_GFX3, ROMREGION_DISPOSE ) /* Layer 1, 8x8x4 */ |
| 6711 | ROM_LOAD( "t1.uc2", 0x00000, 0x10000, CRC(ce683a93) SHA1(aeee2671051f1badf2255375cd7c5fa847d1746c) ) |
| 6712 | |
| 6713 | ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* Samples */ |
| 6714 | ROM_LOAD( "s2.uc18", 0x00000, 0x40000, CRC(401c980f) SHA1(e47710c47cfeecce3ccf87f845b219a9c9f21ee3) ) |
| 6715 | ROM_END |
| 6716 | |
| 6717 | static DRIVER_INIT( bubl2000 ) |
| 5050 | 6718 | { |
| 5051 | | decode_ssmissin(); |
| 6719 | decryptcode( 23, 22, 21, 20, 19, 18, 13, 14, 15, 16, 17, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 ); |
| 5052 | 6720 | } |
| 5053 | 6721 | |
| 6722 | /* |
| 5054 | 6723 | |
| 5055 | | int is_blkheart; |
| 6724 | Fire Hawk - ESD |
| 6725 | --------------- |
| 5056 | 6726 | |
| 5057 | | // see raine's games/nmk.c |
| 6727 | - To enter test mode, hold on button 1 at boot up |
| 5058 | 6728 | |
| 5059 | | static WRITE16_HANDLER ( test_2a_w ) |
| 5060 | | { |
| 5061 | | data = data >> 8; |
| 5062 | 6729 | |
| 5063 | | ram[0x2a/2] = (data << 8) | data; |
| 6730 | PCB Layout |
| 6731 | ---------- |
| 5064 | 6732 | |
| 5065 | | if (data == 1 || data == 2) { |
| 5066 | | ram[0x68/2] = 11; |
| 5067 | | ram[0x6a/2] = 0; |
| 5068 | | } |
| 5069 | | } |
| 6733 | ESD-PROT-002 |
| 6734 | |------------------------------------------------| |
| 6735 | | FHAWK_S1.U40 FHAWK_S2.U36 | |
| 6736 | | 6116 6295 FHAWK_S3.U41 | |
| 6737 | | 6295 FHAWK_G1.UC6| |
| 6738 | | PAL Z80 FHAWK_G2.UC5| |
| 6739 | | 4MHz |--------| | |
| 6740 | | | ACTEL | | |
| 6741 | |J 6116 62256 |A54SX16A| | |
| 6742 | |A 6116 62256 | | | |
| 6743 | |M |(QFP208)| | |
| 6744 | |M |--------| | |
| 6745 | |A DSW1 FHAWK_G3.UC2 | |
| 6746 | | DSW2 |--------| | |
| 6747 | | DSW3 | ACTEL | | |
| 6748 | | 6116 |A54SX16A| | |
| 6749 | | 6116 | | | |
| 6750 | | 62256 |(QFP208)| | |
| 6751 | | FHAWK_P1.U59 |--------| | |
| 6752 | | FHAWK_P2.U60 PAL 62256 62256| |
| 6753 | | | |
| 6754 | |12MHz 62256 68000 62256 62256| |
| 6755 | |------------------------------------------------| |
| 6756 | Notes: |
| 6757 | 68000 clock: 12.000MHz |
| 6758 | Z80 clock: 4.000MHz |
| 6759 | 6295 clocks: 1.000MHz (both), sample rate = 1000000 / 132 (both) |
| 6760 | VSync: 56Hz |
| 5070 | 6761 | |
| 5071 | | static WRITE16_HANDLER ( test_2a_mustang_w ) |
| 5072 | | { |
| 5073 | | data = data >> 8; |
| 6762 | */ |
| 5074 | 6763 | |
| 5075 | | ram[0x2a/2] = (data << 8) | data; |
| 6764 | ROM_START( firehawk ) |
| 6765 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6766 | ROM_LOAD16_BYTE( "fhawk_p1.u59", 0x00001, 0x80000, CRC(d6d71a50) SHA1(e947720a0600d049b7ea9486442e1ba5582536c2) ) |
| 6767 | ROM_LOAD16_BYTE( "fhawk_p2.u60", 0x00000, 0x80000, CRC(9f35d245) SHA1(5a22146f16bff7db924550970ed2a3048bc3edab) ) |
| 5076 | 6768 | |
| 5077 | | if (data == 1 || data == 2) { |
| 5078 | | ram[0x2e/2] = 10; |
| 5079 | | ram[0x2c/2] = 0; |
| 5080 | | } |
| 6769 | ROM_REGION( 0x20000, REGION_CPU2, 0 ) /* Z80 Code */ |
| 6770 | ROM_LOAD( "fhawk_s1.u40", 0x00000, 0x20000, CRC(c6609c39) SHA1(fe9b5f6c3ab42c48cb493fecb1181901efabdb58) ) |
| 5081 | 6771 | |
| 5082 | | } |
| 6772 | ROM_REGION( 0x200000, REGION_GFX1,ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */ |
| 6773 | ROM_LOAD( "fhawk_g3.uc2", 0x00000, 0x200000, CRC(cae72ff4) SHA1(7dca7164015228ea039deffd234778d0133971ab) ) |
| 5083 | 6774 | |
| 5084 | | static DRIVER_INIT( blkheart ) |
| 5085 | | { |
| 5086 | | UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1); |
| 6775 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */ |
| 6776 | ROM_LOAD( "fhawk_g1.uc6", 0x000000, 0x200000, CRC(2ab0b06b) SHA1(25362f6a517f188c62bac28b1a7b7b49622b1518) ) |
| 6777 | ROM_LOAD( "fhawk_g2.uc5", 0x200000, 0x200000, CRC(d11bfa20) SHA1(15142004ab49f7f1e666098211dff0835c61df8d) ) |
| 5087 | 6778 | |
| 5088 | | is_blkheart = 1; // sprite enable is different? |
| 6779 | ROM_REGION( 0x00100, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF ) /* Layer 1, 8x8x4 */ |
| 6780 | // Unused |
| 5089 | 6781 | |
| 5090 | | // see raine's games/nmk.c |
| 5091 | | rom[0x872/2] = 0x4e71; |
| 5092 | | rom[0x874/2] = 0x4e71; |
| 5093 | | rom[0x876/2] = 0x4e71; |
| 5094 | | rom[0x8d6/2] = 0x0300; |
| 5095 | | rom[0xe1c/2] = 0x0300; |
| 5096 | | rom[0x23dc/2] = 0x0300; |
| 5097 | | rom[0x3dea/2] = 0x0300; |
| 6782 | ROM_REGION( 0x040000, REGION_SOUND1, 0 ) /* Samples */ |
| 6783 | ROM_LOAD( "fhawk_s2.u36", 0x00000, 0x40000, CRC(d16aaaad) SHA1(96ca173ca433164ed0ae51b41b42343bd3cfb5fe) ) |
| 5098 | 6784 | |
| 5099 | | memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0xf902a, 0xf902b, 0, 0, test_2a_w ); |
| 5100 | | } |
| 6785 | ROM_REGION( 0x040000, REGION_SOUND2, 0 ) /* Samples */ |
| 6786 | ROM_LOAD( "fhawk_s3.u41", 0x00000, 0x40000, CRC(3fdcfac2) SHA1(c331f2ea6fd682cfb00f73f9a5b995408eaab5cf) ) |
| 6787 | ROM_END |
| 5101 | 6788 | |
| 5102 | | static DRIVER_INIT( mustang ) |
| 5103 | | { |
| 5104 | | UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1); |
| 6789 | /* |
| 5105 | 6790 | |
| 5106 | | is_blkheart = 1; // sprite enable is different? |
| 6791 | CPU |
| 6792 | 1x unknown custom chip |
| 6793 | 1x FPGA |
| 6794 | 1x oscillator 4.000MHz |
| 6795 | 1x oscillator 12.000MHz |
| 6796 | 2x AD-65 |
| 5107 | 6797 | |
| 5108 | | // see raine's games/nmk.c |
| 5109 | | rom[0x85c/2] = 0x4e71; |
| 5110 | | rom[0x85e/2] = 0x4e71; |
| 5111 | | rom[0x860/2] = 0x4e71; |
| 5112 | | rom[0x8c0/2] = 0x0300; |
| 5113 | | rom[0xc00/2] = 0x0300; |
| 5114 | | rom[0x30b2/2] = 0x0300; |
| 6798 | ROMs |
| 6799 | 1x TMS27C512 (1) |
| 6800 | 1x MX27C4000 (3) |
| 6801 | 2x TMS27C010A (2,4) |
| 6802 | 2x TMS27C020 (5,6) |
| 6803 | 3x MX29F1610ML (uc1,uc2,uc3) |
| 5115 | 6804 | |
| 5116 | | memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0xf902a, 0xf902b, 0, 0, test_2a_mustang_w ); |
| 5117 | | } |
| 6805 | Note |
| 6806 | 1x JAMMA connector |
| 6807 | 1x trimmer (volume) |
| 6808 | 2x8 dip switches |
| 5118 | 6809 | |
| 5119 | | static DRIVER_INIT( bjtwin ) |
| 5120 | | { |
| 5121 | | driver_init_nmk(machine); |
| 6810 | */ |
| 5122 | 6811 | |
| 5123 | | /* Patch rom to enable test mode */ |
| 6812 | ROM_START( spec2k ) |
| 6813 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6814 | ROM_LOAD16_BYTE( "yonatech5.u124", 0x00000, 0x40000, CRC(72ab5c05) SHA1(182a811982b89b8cda0677547ef0625c274f5c6b) ) |
| 6815 | ROM_LOAD16_BYTE( "yonatech6.u120", 0x00001, 0x40000, CRC(7e44bd9c) SHA1(da59685be14a09ec037743fcec34fb293f7d588d) ) |
| 5124 | 6816 | |
| 5125 | | /* 008F54: 33F9 0008 0000 000F FFFC move.w $80000.l, $ffffc.l |
| 5126 | | * 008F5E: 3639 0008 0002 move.w $80002.l, D3 |
| 5127 | | * 008F64: 3003 move.w D3, D0 \ |
| 5128 | | * 008F66: 3203 move.w D3, D1 | This code remaps |
| 5129 | | * 008F68: 0041 BFBF ori.w #-$4041, D1 | buttons 2 and 3 to |
| 5130 | | * 008F6C: E441 asr.w #2, D1 | button 1, so |
| 5131 | | * 008F6E: 0040 DFDF ori.w #-$2021, D0 | you can't enter |
| 5132 | | * 008F72: E240 asr.w #1, D0 | service mode |
| 5133 | | * 008F74: C640 and.w D0, D3 | |
| 5134 | | * 008F76: C641 and.w D1, D3 / |
| 5135 | | * 008F78: 33C3 000F FFFE move.w D3, $ffffe.l |
| 5136 | | * 008F7E: 207C 000F 9000 movea.l #$f9000, A0 |
| 5137 | | */ |
| 6817 | ROM_REGION( 0x20000, REGION_CPU2, 0 ) /* Z80 Code */ |
| 6818 | ROM_LOAD( "yonatech1.u103", 0x00000, 0x10000, CRC(ef5acda7) SHA1(e55b36a1598ecbbbad984997d61599dfa3958f60) ) |
| 5138 | 6819 | |
| 5139 | | // data 16_t *rom = (UINT16 *)memory_region(REGION_CPU1); |
| 5140 | | // rom[0x09172/2] = 0x6006; /* patch checksum error */ |
| 5141 | | // rom[0x08f74/2] = 0x4e71); |
| 5142 | | } |
| 6820 | ROM_REGION( 0x200000, REGION_GFX1,ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */ |
| 6821 | ROM_LOAD( "u154.bin", 0x00000, 0x200000, CRC(f77b764e) SHA1(37e249bd4d7174c5232261880ce8debf42723716) ) |
| 5143 | 6822 | |
| 5144 | | /* NO NMK004, it has a PIC instead */ |
| 5145 | | static READ16_HANDLER( vandykeb_r ) { return 0x0000; }; |
| 5146 | | static DRIVER_INIT (vandykeb) |
| 6823 | ROM_REGION( 0x400000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */ |
| 6824 | ROM_LOAD( "u153.bin", 0x000000, 0x200000, CRC(a00bbf8f) SHA1(622f52ef50d52cdd5e6b250d68439caae5c13404) ) |
| 6825 | ROM_LOAD( "u152.bin", 0x200000, 0x200000, CRC(f6423fab) SHA1(253e0791eb58efa1df42e9c74d397e6e65c8c252) ) |
| 6826 | |
| 6827 | ROM_REGION( 0x20000, REGION_GFX3, ROMREGION_DISPOSE | ROMREGION_ERASEFF ) /* Layer 1, 8x8x4 */ |
| 6828 | ROM_LOAD( "yonatech4.u3", 0x00000, 0x20000, CRC(5626b08e) SHA1(63207ed6b4fc8684690bf3fe1991a4f3babd73e8) ) |
| 6829 | |
| 6830 | ROM_REGION( 0x020000, REGION_SOUND1, 0 ) /* Samples */ |
| 6831 | ROM_LOAD( "yonatech2.u101", 0x00000, 0x20000, CRC(4160f172) SHA1(0478a5a4bbba115e6cfb5501aa55aa2836c963bf) ) |
| 6832 | |
| 6833 | ROM_REGION( 0x080000, REGION_SOUND2, 0 ) /* Samples */ |
| 6834 | ROM_LOAD( "yonatech3.u106", 0x00000, 0x80000, CRC(6644c404) SHA1(b7ad3f9f08971432d024ef8be3fa3140f0bbae67) ) |
| 6835 | ROM_END |
| 6836 | |
| 6837 | static DRIVER_INIT( spec2k ) |
| 5147 | 6838 | { |
| 5148 | | memory_install_read16_handler(0, ADDRESS_SPACE_PROGRAM, 0x08000e, 0x08000f, 0, 0, vandykeb_r ); |
| 5149 | | memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0x08001e, 0x08001f, 0, 0, MWA16_NOP ); |
| 6839 | decryptcode( 23, 22, 21, 20, |
| 6840 | 19, 18, 17, 13, |
| 6841 | 14, 15, 16, 12, |
| 6842 | 11, 10, 9, 8, |
| 6843 | 7, 6, 5, 4, |
| 6844 | 3, 2, 1, 0 ); |
| 5150 | 6845 | } |
| 5151 | 6846 | |
| 5152 | | GAME( 1989, tharrier, 0, tharrier, tharrier, 0, ROT270, "UPL (American Sammy license)", "Task Force Harrier", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) |
| 5153 | | GAME( 1989, tharierj, tharrier,tharrier, tharrier, 0, ROT270, "UPL", "Task Force Harrier (Japan)", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) |
| 5154 | | GAME( 1990, mustang, 0, mustang, mustang, mustang, ROT0, "UPL", "US AAF Mustang (Japan)", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND) // Playable but there are Still Protection Problems |
| 5155 | | GAME( 1990, mustangs, mustang, mustang, mustang, mustang, ROT0, "UPL (Seoul Trading license)", "US AAF Mustang (Seoul Trading)", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND ) // Playable but there are Still Protection Problems |
| 6847 | /* |
| 6848 | 1995, Afega |
| 6849 | |
| 6850 | 1x TMP68000P-10 (main) |
| 6851 | 1x GOLDSTAR Z8400A (sound) |
| 6852 | 1x AD-65 (equivalent to OKI6295) |
| 6853 | 1x LATTICE pLSI 1032 60LJ A428A48 |
| 6854 | 1x oscillator 8.000MHz |
| 6855 | 1x oscillator 12.000MHz |
| 6856 | |
| 6857 | 1x 27256 (SU6) |
| 6858 | 1x 27C010 (SU12) |
| 6859 | 1x 27C020 (SU13) |
| 6860 | 2x 27c4001 (UB11, UB13) |
| 6861 | 3x 27C010 (UJ11, UJ12, UJ13) |
| 6862 | 1x 27C4001 (UI20) |
| 6863 | |
| 6864 | 1x JAMMA edge connector |
| 6865 | 1x trimmer (volume) |
| 6866 | */ |
| 6867 | |
| 6868 | ROM_START( twinactn ) |
| 6869 | ROM_REGION( 0x40000, REGION_CPU1, 0 ) /* 68000 Code */ |
| 6870 | ROM_LOAD16_BYTE( "afega.uj13", 0x00000, 0x20000, CRC(9187701d) SHA1(1da8d1e3969f60c7b0521cd22c723cb51619df9d) ) |
| 6871 | ROM_LOAD16_BYTE( "afega.uj12", 0x00001, 0x20000, CRC(fe8cff9c) SHA1(a1a04deff9e2cb54c69601898cf4e5133c2bc437) ) |
| 6872 | |
| 6873 | ROM_REGION( 0x8000, REGION_CPU2, 0 ) /* Z80 Code */ |
| 6874 | ROM_LOAD( "afega.su6", 0x0000, 0x8000, CRC(3a52dc88) SHA1(87941987d34d93df6df9ff33ccfbd1f5d4a39c51) ) // 1111xxxxxxxxxxx = 0x00 |
| 6875 | |
| 6876 | ROM_REGION( 0x100000, REGION_GFX3, ROMREGION_DISPOSE ) /* Sprites, 16x16x4 */ |
| 6877 | ROM_LOAD16_BYTE( "afega.ub11", 0x00000, 0x80000, CRC(287f20d8) SHA1(11faa36b97593c0b5cee70343750ae1ecd2f5b71) ) |
| 6878 | ROM_LOAD16_BYTE( "afega.ub13", 0x00001, 0x80000, CRC(f525f819) SHA1(78ffcb709a3a900d3851392630a11ab58fc0bc75) ) |
| 6879 | |
| 6880 | ROM_REGION( 0x80000, REGION_GFX2, ROMREGION_DISPOSE ) /* Layer 0, 16x16x8 */ |
| 6881 | ROM_LOAD( "afega.ui20", 0x00000, 0x80000, CRC(237c8f92) SHA1(bb3131b450bd78d03b789626a465fb9e7a4604a7) ) |
| 6882 | |
| 6883 | ROM_REGION( 0x20000, REGION_GFX1, ROMREGION_DISPOSE ) /* Layer 1, 8x8x4 */ |
| 6884 | ROM_LOAD( "afega.uj11", 0x00000, 0x20000, CRC(3f439e92) SHA1(27e5b1b0aa3b13fa35e3f83793037314b2942aa2) ) |
| 6885 | |
| 6886 | ROM_REGION( 0x100000, REGION_SOUND1, 0 ) /* Samples */ |
| 6887 | ROM_LOAD( "afega.su12", 0x000000, 0x20000, CRC(91d665f3) SHA1(10b5b07ed28ea78b6d3493afc03e003a8468c007) ) |
| 6888 | ROM_RELOAD( 0x040000, 0x20000 ) |
| 6889 | ROM_RELOAD( 0x080000, 0x20000 ) |
| 6890 | ROM_RELOAD( 0x0c0000, 0x20000 ) |
| 6891 | ROM_RELOAD( 0x020000, 0x20000 ) |
| 6892 | ROM_RELOAD( 0x060000, 0x20000 ) |
| 6893 | ROM_LOAD( "afega.su13", 0x0a0000, 0x20000, CRC(30e1c306) SHA1(c859f11fd329793b11e96264e91c79a557b488a4) ) |
| 6894 | ROM_CONTINUE( 0x0e0000, 0x20000 ) |
| 6895 | ROM_END |
| 6896 | |
| 6897 | |
| 6898 | |
| 6899 | /*************************************************************************** |
| 6900 | |
| 6901 | |
| 6902 | Game Drivers |
| 6903 | |
| 6904 | |
| 6905 | ***************************************************************************/ |
| 6906 | |
| 6907 | |
| 6908 | GAME( 1989, tharrier, 0, tharrier, tharrier, 0, ROT270, "UPL (American Sammy license)", "Task Force Harrier", 0 ) |
| 6909 | GAME( 1989, tharierj, tharrier,tharrier, tharrier, 0, ROT270, "UPL", "Task Force Harrier (Japan)", 0 ) |
| 6910 | GAME( 1990, mustang, 0, mustang, mustang, 0, ROT0, "UPL", "US AAF Mustang (Japan)", GAME_IMPERFECT_SOUND) |
| 6911 | GAME( 1990, mustangs, mustang, mustang, mustang, 0, ROT0, "UPL (Seoul Trading license)", "US AAF Mustang (Seoul Trading)", GAME_IMPERFECT_SOUND ) |
| 5156 | 6912 | GAME( 1990, bioship, 0, bioship, bioship, 0, ROT0, "UPL (American Sammy license)", "Bio-ship Paladin", GAME_IMPERFECT_SOUND ) |
| 5157 | 6913 | GAME( 1990, sbsgomo, bioship, bioship, bioship, 0, ROT0, "UPL", "Space Battle Ship Gomorrah", GAME_IMPERFECT_SOUND ) |
| 5158 | 6914 | GAME( 1990, vandyke, 0, vandyke, vandyke, 0, ROT270, "UPL", "Vandyke (Japan)", GAME_IMPERFECT_SOUND ) |
| 5159 | 6915 | GAME( 1990, vandyjal, vandyke, vandyke, vandyke, 0, ROT270, "UPL (Jaleco license)", "Vandyke (Jaleco, Set 1)", GAME_IMPERFECT_SOUND ) |
| 5160 | 6916 | GAME( 1990, vandyja2, vandyke, vandyke, vandyke, 0, ROT270, "UPL (Jaleco license)", "Vandyke (Jaleco, Set 2)", GAME_IMPERFECT_SOUND ) |
| 5161 | 6917 | GAME( 1990, vandykeb, vandyke, vandykeb, vandyke, vandykeb, ROT270, "[UPL] (bootleg)", "Vandyke (bootleg with PIC16c57)", GAME_NOT_WORKING ) |
| 5162 | | GAME( 1991, blkheart, 0, macross, blkheart, blkheart, ROT0, "UPL", "Black Heart", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND ) // Playable but there are Still Protection Problems |
| 5163 | | GAME( 1991, blkhearj, blkheart,macross, blkheart, blkheart, ROT0, "UPL", "Black Heart (Japan)", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND ) // Playable but there are Still Protection Problems |
| 6918 | GAME( 1991, blkheart, 0, macross, blkheart, 0, ROT0, "UPL", "Black Heart", GAME_IMPERFECT_SOUND ) |
| 6919 | GAME( 1991, blkhearj, blkheart,macross, blkheart, 0, ROT0, "UPL", "Black Heart (Japan)", GAME_IMPERFECT_SOUND ) |
| 5164 | 6920 | GAME( 1991, acrobatm, 0, acrobatm, acrobatm, 0, ROT270, "UPL (Taito license)", "Acrobat Mission", GAME_IMPERFECT_SOUND ) |
| 5165 | 6921 | GAME( 1992, strahl, 0, strahl, strahl, 0, ROT0, "UPL", "Koutetsu Yousai Strahl (Japan set 1)", GAME_IMPERFECT_SOUND ) |
| 5166 | 6922 | GAME( 1992, strahla, strahl, strahl, strahl, 0, ROT0, "UPL", "Koutetsu Yousai Strahl (Japan set 2)", GAME_IMPERFECT_SOUND ) |
| r1463 | r1464 | |
| 5183 | 6939 | /* Non NMK boards */ |
| 5184 | 6940 | |
| 5185 | 6941 | // these use the seibu sound system (sound / music stolen from Raiden) rather than the bootleggers copying the nmk004 |
| 5186 | | GAME( 1990, mustangb, mustang, mustangb, mustang, mustang, ROT0, "bootleg", "US AAF Mustang (bootleg)", GAME_UNEMULATED_PROTECTION ) // Playable but there are Still Protection Problems |
| 6942 | GAME( 1990, mustangb, mustang, mustangb, mustang, 0, ROT0, "bootleg", "US AAF Mustang (bootleg)", GAME_UNEMULATED_PROTECTION ) // Playable but there are Still Protection Problems |
| 5187 | 6943 | GAME( 1991, tdragonb, tdragon, tdragonb, tdragonb, tdragonb, ROT270, "NMK / Tecmo", "Thunder Dragon (Bootleg)", 0 ) |
| 5188 | 6944 | |
| 5189 | 6945 | // these are from Comad, based on the Thunder Dragon code? |
| r1463 | r1464 | |
| 5191 | 6947 | GAME( 1996, airattck, 0, ssmissin, airattck, ssmissin, ROT270, "Comad", "Air Attack (set 1)", GAME_NO_COCKTAIL ) |
| 5192 | 6948 | GAME( 1996, airattca, airattck,ssmissin, airattck, ssmissin, ROT270, "Comad", "Air Attack (set 2)", GAME_NO_COCKTAIL ) |
| 5193 | 6949 | |
| 5194 | | // bee-oh board? |
| 6950 | // afega & clones |
| 6951 | GAME( 1995, twinactn, 0, twinactn, twinactn, 0, ROT0, "Afega", "Twin Action", 0 ) |
| 6952 | GAME( 1997, redhawk, stagger1, stagger1, stagger1, redhawk, ROT270, "Afega", "Red Hawk (US)", 0 ) |
| 6953 | GAME( 1997, redhawkb, stagger1, redhawkb, redhawkb, 0, ROT0, "bootleg", "Red Hawk (bootleg)", 0 ) |
| 6954 | GAME( 1998, stagger1, 0, stagger1, stagger1, 0, ROT270, "Afega", "Stagger I (Japan)", 0 ) |
| 6955 | GAME( 1998, grdnstrm, 0, grdnstrm, grdnstrm, grdnstrm, ROT270, "Afega", "Sen Jin - Guardian Storm (Korea)", 0 ) |
| 6956 | GAME( 1998, bubl2000, 0, bubl2000, bubl2000, bubl2000, ROT0, "Tuning", "Bubble 2000", 0 ) // on a tuning board (bootleg?) |
| 6957 | GAME( 1998, hotbubl, bubl2000, bubl2000, bubl2000, bubl2000, ROT0, "Pandora", "Hot Bubble" , 0 ) // on an afega board .. |
| 6958 | GAME( 1999, popspops, 0, popspops, popspops, grdnstrm, ROT0, "Afega", "Pop's Pop's", 0 ) |
| 6959 | GAME( 2000, mangchi, 0, bubl2000, mangchi, bubl2000, ROT0, "Afega", "Mang-Chi", 0 ) |
| 6960 | GAME( 2000, spec2k, 0, firehawk, spec2k, spec2k, ORIENTATION_FLIP_Y, "Yonatech", "Spectrum 2000 (Euro)", 0 ) |
| 6961 | GAME( 2001, firehawk, 0, firehawk, firehawk, 0, ORIENTATION_FLIP_Y, "ESD", "Fire Hawk", 0 ) |
| 6962 | |
| 6963 | // bee-oh board - different display / interrupt timing to others? |
| 5195 | 6964 | GAME( 1991, manybloc, 0, manybloc, manybloc, 0, ROT270, "Bee-Oh", "Many Block", GAME_NO_COCKTAIL | GAME_IMPERFECT_SOUND ) |
| 6965 | |