src/mame/includes/taitoipt.h
| r0 | r842 | |
| 1 | /******************************************************************************* |
| 2 | |
| 3 | Input port macros used by many games in mutiple Taito drivers |
| 4 | |
| 5 | *******************************************************************************/ |
| 6 | |
| 7 | |
| 8 | /**************************** Machine Dip Swicthes ****************************/ |
| 9 | |
| 10 | /* with location */ |
| 11 | #define TAITO_DSWA_BITS_2_TO_3_LOC(DIPBANK) \ |
| 12 | PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, #DIPBANK":3" ) \ |
| 13 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION(#DIPBANK":4") \ |
| 14 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) \ |
| 15 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 16 | |
| 17 | #define TAITO_DSWA_BITS_1_TO_3_LOC(DIPBANK) \ |
| 18 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION(#DIPBANK":2") \ |
| 19 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) \ |
| 20 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) \ |
| 21 | TAITO_DSWA_BITS_2_TO_3_LOC(DIPBANK) |
| 22 | |
| 23 | #define TAITO_MACHINE_COCKTAIL_LOC(DIPBANK) \ |
| 24 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION(#DIPBANK":1") \ |
| 25 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) \ |
| 26 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) \ |
| 27 | TAITO_DSWA_BITS_1_TO_3_LOC(DIPBANK) |
| 28 | |
| 29 | #define TAITO_MACHINE_NO_COCKTAIL_LOC(DIPBANK) \ |
| 30 | PORT_DIPUNUSED_DIPLOC( 0x01, IP_ACTIVE_LOW, #DIPBANK":1" ) \ |
| 31 | TAITO_DSWA_BITS_1_TO_3_LOC(DIPBANK) |
| 32 | |
| 33 | |
| 34 | /* without location */ |
| 35 | #define TAITO_DSWA_BITS_2_TO_3 \ |
| 36 | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) \ |
| 37 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) \ |
| 38 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) \ |
| 39 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 40 | |
| 41 | #define TAITO_DSWA_BITS_1_TO_3 \ |
| 42 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) \ |
| 43 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) \ |
| 44 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) \ |
| 45 | TAITO_DSWA_BITS_2_TO_3 |
| 46 | |
| 47 | #define TAITO_MACHINE_COCKTAIL \ |
| 48 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) \ |
| 49 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) \ |
| 50 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) \ |
| 51 | TAITO_DSWA_BITS_1_TO_3 |
| 52 | |
| 53 | #define TAITO_MACHINE_NO_COCKTAIL \ |
| 54 | PORT_DIPUNUSED( 0x01, IP_ACTIVE_LOW ) \ |
| 55 | TAITO_DSWA_BITS_1_TO_3 |
| 56 | |
| 57 | |
| 58 | /**************************** Coinage Dip Swicthes ****************************/ |
| 59 | |
| 60 | /* with location */ |
| 61 | #define TAITO_COINAGE_JAPAN_OLD_COIN_A_LOC(DIPBANK) \ |
| 62 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":5,6") \ |
| 63 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) \ |
| 64 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ |
| 65 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \ |
| 66 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) |
| 67 | |
| 68 | #define TAITO_COINAGE_JAPAN_OLD_COIN_B_LOC(DIPBANK) \ |
| 69 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":7,8") \ |
| 70 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \ |
| 71 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) \ |
| 72 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \ |
| 73 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) |
| 74 | |
| 75 | #define TAITO_COINAGE_JAPAN_NEW_COIN_A_LOC(DIPBANK) \ |
| 76 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":5,6") \ |
| 77 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \ |
| 78 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) \ |
| 79 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ |
| 80 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) |
| 81 | |
| 82 | #define TAITO_COINAGE_JAPAN_NEW_COIN_B_LOC(DIPBANK) \ |
| 83 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":7,8") \ |
| 84 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \ |
| 85 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \ |
| 86 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) \ |
| 87 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) |
| 88 | |
| 89 | #define TAITO_COINAGE_WORLD_COIN_A_LOC(DIPBANK) \ |
| 90 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION(#DIPBANK":5,6") \ |
| 91 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) \ |
| 92 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \ |
| 93 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \ |
| 94 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) |
| 95 | |
| 96 | #define TAITO_COINAGE_WORLD_COIN_B_LOC(DIPBANK) \ |
| 97 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION(#DIPBANK":7,8") \ |
| 98 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \ |
| 99 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \ |
| 100 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) ) \ |
| 101 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) |
| 102 | |
| 103 | #define TAITO_COINAGE_US_COIN_START_LOC(DIPBANK) \ |
| 104 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coinage ) ) PORT_DIPLOCATION(#DIPBANK":5,6") \ |
| 105 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) \ |
| 106 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \ |
| 107 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \ |
| 108 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) |
| 109 | |
| 110 | #define TAITO_COINAGE_US_COIN_CONT_LOC(DIPBANK) \ |
| 111 | PORT_DIPNAME( 0xc0, 0xc0, "Price to Continue" ) PORT_DIPLOCATION(#DIPBANK":7,8") \ |
| 112 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \ |
| 113 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \ |
| 114 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_1C ) ) \ |
| 115 | PORT_DIPSETTING( 0xc0, "Same as Start" ) |
| 116 | |
| 117 | #define TAITO_COINAGE_JAPAN_OLD_LOC(DIPBANK) \ |
| 118 | TAITO_COINAGE_JAPAN_OLD_COIN_A_LOC(DIPBANK) \ |
| 119 | TAITO_COINAGE_JAPAN_OLD_COIN_B_LOC(DIPBANK) |
| 120 | |
| 121 | #define TAITO_COINAGE_JAPAN_NEW_LOC(DIPBANK) \ |
| 122 | TAITO_COINAGE_JAPAN_NEW_COIN_A_LOC(DIPBANK) \ |
| 123 | TAITO_COINAGE_JAPAN_NEW_COIN_B_LOC(DIPBANK) |
| 124 | |
| 125 | #define TAITO_COINAGE_WORLD_LOC(DIPBANK) \ |
| 126 | TAITO_COINAGE_WORLD_COIN_A_LOC(DIPBANK) \ |
| 127 | TAITO_COINAGE_WORLD_COIN_B_LOC(DIPBANK) |
| 128 | |
| 129 | #define TAITO_COINAGE_US_LOC(DIPBANK) \ |
| 130 | TAITO_COINAGE_US_COIN_START_LOC(DIPBANK) \ |
| 131 | TAITO_COINAGE_US_COIN_CONT_LOC(DIPBANK) |
| 132 | |
| 133 | |
| 134 | /* without location */ |
| 135 | #define TAITO_COINAGE_JAPAN_OLD_COIN_A \ |
| 136 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) \ |
| 137 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) \ |
| 138 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ |
| 139 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \ |
| 140 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) |
| 141 | |
| 142 | #define TAITO_COINAGE_JAPAN_OLD_COIN_B \ |
| 143 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) \ |
| 144 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \ |
| 145 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) \ |
| 146 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \ |
| 147 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) |
| 148 | |
| 149 | #define TAITO_COINAGE_JAPAN_NEW_COIN_A \ |
| 150 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) \ |
| 151 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \ |
| 152 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) \ |
| 153 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ |
| 154 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) |
| 155 | |
| 156 | #define TAITO_COINAGE_JAPAN_NEW_COIN_B \ |
| 157 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) \ |
| 158 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \ |
| 159 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \ |
| 160 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) \ |
| 161 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) |
| 162 | |
| 163 | #define TAITO_COINAGE_WORLD_COIN_A \ |
| 164 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) \ |
| 165 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) \ |
| 166 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \ |
| 167 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \ |
| 168 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) |
| 169 | |
| 170 | #define TAITO_COINAGE_WORLD_COIN_B \ |
| 171 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) \ |
| 172 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \ |
| 173 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \ |
| 174 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) ) \ |
| 175 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) |
| 176 | |
| 177 | #define TAITO_COINAGE_US_COIN_START \ |
| 178 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coinage ) ) \ |
| 179 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) \ |
| 180 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \ |
| 181 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \ |
| 182 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) |
| 183 | |
| 184 | #define TAITO_COINAGE_US_COIN_CONT \ |
| 185 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Continue_Price ) ) \ |
| 186 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \ |
| 187 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \ |
| 188 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_1C ) ) \ |
| 189 | PORT_DIPSETTING( 0xc0, "Same as Start" ) |
| 190 | |
| 191 | #define TAITO_COINAGE_JAPAN_OLD \ |
| 192 | TAITO_COINAGE_JAPAN_OLD_COIN_A \ |
| 193 | TAITO_COINAGE_JAPAN_OLD_COIN_B |
| 194 | |
| 195 | #define TAITO_COINAGE_JAPAN_NEW \ |
| 196 | TAITO_COINAGE_JAPAN_NEW_COIN_A \ |
| 197 | TAITO_COINAGE_JAPAN_NEW_COIN_B |
| 198 | |
| 199 | #define TAITO_COINAGE_WORLD \ |
| 200 | TAITO_COINAGE_WORLD_COIN_A \ |
| 201 | TAITO_COINAGE_WORLD_COIN_B |
| 202 | |
| 203 | #define TAITO_COINAGE_US \ |
| 204 | TAITO_COINAGE_US_COIN_START \ |
| 205 | TAITO_COINAGE_US_COIN_CONT |
| 206 | |
| 207 | |
| 208 | /************************** Difficulty Dip Swicthes ***************************/ |
| 209 | |
| 210 | /* with location */ |
| 211 | #define TAITO_DIFFICULTY_LOC(DIPBANK) \ |
| 212 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION(#DIPBANK":1,2") \ |
| 213 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) \ |
| 214 | PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) \ |
| 215 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) \ |
| 216 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 217 | |
| 218 | /* without location */ |
| 219 | #define TAITO_DIFFICULTY \ |
| 220 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) \ |
| 221 | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) \ |
| 222 | PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) \ |
| 223 | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) \ |
| 224 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 225 | |
| 226 | |
| 227 | /************************** Joysticks and buttons *****************************/ |
| 228 | |
| 229 | /* generic (might be moved elsewhere) */ |
| 230 | #define INPUT_GENERIC_JOY_LOW_NIBBLE(PL, STATE, WAY, B01, B02, B04, B08) \ |
| 231 | PORT_BIT( 0x01, STATE, IPT_JOYSTICK_##B01 ) WAY PORT_PLAYER(PL) \ |
| 232 | PORT_BIT( 0x02, STATE, IPT_JOYSTICK_##B02 ) WAY PORT_PLAYER(PL) \ |
| 233 | PORT_BIT( 0x04, STATE, IPT_JOYSTICK_##B04 ) WAY PORT_PLAYER(PL) \ |
| 234 | PORT_BIT( 0x08, STATE, IPT_JOYSTICK_##B08 ) WAY PORT_PLAYER(PL) |
| 235 | |
| 236 | #define INPUT_GENERIC_JOY_HIGH_NIBBLE(PL, STATE, WAY, B10, B20, B40, B80) \ |
| 237 | PORT_BIT( 0x10, STATE, IPT_JOYSTICK_##B10 ) WAY PORT_PLAYER(PL) \ |
| 238 | PORT_BIT( 0x20, STATE, IPT_JOYSTICK_##B20 ) WAY PORT_PLAYER(PL) \ |
| 239 | PORT_BIT( 0x40, STATE, IPT_JOYSTICK_##B40 ) WAY PORT_PLAYER(PL) \ |
| 240 | PORT_BIT( 0x80, STATE, IPT_JOYSTICK_##B80 ) WAY PORT_PLAYER(PL) |
| 241 | |
| 242 | |
| 243 | /* Taito generic (more might be needed) */ |
| 244 | #define TAITO_GENERIC_JOY_MONO_UDLR(PL) \ |
| 245 | INPUT_GENERIC_JOY_LOW_NIBBLE(PL, IP_ACTIVE_LOW, PORT_8WAY, UP, DOWN, LEFT, RIGHT) |
| 246 | |
| 247 | #define TAITO_GENERIC_JOY_MONO_UDRL(PL) \ |
| 248 | INPUT_GENERIC_JOY_LOW_NIBBLE(PL, IP_ACTIVE_LOW, PORT_8WAY, UP, DOWN, RIGHT, LEFT) |
| 249 | |
| 250 | #define TAITO_GENERIC_JOY_MONO_LRUD(PL) \ |
| 251 | INPUT_GENERIC_JOY_LOW_NIBBLE(PL, IP_ACTIVE_LOW, PORT_8WAY, LEFT, RIGHT, UP, DOWN) |
| 252 | |
| 253 | #define TAITO_GENERIC_JOY_DUAL_UDLR(PL_L, PL_H) \ |
| 254 | INPUT_GENERIC_JOY_LOW_NIBBLE(PL_L, IP_ACTIVE_LOW, PORT_8WAY, UP, DOWN, LEFT, RIGHT) \ |
| 255 | INPUT_GENERIC_JOY_HIGH_NIBBLE(PL_H, IP_ACTIVE_LOW, PORT_8WAY, UP, DOWN, LEFT, RIGHT) |
| 256 | |
| 257 | #define TAITO_GENERIC_JOY_DUAL_UDRL(PL_L, PL_H) \ |
| 258 | INPUT_GENERIC_JOY_LOW_NIBBLE(PL_L, IP_ACTIVE_LOW, PORT_8WAY, UP, DOWN, RIGHT, LEFT) \ |
| 259 | INPUT_GENERIC_JOY_HIGH_NIBBLE(PL_H, IP_ACTIVE_LOW, PORT_8WAY, UP, DOWN, RIGHT, LEFT) |
| 260 | |
| 261 | |
| 262 | #define TAITO_GENERIC_BUTTONS_LOW_NIBBLE(PL, STATE, BUTTON_A, BUTTON_B, BUTTON_C) \ |
| 263 | PORT_BIT( 0x01, STATE, IPT_##BUTTON_A ) PORT_PLAYER(PL) \ |
| 264 | PORT_BIT( 0x02, STATE, IPT_##BUTTON_B ) PORT_PLAYER(PL) \ |
| 265 | PORT_BIT( 0x04, STATE, IPT_##BUTTON_C ) PORT_PLAYER(PL) |
| 266 | /* DO NOT fill bit 3 as it may be defined as START button ! */ |
| 267 | |
| 268 | #define TAITO_GENERIC_BUTTONS_HIGH_NIBBLE(PL, STATE, BUTTON_A, BUTTON_B, BUTTON_C) \ |
| 269 | PORT_BIT( 0x10, STATE, IPT_##BUTTON_A ) PORT_PLAYER(PL) \ |
| 270 | PORT_BIT( 0x20, STATE, IPT_##BUTTON_B ) PORT_PLAYER(PL) \ |
| 271 | PORT_BIT( 0x40, STATE, IPT_##BUTTON_C ) PORT_PLAYER(PL) |
| 272 | /* DO NOT fill bit 7 as it may be defined as START button ! */ |
| 273 | |
| 274 | #define TAITO_GENERIC_2_BUTTONS(PL) \ |
| 275 | TAITO_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_LOW, BUTTON1, BUTTON2, UNKNOWN) \ |
| 276 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 277 | |
| 278 | #define TAITO_GENERIC_3_BUTTONS(PL) \ |
| 279 | TAITO_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_LOW, BUTTON1, BUTTON2, BUTTON3) \ |
| 280 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 281 | |
| 282 | #define TAITO_GENERIC_2_BUTTONS_START(PL) \ |
| 283 | TAITO_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_LOW, BUTTON1, BUTTON2, UNKNOWN) \ |
| 284 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START##PL ) |
| 285 | |
| 286 | #define TAITO_GENERIC_3_BUTTONS_START(PL) \ |
| 287 | TAITO_GENERIC_BUTTONS_HIGH_NIBBLE(PL, IP_ACTIVE_LOW, BUTTON1, BUTTON2, BUTTON3) \ |
| 288 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START##PL ) |
| 289 | |
| 290 | |
| 291 | /* Taito games (more might be needed) */ |
| 292 | #define TAITO_JOY_UDLR_2_BUTTONS(PL) \ |
| 293 | TAITO_GENERIC_JOY_MONO_UDLR(PL) \ |
| 294 | TAITO_GENERIC_2_BUTTONS(PL) |
| 295 | |
| 296 | #define TAITO_JOY_UDLR_3_BUTTONS(PL) \ |
| 297 | TAITO_GENERIC_JOY_MONO_UDLR(PL) \ |
| 298 | TAITO_GENERIC_3_BUTTONS(PL) |
| 299 | |
| 300 | #define TAITO_JOY_UDRL_2_BUTTONS(PL) \ |
| 301 | TAITO_GENERIC_JOY_MONO_UDRL(PL) \ |
| 302 | TAITO_GENERIC_2_BUTTONS(PL) |
| 303 | |
| 304 | #define TAITO_JOY_UDRL_3_BUTTONS(PL) \ |
| 305 | TAITO_GENERIC_JOY_MONO_UDRL(PL) \ |
| 306 | TAITO_GENERIC_3_BUTTONS(PL) |
| 307 | |
| 308 | #define TAITO_JOY_LRUD_2_BUTTONS(PL) \ |
| 309 | TAITO_GENERIC_JOY_MONO_LRUD(PL) \ |
| 310 | TAITO_GENERIC_2_BUTTONS(PL) |
| 311 | |
| 312 | #define TAITO_JOY_LRUD_3_BUTTONS(PL) \ |
| 313 | TAITO_GENERIC_JOY_MONO_LRUD(PL) \ |
| 314 | TAITO_GENERIC_3_BUTTONS(PL) |
| 315 | |
| 316 | |
| 317 | #define TAITO_JOY_UDLR_2_BUTTONS_START(PL) \ |
| 318 | TAITO_GENERIC_JOY_MONO_UDLR(PL) \ |
| 319 | TAITO_GENERIC_2_BUTTONS_START(PL) |
| 320 | |
| 321 | #define TAITO_JOY_UDLR_3_BUTTONS_START(PL) \ |
| 322 | TAITO_GENERIC_JOY_MONO_UDLR(PL) \ |
| 323 | TAITO_GENERIC_3_BUTTONS_START(PL) |
| 324 | |
| 325 | #define TAITO_JOY_UDRL_2_BUTTONS_START(PL) \ |
| 326 | TAITO_GENERIC_JOY_MONO_UDRL(PL) \ |
| 327 | TAITO_GENERIC_2_BUTTONS_START(PL) |
| 328 | |
| 329 | #define TAITO_JOY_UDRL_3_BUTTONS_START(PL) \ |
| 330 | TAITO_GENERIC_JOY_MONO_UDRL(PL) \ |
| 331 | TAITO_GENERIC_3_BUTTONS_START(PL) |
| 332 | |
| 333 | #define TAITO_JOY_LRUD_2_BUTTONS_START(PL) \ |
| 334 | TAITO_GENERIC_JOY_MONO_LRUD(PL) \ |
| 335 | TAITO_GENERIC_2_BUTTONS_START(PL) |
| 336 | |
| 337 | #define TAITO_JOY_LRUD_3_BUTTONS_START(PL) \ |
| 338 | TAITO_GENERIC_JOY_MONO_LRUD(PL) \ |
| 339 | TAITO_GENERIC_3_BUTTONS_START(PL) |
| 340 | |
| 341 | |
| 342 | #define TAITO_JOY_DUAL_UDLR(PL_L, PL_H) \ |
| 343 | TAITO_GENERIC_JOY_DUAL_UDLR(PL_L, PL_H) |
| 344 | |
| 345 | #define TAITO_JOY_DUAL_UDRL(PL_L, PL_H) \ |
| 346 | TAITO_GENERIC_JOY_DUAL_UDRL(PL_L, PL_H) |
| 347 | |
src/mame/drivers/gdrawpkr.c
| r841 | r842 | |
| 30 | 30 | --- General Notes --- |
| 31 | 31 | |
| 32 | 32 | |
| 33 | Gaming Draw Poker: |
| 34 | |
| 33 | 35 | Gaming Draw Poker, formerly known as Jack Potten's poker, is an evolution of the |
| 34 | 36 | mentioned game. It was created by Cal Omega in 1981 for Casino Electronics Inc. |
| 35 | 37 | Cal Omega was bought out by CEI (Casino Electronics Inc.), and CEI was bought by UCMC. |
| r841 | r842 | |
| 50 | 52 | For payout, press "Manual Collect" an then "Payout" for each credit (manual mode). |
| 51 | 53 | |
| 52 | 54 | |
| 55 | El Grande - 5 Card Draw: |
| 53 | 56 | |
| 57 | This game was created by Tuni Electro Service and was licenced to E.T. Marketing,Inc. |
| 58 | This is the new version. The old one is still undumped, but looks like Golden Poker D-Up. |
| 59 | |
| 60 | Flyer: http://www.arcadeflyers.com/?page=thumbs&db=videodb&id=4542 |
| 61 | |
| 62 | The code never write to offsets 0x840/0x841, so I assume that the AY8912 is connected to PIAs output. |
| 63 | Inputs are multiplexed and selected through PIA1, portB. |
| 64 | There aren't meter and stats modes. Only for amusement, so... no payout. |
| 65 | To clear credits press F2. |
| 66 | To enter to TEST MODE press F2 twice. Press "Hold 1" + "Hold 2" + "Hold 3" to exit. |
| 67 | |
| 68 | |
| 69 | |
| 54 | 70 | ***********************************************************************************? |
| 55 | 71 | |
| 56 | 72 | |
| 57 | | --- Dumper notes (old) --- |
| 73 | Dumper notes (old) |
| 58 | 74 | |
| 59 | 75 | |
| 76 | -- Gaming Draw Poker -------------------------------------------------------- |
| 77 | |
| 60 | 78 | Program roms are roms 23*.*, on the board, there is a number near each roms |
| 61 | 79 | looks to be the address of the rom : |
| 62 | 80 | |
| r841 | r842 | |
| 85 | 103 | The sound rom is missing on the board :( |
| 86 | 104 | |
| 87 | 105 | |
| 106 | -- El Grande 5 Card Draw ---------------------------------------------------- |
| 107 | |
| 108 | ROM text showed poker stuff and "TUNI" "1982" |
| 109 | |
| 110 | .u6 2716 |
| 111 | .u7 2516 |
| 112 | .u8 2516 |
| 113 | .u9 2516 |
| 114 | .u67 2516 |
| 115 | .u68 2516 |
| 116 | .u69 2716 |
| 117 | .u70 2716 |
| 118 | .u28 82s129 |
| 119 | |
| 120 | 6502 |
| 121 | HD46505 |
| 122 | AY-3-8912 |
| 123 | MC6821P x2 |
| 124 | TC5501 x2 |
| 125 | 10MHz Crystal |
| 126 | |
| 127 | empty socket at u5 |
| 128 | |
| 129 | |
| 88 | 130 | *********************************************************************************** |
| 89 | 131 | |
| 90 | 132 | |
| r841 | r842 | |
| 115 | 157 | |
| 116 | 158 | |
| 117 | 159 | |
| 160 | *** MC6545 conditional change for elgrande if 0x8c4 (PIA) has bit7 activated *** |
| 161 | |
| 162 | --------------------------------------------------------- |
| 163 | register: R00 R01 R02 R03 R04 R05 R06 R07 |
| 164 | --------------------------------------------------------- |
| 165 | value: 0x27 0x20 0x23 0x03 0x26 0x00 0x20 0x22 |
| 166 | |
| 167 | |
| 168 | |
| 118 | 169 | *********************************************************************************** |
| 119 | 170 | |
| 120 | 171 | |
| 172 | [2007-08-13] |
| 173 | |
| 174 | - Added "El Grande - 5 Card Draw" (new). |
| 175 | - Constructed a new memory map for this game. |
| 176 | - Reworked a whole set of inputs for this game. |
| 177 | - Patched some bad bits in GFX rom d1.u68 till a good dump appear. |
| 178 | - Updated technical notes. |
| 179 | |
| 180 | |
| 121 | 181 | [2007-07-23] |
| 122 | 182 | |
| 123 | 183 | - Cleaned up the inputs. |
| r841 | r842 | |
| 144 | 204 | - Added technical notes. |
| 145 | 205 | |
| 146 | 206 | |
| 147 | | TODO (in progress): |
| 207 | TODO: |
| 148 | 208 | |
| 209 | - Add sound support to elgrande. |
| 149 | 210 | - Fix lamps. |
| 150 | 211 | - Clean up the driver. |
| 151 | 212 | |
| r841 | r842 | |
| 193 | 254 | if (attr == 0x3a) /* Is the palette wrong? */ |
| 194 | 255 | color = 0x3b; /* 0x3b is the best match */ |
| 195 | 256 | |
| 196 | | // if (attr == 0x36) /* Is the palette wrong? */ |
| 197 | | // color = 0x3e; /* 0x3e is the best match */ |
| 198 | | |
| 199 | | // if (attr == 0x32) /* Is the palette wrong? */ |
| 200 | | // color = 0x3a; /* 0x3a is the best match */ |
| 201 | | |
| 202 | 257 | SET_TILE_INFO(bank, code, color, 0); |
| 203 | 258 | } |
| 204 | 259 | |
| r841 | r842 | |
| 268 | 323 | AM_RANGE(0xd800, 0xffff) AM_ROM |
| 269 | 324 | ADDRESS_MAP_END |
| 270 | 325 | |
| 326 | static ADDRESS_MAP_START( elgrande_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 327 | AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 328 | AM_RANGE(0x0880, 0x0880) AM_WRITE(crtc6845_address_w) |
| 329 | AM_RANGE(0x0881, 0x0881) AM_READWRITE(crtc6845_register_r, crtc6845_register_w) |
| 330 | AM_RANGE(0x08c4, 0x08c7) AM_READWRITE(pia_0_r, pia_0_w) |
| 331 | AM_RANGE(0x08c8, 0x08cb) AM_READWRITE(pia_1_r, pia_1_w) |
| 332 | AM_RANGE(0x1000, 0x13ff) AM_RAM AM_WRITE(gdrawpkr_videoram_w) AM_BASE(&videoram) |
| 333 | AM_RANGE(0x1400, 0x17ff) AM_RAM AM_WRITE(gdrawpkr_colorram_w) AM_BASE(&colorram) |
| 334 | AM_RANGE(0x2000, 0x3fff) AM_ROM |
| 335 | AM_RANGE(0xf800, 0xffff) AM_ROM |
| 336 | ADDRESS_MAP_END |
| 271 | 337 | |
| 338 | |
| 272 | 339 | /************************* |
| 273 | 340 | * Input ports * |
| 274 | 341 | *************************/ |
| r841 | r842 | |
| 341 | 408 | PORT_DIPSETTING( 0x40, "10" ) |
| 342 | 409 | PORT_DIPSETTING( 0x80, "40" ) |
| 343 | 410 | PORT_DIPSETTING( 0xC0, "80" ) |
| 411 | INPUT_PORTS_END |
| 344 | 412 | |
| 345 | | PORT_START_TAG("SW2") |
| 346 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 347 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 348 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 349 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 350 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 351 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 352 | | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 353 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 354 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 355 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 356 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 357 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 358 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 359 | | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 360 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 361 | | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 362 | | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 363 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 364 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 365 | | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 366 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 367 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 368 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 369 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 413 | INPUT_PORTS_START( elgrande ) |
| 414 | PORT_START_TAG("IN0-0") |
| 415 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 416 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 417 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Double Up") PORT_CODE(KEYCODE_3) |
| 418 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Deal/Draw") PORT_CODE(KEYCODE_2) |
| 419 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Cancel Holds") PORT_CODE(KEYCODE_N) |
| 420 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 421 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 422 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 370 | 423 | |
| 371 | | PORT_START_TAG("SW3") |
| 424 | PORT_START_TAG("IN0-1") |
| 425 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 426 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 427 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Service") PORT_CODE(KEYCODE_8) |
| 428 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 429 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 430 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 431 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 432 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 433 | |
| 434 | PORT_START_TAG("IN0-2") |
| 435 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) |
| 436 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Hold 2") PORT_CODE(KEYCODE_X) |
| 437 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON10 ) PORT_NAME("Hold 3") PORT_CODE(KEYCODE_C) |
| 438 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_NAME("Hold 4") PORT_CODE(KEYCODE_V) |
| 439 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON12 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B) |
| 440 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 441 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 442 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 443 | |
| 444 | PORT_START_TAG("IN0-3") |
| 445 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Test Mode") PORT_CODE(KEYCODE_F2) |
| 446 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Bet") PORT_CODE(KEYCODE_1) |
| 447 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Take") PORT_CODE(KEYCODE_4) |
| 448 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Odd") PORT_CODE(KEYCODE_A) |
| 449 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Even") PORT_CODE(KEYCODE_S) |
| 450 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 451 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 452 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 453 | |
| 454 | PORT_START_TAG("SW1") |
| 372 | 455 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 373 | 456 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 374 | 457 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| r841 | r842 | |
| 381 | 464 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 382 | 465 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 383 | 466 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 384 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 385 | | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 386 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 387 | | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 388 | | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 389 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 390 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 391 | | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 392 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 393 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 394 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 395 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 467 | PORT_DIPNAME( 0x30, 0x20, "Minimum Winning Hand") |
| 468 | PORT_DIPSETTING( 0x20, "Jacks or Better" ) |
| 469 | PORT_DIPSETTING( 0x30, "Queens or Better" ) |
| 470 | PORT_DIPSETTING( 0x00, "Kings or Better" ) |
| 471 | PORT_DIPSETTING( 0x10, "Aces or Better" ) |
| 472 | PORT_DIPNAME( 0xC0, 0x40, "Maximum Bet") |
| 473 | PORT_DIPSETTING( 0x00, "5" ) |
| 474 | PORT_DIPSETTING( 0x40, "10" ) |
| 475 | PORT_DIPSETTING( 0x80, "20" ) |
| 476 | PORT_DIPSETTING( 0xC0, "50" ) |
| 396 | 477 | INPUT_PORTS_END |
| 397 | 478 | |
| 398 | 479 | |
| r841 | r842 | |
| 523 | 604 | static const pia6821_interface pia1_intf = |
| 524 | 605 | { |
| 525 | 606 | /* PIA inputs: A, B, CA1, CB1, CA2, CB2 */ |
| 526 | | input_port_4_r, input_port_5_r, input_port_6_r, 0, 0, 0, /* 5 & 6 not tested */ |
| 607 | input_port_4_r, 0, 0, 0, 0, 0, /* 5 & 6 not tested */ |
| 527 | 608 | |
| 528 | 609 | /* PIA outputs: A, B, CA2, CB2 */ |
| 529 | 610 | |
| r841 | r842 | |
| 540 | 621 | |
| 541 | 622 | static MACHINE_DRIVER_START( gdrawpkr ) |
| 542 | 623 | // basic machine hardware |
| 543 | | MDRV_CPU_ADD(M6502, 10000000/12) /* guessing... */ |
| 624 | MDRV_CPU_ADD_TAG("main", M6502, 10000000/12) /* guessing... */ |
| 544 | 625 | MDRV_CPU_PROGRAM_MAP(gdrawpkr_map, 0) |
| 545 | 626 | MDRV_CPU_VBLANK_INT(irq0_line_hold, 1) |
| 546 | 627 | |
| r841 | r842 | |
| 570 | 651 | |
| 571 | 652 | MACHINE_DRIVER_END |
| 572 | 653 | |
| 654 | static MACHINE_DRIVER_START( elgrande ) |
| 655 | MDRV_IMPORT_FROM(gdrawpkr) |
| 656 | MDRV_CPU_MODIFY("main") |
| 657 | MDRV_CPU_PROGRAM_MAP(elgrande_map, 0) |
| 658 | MACHINE_DRIVER_END |
| 573 | 659 | |
| 660 | |
| 574 | 661 | /************************* |
| 575 | 662 | * Rom Load * |
| 576 | 663 | *************************/ |
| r841 | r842 | |
| 595 | 682 | ROM_LOAD( "82s129n.u28", 0x0000, 0x0100, CRC(6db5a344) SHA1(5f1a81ac02a2a74252decd3bb95a5436cc943930) ) |
| 596 | 683 | ROM_END |
| 597 | 684 | |
| 685 | ROM_START( elgrande ) |
| 686 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 687 | ROM_LOAD( "d1.u6", 0x2000, 0x0800, CRC(8b6b505c) SHA1(5f89bb1b50b9dfacf23c50e3016b9258b0e15084) ) |
| 688 | ROM_LOAD( "d1.u7", 0x2800, 0x0800, CRC(d803a978) SHA1(682b73c968ef57007397d3e5eb0e78a97722da5e) ) |
| 689 | ROM_LOAD( "d1.u8", 0x3000, 0x0800, CRC(291fa93b) SHA1(1d57f736b11ddc916effde78e2cd08c313a62901) ) |
| 690 | ROM_LOAD( "d1.u9", 0x3800, 0x0800, CRC(ec3309a7) SHA1(b8ab7f3f2edf2658ea633b2b557ea37517615399) ) |
| 691 | ROM_RELOAD( 0xf800, 0x0800 ) /* for vectors/pointers */ |
| 598 | 692 | |
| 693 | ROM_REGION( 0x0800, REGION_GFX1, ROMREGION_DISPOSE ) |
| 694 | ROM_LOAD( "d1.u67", 0x0000, 0x0800, CRC(a8ac979d) SHA1(f7299d3f7c4aded028a65ae4365c174f0e953824) ) |
| 695 | |
| 696 | ROM_REGION( 0x1800, REGION_GFX2, ROMREGION_DISPOSE ) |
| 697 | ROM_LOAD( "d1.u70", 0x0000, 0x0800, CRC(4f12d424) SHA1(c43f1df757ac7dd76875245e73d47451d1f7f6f2) ) |
| 698 | ROM_LOAD( "d1.u69", 0x0800, 0x0800, CRC(ed3c83b7) SHA1(93e2134de3d9f79a6cff0391c1a32fccd3840c3f) ) |
| 699 | ROM_LOAD( "d1.u68", 0x1000, 0x0800, BAD_DUMP CRC(3ab70570) SHA1(5ff84015a78d15a5207499f84ce637e49bca136f) ) /* bad bits */ |
| 700 | |
| 701 | ROM_REGION( 0x200, REGION_PROMS, 0 ) |
| 702 | ROM_LOAD( "d1.u28", 0x0000, 0x0200, CRC(a6d43709) SHA1(cbff2cb60137462dc0b7c7719a64574218d96c62) ) |
| 703 | ROM_END |
| 704 | |
| 705 | |
| 599 | 706 | /************************* |
| 600 | 707 | * Driver Init * |
| 601 | 708 | *************************/ |
| r841 | r842 | |
| 604 | 711 | { |
| 605 | 712 | /* Palette transformed by PLDs? */ |
| 606 | 713 | int x; |
| 607 | | UINT8 *srcp = memory_region( REGION_PROMS ); |
| 714 | UINT8 *BPR = memory_region( REGION_PROMS ); |
| 608 | 715 | |
| 609 | 716 | for (x=0x0000;x<0x0100;x++) |
| 610 | 717 | { |
| 611 | | if (srcp[x] == 0x07) |
| 612 | | srcp[x] = 0x04; /* blue background */ |
| 613 | | // srcp[x] = 0x00; /* black background */ |
| 718 | if (BPR[x] == 0x07) |
| 719 | BPR[x] = 0x04; /* blue background */ |
| 614 | 720 | } |
| 615 | 721 | |
| 616 | 722 | /* Initializing PIAs... */ |
| r841 | r842 | |
| 618 | 724 | pia_config(1, &pia1_intf); |
| 619 | 725 | } |
| 620 | 726 | |
| 727 | static DRIVER_INIT( elgrande ) |
| 728 | { |
| 729 | int x; |
| 730 | UINT8 *BPR = memory_region( REGION_PROMS ); |
| 731 | UINT8 *ROM = memory_region( REGION_GFX2 ); |
| 621 | 732 | |
| 733 | /* Palette transformed by PLDs? */ |
| 734 | for (x=0x0000;x<0x0100;x++) |
| 735 | { |
| 736 | if (BPR[x] == 0x07) |
| 737 | BPR[x] = 0x00; /* black background */ |
| 738 | } |
| 739 | |
| 740 | /* Temporary patch to fix some bad bits in ROM d1.u68 */ |
| 741 | ROM[0x171c] = 0xff; |
| 742 | ROM[0x171d] = 0xff; |
| 743 | ROM[0x171e] = 0xff; |
| 744 | ROM[0x1737] = 0xff; |
| 745 | ROM[0x173d] = 0xff; |
| 746 | |
| 747 | /* Initializing PIAs... */ |
| 748 | pia_config(0, &pia0_intf); |
| 749 | pia_config(1, &pia1_intf); |
| 750 | } |
| 751 | |
| 752 | |
| 622 | 753 | /************************* |
| 623 | 754 | * Game Drivers * |
| 624 | 755 | *************************/ |
| 625 | 756 | |
| 626 | | /* YEAR NAME PARENT MACHINE INPUT INIT ROT COMPANY FULLNAME FLAGS */ |
| 627 | | GAME( 1981, gdrawpkr, 0, gdrawpkr, gdrawpkr, gdrawpkr, ROT0, "Cal Omega / Casino Electronics Inc.", "Gaming Draw Poker", 0 ) |
| 757 | /* YEAR NAME PARENT MACHINE INPUT INIT ROT COMPANY FULLNAME FLAGS */ |
| 758 | GAME( 1981, gdrawpkr, 0, gdrawpkr, gdrawpkr, gdrawpkr, ROT0, "Cal Omega / Casino Electronics Inc.", "Gaming Draw Poker", 0 ) |
| 759 | GAME( 1982, elgrande, 0, elgrande, elgrande, elgrande, ROT0, "Tuni Electro Service / E.T. Marketing", "El Grande - 5 Card Draw (New)", GAME_NO_SOUND ) |
src/mame/drivers/raiden2.c
| r841 | r842 | |
| 228 | 228 | |
| 229 | 229 | /* VIDEO START (move to video file) */ |
| 230 | 230 | |
| 231 | | VIDEO_START(raiden2) |
| 231 | VIDEO_START( raiden2 ) |
| 232 | 232 | { |
| 233 | | text_layer = tilemap_create( get_text_tile_info,tilemap_scan_rows, TILEMAP_TYPE_PEN, 8, 8,64,32 ); |
| 234 | | background_layer = tilemap_create( get_back_tile_info,tilemap_scan_rows, TILEMAP_TYPE_PEN, 16,16,32,32 ); |
| 235 | | midground_layer = tilemap_create( get_mid_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 16,16,32,32 ); |
| 236 | | foreground_layer = tilemap_create( get_fore_tile_info,tilemap_scan_rows, TILEMAP_TYPE_PEN, 16,16,32,32 ); |
| 233 | text_layer = tilemap_create(get_text_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 8, 8, 64,32 ); |
| 234 | background_layer = tilemap_create(get_back_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 16,16, 32,32 ); |
| 235 | midground_layer = tilemap_create(get_mid_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 16,16, 32,32 ); |
| 236 | foreground_layer = tilemap_create(get_fore_tile_info, tilemap_scan_rows, TILEMAP_TYPE_PEN, 16,16, 32,32 ); |
| 237 | 237 | |
| 238 | | tilemap_set_transparent_pen(midground_layer,15); |
| 239 | | tilemap_set_transparent_pen(foreground_layer,15); |
| 240 | | tilemap_set_transparent_pen(text_layer,15); |
| 238 | tilemap_set_transparent_pen(midground_layer, 15); |
| 239 | tilemap_set_transparent_pen(foreground_layer, 15); |
| 240 | tilemap_set_transparent_pen(text_layer, 15); |
| 241 | 241 | |
| 242 | 242 | tick = 0; |
| 243 | 243 | } |
| r841 | r842 | |
| 253 | 253 | |
| 254 | 254 | /* VIDEO UPDATE (move to video file) */ |
| 255 | 255 | |
| 256 | | VIDEO_UPDATE (raiden2) |
| 256 | VIDEO_UPDATE ( raiden2 ) |
| 257 | 257 | { |
| 258 | 258 | int info_1, info_2, info_3; |
| 259 | 259 | |
| r841 | r842 | |
| 441 | 441 | |
| 442 | 442 | // COPX functions, terribly incomplete |
| 443 | 443 | |
| 444 | | static UINT8 cop_buf[6]; |
| 445 | | static UINT16 cop_adr, cop_fct; |
| 446 | | static UINT32 cop_reg[16]; |
| 447 | | static UINT16 cop_data_fct[0x20], cop_data_val[0x20], cop_data_mask[0x20], cop_data_prg[0x100]; |
| 444 | typedef struct _cop_state cop_state; |
| 445 | struct _cop_state |
| 446 | { |
| 447 | UINT16 offset; /* last write offset */ |
| 448 | UINT8 latch; /* latched LSB */ |
| 449 | UINT16 ram[0x200/2]; /* RAM from 0x400-0x5ff */ |
| 448 | 450 | |
| 451 | UINT32 reg[4]; /* registers */ |
| 449 | 452 | |
| 450 | | static UINT32 r32(int adr) |
| 453 | UINT16 func_trigger[0x100/8]; /* function trigger */ |
| 454 | UINT16 func_value[0x100/8]; /* function value (?) */ |
| 455 | UINT16 func_mask[0x100/8]; /* function mask (?) */ |
| 456 | UINT16 program[0x100]; /* program "code" */ |
| 457 | }; |
| 458 | |
| 459 | static cop_state cop_data; |
| 460 | |
| 461 | |
| 462 | #define COP_LOG(x) logerror x |
| 463 | |
| 464 | |
| 465 | |
| 466 | INLINE UINT16 cop_ram_r(cop_state *cop, UINT16 offset) |
| 451 | 467 | { |
| 452 | | return program_read_byte(adr) | |
| 453 | | (program_read_byte(adr+1)<<8) | |
| 454 | | (program_read_byte(adr+2)<<16) | |
| 455 | | (program_read_byte(adr+3)<<24); |
| 468 | return cop->ram[(offset - 0x400) / 2]; |
| 456 | 469 | } |
| 457 | 470 | |
| 458 | | static void w32(int adr, UINT32 v) |
| 471 | INLINE void cop_ram_w(cop_state *cop, UINT16 offset, UINT16 data) |
| 459 | 472 | { |
| 460 | | program_write_byte(adr, v); |
| 461 | | program_write_byte(adr+1, v>>8); |
| 462 | | program_write_byte(adr+2, v>>16); |
| 463 | | program_write_byte(adr+3, v>>24); |
| 473 | cop->ram[(offset - 0x400) / 2] = data; |
| 464 | 474 | } |
| 465 | 475 | |
| 466 | | static void cop_init(void) |
| 476 | INLINE UINT32 r32(offs_t address) |
| 467 | 477 | { |
| 468 | | memset(cop_buf, 0, sizeof(cop_buf)); |
| 469 | | memset(cop_reg, 0, sizeof(cop_reg)); |
| 470 | | memset(cop_data_fct, 0, sizeof(cop_data_fct)); |
| 471 | | memset(cop_data_val, 0, sizeof(cop_data_val)); |
| 472 | | memset(cop_data_mask, 0, sizeof(cop_data_mask)); |
| 473 | | memset(cop_data_prg, 0, sizeof(cop_data_prg)); |
| 474 | | |
| 475 | | cop_adr = 0; |
| 476 | | cop_fct = 0; |
| 478 | return (program_read_byte(address + 0) << 0) | |
| 479 | (program_read_byte(address + 1) << 8) | |
| 480 | (program_read_byte(address + 2) << 16) | |
| 481 | (program_read_byte(address + 3) << 24); |
| 477 | 482 | } |
| 478 | 483 | |
| 479 | | static void cop_run(void) |
| 484 | INLINE void w32(offs_t address, UINT32 data) |
| 480 | 485 | { |
| 481 | | int i; |
| 486 | program_write_byte(address + 0, data >> 0); |
| 487 | program_write_byte(address + 1, data >> 8); |
| 488 | program_write_byte(address + 2, data >> 16); |
| 489 | program_write_byte(address + 3, data >> 24); |
| 490 | } |
| 482 | 491 | |
| 483 | | if(cop_fct != 0x5a05 && cop_fct != 0xf205 && cop_fct != 0x5205) |
| 484 | | logerror("XCOP %04x %08x %08x %08x %08x (%06x)\n", cop_fct, cop_reg[0], cop_reg[1], cop_reg[2], cop_reg[3], activecpu_get_pc()); |
| 485 | 492 | |
| 486 | | switch(cop_fct) { |
| 487 | | case 0x0205: { // 0205 0006 ffeb 0000 - 0188 0282 0082 0b8e 098e 0000 0000 0000 |
| 488 | | UINT32 src = cop_reg[0]; |
| 489 | | int i; |
| 490 | | logerror("COP %04x %08x (uns) (%06x)\n", cop_fct, src, activecpu_get_pc()); |
| 491 | | logerror(" COP -> %08x:", src); |
| 492 | | for(i=0; i<32; i++) |
| 493 | | logerror(" %02x", program_read_byte(src+i)); |
| 494 | | logerror("\n"); |
| 495 | | break; |
| 496 | | } |
| 497 | | case 0x138e: { // 130e 0005 bf7f 0010 - 0984 0aa4 0d82 0aa2 039b 0b9a 0b9a 0a9a |
| 498 | | UINT32 src = cop_reg[0]; |
| 499 | | UINT32 dst = cop_reg[1]; |
| 500 | | logerror("COP %04x %08x %08x (uns) (%06x)\n", cop_fct, src, dst, activecpu_get_pc()); |
| 501 | | break; |
| 502 | | } |
| 503 | | case 0x3bb0: { // 3bb0 0004 007f 0038 - 0f9c 0b9c 0b9c 0b9c 0b9c 0b9c 0b9c 099c |
| 504 | | UINT32 src = cop_reg[0]; |
| 505 | | UINT32 dst = cop_reg[1]; |
| 506 | | logerror("COP %04x %08x %08x (uns) (%06x)\n", cop_fct, src, dst, activecpu_get_pc()); |
| 507 | | break; |
| 508 | | } |
| 509 | | case 0x42c2: { // 42c2 0005 fcdd 0040 - 0f9a 0b9a 0b9c 0b9c 0b9c 029c 0000 0000 |
| 510 | | UINT32 src = cop_reg[0]; |
| 511 | | UINT32 dst = cop_reg[1]; |
| 512 | | logerror("COP %04x %08x %08x (uns) (%06x)\n", cop_fct, src, dst, activecpu_get_pc()); |
| 513 | | break; |
| 514 | | } |
| 515 | | case 0x5205: // 5205 0006 fff7 0050 - 0180 02e0 03a0 00a0 03a0 0000 0000 0000 |
| 516 | | case 0x5a05: { // 5a05 0006 fff7 0058 - 0180 02e0 03a0 00a0 03a0 0000 0000 0000 |
| 517 | | UINT32 src = cop_reg[0]; |
| 518 | | UINT32 dst = cop_reg[1]; |
| 519 | | UINT32 val = r32(src); |
| 520 | | w32(dst, val); |
| 521 | | // logerror("COP %04x %08x -> %08x - %08x (%06x)\n", cop_fct, src, dst, val, activecpu_get_pc()); |
| 522 | | break; |
| 523 | | } |
| 524 | | case 0x8100: { // 8100 0007 fdfb 0080 - 0b9a 0b88 0888 0000 0000 0000 0000 0000 |
| 525 | | UINT32 src = cop_reg[0]; |
| 526 | | logerror("COP %04x %08x (uns) (%06x)\n", cop_fct, src, activecpu_get_pc()); |
| 527 | | logerror(" COP -> %08x:", src); |
| 528 | | for(i=0; i<32; i++) |
| 529 | | logerror(" %02x", program_read_byte(src+i)); |
| 530 | | logerror("\n"); |
| 531 | | break; |
| 532 | | } |
| 533 | | case 0x8900: { // 8900 0007 fdfb 0088 - 0b9a 0b8a 088a 0000 0000 0000 0000 0000 |
| 534 | | UINT32 src = cop_reg[0]; |
| 535 | | logerror("COP %04x %08x (uns) (%06x)\n", cop_fct, src, activecpu_get_pc()); |
| 536 | | logerror(" COP -> %08x:", src); |
| 537 | | for(i=0; i<32; i++) |
| 538 | | logerror(" %02x", program_read_byte(src+i)); |
| 539 | | logerror("\n"); |
| 540 | | break; |
| 541 | | } |
| 542 | | case 0xf205: { // f205 0006 fff7 00f0 - 0182 02e0 03c0 00c0 03c0 0000 0000 0000 |
| 543 | | UINT32 src = cop_reg[0]+4; |
| 544 | | UINT32 dst = cop_reg[2]; |
| 545 | | UINT32 val = r32(src); |
| 546 | | w32(dst, val); |
| 547 | | // logerror("COP %04x %08x -> %08x - %08x (%06x)\n", cop_fct, src, dst, val, activecpu_get_pc()); |
| 548 | | break; |
| 549 | | } |
| 550 | | default: |
| 551 | | logerror("Unknown COP routine %04x at %06x\n", cop_fct, activecpu_get_pc()); |
| 552 | | break; |
| 553 | | } |
| 554 | | } |
| 555 | | |
| 556 | | static WRITE8_HANDLER(cop_up_fct_w) |
| 493 | static void cop_init(void) |
| 557 | 494 | { |
| 558 | | cop_buf[offset] = data; |
| 559 | | if(offset == 3) { |
| 560 | | int entry = cop_buf[5] >> 3; |
| 561 | | cop_data_fct[entry] = cop_buf[4] | (cop_buf[5] << 8); |
| 562 | | cop_data_val[entry] = cop_buf[0] | (cop_buf[1] << 8); |
| 563 | | cop_data_mask[entry] = cop_buf[2] | (cop_buf[3] << 8); |
| 564 | | } |
| 495 | memset(&cop_data, 0, sizeof(cop_data)); |
| 496 | cop_data.offset = 0xffff; |
| 565 | 497 | } |
| 566 | 498 | |
| 567 | | static WRITE8_HANDLER(cop_up_adr_w) |
| 499 | |
| 500 | static WRITE8_HANDLER( cop_w ) |
| 568 | 501 | { |
| 569 | | if(offset) |
| 570 | | cop_adr = (cop_adr & 0xff) | (data << 8); |
| 571 | | else |
| 572 | | cop_adr = (cop_adr & 0xff00) | data; |
| 573 | | } |
| 502 | cop_state *cop = &cop_data; |
| 503 | UINT32 temp32; |
| 504 | UINT16 cop_data; |
| 505 | UINT8 regnum; |
| 506 | int func; |
| 574 | 507 | |
| 575 | | static WRITE8_HANDLER(cop_up_data_w) |
| 576 | | { |
| 577 | | if(offset) |
| 578 | | cop_data_prg[cop_adr] = (cop_data_prg[cop_adr] & 0xff) | (data << 8); |
| 508 | /* all COP data writes are word-length (?) */ |
| 509 | if ((offset & 1) == 0) |
| 510 | { |
| 511 | assert(cop->offset == 0xffff); |
| 512 | cop->latch = data; |
| 513 | cop->offset = offset; |
| 514 | return; |
| 515 | } |
| 579 | 516 | else |
| 580 | | cop_data_prg[cop_adr] = (cop_data_prg[cop_adr] & 0xff00) | data; |
| 581 | | } |
| 517 | { |
| 518 | assert(cop->offset != 0xffff); |
| 519 | assert(offset == cop->offset + 1); |
| 520 | cop_data = cop->latch | (data << 8); |
| 521 | cop->offset = 0xffff; |
| 522 | offset &= 0xfffe; |
| 523 | } |
| 524 | cop->ram[offset/2] = cop_data; |
| 582 | 525 | |
| 583 | | static WRITE8_HANDLER(cop_reg_w) |
| 584 | | { |
| 585 | | int entry = (offset >> 1) & 15; |
| 586 | | switch(offset & 0x21) { |
| 587 | | case 0x00: |
| 588 | | cop_reg[entry] = (cop_reg[entry] & 0xff00ffffU) | (data << 16); |
| 589 | | break; |
| 590 | | case 0x01: |
| 591 | | cop_reg[entry] = (cop_reg[entry] & 0x00ffffffU) | (data << 24); |
| 592 | | break; |
| 593 | | case 0x20: |
| 594 | | cop_reg[entry] = (cop_reg[entry] & 0xffffff00U) | data; |
| 595 | | break; |
| 596 | | case 0x21: |
| 597 | | cop_reg[entry] = (cop_reg[entry] & 0xffff00ffU) | (data << 8); |
| 598 | | break; |
| 526 | /* handle writes */ |
| 527 | switch (offset + 0x400) |
| 528 | { |
| 529 | /* ----- BCD conversion ----- */ |
| 530 | |
| 531 | case 0x420: /* LSW of number */ |
| 532 | case 0x422: /* MSW of number */ |
| 533 | temp32 = cop_ram_r(cop, 0x420) | (cop_ram_r(cop, 0x422) << 16); |
| 534 | cop_ram_w(cop, 0x590, ((temp32 / 1) % 10) + (((temp32 / 10) % 10) << 8) + 0x3030); |
| 535 | cop_ram_w(cop, 0x592, ((temp32 / 100) % 10) + (((temp32 / 1000) % 10) << 8) + 0x3030); |
| 536 | cop_ram_w(cop, 0x594, ((temp32 / 10000) % 10) + (((temp32 / 100000) % 10) << 8) + 0x3030); |
| 537 | cop_ram_w(cop, 0x596, ((temp32 / 1000000) % 10) + (((temp32 / 10000000) % 10) << 8) + 0x3030); |
| 538 | cop_ram_w(cop, 0x598, ((temp32 / 100000000) % 10) + (((temp32 / 1000000000) % 10) << 8) + 0x3030); |
| 539 | break; |
| 540 | |
| 541 | /* ----- program upload registers ----- */ |
| 542 | |
| 543 | case 0x432: /* COP program data */ |
| 544 | COP_LOG(("%05X:COP Prog Data = %04X\n", activecpu_get_pc(), cop_data)); |
| 545 | cop->program[cop_ram_r(cop, 0x434)] = cop_data; |
| 546 | break; |
| 547 | |
| 548 | case 0x434: /* COP program address */ |
| 549 | COP_LOG(("%05X:COP Prog Addr = %04X\n", activecpu_get_pc(), cop_data)); |
| 550 | assert((cop_data & ~0xff) == 0); |
| 551 | temp32 = (cop_data & 0xff) / 8; |
| 552 | cop->func_value[temp32] = cop_ram_r(cop, 0x438); |
| 553 | cop->func_mask[temp32] = cop_ram_r(cop, 0x43a); |
| 554 | cop->func_trigger[temp32] = cop_ram_r(cop, 0x43c); |
| 555 | break; |
| 556 | |
| 557 | case 0x438: /* COP program entry value (0,4,5,6,7,8,9,F) */ |
| 558 | COP_LOG(("%05X:COP Prog Val = %04X\n", activecpu_get_pc(), cop_data)); |
| 559 | break; |
| 560 | |
| 561 | case 0x43a: /* COP program entry mask */ |
| 562 | COP_LOG(("%05X:COP Prog Mask = %04X\n", activecpu_get_pc(), cop_data)); |
| 563 | break; |
| 564 | |
| 565 | case 0x43c: /* COP program trigger value */ |
| 566 | COP_LOG(("%05X:COP Prog Trig = %04X\n", activecpu_get_pc(), cop_data)); |
| 567 | break; |
| 568 | |
| 569 | /* ----- ???? ----- */ |
| 570 | |
| 571 | case 0x47a: /* clear RAM */ |
| 572 | if (cop_ram_r(cop, 0x47e) == 0x118) |
| 573 | { |
| 574 | UINT32 addr = cop_ram_r(cop, 0x478) << 6; |
| 575 | int count = (cop_ram_r(cop, 0x47a) + 1) << 5; |
| 576 | COP_LOG(("%05X:COP RAM clear from %05X to %05X\n", activecpu_get_pc(), addr, addr + count)); |
| 577 | while (count--) |
| 578 | program_write_byte(addr++, 0); |
| 579 | } |
| 580 | else |
| 581 | { |
| 582 | COP_LOG(("%05X:COP Unknown RAM clear(%04X) = %04X\n", activecpu_get_pc(), cop_ram_r(cop, 0x47e), cop_data)); |
| 583 | } |
| 584 | break; |
| 585 | |
| 586 | /* ----- program data registers ----- */ |
| 587 | |
| 588 | case 0x4a0: /* COP register high word */ |
| 589 | case 0x4a2: /* COP register high word */ |
| 590 | case 0x4a4: /* COP register high word */ |
| 591 | case 0x4a6: /* COP register high word */ |
| 592 | regnum = (offset / 2) % 4; |
| 593 | COP_LOG(("%05X:COP RegHi(%d) = %04X\n", activecpu_get_pc(), regnum, cop_data)); |
| 594 | cop->reg[regnum] = (cop->reg[regnum] & 0x0000ffff) | (cop_data << 16); |
| 595 | break; |
| 596 | |
| 597 | case 0x4c0: /* COP register low word */ |
| 598 | case 0x4c2: /* COP register low word */ |
| 599 | case 0x4c4: /* COP register low word */ |
| 600 | case 0x4c6: /* COP register low word */ |
| 601 | regnum = (offset / 2) % 4; |
| 602 | COP_LOG(("%05X:COP RegLo(%d) = %04X\n", activecpu_get_pc(), regnum, cop_data)); |
| 603 | cop->reg[regnum] = (cop->reg[regnum] & 0xffff0000) | cop_data; |
| 604 | break; |
| 605 | |
| 606 | /* ----- program trigger register ----- */ |
| 607 | |
| 608 | case 0x500: /* COP trigger */ |
| 609 | COP_LOG(("%05X:COP Trigger = %04X\n", activecpu_get_pc(), cop_data)); |
| 610 | for (func = 0; func < ARRAY_LENGTH(cop->func_trigger); func++) |
| 611 | if (cop->func_trigger[func] == cop_data) |
| 612 | { |
| 613 | int offs; |
| 614 | |
| 615 | COP_LOG((" Execute:")); |
| 616 | for (offs = 0; offs < 8; offs++) |
| 617 | { |
| 618 | if (cop->program[func * 8 + offs] == 0) |
| 619 | break; |
| 620 | COP_LOG((" %04X", cop->program[func * 8 + offs])); |
| 621 | } |
| 622 | COP_LOG(("\n")); |
| 623 | |
| 624 | /* special cases for now */ |
| 625 | if (cop_data == 0x5205 || cop_data == 0x5a05) |
| 626 | { |
| 627 | COP_LOG((" Copy 32 bits from %05X to %05X\n", cop->reg[0], cop->reg[1])); |
| 628 | w32(cop->reg[1], r32(cop->reg[0])); |
| 629 | } |
| 630 | else if (cop_data == 0xf205) |
| 631 | { |
| 632 | COP_LOG((" Copy 32 bits from %05X to %05X\n", cop->reg[0] + 4, cop->reg[1])); |
| 633 | w32(cop->reg[2], r32(cop->reg[0] + 4)); |
| 634 | } |
| 635 | break; |
| 636 | } |
| 637 | assert(func != ARRAY_LENGTH(cop->func_trigger)); |
| 638 | break; |
| 639 | |
| 640 | /* ----- other stuff ----- */ |
| 641 | |
| 642 | default: /* unknown */ |
| 643 | COP_LOG(("%05X:COP Unknown(%04X) = %04X\n", activecpu_get_pc(), offset + 0x400, cop_data)); |
| 644 | break; |
| 599 | 645 | } |
| 600 | | logerror("cop_reg_w %x, %08x\n", entry, cop_reg[entry]); |
| 601 | 646 | } |
| 602 | 647 | |
| 603 | | static WRITE8_HANDLER(cop_fct_w) |
| 648 | |
| 649 | static READ8_HANDLER( cop_r ) |
| 604 | 650 | { |
| 605 | | if(offset) { |
| 606 | | cop_fct = (cop_fct & 0xff) | (data << 8); |
| 607 | | cop_run(); |
| 608 | | } else |
| 609 | | cop_fct = (cop_fct & 0xff00) | data; |
| 651 | cop_state *cop = &cop_data; |
| 652 | if ((offset & 1) == 0) |
| 653 | COP_LOG(("%05X:COP Read(%04X) = %04X\n", activecpu_get_pc(), offset + 0x400, cop->ram[offset/2])); |
| 654 | return cop->ram[offset/2] >> (8 * (offset & 1)); |
| 610 | 655 | } |
| 611 | 656 | |
| 612 | 657 | |
| r841 | r842 | |
| 872 | 917 | /* MEMORY MAPS */ |
| 873 | 918 | |
| 874 | 919 | static ADDRESS_MAP_START( raiden2_mem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 875 | | AM_RANGE(0x00432, 0x00433) AM_WRITE(cop_up_data_w) |
| 876 | | AM_RANGE(0x00434, 0x00435) AM_WRITE(cop_up_adr_w) |
| 877 | | AM_RANGE(0x00438, 0x0043d) AM_WRITE(cop_up_fct_w) |
| 878 | | AM_RANGE(0x004a0, 0x004df) AM_WRITE(cop_reg_w) |
| 879 | | AM_RANGE(0x00500, 0x00501) AM_WRITE(cop_fct_w) |
| 920 | AM_RANGE(0x00400, 0x005ff) AM_READWRITE(cop_r, cop_w) |
| 880 | 921 | |
| 881 | 922 | AM_RANGE(0x006a0, 0x006a3) AM_WRITE(sprcpt_val_1_w) |
| 882 | 923 | AM_RANGE(0x006a4, 0x006a7) AM_WRITE(sprcpt_data_3_w) |
| r841 | r842 | |
| 886 | 927 | AM_RANGE(0x006b4, 0x006b7) AM_WRITE(sprcpt_data_2_w) |
| 887 | 928 | AM_RANGE(0x006b8, 0x006bb) AM_WRITE(sprcpt_val_2_w) |
| 888 | 929 | AM_RANGE(0x006bc, 0x006bf) AM_WRITE(sprcpt_adr_w) |
| 889 | | |
| 890 | 930 | AM_RANGE(0x006ce, 0x006cf) AM_WRITE(sprcpt_flags_2_w) |
| 891 | 931 | |
| 892 | 932 | AM_RANGE(0x00000, 0x0bfff) AM_READWRITE(any_r, any_w) AM_BASE(&mainram) |
src/mame/drivers/raiden.c
| r841 | r842 | |
| 57 | 57 | static UINT8 *raiden_shared_ram; |
| 58 | 58 | extern UINT8 *raiden_back_data,*raiden_fore_data,*raiden_scroll_ram; |
| 59 | 59 | |
| 60 | | /***************************************************************************/ |
| 61 | | |
| 62 | | static READ8_HANDLER( raiden_shared_r ) { return raiden_shared_ram[offset]; } |
| 63 | | static WRITE8_HANDLER( raiden_shared_w ) { raiden_shared_ram[offset]=data; } |
| 64 | | |
| 65 | 60 | /******************************************************************************/ |
| 66 | 61 | |
| 67 | | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 68 | | AM_RANGE(0x00000, 0x07fff) AM_READ(MRA8_RAM) |
| 69 | | AM_RANGE(0x0a000, 0x0afff) AM_READ(raiden_shared_r) |
| 62 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 63 | AM_RANGE(0x00000, 0x06fff) AM_RAM |
| 64 | AM_RANGE(0x07000, 0x07fff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 65 | AM_RANGE(0x0a000, 0x0afff) AM_RAM AM_SHARE(1) AM_BASE(&raiden_shared_ram) |
| 70 | 66 | AM_RANGE(0x0b000, 0x0b000) AM_READ(input_port_1_r) |
| 71 | 67 | AM_RANGE(0x0b001, 0x0b001) AM_READ(input_port_2_r) |
| 72 | 68 | AM_RANGE(0x0b002, 0x0b002) AM_READ(input_port_3_r) |
| 73 | 69 | AM_RANGE(0x0b003, 0x0b003) AM_READ(input_port_4_r) |
| 74 | | AM_RANGE(0x0d000, 0x0d00d) AM_READ(seibu_main_v30_r) |
| 75 | | AM_RANGE(0xa0000, 0xfffff) AM_READ(MRA8_ROM) |
| 76 | | ADDRESS_MAP_END |
| 77 | | |
| 78 | | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 79 | | AM_RANGE(0x00000, 0x06fff) AM_WRITE(MWA8_RAM) |
| 80 | | AM_RANGE(0x07000, 0x07fff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 81 | | AM_RANGE(0x0a000, 0x0afff) AM_WRITE(raiden_shared_w) AM_BASE(&raiden_shared_ram) |
| 82 | 70 | AM_RANGE(0x0b000, 0x0b007) AM_WRITE(raiden_control_w) |
| 83 | 71 | AM_RANGE(0x0c000, 0x0c7ff) AM_WRITE(raiden_text_w) AM_BASE(&videoram) |
| 84 | | AM_RANGE(0x0d000, 0x0d00d) AM_WRITE(seibu_main_v30_w) |
| 72 | AM_RANGE(0x0d000, 0x0d00d) AM_READWRITE(seibu_main_v30_r, seibu_main_v30_w) |
| 85 | 73 | AM_RANGE(0x0d060, 0x0d067) AM_WRITE(MWA8_RAM) AM_BASE(&raiden_scroll_ram) |
| 86 | | AM_RANGE(0xa0000, 0xfffff) AM_WRITE(MWA8_ROM) |
| 74 | AM_RANGE(0xa0000, 0xfffff) AM_ROM |
| 87 | 75 | ADDRESS_MAP_END |
| 88 | 76 | |
| 89 | | static ADDRESS_MAP_START( sub_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 90 | | AM_RANGE(0x00000, 0x01fff) AM_READ(MRA8_RAM) |
| 91 | | AM_RANGE(0x02000, 0x027ff) AM_READ(raiden_background_r) |
| 92 | | AM_RANGE(0x02800, 0x02fff) AM_READ(raiden_foreground_r) |
| 93 | | AM_RANGE(0x03000, 0x03fff) AM_READ(paletteram_r) |
| 94 | | AM_RANGE(0x04000, 0x04fff) AM_READ(raiden_shared_r) |
| 95 | | AM_RANGE(0xc0000, 0xfffff) AM_READ(MRA8_ROM) |
| 96 | | ADDRESS_MAP_END |
| 97 | | |
| 98 | | static ADDRESS_MAP_START( sub_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 99 | | AM_RANGE(0x00000, 0x01fff) AM_WRITE(MWA8_RAM) |
| 100 | | AM_RANGE(0x02000, 0x027ff) AM_WRITE(raiden_background_w) AM_BASE(&raiden_back_data) |
| 101 | | AM_RANGE(0x02800, 0x02fff) AM_WRITE(raiden_foreground_w) AM_BASE(&raiden_fore_data) |
| 102 | | AM_RANGE(0x03000, 0x03fff) AM_WRITE(paletteram_xxxxBBBBGGGGRRRR_le_w) AM_BASE(&paletteram) |
| 103 | | AM_RANGE(0x04000, 0x04fff) AM_WRITE(raiden_shared_w) |
| 77 | static ADDRESS_MAP_START( sub_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 78 | AM_RANGE(0x00000, 0x01fff) AM_RAM |
| 79 | AM_RANGE(0x02000, 0x027ff) AM_READWRITE(raiden_background_r, raiden_background_w) AM_BASE(&raiden_back_data) |
| 80 | AM_RANGE(0x02800, 0x02fff) AM_READWRITE(raiden_foreground_r, raiden_foreground_w) AM_BASE(&raiden_fore_data) |
| 81 | AM_RANGE(0x03000, 0x03fff) AM_READWRITE(paletteram_r, paletteram_xxxxBBBBGGGGRRRR_le_w) AM_BASE(&paletteram) |
| 82 | AM_RANGE(0x04000, 0x04fff) AM_RAM AM_SHARE(1) |
| 104 | 83 | AM_RANGE(0x07ffe, 0x0afff) AM_WRITE(MWA8_NOP) |
| 105 | | AM_RANGE(0xc0000, 0xfffff) AM_WRITE(MWA8_ROM) |
| 84 | AM_RANGE(0xc0000, 0xfffff) AM_ROM |
| 106 | 85 | ADDRESS_MAP_END |
| 107 | 86 | |
| 108 | 87 | /************************* Alternate board set ************************/ |
| 109 | 88 | |
| 110 | | static ADDRESS_MAP_START( alt_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 111 | | AM_RANGE(0x00000, 0x07fff) AM_READ(MRA8_RAM) |
| 112 | | AM_RANGE(0x08000, 0x08fff) AM_READ(raiden_shared_r) |
| 113 | | AM_RANGE(0x0a000, 0x0a00d) AM_READ(seibu_main_v30_r) |
| 89 | static ADDRESS_MAP_START( alt_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 90 | AM_RANGE(0x00000, 0x06fff) AM_RAM |
| 91 | AM_RANGE(0x07000, 0x07fff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 92 | AM_RANGE(0x08000, 0x08fff) AM_RAM AM_SHARE(1) AM_BASE(&raiden_shared_ram) |
| 93 | AM_RANGE(0x0a000, 0x0a00d) AM_READWRITE(seibu_main_v30_r, seibu_main_v30_w) |
| 94 | AM_RANGE(0x0b000, 0x0b007) AM_WRITE(raiden_control_w) |
| 95 | AM_RANGE(0x0c000, 0x0c7ff) AM_WRITE(raidena_text_w) AM_BASE(&videoram) |
| 114 | 96 | AM_RANGE(0x0e000, 0x0e000) AM_READ(input_port_1_r) |
| 115 | 97 | AM_RANGE(0x0e001, 0x0e001) AM_READ(input_port_2_r) |
| 116 | 98 | AM_RANGE(0x0e002, 0x0e002) AM_READ(input_port_3_r) |
| 117 | 99 | AM_RANGE(0x0e003, 0x0e003) AM_READ(input_port_4_r) |
| 118 | | AM_RANGE(0xa0000, 0xfffff) AM_READ(MRA8_ROM) |
| 119 | | ADDRESS_MAP_END |
| 120 | | |
| 121 | | static ADDRESS_MAP_START( alt_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 122 | | AM_RANGE(0x00000, 0x06fff) AM_WRITE(MWA8_RAM) |
| 123 | | AM_RANGE(0x07000, 0x07fff) AM_WRITE(MWA8_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 124 | | AM_RANGE(0x08000, 0x08fff) AM_WRITE(raiden_shared_w) AM_BASE(&raiden_shared_ram) |
| 125 | | AM_RANGE(0x0a000, 0x0a00d) AM_WRITE(seibu_main_v30_w) |
| 126 | | AM_RANGE(0x0b000, 0x0b007) AM_WRITE(raiden_control_w) |
| 127 | | AM_RANGE(0x0c000, 0x0c7ff) AM_WRITE(raidena_text_w) AM_BASE(&videoram) |
| 128 | 100 | AM_RANGE(0x0f000, 0x0f035) AM_WRITE(MWA8_RAM) AM_BASE(&raiden_scroll_ram) |
| 129 | | AM_RANGE(0xa0000, 0xfffff) AM_WRITE(MWA8_ROM) |
| 101 | AM_RANGE(0xa0000, 0xfffff) AM_ROM |
| 130 | 102 | ADDRESS_MAP_END |
| 131 | 103 | |
| 132 | 104 | /******************************************************************************/ |
| r841 | r842 | |
| 282 | 254 | |
| 283 | 255 | /* basic machine hardware */ |
| 284 | 256 | MDRV_CPU_ADD(V30,20000000/2) /* NEC V30 CPU, 20MHz */ |
| 285 | | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 257 | MDRV_CPU_PROGRAM_MAP(main_map,0) |
| 286 | 258 | MDRV_CPU_VBLANK_INT(raiden_interrupt,1) |
| 287 | 259 | |
| 288 | 260 | MDRV_CPU_ADD(V30,20000000/2) /* NEC V30 CPU, 20MHz */ |
| 289 | | MDRV_CPU_PROGRAM_MAP(sub_readmem,sub_writemem) |
| 261 | MDRV_CPU_PROGRAM_MAP(sub_map,0) |
| 290 | 262 | MDRV_CPU_VBLANK_INT(raiden_interrupt,1) |
| 291 | 263 | |
| 292 | 264 | SEIBU_SOUND_SYSTEM_CPU(14318180/4) |
| r841 | r842 | |
| 318 | 290 | |
| 319 | 291 | /* basic machine hardware */ |
| 320 | 292 | MDRV_CPU_ADD(V30,20000000/2) /* NEC V30 CPU, 20MHz */ |
| 321 | | MDRV_CPU_PROGRAM_MAP(alt_readmem,alt_writemem) |
| 293 | MDRV_CPU_PROGRAM_MAP(alt_map,0) |
| 322 | 294 | MDRV_CPU_VBLANK_INT(raiden_interrupt,1) |
| 323 | 295 | |
| 324 | 296 | MDRV_CPU_ADD(V30,20000000/2) /* NEC V30 CPU, 20MHz */ |
| 325 | | MDRV_CPU_PROGRAM_MAP(sub_readmem,sub_writemem) |
| 297 | MDRV_CPU_PROGRAM_MAP(sub_map,0) |
| 326 | 298 | MDRV_CPU_VBLANK_INT(raiden_interrupt,1) |
| 327 | 299 | |
| 328 | 300 | SEIBU_SOUND_SYSTEM_CPU(14318180/4) |
src/mame/drivers/thayers.c
| r0 | r842 | |
| 1 | /* |
| 2 | RDI Video Systems Thayer's Quest laserdisc hardware |
| 3 | Driver by Andrew Gardner from schematics with help from Daphne Source |
| 4 | |
| 5 | Notes: |
| 6 | How odd. The schematics say there's a COP421L hooked up, but they also make mention of |
| 7 | a COP404L - A ROMless COP420 with 1k of RAM. I wonder which one is correct? |
| 8 | |
| 9 | Todo: |
| 10 | Add the counter and SIO to the cop420 core. |
| 11 | Fix up my poor interpretation of the hard-to-read schematics. |
| 12 | Write a real SC-01 (SSI-263) emulator for MAME. |
| 13 | */ |
| 14 | |
| 15 | #include "driver.h" |
| 16 | #include "render.h" |
| 17 | #include "machine/laserdsc.h" |
| 18 | #include "cpu/cop400/cop400.h" |
| 19 | |
| 20 | #define SCHEMATIC_CLOCK (4000000) |
| 21 | |
| 22 | /* |
| 23 | * Z80 IRQ Status bit |
| 24 | * ------------------ |
| 25 | * |
| 26 | * Bit | Use |
| 27 | * 76543210-+---------------- |
| 28 | * -------x | Unused |
| 29 | * ------x- | Unused |
| 30 | * -----x-- | SSI-263 Request Data. |
| 31 | * ----x--- | always high. (? but it's checked at 0x1bb ?) |
| 32 | * ---x---- | /TIMER INT. |
| 33 | * --x----- | /DATA RDY INT. |
| 34 | * -x------ | /CART PRES. |
| 35 | * x------- | Unused |
| 36 | */ |
| 37 | static UINT8 z80_irq_status; |
| 38 | |
| 39 | #define Z80_IRQ_STATUS_SET() (z80_irq_status = 0x00) |
| 40 | #define Z80_IRQ_STATUS_CLEAR() (z80_irq_status = 0xff) |
| 41 | |
| 42 | #define Z80_SSI_REQUEST() ((z80_irq_status & 0x04) >> 2) |
| 43 | #define Z80_TIMER_INT() ((z80_irq_status & 0x10) >> 4) |
| 44 | #define Z80_DATA_RDY_INT() ((z80_irq_status & 0x20) >> 5) |
| 45 | #define Z80_CART_PRES() ((z80_irq_status & 0x40) >> 6) |
| 46 | |
| 47 | #define SET_Z80_SSI_REQUEST() (z80_irq_status &= ~0x04) |
| 48 | #define SET_Z80_TIMER_INT() (z80_irq_status &= ~0x10) |
| 49 | #define SET_Z80_DATA_RDY_INT() (z80_irq_status &= ~0x20) |
| 50 | #define SET_Z80_CART_PRES() (z80_irq_status &= ~0x40) |
| 51 | |
| 52 | #define CLEAR_Z80_SSI_REQUEST() (z80_irq_status |= 0x04) |
| 53 | #define CLEAR_Z80_TIMER_INT() (z80_irq_status |= 0x10) |
| 54 | #define CLEAR_Z80_DATA_RDY_INT() (z80_irq_status |= 0x20) |
| 55 | #define CLEAR_Z80_CART_PRES() (z80_irq_status |= 0x40) |
| 56 | |
| 57 | |
| 58 | /* Misc variables */ |
| 59 | static UINT8* ram_ic; |
| 60 | static laserdisc_info *discinfo; |
| 61 | |
| 62 | static UINT8 m_ssi_control; |
| 63 | static UINT8 cop_g_latch; |
| 64 | static UINT8 cop_l_latch; |
| 65 | |
| 66 | |
| 67 | |
| 68 | /* VIDEO GOODS */ |
| 69 | VIDEO_UPDATE( thayers ) |
| 70 | { |
| 71 | /* display disc information */ |
| 72 | if (discinfo != NULL) |
| 73 | popmessage("%s", laserdisc_describe_state(discinfo)); |
| 74 | |
| 75 | return 0; |
| 76 | } |
| 77 | |
| 78 | |
| 79 | |
| 80 | /* MEMORY HANDLERS */ |
| 81 | /* Z80 R/W */ |
| 82 | READ8_HANDLER(z80_irq_status_r) |
| 83 | { |
| 84 | return z80_irq_status; |
| 85 | } |
| 86 | |
| 87 | READ8_HANDLER(ram_ic_read) |
| 88 | { |
| 89 | /* Daphne patches. |
| 90 | if (offset == 0xbe07-0x8000) |
| 91 | return 0x02; |
| 92 | |
| 93 | if (offset == 0xbe17-0x8000) |
| 94 | return 0x01; |
| 95 | */ |
| 96 | |
| 97 | return ram_ic[offset]; |
| 98 | } |
| 99 | |
| 100 | static UINT32 laserdisc_status_r(void *param) |
| 101 | { |
| 102 | if (discinfo == NULL) |
| 103 | return 0; |
| 104 | |
| 105 | /* Someday handle multiple LD players */ |
| 106 | return (laserdisc_line_r(discinfo, LASERDISC_LINE_STATUS) == ASSERT_LINE) ? 0 : 1; |
| 107 | } |
| 108 | |
| 109 | static UINT32 laserdisc_command_r(void *param) |
| 110 | { |
| 111 | if (discinfo == NULL) |
| 112 | return 0; |
| 113 | |
| 114 | /* Someday handle multiple LD players */ |
| 115 | return (laserdisc_line_r(discinfo, LASERDISC_LINE_COMMAND) == ASSERT_LINE) ? 0 : 1; |
| 116 | } |
| 117 | |
| 118 | WRITE8_HANDLER(ram_ic_write) |
| 119 | { |
| 120 | ram_ic[offset] = data; |
| 121 | } |
| 122 | |
| 123 | WRITE8_HANDLER(data_ready_int_w) |
| 124 | { |
| 125 | CLEAR_Z80_DATA_RDY_INT(); |
| 126 | /* Hackaroo? */ |
| 127 | /* cop_l_latch = 0x00; */ |
| 128 | } |
| 129 | |
| 130 | WRITE8_HANDLER(timer_int_w) |
| 131 | { |
| 132 | CLEAR_Z80_TIMER_INT(); |
| 133 | } |
| 134 | |
| 135 | WRITE8_HANDLER(write_cop) |
| 136 | { |
| 137 | logerror("Writing 0x%x to COP port G\n", data); |
| 138 | |
| 139 | /* Bits 5-7 write to COP421 ports G0-G2 */ |
| 140 | cop_g_latch = (data >> 5) & 0x07; |
| 141 | |
| 142 | /* Bit 2 goes to BANKSELT */ |
| 143 | /* bankselect = (data & 0x04) >> 2; */ |
| 144 | |
| 145 | /* Bit 1 goes to CS128x? (illegible schems) */ |
| 146 | } |
| 147 | |
| 148 | WRITE8_HANDLER(data_write_cop) |
| 149 | { |
| 150 | cop_l_latch = data; |
| 151 | } |
| 152 | |
| 153 | WRITE8_HANDLER(intrq_w) |
| 154 | { |
| 155 | cpunum_set_input_line(0, 0, ASSERT_LINE); |
| 156 | } |
| 157 | |
| 158 | WRITE8_HANDLER(sc01_register_w) |
| 159 | { |
| 160 | /* (Thank you Daphne) */ |
| 161 | switch (offset) |
| 162 | { |
| 163 | case 0x00: |
| 164 | if (m_ssi_control) |
| 165 | { |
| 166 | logerror("SC-01 control mode : 0x%x\n", data); |
| 167 | |
| 168 | switch(data) |
| 169 | { |
| 170 | /* Stop requesting phonemes */ |
| 171 | case 0x00: |
| 172 | CLEAR_Z80_SSI_REQUEST(); |
| 173 | break; |
| 174 | |
| 175 | /* Start adding phonemes */ |
| 176 | case 0xc0: |
| 177 | SET_Z80_SSI_REQUEST(); |
| 178 | if (!(Z80_SSI_REQUEST())) |
| 179 | logerror("SETTING IRQ LINE sc01\n"); |
| 180 | cpunum_set_input_line(0, 0, ASSERT_LINE); |
| 181 | break; |
| 182 | |
| 183 | default: |
| 184 | logerror("SC-01 control mode invalid code 0x%x\n", data); |
| 185 | break; |
| 186 | } |
| 187 | } |
| 188 | else |
| 189 | { |
| 190 | logerror("SC-01 receiving phonemes 0x%x\n", data & 0x3f); |
| 191 | } |
| 192 | break; |
| 193 | |
| 194 | case 0x01: |
| 195 | logerror("SC-01 inflection changed to 0x%x\n", data); |
| 196 | break; |
| 197 | |
| 198 | case 0x02: |
| 199 | logerror("SC-01 speech rate changed to 0x%x\n", data); |
| 200 | break; |
| 201 | |
| 202 | case 0x03: |
| 203 | if (data & 0x80) |
| 204 | { |
| 205 | m_ssi_control = 1; |
| 206 | logerror("SC-01 now in control mode.\n"); |
| 207 | } |
| 208 | else if (data & 0x70) |
| 209 | { |
| 210 | m_ssi_control = 0; |
| 211 | logerror("SC-01 control mode cleared.\n"); |
| 212 | } |
| 213 | else |
| 214 | { |
| 215 | logerror("SC-01 amplitude manipulated 0x%x.\n", data); |
| 216 | } |
| 217 | break; |
| 218 | |
| 219 | case 0x04: |
| 220 | logerror("SC-01 filter frequency changed to 0x%x.\n", data); |
| 221 | break; |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | |
| 226 | /* COP R/W */ |
| 227 | /* All 8 l pins are hooked up here */ |
| 228 | READ8_HANDLER(cop_l_read) |
| 229 | { |
| 230 | logerror("COP - Reading from L @ (0x%x)\n", activecpu_get_pc()); |
| 231 | return cop_l_latch; |
| 232 | } |
| 233 | |
| 234 | /* Pins g0, g1, g2, and g3 are all hooked up */ |
| 235 | READ8_HANDLER(cop_g_read) |
| 236 | { |
| 237 | logerror("COP - Reading from G @ (0x%x)\n", activecpu_get_pc()); |
| 238 | return cop_g_latch; |
| 239 | } |
| 240 | |
| 241 | WRITE8_HANDLER(cop_l_write) |
| 242 | { |
| 243 | logerror("COP - WRITING TO L 0x%x @ (0x%x)\n", data, activecpu_get_pc()); |
| 244 | cop_l_latch = data; |
| 245 | } |
| 246 | |
| 247 | WRITE8_HANDLER(cop_g_write) |
| 248 | { |
| 249 | logerror("COP - WRITING TO G 0x%x @ (0x%x)\n", data, activecpu_get_pc()); |
| 250 | |
| 251 | /* Bit 3 goes to an enable pin on the data latch? */ |
| 252 | /* Bits 0-2 seem to go into the wrong side of a logic IC? */ |
| 253 | } |
| 254 | |
| 255 | /* Schematics say pins d0 and d1 are the only two that are hooked up */ |
| 256 | WRITE8_HANDLER(cop_d_write) |
| 257 | { |
| 258 | int irq_flag = 0; |
| 259 | |
| 260 | logerror("COP - WRITING TO D 0x%x @ (0x%x)\n", data, activecpu_get_pc()); |
| 261 | |
| 262 | /* Pin d0 - TIMER INT */ |
| 263 | if (!(data & 0x01)) |
| 264 | { |
| 265 | SET_Z80_TIMER_INT(); |
| 266 | irq_flag = 1; |
| 267 | } |
| 268 | |
| 269 | /* Pin d1 - DATA READY INT */ |
| 270 | if (!(data & 0x02)) |
| 271 | { |
| 272 | SET_Z80_DATA_RDY_INT(); |
| 273 | irq_flag = 1; |
| 274 | } |
| 275 | |
| 276 | /* Assert the Z80's interrupt line if necessary */ |
| 277 | if (irq_flag) |
| 278 | { |
| 279 | logerror("THE COP IS SETTING THE IRQ LINE\n"); |
| 280 | cpunum_set_input_line(0, 0, ASSERT_LINE); |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | WRITE8_HANDLER(cop_sk_write) |
| 285 | { |
| 286 | /* I think this data falls off into a black hole - the pins aren't hooked up. |
| 287 | The COP400 XAS instruction writes to both SK and SIO, that's why the CPU writes data here at all. */ |
| 288 | } |
| 289 | |
| 290 | WRITE8_HANDLER(cop_sio_write) |
| 291 | { |
| 292 | /* This data is sent to the CLK pin of the keyboard handling logic. We don't need to emulate it here. */ |
| 293 | } |
| 294 | |
| 295 | |
| 296 | |
| 297 | /* PROGRAM MAPS */ |
| 298 | static ADDRESS_MAP_START( mainmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 299 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 300 | AM_RANGE(0x8000, 0xbfff) AM_READWRITE(ram_ic_read,ram_ic_write) AM_BASE(&ram_ic) /* Not quite sure how big the RAM IC is. */ |
| 301 | AM_RANGE(0xc000, 0xdfff) AM_ROM /* This is what Daphne says - we'll soon see. */ |
| 302 | ADDRESS_MAP_END |
| 303 | |
| 304 | static ADDRESS_MAP_START( copmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 305 | AM_RANGE(0x000, 0x3ff) AM_ROM /* The schematics seem to claim this is a 2716 (0x800 bytes) - is the dump too small? */ |
| 306 | ADDRESS_MAP_END |
| 307 | |
| 308 | |
| 309 | /* IO MAPS */ |
| 310 | static ADDRESS_MAP_START( mainio, ADDRESS_SPACE_IO, 8 ) |
| 311 | ADDRESS_MAP_FLAGS( AMEF_ABITS(8) ) |
| 312 | AM_RANGE(0x00,0x04) AM_WRITE(sc01_register_w) |
| 313 | AM_RANGE(0x20,0x20) AM_WRITE(write_cop) |
| 314 | AM_RANGE(0x40,0x40) AM_READ(z80_irq_status_r) |
| 315 | /* AM_RANGE(0x80,0x80) AM_WRITE(data_write_cop) */ |
| 316 | AM_RANGE(0xa0,0xa0) AM_WRITE(timer_int_w) |
| 317 | AM_RANGE(0xc0,0xc0) AM_WRITE(data_ready_int_w) |
| 318 | |
| 319 | /* AM_RANGE(0xf0,0xf0) */ /* Laserdisc data read */ |
| 320 | AM_RANGE(0xf1,0xf1) AM_READ(port_tag_to_handler8("DSWB")) /* 4 dips, 2 coins, Laserdisc 'ready' and 'enter' pins */ |
| 321 | AM_RANGE(0xf2,0xf2) AM_READ(port_tag_to_handler8("DSWA")) /* 8 dips */ |
| 322 | AM_RANGE(0xf3,0xf3) AM_WRITE(intrq_w) /* goes to !INTRQ */ |
| 323 | /* AM_RANGE(0xf4,0xf4) */ /* Laserdisc data write */ |
| 324 | /* AM_RANGE(0xf5,0xf5) */ /* Coin counter, 0xf4 write enable, DIP-controlled (SWB-6) LDV1000 'enter' line, and LDV1000 INT/!EXT line */ |
| 325 | /* AM_RANGE(0xf6,0xf6) */ /* Scoreboard DEN1 */ |
| 326 | /* AM_RANGE(0xf7,0xf7) */ /* Scoreboard DEN2 */ |
| 327 | ADDRESS_MAP_END |
| 328 | |
| 329 | static ADDRESS_MAP_START( copio, ADDRESS_SPACE_IO, 8 ) |
| 330 | AM_RANGE(COP400_PORT_L, COP400_PORT_L) AM_READWRITE(cop_l_read,cop_l_write) |
| 331 | AM_RANGE(COP400_PORT_G, COP400_PORT_G) AM_READWRITE(cop_g_read,cop_g_write) |
| 332 | AM_RANGE(COP400_PORT_D, COP400_PORT_D) AM_WRITE(cop_d_write) |
| 333 | AM_RANGE(COP400_PORT_SK, COP400_PORT_SK) AM_WRITE(cop_sk_write) |
| 334 | AM_RANGE(COP400_PORT_SIO,COP400_PORT_SIO) AM_READWRITE(port_tag_to_handler8("THAYERS_LETTERS"),cop_sio_write) /* Unemulated in COP40x core, so nothing happens ATM */ |
| 335 | ADDRESS_MAP_END |
| 336 | |
| 337 | |
| 338 | /* PORTS */ |
| 339 | INPUT_PORTS_START( thayers ) |
| 340 | PORT_START_TAG("DSWA") |
| 341 | PORT_DIPNAME( 0x07, 0x07, "Time Per Coin" ) PORT_DIPLOCATION( "A:3,2,1" ) |
| 342 | PORT_DIPSETTING( 0x07, "110 Seconds" ) |
| 343 | PORT_DIPSETTING( 0x06, "95 Seconds" ) |
| 344 | PORT_DIPSETTING( 0x05, "80 Seconds" ) |
| 345 | PORT_DIPSETTING( 0x04, "70 Seconds" ) |
| 346 | PORT_DIPSETTING( 0x03, "60 Seconds" ) |
| 347 | PORT_DIPSETTING( 0x02, "45 Seconds" ) |
| 348 | PORT_DIPSETTING( 0x01, "30 Seconds" ) |
| 349 | PORT_DIPSETTING( 0x00, DEF_STR ( Free_Play ) ) |
| 350 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Coinage ) ) PORT_DIPLOCATION( "A:4" ) |
| 351 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) |
| 352 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_1C ) ) |
| 353 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Lives ) ) PORT_DIPLOCATION( "A:5" ) |
| 354 | PORT_DIPSETTING( 0x10, "3" ) |
| 355 | PORT_DIPSETTING( 0x00, "5" ) |
| 356 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION( "A:6" ) |
| 357 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 358 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| 359 | PORT_DIPNAME( 0x40, 0x40, "Attract Mode Audio" ) PORT_DIPLOCATION( "A:7" ) |
| 360 | PORT_DIPSETTING( 0x40, "Always Playing" ) |
| 361 | PORT_DIPSETTING( 0x00, "One Out of 8 Times" ) |
| 362 | PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_LOW, "A:8" ) |
| 363 | |
| 364 | PORT_START_TAG("DSWB") |
| 365 | PORT_DIPNAME( 0x01, 0x01, "Gameplay Mode" ) PORT_DIPLOCATION( "B:1" ) |
| 366 | PORT_DIPSETTING( 0x01, "Normal Play" ) |
| 367 | PORT_DIPSETTING( 0x00, "Self-Diagnostics Mode" ) |
| 368 | PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "B:2" ) |
| 369 | PORT_DIPUNUSED_DIPLOC( 0x04, IP_ACTIVE_LOW, "B:3" ) |
| 370 | PORT_DIPNAME( 0x08, 0x08, "LD Player" ) PORT_DIPLOCATION( "B:4" ) |
| 371 | PORT_DIPSETTING( 0x08, "LDV-1000" ) |
| 372 | PORT_DIPSETTING( 0x00, "PR-7820" ) |
| 373 | /* DIP SWITCH 5 isn't read here, but it also controls LD player selection - I wonder how to add it properly? */ |
| 374 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 375 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 376 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(laserdisc_command_r, 0 ) /* Enter pin on LD player */ |
| 377 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(laserdisc_status_r, 0 ) /* Ready pin on LD player */ |
| 378 | |
| 379 | /* The following 3 port definitions can be combined into one (thus making this scheme work) if the port bit limit is raised from 32 to 64 */ |
| 380 | /* But maybe there's a better way to do it than what I have here? */ |
| 381 | /* Or maybe this doesn't even work at all :) */ |
| 382 | /* "Scan codes" heisted from Daphne - need to be tested! */ |
| 383 | PORT_START_TAG("THAYERS_ACTIONS") |
| 384 | PORT_BIT( 0x30, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( DEF_STR( No ) ) PORT_CODE( KEYCODE_DEL_PAD ) |
| 385 | PORT_BIT( 0x31, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( DEF_STR( Yes ) ) PORT_CODE( KEYCODE_0_PAD ) |
| 386 | PORT_BIT( 0x32, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Items" ) PORT_CODE( KEYCODE_1_PAD ) |
| 387 | PORT_BIT( 0x33, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Drop Item" ) PORT_CODE( KEYCODE_2_PAD ) |
| 388 | PORT_BIT( 0x34, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Give Score" ) PORT_CODE( KEYCODE_3_PAD ) |
| 389 | PORT_BIT( 0x35, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Replay" ) PORT_CODE( KEYCODE_4_PAD ) |
| 390 | PORT_BIT( 0x36, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Combine Action" ) PORT_CODE( KEYCODE_6_PAD ) |
| 391 | PORT_BIT( 0x37, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Save Game" ) PORT_CODE( KEYCODE_7_PAD ) |
| 392 | PORT_BIT( 0x38, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Update" ) PORT_CODE( KEYCODE_8_PAD ) |
| 393 | PORT_BIT( 0x39, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Hint" ) PORT_CODE( KEYCODE_9_PAD ) |
| 394 | |
| 395 | PORT_START_TAG("THAYERS_LETTERS") |
| 396 | PORT_BIT( 0x41, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "A" ) PORT_CODE( KEYCODE_A ) |
| 397 | PORT_BIT( 0x42, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "B - Silver Wheat" ) PORT_CODE( KEYCODE_B ) |
| 398 | PORT_BIT( 0x43, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "C - Spell of Seeing" ) PORT_CODE( KEYCODE_C ) |
| 399 | PORT_BIT( 0x44, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "D - Great Circlet" ) PORT_CODE( KEYCODE_D ) |
| 400 | PORT_BIT( 0x45, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "E - Black Mace" ) PORT_CODE( KEYCODE_E ) |
| 401 | PORT_BIT( 0x46, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "F - Hunting Horn" ) PORT_CODE( KEYCODE_F ) |
| 402 | PORT_BIT( 0x47, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "G - Long Bow" ) PORT_CODE( KEYCODE_G ) |
| 403 | PORT_BIT( 0x48, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "H - Medallion" ) PORT_CODE( KEYCODE_H ) |
| 404 | PORT_BIT( 0x49, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "I - Crown" ) PORT_CODE( KEYCODE_I ) |
| 405 | PORT_BIT( 0x4a, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "J - Onyx Seal" ) PORT_CODE( KEYCODE_J ) |
| 406 | PORT_BIT( 0x4b, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "K - Orb of Quoid" ) PORT_CODE( KEYCODE_K ) |
| 407 | PORT_BIT( 0x4c, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "L" ) PORT_CODE( KEYCODE_L ) |
| 408 | PORT_BIT( 0x4d, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "M - Spell of Understanding" ) PORT_CODE( KEYCODE_M ) |
| 409 | PORT_BIT( 0x4e, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "N - Staff" ) PORT_CODE( KEYCODE_N ) |
| 410 | PORT_BIT( 0x4f, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "O - Crystal" ) PORT_CODE( KEYCODE_O ) |
| 411 | PORT_BIT( 0x50, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "P" ) PORT_CODE( KEYCODE_P ) |
| 412 | PORT_BIT( 0x51, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Q" ) PORT_CODE( KEYCODE_Q ) |
| 413 | PORT_BIT( 0x52, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "R - Blood Sword" ) PORT_CODE( KEYCODE_R ) |
| 414 | PORT_BIT( 0x53, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "S - Dagger" ) PORT_CODE( KEYCODE_S ) |
| 415 | PORT_BIT( 0x54, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "T - Chalice" ) PORT_CODE( KEYCODE_T ) |
| 416 | PORT_BIT( 0x55, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "U - Cold Fire" ) PORT_CODE( KEYCODE_U ) |
| 417 | PORT_BIT( 0x56, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "V - Shield" ) PORT_CODE( KEYCODE_V ) |
| 418 | PORT_BIT( 0x57, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "W - Amulet" ) PORT_CODE( KEYCODE_W ) |
| 419 | PORT_BIT( 0x58, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "X - Scepter" ) PORT_CODE( KEYCODE_X ) |
| 420 | PORT_BIT( 0x59, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Y - Coins" ) PORT_CODE( KEYCODE_Y ) |
| 421 | PORT_BIT( 0x5a, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "Z - Spell of Release" ) PORT_CODE( KEYCODE_Z ) |
| 422 | |
| 423 | PORT_START_TAG("THAYERS_NUMBERS") |
| 424 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "1 - Clear" ) PORT_CODE( KEYCODE_LCONTROL ) |
| 425 | PORT_BIT( 0x81, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "2" ) PORT_CODE( KEYCODE_RCONTROL ) |
| 426 | PORT_BIT( 0x82, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "3 - Enter" ) PORT_CODE( KEYCODE_ENTER ) |
| 427 | PORT_BIT( 0x83, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME( "4 - Space" ) PORT_CODE( KEYCODE_SPACE ) |
| 428 | INPUT_PORTS_END |
| 429 | |
| 430 | |
| 431 | static MACHINE_START( thayers ) |
| 432 | { |
| 433 | discinfo = laserdisc_init(LASERDISC_TYPE_LDV1000, get_disk_handle(0), 0); |
| 434 | return; |
| 435 | } |
| 436 | |
| 437 | static INTERRUPT_GEN( vblank_callback_thayers ) |
| 438 | { |
| 439 | laserdisc_vsync(discinfo); |
| 440 | } |
| 441 | |
| 442 | |
| 443 | /* DRIVER */ |
| 444 | static MACHINE_DRIVER_START( thayers ) |
| 445 | /* main cpu */ |
| 446 | MDRV_CPU_ADD(Z80, SCHEMATIC_CLOCK) |
| 447 | MDRV_CPU_PROGRAM_MAP(mainmem,0) |
| 448 | MDRV_CPU_IO_MAP(mainio,0) |
| 449 | MDRV_CPU_VBLANK_INT(vblank_callback_thayers, 1) |
| 450 | |
| 451 | MDRV_MACHINE_START(thayers) |
| 452 | |
| 453 | /* io device cpu */ |
| 454 | MDRV_CPU_ADD(COP420, SCHEMATIC_CLOCK/2/8); /* Can't read the schematics, but this is what daphne says */ |
| 455 | MDRV_CPU_PROGRAM_MAP(copmem,0) |
| 456 | MDRV_CPU_IO_MAP(copio,0) |
| 457 | |
| 458 | /* video */ |
| 459 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 460 | |
| 461 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 462 | MDRV_SCREEN_REFRESH_RATE(60) |
| 463 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_60HZ_VBLANK_DURATION) |
| 464 | MDRV_SCREEN_SIZE(32*10, 32*8) |
| 465 | MDRV_SCREEN_VISIBLE_AREA(0*10, 32*10-1, 0*8, 32*8-1) |
| 466 | |
| 467 | MDRV_PALETTE_LENGTH(256) |
| 468 | MDRV_VIDEO_UPDATE(thayers) |
| 469 | |
| 470 | /* sound */ |
| 471 | MACHINE_DRIVER_END |
| 472 | |
| 473 | |
| 474 | ROM_START( thayers ) |
| 475 | ROM_REGION( 0xe000, REGION_CPU1, 0 ) |
| 476 | ROM_LOAD( "tq_u33.bin", 0x0000, 0x8000, CRC(82df5d89) SHA1(58dfd62bf8c5a55d1eba397d2c284e99a4685a3f) ) |
| 477 | ROM_LOAD( "tq_u1.bin", 0xc000, 0x2000, CRC(e8e7f566) SHA1(df7b83ef465c65446c8418bc6007447693b75021) ) |
| 478 | |
| 479 | ROM_REGION( 0x400, REGION_CPU2, 0 ) |
| 480 | ROM_LOAD( "tq_cop.bin", 0x000, 0x400, CRC(6748e6b3) SHA1(5d7d1ecb57c1501ef6a2d9691eecc9970586606b) ) |
| 481 | ROM_END |
| 482 | |
| 483 | |
| 484 | static DRIVER_INIT( thayers ) |
| 485 | { |
| 486 | Z80_IRQ_STATUS_CLEAR(); |
| 487 | m_ssi_control = 0; |
| 488 | |
| 489 | cop_g_latch = 0xff; |
| 490 | } |
| 491 | |
| 492 | /* YEAR NAME PARENT MACHINE INPUT INIT MONITOR COMPANY FULLNAME FLAGS) */ |
| 493 | GAME( 1983, thayers, 0, thayers, thayers, thayers, ROT0, "RDI Video Systems", "Thayer's Quest", GAME_NOT_WORKING|GAME_NO_SOUND) |
src/mame/drivers/merit.c
| r841 | r842 | |
| 187 | 187 | AM_RANGE(0xf800, 0xfbff) AM_WRITE(palette_w) AM_BASE(&paletteram) |
| 188 | 188 | ADDRESS_MAP_END |
| 189 | 189 | |
| 190 | static ADDRESS_MAP_START( bigappg_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 191 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 192 | AM_RANGE(0xa000, 0xafff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 193 | AM_RANGE(0xc004, 0xc007) AM_READWRITE(ppi8255_0_r, ppi8255_0_w) |
| 194 | AM_RANGE(0xc008, 0xc00b) AM_READWRITE(ppi8255_1_r, ppi8255_1_w) |
| 195 | AM_RANGE(0xe000, 0xe001) AM_WRITENOP // 6845 crt |
| 196 | AM_RANGE(0xe800, 0xefff) AM_READWRITE(MRA8_RAM, phrcraze_attr_w) AM_BASE(&phrcraze_attr) |
| 197 | AM_RANGE(0xf000, 0xf7ff) AM_READWRITE(MRA8_RAM, phrcraze_bg_w) AM_BASE(&videoram) |
| 198 | AM_RANGE(0xf800, 0xfbff) AM_WRITE(palette_w) AM_BASE(&paletteram) |
| 199 | ADDRESS_MAP_END |
| 190 | 200 | |
| 201 | |
| 191 | 202 | static ADDRESS_MAP_START( trvwhiz_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 192 | 203 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 193 | 204 | AM_RANGE(0x4c00, 0x4cff) AM_READWRITE(questions_r, high_offset_w) |
| r841 | r842 | |
| 599 | 610 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 600 | 611 | INPUT_PORTS_END |
| 601 | 612 | |
| 613 | INPUT_PORTS_START( bigappg ) |
| 614 | PORT_START |
| 615 | PORT_DIPNAME( 0x01, 0x01, "1" ) |
| 616 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 617 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 618 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 619 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 620 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 621 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 622 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 623 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 624 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 625 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 626 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 627 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 628 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 629 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 630 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 631 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 632 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 633 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 634 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 635 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 636 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 637 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 638 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 602 | 639 | |
| 640 | PORT_START |
| 641 | PORT_DIPNAME( 0x01, 0x01, "2" ) |
| 642 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 643 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 644 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 645 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 646 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 647 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 648 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 649 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 650 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 651 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 652 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 653 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 654 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 655 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 656 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 657 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 658 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 659 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 660 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 661 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 662 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 663 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 664 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 603 | 665 | |
| 666 | PORT_START |
| 667 | PORT_DIPNAME( 0x01, 0x01, "3" ) |
| 668 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 669 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 670 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 671 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 672 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 673 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 674 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 675 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 676 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 677 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 678 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 679 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 680 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 681 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 682 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 683 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 684 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 685 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 686 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 687 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 688 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 689 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 690 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 691 | |
| 692 | PORT_START |
| 693 | PORT_DIPNAME( 0x01, 0x01, "4" ) |
| 694 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 695 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 696 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 697 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 698 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 699 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 700 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 701 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 702 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 703 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 704 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 705 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 706 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 707 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 708 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 709 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 710 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 711 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 712 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 713 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 714 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 715 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 716 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 717 | INPUT_PORTS_END |
| 718 | |
| 604 | 719 | static TILE_GET_INFO( get_tile_info_bg ) |
| 605 | 720 | { |
| 606 | 721 | int attr = phrcraze_attr[tile_index]; |
| r841 | r842 | |
| 711 | 826 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 712 | 827 | MACHINE_DRIVER_END |
| 713 | 828 | |
| 829 | static MACHINE_DRIVER_START( bigappg ) |
| 830 | MDRV_IMPORT_FROM(pitboss) |
| 831 | |
| 832 | MDRV_CPU_MODIFY("main") |
| 833 | MDRV_CPU_PROGRAM_MAP(bigappg_map,0) |
| 834 | MDRV_CPU_IO_MAP(tictac_io_map,0) |
| 835 | MACHINE_DRIVER_END |
| 836 | |
| 714 | 837 | static MACHINE_DRIVER_START( tictac ) |
| 715 | 838 | MDRV_IMPORT_FROM(pitboss) |
| 716 | 839 | |
| r841 | r842 | |
| 774 | 897 | ROM_LOAD( "u40", 0x0000, 0x2000, CRC(b13a3fb1) SHA1(25760aa27c88b8be248a87df724bf8797d179e7a) ) |
| 775 | 898 | ROM_END |
| 776 | 899 | |
| 900 | ROM_START( bigappg ) |
| 901 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 902 | ROM_LOAD( "merit.u5", 0x0000, 0x8000, CRC(47bad6fd) SHA1(87f6c603b52e184f82179869d7b58453cbd34814) ) |
| 777 | 903 | |
| 904 | ROM_REGION( 0x6000, REGION_GFX1, 0 ) |
| 905 | ROM_LOAD( "merit.u39", 0x0000, 0x2000, CRC(506e20b4) SHA1(cd28d4f56f83ed3f7cfa44280975c0a6af474707) ) |
| 906 | ROM_LOAD( "merit.u38", 0x2000, 0x2000, CRC(1924feeb) SHA1(c4656a04e2284a265554ea9774d0201c44864809) ) |
| 907 | ROM_LOAD( "merit.u37", 0x4000, 0x2000, CRC(12a04867) SHA1(8e3a6050d854ccc906ae473a104a16d610e4f1da) ) |
| 778 | 908 | |
| 779 | | ROM_START( trvwhzho ) |
| 909 | ROM_REGION( 0x2000, REGION_GFX2, 0 ) |
| 910 | ROM_LOAD( "merit.u40", 0x0000, 0x2000, CRC(ac4983b8) SHA1(a552a15f813c331de67eaae2ed42cc037b26c5bd) ) |
| 911 | ROM_END |
| 912 | |
| 913 | ROM_START( trvwzh ) |
| 780 | 914 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 781 | 915 | ROM_LOAD( "trivia.u5", 0x0000, 0x2000, CRC(731fd5b1) SHA1(1074780321029446da0e6765b9e036b06b067a48) ) |
| 782 | 916 | ROM_LOAD( "trivia.u6", 0x2000, 0x2000, CRC(af6886c0) SHA1(48005b921d7ce33ffc0ba160be82053a26382a9d) ) |
| r841 | r842 | |
| 798 | 932 | ROM_LOAD( "trivia.sx2", 0x58000, 0x8000, CRC(32519098) SHA1(d070e02bb10e04964893903599a69a8943f9ac8a) ) |
| 799 | 933 | ROM_END |
| 800 | 934 | |
| 801 | | ROM_START( trvwhzha ) |
| 935 | ROM_START( trvwzha ) |
| 802 | 936 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 803 | 937 | ROM_LOAD( "trivia.u5", 0x0000, 0x2000, CRC(731fd5b1) SHA1(1074780321029446da0e6765b9e036b06b067a48) ) |
| 804 | 938 | ROM_LOAD( "trivia.u6", 0x2000, 0x2000, CRC(af6886c0) SHA1(48005b921d7ce33ffc0ba160be82053a26382a9d) ) |
| r841 | r842 | |
| 817 | 951 | ROM_LOAD( "trivia2.spo", 0x28000, 0x8000, CRC(ee9263b3) SHA1(1644ab01f17e3af1e193e509d64dcbb243d3eb80) ) |
| 818 | 952 | ROM_END |
| 819 | 953 | |
| 820 | | ROM_START( trvwhzve ) |
| 954 | ROM_START( trvwzv ) |
| 821 | 955 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 822 | 956 | ROM_LOAD( "u5.bin", 0x0000, 0x2000, CRC(fd3531ac) SHA1(d11573df65676e704b28cc2d99fb004b48a358a4) ) |
| 823 | 957 | ROM_LOAD( "u6.bin", 0x2000, 0x2000, CRC(29e43d0e) SHA1(ad610748fe37436880648078f5d1a305cb147c5d) ) |
| r841 | r842 | |
| 839 | 973 | ROM_LOAD( "sex_001_02.bin", 0x58000, 0x8000, CRC(0be4ef9a) SHA1(c80080f1c853e1043bf7e47bea322540a8ac9195) ) |
| 840 | 974 | ROM_END |
| 841 | 975 | |
| 842 | | ROM_START( trvwhzva ) |
| 976 | ROM_START( trvwzva ) |
| 843 | 977 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 844 | 978 | ROM_LOAD( "u5.bin", 0x0000, 0x2000, CRC(fd3531ac) SHA1(d11573df65676e704b28cc2d99fb004b48a358a4) ) |
| 845 | 979 | ROM_LOAD( "u6.bin", 0x2000, 0x2000, CRC(29e43d0e) SHA1(ad610748fe37436880648078f5d1a305cb147c5d) ) |
| r841 | r842 | |
| 858 | 992 | ROM_LOAD( "spo_001_03.bin", 0x28000, 0x8000, CRC(a6af8e41) SHA1(64f672bfa5fb2c0575103614986e53e238c5984f) ) |
| 859 | 993 | ROM_END |
| 860 | 994 | |
| 861 | | ROM_START( trvwhzii ) |
| 995 | ROM_START( trvwz2 ) |
| 862 | 996 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 863 | 997 | ROM_LOAD( "u5_0e", 0x0000, 0x2000, CRC(97b8d320) SHA1(573945531113d8aae9418ba1e9a2063052227029) ) |
| 864 | 998 | ROM_LOAD( "u6_0e", 0x2000, 0x2000, CRC(2e86288d) SHA1(62c7024d8dfebed9bb05ea91302efe5d18cb7d2a) ) |
| r841 | r842 | |
| 884 | 1018 | ROM_LOAD( "sex-101.02a", 0x98000, 0x8000, CRC(2596091b) SHA1(7fbb9c2c3f74e12714513928c8cf3769bf29fc8b) ) |
| 885 | 1019 | ROM_END |
| 886 | 1020 | |
| 887 | | ROM_START( trvwziii ) |
| 1021 | ROM_START( trvwz3h ) |
| 888 | 1022 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 889 | 1023 | ROM_LOAD( "u5", 0x0000, 0x2000, CRC(ad4ab519) SHA1(80e99f4e5542115e34074b41bbc69906e01a408f) ) |
| 890 | 1024 | ROM_LOAD( "u6", 0x2000, 0x2000, CRC(21a44014) SHA1(331f8b4fa3f837de070b68b959c818122aedc68a) ) |
| r841 | r842 | |
| 909 | 1043 | ROM_LOAD( "15", 0x88000, 0x8000, CRC(b064876b) SHA1(588300fb6603f334de41a9685b1fcf8c642b5c16) ) |
| 910 | 1044 | ROM_END |
| 911 | 1045 | |
| 912 | | ROM_START( trvwhziv ) |
| 1046 | ROM_START( trvwz3v ) |
| 913 | 1047 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 1048 | ROM_LOAD( "u5", 0x0000, 0x2000, CRC(97b8d320) SHA1(573945531113d8aae9418ba1e9a2063052227029) ) |
| 1049 | ROM_LOAD( "u6", 0x2000, 0x2000, CRC(2e86288d) SHA1(62c7024d8dfebed9bb05ea91302efe5d18cb7d2a) ) |
| 1050 | |
| 1051 | ROM_REGION( 0x6000, REGION_GFX1, 0 ) |
| 1052 | ROM_LOAD( "u39", 0x0000, 0x2000, CRC(b9d9a80e) SHA1(55b6a0d09f8619df93ba936e083835c859a557df) ) |
| 1053 | ROM_LOAD( "u38", 0x2000, 0x2000, CRC(8348083e) SHA1(260a4c1ae043e7ceac65a8818c23940d32275879) ) |
| 1054 | ROM_LOAD( "u37", 0x4000, 0x2000, CRC(b4d3c9f4) SHA1(dda99549306519c147d275d8c6af672e80a96b67) ) |
| 1055 | |
| 1056 | ROM_REGION( 0x2000, REGION_GFX2, 0 ) |
| 1057 | ROM_LOAD( "u40", 0x0000, 0x2000, CRC(fbfae092) SHA1(b8569819952a5c805f11b6854d64b3ae9c857f97) ) |
| 1058 | |
| 1059 | ROM_REGION( 0xa0000, REGION_USER1, ROMREGION_ERASEFF ) // questions |
| 1060 | ROM_LOAD( "10", 0x08000, 0x8000, CRC(15d16703) SHA1(9184f63669e9ec93e88276777e1b7f209543c3e3) ) |
| 1061 | ROM_LOAD( "8", 0x18000, 0x8000, CRC(647f3394) SHA1(636647ae620fd2f985b82e3516451e3bffd44040) ) |
| 1062 | ROM_LOAD( "7", 0x28000, 0x8000, CRC(974dca96) SHA1(eb4a745c84307a1bbb220659877f97c28cd515ac) ) |
| 1063 | ROM_LOAD( "6", 0x38000, 0x8000, CRC(e15ef8d0) SHA1(51c946311ffe507aa9031044bc34e5ae8d3473ab) ) |
| 1064 | ROM_LOAD( "5", 0x48000, 0x8000, CRC(503115a1) SHA1(5e6630191465b3d2a590fab08b4f47f7408ecc44) ) |
| 1065 | ROM_LOAD( "4", 0x58000, 0x8000, CRC(0e4fe73d) SHA1(9aee22a5837637ec5e360b72e71555942df1d26f) ) |
| 1066 | ROM_LOAD( "3", 0x68000, 0x8000, CRC(f56c0935) SHA1(8e16133ad90829bbc0e0f2e9ee9c26e9d0c5057e) ) |
| 1067 | ROM_LOAD( "2", 0x78000, 0x8000, CRC(057f6676) SHA1(a93a7a76fc8b8263568a50b00a57f3abe76c9aa3) ) |
| 1068 | ROM_LOAD( "1", 0x88000, 0x8000, CRC(1fa46b86) SHA1(16d54d0932fe342399faf303eafa3c0b7ba2e202) ) |
| 1069 | ROM_LOAD( "0", 0x98000, 0x8000, CRC(b395cd97) SHA1(a42c7c1687eaba64a725888cd6413568cc90b010) ) |
| 1070 | ROM_END |
| 1071 | |
| 1072 | ROM_START( trvwz4 ) |
| 1073 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 914 | 1074 | ROM_LOAD( "u5.bin", 0x0000, 0x8000, CRC(bc23a1ab) SHA1(b9601f316e373c568c5b208de417617094046559) ) |
| 915 | 1075 | |
| 916 | 1076 | ROM_REGION( 0x6000, REGION_GFX1, 0 ) |
| r841 | r842 | |
| 1058 | 1218 | |
| 1059 | 1219 | GAME( 1983, pitboss, 0, pitboss, pitboss, 0, ROT0, "Merit", "Pit Boss", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1060 | 1220 | GAME( 1983, casino5, 0, pitboss, pitboss, 0, ROT0, "Merit", "Casino 5", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1061 | | GAME( 1985, trvwhzho, 0, trvwhiz, trivia, key_0, ROT0, "Merit", "Trivia ? Whiz (Horizontal - Question set 1)", GAME_WRONG_COLORS ) |
| 1062 | | GAME( 1985, trvwhzha, trvwhzho,trvwhiz, trivia, key_0, ROT0, "Merit", "Trivia ? Whiz (Horizontal - Question set 2)", GAME_WRONG_COLORS ) |
| 1063 | | GAME( 1985, trvwhzve, 0, trvwhiz, trivia, key_0, ROT90, "Merit", "Trivia ? Whiz (Vertical - Question set 1)", GAME_WRONG_COLORS ) |
| 1064 | | GAME( 1985, trvwhzva, trvwhzve,trvwhiz, trivia, key_0, ROT90, "Merit", "Trivia ? Whiz (Vertical - Question set 2)", GAME_WRONG_COLORS ) |
| 1065 | | GAME( 1985, trvwhzii, 0, trvwhiz, trivia, key_2, ROT90, "Merit", "Trivia ? Whiz (Edition 2)", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS ) |
| 1066 | | GAME( 1985, trvwziii, 0, trvwhiz, trivia, key_0, ROT0, "Merit", "Trivia ? Whiz (Edition 3)", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS ) |
| 1067 | | GAME( 1985, trvwhziv, 0, trvwhziv, trvwhziv, key_5, ROT90, "Merit", "Trivia ? Whiz (Edition 4)", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS ) |
| 1221 | GAME( 1985, trvwzh, 0, trvwhiz, trivia, key_0, ROT0, "Merit", "Trivia ? Whiz (Horizontal - Question set 1)", GAME_WRONG_COLORS ) |
| 1222 | GAME( 1985, trvwzha, trvwzh, trvwhiz, trivia, key_0, ROT0, "Merit", "Trivia ? Whiz (Horizontal - Question set 2)", GAME_WRONG_COLORS ) |
| 1223 | GAME( 1985, trvwzv, 0, trvwhiz, trivia, key_0, ROT90, "Merit", "Trivia ? Whiz (Vertical - Question set 1)", GAME_WRONG_COLORS ) |
| 1224 | GAME( 1985, trvwzva, trvwzv, trvwhiz, trivia, key_0, ROT90, "Merit", "Trivia ? Whiz (Vertical - Question set 2)", GAME_WRONG_COLORS ) |
| 1225 | GAME( 1985, trvwz2, 0, trvwhiz, trivia, key_2, ROT90, "Merit", "Trivia ? Whiz (Edition 2)", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS ) |
| 1226 | GAME( 1985, trvwz3h, 0, trvwhiz, trivia, key_0, ROT0, "Merit", "Trivia ? Whiz (Edition 3 - Horizontal)", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS ) |
| 1227 | GAME( 1985, trvwz3v, 0, trvwhiz, trivia, key_0, ROT90, "Merit", "Trivia ? Whiz (Edition 3 - Vertical)", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS ) |
| 1228 | GAME( 1985, trvwz4, 0, trvwhziv, trvwhziv, key_5, ROT90, "Merit", "Trivia ? Whiz (Edition 4)", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS ) |
| 1068 | 1229 | GAME( 1985, tictac, 0, tictac, tictac, key_4, ROT0, "Merit", "Tic Tac Trivia", GAME_WRONG_COLORS ) |
| 1069 | 1230 | GAME( 1986, phrcraze, 0, phrcraze, phrcraze, key_7, ROT0, "Merit", "Phraze Craze", GAME_WRONG_COLORS ) |
| 1070 | 1231 | GAME( 1986, phrcrazs, 0, phrcraze, phrcrazs, key_7, ROT90, "Merit", "Phraze Craze (Sex Kit)", GAME_WRONG_COLORS ) |
| 1232 | GAME( 1986, bigappg, 0, bigappg, bigappg, 0, ROT0, "Merit", "Big Apple Games ?", GAME_WRONG_COLORS | GAME_NOT_WORKING ) |
src/mame/drivers/ninjaw.c
| r841 | r842 | |
| 118 | 118 | B31-26.58 |
| 119 | 119 | |
| 120 | 120 | |
| 121 | Stephh's notes (based on the game M68000 code and some tests) : |
| 122 | |
| 123 | 1) 'ninjaw*' |
| 124 | |
| 125 | - Regoin stored at 0x01fffe.w |
| 126 | - Sets : |
| 127 | * 'ninjaw' : region = 0x0003 |
| 128 | * 'ninjawj' : region = 0x0000 |
| 129 | - Coinage relies on the region (code at 0x0013bc) : |
| 130 | * 0x0000 (Japan), 0x0001 (?) and 0x0002 (US) use TAITO_COINAGE_JAPAN_OLD |
| 131 | * 0x0003 (World) and 0x0004 to 0x0007 (licenced to xxx) use TAITO_COINAGE_WORLD |
| 132 | - Notice screen only if region = 0x0000 |
| 133 | - According to the manual, DSWB bit 6 determines continue pricing : |
| 134 | |
| 135 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Continue_Price ) ) PORT_DIPLOCATION("SW2:7") |
| 136 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) |
| 137 | PORT_DIPSETTING( 0x00, "Same as Start" ) |
| 138 | |
| 139 | However, many conditions are required to make it work due to code at 0x001404 : |
| 140 | * region must not be 0x0000 |
| 141 | * coinage must be the same for both slots |
| 142 | * coinage must be 2C_1C |
| 143 | This is why this Dip Switch has NO effect in the sets we have : |
| 144 | * 'ninjaw' : coinage is always different for the 2 slots |
| 145 | * 'ninjawj' : region = 0x0000 |
| 146 | |
| 147 | |
| 148 | 2) 'darius2' |
| 149 | |
| 150 | - Regoin stored at 0x03fffe.w |
| 151 | - Sets : |
| 152 | * 'darius2' : region = 0x0001 |
| 153 | - Coinage relies on the region (code at 0x00f37a) : |
| 154 | * 0x0000 (Asia ?), 0x0001 (Japan) and 0x0002 (US) use TAITO_COINAGE_JAPAN_OLD |
| 155 | * 0x0002 (US, licenced to ROMSTAR) use slighlty different TAITO_COINAGE_US : |
| 156 | . coin A : 4C_3C instead of 4C_1C, same other settings otherwise |
| 157 | . coin B : same settings |
| 158 | * 0x0003 (World) and 0x0004 to 0x0007 (?) use TAITO_COINAGE_WORLD |
| 159 | - Texts and game name rely on the region : |
| 160 | * 0x0001 : some texts in Japanese - game name is "Darius II" |
| 161 | * other : all texts in English - game name is "Sagaia" |
| 162 | - Notice screen only if region = 0x0001 |
| 163 | - FBI logo only if region = 0x0002 |
| 164 | - Japan version resets score on continue, other versions don't |
| 165 | |
| 166 | |
| 121 | 167 | TODO |
| 122 | 168 | ==== |
| 123 | 169 | |
| r841 | r842 | |
| 145 | 191 | ***************************************************************************/ |
| 146 | 192 | |
| 147 | 193 | #include "driver.h" |
| 194 | #include "taitoipt.h" |
| 148 | 195 | #include "cpu/m68000/m68000.h" |
| 149 | 196 | #include "video/taitoic.h" |
| 150 | 197 | #include "audio/taitosnd.h" |
| r841 | r842 | |
| 412 | 459 | INPUT PORTS, DIPs |
| 413 | 460 | ***********************************************************/ |
| 414 | 461 | |
| 415 | | #define NINJAW_DSWA \ |
| 416 | | PORT_START_TAG("DSWA") \ |
| 417 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:1") \ |
| 418 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) \ |
| 419 | | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) \ |
| 420 | | PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SW1:2" ) \ |
| 421 | | PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW1:3" ) \ |
| 422 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:4") \ |
| 423 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) \ |
| 424 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 462 | INPUT_PORTS_START( ninjaw ) |
| 463 | /* 0x200000 (port 0) -> 0x0c2291.b and 0x24122c (shared RAM) */ |
| 464 | PORT_START_TAG("DSWA") |
| 465 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW1:1") |
| 466 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 467 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 468 | PORT_DIPUNUSED_DIPLOC( 0x02, IP_ACTIVE_LOW, "SW1:2" ) |
| 469 | TAITO_DSWA_BITS_2_TO_3_LOC(SW1) |
| 470 | TAITO_COINAGE_WORLD_LOC(SW1) |
| 425 | 471 | |
| 426 | | #define NINJAW_DSWB \ |
| 427 | | PORT_START_TAG("DSWB") \ |
| 428 | | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") \ |
| 429 | | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) \ |
| 430 | | PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) \ |
| 431 | | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) \ |
| 432 | | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) \ |
| 433 | | PORT_DIPUNUSED_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW2:3" ) /* Manual shows switches 3, 4, 5, 6 & 8 as not used */ \ |
| 434 | | PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW2:4" ) \ |
| 435 | | PORT_DIPUNUSED_DIPLOC( 0x10, IP_ACTIVE_LOW, "SW2:5" ) \ |
| 436 | | PORT_DIPUNUSED_DIPLOC( 0x20, IP_ACTIVE_LOW, "SW2:6" ) \ |
| 437 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Continue_Price ) ) PORT_DIPLOCATION("SW2:7") \ |
| 438 | | PORT_DIPSETTING( 0x40, "1 Credit" ) \ |
| 439 | | PORT_DIPSETTING( 0x00, "As start price" ) \ |
| 472 | /* 0x200000 (port 1) -> 0x0c2290.b and 0x24122e (shared RAM) */ |
| 473 | PORT_START_TAG("DSWB") |
| 474 | TAITO_DIFFICULTY_LOC(SW2) |
| 475 | PORT_DIPUNUSED_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW2:3" ) /* Manual shows switches 3, 4, 5, 6 & 8 as not used */ |
| 476 | PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW2:4" ) |
| 477 | PORT_DIPUNUSED_DIPLOC( 0x10, IP_ACTIVE_LOW, "SW2:5" ) |
| 478 | PORT_DIPUNUSED_DIPLOC( 0x20, IP_ACTIVE_LOW, "SW2:6" ) |
| 479 | PORT_DIPUNUSED_DIPLOC( 0x40, IP_ACTIVE_LOW, "SW2:7" ) /* see notes */ |
| 440 | 480 | PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_LOW, "SW2:8" ) |
| 441 | 481 | |
| 442 | | #define TAITO_COINAGE_JAPAN_8 \ |
| 443 | | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6") \ |
| 444 | | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) \ |
| 445 | | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ |
| 446 | | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \ |
| 447 | | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) \ |
| 448 | | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:7,8") \ |
| 449 | | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \ |
| 450 | | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) \ |
| 451 | | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \ |
| 452 | | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) |
| 453 | | |
| 454 | | #define TAITO_COINAGE_WORLD_8 \ |
| 455 | | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:5,6") \ |
| 456 | | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) \ |
| 457 | | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \ |
| 458 | | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \ |
| 459 | | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ |
| 460 | | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:7,8") \ |
| 461 | | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \ |
| 462 | | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \ |
| 463 | | PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) ) \ |
| 464 | | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) |
| 465 | | |
| 466 | | #define NINJAW_IN2 \ |
| 467 | | PORT_START_TAG("IN2") \ |
| 468 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* Stops working if this is high */ \ |
| 469 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 470 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN1 ) \ |
| 471 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN2 ) \ |
| 472 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) /* Freezes game */ \ |
| 473 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 474 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 482 | PORT_START_TAG("IN2") |
| 483 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* Stops working if this is high */ |
| 484 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 485 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 486 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 487 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Freeze") PORT_CODE(KEYCODE_F1) |
| 488 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 489 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 475 | 490 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 476 | 491 | |
| 477 | | #define NINJAW_IN3 \ |
| 478 | | PORT_START_TAG("IN3") \ |
| 479 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) \ |
| 480 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) \ |
| 481 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) \ |
| 482 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) \ |
| 483 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) \ |
| 484 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) \ |
| 485 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) \ |
| 486 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 492 | PORT_START_TAG("IN3") |
| 493 | TAITO_JOY_DUAL_UDRL( 1, 2 ) |
| 487 | 494 | |
| 488 | | #define NINJAW_IN4 \ |
| 489 | | PORT_START_TAG("IN4") \ |
| 490 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) \ |
| 491 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_TILT ) \ |
| 492 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) \ |
| 493 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) \ |
| 494 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) \ |
| 495 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) \ |
| 496 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) \ |
| 495 | PORT_START_TAG("IN4") |
| 496 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 497 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_TILT ) |
| 498 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) |
| 499 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 ) |
| 500 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 501 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 502 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 497 | 503 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 498 | | |
| 499 | | INPUT_PORTS_START( ninjaw ) |
| 500 | | NINJAW_DSWA |
| 501 | | TAITO_COINAGE_WORLD_8 |
| 502 | | |
| 503 | | NINJAW_DSWB |
| 504 | | |
| 505 | | NINJAW_IN2 |
| 506 | | |
| 507 | | NINJAW_IN3 |
| 508 | | |
| 509 | | NINJAW_IN4 |
| 510 | 504 | INPUT_PORTS_END |
| 511 | 505 | |
| 506 | /* Can't use PORT_INCLUDE because of PORT_DIPLOCATION */ |
| 512 | 507 | INPUT_PORTS_START( ninjawj ) |
| 513 | | NINJAW_DSWA |
| 514 | | TAITO_COINAGE_JAPAN_8 |
| 508 | PORT_INCLUDE(ninjaw) |
| 515 | 509 | |
| 516 | | NINJAW_DSWB |
| 517 | | |
| 518 | | NINJAW_IN2 |
| 519 | | |
| 520 | | NINJAW_IN3 |
| 521 | | |
| 522 | | NINJAW_IN4 |
| 510 | PORT_MODIFY("DSWA") |
| 511 | TAITO_COINAGE_JAPAN_OLD_LOC(SW1) |
| 523 | 512 | INPUT_PORTS_END |
| 524 | 513 | |
| 514 | /* Can't use PORT_INCLUDE because of PORT_DIPLOCATION */ |
| 525 | 515 | INPUT_PORTS_START( darius2 ) |
| 526 | | PORT_START_TAG("DSWA") |
| 527 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:1") |
| 516 | PORT_INCLUDE(ninjaw) |
| 517 | |
| 518 | /* 0x200000 (port 0) -> 0x0c2002 (-$5ffe,A5) and 0x0c2006 (-$5ffa,A5) */ |
| 519 | PORT_MODIFY("DSWA") |
| 520 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:1") /* code at 0x00c20e */ |
| 528 | 521 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 529 | 522 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 530 | 523 | PORT_DIPNAME( 0x02, 0x02, "Continuous Fire" ) PORT_DIPLOCATION("SW1:2") |
| 531 | 524 | PORT_DIPSETTING( 0x02, DEF_STR( Normal ) ) |
| 532 | 525 | PORT_DIPSETTING( 0x00, "Fast" ) |
| 533 | | PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW1:3" ) |
| 534 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:4") |
| 535 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 536 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 537 | | TAITO_COINAGE_JAPAN_8 |
| 526 | TAITO_DSWA_BITS_2_TO_3_LOC(SW1) |
| 527 | TAITO_COINAGE_JAPAN_OLD_LOC(SW1) |
| 538 | 528 | |
| 539 | | PORT_START_TAG("DSWB") |
| 540 | | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:1,2") |
| 541 | | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) |
| 542 | | PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) |
| 543 | | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) |
| 544 | | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 529 | /* 0x200000 (port 1) -> 0x0c2004 (-$5ffc,A5) and 0x0c2008 (-$5ff8,A5) */ |
| 530 | PORT_MODIFY("DSWB") |
| 531 | TAITO_DIFFICULTY_LOC(SW2) |
| 545 | 532 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:3,4") |
| 546 | | PORT_DIPSETTING( 0x00, "every 500k" ) |
| 547 | 533 | PORT_DIPSETTING( 0x0c, "every 700k" ) |
| 548 | 534 | PORT_DIPSETTING( 0x08, "every 800k" ) |
| 549 | 535 | PORT_DIPSETTING( 0x04, "every 900k" ) |
| 536 | PORT_DIPSETTING( 0x00, "every 1000k" ) |
| 550 | 537 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:5,6") |
| 551 | 538 | PORT_DIPSETTING( 0x30, "3" ) |
| 552 | 539 | PORT_DIPSETTING( 0x20, "4" ) |
| r841 | r842 | |
| 558 | 545 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:8") |
| 559 | 546 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 560 | 547 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 561 | | |
| 562 | | NINJAW_IN2 |
| 563 | | |
| 564 | | NINJAW_IN3 |
| 565 | | |
| 566 | | NINJAW_IN4 |
| 567 | 548 | INPUT_PORTS_END |
| 568 | 549 | |
| 569 | 550 | |
src/mame/drivers/asuka.c
| r841 | r842 | |
| 77 | 77 | Notes on Bonze DIPs by Stephane Humbert |
| 78 | 78 | --------------------------------------- |
| 79 | 79 | |
| 80 | | The 2nd bonus life is awarded at the wrong score because of a bug in |
| 80 | The 2nd bonus life may be awarded at the wrong score because of a bug in |
| 81 | 81 | the game code at $961E; and the unused DIP switch enables the built-in |
| 82 | 82 | map editor if the branch at $7572 is skipped. |
| 83 | 83 | |
| r841 | r842 | |
| 104 | 104 | ***************************************************************************/ |
| 105 | 105 | |
| 106 | 106 | #include "driver.h" |
| 107 | #include "taitoipt.h" |
| 107 | 108 | #include "video/taitoic.h" |
| 108 | 109 | #include "audio/taitosnd.h" |
| 109 | 110 | #include "sound/2610intf.h" |
| r841 | r842 | |
| 367 | 368 | INPUT PORTS, DIPs |
| 368 | 369 | ***********************************************************/ |
| 369 | 370 | |
| 370 | | |
| 371 | | #define TAITO_COINAGE_JAPAN_8 \ |
| 372 | | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) \ |
| 373 | | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) \ |
| 374 | | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ |
| 375 | | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \ |
| 376 | | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) \ |
| 377 | | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) \ |
| 378 | | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \ |
| 379 | | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) \ |
| 380 | | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) \ |
| 381 | | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) |
| 382 | | |
| 383 | | #define TAITO_COINAGE_WORLD_8 \ |
| 384 | | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) \ |
| 385 | | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) \ |
| 386 | | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \ |
| 387 | | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \ |
| 388 | | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ |
| 389 | | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) \ |
| 390 | | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) \ |
| 391 | | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) \ |
| 392 | | PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) ) \ |
| 393 | | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) |
| 394 | | |
| 395 | | #define TAITO_COINAGE_US_8 \ |
| 396 | | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coinage ) ) \ |
| 397 | | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) \ |
| 398 | | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) \ |
| 399 | | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) \ |
| 400 | | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) \ |
| 401 | | PORT_DIPNAME( 0xc0, 0xc0, "Price to Continue" ) \ |
| 402 | | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) \ |
| 403 | | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) \ |
| 404 | | PORT_DIPSETTING( 0x80, DEF_STR( 1C_1C ) ) \ |
| 405 | | PORT_DIPSETTING( 0xc0, "Same as Start" ) |
| 406 | | |
| 407 | | #define TAITO_DIFFICULTY_8 \ |
| 408 | | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) ) \ |
| 409 | | PORT_DIPSETTING( 0x02, DEF_STR( Easy ) ) \ |
| 410 | | PORT_DIPSETTING( 0x03, DEF_STR( Medium ) ) \ |
| 411 | | PORT_DIPSETTING( 0x01, DEF_STR( Hard ) ) \ |
| 412 | | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) |
| 413 | | |
| 414 | | #define ASUKA_PLAYERS_INPUT( player ) \ |
| 415 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(player) PORT_8WAY \ |
| 416 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(player) PORT_8WAY \ |
| 417 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(player) PORT_8WAY \ |
| 418 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(player) PORT_8WAY \ |
| 419 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(player) \ |
| 420 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(player) \ |
| 421 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 422 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 423 | | |
| 424 | | #define ASUKA_SYSTEM_INPUT \ |
| 425 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT ) \ |
| 426 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) \ |
| 427 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) \ |
| 428 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) \ |
| 429 | | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) \ |
| 430 | | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) \ |
| 431 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) \ |
| 432 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 433 | | |
| 434 | 371 | #define CADASH_PLAYERS_INPUT( player ) \ |
| 435 | 372 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 436 | 373 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 437 | 374 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(player) \ |
| 438 | 375 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(player) \ |
| 439 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(player) PORT_8WAY \ |
| 440 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(player) PORT_8WAY \ |
| 441 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(player) PORT_8WAY \ |
| 442 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(player) PORT_8WAY |
| 376 | INPUT_GENERIC_JOY_HIGH_NIBBLE(player, IP_ACTIVE_LOW, PORT_8WAY, RIGHT, LEFT, DOWN, UP) |
| 443 | 377 | |
| 444 | | #define CADASH_SYSTEM_INPUT \ |
| 445 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) \ |
| 446 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) \ |
| 447 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 ) \ |
| 448 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) \ |
| 449 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 ) \ |
| 450 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_TILT ) \ |
| 451 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) \ |
| 452 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 453 | 378 | |
| 454 | | |
| 379 | /* different players and system inputs than 'asuka' */ |
| 455 | 380 | INPUT_PORTS_START( bonzeadv ) |
| 381 | /* 0x390000 -> 0x10cb7c ($b7c,A5) */ |
| 456 | 382 | PORT_START_TAG("DSWA") |
| 457 | | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 458 | | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 459 | | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 460 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) |
| 461 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 462 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 463 | | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) |
| 464 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) |
| 465 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 466 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 467 | | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) |
| 468 | | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) |
| 469 | | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) |
| 470 | | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) |
| 471 | | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) |
| 472 | | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) |
| 473 | | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) |
| 474 | | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) |
| 475 | | PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) ) |
| 476 | | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) |
| 383 | TAITO_MACHINE_COCKTAIL |
| 384 | TAITO_COINAGE_WORLD |
| 477 | 385 | |
| 386 | /* 0x3b0000 -> 0x10cb7e ($b7e,A5) */ |
| 478 | 387 | PORT_START_TAG("DSWB") |
| 479 | | TAITO_DIFFICULTY_8 |
| 480 | | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) |
| 481 | | PORT_DIPSETTING( 0x08, "40k,100k" ) |
| 482 | | PORT_DIPSETTING( 0x0c, "50k,150k" ) |
| 483 | | PORT_DIPSETTING( 0x04, "60k,200k" ) |
| 484 | | PORT_DIPSETTING( 0x00, "80k,250k" ) |
| 388 | TAITO_DIFFICULTY |
| 389 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) /* bogus due to code at 0x00961e */ |
| 390 | PORT_DIPSETTING( 0x08, "40k 100k" ) /* 300k 1000k 1500k 2000k 2500k 3000k 3500k 5000k */ |
| 391 | PORT_DIPSETTING( 0x0c, "50k 150k" ) /* 500k 1000k 2000k 3000k 4000k 5000k 6000k 7000k */ |
| 392 | PORT_DIPSETTING( 0x04, "60k 200k" ) /* 500k 1000k 2000k 3000k 4000k 5000k 6000k 7000k */ |
| 393 | PORT_DIPSETTING( 0x00, "80k 250k" ) /* 500k 1000k 2000k 3000k 4000k 5000k 6000k 7000k */ |
| 485 | 394 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) |
| 486 | 395 | PORT_DIPSETTING( 0x20, "2" ) |
| 487 | 396 | PORT_DIPSETTING( 0x30, "3" ) |
| r841 | r842 | |
| 490 | 399 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Allow_Continue ) ) |
| 491 | 400 | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) |
| 492 | 401 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 493 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) |
| 494 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 495 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 402 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) /* previously map editor */ |
| 496 | 403 | |
| 497 | 404 | PORT_START_TAG("800007") |
| 498 | 405 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| r841 | r842 | |
| 513 | 420 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 514 | 421 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 515 | 422 | |
| 516 | | PORT_START_TAG("80000d") |
| 423 | PORT_START_TAG("80000D") |
| 517 | 424 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 518 | 425 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 519 | 426 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| r841 | r842 | |
| 524 | 431 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 525 | 432 | INPUT_PORTS_END |
| 526 | 433 | |
| 527 | | INPUT_PORTS_START( jigkmgri ) /* coinage DIPs differ from bonzeadv */ |
| 528 | | PORT_START_TAG("DSWA") |
| 529 | | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 530 | | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 531 | | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 532 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) |
| 533 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 534 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 535 | | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) |
| 536 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) |
| 537 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 538 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 539 | | TAITO_COINAGE_JAPAN_8 |
| 434 | INPUT_PORTS_START( jigkmgri ) |
| 435 | PORT_INCLUDE(bonzeadv) |
| 540 | 436 | |
| 541 | | PORT_START_TAG("DSWB") |
| 542 | | TAITO_DIFFICULTY_8 |
| 543 | | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) |
| 544 | | PORT_DIPSETTING( 0x08, "40k,100k" ) |
| 545 | | PORT_DIPSETTING( 0x0c, "50k,150k" ) |
| 546 | | PORT_DIPSETTING( 0x04, "60k,200k" ) |
| 547 | | PORT_DIPSETTING( 0x00, "80k,250k" ) |
| 548 | | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) |
| 549 | | PORT_DIPSETTING( 0x20, "2" ) |
| 550 | | PORT_DIPSETTING( 0x30, "3" ) |
| 551 | | PORT_DIPSETTING( 0x10, "4" ) |
| 552 | | PORT_DIPSETTING( 0x00, "5" ) |
| 553 | | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Allow_Continue ) ) |
| 554 | | PORT_DIPSETTING( 0x40, DEF_STR( No ) ) |
| 555 | | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 556 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) |
| 557 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 558 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 559 | | |
| 560 | | PORT_START_TAG("800007") |
| 561 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) |
| 562 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 563 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 564 | | |
| 565 | | PORT_START_TAG("800009") |
| 566 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(1) |
| 567 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(1) |
| 568 | | |
| 569 | | PORT_START_TAG("80000b") |
| 570 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT ) |
| 571 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 572 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 573 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 574 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 575 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 576 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 577 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 578 | | |
| 579 | | PORT_START_TAG("80000d") |
| 580 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 581 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) |
| 582 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) |
| 583 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) |
| 584 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 585 | | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 586 | | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 587 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 437 | PORT_MODIFY("DSWA") |
| 438 | TAITO_COINAGE_JAPAN_OLD |
| 588 | 439 | INPUT_PORTS_END |
| 589 | 440 | |
| 590 | 441 | INPUT_PORTS_START( asuka ) |
| 442 | /* 0x400000 -> 0x103618 */ |
| 591 | 443 | PORT_START_TAG("DSWA") |
| 592 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* Listed as "Unused" in the manual */ |
| 593 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 594 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 595 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) |
| 596 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 597 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 598 | | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) |
| 599 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) |
| 600 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 601 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 602 | | TAITO_COINAGE_JAPAN_8 |
| 444 | TAITO_MACHINE_NO_COCKTAIL |
| 445 | TAITO_COINAGE_JAPAN_OLD |
| 603 | 446 | |
| 447 | /* 0x400002 -> 0x10361c */ |
| 604 | 448 | PORT_START_TAG("DSWB") |
| 605 | | TAITO_DIFFICULTY_8 |
| 606 | | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) |
| 607 | | PORT_DIPSETTING( 0x0c, "500 Points" ) |
| 608 | | PORT_DIPSETTING( 0x08, "1500 Points" ) |
| 609 | | PORT_DIPSETTING( 0x04, "2000 Points" ) |
| 610 | | PORT_DIPSETTING( 0x00, "2500 Points" ) |
| 449 | TAITO_DIFFICULTY |
| 450 | PORT_DIPNAME( 0x0c, 0x0c, "Bonus Points" ) /* for each plane shot after each end of level boss */ |
| 451 | PORT_DIPSETTING( 0x0c, "500" ) |
| 452 | PORT_DIPSETTING( 0x08, "1500" ) |
| 453 | PORT_DIPSETTING( 0x04, "2000" ) |
| 454 | PORT_DIPSETTING( 0x00, "2500" ) |
| 611 | 455 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) |
| 612 | 456 | PORT_DIPSETTING( 0x10, "1" ) |
| 613 | 457 | PORT_DIPSETTING( 0x20, "2" ) |
| r841 | r842 | |
| 620 | 464 | PORT_DIPSETTING( 0x40, DEF_STR( Yes ) ) |
| 621 | 465 | |
| 622 | 466 | PORT_START_TAG("IN0") |
| 623 | | ASUKA_PLAYERS_INPUT( 1 ) |
| 467 | TAITO_JOY_UDLR_2_BUTTONS( 1 ) |
| 624 | 468 | |
| 625 | 469 | PORT_START_TAG("IN1") |
| 626 | | ASUKA_PLAYERS_INPUT( 2 ) |
| 470 | TAITO_JOY_UDLR_2_BUTTONS( 2 ) |
| 627 | 471 | |
| 628 | 472 | PORT_START_TAG("IN2") |
| 629 | | ASUKA_SYSTEM_INPUT |
| 473 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT ) |
| 474 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 475 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 476 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 477 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 478 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 479 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) |
| 480 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START2 ) |
| 630 | 481 | INPUT_PORTS_END |
| 631 | 482 | |
| 632 | 483 | INPUT_PORTS_START( mofflott ) |
| 633 | | PORT_START_TAG("DSWA") |
| 634 | | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) |
| 635 | | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 636 | | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) |
| 637 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) |
| 638 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 639 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 640 | | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) |
| 641 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) |
| 642 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 643 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 644 | | TAITO_COINAGE_JAPAN_8 |
| 484 | PORT_INCLUDE(asuka) |
| 645 | 485 | |
| 646 | | PORT_START_TAG("DSWB") |
| 647 | | TAITO_DIFFICULTY_8 |
| 486 | /* 0x400000 -> 0x100a92.b */ |
| 487 | PORT_MODIFY("DSWA") |
| 488 | TAITO_MACHINE_COCKTAIL |
| 489 | TAITO_COINAGE_JAPAN_OLD |
| 490 | |
| 491 | /* 0x400002 -> 0x100a93.b */ |
| 492 | PORT_MODIFY("DSWB") |
| 493 | TAITO_DIFFICULTY |
| 648 | 494 | PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) |
| 649 | 495 | PORT_DIPSETTING( 0x0c, "20k and every 50k" ) |
| 650 | 496 | PORT_DIPSETTING( 0x08, "50k and every 100k" ) |
| r841 | r842 | |
| 661 | 507 | PORT_DIPNAME( 0x80, 0x80, "Number of Keys" ) |
| 662 | 508 | PORT_DIPSETTING( 0x00, "14" ) /* Hard */ |
| 663 | 509 | PORT_DIPSETTING( 0x80, "16" ) /* Easy */ |
| 664 | | |
| 665 | | PORT_START_TAG("IN0") |
| 666 | | ASUKA_PLAYERS_INPUT( 1 ) |
| 667 | | |
| 668 | | PORT_START_TAG("IN1") |
| 669 | | ASUKA_PLAYERS_INPUT( 2 ) |
| 670 | | |
| 671 | | PORT_START_TAG("IN2") |
| 672 | | ASUKA_SYSTEM_INPUT |
| 673 | 510 | INPUT_PORTS_END |
| 674 | 511 | |
| 512 | /* different players and system inputs than 'asuka' */ |
| 675 | 513 | INPUT_PORTS_START( cadash ) |
| 514 | /* 0x900000 -> 0x10317a ($317a,A5) */ |
| 676 | 515 | PORT_START_TAG("DSWA") |
| 677 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* Manual says leave it off */ |
| 678 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 679 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 680 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) |
| 681 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 682 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 683 | | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) |
| 684 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) |
| 685 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 686 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 687 | | TAITO_COINAGE_WORLD_8 |
| 516 | TAITO_MACHINE_NO_COCKTAIL |
| 517 | TAITO_COINAGE_WORLD |
| 688 | 518 | |
| 519 | /* 0x900002 -> 0x10317c ($317c,A5) */ |
| 689 | 520 | PORT_START_TAG("DSWB") |
| 690 | | TAITO_DIFFICULTY_8 |
| 521 | TAITO_DIFFICULTY |
| 691 | 522 | PORT_DIPNAME( 0x0c, 0x0c, "Starting Time" ) |
| 692 | 523 | PORT_DIPSETTING( 0x00, "5:00" ) |
| 693 | 524 | PORT_DIPSETTING( 0x04, "6:00" ) |
| r841 | r842 | |
| 717 | 548 | CADASH_PLAYERS_INPUT( 2 ) |
| 718 | 549 | |
| 719 | 550 | PORT_START_TAG("IN2") |
| 720 | | CADASH_SYSTEM_INPUT |
| 551 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 552 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 553 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START2 ) |
| 554 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 ) |
| 555 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 556 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_TILT ) |
| 557 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 558 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 721 | 559 | INPUT_PORTS_END |
| 722 | 560 | |
| 723 | 561 | INPUT_PORTS_START( cadashj ) |
| 724 | | PORT_START_TAG("DSWA") |
| 725 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* Manual says leave it off */ |
| 726 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 727 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 728 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) |
| 729 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 730 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 731 | | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) |
| 732 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) |
| 733 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 734 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 735 | | TAITO_COINAGE_JAPAN_8 |
| 562 | PORT_INCLUDE(cadash) |
| 736 | 563 | |
| 737 | | PORT_START_TAG("DSWB") |
| 738 | | TAITO_DIFFICULTY_8 |
| 739 | | PORT_DIPNAME( 0x0c, 0x0c, "Starting Time" ) |
| 740 | | PORT_DIPSETTING( 0x00, "5:00" ) |
| 741 | | PORT_DIPSETTING( 0x04, "6:00" ) |
| 742 | | PORT_DIPSETTING( 0x0c, "7:00" ) |
| 743 | | PORT_DIPSETTING( 0x08, "8:00" ) |
| 744 | | PORT_DIPNAME( 0x30, 0x30, "Added Time (after round clear)" ) |
| 745 | | PORT_DIPSETTING( 0x00, "Default - 2:00" ) |
| 746 | | PORT_DIPSETTING( 0x10, "Default - 1:00" ) |
| 747 | | PORT_DIPSETTING( 0x30, "Default" ) |
| 748 | | PORT_DIPSETTING( 0x20, "Default + 1:00" ) |
| 749 | | PORT_DIPNAME( 0xc0, 0xc0, "Communication Mode" ) |
| 750 | | PORT_DIPSETTING( 0xc0, "Stand alone" ) |
| 751 | | PORT_DIPSETTING( 0x80, "Master" ) |
| 752 | | PORT_DIPSETTING( 0x00, "Slave" ) |
| 753 | | // PORT_DIPSETTING( 0x40, "Stand alone" ) |
| 754 | | |
| 755 | | PORT_START_TAG("IN0") |
| 756 | | CADASH_PLAYERS_INPUT( 1 ) |
| 757 | | |
| 758 | | PORT_START_TAG("IN1") |
| 759 | | CADASH_PLAYERS_INPUT( 2 ) |
| 760 | | |
| 761 | | PORT_START_TAG("IN2") |
| 762 | | CADASH_SYSTEM_INPUT |
| 564 | PORT_MODIFY("DSWA") |
| 565 | TAITO_COINAGE_JAPAN_OLD |
| 763 | 566 | INPUT_PORTS_END |
| 764 | 567 | |
| 765 | 568 | INPUT_PORTS_START( cadashu ) |
| 766 | | PORT_START_TAG("DSWA") |
| 767 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* Manual says leave it off */ |
| 768 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 769 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 770 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) |
| 771 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 772 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 773 | | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) |
| 774 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) |
| 775 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 776 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 777 | | TAITO_COINAGE_US_8 |
| 569 | PORT_INCLUDE(cadash) |
| 778 | 570 | |
| 779 | | PORT_START_TAG("DSWB") |
| 780 | | TAITO_DIFFICULTY_8 |
| 781 | | PORT_DIPNAME( 0x0c, 0x0c, "Starting Time" ) |
| 782 | | PORT_DIPSETTING( 0x00, "5:00" ) |
| 783 | | PORT_DIPSETTING( 0x04, "6:00" ) |
| 784 | | PORT_DIPSETTING( 0x0c, "7:00" ) |
| 785 | | PORT_DIPSETTING( 0x08, "8:00" ) |
| 786 | | PORT_DIPNAME( 0x30, 0x30, "Added Time (after round clear)" ) |
| 787 | | PORT_DIPSETTING( 0x00, "Default - 2:00" ) |
| 788 | | PORT_DIPSETTING( 0x10, "Default - 1:00" ) |
| 789 | | PORT_DIPSETTING( 0x30, "Default" ) |
| 790 | | PORT_DIPSETTING( 0x20, "Default + 1:00" ) |
| 791 | | PORT_DIPNAME( 0xc0, 0xc0, "Communication Mode" ) |
| 792 | | PORT_DIPSETTING( 0xc0, "Stand alone" ) |
| 793 | | PORT_DIPSETTING( 0x80, "Master" ) |
| 794 | | PORT_DIPSETTING( 0x00, "Slave" ) |
| 795 | | // PORT_DIPSETTING( 0x40, "Stand alone" ) |
| 796 | | |
| 797 | | PORT_START_TAG("IN0") |
| 798 | | CADASH_PLAYERS_INPUT( 1 ) |
| 799 | | |
| 800 | | PORT_START_TAG("IN1") |
| 801 | | CADASH_PLAYERS_INPUT( 2 ) |
| 802 | | |
| 803 | | PORT_START_TAG("IN2") |
| 804 | | CADASH_SYSTEM_INPUT |
| 571 | PORT_MODIFY("DSWA") |
| 572 | TAITO_COINAGE_US |
| 805 | 573 | INPUT_PORTS_END |
| 806 | 574 | |
| 807 | 575 | INPUT_PORTS_START( galmedes ) |
| 808 | | PORT_START_TAG("DSWA") |
| 809 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* Listed as "Unused" in the manual */ |
| 810 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 811 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 812 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) |
| 813 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 814 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 815 | | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) |
| 816 | | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Demo_Sounds ) ) |
| 817 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 818 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 819 | | TAITO_COINAGE_JAPAN_8 |
| 576 | PORT_INCLUDE(asuka) |
| 820 | 577 | |
| 821 | | PORT_START_TAG("DSWB") |
| 822 | | TAITO_DIFFICULTY_8 |
| 578 | /* 0x400000 -> 0x100982 */ |
| 579 | PORT_MODIFY("DSWA") |
| 580 | TAITO_MACHINE_NO_COCKTAIL |
| 581 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) |
| 582 | PORT_DIPSETTING( 0x00, DEF_STR( 4C_1C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x00) |
| 583 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x00) |
| 584 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x80) |
| 585 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x00) |
| 586 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x80) |
| 587 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x00) |
| 588 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x80) |
| 589 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x80) |
| 590 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) |
| 591 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x80) |
| 592 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_1C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x80) |
| 593 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_3C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x80) |
| 594 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x80) |
| 595 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_2C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x00) |
| 596 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x00) |
| 597 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_4C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x00) |
| 598 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_6C ) ) PORT_CONDITION("DSWB",0x80,PORTCOND_EQUALS,0x00) |
| 599 | |
| 600 | /* 0x400002 -> 0x100984 */ |
| 601 | PORT_MODIFY("DSWB") |
| 602 | TAITO_DIFFICULTY |
| 823 | 603 | PORT_DIPNAME( 0x0c, 0x08, DEF_STR( Bonus_Life ) ) |
| 824 | 604 | PORT_DIPSETTING( 0x08, "every 100k" ) |
| 825 | 605 | PORT_DIPSETTING( 0x0c, "100k and every 200k" ) |
| r841 | r842 | |
| 830 | 610 | PORT_DIPSETTING( 0x10, "2" ) |
| 831 | 611 | PORT_DIPSETTING( 0x30, "3" ) |
| 832 | 612 | PORT_DIPSETTING( 0x00, "4" ) |
| 833 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) /* Listed as "Unused" in the manual */ |
| 834 | | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 835 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 613 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW ) |
| 836 | 614 | PORT_DIPNAME( 0x80, 0x80, "Coin Mode" ) |
| 837 | | PORT_DIPSETTING( 0x80, "Mode A" ) /* Mode A is "TAITO_COINAGE_JAPAN_8" */ |
| 838 | | PORT_DIPSETTING( 0x00, "Mode B" ) /* Mode B is "TAITO_COINAGE_WORLD_8" */ |
| 839 | | |
| 840 | | PORT_START_TAG("IN0") |
| 841 | | ASUKA_PLAYERS_INPUT( 1 ) |
| 842 | | |
| 843 | | PORT_START_TAG("IN1") |
| 844 | | ASUKA_PLAYERS_INPUT( 2 ) |
| 845 | | |
| 846 | | PORT_START_TAG("IN2") |
| 847 | | ASUKA_SYSTEM_INPUT |
| 615 | PORT_DIPSETTING( 0x80, "Mode A (Japan)" ) /* Mode A is TAITO_COINAGE_JAPAN_OLD */ |
| 616 | PORT_DIPSETTING( 0x00, "Mode B (World)" ) /* Mode B is TAITO_COINAGE_WORLD */ |
| 848 | 617 | INPUT_PORTS_END |
| 849 | 618 | |
| 850 | 619 | INPUT_PORTS_START( earthjkr ) |
| 851 | | PORT_START_TAG("DSWA") |
| 852 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unused ) ) /* Listed as "Unused" in the manual */ |
| 853 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 854 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 855 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) |
| 856 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 857 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 858 | | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) |
| 859 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) |
| 860 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 861 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 862 | | TAITO_COINAGE_JAPAN_8 |
| 620 | PORT_INCLUDE(asuka) |
| 863 | 621 | |
| 864 | | PORT_START_TAG("DSWB") |
| 865 | | TAITO_DIFFICULTY_8 |
| 622 | /* 0x400000 -> 0x100932 */ |
| 623 | PORT_MODIFY("DSWA") |
| 624 | TAITO_MACHINE_NO_COCKTAIL |
| 625 | TAITO_COINAGE_JAPAN_OLD |
| 626 | |
| 627 | /* 0x400002 -> 0x1009842 */ |
| 628 | PORT_MODIFY("DSWB") |
| 629 | TAITO_DIFFICULTY |
| 866 | 630 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) ) |
| 867 | | PORT_DIPSETTING( 0x08, "100k Only" ) |
| 868 | | PORT_DIPSETTING( 0x00, "100k / 300k" ) |
| 869 | | PORT_DIPSETTING( 0x04, "200k Only" ) |
| 631 | PORT_DIPSETTING( 0x00, "100k and 300k" ) |
| 632 | PORT_DIPSETTING( 0x08, "100k only" ) |
| 633 | PORT_DIPSETTING( 0x04, "200k only" ) |
| 870 | 634 | PORT_DIPSETTING( 0x0c, DEF_STR( None ) ) |
| 871 | 635 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Lives ) ) |
| 872 | 636 | PORT_DIPSETTING( 0x00, "1" ) |
| 873 | 637 | PORT_DIPSETTING( 0x30, "2" ) |
| 874 | 638 | PORT_DIPSETTING( 0x20, "3" ) |
| 875 | 639 | PORT_DIPSETTING( 0x10, "4" ) |
| 876 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unused ) ) /* Listed as "Unused" in the manual */ |
| 877 | | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 878 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 879 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) /* Listed as "Unused" in the manual */ |
| 880 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 881 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 882 | | |
| 883 | | PORT_START_TAG("IN0") |
| 884 | | ASUKA_PLAYERS_INPUT( 1 ) |
| 885 | | |
| 886 | | PORT_START_TAG("IN1") |
| 887 | | ASUKA_PLAYERS_INPUT( 2 ) |
| 888 | | |
| 889 | | PORT_START_TAG("IN2") |
| 890 | | ASUKA_SYSTEM_INPUT |
| 640 | PORT_DIPNAME( 0x40, 0x40, "Copyright" ) /* code at 0x00b982 and 0x00dbce */ |
| 641 | PORT_DIPSETTING( 0x40, "Visco" ) /* Japan notice screen ON */ |
| 642 | PORT_DIPSETTING( 0x00, "Visco (distributed by Romstar)" ) /* Japan notice screen OFF */ |
| 643 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) |
| 891 | 644 | INPUT_PORTS_END |
| 892 | 645 | |
| 893 | 646 | INPUT_PORTS_START( eto ) |
| 894 | | PORT_START_TAG("DSWA") |
| 895 | | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 896 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 897 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 898 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Flip_Screen ) ) |
| 899 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 900 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 901 | | PORT_SERVICE( 0x04, IP_ACTIVE_LOW ) |
| 902 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 903 | | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 904 | | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 905 | | TAITO_COINAGE_JAPAN_8 |
| 647 | PORT_INCLUDE(asuka) |
| 906 | 648 | |
| 907 | | PORT_START_TAG("DSWB") |
| 908 | | TAITO_DIFFICULTY_8 |
| 909 | | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 910 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 911 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 912 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 913 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 914 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 915 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 916 | | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 917 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 918 | | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 919 | | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 920 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 921 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 922 | | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 923 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 924 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 925 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 926 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 649 | /* 0x300000 -> 0x200914 */ |
| 650 | PORT_MODIFY("DSWA") |
| 651 | TAITO_MACHINE_NO_COCKTAIL |
| 652 | TAITO_COINAGE_JAPAN_OLD |
| 927 | 653 | |
| 928 | | PORT_START_TAG("IN0") |
| 929 | | ASUKA_PLAYERS_INPUT( 1 ) |
| 930 | | |
| 931 | | PORT_START_TAG("IN1") |
| 932 | | ASUKA_PLAYERS_INPUT( 2 ) |
| 933 | | |
| 934 | | PORT_START_TAG("IN2") |
| 935 | | ASUKA_SYSTEM_INPUT |
| 654 | /* 0x400002 -> 0x200916 */ |
| 655 | PORT_MODIFY("DSWB") |
| 656 | TAITO_DIFFICULTY |
| 657 | PORT_DIPUNUSED( 0x04, IP_ACTIVE_LOW ) |
| 658 | PORT_DIPUNUSED( 0x08, IP_ACTIVE_LOW ) |
| 659 | PORT_DIPUNUSED( 0x10, IP_ACTIVE_LOW ) |
| 660 | PORT_DIPUNUSED( 0x20, IP_ACTIVE_LOW ) /* value stored at 0x20090a but not read back */ |
| 661 | PORT_DIPUNUSED( 0x40, IP_ACTIVE_LOW ) |
| 662 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_LOW ) |
| 936 | 663 | INPUT_PORTS_END |
| 937 | 664 | |
| 938 | 665 | |
| r841 | r842 | |
| 1589 | 1316 | GAME( 1989, cadashi, cadash, cadash, cadash, 0, ROT0, "Taito Corporation Japan", "Cadash (Italy)", 0 ) |
| 1590 | 1317 | GAME( 1989, cadashf, cadash, cadash, cadash, 0, ROT0, "Taito Corporation Japan", "Cadash (France)", 0 ) |
| 1591 | 1318 | GAME( 1992, galmedes, 0, galmedes, galmedes, 0, ROT270, "Visco", "Galmedes (Japan)", 0 ) |
| 1592 | | GAME( 1993, earthjkr, 0, galmedes, earthjkr, 0, ROT270, "Visco", "U.N. Defense Force: Earth Joker (Japan)", 0 ) |
| 1319 | GAME( 1993, earthjkr, 0, galmedes, earthjkr, 0, ROT270, "Visco", "U.N. Defense Force: Earth Joker", 0 ) |
| 1593 | 1320 | GAME( 1994, eto, 0, eto, eto, 0, ROT0, "Visco", "Kokontouzai Eto Monogatari (Japan)", 0 ) |