src/mame/drivers/gdrawpkr.c
| r1772 | r1773 | |
| 1 | | /********************************************************************************** |
| 2 | | |
| 3 | | |
| 4 | | GAMING DRAW POKER (CEI) |
| 5 | | Driver by Roberto Fresca. |
| 6 | | |
| 7 | | |
| 8 | | --- Technical Notes --- |
| 9 | | |
| 10 | | Name: Gaming Draw Poker. |
| 11 | | Version: V23.9 SCH.07-0T 01/14/85 |
| 12 | | Company: Cal Omega / Casino Electronics Inc. |
| 13 | | Year: 1981-1985 |
| 14 | | |
| 15 | | Hardware: |
| 16 | | |
| 17 | | CPU = 1x SY6502 ; M6502 compatible. |
| 18 | | CRCT = 1x SY6545 ; M6845 compatible mode. Doesn't seems that are using |
| 19 | | ; the first 4 bits of register R03 (HSync width). |
| 20 | | SND = 1x AY8912 ; AY8910 compatible. |
| 21 | | I/O = 2x PIAs SY6520/6820 ; M6821 compatible. |
| 22 | | Clk = 1x Xtal @10MHz |
| 23 | | |
| 24 | | |
| 25 | | *********************************************************************************** |
| 26 | | |
| 27 | | |
| 28 | | --- General Notes --- |
| 29 | | |
| 30 | | |
| 31 | | Gaming Draw Poker: |
| 32 | | |
| 33 | | Gaming Draw Poker, formerly known as Jack Potten's poker, is an evolution of the |
| 34 | | mentioned game. It was created by Cal Omega in 1981 for Casino Electronics Inc. |
| 35 | | Cal Omega was bought out by CEI (Casino Electronics Inc.), and CEI was bought by UCMC. |
| 36 | | |
| 37 | | This game was made before the CEI 906iii system. |
| 38 | | |
| 39 | | The game use the same GFX set that Jack Potten's poker for cards and have similar |
| 40 | | layout, but the game is different and the old discrete pitched sounds were replaced |
| 41 | | with a better set of sounds through a AY8910/12 implementation. The empty socket in |
| 42 | | the pcb is maybe for future upgrades instead of sound ROM, since sounds are hardcoded. |
| 43 | | |
| 44 | | Inputs are multiplexed and selected through PIA1, portB. |
| 45 | | |
| 46 | | In game, use "Stand" instead of "Deal/Draw" to conserve all cards without discards. |
| 47 | | To enter to TEST MODE press F2. Press "Discard 1" + "Discard 2" + "Discard 3" to exit. |
| 48 | | To enter the STATS MODE press "Show Stats". Press "Deal/Draw" to exit. |
| 49 | | To pass coin and hopper errors press "Hopper SW". Also keep it pressed to see the status. |
| 50 | | For payout, press "Manual Collect" an then "Payout" for each credit (manual mode). |
| 51 | | |
| 52 | | |
| 53 | | El Grande - 5 Card Draw: |
| 54 | | |
| 55 | | This game was created by Tuni Electro Service and was licenced to E.T. Marketing,Inc. |
| 56 | | This is the new version. The old one is still undumped, but looks like Golden Poker D-Up. |
| 57 | | |
| 58 | | Flyer: http://www.arcadeflyers.com/?page=thumbs&db=videodb&id=4542 |
| 59 | | |
| 60 | | The AY8912 is mapped to 0x840/0x841 but the game lacks of credits and bet sounds. |
| 61 | | The rest of sounds are ok. Maybe the missing ones are generated by discrete circuitry. |
| 62 | | |
| 63 | | Inputs are multiplexed and selected through PIA1, portB. |
| 64 | | |
| 65 | | There aren't meter and stats modes. Only for amusement, so... no payout. |
| 66 | | To clear credits press F2. |
| 67 | | To enter to TEST MODE press F2 twice. Press "Hold 1" + "Hold 2" + "Hold 3" to exit. |
| 68 | | |
| 69 | | |
| 70 | | |
| 71 | | ***********************************************************************************? |
| 72 | | |
| 73 | | |
| 74 | | Dumper notes (old) |
| 75 | | |
| 76 | | |
| 77 | | -- Gaming Draw Poker -------------------------------------------------------- |
| 78 | | |
| 79 | | Program roms are roms 23*.*, on the board, there is a number near each roms |
| 80 | | looks to be the address of the rom : |
| 81 | | |
| 82 | | 23-91 1800 |
| 83 | | 23-92 2000 |
| 84 | | 23-93 2800 |
| 85 | | 23-94 3000 |
| 86 | | 23-9 3800 |
| 87 | | |
| 88 | | Graphics are in roms CG*.*, there is no type indication on these rams, i hope |
| 89 | | i read them correctly. |
| 90 | | |
| 91 | | There is also 3 sets of switches on the board : |
| 92 | | |
| 93 | | SW1 1 300 SW2 1 OPT1 |
| 94 | | 2 600 2 OPT2 |
| 95 | | 3 1200 3 OPT3 |
| 96 | | 4 2400 4 OPT4 |
| 97 | | 5 4800 5 OPT5 |
| 98 | | 6 9600 6 DIS |
| 99 | | 7 - 7 +VPOL |
| 100 | | 8 - 8 +HPOL |
| 101 | | |
| 102 | | SW3 no indications on the board |
| 103 | | |
| 104 | | The sound rom is missing on the board :( |
| 105 | | |
| 106 | | |
| 107 | | -- El Grande 5 Card Draw ---------------------------------------------------- |
| 108 | | |
| 109 | | ROM text showed poker stuff and "TUNI" "1982" |
| 110 | | |
| 111 | | .u6 2716 |
| 112 | | .u7 2516 |
| 113 | | .u8 2516 |
| 114 | | .u9 2516 |
| 115 | | .u67 2516 |
| 116 | | .u68 2516 |
| 117 | | .u69 2716 |
| 118 | | .u70 2716 |
| 119 | | .u28 82s129 |
| 120 | | |
| 121 | | 6502 |
| 122 | | HD46505 |
| 123 | | AY-3-8912 |
| 124 | | MC6821P x2 |
| 125 | | TC5501 x2 |
| 126 | | 10MHz Crystal |
| 127 | | |
| 128 | | empty socket at u5 |
| 129 | | |
| 130 | | |
| 131 | | *********************************************************************************** |
| 132 | | |
| 133 | | |
| 134 | | *** Memory Map *** |
| 135 | | |
| 136 | | |
| 137 | | $0000 - $07FF NVRAM ; All registers and settings. |
| 138 | | $0840 - $0840 AY-8912 (R/C) ; Read/Control. |
| 139 | | $0841 - $0841 AY-8912 (W) ; Write. |
| 140 | | $0880 - $0880 CRTC6845 (A) ; MC6845 adressing. |
| 141 | | $0881 - $0881 CRTC6845 (R/W) ; MC6845 Read/Write. |
| 142 | | $08C4 - $08C7 PIA0 ; I/O Ports 0, 1, 2, 3. |
| 143 | | $08C8 - $08CB PIA1 ; I/O Port 4. |
| 144 | | |
| 145 | | $1000 - $13FF VideoRAM |
| 146 | | $1400 - $17FF ColorRAM |
| 147 | | |
| 148 | | $D800 - $FFFF ROM (gdrawpkr) |
| 149 | | |
| 150 | | ----- |
| 151 | | |
| 152 | | $2000 - $3FFF ROM (elgrande) |
| 153 | | $F800 - $FFFF ROM (elgrande) |
| 154 | | |
| 155 | | |
| 156 | | |
| 157 | | *** MC6545 Initialization *** |
| 158 | | |
| 159 | | ---------------------------------------------------------------------------------------------------------------------- |
| 160 | | register: R00 R01 R02 R03 R04 R05 R06 R07 R08 R09 R10 R11 R12 R13 R14 R15 R16 R17 |
| 161 | | ---------------------------------------------------------------------------------------------------------------------- |
| 162 | | value: 0x27 0x20 0x23 0x03 0x1F 0x04 0x1F 0x1F 0x00 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00. |
| 163 | | |
| 164 | | |
| 165 | | |
| 166 | | *** MC6545 conditional change for elgrande if 0x8c4 (PIA0) has bit7 activated *** |
| 167 | | |
| 168 | | --------------------------------------------------------- |
| 169 | | register: R00 R01 R02 R03 R04 R05 R06 R07 |
| 170 | | --------------------------------------------------------- |
| 171 | | value: 0x27 0x20 0x23 0x03 0x26 0x00 0x20 0x22 |
| 172 | | |
| 173 | | |
| 174 | | |
| 175 | | *********************************************************************************** |
| 176 | | |
| 177 | | |
| 178 | | UPDATES |
| 179 | | ------- |
| 180 | | |
| 181 | | |
| 182 | | [2007-09-15] |
| 183 | | |
| 184 | | - Added sound support to "El Grande - 5 Card Draw". |
| 185 | | - All crystals documented via #defines. |
| 186 | | - All CPU and sound clocks derived from #defined crystal values. |
| 187 | | - Splitted the driver to driver/video. |
| 188 | | - Some minor input cleanups. |
| 189 | | - Updated technical notes. |
| 190 | | |
| 191 | | |
| 192 | | [2007-08-13] |
| 193 | | |
| 194 | | - Added "El Grande - 5 Card Draw" (new). |
| 195 | | - Constructed a new memory map for this game. |
| 196 | | - Reworked a whole set of inputs for this game. |
| 197 | | - Patched some bad bits in GFX rom d1.u68 till a good dump appear. |
| 198 | | - Updated technical notes. |
| 199 | | |
| 200 | | |
| 201 | | [2007-07-23] |
| 202 | | |
| 203 | | - Cleaned up the inputs. |
| 204 | | - Changed the hold buttons to "discard" since they are in fact discard buttons. |
| 205 | | - Updated technical notes. |
| 206 | | |
| 207 | | |
| 208 | | [2007-03-24 to 2007-04-27] |
| 209 | | |
| 210 | | - Rearranged GFX in two different banks. |
| 211 | | - Decoded GFX properly. |
| 212 | | - Rewrote the memory map based on program ROMs analysis. |
| 213 | | - Hooked two SY6520/6280 (M6821) PIAs for I/O. |
| 214 | | - Hooked the SY6545 (6845) CRT controller. |
| 215 | | - Fixed size for screen total and visible area based on SY6545 CRTC registers. |
| 216 | | - Added partial inputs through PIAs. |
| 217 | | - Added proper sound through AY8910 (mapped at $0840-$0841). |
| 218 | | - Fixed AY8910 volume to avoid clips. |
| 219 | | - Proper colors through color PROM decode. |
| 220 | | - Demuxed inputs (thanks to Dox that pointed me in the right direction!) |
| 221 | | - Added some game-protection workaround. |
| 222 | | - Added NVRAM support. |
| 223 | | - Renamed driver, set and description to match the real game. |
| 224 | | - Added technical notes. |
| 225 | | |
| 226 | | |
| 227 | | TODO: |
| 228 | | |
| 229 | | - Fix lamps. |
| 230 | | |
| 231 | | |
| 232 | | ***********************************************************************************/ |
| 233 | | |
| 234 | | |
| 235 | | #define MASTER_CLOCK 10000000 |
| 236 | | |
| 237 | | #include "driver.h" |
| 238 | | #include "video/mc6845.h" |
| 239 | | #include "machine/6821pia.h" |
| 240 | | #include "sound/ay8910.h" |
| 241 | | |
| 242 | | /* from video */ |
| 243 | | WRITE8_HANDLER( gdrawpkr_videoram_w ); |
| 244 | | WRITE8_HANDLER( gdrawpkr_colorram_w ); |
| 245 | | WRITE8_HANDLER( gdrawpkr_mc6845_address_w ); |
| 246 | | READ8_HANDLER( gdrawpkr_mc6845_register_r ); |
| 247 | | WRITE8_HANDLER( gdrawpkr_mc6845_register_w ); |
| 248 | | PALETTE_INIT( gdrawpkr ); |
| 249 | | VIDEO_START( gdrawpkr ); |
| 250 | | VIDEO_UPDATE( gdrawpkr ); |
| 251 | | |
| 252 | | |
| 253 | | /************************* |
| 254 | | * Memory map information * |
| 255 | | *************************/ |
| 256 | | |
| 257 | | static ADDRESS_MAP_START( gdrawpkr_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 258 | | AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 259 | | AM_RANGE(0x0840, 0x0840) AM_WRITE(AY8910_control_port_0_w) |
| 260 | | AM_RANGE(0x0841, 0x0841) AM_WRITE(AY8910_write_port_0_w) |
| 261 | | AM_RANGE(0x0880, 0x0880) AM_WRITE(gdrawpkr_mc6845_address_w) |
| 262 | | AM_RANGE(0x0881, 0x0881) AM_READWRITE(gdrawpkr_mc6845_register_r, gdrawpkr_mc6845_register_w) |
| 263 | | AM_RANGE(0x08c4, 0x08c7) AM_READWRITE(pia_0_r, pia_0_w) |
| 264 | | AM_RANGE(0x08c8, 0x08cb) AM_READWRITE(pia_1_r, pia_1_w) |
| 265 | | AM_RANGE(0x1000, 0x13ff) AM_RAM AM_WRITE(gdrawpkr_videoram_w) AM_BASE(&videoram) |
| 266 | | AM_RANGE(0x1400, 0x17ff) AM_RAM AM_WRITE(gdrawpkr_colorram_w) AM_BASE(&colorram) |
| 267 | | AM_RANGE(0xd800, 0xffff) AM_ROM |
| 268 | | ADDRESS_MAP_END |
| 269 | | |
| 270 | | static ADDRESS_MAP_START( elgrande_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 271 | | AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 272 | | AM_RANGE(0x0840, 0x0840) AM_WRITE(AY8910_control_port_0_w) |
| 273 | | AM_RANGE(0x0841, 0x0841) AM_WRITE(AY8910_write_port_0_w) |
| 274 | | AM_RANGE(0x0880, 0x0880) AM_WRITE(gdrawpkr_mc6845_address_w) |
| 275 | | AM_RANGE(0x0881, 0x0881) AM_READWRITE(gdrawpkr_mc6845_register_r, gdrawpkr_mc6845_register_w) |
| 276 | | AM_RANGE(0x08c4, 0x08c7) AM_READWRITE(pia_0_r, pia_0_w) |
| 277 | | AM_RANGE(0x08c8, 0x08cb) AM_READWRITE(pia_1_r, pia_1_w) |
| 278 | | AM_RANGE(0x1000, 0x13ff) AM_RAM AM_WRITE(gdrawpkr_videoram_w) AM_BASE(&videoram) |
| 279 | | AM_RANGE(0x1400, 0x17ff) AM_RAM AM_WRITE(gdrawpkr_colorram_w) AM_BASE(&colorram) |
| 280 | | AM_RANGE(0x2000, 0x3fff) AM_ROM |
| 281 | | AM_RANGE(0xf800, 0xffff) AM_ROM |
| 282 | | ADDRESS_MAP_END |
| 283 | | |
| 284 | | |
| 285 | | /************************* |
| 286 | | * Input ports * |
| 287 | | *************************/ |
| 288 | | |
| 289 | | static INPUT_PORTS_START( gdrawpkr ) |
| 290 | | PORT_START_TAG("IN0-0") |
| 291 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) /* credits */ |
| 292 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Manual Collect") PORT_CODE(KEYCODE_7) |
| 293 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Double Up") PORT_CODE(KEYCODE_3) |
| 294 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Deal/Draw") PORT_CODE(KEYCODE_2) |
| 295 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Cancel Discards") PORT_CODE(KEYCODE_N) |
| 296 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON13 ) PORT_NAME("Stand") PORT_CODE(KEYCODE_E) |
| 297 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 298 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 299 | | |
| 300 | | PORT_START_TAG("IN0-1") |
| 301 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Payout") PORT_CODE(KEYCODE_Q) |
| 302 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 303 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Service") PORT_CODE(KEYCODE_8) |
| 304 | | // PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 3") PORT_CODE(KEYCODE_F) |
| 305 | | // PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 4") PORT_CODE(KEYCODE_G) |
| 306 | | // PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Bit 5") PORT_CODE(KEYCODE_H) |
| 307 | | PORT_BIT( 0x0c, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Test Mode") PORT_CODE(KEYCODE_F2) /* should be splitted? */ |
| 308 | | PORT_BIT( 0x14, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Hopper SW") PORT_CODE(KEYCODE_9) /* should be splitted? */ |
| 309 | | PORT_BIT( 0x24, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Show Stats") PORT_CODE(KEYCODE_0) /* should be splitted? */ |
| 310 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 311 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 312 | | |
| 313 | | PORT_START_TAG("IN0-2") |
| 314 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Discard 1") PORT_CODE(KEYCODE_Z) |
| 315 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Discard 2") PORT_CODE(KEYCODE_X) |
| 316 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON10 ) PORT_NAME("Discard 3") PORT_CODE(KEYCODE_C) |
| 317 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_NAME("Discard 4") PORT_CODE(KEYCODE_V) |
| 318 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON12 ) PORT_NAME("Discard 5") PORT_CODE(KEYCODE_B) |
| 319 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Small") PORT_CODE(KEYCODE_S) |
| 320 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 321 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 322 | | |
| 323 | | PORT_START_TAG("IN0-3") |
| 324 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 325 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Bet") PORT_CODE(KEYCODE_1) |
| 326 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Take") PORT_CODE(KEYCODE_4) |
| 327 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Big") PORT_CODE(KEYCODE_A) |
| 328 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 329 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 330 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 331 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 332 | | |
| 333 | | PORT_START_TAG("SW1") |
| 334 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 335 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 336 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 337 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 338 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 339 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 340 | | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 341 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 342 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 343 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 344 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 345 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 346 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 347 | | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 348 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 349 | | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 350 | | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 351 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 352 | | PORT_DIPNAME( 0xC0, 0x40, "Maximum Bet") |
| 353 | | PORT_DIPSETTING( 0x00, "5" ) |
| 354 | | PORT_DIPSETTING( 0x40, "10" ) |
| 355 | | PORT_DIPSETTING( 0x80, "40" ) |
| 356 | | PORT_DIPSETTING( 0xC0, "80" ) |
| 357 | | INPUT_PORTS_END |
| 358 | | |
| 359 | | static INPUT_PORTS_START( elgrande ) |
| 360 | | PORT_START_TAG("IN0-0") |
| 361 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 362 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 363 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Double Up") PORT_CODE(KEYCODE_3) |
| 364 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Deal/Draw") PORT_CODE(KEYCODE_2) |
| 365 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Cancel Holds") PORT_CODE(KEYCODE_N) |
| 366 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 367 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 368 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 369 | | |
| 370 | | PORT_START_TAG("IN0-1") |
| 371 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 372 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 373 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Service") PORT_CODE(KEYCODE_8) |
| 374 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 375 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 376 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 377 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 378 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 379 | | |
| 380 | | PORT_START_TAG("IN0-2") |
| 381 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) |
| 382 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Hold 2") PORT_CODE(KEYCODE_X) |
| 383 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON10 ) PORT_NAME("Hold 3") PORT_CODE(KEYCODE_C) |
| 384 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_NAME("Hold 4") PORT_CODE(KEYCODE_V) |
| 385 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON12 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B) |
| 386 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 387 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 388 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 389 | | |
| 390 | | PORT_START_TAG("IN0-3") |
| 391 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Test Mode") PORT_CODE(KEYCODE_F2) |
| 392 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Bet") PORT_CODE(KEYCODE_1) |
| 393 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Take") PORT_CODE(KEYCODE_4) |
| 394 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Odd") PORT_CODE(KEYCODE_A) |
| 395 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Even") PORT_CODE(KEYCODE_S) |
| 396 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 397 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 398 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 399 | | |
| 400 | | PORT_START_TAG("SW1") |
| 401 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 402 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 403 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 404 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 405 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 406 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 407 | | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 408 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 409 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 410 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 411 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 412 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 413 | | PORT_DIPNAME( 0x30, 0x20, "Minimum Winning Hand") |
| 414 | | PORT_DIPSETTING( 0x20, "Jacks or Better" ) |
| 415 | | PORT_DIPSETTING( 0x30, "Queens or Better" ) |
| 416 | | PORT_DIPSETTING( 0x00, "Kings or Better" ) |
| 417 | | PORT_DIPSETTING( 0x10, "Aces or Better" ) |
| 418 | | PORT_DIPNAME( 0xC0, 0x40, "Maximum Bet") |
| 419 | | PORT_DIPSETTING( 0x00, "5" ) |
| 420 | | PORT_DIPSETTING( 0x40, "10" ) |
| 421 | | PORT_DIPSETTING( 0x80, "20" ) |
| 422 | | PORT_DIPSETTING( 0xC0, "50" ) |
| 423 | | INPUT_PORTS_END |
| 424 | | |
| 425 | | |
| 426 | | /************************* |
| 427 | | * Graphics Layouts * |
| 428 | | *************************/ |
| 429 | | |
| 430 | | static const gfx_layout charlayout = |
| 431 | | { |
| 432 | | 8, 8, |
| 433 | | RGN_FRAC(1,1), |
| 434 | | 1, |
| 435 | | { 0 }, |
| 436 | | { 0, 1, 2, 3, 4, 5, 6, 7 }, |
| 437 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 438 | | 8*8 |
| 439 | | }; |
| 440 | | |
| 441 | | static const gfx_layout tilelayout = |
| 442 | | { |
| 443 | | 8, 8, |
| 444 | | RGN_FRAC(1,3), |
| 445 | | 3, |
| 446 | | { 0, RGN_FRAC(1,3), RGN_FRAC(2,3) }, /* bitplanes are separated */ |
| 447 | | { 0, 1, 2, 3, 4, 5, 6, 7 }, |
| 448 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 449 | | 8*8 |
| 450 | | }; |
| 451 | | |
| 452 | | |
| 453 | | /****************************** |
| 454 | | * Graphics Decode Information * |
| 455 | | ******************************/ |
| 456 | | |
| 457 | | static GFXDECODE_START( gdrawpkr ) |
| 458 | | GFXDECODE_ENTRY( REGION_GFX1, 0, charlayout, 0, 16 ) |
| 459 | | GFXDECODE_ENTRY( REGION_GFX2, 0, tilelayout, (8 * 3) + 128, 16 ) |
| 460 | | GFXDECODE_END |
| 461 | | |
| 462 | | |
| 463 | | /*********************** |
| 464 | | * Write Handlers * |
| 465 | | ***********************/ |
| 466 | | |
| 467 | | static int mux_data = 0; |
| 468 | | |
| 469 | | static READ8_HANDLER( mux_port_r ) |
| 470 | | { |
| 471 | | switch( mux_data&0xf0 ) /* bits 4-7 */ |
| 472 | | { |
| 473 | | case 0x10: return input_port_0_r(0); |
| 474 | | case 0x20: return input_port_1_r(0); |
| 475 | | case 0x40: return input_port_2_r(0); |
| 476 | | case 0x80: return input_port_3_r(0); |
| 477 | | } |
| 478 | | return 0xff; |
| 479 | | } |
| 480 | | |
| 481 | | static WRITE8_HANDLER( mux_w ) |
| 482 | | { |
| 483 | | mux_data = data ^ 0xff; /* inverted */ |
| 484 | | } |
| 485 | | |
| 486 | | |
| 487 | | /**** Lamps debug **** |
| 488 | | |
| 489 | | PIA0-B PIA1-A |
| 490 | | |
| 491 | | 0xff 0x7f = OFF |
| 492 | | 0xfd 0x7f = Deal |
| 493 | | 0xf1 0x7b = 12345 Holds |
| 494 | | 0xef 0x7f = Double Up & Take |
| 495 | | 0xff 0x7e = Big & Small |
| 496 | | |
| 497 | | 0xfe 0x7f = Hold 1 |
| 498 | | 0xfd 0x7f = Hold 2 |
| 499 | | 0xfb 0x7f = Hold 3 |
| 500 | | 0xf7 0x7f = Hold 4 |
| 501 | | 0xef 0x7f = Hold 5 |
| 502 | | 0xff 0x7e = Cancel |
| 503 | | 0xff 0x7d = Bet |
| 504 | | 0xff 0x7b = Take |
| 505 | | |
| 506 | | */ |
| 507 | | static WRITE8_HANDLER( lamps_a_w ) |
| 508 | | { |
| 509 | | output_set_lamp_value(0, 1-((data) & 1)); // 0 |
| 510 | | output_set_lamp_value(1, 1-((data >> 1) & 1)); // 1 |
| 511 | | output_set_lamp_value(2, 1-((data >> 2) & 1)); // 2 |
| 512 | | output_set_lamp_value(3, 1-((data >> 3) & 1)); // 3 |
| 513 | | output_set_lamp_value(4, 1-((data >> 4) & 1)); // 4 |
| 514 | | output_set_lamp_value(5, 1-((data >> 5) & 1)); // 5 |
| 515 | | output_set_lamp_value(6, 1-((data >> 6) & 1)); // 6 |
| 516 | | output_set_lamp_value(7, 1-((data >> 7) & 1)); // 7 |
| 517 | | } |
| 518 | | |
| 519 | | static WRITE8_HANDLER( lamps_b_w ) |
| 520 | | { |
| 521 | | output_set_lamp_value(8, 1-((data) & 1)); // 0 |
| 522 | | output_set_lamp_value(9, 1-((data >> 1) & 1)); // 1 |
| 523 | | output_set_lamp_value(10, 1-((data >> 2) & 1)); // 2 |
| 524 | | output_set_lamp_value(11, 1-((data >> 3) & 1)); // 3 |
| 525 | | output_set_lamp_value(12, 1-((data >> 4) & 1)); // 4 |
| 526 | | output_set_lamp_value(13, 1-((data >> 5) & 1)); // 5 |
| 527 | | output_set_lamp_value(14, 1-((data >> 6) & 1)); // 6 |
| 528 | | output_set_lamp_value(15, 1-((data >> 7) & 1)); // 7 |
| 529 | | } |
| 530 | | |
| 531 | | |
| 532 | | /*********************** |
| 533 | | * PIA Interfaces * |
| 534 | | ***********************/ |
| 535 | | |
| 536 | | static const pia6821_interface pia0_intf = |
| 537 | | { |
| 538 | | /* PIA inputs: A, B, CA1, CB1, CA2, CB2 */ |
| 539 | | mux_port_r, 0, 0, 0, 0, 0, |
| 540 | | |
| 541 | | /* PIA outputs: A, B, CA2, CB2 */ |
| 542 | | 0, lamps_a_w, 0, 0, |
| 543 | | |
| 544 | | /* PIA IRQs: A, B */ |
| 545 | | 0, 0 |
| 546 | | }; |
| 547 | | |
| 548 | | static const pia6821_interface pia1_intf = |
| 549 | | { |
| 550 | | /* PIA inputs: A, B, CA1, CB1, CA2, CB2 */ |
| 551 | | input_port_4_r, 0, 0, 0, 0, 0, /* 5 & 6 not tested */ |
| 552 | | |
| 553 | | /* PIA outputs: A, B, CA2, CB2 */ |
| 554 | | |
| 555 | | lamps_b_w, mux_w, 0, 0, |
| 556 | | |
| 557 | | /* PIA IRQs: A, B */ |
| 558 | | 0, 0 |
| 559 | | }; |
| 560 | | |
| 561 | | |
| 562 | | /************************* |
| 563 | | * Machine Driver * |
| 564 | | *************************/ |
| 565 | | |
| 566 | | static MACHINE_DRIVER_START( gdrawpkr ) |
| 567 | | // basic machine hardware |
| 568 | | MDRV_CPU_ADD_TAG("main", M6502, MASTER_CLOCK/12) /* guessing... */ |
| 569 | | MDRV_CPU_PROGRAM_MAP(gdrawpkr_map, 0) |
| 570 | | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 571 | | |
| 572 | | MDRV_NVRAM_HANDLER(generic_0fill) |
| 573 | | |
| 574 | | // video hardware |
| 575 | | |
| 576 | | MDRV_SCREEN_ADD("main", RASTER) |
| 577 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 578 | | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 579 | | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 580 | | MDRV_SCREEN_SIZE((39+1)*8, (31+1)*8) /* Taken from MC6845 init, registers 00 & 04. Normally programmed with (value-1) */ |
| 581 | | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 31*8-1) /* Taken from MC6845 init, registers 01 & 06 */ |
| 582 | | |
| 583 | | MDRV_GFXDECODE(gdrawpkr) |
| 584 | | MDRV_PALETTE_LENGTH(1024) |
| 585 | | |
| 586 | | MDRV_PALETTE_INIT(gdrawpkr) |
| 587 | | MDRV_VIDEO_START(gdrawpkr) |
| 588 | | MDRV_VIDEO_UPDATE(gdrawpkr) |
| 589 | | |
| 590 | | MDRV_DEVICE_ADD("crtc", MC6845) |
| 591 | | |
| 592 | | // sound hardware |
| 593 | | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 594 | | MDRV_SOUND_ADD(AY8912, MASTER_CLOCK/12) /* guessing again... */ |
| 595 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) |
| 596 | | |
| 597 | | MACHINE_DRIVER_END |
| 598 | | |
| 599 | | static MACHINE_DRIVER_START( elgrande ) |
| 600 | | MDRV_IMPORT_FROM(gdrawpkr) |
| 601 | | MDRV_CPU_MODIFY("main") |
| 602 | | MDRV_CPU_PROGRAM_MAP(elgrande_map, 0) |
| 603 | | MACHINE_DRIVER_END |
| 604 | | |
| 605 | | |
| 606 | | /************************* |
| 607 | | * Rom Load * |
| 608 | | *************************/ |
| 609 | | |
| 610 | | ROM_START( gdrawpkr ) |
| 611 | | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 612 | | ROM_LOAD( "23-91.u5", 0xd800, 0x0800, CRC(b49035e2) SHA1(b94a0245ca64d15b1496d1b272ffc0ce80f85526) ) |
| 613 | | ROM_LOAD( "23-92.u6", 0xe000, 0x0800, CRC(d9ffaa73) SHA1(e39d10121e16f89cd8d30a5391a14dc3d4b13a46) ) |
| 614 | | ROM_LOAD( "23-93.u7", 0xe800, 0x0800, CRC(f4e44280) SHA1(a03e5f03ed86c8ad7900fab0ef6a71c76eba3232) ) |
| 615 | | ROM_LOAD( "23-94.u8", 0xf000, 0x0800, CRC(8372f4d0) SHA1(de289b65cbe30c92b46fa87b9262ff7f9cfa0431) ) |
| 616 | | ROM_LOAD( "23-9.u9", 0xf800, 0x0800, CRC(bfcb934d) SHA1(b7cfa049bdd773368cb8326bcdfabbf474d15bb4) ) |
| 617 | | |
| 618 | | ROM_REGION( 0x0800, REGION_GFX1, ROMREGION_DISPOSE ) |
| 619 | | ROM_LOAD( "cg-0.u67", 0x0000, 0x0800, CRC(b626ad89) SHA1(551b75f4559d11a4f8f56e38982114a21c77d4e7) ) |
| 620 | | |
| 621 | | ROM_REGION( 0x1800, REGION_GFX2, ROMREGION_DISPOSE ) |
| 622 | | ROM_LOAD( "cg-2c.u70", 0x0000, 0x0800, CRC(f2f94661) SHA1(f37f7c0dff680fd02897dae64e13e297d0fdb3e7) ) |
| 623 | | ROM_LOAD( "cg-2b.u69", 0x0800, 0x0800, CRC(6bbb1e2d) SHA1(51ee282219bf84218886ad11a24bc6a8e7337527) ) |
| 624 | | ROM_LOAD( "cg-2a.u68", 0x1000, 0x0800, CRC(6e3e9b1d) SHA1(14eb8d14ce16719a6ad7d13db01e47c8f05955f0) ) |
| 625 | | |
| 626 | | ROM_REGION( 0x400, REGION_PROMS, 0 ) |
| 627 | | ROM_LOAD( "82s129n.u28", 0x0000, 0x0100, CRC(6db5a344) SHA1(5f1a81ac02a2a74252decd3bb95a5436cc943930) ) |
| 628 | | ROM_RELOAD( 0x0100, 0x0100 ) |
| 629 | | ROM_RELOAD( 0x0200, 0x0100 ) |
| 630 | | ROM_RELOAD( 0x0300, 0x0100 ) |
| 631 | | ROM_END |
| 632 | | |
| 633 | | ROM_START( elgrande ) |
| 634 | | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 635 | | ROM_LOAD( "d1.u6", 0x2000, 0x0800, CRC(8b6b505c) SHA1(5f89bb1b50b9dfacf23c50e3016b9258b0e15084) ) |
| 636 | | ROM_LOAD( "d1.u7", 0x2800, 0x0800, CRC(d803a978) SHA1(682b73c968ef57007397d3e5eb0e78a97722da5e) ) |
| 637 | | ROM_LOAD( "d1.u8", 0x3000, 0x0800, CRC(291fa93b) SHA1(1d57f736b11ddc916effde78e2cd08c313a62901) ) |
| 638 | | ROM_LOAD( "d1.u9", 0x3800, 0x0800, CRC(ec3309a7) SHA1(b8ab7f3f2edf2658ea633b2b557ea37517615399) ) |
| 639 | | ROM_RELOAD( 0xf800, 0x0800 ) /* for vectors/pointers */ |
| 640 | | |
| 641 | | ROM_REGION( 0x0800, REGION_GFX1, ROMREGION_DISPOSE ) |
| 642 | | ROM_LOAD( "d1.u67", 0x0000, 0x0800, CRC(a8ac979d) SHA1(f7299d3f7c4aded028a65ae4365c174f0e953824) ) |
| 643 | | |
| 644 | | ROM_REGION( 0x1800, REGION_GFX2, ROMREGION_DISPOSE ) |
| 645 | | ROM_LOAD( "d1.u70", 0x0000, 0x0800, CRC(4f12d424) SHA1(c43f1df757ac7dd76875245e73d47451d1f7f6f2) ) |
| 646 | | ROM_LOAD( "d1.u69", 0x0800, 0x0800, CRC(ed3c83b7) SHA1(93e2134de3d9f79a6cff0391c1a32fccd3840c3f) ) |
| 647 | | ROM_LOAD( "d1.u68", 0x1000, 0x0800, BAD_DUMP CRC(3ab70570) SHA1(5ff84015a78d15a5207499f84ce637e49bca136f) ) /* bad bits */ |
| 648 | | |
| 649 | | ROM_REGION( 0x0500, REGION_PROMS, 0 ) |
| 650 | | ROM_LOAD( "d1.u28", 0x0000, 0x0200, CRC(a6d43709) SHA1(cbff2cb60137462dc0b7c7719a64574218d96c62) ) |
| 651 | | ROM_RELOAD( 0x0100, 0x0200 ) |
| 652 | | ROM_RELOAD( 0x0200, 0x0200 ) |
| 653 | | ROM_RELOAD( 0x0300, 0x0200 ) |
| 654 | | ROM_END |
| 655 | | |
| 656 | | |
| 657 | | /************************* |
| 658 | | * Driver Init * |
| 659 | | *************************/ |
| 660 | | |
| 661 | | static DRIVER_INIT( gdrawpkr ) |
| 662 | | { |
| 663 | | /* Palette transformed by PLDs? */ |
| 664 | | int x; |
| 665 | | UINT8 *BPR = memory_region( REGION_PROMS ); |
| 666 | | |
| 667 | | for (x=0x0000;x<0x0400;x++) |
| 668 | | { |
| 669 | | if (BPR[x] == 0x07) |
| 670 | | BPR[x] = 0x04; /* blue background */ |
| 671 | | } |
| 672 | | |
| 673 | | /* Initializing PIAs... */ |
| 674 | | pia_config(0, &pia0_intf); |
| 675 | | pia_config(1, &pia1_intf); |
| 676 | | } |
| 677 | | |
| 678 | | static DRIVER_INIT( elgrande ) |
| 679 | | { |
| 680 | | int x; |
| 681 | | UINT8 *BPR = memory_region( REGION_PROMS ); |
| 682 | | UINT8 *ROM = memory_region( REGION_GFX2 ); |
| 683 | | |
| 684 | | /* Palette transformed by PLDs? */ |
| 685 | | for (x=0x0000;x<0x0400;x++) |
| 686 | | { |
| 687 | | if (BPR[x] == 0x07) |
| 688 | | BPR[x] = 0x00; /* black background */ |
| 689 | | } |
| 690 | | |
| 691 | | /* Temporary patch to fix some bad bits in ROM d1.u68 */ |
| 692 | | ROM[0x171c] = 0xff; |
| 693 | | ROM[0x171d] = 0xff; |
| 694 | | ROM[0x171e] = 0xff; |
| 695 | | ROM[0x1737] = 0xff; |
| 696 | | ROM[0x173d] = 0xff; |
| 697 | | |
| 698 | | /* Initializing PIAs... */ |
| 699 | | pia_config(0, &pia0_intf); |
| 700 | | pia_config(1, &pia1_intf); |
| 701 | | } |
| 702 | | |
| 703 | | |
| 704 | | /************************* |
| 705 | | * Game Drivers * |
| 706 | | *************************/ |
| 707 | | |
| 708 | | /* YEAR NAME PARENT MACHINE INPUT INIT ROT COMPANY FULLNAME FLAGS */ |
| 709 | | GAME( 1981, gdrawpkr, 0, gdrawpkr, gdrawpkr, gdrawpkr, ROT0, "Cal Omega / Casino Electronics Inc.", "Gaming Draw Poker", 0 ) |
| 710 | | GAME( 1982, elgrande, 0, elgrande, elgrande, elgrande, ROT0, "Tuni Electro Service / E.T. Marketing", "El Grande - 5 Card Draw (New)", 0 ) |
src/mame/drivers/yamato.c
| r1772 | r1773 | |
| 1 | | /* |
| 2 | | |
| 3 | | T.S. 17.12.2005: |
| 4 | | |
| 5 | | Yamato: |
| 6 | | ------- |
| 7 | | Added temporary bg gradient (bad colors/offset). |
| 8 | | |
| 9 | | Gradient table are stored in two(?) ROMs. |
| 10 | | Each table is 256 bytes long: 128 for normal |
| 11 | | and 128 bytes for flipped screen. |
| 12 | | Color format is unknown - probably direct RGB |
| 13 | | mapping of 8 or 16 (both roms) bits. Also table |
| 14 | | selection source is unknown. |
| 15 | | |
| 16 | | TODO: |
| 17 | | - bg gradient color decode & table selection |
| 18 | | |
| 19 | | |
| 20 | | Top Roller: |
| 21 | | ---------- |
| 22 | | It's made by the same developers as Yamato and use |
| 23 | | probably the same encrypted SEGA cpu as Yamato. |
| 24 | | |
| 25 | | lives - $6155 |
| 26 | | |
| 27 | | TODO: |
| 28 | | |
| 29 | | - COINB DSW is missing |
| 30 | | - few issues in cocktail mode |
| 31 | | - wrong colors (fg text layer) - game sometimes ("round" text , lives) updates only even columns of cell attribs... |
| 32 | | |
| 33 | | ------------------------------------------------------------------- |
| 34 | | |
| 35 | | |
| 36 | | Top Roller |
| 37 | | Jaleco |
| 38 | | |
| 39 | | Hardware : Original Jaleco board no 8307-B/8307-A(redump) |
| 40 | | |
| 41 | | Main CPU : Encrypted Z80 (probably 315-5018) |
| 42 | | Sound : AY-3-8910 |
| 43 | | |
| 44 | | ROMS CRC32 + positions : |
| 45 | | |
| 46 | | [9894374d] d5 |
| 47 | | [ef789f00] f5 |
| 48 | | [d45494ba] h5 |
| 49 | | [1cb48ea0] k5 |
| 50 | | [84139f46] l5 |
| 51 | | [e30c1dd8] m5 |
| 52 | | [904fffb6] d3 |
| 53 | | [94371cfb] f3 |
| 54 | | [8a8032a7] h3 |
| 55 | | [1e8914a6] k3 |
| 56 | | [b20a9fa2] l3 |
| 57 | | [7f989dc9] p3 |
| 58 | | [89327329] a4 bottom board 89327329 |
| 59 | | [7a945733] c4 bottom board |
| 60 | | [5f2c2a78] h4 bottom board bad dump / [1d9e3325] (8307-A) |
| 61 | | [ce3afe26] j4 bottom board |
| 62 | | |
| 63 | | */ |
| 64 | | |
| 65 | | |
| 66 | | #include "driver.h" |
| 67 | | #include "machine/segacrpt.h" |
| 68 | | #include "sound/ay8910.h" |
| 69 | | #include "includes/cclimber.h" |
| 70 | | |
| 71 | | static PALETTE_INIT( yamato ) |
| 72 | | { |
| 73 | | int i; |
| 74 | | |
| 75 | | /* chars - 12 bits RGB */ |
| 76 | | for (i = 0; i < 0x40; i++) |
| 77 | | { |
| 78 | | int bit0, bit1, bit2, bit3; |
| 79 | | int r, g, b; |
| 80 | | |
| 81 | | /* red component */ |
| 82 | | bit0 = (color_prom[i + 0x00] >> 0) & 0x01; |
| 83 | | bit1 = (color_prom[i + 0x00] >> 1) & 0x01; |
| 84 | | bit2 = (color_prom[i + 0x00] >> 2) & 0x01; |
| 85 | | bit3 = (color_prom[i + 0x00] >> 3) & 0x01; |
| 86 | | r = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 87 | | |
| 88 | | /* green component */ |
| 89 | | bit0 = (color_prom[i + 0x00] >> 4) & 0x01; |
| 90 | | bit1 = (color_prom[i + 0x00] >> 5) & 0x01; |
| 91 | | bit2 = (color_prom[i + 0x00] >> 6) & 0x01; |
| 92 | | bit3 = (color_prom[i + 0x00] >> 7) & 0x01; |
| 93 | | g = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 94 | | |
| 95 | | /* blue component */ |
| 96 | | bit0 = (color_prom[i + 0x40] >> 0) & 0x01; |
| 97 | | bit1 = (color_prom[i + 0x40] >> 1) & 0x01; |
| 98 | | bit2 = (color_prom[i + 0x40] >> 2) & 0x01; |
| 99 | | bit3 = (color_prom[i + 0x40] >> 3) & 0x01; |
| 100 | | b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3; |
| 101 | | |
| 102 | | palette_set_color(machine, i, MAKE_RGB(r, g, b)); |
| 103 | | } |
| 104 | | |
| 105 | | /* big sprite - 8 bits RGB */ |
| 106 | | for (i = 0; i < 0x20; i++) |
| 107 | | { |
| 108 | | int bit0, bit1, bit2; |
| 109 | | int r, g, b; |
| 110 | | |
| 111 | | /* red component */ |
| 112 | | bit0 = (color_prom[i + 0x80] >> 0) & 0x01; |
| 113 | | bit1 = (color_prom[i + 0x80] >> 1) & 0x01; |
| 114 | | bit2 = (color_prom[i + 0x80] >> 2) & 0x01; |
| 115 | | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 116 | | |
| 117 | | /* green component */ |
| 118 | | bit0 = (color_prom[i + 0x80] >> 3) & 0x01; |
| 119 | | bit1 = (color_prom[i + 0x80] >> 4) & 0x01; |
| 120 | | bit2 = (color_prom[i + 0x80] >> 5) & 0x01; |
| 121 | | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 122 | | |
| 123 | | /* blue component */ |
| 124 | | bit0 = 0; |
| 125 | | bit1 = (color_prom[i + 0x80] >> 6) & 0x01; |
| 126 | | bit2 = (color_prom[i + 0x80] >> 7) & 0x01; |
| 127 | | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 128 | | |
| 129 | | palette_set_color(machine, i + 0x40, MAKE_RGB(r, g, b)); |
| 130 | | } |
| 131 | | |
| 132 | | /* fake colors for bg gradient */ |
| 133 | | for (i = 0; i < 0x100; i++) |
| 134 | | palette_set_color(machine, i + 0x60, MAKE_RGB(0, 0, i)); |
| 135 | | } |
| 136 | | |
| 137 | | static PALETTE_INIT( toprollr ) |
| 138 | | { |
| 139 | | int i; |
| 140 | | |
| 141 | | for (i = 0; i < 32*5; i++) |
| 142 | | { |
| 143 | | int bit0,bit1,bit2; |
| 144 | | int r,g,b; |
| 145 | | |
| 146 | | /* red component */ |
| 147 | | bit0 = (color_prom[0] >> 0) & 0x01; |
| 148 | | bit1 = (color_prom[0] >> 1) & 0x01; |
| 149 | | bit2 = (color_prom[0] >> 2) & 0x01; |
| 150 | | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 151 | | |
| 152 | | /* green component */ |
| 153 | | bit0 = (color_prom[0] >> 3) & 0x01; |
| 154 | | bit1 = (color_prom[0] >> 4) & 0x01; |
| 155 | | bit2 = (color_prom[0] >> 5) & 0x01; |
| 156 | | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 157 | | |
| 158 | | /* blue component */ |
| 159 | | bit0 = 0; |
| 160 | | bit1 = (color_prom[0] >> 6) & 0x01; |
| 161 | | bit2 = (color_prom[0] >> 7) & 0x01; |
| 162 | | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 163 | | |
| 164 | | palette_set_color(machine, i, MAKE_RGB(r, g, b)); |
| 165 | | color_prom++; |
| 166 | | } |
| 167 | | |
| 168 | | } |
| 169 | | |
| 170 | | |
| 171 | | static int p0,p1; |
| 172 | | |
| 173 | | static WRITE8_HANDLER( p0_w ) |
| 174 | | { |
| 175 | | p0 = data; |
| 176 | | } |
| 177 | | static WRITE8_HANDLER( p1_w ) |
| 178 | | { |
| 179 | | p1 = data; |
| 180 | | } |
| 181 | | static READ8_HANDLER( p0_r ) |
| 182 | | { |
| 183 | | return p0; |
| 184 | | } |
| 185 | | static READ8_HANDLER( p1_r ) |
| 186 | | { |
| 187 | | return p1; |
| 188 | | } |
| 189 | | |
| 190 | | static WRITE8_HANDLER( flip_screen_x_w ) |
| 191 | | { |
| 192 | | flip_screen_x_set(data); |
| 193 | | } |
| 194 | | |
| 195 | | static WRITE8_HANDLER( flip_screen_y_w ) |
| 196 | | { |
| 197 | | flip_screen_y_set(data); |
| 198 | | } |
| 199 | | |
| 200 | | |
| 201 | | static ADDRESS_MAP_START( yamato_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 202 | | AM_RANGE(0x0000, 0x5fff) AM_READ(MRA8_ROM) |
| 203 | | AM_RANGE(0x6000, 0x6fff) AM_READ(MRA8_RAM) |
| 204 | | AM_RANGE(0x7000, 0x7fff) AM_READ(MRA8_ROM) |
| 205 | | AM_RANGE(0x8800, 0x8bff) AM_READ(MRA8_RAM) |
| 206 | | AM_RANGE(0x9000, 0x93ff) AM_READ(MRA8_RAM) /* video RAM */ |
| 207 | | AM_RANGE(0x9800, 0x9bff) AM_READ(MRA8_RAM) /* column scroll registers */ |
| 208 | | AM_RANGE(0x9c00, 0x9fff) AM_READ(MRA8_RAM) /* color RAM */ |
| 209 | | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) /* IN0 */ |
| 210 | | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) /* IN1 */ |
| 211 | | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) /* DSW */ |
| 212 | | AM_RANGE(0xb800, 0xb800) AM_READ(input_port_3_r) /* IN2 */ |
| 213 | | AM_RANGE(0xba00, 0xba00) AM_READ(input_port_4_r) /* IN3 (maybe a mirror of b800) */ |
| 214 | | ADDRESS_MAP_END |
| 215 | | |
| 216 | | static ADDRESS_MAP_START( yamato_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 217 | | AM_RANGE(0x0000, 0x5fff) AM_WRITE(MWA8_ROM) |
| 218 | | AM_RANGE(0x6000, 0x6fff) AM_WRITE(MWA8_RAM) |
| 219 | | AM_RANGE(0x7000, 0x7fff) AM_WRITE(MWA8_ROM) |
| 220 | | AM_RANGE(0x8800, 0x88ff) AM_WRITE(MWA8_RAM) AM_BASE(&cclimber_bsvideoram) AM_SIZE(&cclimber_bsvideoram_size) |
| 221 | | AM_RANGE(0x8900, 0x8bff) AM_WRITE(MWA8_RAM) /* not used, but initialized */ |
| 222 | | AM_RANGE(0x9000, 0x93ff) AM_WRITE(MWA8_RAM) AM_BASE(&videoram) AM_SIZE(&videoram_size) |
| 223 | | //AM_RANGE(0x9400, 0x97ff) AM_WRITE(MWA8_RAM) /* mirror address, used by Crazy Climber to draw windows */ |
| 224 | | /* 9800-9bff and 9c00-9fff share the same RAM, interleaved */ |
| 225 | | /* (9800-981f for scroll, 9c20-9c3f for color RAM, and so on) */ |
| 226 | | AM_RANGE(0x9800, 0x981f) AM_WRITE(MWA8_RAM) AM_BASE(&cclimber_column_scroll) |
| 227 | | AM_RANGE(0x9880, 0x989f) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 228 | | AM_RANGE(0x98dc, 0x98df) AM_WRITE(MWA8_RAM) AM_BASE(&cclimber_bigspriteram) |
| 229 | | AM_RANGE(0x9800, 0x9bff) AM_WRITE(MWA8_RAM) /* not used, but initialized */ |
| 230 | | AM_RANGE(0x9c00, 0x9fff) AM_WRITE(cclimber_colorram_w) AM_BASE(&colorram) |
| 231 | | AM_RANGE(0xa000, 0xa000) AM_WRITE(interrupt_enable_w) |
| 232 | | AM_RANGE(0xa001, 0xa001) AM_WRITE(flip_screen_x_w) |
| 233 | | AM_RANGE(0xa002, 0xa002) AM_WRITE(flip_screen_y_w) |
| 234 | | //AM_RANGE(0xa004, 0xa004) AM_WRITE(cclimber_sample_trigger_w) |
| 235 | | //AM_RANGE(0xa800, 0xa800) AM_WRITE(cclimber_sample_rate_w) |
| 236 | | //AM_RANGE(0xb000, 0xb000) AM_WRITE(cclimber_sample_volume_w) |
| 237 | | ADDRESS_MAP_END |
| 238 | | |
| 239 | | static ADDRESS_MAP_START( yamato_writeport, ADDRESS_SPACE_IO, 8 ) |
| 240 | | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 241 | | AM_RANGE(0x00, 0x00) AM_WRITE(p0_w) /* ??? */ |
| 242 | | AM_RANGE(0x01, 0x01) AM_WRITE(p1_w) /* ??? */ |
| 243 | | ADDRESS_MAP_END |
| 244 | | |
| 245 | | static ADDRESS_MAP_START( yamato_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 246 | | AM_RANGE(0x0000, 0x07ff) AM_READ(MRA8_ROM) |
| 247 | | AM_RANGE(0x5000, 0x53ff) AM_READ(MRA8_RAM) |
| 248 | | ADDRESS_MAP_END |
| 249 | | |
| 250 | | static ADDRESS_MAP_START( yamato_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 251 | | AM_RANGE(0x0000, 0x07ff) AM_WRITE(MWA8_ROM) |
| 252 | | AM_RANGE(0x5000, 0x53ff) AM_WRITE(MWA8_RAM) |
| 253 | | ADDRESS_MAP_END |
| 254 | | |
| 255 | | static ADDRESS_MAP_START( yamato_sound_readport, ADDRESS_SPACE_IO, 8 ) |
| 256 | | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 257 | | AM_RANGE(0x04, 0x04) AM_READ(p0_r) /* ??? */ |
| 258 | | AM_RANGE(0x08, 0x08) AM_READ(p1_r) /* ??? */ |
| 259 | | ADDRESS_MAP_END |
| 260 | | |
| 261 | | static ADDRESS_MAP_START( yamato_sound_writeport, ADDRESS_SPACE_IO, 8 ) |
| 262 | | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 263 | | AM_RANGE(0x00, 0x00) AM_WRITE(AY8910_control_port_0_w) |
| 264 | | AM_RANGE(0x01, 0x01) AM_WRITE(AY8910_write_port_0_w) |
| 265 | | AM_RANGE(0x02, 0x02) AM_WRITE(AY8910_control_port_1_w) |
| 266 | | AM_RANGE(0x03, 0x03) AM_WRITE(AY8910_write_port_1_w) |
| 267 | | ADDRESS_MAP_END |
| 268 | | |
| 269 | | /* Top Roller */ |
| 270 | | static int jaleco_rombank=0; |
| 271 | | |
| 272 | | static WRITE8_HANDLER(rombank_w) |
| 273 | | { |
| 274 | | jaleco_rombank&=~(1<<offset); |
| 275 | | jaleco_rombank|=(data&1)<<offset; |
| 276 | | |
| 277 | | if(jaleco_rombank<3) |
| 278 | | { |
| 279 | | memory_set_bank(1, jaleco_rombank); |
| 280 | | } |
| 281 | | } |
| 282 | | |
| 283 | | static ADDRESS_MAP_START( toprollr_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 284 | | AM_RANGE(0x0000, 0x5fff) AM_READ(MRA8_BANK1) |
| 285 | | AM_RANGE(0x6000, 0x6bff) AM_RAM |
| 286 | | AM_RANGE(0x8800, 0x88ff) AM_RAM AM_BASE(&cclimber_bsvideoram) AM_SIZE(&cclimber_bsvideoram_size) |
| 287 | | AM_RANGE(0x8c00, 0x8fff) AM_RAM AM_BASE(&toprollr_videoram3) |
| 288 | | AM_RANGE(0x9000, 0x93ff) AM_RAM AM_BASE(&videoram) |
| 289 | | AM_RANGE(0x9400, 0x97ff) AM_RAM AM_BASE(&toprollr_videoram4) |
| 290 | | AM_RANGE(0x9800, 0x987f) AM_RAM /* unused ? */ |
| 291 | | AM_RANGE(0x9880, 0x995f) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 292 | | AM_RANGE(0x99dc, 0x99df) AM_RAM AM_BASE(&cclimber_bigspriteram) |
| 293 | | AM_RANGE(0x9c00, 0x9fff) AM_RAM AM_BASE(&toprollr_videoram2) |
| 294 | | AM_RANGE(0xa000, 0xa000) AM_WRITE(interrupt_enable_w) AM_READ(input_port_0_r) /* IN0 */ |
| 295 | | AM_RANGE(0xa001, 0xa001) AM_WRITE(flip_screen_x_w) |
| 296 | | AM_RANGE(0xa002, 0xa002) AM_WRITE(flip_screen_y_w) |
| 297 | | AM_RANGE(0xa004, 0xa004) AM_WRITE(cclimber_sample_trigger_w) |
| 298 | | AM_RANGE(0xa005, 0xa006) AM_WRITE(rombank_w) |
| 299 | | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) AM_WRITE(cclimber_sample_rate_w) /* IN1 */ |
| 300 | | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) AM_WRITE(cclimber_sample_volume_w) /* DSW */ |
| 301 | | AM_RANGE(0xb800, 0xb800) AM_READ(input_port_3_r) /* IN2 */ |
| 302 | | AM_RANGE(0xc000, 0xffff) AM_ROM |
| 303 | | ADDRESS_MAP_END |
| 304 | | |
| 305 | | |
| 306 | | static ADDRESS_MAP_START( toprollr_io_map, ADDRESS_SPACE_IO, 8 ) |
| 307 | | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 308 | | AM_RANGE(0x08, 0x08) AM_WRITE(AY8910_control_port_0_w) |
| 309 | | AM_RANGE(0x09, 0x09) AM_WRITE(AY8910_write_port_0_w) |
| 310 | | AM_RANGE(0x0d, 0x0d) AM_NOP |
| 311 | | ADDRESS_MAP_END |
| 312 | | |
| 313 | | static INPUT_PORTS_START( yamato ) |
| 314 | | PORT_START /* IN0 */ |
| 315 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 316 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 317 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 318 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 319 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 320 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 321 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 322 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 323 | | |
| 324 | | PORT_START /* IN1 */ |
| 325 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 326 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 327 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 328 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL |
| 329 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 330 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 331 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 332 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 333 | | |
| 334 | | PORT_START /* DSW */ |
| 335 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 336 | | PORT_DIPSETTING( 0x00, "3" ) |
| 337 | | PORT_DIPSETTING( 0x01, "4" ) |
| 338 | | PORT_DIPSETTING( 0x02, "5" ) |
| 339 | | PORT_DIPSETTING( 0x03, "6" ) |
| 340 | | PORT_DIPNAME( 0x1c, 0x00, DEF_STR( Coin_A ) ) |
| 341 | | PORT_DIPSETTING( 0x0c, DEF_STR( 4C_1C ) ) |
| 342 | | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) |
| 343 | | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) |
| 344 | | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 345 | | PORT_DIPSETTING( 0x18, DEF_STR( 2C_3C ) ) |
| 346 | | PORT_DIPSETTING( 0x10, DEF_STR( 1C_2C ) ) |
| 347 | | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) |
| 348 | | PORT_DIPSETTING( 0x1c, DEF_STR( Free_Play ) ) |
| 349 | | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Bonus_Life ) ) |
| 350 | | PORT_DIPSETTING( 0x00, "Every 30000" ) |
| 351 | | PORT_DIPSETTING( 0x20, "Every 50000" ) |
| 352 | | PORT_DIPNAME( 0x40, 0x00, "Speed" ) |
| 353 | | PORT_DIPSETTING( 0x00, "Slow" ) |
| 354 | | PORT_DIPSETTING( 0x40, "Fast" ) |
| 355 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Cabinet ) ) |
| 356 | | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) |
| 357 | | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 358 | | |
| 359 | | PORT_START /* IN2 */ |
| 360 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) /* set 1 only */ |
| 361 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 362 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 363 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 364 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN3 ) /* set 1 only */ |
| 365 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 366 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 367 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 368 | | |
| 369 | | PORT_START /* IN3 */ |
| 370 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 371 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 372 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) |
| 373 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START2 ) |
| 374 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 375 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 376 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 377 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 378 | | INPUT_PORTS_END |
| 379 | | |
| 380 | | static INPUT_PORTS_START( toprollr ) |
| 381 | | PORT_START /* IN0 */ |
| 382 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 383 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 384 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 385 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 386 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 387 | | |
| 388 | | PORT_START /* IN1 */ |
| 389 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL |
| 390 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 391 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 392 | | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 393 | | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 394 | | |
| 395 | | PORT_START /* DSW */ |
| 396 | | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) |
| 397 | | PORT_DIPSETTING( 0x00, "3" ) |
| 398 | | PORT_DIPSETTING( 0x01, "4" ) |
| 399 | | PORT_DIPSETTING( 0x02, "5" ) |
| 400 | | PORT_DIPSETTING( 0x03, "6" ) |
| 401 | | PORT_DIPNAME( 0x1c, 0x00, DEF_STR( Coin_A ) ) |
| 402 | | PORT_DIPSETTING( 0x0c, DEF_STR( 4C_1C ) ) |
| 403 | | PORT_DIPSETTING( 0x08, DEF_STR( 3C_1C ) ) |
| 404 | | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) |
| 405 | | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 406 | | PORT_DIPSETTING( 0x18, DEF_STR( 2C_3C ) ) |
| 407 | | PORT_DIPSETTING( 0x10, DEF_STR( 1C_2C ) ) |
| 408 | | PORT_DIPSETTING( 0x14, DEF_STR( 1C_3C ) ) |
| 409 | | PORT_DIPSETTING( 0x1c, DEF_STR( Free_Play ) ) |
| 410 | | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Bonus_Life ) ) |
| 411 | | PORT_DIPSETTING( 0x00, "Every 30000" ) |
| 412 | | PORT_DIPSETTING( 0x20, "Every 50000" ) |
| 413 | | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Difficulty ) ) |
| 414 | | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) |
| 415 | | PORT_DIPSETTING( 0x40, DEF_STR( Hard ) ) |
| 416 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Cabinet ) ) |
| 417 | | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) |
| 418 | | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) |
| 419 | | |
| 420 | | PORT_START /* IN2 */ |
| 421 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 422 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 423 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) |
| 424 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) |
| 425 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN3 ) |
| 426 | | |
| 427 | | |
| 428 | | INPUT_PORTS_END |
| 429 | | |
| 430 | | static const gfx_layout charlayout = |
| 431 | | { |
| 432 | | 8,8, /* 8*8 characters */ |
| 433 | | 512, /* 512 characters (256 in Crazy Climber) */ |
| 434 | | 2, /* 2 bits per pixel */ |
| 435 | | { 0, 512*8*8 }, /* the two bitplanes are separated */ |
| 436 | | { 0, 1, 2, 3, 4, 5, 6, 7 }, /* pretty straightforward layout */ |
| 437 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 438 | | 8*8 /* every char takes 8 consecutive bytes */ |
| 439 | | }; |
| 440 | | static const gfx_layout bscharlayout = |
| 441 | | { |
| 442 | | 8,8, /* 8*8 characters */ |
| 443 | | 512,//256, /* 256 characters */ |
| 444 | | |
| 445 | | |
| 446 | | 2, /* 2 bits per pixel */ |
| 447 | | { 0, 512*8*8 }, /* the bitplanes are separated */ |
| 448 | | { 0, 1, 2, 3, 4, 5, 6, 7 }, /* pretty straightforward layout */ |
| 449 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 450 | | 8*8 /* every char takes 8 consecutive bytes */ |
| 451 | | }; |
| 452 | | static const gfx_layout spritelayout = |
| 453 | | { |
| 454 | | 16,16, /* 16*16 sprites */ |
| 455 | | 128, /* 128 sprites (64 in Crazy Climber) */ |
| 456 | | 2, /* 2 bits per pixel */ |
| 457 | | { 0, 128*16*16 }, /* the bitplanes are separated */ |
| 458 | | { 0, 1, 2, 3, 4, 5, 6, 7, /* pretty straightforward layout */ |
| 459 | | 8*8+0, 8*8+1, 8*8+2, 8*8+3, 8*8+4, 8*8+5, 8*8+6, 8*8+7 }, |
| 460 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, |
| 461 | | 16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8 }, |
| 462 | | 32*8 /* every sprite takes 32 consecutive bytes */ |
| 463 | | }; |
| 464 | | |
| 465 | | |
| 466 | | static const gfx_layout toprollr_charlayout = |
| 467 | | { |
| 468 | | 8,8, |
| 469 | | RGN_FRAC(1,2), |
| 470 | | 2, |
| 471 | | { RGN_FRAC(1,2),0 }, |
| 472 | | { 0, 1, 2, 3, 4, 5, 6, 7 }, |
| 473 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 474 | | 8*8 |
| 475 | | }; |
| 476 | | |
| 477 | | static const gfx_layout toprollr_spritelayout = |
| 478 | | { |
| 479 | | 16,16, /* 16*16 sprites */ |
| 480 | | RGN_FRAC(1,2), /* 128 sprites (64 in Crazy Climber) */ |
| 481 | | 2, /* 2 bits per pixel */ |
| 482 | | { RGN_FRAC(1,2),0 }, /* the bitplanes are separated */ |
| 483 | | { 0, 1, 2, 3, 4, 5, 6, 7, /* pretty straightforward layout */ |
| 484 | | 8*8+0, 8*8+1, 8*8+2, 8*8+3, 8*8+4, 8*8+5, 8*8+6, 8*8+7 }, |
| 485 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, |
| 486 | | 16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8 }, |
| 487 | | 32*8 /* every sprite takes 32 consecutive bytes */ |
| 488 | | }; |
| 489 | | |
| 490 | | |
| 491 | | static GFXDECODE_START( yamato ) |
| 492 | | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, charlayout, 0, 16 ) /* char set #1 */ |
| 493 | | GFXDECODE_ENTRY( REGION_GFX1, 0x2000, charlayout, 0, 16 ) /* char set #2 */ |
| 494 | | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, bscharlayout, 16*4, 8 ) /* big sprite char set */ |
| 495 | | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, spritelayout, 0, 16 ) /* sprite set #1 */ |
| 496 | | GFXDECODE_ENTRY( REGION_GFX1, 0x2000, spritelayout, 0, 16 ) /* sprite set #2 */ |
| 497 | | GFXDECODE_END |
| 498 | | |
| 499 | | static GFXDECODE_START( toprollr ) |
| 500 | | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, toprollr_charlayout, 0, 40 ) |
| 501 | | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, toprollr_charlayout, 0, 40 ) |
| 502 | | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, toprollr_spritelayout, 0, 40 ) |
| 503 | | GFXDECODE_ENTRY( REGION_GFX3, 0x0000, toprollr_charlayout, 0, 40 ) |
| 504 | | GFXDECODE_END |
| 505 | | |
| 506 | | static MACHINE_DRIVER_START( yamato ) |
| 507 | | |
| 508 | | /* basic machine hardware */ |
| 509 | | MDRV_CPU_ADD(Z80, 3072000) /* 3.072 MHz ? */ |
| 510 | | MDRV_CPU_PROGRAM_MAP(yamato_readmem,yamato_writemem) |
| 511 | | MDRV_CPU_IO_MAP(0,yamato_writeport) |
| 512 | | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 513 | | |
| 514 | | MDRV_CPU_ADD(Z80, 3072000) |
| 515 | | /* audio CPU */ /* 3.072 MHz ? */ |
| 516 | | MDRV_CPU_PROGRAM_MAP(yamato_sound_readmem,yamato_sound_writemem) |
| 517 | | MDRV_CPU_IO_MAP(yamato_sound_readport,yamato_sound_writeport) |
| 518 | | |
| 519 | | /* video hardware */ |
| 520 | | MDRV_SCREEN_ADD("main", RASTER) |
| 521 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 522 | | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 523 | | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 524 | | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 525 | | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) |
| 526 | | |
| 527 | | MDRV_GFXDECODE(yamato) |
| 528 | | MDRV_PALETTE_LENGTH(96+256) |
| 529 | | |
| 530 | | MDRV_PALETTE_INIT(yamato) |
| 531 | | MDRV_VIDEO_START(generic) |
| 532 | | MDRV_VIDEO_UPDATE(yamato) |
| 533 | | |
| 534 | | /* sound hardware */ |
| 535 | | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 536 | | |
| 537 | | MDRV_SOUND_ADD(AY8910, 1536000) |
| 538 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 539 | | |
| 540 | | MDRV_SOUND_ADD(AY8910, 1536000) |
| 541 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 542 | | MACHINE_DRIVER_END |
| 543 | | |
| 544 | | static MACHINE_DRIVER_START( toprollr ) |
| 545 | | |
| 546 | | /* basic machine hardware */ |
| 547 | | MDRV_CPU_ADD(Z80, 3072000) |
| 548 | | MDRV_CPU_PROGRAM_MAP(toprollr_map,0) |
| 549 | | MDRV_CPU_IO_MAP(toprollr_io_map,0) |
| 550 | | MDRV_CPU_VBLANK_INT(nmi_line_pulse,1) |
| 551 | | |
| 552 | | /* video hardware */ |
| 553 | | |
| 554 | | |
| 555 | | MDRV_SCREEN_ADD("main", RASTER) |
| 556 | | MDRV_SCREEN_REFRESH_RATE(60) |
| 557 | | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 558 | | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 559 | | MDRV_SCREEN_SIZE(32*8, 32*8) |
| 560 | | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 2*8, 30*8-1) |
| 561 | | |
| 562 | | MDRV_GFXDECODE(toprollr) |
| 563 | | MDRV_PALETTE_LENGTH(32*5) |
| 564 | | MDRV_PALETTE_INIT(toprollr) |
| 565 | | |
| 566 | | MDRV_VIDEO_START(toprollr) |
| 567 | | MDRV_VIDEO_UPDATE(toprollr) |
| 568 | | |
| 569 | | /* sound hardware */ |
| 570 | | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 571 | | |
| 572 | | MDRV_SOUND_ADD(AY8910, 1536000) |
| 573 | | MDRV_SOUND_CONFIG(cclimber_ay8910_interface) |
| 574 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60) |
| 575 | | |
| 576 | | MDRV_SOUND_ADD(SAMPLES, 0) |
| 577 | | MDRV_SOUND_CONFIG(cclimber_samples_interface) |
| 578 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) |
| 579 | | MACHINE_DRIVER_END |
| 580 | | |
| 581 | | |
| 582 | | ROM_START( yamato ) |
| 583 | | ROM_REGION( 2*0x10000, REGION_CPU1, 0 ) /* 64k for code + 64k for decrypted opcodes */ |
| 584 | | ROM_LOAD( "2.5de", 0x0000, 0x2000, CRC(20895096) SHA1(af76786e3c519e710899f143d46c53087e9817c7) ) |
| 585 | | ROM_LOAD( "3.5f", 0x2000, 0x2000, CRC(57a696f9) SHA1(28ea80fb100ac92295fc3eb318617d7cb014408d) ) |
| 586 | | ROM_LOAD( "4.5jh", 0x4000, 0x2000, CRC(59a468e8) SHA1(a79cdee6efefd87a356cc8d710f8050bc12e07c3) ) |
| 587 | | /* hole at 6000-6fff */ |
| 588 | | ROM_LOAD( "11.5a", 0x7000, 0x1000, CRC(35987485) SHA1(1f0cb545bbd52982cbf801bc1dd2c4087af2f5f7) ) |
| 589 | | |
| 590 | | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 591 | | ROM_LOAD( "1.5v", 0x0000, 0x0800, CRC(3aad9e3c) SHA1(37b0414b265397881bb45b166ecab85880d1358d) ) |
| 592 | | |
| 593 | | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 594 | | ROM_LOAD( "10.11k", 0x0000, 0x1000, CRC(161121f5) SHA1(017c5c6b773b0ae1d0be52e4bac90b699ea196dd) ) |
| 595 | | ROM_CONTINUE( 0x2000, 0x1000 ) |
| 596 | | ROM_LOAD( "9.11h", 0x1000, 0x1000, CRC(56e84cc4) SHA1(c48e0e5460376d6b34173c42a27907ef12218182) ) |
| 597 | | ROM_CONTINUE( 0x3000, 0x1000 ) |
| 598 | | |
| 599 | | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 600 | | ROM_LOAD( "8.11c", 0x0000, 0x1000, CRC(28024d9a) SHA1(c871c4d74be72a8bfea99e89d43f91922f4b734b) ) |
| 601 | | ROM_LOAD( "7.11a", 0x1000, 0x1000, CRC(4a179790) SHA1(7fb6b033de939ff8bd13055c073311dca2c1a6fe) ) |
| 602 | | |
| 603 | | ROM_REGION( 0x2000, REGION_USER1, 0 ) |
| 604 | | ROM_LOAD( "5.5lm", 0x0000, 0x1000, CRC(7761ad24) SHA1(98878b19addd142d35718080eece05eaaee0388d) ) /* ?? */ |
| 605 | | ROM_LOAD( "6.5n", 0x1000, 0x1000, CRC(da48444c) SHA1(a43e672ce262eb817fb4e5715ef4fb304a6a2815) ) |
| 606 | | |
| 607 | | ROM_REGION( 0x00a0, REGION_PROMS, 0 ) |
| 608 | | ROM_LOAD( "1.bpr", 0x0000, 0x0020, CRC(ef2053ab) SHA1(2006cbf003f90a8e75f39047a88a3bba85d78e80) ) |
| 609 | | ROM_LOAD( "2.bpr", 0x0020, 0x0020, CRC(2281d39f) SHA1(e9b568bdacf7ab611801cf42ea5c7624f5440ef6) ) |
| 610 | | ROM_LOAD( "3.bpr", 0x0040, 0x0020, CRC(9e6341e3) SHA1(2e7a4d3c1f40d6089735734b9d9de2ca57fb73c7) ) |
| 611 | | ROM_LOAD( "4.bpr", 0x0060, 0x0020, CRC(1c97dc0b) SHA1(fe8e0a91172abdd2d14b199da144306a9b944372) ) |
| 612 | | ROM_LOAD( "5.bpr", 0x0080, 0x0020, CRC(edd6c05f) SHA1(b95db8aaf74fe175d1179f0d85f79242b16f5fb4) ) |
| 613 | | ROM_END |
| 614 | | |
| 615 | | ROM_START( yamato2 ) |
| 616 | | ROM_REGION( 2*0x10000, REGION_CPU1, 0 ) /* 64k for code + 64k for decrypted opcodes */ |
| 617 | | ROM_LOAD( "2-2.5de", 0x0000, 0x2000, CRC(93da1d52) SHA1(21b72856ebbd969e4e075b52719e6acdbd1bc4c5) ) |
| 618 | | ROM_LOAD( "3-2.5f", 0x2000, 0x2000, CRC(31e73821) SHA1(e582c9fcea1b29d43f65b6aa67e1895c38d2736c) ) |
| 619 | | ROM_LOAD( "4-2.5jh", 0x4000, 0x2000, CRC(fd7bcfc3) SHA1(5037170cb3a9824794e90d74def92b0b25d45caa) ) |
| 620 | | /* hole at 6000-6fff */ |
| 621 | | /* 7000-7fff not present here */ |
| 622 | | |
| 623 | | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 624 | | ROM_LOAD( "1.5v", 0x0000, 0x0800, CRC(3aad9e3c) SHA1(37b0414b265397881bb45b166ecab85880d1358d) ) |
| 625 | | |
| 626 | | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 627 | | ROM_LOAD( "10.11k", 0x0000, 0x1000, CRC(161121f5) SHA1(017c5c6b773b0ae1d0be52e4bac90b699ea196dd) ) |
| 628 | | ROM_CONTINUE( 0x2000, 0x1000 ) |
| 629 | | ROM_LOAD( "9.11h", 0x1000, 0x1000, CRC(56e84cc4) SHA1(c48e0e5460376d6b34173c42a27907ef12218182) ) |
| 630 | | ROM_CONTINUE( 0x3000, 0x1000 ) |
| 631 | | |
| 632 | | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 633 | | ROM_LOAD( "8.11c", 0x0000, 0x1000, CRC(28024d9a) SHA1(c871c4d74be72a8bfea99e89d43f91922f4b734b) ) |
| 634 | | ROM_LOAD( "7.11a", 0x1000, 0x1000, CRC(4a179790) SHA1(7fb6b033de939ff8bd13055c073311dca2c1a6fe) ) |
| 635 | | |
| 636 | | ROM_REGION( 0x2000, REGION_USER1, 0 ) |
| 637 | | ROM_LOAD( "5.5lm", 0x0000, 0x1000, CRC(7761ad24) SHA1(98878b19addd142d35718080eece05eaaee0388d) ) /* ?? */ |
| 638 | | ROM_LOAD( "6.5n", 0x1000, 0x1000, CRC(da48444c) SHA1(a43e672ce262eb817fb4e5715ef4fb304a6a2815) ) |
| 639 | | |
| 640 | | ROM_REGION( 0x00a0, REGION_PROMS, 0 ) |
| 641 | | ROM_LOAD( "1.bpr", 0x0000, 0x0020, CRC(ef2053ab) SHA1(2006cbf003f90a8e75f39047a88a3bba85d78e80) ) |
| 642 | | ROM_LOAD( "2.bpr", 0x0020, 0x0020, CRC(2281d39f) SHA1(e9b568bdacf7ab611801cf42ea5c7624f5440ef6) ) |
| 643 | | ROM_LOAD( "3.bpr", 0x0040, 0x0020, CRC(9e6341e3) SHA1(2e7a4d3c1f40d6089735734b9d9de2ca57fb73c7) ) |
| 644 | | ROM_LOAD( "4.bpr", 0x0060, 0x0020, CRC(1c97dc0b) SHA1(fe8e0a91172abdd2d14b199da144306a9b944372) ) |
| 645 | | ROM_LOAD( "5.bpr", 0x0080, 0x0020, CRC(edd6c05f) SHA1(b95db8aaf74fe175d1179f0d85f79242b16f5fb4) ) |
| 646 | | ROM_END |
| 647 | | |
| 648 | | ROM_START( toprollr ) |
| 649 | | ROM_REGION( 0x10000*2, REGION_CPU1, 0 ) |
| 650 | | ROM_LOAD( "10.k3", 0xc000, 0x2000, CRC(1e8914a6) SHA1(ec17f185f890d04ce75a5d8edf8b32da60e7a8d8) ) |
| 651 | | ROM_LOAD( "11.l3", 0xe000, 0x2000, CRC(b20a9fa2) SHA1(accd3296447eca002b0808e7b02832f5e35407e8) ) |
| 652 | | |
| 653 | | ROM_REGION( 0x04000, REGION_GFX1, ROMREGION_DISPOSE ) |
| 654 | | ROM_LOAD( "15.h4", 0x0000, 0x2000, CRC(1d9e3325) SHA1(e7f6863aa2ba2aeec40cfcc5cf6c69e947c185b5) ) |
| 655 | | ROM_LOAD( "16.j4", 0x2000, 0x2000, CRC(ce3afe26) SHA1(7de00720f091537c64cc0fec687c061de3a8b1a3) ) |
| 656 | | |
| 657 | | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) |
| 658 | | ROM_LOAD( "5.l5", 0x0000, 0x1000, CRC(84139f46) SHA1(976f781fb279dd540778708174b942a263f16443) ) |
| 659 | | ROM_LOAD( "6.m5", 0x1000, 0x1000, CRC(e30c1dd8) SHA1(1777bf98625153c9b191020860e4e1839b46b998) ) |
| 660 | | |
| 661 | | ROM_REGION( 0x04000, REGION_GFX3, ROMREGION_DISPOSE ) |
| 662 | | ROM_LOAD( "13.a4", 0x0000, 0x2000, CRC(89327329) SHA1(555331a3136aa8c5bb35b97dd54bc59da067be57) ) |
| 663 | | ROM_LOAD( "14.c4", 0x2000, 0x2000, CRC(7a945733) SHA1(14187ba303aecf0a812c425c34d8edda3deaa2b5) ) |
| 664 | | |
| 665 | | ROM_REGION( 0x12000, REGION_USER1, 0 ) |
| 666 | | ROM_LOAD( "2.f5", 0x00000, 0x02000, CRC(ef789f00) SHA1(424d69584d391ee7b9ad5db7ee6ced97d69897d4) ) |
| 667 | | ROM_LOAD( "8.f3", 0x02000, 0x02000, CRC(94371cfb) SHA1(cb501c36b213c995a4048b3a96c85848c556cd05) ) |
| 668 | | ROM_LOAD( "4.k5", 0x04000, 0x02000, CRC(1cb48ea0) SHA1(fdc75075112042ec84a7d1b3e5b5a6db1d1cb871) ) |
| 669 | | ROM_COPY( REGION_USER1, 0x04000, 0x0a000, 0x02000 ) |
| 670 | | ROM_COPY( REGION_USER1, 0x04000, 0x10000, 0x02000 ) |
| 671 | | ROM_LOAD( "3.h5", 0x06000, 0x02000, CRC(d45494ba) SHA1(6e235b34f9457acadad6d4e27799978bc2e3db08) ) |
| 672 | | ROM_LOAD( "9.h3", 0x08000, 0x02000, CRC(8a8032a7) SHA1(d6642d72645c613c21f65bbbe1560d0437d41f43) ) |
| 673 | | ROM_LOAD( "1.d5", 0x0c000, 0x02000, CRC(9894374d) SHA1(173de4abbc3fb5d522aa6d6d5caf8e4d54f2a598) ) |
| 674 | | ROM_LOAD( "7.d3", 0x0e000, 0x02000, CRC(904fffb6) SHA1(5528bc2a4d2fe8672428fd4725644265f0d57ded) ) |
| 675 | | |
| 676 | | ROM_REGION( 0x2000, REGION_SOUND1, 0 ) |
| 677 | | ROM_LOAD( "12.p3", 0x0000, 0x2000, CRC(7f989dc9) SHA1(3b4d18cbb992872b3cf8f5eaf5381ed3a9468cc1) ) |
| 678 | | |
| 679 | | ROM_REGION( 0x01a0, REGION_PROMS, 0 ) |
| 680 | | ROM_LOAD( "prom.a1", 0x0000, 0x0020, CRC(7d626d6c) SHA1(7c7202d0ec5bf0381e7104eef53afa5fa4596a29) ) //00-07 big sprites |
| 681 | | ROM_LOAD( "prom.p2", 0x0020, 0x0020, CRC(42e828fa) SHA1(81250b1f7c3956b3902324adbbaf3b5989e854ee) ) //08-0f sprites + fg (wrong?) |
| 682 | | ROM_LOAD( "prom.r2", 0x0040, 0x0020, CRC(99b87eed) SHA1(06c3164d681fe4aff0338c0dad1a921f7fe7369d) ) //10-17 sprites |
| 683 | | ROM_LOAD( "prom.p9", 0x0060, 0x0020, CRC(eb399c02) SHA1(bf3d6c6dd982cb54446cf8a010b7adb949514bdb) ) //18-1f bg |
| 684 | | ROM_LOAD( "prom.n9", 0x0080, 0x0020, CRC(fb03ea99) SHA1(4dcef86106cef713dfcbd965072bfa8fe4b68e15) ) //20-27 bg |
| 685 | | ROM_LOAD( "prom.s9", 0x00a0, 0x0100, CRC(abf4c5fb) SHA1(a953f14642d4b72328293b36bc3c65b13491ffff) ) //unknown prom (filled with 2 bit vals) |
| 686 | | |
| 687 | | ROM_END |
| 688 | | |
| 689 | | static DRIVER_INIT( yamato ) |
| 690 | | { |
| 691 | | yamato_decode(); |
| 692 | | } |
| 693 | | |
| 694 | | static DRIVER_INIT( toprollr ) |
| 695 | | { |
| 696 | | toprollr_decode(); |
| 697 | | } |
| 698 | | |
| 699 | | GAME( 1983, yamato, 0, yamato, yamato, yamato, ROT90, "Sega", "Yamato (US)", GAME_IMPERFECT_GRAPHICS ) |
| 700 | | GAME( 1983, yamato2, yamato, yamato, yamato, yamato, ROT90, "Sega", "Yamato (World?)", GAME_IMPERFECT_GRAPHICS ) |
| 701 | | GAME( 1983, toprollr, 0, toprollr, toprollr, toprollr, ROT90, "Jaleco", "Top Roller", GAME_IMPERFECT_COLORS ) |