src/mame/machine/williams.c
| r4207 | r4208 | |
| 74 | 74 | static READ8_DEVICE_HANDLER( input_port_3_device_r ) { return input_port_read_direct(input_port_by_index(device->machine->portconfig, 3)); } |
| 75 | 75 | static READ8_DEVICE_HANDLER( input_port_4_device_r ) { return input_port_read_direct(input_port_by_index(device->machine->portconfig, 4)); } |
| 76 | 76 | |
| 77 | | static WRITE8_DEVICE_HANDLER( williams_dac_data_w ) |
| 78 | | { |
| 79 | | const address_space *space = cpu_get_address_space(device->machine->cpu[0], ADDRESS_SPACE_PROGRAM); |
| 80 | | dac_0_data_w(space, offset, data); |
| 81 | | } |
| 82 | | |
| 83 | | static WRITE8_DEVICE_HANDLER( williams_ticket_dispenser_w ) |
| 84 | | { |
| 85 | | const address_space *space = cpu_get_address_space(device->machine->cpu[0], ADDRESS_SPACE_PROGRAM); |
| 86 | | ticket_dispenser_w(space, offset, data); |
| 87 | | } |
| 88 | | |
| 89 | | static WRITE8_DEVICE_HANDLER( williams_hc55516_0_digit_w ) |
| 90 | | { |
| 91 | | const address_space *space = cpu_get_address_space(device->machine->cpu[0], ADDRESS_SPACE_PROGRAM); |
| 92 | | hc55516_0_digit_w(space, offset, data); |
| 93 | | } |
| 94 | | |
| 95 | | static WRITE8_DEVICE_HANDLER( williams_hc55516_0_clock_w ) |
| 96 | | { |
| 97 | | const address_space *space = cpu_get_address_space(device->machine->cpu[0], ADDRESS_SPACE_PROGRAM); |
| 98 | | hc55516_0_clock_w(space, offset, data); |
| 99 | | } |
| 100 | | |
| 101 | | static WRITE8_DEVICE_HANDLER( pia_1_portb_w ) |
| 102 | | { |
| 103 | | const device_config *pia_1 = devtag_get_device(device->machine, PIA6821, "pia_1"); |
| 104 | | pia_portb_w(pia_1, offset, data); |
| 105 | | } |
| 106 | | |
| 107 | | static WRITE8_DEVICE_HANDLER( pia_1_cb1_w ) |
| 108 | | { |
| 109 | | const device_config *pia_1 = devtag_get_device(device->machine, PIA6821, "pia_1"); |
| 110 | | pia_cb1_w(pia_1, offset, data); |
| 111 | | } |
| 112 | | |
| 113 | | static WRITE8_DEVICE_HANDLER( pia_2_ca1_w ) |
| 114 | | { |
| 115 | | const device_config *pia_2 = devtag_get_device(device->machine, PIA6821, "pia_2"); |
| 116 | | pia_ca1_w(pia_2, offset, data); |
| 117 | | } |
| 118 | | |
| 119 | 77 | /************************************* |
| 120 | 78 | * |
| 121 | 79 | * Generic old-Williams PIA interfaces |
| r4207 | r4208 | |
| 125 | 83 | /* Generic PIA 0, maps to input ports 0 and 1 */ |
| 126 | 84 | const pia6821_interface williams_pia_0_intf = |
| 127 | 85 | { |
| 128 | | /*inputs : A/B,CA/B1,CA/B2 */ input_port_0_device_r, input_port_1_device_r, 0, 0, 0, 0, |
| 129 | | /*outputs: A/B,CA/B2 */ 0, 0, 0, 0, |
| 130 | | /*irqs : A/B */ 0, 0 |
| 86 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(input_port_0_device_r), DEVCB_HANDLER(input_port_1_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 87 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 88 | /*irqs : A/B */ DEVCB_NULL, DEVCB_NULL |
| 131 | 89 | }; |
| 132 | 90 | |
| 133 | 91 | /* Generic muxing PIA 0, maps to input ports 0/3 and 1; port select is CB2 */ |
| r4207 | r4208 | |
| 135 | 93 | /* muxing done in williams_mux_r */ |
| 136 | 94 | const pia6821_interface williams_muxed_pia_0_intf = |
| 137 | 95 | { |
| 138 | | /*inputs : A/B,CA/B1,CA/B2 */ input_port_0_device_r, input_port_1_device_r, 0, 0, 0, 0, |
| 139 | | /*outputs: A/B,CA/B2 */ 0, 0, 0, williams_port_select_w, |
| 140 | | /*irqs : A/B */ 0, 0 |
| 96 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(input_port_0_device_r), DEVCB_HANDLER(input_port_1_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 97 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_HANDLER(williams_port_select_w), |
| 98 | /*irqs : A/B */ DEVCB_NULL, DEVCB_NULL |
| 141 | 99 | }; |
| 142 | 100 | |
| 143 | 101 | /* Generic 49-way joystick PIA 0 for Sinistar/Blaster */ |
| 144 | 102 | const pia6821_interface williams_49way_pia_0_intf = |
| 145 | 103 | { |
| 146 | | /*inputs : A/B,CA/B1,CA/B2 */ williams_49way_port_0_r, input_port_1_device_r, 0, 0, 0, 0, |
| 147 | | /*outputs: A/B,CA/B2 */ 0, 0, 0, 0, |
| 148 | | /*irqs : A/B */ 0, 0 |
| 104 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(williams_49way_port_0_r), DEVCB_HANDLER(input_port_1_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 105 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 106 | /*irqs : A/B */ DEVCB_NULL, DEVCB_NULL |
| 149 | 107 | }; |
| 150 | 108 | |
| 151 | 109 | /* Muxing 49-way joystick PIA 0 for Blaster kit */ |
| 152 | 110 | const pia6821_interface williams_49way_muxed_pia_0_intf = |
| 153 | 111 | { |
| 154 | | /*inputs : A/B,CA/B1,CA/B2 */ williams_input_port_49way_0_5_r, input_port_1_device_r, 0, 0, 0, 0, |
| 155 | | /*outputs: A/B,CA/B2 */ 0, 0, 0, williams_port_select_w, |
| 156 | | /*irqs : A/B */ 0, 0 |
| 112 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(williams_input_port_49way_0_5_r), DEVCB_HANDLER(input_port_1_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 113 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_HANDLER(williams_port_select_w), |
| 114 | /*irqs : A/B */ DEVCB_NULL, DEVCB_NULL |
| 157 | 115 | }; |
| 158 | 116 | |
| 159 | 117 | /* Generic PIA 1, maps to input port 2, sound command out, and IRQs */ |
| 160 | 118 | const pia6821_interface williams_pia_1_intf = |
| 161 | 119 | { |
| 162 | | /*inputs : A/B,CA/B1,CA/B2 */ input_port_2_device_r, 0, 0, 0, 0, 0, |
| 163 | | /*outputs: A/B,CA/B2 */ 0, williams_snd_cmd_w, 0, 0, |
| 164 | | /*irqs : A/B */ williams_main_irq, williams_main_irq |
| 120 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(input_port_2_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 121 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(williams_snd_cmd_w), DEVCB_NULL, DEVCB_NULL, |
| 122 | /*irqs : A/B */ DEVCB_LINE(williams_main_irq), DEVCB_LINE(williams_main_irq) |
| 165 | 123 | }; |
| 166 | 124 | |
| 167 | 125 | /* Generic PIA 2, maps to DAC data in and sound IRQs */ |
| 168 | 126 | const pia6821_interface williams_snd_pia_intf = |
| 169 | 127 | { |
| 170 | | /*inputs : A/B,CA/B1,CA/B2 */ 0, 0, 0, 0, 0, 0, |
| 171 | | /*outputs: A/B,CA/B2 */ williams_dac_data_w, 0, 0, 0, |
| 172 | | /*irqs : A/B */ williams_snd_irq, williams_snd_irq |
| 128 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 129 | /*outputs: A/B,CA/B2 */ DEVCB_MEMORY_HANDLER("main", PROGRAM, dac_0_data_w), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 130 | /*irqs : A/B */ DEVCB_LINE(williams_snd_irq), DEVCB_LINE(williams_snd_irq) |
| 173 | 131 | }; |
| 174 | 132 | |
| 175 | 133 | |
| r4207 | r4208 | |
| 183 | 141 | /* Special PIA 0 for Lotto Fun, to handle the controls and ticket dispenser */ |
| 184 | 142 | const pia6821_interface lottofun_pia_0_intf = |
| 185 | 143 | { |
| 186 | | /*inputs : A/B,CA/B1,CA/B2 */ lottofun_input_port_0_r, input_port_1_device_r, 0, 0, 0, 0, |
| 187 | | /*outputs: A/B,CA/B2 */ 0, williams_ticket_dispenser_w, 0, 0, |
| 188 | | /*irqs : A/B */ 0, 0 |
| 144 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(lottofun_input_port_0_r), DEVCB_HANDLER(input_port_1_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 145 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_MEMORY_HANDLER("main", PROGRAM, ticket_dispenser_w), DEVCB_NULL, DEVCB_NULL, |
| 146 | /*irqs : A/B */ DEVCB_NULL, DEVCB_NULL |
| 189 | 147 | }; |
| 190 | 148 | |
| 191 | 149 | /* Special PIA 2 for Sinistar, to handle the CVSD */ |
| 192 | 150 | const pia6821_interface sinistar_snd_pia_intf = |
| 193 | 151 | { |
| 194 | | /*inputs : A/B,CA/B1,CA/B2 */ 0, 0, 0, 0, 0, 0, |
| 195 | | /*outputs: A/B,CA/B2 */ williams_dac_data_w, 0, williams_hc55516_0_digit_w, williams_hc55516_0_clock_w, |
| 196 | | /*irqs : A/B */ williams_snd_irq, williams_snd_irq |
| 152 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 153 | /*outputs: A/B,CA/B2 */ DEVCB_MEMORY_HANDLER("main", PROGRAM, dac_0_data_w), DEVCB_NULL, DEVCB_MEMORY_HANDLER("main", PROGRAM, hc55516_0_digit_w), DEVCB_MEMORY_HANDLER("main", PROGRAM, hc55516_0_clock_w), |
| 154 | /*irqs : A/B */ DEVCB_LINE(williams_snd_irq), DEVCB_LINE(williams_snd_irq) |
| 197 | 155 | }; |
| 198 | 156 | |
| 199 | 157 | /* Special PIA 1 for PlayBall, doesn't set the high bits on sound commands */ |
| 200 | 158 | const pia6821_interface playball_pia_1_intf = |
| 201 | 159 | { |
| 202 | | /*inputs : A/B,CA/B1,CA/B2 */ input_port_2_device_r, 0, 0, 0, 0, 0, |
| 203 | | /*outputs: A/B,CA/B2 */ 0, playball_snd_cmd_w, 0, 0, |
| 204 | | /*irqs : A/B */ williams_main_irq, williams_main_irq |
| 160 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(input_port_2_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 161 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(playball_snd_cmd_w), DEVCB_NULL, DEVCB_NULL, |
| 162 | /*irqs : A/B */ DEVCB_LINE(williams_main_irq), DEVCB_LINE(williams_main_irq) |
| 205 | 163 | }; |
| 206 | 164 | |
| 207 | 165 | /* extra PIA 3 for Speed Ball */ |
| 208 | 166 | const pia6821_interface spdball_pia_3_intf = |
| 209 | 167 | { |
| 210 | | /*inputs : A/B,CA/B1,CA/B2 */ input_port_3_device_r, input_port_4_device_r, 0, 0, 0, 0, |
| 211 | | /*outputs: A/B,CA/B2 */ 0, 0, 0, 0, |
| 212 | | /*irqs : A/B */ 0, 0 |
| 168 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(input_port_3_device_r), DEVCB_HANDLER(input_port_4_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 169 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 170 | /*irqs : A/B */ DEVCB_NULL, DEVCB_NULL |
| 213 | 171 | }; |
| 214 | 172 | |
| 215 | 173 | |
| r4207 | r4208 | |
| 223 | 181 | /* Generic muxing PIA 0, maps to input ports 0/3 and 1; port select is CA2 */ |
| 224 | 182 | const pia6821_interface williams2_muxed_pia_0_intf = |
| 225 | 183 | { |
| 226 | | /*inputs : A/B,CA/B1,CA/B2 */ input_port_0_device_r, input_port_1_device_r, 0, 0, 0, 0, |
| 227 | | /*outputs: A/B,CA/B2 */ 0, 0, williams_port_select_w, 0, |
| 228 | | /*irqs : A/B */ 0, 0 |
| 184 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(input_port_0_device_r), DEVCB_HANDLER(input_port_1_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 185 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_HANDLER(williams_port_select_w), DEVCB_NULL, |
| 186 | /*irqs : A/B */ DEVCB_NULL, DEVCB_NULL |
| 229 | 187 | }; |
| 230 | 188 | |
| 231 | 189 | /* Generic PIA 1, maps to input port 2, sound command out, and IRQs */ |
| 232 | 190 | const pia6821_interface williams2_pia_1_intf = |
| 233 | 191 | { |
| 234 | | /*inputs : A/B,CA/B1,CA/B2 */ input_port_2_device_r, 0, 0, 0, 0, 0, |
| 235 | | /*outputs: A/B,CA/B2 */ 0, williams2_snd_cmd_w, 0, pia_2_ca1_w, |
| 236 | | /*irqs : A/B */ williams_main_irq, williams_main_irq |
| 192 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(input_port_2_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 193 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(williams2_snd_cmd_w), DEVCB_NULL, DEVCB_DEVICE_HANDLER(PIA6821, "pia_2", pia_ca1_w), |
| 194 | /*irqs : A/B */ DEVCB_LINE(williams_main_irq), DEVCB_LINE(williams_main_irq) |
| 237 | 195 | }; |
| 238 | 196 | |
| 239 | 197 | /* Generic PIA 2, maps to DAC data in and sound IRQs */ |
| 240 | 198 | const pia6821_interface williams2_snd_pia_intf = |
| 241 | 199 | { |
| 242 | | /*inputs : A/B,CA/B1,CA/B2 */ 0, 0, 0, 0, 0, 0, |
| 243 | | /*outputs: A/B,CA/B2 */ pia_1_portb_w, williams_dac_data_w, pia_1_cb1_w, 0, |
| 244 | | /*irqs : A/B */ williams_snd_irq, williams_snd_irq |
| 200 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 201 | /*outputs: A/B,CA/B2 */ DEVCB_DEVICE_HANDLER(PIA6821, "pia_1", pia_portb_w), DEVCB_MEMORY_HANDLER("main", PROGRAM, dac_0_data_w), DEVCB_DEVICE_HANDLER(PIA6821, "pia_1", pia_cb1_w), DEVCB_NULL, |
| 202 | /*irqs : A/B */ DEVCB_LINE(williams_snd_irq), DEVCB_LINE(williams_snd_irq) |
| 245 | 203 | }; |
| 246 | 204 | |
| 247 | 205 | |
| r4207 | r4208 | |
| 255 | 213 | /* Mystic Marathon PIA 0 */ |
| 256 | 214 | const pia6821_interface mysticm_pia_0_intf = |
| 257 | 215 | { |
| 258 | | /*inputs : A/B,CA/B1,CA/B2 */ input_port_0_device_r, input_port_1_device_r, 0, 0, 0, 0, |
| 259 | | /*outputs: A/B,CA/B2 */ 0, 0, 0, 0, |
| 260 | | /*irqs : A/B */ williams_main_firq, mysticm_main_irq |
| 216 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(input_port_0_device_r), DEVCB_HANDLER(input_port_1_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 217 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 218 | /*irqs : A/B */ DEVCB_LINE(williams_main_firq), DEVCB_LINE(mysticm_main_irq) |
| 261 | 219 | }; |
| 262 | 220 | |
| 263 | 221 | /* Mystic Marathon PIA 1 */ |
| 264 | 222 | const pia6821_interface mysticm_pia_1_intf = |
| 265 | 223 | { |
| 266 | | /*inputs : A/B,CA/B1,CA/B2 */ input_port_2_device_r, 0, 0, 0, 0, 0, |
| 267 | | /*outputs: A/B,CA/B2 */ 0, williams2_snd_cmd_w, 0, pia_2_ca1_w, |
| 268 | | /*irqs : A/B */ mysticm_main_irq, mysticm_main_irq |
| 224 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(input_port_2_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 225 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(williams2_snd_cmd_w), DEVCB_NULL, DEVCB_DEVICE_HANDLER(PIA6821, "pia_2", pia_ca1_w), |
| 226 | /*irqs : A/B */ DEVCB_LINE(mysticm_main_irq), DEVCB_LINE(mysticm_main_irq) |
| 269 | 227 | }; |
| 270 | 228 | |
| 271 | 229 | /* Turkey Shoot PIA 0 */ |
| 272 | 230 | const pia6821_interface tshoot_pia_0_intf = |
| 273 | 231 | { |
| 274 | | /*inputs : A/B,CA/B1,CA/B2 */ tshoot_input_port_0_3_r, input_port_1_device_r, 0, 0, 0, 0, |
| 275 | | /*outputs: A/B,CA/B2 */ 0, tshoot_lamp_w, williams_port_select_w, 0, |
| 276 | | /*irqs : A/B */ tshoot_main_irq, tshoot_main_irq |
| 232 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(tshoot_input_port_0_3_r), DEVCB_HANDLER(input_port_1_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 233 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(tshoot_lamp_w), DEVCB_HANDLER(williams_port_select_w), DEVCB_NULL, |
| 234 | /*irqs : A/B */ DEVCB_LINE(tshoot_main_irq), DEVCB_LINE(tshoot_main_irq) |
| 277 | 235 | }; |
| 278 | 236 | |
| 279 | 237 | /* Turkey Shoot PIA 1 */ |
| 280 | 238 | const pia6821_interface tshoot_pia_1_intf = |
| 281 | 239 | { |
| 282 | | /*inputs : A/B,CA/B1,CA/B2 */ input_port_2_device_r, 0, 0, 0, 0, 0, |
| 283 | | /*outputs: A/B,CA/B2 */ 0, williams2_snd_cmd_w, 0, pia_2_ca1_w, |
| 284 | | /*irqs : A/B */ tshoot_main_irq, tshoot_main_irq |
| 240 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(input_port_2_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 241 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(williams2_snd_cmd_w), DEVCB_NULL, DEVCB_DEVICE_HANDLER(PIA6821, "pia_2", pia_ca1_w), |
| 242 | /*irqs : A/B */ DEVCB_LINE(tshoot_main_irq), DEVCB_LINE(tshoot_main_irq) |
| 285 | 243 | }; |
| 286 | 244 | |
| 287 | 245 | /* Turkey Shoot PIA 2 */ |
| 288 | 246 | const pia6821_interface tshoot_snd_pia_intf = |
| 289 | 247 | { |
| 290 | | /*inputs : A/B,CA/B1,CA/B2 */ 0, 0, 0, 0, 0, 0, |
| 291 | | /*outputs: A/B,CA/B2 */ pia_1_portb_w, williams_dac_data_w, pia_1_cb1_w, tshoot_maxvol_w, |
| 292 | | /*irqs : A/B */ williams_snd_irq, williams_snd_irq |
| 248 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 249 | /*outputs: A/B,CA/B2 */ DEVCB_DEVICE_HANDLER(PIA6821, "pia_1", pia_portb_w), DEVCB_MEMORY_HANDLER("main", PROGRAM, dac_0_data_w), DEVCB_DEVICE_HANDLER(PIA6821, "pia_1", pia_cb1_w), DEVCB_HANDLER(tshoot_maxvol_w), |
| 250 | /*irqs : A/B */ DEVCB_LINE(williams_snd_irq), DEVCB_LINE(williams_snd_irq) |
| 293 | 251 | }; |
| 294 | 252 | |
| 295 | 253 | /* Joust 2 PIA 1 */ |
| 296 | 254 | const pia6821_interface joust2_pia_1_intf = |
| 297 | 255 | { |
| 298 | | /*inputs : A/B,CA/B1,CA/B2 */ input_port_2_device_r, 0, 0, 0, 0, 0, |
| 299 | | /*outputs: A/B,CA/B2 */ 0, joust2_snd_cmd_w, joust2_pia_3_cb1_w, pia_2_ca1_w, |
| 300 | | /*irqs : A/B */ williams_main_irq, williams_main_irq |
| 256 | /*inputs : A/B,CA/B1,CA/B2 */ DEVCB_HANDLER(input_port_2_device_r), DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, |
| 257 | /*outputs: A/B,CA/B2 */ DEVCB_NULL, DEVCB_HANDLER(joust2_snd_cmd_w), DEVCB_HANDLER(joust2_pia_3_cb1_w), DEVCB_DEVICE_HANDLER(PIA6821, "pia_2", pia_ca1_w), |
| 258 | /*irqs : A/B */ DEVCB_LINE(williams_main_irq), DEVCB_LINE(williams_main_irq) |
| 301 | 259 | }; |
| 302 | 260 | |
| 303 | 261 | /* Joust 2 PIA 3 */ |
| 304 | 262 | const pia6821_interface joust2_pia_3_intf = |
| 305 | 263 | { |
| 306 | | 0, |
| 264 | DEVCB_NULL, |
| 307 | 265 | }; |
| 308 | 266 | |
| 309 | 267 | |
src/mame/drivers/magicard.c
| r4207 | r4208 | |
| 17 | 17 | |
| 18 | 18 | *** Hardware Notes *** |
| 19 | 19 | |
| 20 | | (All ICs on this board are surface scratched, so we're guessing...) |
| 20 | These are actually the specs of the Philips CD-i console. |
| 21 | 21 | |
| 22 | 22 | Identified: |
| 23 | 23 | |
| r4207 | r4208 | |
| 47 | 47 | |
| 48 | 48 | TODO: |
| 49 | 49 | |
| 50 | | -Understand these two things: |
| 51 | | -bpset 1a2a82 |
| 52 | | do pc=1a2a92 ;tests the 260000-27ffff region |
| 53 | | After the boot screen (the angel with torch),will come a screen with a circle |
| 54 | | and a counter in the middle like a warning screen.I think is checksuming |
| 55 | | something -RF |
| 50 | -Proper handling of the 68070 (68k with 32 address lines instead of 24) |
| 51 | & handle the extra features properly (UART,DMA,Timers etc.) |
| 56 | 52 | |
| 57 | | -bpset 75600 |
| 58 | | do pc=75648 ;there are various tests/tight hangs while testing the 2005 area |
| 59 | | Chances are that the inputs are located in a RAM-based fashion,similar of the |
| 60 | | way used by spool99 (probably the latter copied from this one). -AS |
| 53 | -Proper emulation of the 66470 Video Chip (still many unhandled features) |
| 61 | 54 | |
| 62 | | -Fix properly the starting vectors; |
| 63 | | |
| 64 | | -Colors; |
| 65 | | |
| 66 | 55 | -Inputs; |
| 67 | 56 | |
| 68 | | -Sound; |
| 57 | -Unknown sound chip (it's an ADPCM with eight channels); |
| 69 | 58 | |
| 70 | | -Visible Area; |
| 59 | -Many unknown memory maps; |
| 71 | 60 | |
| 72 | | -Clone romset magicrda not checked at all; |
| 73 | | |
| 74 | 61 | *******************************************************************************/ |
| 75 | 62 | |
| 76 | 63 | |
| r4207 | r4208 | |
| 79 | 66 | |
| 80 | 67 | #include "driver.h" |
| 81 | 68 | #include "cpu/m68000/m68000.h" |
| 69 | #include "sound/2413intf.h" |
| 82 | 70 | |
| 83 | 71 | static UINT16 *magicram; |
| 84 | | static UINT16 *blit_ram; |
| 72 | static UINT16 *pcab_vregs; |
| 85 | 73 | |
| 86 | 74 | /************************* |
| 87 | 75 | * Video Hardware * |
| 88 | 76 | *************************/ |
| 89 | 77 | |
| 78 | /* |
| 79 | 66470 |
| 80 | video and system controller |
| 81 | 19901219/wjvg |
| 82 | */ |
| 83 | /* |
| 84 | TODO: check this register,doesn't seem to be 100% correct. |
| 85 | 1fffe0 csr = control and status register |
| 86 | w 00...... ........ DM = slow timing speed, normal dram mode |
| 87 | w 01...... ........ DM = fast timing speed, page dram mode |
| 88 | w 10...... ........ DM = fast timing speed, nibble dram mode |
| 89 | w 11...... ........ DM = slow timing speed, dual-port vram mode |
| 90 | w ..1..... ........ TD = 256/64 k dram's |
| 91 | w ...1.... ........ CG = enable character generator |
| 92 | w ....1... ........ DD = rom data acknowledge delay |
| 93 | w .....1.. ........ ED = early dtack |
| 94 | w ......0. ........ not used |
| 95 | w .......1 ........ BE = enable bus error (watchdog timer) |
| 96 | r ........ 1....... DA = vertical display active |
| 97 | r ........ .1...... FG = set during frame grabbing (if fg in dcr set) |
| 98 | r ........ ..xxx... not used |
| 99 | r ........ .....1.. IT2 = intn active |
| 100 | r ........ ......1. IT1 = pixac free and intn active |
| 101 | r ........ .......1 BE = bus error generated by watchdog timer |
| 102 | */ |
| 103 | |
| 104 | /*63 at post test,6d all the time.*/ |
| 105 | #define SCC_CSR_VREG (pcab_vregs[0x00/2] & 0xffff) |
| 106 | #define SCC_CG_VREG ((SCC_CSR_VREG & 0x10)>>4) |
| 107 | |
| 108 | /* |
| 109 | 1fffe2 dcr = display command register |
| 110 | w 1....... ........ DE = enable display |
| 111 | w .00..... ........ CF = 20 MHz (or 19.6608 MHz) |
| 112 | w .01..... ........ CF = 24 MHz |
| 113 | w .10..... ........ CF = 28.5 MHz |
| 114 | w .11..... ........ CF = 30 MHz |
| 115 | w ...1.... ........ FD = 60/50 Hz frame duration |
| 116 | w ....00.. ........ SM/SS = non-interlaced scan mode |
| 117 | w ....01.. ........ SM/SS = double frequency scan mode |
| 118 | w ....10.. ........ SM/SS = interlaced scan mode |
| 119 | w ....11.. ........ SM/SS = interlaced field repeat scan mode |
| 120 | w ......1. ........ LS = full screen/border |
| 121 | w .......1 ........ CM = logical/physical screen |
| 122 | w ........ 1....... FG = 4/8 bits per pixel |
| 123 | w ........ .1...... DF = enable frame grabbing |
| 124 | w ........ ..00.... IC/DC = ICA and DCA inactive |
| 125 | w ........ ..01.... IC/DC = ICA active, reduced DCA mode (DCA sz=16 byts) |
| 126 | w ........ ..10.... IC/DC = ICA active, DCA inactive |
| 127 | w ........ ..11.... IC/DC = ICA active, DCA active (DCA size=64 bytes) |
| 128 | w ........ ....aaaa VSR:H = video start address (MSB's) |
| 129 | */ |
| 130 | |
| 131 | #define SCC_DCR_VREG (pcab_vregs[0x02/2] & 0xffff) |
| 132 | #define SCC_DE_VREG ((SCC_DCR_VREG & 0x8000)>>15) |
| 133 | #define SCC_VSR_VREG_H ((SCC_DCR_VREG & 0xf)>>0) |
| 134 | |
| 135 | /* |
| 136 | 1fffe4 vsr = video start register |
| 137 | w aaaaaaaa aaaaaaaa VSR:L = video start address (LSB's) |
| 138 | */ |
| 139 | |
| 140 | #define SCC_VSR_VREG_L (pcab_vregs[0x04/2] & 0xffff) |
| 141 | #define SCC_VSR_VREG ((SCC_VSR_VREG_H)<<16) | (SCC_VSR_VREG_L) |
| 142 | |
| 143 | /* |
| 144 | 1fffe6 bcr = border colour register |
| 145 | w ........ nnnnnnnn in 8 bit mode |
| 146 | w ........ nnnn.... in 4 bit mode |
| 147 | */ |
| 148 | /* |
| 149 | (Note: not present on the original vreg listing) |
| 150 | 1fffe8 dcr2 = display command register 2 |
| 151 | w x....... ........ not used |
| 152 | w .nn..... ........ OM = lower port of the video mode (with CM) |
| 153 | w ...1.... ........ ID = Indipendent DCA bit |
| 154 | w ....nn.. ........ MF = Mosaic Factor (2,4,8,16) |
| 155 | w ......nn ........ FT = File Type (0/1 = bitmap, 2 = RLE, 3 = Mosaic) |
| 156 | w ........ xxxx.... not used |
| 157 | w ........ ....aaaa "data" (dunno the purpose...) |
| 158 | */ |
| 159 | #define SCC_DCR2_VREG (pcab_vregs[0x08/2] & 0xffff) |
| 160 | |
| 161 | /* |
| 162 | (Note: not present on the original vreg listing) |
| 163 | 1fffea dcp = ??? |
| 164 | w aaaaaaaa aaaaaa-- "data" (dunno the purpose...) |
| 165 | w -------- ------xx not used |
| 166 | */ |
| 167 | |
| 168 | /* |
| 169 | 1fffec swm = selective write mask register |
| 170 | w nnnnnnnn ........ mask |
| 171 | */ |
| 172 | /* |
| 173 | 1fffee stm = selective mask register |
| 174 | w ........ nnnnnnnn mask |
| 175 | */ |
| 176 | /* |
| 177 | 1ffff0 a = source register a |
| 178 | w nnnnnnnn nnnnnnnn source |
| 179 | */ |
| 180 | #define SCC_SRCA_VREG (pcab_vregs[0x10/2] & 0xffff) |
| 181 | |
| 182 | /* |
| 183 | 1ffff2 b = destination register b |
| 184 | rw nnnnnnnn nnnnnnnn destination |
| 185 | */ |
| 186 | |
| 187 | #define SCC_DSTB_VREG (pcab_vregs[0x12/2] & 0xffff) |
| 188 | |
| 189 | /* |
| 190 | 1ffff4 pcr = pixac command register |
| 191 | w 1....... ........ 4N = 8/4 bits per pixel |
| 192 | w .1....00 ....x00. COL = enable colour2 function |
| 193 | w .1....00 .....01. COL = enable colour1 function |
| 194 | w .1...0.. .....10. COL = enable bcolour2 function |
| 195 | w .1...0.. .....11. COL = enable bcolour1 function |
| 196 | w ..1..000 ....x00. EXC = enable exchange function |
| 197 | w ..1..000 .....01. EXC = enable swap function |
| 198 | w ..1..000 .....10. EXC = enable inverted exchange function |
| 199 | w ..1..000 .....11. EXC = enable inverted swap function |
| 200 | w ...1..0. ....x00. CPY = enable copy type b function |
| 201 | w ...1...0 ....x10. CPY = enable copy type a function |
| 202 | w ...1..0. .....01. CPY = enable patch type b function |
| 203 | w ...1...0 .....11. CPY = enable patch type a function |
| 204 | w ....1000 .....00. CMP = enable compare function |
| 205 | w ....1000 .....10. CMP = enable compact function |
| 206 | w .....1.. ........ RTL = manipulate right to left |
| 207 | w ......1. ........ SHK = shrink picture by factor 2 |
| 208 | w .......1 ........ ZOM = zoom picture by factor 2 |
| 209 | w ........ nnnn.... LGF = logical function |
| 210 | w ........ 0000.... LGF = d=r |
| 211 | w ........ 0001.... LGF = d=~r |
| 212 | w ........ 0010.... LGF = d=0 |
| 213 | w ........ 0011.... LGF = d=1 |
| 214 | w ........ 0100.... LGF = d=~(d^r) |
| 215 | w ........ 0101.... LGF = d=d^r |
| 216 | w ........ 0110.... LGF = d=d&r |
| 217 | w ........ 0111.... LGF = d=~d&r |
| 218 | w ........ 1000.... LGF = d=~d&~r |
| 219 | w ........ 1001.... LGF = d=d&~r |
| 220 | w ........ 1010.... LGF = d=~d|r |
| 221 | w ........ 1011.... LGF = d=d|r |
| 222 | w ........ 1100.... LGF = d=d|~r |
| 223 | w ........ 1101.... LGF = d=~d|~r |
| 224 | w ........ 1110.... LGF = d=d |
| 225 | w ........ 1111.... LGF = d=~d |
| 226 | w ........ ....1... INV = invert transparancy state of source bits |
| 227 | w ........ .....1.. BIT = copy: enable copy type a |
| 228 | w ........ .....1.. BIT = colour: enable bcolour/colour |
| 229 | w ........ .....1.. BIT = compare: compact/compare |
| 230 | w ........ ......1. TT = perform transparancy test |
| 231 | w ........ .......0 |
| 232 | */ |
| 233 | |
| 234 | #define SCC_PCR_VREG (pcab_vregs[0x14/2] & 0xffff) |
| 235 | |
| 236 | /* |
| 237 | 1ffff6 mask = mask register |
| 238 | w ........ ....nnnn mask nibbles/0 |
| 239 | */ |
| 240 | /* |
| 241 | 1ffff8 shift = shift register |
| 242 | w ......nn ........ shift by .. during source alignment |
| 243 | */ |
| 244 | /* |
| 245 | 1ffffa index = index register |
| 246 | w ........ ......nn bcolour: use bit .. in the source word |
| 247 | w ........ ......nn compact: nibble .. will hold the result |
| 248 | */ |
| 249 | /* |
| 250 | 1ffffc fc/bc = foreground/background colour register |
| 251 | w nnnnnnnn ........ FC = foreground colour |
| 252 | w ........ nnnnnnnn BC = background colour |
| 253 | */ |
| 254 | /* |
| 255 | 1ffffe tc = transparent colour register |
| 256 | w nnnnnnnn ........ transparent colour |
| 257 | */ |
| 258 | |
| 259 | |
| 260 | |
| 90 | 261 | static VIDEO_START(magicard) |
| 91 | 262 | { |
| 92 | 263 | |
| r4207 | r4208 | |
| 94 | 265 | |
| 95 | 266 | static VIDEO_UPDATE(magicard) |
| 96 | 267 | { |
| 97 | | int x,y,count; |
| 268 | int x,y; |
| 269 | UINT32 count; |
| 98 | 270 | |
| 99 | | count = (0/2); |
| 271 | bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine)); //TODO |
| 100 | 272 | |
| 273 | if(!(SCC_DE_VREG)) //display enable |
| 274 | return 0; |
| 275 | |
| 276 | count = ((SCC_VSR_VREG)/2); |
| 277 | |
| 101 | 278 | for(y=0;y<300;y++) |
| 102 | 279 | { |
| 103 | 280 | for(x=0;x<168;x++) |
| 104 | 281 | { |
| 105 | 282 | UINT32 color; |
| 106 | 283 | |
| 107 | | color = ((blit_ram[count]) & 0x00ff)>>0; |
| 284 | color = ((magicram[count]) & 0x00ff)>>0; |
| 108 | 285 | |
| 109 | 286 | if((x*2)<video_screen_get_visible_area(screen)->max_x && ((y)+0)<video_screen_get_visible_area(screen)->max_y) |
| 110 | 287 | *BITMAP_ADDR32(bitmap, y, (x*2)+1) = screen->machine->pens[color]; |
| 111 | 288 | |
| 112 | | color = ((blit_ram[count]) & 0xff00)>>8; |
| 289 | color = ((magicram[count]) & 0xff00)>>8; |
| 113 | 290 | |
| 114 | 291 | if(((x*2)+1)<video_screen_get_visible_area(screen)->max_x && ((y)+0)<video_screen_get_visible_area(screen)->max_y) |
| 115 | 292 | *BITMAP_ADDR32(bitmap, y, (x*2)+0) = screen->machine->pens[color]; |
| r4207 | r4208 | |
| 117 | 294 | count++; |
| 118 | 295 | } |
| 119 | 296 | } |
| 297 | |
| 120 | 298 | return 0; |
| 121 | 299 | } |
| 122 | 300 | |
| r4207 | r4208 | |
| 130 | 308 | return mame_rand(space->machine); |
| 131 | 309 | } |
| 132 | 310 | |
| 311 | static WRITE16_HANDLER( paletteram_io_w ) |
| 312 | { |
| 313 | static int pal_offs,r,g,b,internal_pal_offs; |
| 314 | |
| 315 | switch(offset*2) |
| 316 | { |
| 317 | case 0: |
| 318 | pal_offs = data; |
| 319 | break; |
| 320 | case 4: |
| 321 | internal_pal_offs = 0; |
| 322 | break; |
| 323 | case 2: |
| 324 | switch(internal_pal_offs) |
| 325 | { |
| 326 | case 0: |
| 327 | r = ((data & 0x3f) << 2) | ((data & 0x30) >> 4); |
| 328 | internal_pal_offs++; |
| 329 | break; |
| 330 | case 1: |
| 331 | g = ((data & 0x3f) << 2) | ((data & 0x30) >> 4); |
| 332 | internal_pal_offs++; |
| 333 | break; |
| 334 | case 2: |
| 335 | b = ((data & 0x3f) << 2) | ((data & 0x30) >> 4); |
| 336 | palette_set_color(space->machine, pal_offs, MAKE_RGB(r, g, b)); |
| 337 | internal_pal_offs = 0; |
| 338 | pal_offs++; |
| 339 | break; |
| 340 | } |
| 341 | |
| 342 | break; |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | static READ16_HANDLER( philips_66470_r ) |
| 347 | { |
| 348 | switch(offset) |
| 349 | { |
| 350 | // case 0/2: |
| 351 | // return mame_rand(space->machine); //TODO |
| 352 | } |
| 353 | |
| 354 | printf("[%04x]\n",offset*2); |
| 355 | |
| 356 | |
| 357 | return pcab_vregs[offset]; |
| 358 | } |
| 359 | |
| 360 | static WRITE16_HANDLER( philips_66470_w ) |
| 361 | { |
| 362 | COMBINE_DATA(&pcab_vregs[offset]); |
| 363 | |
| 364 | // if(offset == 0x10/2) |
| 365 | // { |
| 366 | //printf("%04x %04x %04x\n",data,pcab_vregs[0x12/2],pcab_vregs[0x14/2]); |
| 367 | //pcab_vregs[0x12/2] = pcab_vregs[0x10/2]; |
| 368 | // } |
| 369 | } |
| 370 | |
| 133 | 371 | static ADDRESS_MAP_START( magicard_mem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 134 | | AM_RANGE(0x000000, 0x01ffff) AM_RAM AM_BASE(&magicram) |
| 135 | | AM_RANGE(0x020000, 0x020001) AM_READ(test_r) |
| 136 | | AM_RANGE(0x020002, 0x020003) AM_READ(test_r) |
| 137 | | AM_RANGE(0x040000, 0x05ffff) AM_RAM |
| 138 | | AM_RANGE(0x060000, 0x07ffff) AM_RAM AM_BASE(&blit_ram) |
| 372 | // ADDRESS_MAP_GLOBAL_MASK(0x1fffff) |
| 373 | AM_RANGE(0x000000, 0x0fffff) AM_RAM AM_BASE(&magicram) /*only 0-7ffff accessed in Magic Card*/ |
| 139 | 374 | // AM_RANGE(0x100000, 0x17ffff) AM_RAM AM_REGION("main", 0) |
| 140 | 375 | AM_RANGE(0x180000, 0x1ffbff) AM_ROM AM_REGION("main", 0) |
| 141 | | AM_RANGE(0x1ffc00, 0x1fffff) AM_RAM |
| 142 | | AM_RANGE(0x260000, 0x27ffff) AM_RAM /*???*/ |
| 376 | /* 1ffc00-1ffdff System I/O */ |
| 377 | AM_RANGE(0x1ffc00, 0x1ffc01) AM_READ(test_r) |
| 378 | AM_RANGE(0x1ffc40, 0x1ffc41) AM_READ(test_r) |
| 379 | AM_RANGE(0x1ffd00, 0x1ffd05) AM_WRITE(paletteram_io_w) //RAMDAC |
| 380 | /*not the right sound chip,unknown type,it should be an ADPCM with 8 channels.*/ |
| 381 | AM_RANGE(0x1ffd40, 0x1ffd41) AM_WRITE(ym2413_register_port_0_lsb_w) |
| 382 | AM_RANGE(0x1ffd42, 0x1ffd43) AM_WRITE(ym2413_data_port_0_lsb_w) |
| 383 | AM_RANGE(0x1ffd80, 0x1ffd81) AM_READ(test_r) |
| 384 | AM_RANGE(0x1ffd80, 0x1ffd81) AM_WRITENOP //? |
| 385 | AM_RANGE(0x1fff80, 0x1fffbf) AM_RAM //DRAM I/O, not accessed by this game, CD buffer? |
| 386 | AM_RANGE(0x1fffe0, 0x1fffff) AM_READWRITE(philips_66470_r,philips_66470_w) AM_BASE(&pcab_vregs) //video registers |
| 387 | AM_RANGE(0x200000, 0x2fffff) AM_RAM |
| 143 | 388 | ADDRESS_MAP_END |
| 144 | 389 | |
| 145 | 390 | |
| r4207 | r4208 | |
| 155 | 400 | { |
| 156 | 401 | UINT16 *src = (UINT16*)memory_region( machine, "main" ); |
| 157 | 402 | UINT16 *dst = magicram; |
| 158 | | memcpy (dst, src, 0x20000); |
| 403 | memcpy (dst, src, 0x80000); |
| 404 | device_reset(cputag_get_cpu(machine, "main")); |
| 159 | 405 | } |
| 160 | 406 | |
| 161 | | static PALETTE_INIT( magicard ) |
| 162 | | { |
| 163 | | /* int bit0, bit1, bit2 , r, g, b; |
| 164 | | int i; |
| 165 | | |
| 166 | | for (i = 0; i < 0x100; ++i) |
| 167 | | { |
| 168 | | bit0 = (color_prom[0] >> 0) & 0x01; |
| 169 | | bit1 = (color_prom[0] >> 1) & 0x01; |
| 170 | | bit2 = (color_prom[0] >> 2) & 0x01; |
| 171 | | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 172 | | bit0 = (color_prom[0] >> 3) & 0x01; |
| 173 | | bit1 = (color_prom[0] >> 4) & 0x01; |
| 174 | | bit2 = (color_prom[0] >> 5) & 0x01; |
| 175 | | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 176 | | bit0 = 0; |
| 177 | | bit1 = (color_prom[0] >> 6) & 0x01; |
| 178 | | bit2 = (color_prom[0] >> 7) & 0x01; |
| 179 | | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; |
| 180 | | |
| 181 | | palette_set_color(machine, i, MAKE_RGB(r, g, b)); |
| 182 | | color_prom++; |
| 183 | | }*/ |
| 184 | | } |
| 185 | | |
| 186 | 407 | /************************* |
| 187 | | * Graphics Layouts * |
| 188 | | *************************/ |
| 189 | | |
| 190 | | static const gfx_layout mca_charlayout = |
| 191 | | { |
| 192 | | /* text layer is only 1bpp?? |
| 193 | | there are 2 charsets, but very different |
| 194 | | */ |
| 195 | | 8, 10, |
| 196 | | 190, |
| 197 | | 1, /* 1bpp? */ |
| 198 | | { 0 }, |
| 199 | | { 0, 1, 2, 3, 4, 5, 6, 7 }, |
| 200 | | { 1*8, 0*8, 3*8, 2*8, 5*8, 4*8, 7*8, 6*8, 9*8, 8*8 }, |
| 201 | | 8*10 |
| 202 | | |
| 203 | | }; |
| 204 | | |
| 205 | | static const gfx_layout mca_tilelayout = |
| 206 | | { |
| 207 | | /* this is only to see the GFX and find |
| 208 | | a proper way to decode |
| 209 | | */ |
| 210 | | 8, 8, |
| 211 | | 0x8000, |
| 212 | | 1, /* just for testing */ |
| 213 | | { 0 }, |
| 214 | | { 0, 1, 2, 3, 4, 5, 6, 7 }, |
| 215 | | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 216 | | 8*8 |
| 217 | | }; |
| 218 | | |
| 219 | | |
| 220 | | /****************************** |
| 221 | | * Graphics Decode Information * |
| 222 | | ******************************/ |
| 223 | | |
| 224 | | static GFXDECODE_START( magicard ) |
| 225 | | GFXDECODE_ENTRY( "main", 0x21562, mca_charlayout, 0, 32 ) |
| 226 | | GFXDECODE_ENTRY( "main", 0x16470, mca_tilelayout, 0, 32 ) |
| 227 | | // GFXDECODE_ENTRY( "main", 0x22efa, mca_tilelayout, 0, 32 ) |
| 228 | | GFXDECODE_END |
| 229 | | |
| 230 | | static GFXDECODE_START( magicrda ) |
| 231 | | GFXDECODE_ENTRY( "main", 0x21562 + 0x792, mca_charlayout, 0, 32 ) |
| 232 | | GFXDECODE_ENTRY( "main", 0x16470, mca_tilelayout, 0, 32 ) |
| 233 | | // GFXDECODE_ENTRY( "main", 0x22efa, mca_tilelayout, 0, 32 ) |
| 234 | | GFXDECODE_END |
| 235 | | |
| 236 | | |
| 237 | | /************************* |
| 238 | 408 | * Machine Drivers * |
| 239 | 409 | *************************/ |
| 240 | 410 | |
| 241 | | #if 0 |
| 242 | 411 | /*Probably there's a mask somewhere if it REALLY uses irqs at all...irq vectors dynamically changes after some time.*/ |
| 243 | 412 | static INTERRUPT_GEN( magicard_irq ) |
| 244 | 413 | { |
| 245 | | if(input_code_pressed(KEYCODE_Z)) |
| 246 | | cpu_set_input_line(device->machine->cpu[0], 1, HOLD_LINE); |
| 414 | // if(input_code_pressed(KEYCODE_Z)) |
| 415 | // cpu_set_input_line(device->machine->cpu[0], 1, HOLD_LINE); |
| 416 | // magicram[0x2004/2]^=0xffff; |
| 247 | 417 | } |
| 248 | | #endif |
| 249 | 418 | |
| 250 | 419 | static MACHINE_DRIVER_START( magicard ) |
| 251 | 420 | MDRV_CPU_ADD("main", M68000, CLOCK_A/2) /* SCC-68070 CCA84 datasheet */ |
| 252 | 421 | MDRV_CPU_PROGRAM_MAP(magicard_mem,0) |
| 253 | | // MDRV_CPU_VBLANK_INT("main", magicard_irq) /* no interrupts? (it erases the vectors..) */ |
| 422 | MDRV_CPU_VBLANK_INT("main", magicard_irq) /* no interrupts? (it erases the vectors..) */ |
| 254 | 423 | |
| 255 | 424 | MDRV_SCREEN_ADD("main", RASTER) |
| 256 | 425 | MDRV_SCREEN_REFRESH_RATE(60) |
| 257 | 426 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 258 | 427 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 259 | 428 | MDRV_SCREEN_SIZE(400, 300) |
| 260 | | MDRV_SCREEN_VISIBLE_AREA(0, 400-1, 0, 300-1) |
| 261 | | MDRV_PALETTE_INIT(magicard) |
| 429 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 256-1) //dynamic resolution,TODO |
| 262 | 430 | |
| 263 | | MDRV_PALETTE_LENGTH(0x20000/2) |
| 264 | | MDRV_GFXDECODE(magicard) |
| 431 | MDRV_PALETTE_LENGTH(0x100) |
| 265 | 432 | |
| 266 | 433 | MDRV_VIDEO_START(magicard) |
| 267 | 434 | MDRV_VIDEO_UPDATE(magicard) |
| 268 | 435 | |
| 269 | 436 | MDRV_MACHINE_RESET(magicard) |
| 270 | 437 | |
| 438 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 439 | MDRV_SOUND_ADD("ym", YM2413, CLOCK_A/12) |
| 440 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 271 | 441 | MACHINE_DRIVER_END |
| 272 | 442 | |
| 273 | 443 | static MACHINE_DRIVER_START( magicrda ) |
| 274 | 444 | MDRV_IMPORT_FROM(magicard) |
| 275 | 445 | MDRV_CPU_MODIFY("main") |
| 276 | 446 | |
| 277 | | MDRV_GFXDECODE(magicrda) |
| 278 | 447 | |
| 279 | 448 | MACHINE_DRIVER_END |
| 280 | 449 | |
| r4207 | r4208 | |
| 287 | 456 | ROM_REGION( 0x80000, "main", 0 ) /* 68000 Code & GFX */ |
| 288 | 457 | ROM_LOAD16_WORD_SWAP( "magicorg.bin", 0x000000, 0x80000, CRC(810edf9f) SHA1(0f1638a789a4be7413aa019b4e198353ba9c12d9) ) |
| 289 | 458 | |
| 290 | | // ROM_REGION( 0x400, "boot_prg", 0 ) |
| 291 | | // ROM_COPY( "main", 0x00000, 0x00000, 0x400) |
| 292 | | |
| 293 | 459 | ROM_REGION( 0x0100, "proms", 0 ) /* Color PROM?? */ |
| 294 | 460 | ROM_LOAD16_WORD_SWAP("mgorigee.bin", 0x0000, 0x0100, CRC(73522889) SHA1(3e10d6c1585c3a63cff717a0b950528d5373c781) ) |
| 295 | 461 | ROM_END |
| r4207 | r4208 | |
| 297 | 463 | ROM_START( magicrda ) |
| 298 | 464 | ROM_REGION( 0x80000, "main", 0 ) /* 68000 Code & GFX */ |
| 299 | 465 | ROM_LOAD16_WORD_SWAP( "mcorigg2.bin", 0x00000, 0x20000, CRC(48546aa9) SHA1(23099a5e4c9f2c3386496f6d7f5bb7d435a6fb16) ) |
| 466 | ROM_RELOAD( 0x40000, 0x20000 ) |
| 300 | 467 | ROM_LOAD16_WORD_SWAP( "mcorigg1.bin", 0x20000, 0x20000, CRC(c9e4a38d) SHA1(812e5826b27c7ad98142a0f52fbdb6b61a2e31d7) ) |
| 468 | ROM_RELOAD( 0x40001, 0x20000 ) |
| 301 | 469 | |
| 302 | | // ROM_REGION( 0x400, "boot_prg", 0 ) |
| 303 | | // ROM_COPY( "main", 0x00000, 0x00000, 0x400) |
| 304 | | |
| 305 | 470 | ROM_REGION( 0x0100, "proms", 0 ) /* Color PROM?? */ |
| 306 | 471 | ROM_LOAD("mgorigee.bin", 0x0000, 0x0100, CRC(73522889) SHA1(3e10d6c1585c3a63cff717a0b950528d5373c781) ) |
| 307 | 472 | ROM_END |
| r4207 | r4208 | |
| 313 | 478 | |
| 314 | 479 | static DRIVER_INIT( magicard ) |
| 315 | 480 | { |
| 316 | | UINT16 *src = (UINT16*)memory_region( machine, "main" ); |
| 317 | | UINT16 *dst = magicram; |
| 318 | | memcpy (dst, src, 0x20000); |
| 481 | //... |
| 319 | 482 | } |
| 320 | 483 | |
| 321 | 484 | /* YEAR NAME PARENT MACHINE INPUT INIT ROT COMPANY FULLNAME FLAGS... */ |
| 322 | 485 | |
| 323 | 486 | GAME( 199?, magicard, 0, magicard, 0, magicard, ROT0, "Impera", "Magic Card (set 1)", GAME_NO_SOUND | GAME_NOT_WORKING ) |
| 324 | 487 | GAME( 199?, magicrda, 0, magicrda, 0, magicard, ROT0, "Impera", "Magic Card (set 2)", GAME_NO_SOUND | GAME_NOT_WORKING ) |
| 488 | |
| 489 | /*Below here there are CD-I bios defines,to be removed in the end*/ |
| 490 | /* |
| 491 | ROM_START( mcdi200 ) |
| 492 | ROM_REGION( 0x80000, "main", 0 ) |
| 493 | ROM_LOAD16_WORD( "mgvx200.rom", 0x000000, 0x80000, CRC(40c4e6b9) SHA1(d961de803c89b3d1902d656ceb9ce7c02dccb40a) ) |
| 494 | ROM_END |
| 495 | |
| 496 | ROM_START( pcdi490 ) |
| 497 | ROM_REGION( 0x80000, "main", 0 ) |
| 498 | ROM_LOAD16_WORD( "phlp490.rom", 0x000000, 0x80000, CRC(e115f45b) SHA1(f71be031a5dfa837de225081b2ddc8dcb74a0552) ) |
| 499 | ROM_END |
| 500 | |
| 501 | ROM_START( pcdi910m ) |
| 502 | ROM_REGION( 0x80000, "main", 0 ) |
| 503 | ROM_LOAD16_WORD( "cdi910.rom", 0x000000, 0x80000, CRC(8ee44ed6) SHA1(3fcdfa96f862b0cb7603fb6c2af84cac59527b05) ) |
| 504 | ROM_END |
| 505 | |
| 506 | GAME( 199?, mcdi200, 0, magicard, 0, magicard, ROT0, "Philips", "Magnavox CD-I 200 BIOS", GAME_NO_SOUND | GAME_NOT_WORKING ) |
| 507 | GAME( 199?, pcdi490, 0, magicard, 0, magicard, ROT0, "Philips", "Philips CD-I 490 BIOS", GAME_NO_SOUND | GAME_NOT_WORKING ) |
| 508 | GAME( 199?, pcdi910m,0, magicard, 0, magicard, ROT0, "Philips", "Philips CD-I 910 (Memorex-Tandy) BIOS", GAME_NO_SOUND | GAME_NOT_WORKING ) |
| 509 | */ |
src/mame/drivers/system1.c
| r4207 | r4208 | |
| 15 | 15 | TODO: - background is misplaced in wbmlju |
| 16 | 16 | - sprites stick in Pitfall II |
| 17 | 17 | - sprite priorities are probably wrong |
| 18 | | - remove patch in noboranb if possible and fully understand the |
| 18 | - remove patch in nobb if possible and fully understand the |
| 19 | 19 | ports involved in the protection |
| 20 | 20 | |
| 21 | 21 | ******************************************************************************/ |
| r4207 | r4208 | |
| 48 | 48 | memory_configure_bank(machine, 1, 0, 4, memory_region(machine, "main") + 0x10000, 0x4000); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | | // Noboranka: there seems to be some protection? involving reads / writes to ports in the 2x region |
| 51 | // nobb - these ports are used for some kind of replacement protection system used by the bootleg |
| 52 | static int nobb_inport16_step,nobb_inport17_step,nobb_inport23_step; |
| 52 | 53 | |
| 53 | | static int inport16_step,inport17_step,inport23_step; |
| 54 | | |
| 55 | | static READ8_HANDLER( inport16_r ) |
| 54 | static READ8_HANDLER( nobb_inport16_r ) |
| 56 | 55 | { |
| 57 | | // logerror("IN $16 : pc = %04x - data = %02x\n",cpu_get_pc(space->cpu),inport16_step); |
| 58 | | return(inport16_step); |
| 56 | // logerror("IN $16 : pc = %04x - data = %02x\n",cpu_get_pc(space->cpu),nobb_inport16_step); |
| 57 | return(nobb_inport16_step); |
| 59 | 58 | } |
| 60 | 59 | |
| 61 | | static READ8_HANDLER( inport1c_r ) |
| 60 | static READ8_HANDLER( nobb_inport1c_r ) |
| 62 | 61 | { |
| 63 | 62 | // logerror("IN $1c : pc = %04x - data = 0x80\n",cpu_get_pc(space->cpu)); |
| 64 | 63 | return(0x80); // infinite loop (at 0x0fb3) until bit 7 is set |
| 65 | 64 | } |
| 66 | 65 | |
| 67 | | static READ8_HANDLER( inport22_r ) |
| 66 | static READ8_HANDLER( nobb_inport22_r ) |
| 68 | 67 | { |
| 69 | | // logerror("IN $22 : pc = %04x - data = %02x\n",cpu_get_pc(space->cpu),inport17_step); |
| 70 | | return(inport17_step); |
| 68 | // logerror("IN $22 : pc = %04x - data = %02x\n",cpu_get_pc(space->cpu),nobb_inport17_step); |
| 69 | return(nobb_inport17_step); |
| 71 | 70 | } |
| 72 | 71 | |
| 73 | | static READ8_HANDLER( inport23_r ) |
| 72 | static READ8_HANDLER( nobb_inport23_r ) |
| 74 | 73 | { |
| 75 | | // logerror("IN $23 : pc = %04x - step = %02x\n",cpu_get_pc(space->cpu),inport23_step); |
| 76 | | return(inport23_step); |
| 74 | // logerror("IN $23 : pc = %04x - step = %02x\n",cpu_get_pc(space->cpu),nobb_inport23_step); |
| 75 | return(nobb_inport23_step); |
| 77 | 76 | } |
| 78 | 77 | |
| 79 | | static WRITE8_HANDLER( outport16_w ) |
| 78 | static WRITE8_HANDLER( nobb_outport16_w ) |
| 80 | 79 | { |
| 81 | 80 | // logerror("OUT $16 : pc = %04x - data = %02x\n",cpu_get_pc(space->cpu),data); |
| 82 | | inport16_step = data; |
| 81 | nobb_inport16_step = data; |
| 83 | 82 | } |
| 84 | 83 | |
| 85 | | static WRITE8_HANDLER( outport17_w ) |
| 84 | static WRITE8_HANDLER( nobb_outport17_w ) |
| 86 | 85 | { |
| 87 | 86 | // logerror("OUT $17 : pc = %04x - data = %02x\n",cpu_get_pc(space->cpu),data); |
| 88 | | inport17_step = data; |
| 87 | nobb_inport17_step = data; |
| 89 | 88 | } |
| 90 | 89 | |
| 91 | | static WRITE8_HANDLER( outport24_w ) |
| 90 | static WRITE8_HANDLER( nobb_outport24_w ) |
| 92 | 91 | { |
| 93 | 92 | // logerror("OUT $24 : pc = %04x - data = %02x\n",cpu_get_pc(space->cpu),data); |
| 94 | | inport23_step = data; |
| 93 | nobb_inport23_step = data; |
| 95 | 94 | } |
| 96 | 95 | |
| 97 | 96 | static WRITE8_HANDLER( hvymetal_videomode_w ) |
| r4207 | r4208 | |
| 325 | 324 | AM_RANGE(0x1d, 0x1d) AM_READ_PORT("GUNY") |
| 326 | 325 | ADDRESS_MAP_END |
| 327 | 326 | |
| 328 | | static ADDRESS_MAP_START( nobo_io_map, ADDRESS_SPACE_IO, 8 ) |
| 327 | static ADDRESS_MAP_START( nob_io_map, ADDRESS_SPACE_IO, 8 ) |
| 329 | 328 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 330 | 329 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") |
| 331 | 330 | AM_RANGE(0x04, 0x04) AM_READ_PORT("P2") |
| r4207 | r4208 | |
| 334 | 333 | AM_RANGE(0x0d, 0x0d) AM_READ_PORT("DSW1") /* DIP1 some games read it from here... */ |
| 335 | 334 | AM_RANGE(0x14, 0x14) AM_WRITE(system1_soundport_w) /* sound commands ? */ |
| 336 | 335 | AM_RANGE(0x15, 0x15) AM_READWRITE(system1_videomode_r, brain_videomode_w) /* video control + bank switching */ |
| 337 | | AM_RANGE(0x16, 0x16) AM_READWRITE(inport16_r, outport16_w) /* Used - check code at 0x05cb */ |
| 338 | | AM_RANGE(0x17, 0x17) AM_WRITE(outport17_w) /* Not handled in emul. of other SS1/2 games */ |
| 339 | | AM_RANGE(0x1c, 0x1c) AM_READ(inport1c_r) /* Shouldn't be called ! */ |
| 340 | | AM_RANGE(0x22, 0x22) AM_READ(inport22_r) /* Used - check code at 0xb253 */ |
| 341 | | AM_RANGE(0x23, 0x23) AM_READ(inport23_r) /* Used - check code at 0xb275 and 0xb283 */ |
| 342 | | AM_RANGE(0x24, 0x24) AM_WRITE(outport24_w) /* Used - check code at 0xb24e and 0xb307 */ |
| 343 | 336 | ADDRESS_MAP_END |
| 344 | 337 | |
| 338 | static ADDRESS_MAP_START( nobb_io_map, ADDRESS_SPACE_IO, 8 ) |
| 339 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 340 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") |
| 341 | AM_RANGE(0x04, 0x04) AM_READ_PORT("P2") |
| 342 | AM_RANGE(0x08, 0x08) AM_READ_PORT("SYSTEM") |
| 343 | AM_RANGE(0x0c, 0x0c) AM_READ_PORT("DSW2") /* DIP2 */ |
| 344 | AM_RANGE(0x0d, 0x0d) AM_READ_PORT("DSW1") /* DIP1 some games read it from here... */ |
| 345 | AM_RANGE(0x14, 0x14) AM_WRITE(system1_soundport_w) /* sound commands ? */ |
| 346 | AM_RANGE(0x15, 0x15) AM_READWRITE(system1_videomode_r, brain_videomode_w) /* video control + bank switching */ |
| 347 | |
| 348 | /* protection on the bootleg */ |
| 349 | AM_RANGE(0x16, 0x16) AM_READWRITE(nobb_inport16_r, nobb_outport16_w) /* Used - check code at 0x05cb */ |
| 350 | AM_RANGE(0x17, 0x17) AM_WRITE(nobb_outport17_w) /* Not handled in emul. of other SS1/2 games */ |
| 351 | AM_RANGE(0x1c, 0x1c) AM_READ(nobb_inport1c_r) /* Shouldn't be called ! */ |
| 352 | AM_RANGE(0x22, 0x22) AM_READ(nobb_inport22_r) /* Used - check code at 0xb253 */ |
| 353 | AM_RANGE(0x23, 0x23) AM_READ(nobb_inport23_r) /* Used - check code at 0xb275 and 0xb283 */ |
| 354 | AM_RANGE(0x24, 0x24) AM_WRITE(nobb_outport24_w) /* Used - check code at 0xb24e and 0xb307 */ |
| 355 | ADDRESS_MAP_END |
| 356 | |
| 345 | 357 | static ADDRESS_MAP_START( hvymetal_io_map, ADDRESS_SPACE_IO, 8 ) |
| 346 | 358 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 347 | 359 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") |
| r4207 | r4208 | |
| 1157 | 1169 | PORT_DIPSETTING( 0x00, "Endless Game" ) |
| 1158 | 1170 | INPUT_PORTS_END |
| 1159 | 1171 | |
| 1160 | | static INPUT_PORTS_START( noboranb ) |
| 1172 | static INPUT_PORTS_START( nob ) |
| 1161 | 1173 | PORT_INCLUDE( system1_generic ) |
| 1162 | 1174 | |
| 1163 | 1175 | PORT_MODIFY("P1") |
| r4207 | r4208 | |
| 1731 | 1743 | |
| 1732 | 1744 | MACHINE_DRIVER_END |
| 1733 | 1745 | |
| 1746 | static MACHINE_DRIVER_START( nob ) |
| 1734 | 1747 | |
| 1735 | | static MACHINE_DRIVER_START( noboranb ) |
| 1748 | /* basic machine hardware */ |
| 1749 | MDRV_IMPORT_FROM( system1 ) |
| 1750 | MDRV_CPU_REPLACE( "main", Z80, 4000000) |
| 1751 | MDRV_CPU_PROGRAM_MAP(brain_readmem,nobo_writemem) |
| 1752 | MDRV_CPU_IO_MAP(nob_io_map,0) |
| 1736 | 1753 | |
| 1754 | MDRV_MACHINE_RESET(system1_banked) |
| 1755 | |
| 1756 | /* video hardware */ |
| 1757 | MDRV_SCREEN_MODIFY("main") |
| 1758 | MDRV_SCREEN_VISIBLE_AREA(1*8, 31*8-1, 0*8, 28*8-1) |
| 1759 | |
| 1760 | MACHINE_DRIVER_END |
| 1761 | |
| 1762 | static MACHINE_DRIVER_START( nobb ) |
| 1763 | |
| 1737 | 1764 | /* basic machine hardware */ |
| 1738 | 1765 | MDRV_IMPORT_FROM( system1 ) |
| 1739 | | MDRV_CPU_REPLACE( "main", Z80, 8000000) /* ? guess ? */ |
| 1766 | MDRV_CPU_REPLACE( "main", Z80, 4000000) |
| 1740 | 1767 | MDRV_CPU_PROGRAM_MAP(brain_readmem,nobo_writemem) |
| 1741 | | MDRV_CPU_IO_MAP(nobo_io_map,0) |
| 1768 | MDRV_CPU_IO_MAP(nobb_io_map,0) |
| 1742 | 1769 | |
| 1743 | 1770 | MDRV_MACHINE_RESET(system1_banked) |
| 1744 | 1771 | |
| r4207 | r4208 | |
| 3909 | 3936 | ROM_LOAD( "pal20r4.ic69.4c", 0x1000, 0x0144, NO_DUMP ) /* PAL is read protected */ |
| 3910 | 3937 | ROM_END |
| 3911 | 3938 | |
| 3912 | | ROM_START( noboranb ) |
| 3939 | /* |
| 3940 | |
| 3941 | Noboranka |
| 3942 | Data East, 1986 |
| 3943 | |
| 3944 | PCB Layout |
| 3945 | ---------- |
| 3946 | |
| 3947 | Top |
| 3948 | |
| 3949 | DE-0222-2 /-Sub PCB on top |
| 3950 | |-------------------------------|--/-----------| |
| 3951 | | DSW2 PK-2 | | |
| 3952 | | DSW1 | | |
| 3953 | | 6116 | |
| 3954 | | 6116 | |
| 3955 | | 20MHz | | |
| 3956 | |J DM02 | |
| 3957 | |A DM01-------------| |
| 3958 | |M 8255 DM00 | |
| 3959 | |M DM03 Z80A | |
| 3960 | |A 6116 | |
| 3961 | | | |
| 3962 | | DC-11| |
| 3963 | | 76489 | |
| 3964 | | 76489 *DM-12.IC3 PK-1 | |
| 3965 | |MB3730 VOL 8MHz *DM-11 6116 | |
| 3966 | |----------------------------------------------| |
| 3967 | Notes: |
| 3968 | * - These parts below PCB on a small sub-board DE-0271-0 |
| 3969 | PK1/PK2/DM-11 - PALs |
| 3970 | DC-11/DM-12 - 82S129 PROMs |
| 3971 | Z80A clock - 4.00MHz [20/5] |
| 3972 | 76489 clock - 2.00MHz [8/4] |
| 3973 | VSync - 60.095Hz |
| 3974 | HSync - 15.444kHz |
| 3975 | |
| 3976 | |
| 3977 | Sub PCB |
| 3978 | |
| 3979 | DE-0272-0 |
| 3980 | |---------------| |
| 3981 | | | |
| 3982 | | | |
| 3983 | | 8751H | |
| 3984 | | | |
| 3985 | |8MHz | |
| 3986 | | | |
| 3987 | |---------------| |
| 3988 | 8751 clock - 8.000MHz, labelled 'DM' |
| 3989 | |
| 3990 | |
| 3991 | Bottom |
| 3992 | |
| 3993 | DE-0223-2 |
| 3994 | |----------------------------------------------| |
| 3995 | | DECO_291-0 Z80B | |
| 3996 | | | |
| 3997 | | PK-3 TC15G008AP | |
| 3998 | | CXK5864| |
| 3999 | | PK-4 DM04 TMM2018 | |
| 4000 | | DM08 | |
| 4001 | | DM05 TMM2018 | |
| 4002 | | DM09 | |
| 4003 | | DM06 | |
| 4004 | | DM10 | |
| 4005 | | DM07 | |
| 4006 | | 8147 8147 | |
| 4007 | | | |
| 4008 | | CXK5814 2148 | |
| 4009 | | CXK5814 2148 | |
| 4010 | |----------------------------------------------| |
| 4011 | Notes: |
| 4012 | PK3/PK4 - PALS |
| 4013 | DECO_291-0 - Custom DIP28 |
| 4014 | TC15G008AP - Gate Array DIP48 |
| 4015 | Z80B clock - 4.00MHz [20/5] |
| 4016 | |
| 4017 | */ |
| 4018 | |
| 4019 | ROM_START( nob ) |
| 3913 | 4020 | ROM_REGION( 0x20000, "main", 0 ) |
| 4021 | ROM_LOAD( "dm08.1f", 0x00000, 0x8000, CRC(98d602d6) SHA1(a0f1e6d243f2e07703bb641434dce46d0ddc15ae) ) |
| 4022 | ROM_LOAD( "dm10.1k", 0x10000, 0x8000, CRC(e7c06663) SHA1(8ae42b0875afe60ef672f2285aeb72da1c7e167b) ) |
| 4023 | ROM_LOAD( "dm09.1h", 0x18000, 0x8000, CRC(dc4c872f) SHA1(aab85203cfd2463ffddfd48e87733fb8d6d8bcf6) ) |
| 4024 | |
| 4025 | ROM_REGION( 0x8000, "mcu", 0 ) |
| 4026 | ROM_LOAD( "8751.mcu", 0x00000, 0x8000, NO_DUMP ) |
| 4027 | |
| 4028 | ROM_REGION( 0x10000, "sound", 0 ) |
| 4029 | ROM_LOAD( "dm03.9h", 0x0000, 0x4000, CRC(415adf76) SHA1(fbd6f8921aa3246702983ba81fa9ae53fa10c19d) ) |
| 4030 | |
| 4031 | ROM_REGION( 0x18000, "gfx1", ROMREGION_DISPOSE ) |
| 4032 | ROM_LOAD( "dm02.13b", 0x08000, 0x8000, CRC(f12df039) SHA1(159de205f77fd74da30717054e6ddda2c0bb63d0) ) |
| 4033 | ROM_LOAD( "dm01.12b", 0x00000, 0x8000, CRC(446fbcdd) SHA1(e3c8364eccfa6c8af7a57b599238b0e4ebe8cc59) ) |
| 4034 | ROM_LOAD( "dm00.10b", 0x10000, 0x8000, CRC(35f396df) SHA1(ebf0a252513ae2b31ef012ac71d64fb20b8725cc) ) |
| 4035 | |
| 4036 | ROM_REGION( 0x20000, "gfx2", 0 ) /* 128k for sprites data */ |
| 4037 | ROM_LOAD( "dm04.5f", 0x00000, 0x8000, CRC(2442b86d) SHA1(2eed80e1ff9cd782990142d0d73ca4fa13db4731) ) |
| 4038 | ROM_LOAD( "dm06.5k", 0x08000, 0x8000, CRC(e33743a6) SHA1(56dce565523f19e673c9272992030386ca648e41) ) |
| 4039 | ROM_LOAD( "dm05.5h", 0x10000, 0x8000, CRC(7fbba01d) SHA1(ded22806ae0d6642b45cd33c0ceab67390a6e319) ) |
| 4040 | ROM_LOAD( "dm07.5l", 0x18000, 0x8000, CRC(85e7a29f) SHA1(0ca77c66599650f157450d703682ec114f0453cf) ) |
| 4041 | |
| 4042 | ROM_REGION( 0x0400, "proms", 0 ) |
| 4043 | /* the first 2 proms were missing from the dump, but are clearly needed... */ |
| 4044 | ROM_LOAD( "nobo_pr.16d", 0x0000, 0x0100, CRC(95010ac2) SHA1(deaf84b408cd1f3396eb851ef04cc1654d5e9a46) ) /* palette red component */ |
| 4045 | ROM_LOAD( "nobo_pr.15d", 0x0100, 0x0100, CRC(c55aac0c) SHA1(0f7f2d383a90e9f7f319626b4d5565805f44a1f9) ) /* palette green component */ |
| 4046 | ROM_LOAD( "dm-12.ic3", 0x0200, 0x0100, CRC(de394cee) SHA1(511c53f22459e5e238b48685f85b10f5e15f2ac1) ) /* palette blue component */ |
| 4047 | ROM_LOAD( "dc-11.6a", 0x0300, 0x0100, CRC(648350b8) SHA1(c7986aa9127ef5b50b845434cb4e81dff9861cd2) ) /* timing? (not used) */ |
| 4048 | ROM_END |
| 4049 | |
| 4050 | /* the bootleg has different protection.. */ |
| 4051 | ROM_START( nobb ) |
| 4052 | ROM_REGION( 0x20000, "main", 0 ) |
| 3914 | 4053 | ROM_LOAD( "nobo-t.bin", 0x00000, 0x8000, CRC(176fd168) SHA1(f262521f07e5340f175019e2a06a54120a4aa3b7) ) |
| 3915 | 4054 | ROM_LOAD( "nobo-r.bin", 0x10000, 0x8000, CRC(d61cf3c9) SHA1(0f80011d713c51e67853810813ebba579ade0303) ) |
| 3916 | 4055 | ROM_LOAD( "nobo-s.bin", 0x18000, 0x8000, CRC(b0e7697f) SHA1(ad5394ca629152a8c73fb85d3fce8ea620ae6ff1) ) |
| r4207 | r4208 | |
| 4048 | 4187 | myheroj_decode(machine, "main"); |
| 4049 | 4188 | } |
| 4050 | 4189 | |
| 4051 | | static DRIVER_INIT( noboranb ) |
| 4190 | static DRIVER_INIT( nobb ) |
| 4052 | 4191 | { |
| 4053 | 4192 | /* Patch to get PRG ROMS ('T', 'R' and 'S) status as "GOOD" in the "test mode" */ |
| 4054 | 4193 | /* not really needed */ |
| r4207 | r4208 | |
| 4148 | 4287 | GAME( 1986, wbdeluxe, wboy, system1, wbdeluxe, 0, ROT0, "Sega (Escape license)", "Wonder Boy Deluxe", GAME_SUPPORTS_SAVE ) |
| 4149 | 4288 | GAME( 1986, gardia, 0, brain, gardia, gardia, ROT270, "Sega / Coreland", "Gardia (317-0006)", GAME_NO_COCKTAIL | GAME_SUPPORTS_SAVE) |
| 4150 | 4289 | GAME( 1986, gardiab, gardia, brain, gardia, gardiab, ROT270, "bootleg", "Gardia (317-0007?, bootleg)", GAME_NOT_WORKING | GAME_NO_COCKTAIL | GAME_SUPPORTS_SAVE ) |
| 4151 | | GAME( 1986, noboranb, 0, noboranb, noboranb, noboranb, ROT270, "bootleg", "Noboranka (Japan)", GAME_SUPPORTS_SAVE ) |
| 4290 | GAME( 1986, nob, nobb, nob, nob, 0, ROT270, "Data East Corporation", "Noboranka (Japan)", GAME_NOT_WORKING ) |
| 4291 | GAME( 1986, nobb, 0, nobb, nob, nobb, ROT270, "bootleg", "Noboranka (Japan, bootleg)", GAME_SUPPORTS_SAVE ) |
| 4152 | 4292 | GAME( 1987, blockgal, 0, system1, blockgal, blockgal, ROT90, "Sega / Vic Tokai", "Block Gal (MC-8123B, 317-0029)", GAME_NO_COCKTAIL | GAME_SUPPORTS_SAVE) |
| 4153 | 4293 | GAME( 1987, blckgalb, blockgal, blckgalb, blockgal, bootleg, ROT90, "bootleg", "Block Gal (bootleg)", GAME_NO_COCKTAIL | GAME_SUPPORTS_SAVE ) |
| 4154 | 4294 | GAME( 1987, tokisens, 0, wbml, tokisens, 0, ROT90, "Sega", "Toki no Senshi - Chrono Soldier", GAME_NO_COCKTAIL | GAME_SUPPORTS_SAVE ) |
src/mame/drivers/suprnova.c
| r4207 | r4208 | |
| 783 | 783 | AM_RANGE(0x02000000, 0x02003fff) AM_READ(SMH_RAM) /* 'spc' RAM */ |
| 784 | 784 | AM_RANGE(0x02100000, 0x0210003f) AM_READ(SMH_RAM) /* 'spc' */ |
| 785 | 785 | AM_RANGE(0x02400000, 0x0240007f) AM_READ(SMH_RAM) /* 'v3' */ |
| 786 | | AM_RANGE(0x02500000, 0x02507fff) AM_READ(SMH_RAM) /* 'v3tbl' RAM */ |
| 787 | | AM_RANGE(0x02600000, 0x02607fff) AM_READ(SMH_RAM) /* 'v3slc' RAM */ |
| 786 | AM_RANGE(0x02500000, 0x02507fff) AM_READ(SMH_RAM) /* 'v3tbl' RAM */ |
| 787 | AM_RANGE(0x02600000, 0x02607fff) AM_READ(SMH_RAM) /* 'v3slc' RAM */ |
| 788 | 788 | AM_RANGE(0x02a00000, 0x02a0001f) AM_READ(SMH_RAM) /* skns_pal_regs */ |
| 789 | | AM_RANGE(0x02a40000, 0x02a5ffff) AM_READ(SMH_RAM) /* 'palette' RAM */ |
| 789 | AM_RANGE(0x02a40000, 0x02a5ffff) AM_READ(SMH_RAM) /* 'palette' RAM */ |
| 790 | 790 | AM_RANGE(0x02f00000, 0x02f000ff) AM_READ(skns_hit_r) /* hit */ |
| 791 | 791 | AM_RANGE(0x04000000, 0x041fffff) AM_READ(SMH_BANK1) /* GAME ROM */ |
| 792 | 792 | AM_RANGE(0x04800000, 0x0483ffff) AM_READ(SMH_RAM) /* 'v3t' RAM */ |
| r4207 | r4208 | |
| 1095 | 1095 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1096 | 1096 | |
| 1097 | 1097 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1098 | | ROM_LOAD16_BYTE( "gp4j1.u10", 0x000000, 0x080000, CRC(919a3893) SHA1(83b89a9e628a1f46f8a56ea512fc8ad641d5e239) ) |
| 1099 | | ROM_LOAD16_BYTE( "gp4j1.u08", 0x000001, 0x080000, CRC(94cb1fb7) SHA1(ac90103dd43cdce6a287ffc13631c1de477a9a71) ) |
| 1098 | ROM_LOAD16_BYTE( "gp4j1.u10", 0x000000, 0x080000, CRC(919a3893) SHA1(83b89a9e628a1f46f8a56ea512fc8ad641d5e239) ) |
| 1099 | ROM_LOAD16_BYTE( "gp4j1.u8", 0x000001, 0x080000, CRC(94cb1fb7) SHA1(ac90103dd43cdce6a287ffc13631c1de477a9a71) ) |
| 1100 | 1100 | |
| 1101 | 1101 | ROM_REGION( 0x400000, "gfx1", 0 ) |
| 1102 | | ROM_LOAD( "gp410000.u24", 0x000000, 0x200000, CRC(1df61f01) SHA1(a9e95bbb3013e8f2fd01243b1b392ff07b4f7d02) ) |
| 1103 | | ROM_LOAD( "gp410100.u20", 0x200000, 0x100000, CRC(8e2c9349) SHA1(a58fa9bcc9684ed4558e3395d592b64a1978a902) ) |
| 1102 | ROM_LOAD( "gp410000.u24", 0x000000, 0x200000, CRC(1df61f01) SHA1(a9e95bbb3013e8f2fd01243b1b392ff07b4f7d02) ) |
| 1103 | ROM_LOAD( "gp410100.u20", 0x200000, 0x100000, CRC(8e2c9349) SHA1(a58fa9bcc9684ed4558e3395d592b64a1978a902) ) |
| 1104 | 1104 | |
| 1105 | 1105 | ROM_REGION( 0x400000, "gfx2", ROMREGION_DISPOSE ) |
| 1106 | | ROM_LOAD( "gp420000.u16", 0x000000, 0x200000, CRC(f0781376) SHA1(aeab9553a9af922524e528eb2d019cf36b6e2094) ) |
| 1107 | | ROM_LOAD( "gp420100.u18", 0x200000, 0x200000, CRC(10c4b183) SHA1(80e05f3932495ad4fc9bf928fa66e6d2931bbb06) ) |
| 1106 | ROM_LOAD( "gp420000.u16", 0x000000, 0x200000, CRC(f0781376) SHA1(aeab9553a9af922524e528eb2d019cf36b6e2094) ) |
| 1107 | ROM_LOAD( "gp420100.u18", 0x200000, 0x200000, CRC(10c4b183) SHA1(80e05f3932495ad4fc9bf928fa66e6d2931bbb06) ) |
| 1108 | 1108 | |
| 1109 | 1109 | ROM_REGION( 0x800000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1110 | 1110 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1111 | 1111 | /* 0x040000 - 0x3fffff empty? */ |
| 1112 | 1112 | |
| 1113 | 1113 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1114 | | ROM_LOAD( "gp430000.u4", 0x000000, 0x200000, CRC(8374663a) SHA1(095512564f4de25dc3752d9fbd254b9dabd16d1b) ) |
| 1114 | ROM_LOAD( "gp430000.u4", 0x000000, 0x200000, CRC(8374663a) SHA1(095512564f4de25dc3752d9fbd254b9dabd16d1b) ) |
| 1115 | 1115 | ROM_END |
| 1116 | 1116 | |
| 1117 | 1117 | ROM_START( galpanis ) |
| r4207 | r4208 | |
| 1119 | 1119 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1120 | 1120 | |
| 1121 | 1121 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1122 | | ROM_LOAD16_BYTE( "gps-e.u10", 0x000000, 0x100000, CRC(c6938c3f) SHA1(05853ee6a44a55702788a75580b04a4be45e9bcb) ) |
| 1123 | | ROM_LOAD16_BYTE( "gps-o.u8", 0x000001, 0x100000, CRC(e764177a) SHA1(3a1333eb1022ed1a275b9c3d44b5f4ab81618fb6) ) |
| 1122 | ROM_LOAD16_BYTE( "gps-e.u10", 0x000000, 0x100000, CRC(c6938c3f) SHA1(05853ee6a44a55702788a75580b04a4be45e9bcb) ) |
| 1123 | ROM_LOAD16_BYTE( "gps-o.u8", 0x000001, 0x100000, CRC(e764177a) SHA1(3a1333eb1022ed1a275b9c3d44b5f4ab81618fb6) ) |
| 1124 | 1124 | |
| 1125 | 1125 | ROM_REGION( 0x1000000, "gfx1", 0 ) |
| 1126 | | ROM_LOAD( "gps10000.u24", 0x000000, 0x400000, CRC(a1a7acf2) SHA1(52c86ae907f0c0236808c19f652955b09e90ec5a) ) |
| 1127 | | ROM_LOAD( "gps10100.u20", 0x400000, 0x400000, CRC(49f764b6) SHA1(9f4289858c3dac625ef623cc381a47b45aa5d8e2) ) |
| 1128 | | ROM_LOAD( "gps10200.u17", 0x800000, 0x400000, CRC(51980272) SHA1(6c0706d913b33995579aaf0688c4bf26d6d35a78) ) |
| 1126 | ROM_LOAD( "gps10000.u24", 0x000000, 0x400000, CRC(a1a7acf2) SHA1(52c86ae907f0c0236808c19f652955b09e90ec5a) ) |
| 1127 | ROM_LOAD( "gps10100.u20", 0x400000, 0x400000, CRC(49f764b6) SHA1(9f4289858c3dac625ef623cc381a47b45aa5d8e2) ) |
| 1128 | ROM_LOAD( "gps10200.u17", 0x800000, 0x400000, CRC(51980272) SHA1(6c0706d913b33995579aaf0688c4bf26d6d35a78) ) |
| 1129 | 1129 | |
| 1130 | 1130 | ROM_REGION( 0x800000, "gfx2", ROMREGION_DISPOSE ) |
| 1131 | | ROM_LOAD( "gps20000.u16", 0x000000, 0x400000, CRC(c146a09e) SHA1(5af5a7b9d9a55ec7aba3fd85a3a0211b92b1b84f) ) |
| 1132 | | ROM_LOAD( "gps20100.u13", 0x400000, 0x400000, CRC(9dfa2dc6) SHA1(a058c42fd76c23c0e5c8c11f5617fd29e056be7d) ) |
| 1131 | ROM_LOAD( "gps20000.u16", 0x000000, 0x400000, CRC(c146a09e) SHA1(5af5a7b9d9a55ec7aba3fd85a3a0211b92b1b84f) ) |
| 1132 | ROM_LOAD( "gps20100.u13", 0x400000, 0x400000, CRC(9dfa2dc6) SHA1(a058c42fd76c23c0e5c8c11f5617fd29e056be7d) ) |
| 1133 | 1133 | |
| 1134 | 1134 | ROM_REGION( 0x800000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1135 | 1135 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1136 | 1136 | /* 0x040000 - 0x3fffff empty? */ |
| 1137 | 1137 | |
| 1138 | 1138 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1139 | | ROM_LOAD( "gps30000.u4", 0x000000, 0x400000, CRC(9e4da8e3) SHA1(6506d9300a442883357003a05fd2c78d364c35bb) ) |
| 1139 | ROM_LOAD( "gps30000.u4", 0x000000, 0x400000, CRC(9e4da8e3) SHA1(6506d9300a442883357003a05fd2c78d364c35bb) ) |
| 1140 | 1140 | ROM_END |
| 1141 | 1141 | |
| 1142 | 1142 | ROM_START( galpans2 ) |
| r4207 | r4208 | |
| 1144 | 1144 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1145 | 1145 | |
| 1146 | 1146 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1147 | | ROM_LOAD16_BYTE( "gps2j.u6", 0x000000, 0x100000, CRC(6e74005b) SHA1(a57e8307062e262c2e7a84e2c58f7dfe03fc0f78) ) |
| 1148 | | ROM_LOAD16_BYTE( "gps2j.u4", 0x000001, 0x100000, CRC(9b4b2304) SHA1(0b481f4d71d92bf23f38ed22979efd4409004857) ) |
| 1147 | ROM_LOAD16_BYTE( "gps2j.u6", 0x000000, 0x100000, CRC(6e74005b) SHA1(a57e8307062e262c2e7a84e2c58f7dfe03fc0f78) ) |
| 1148 | ROM_LOAD16_BYTE( "gps2j.u4", 0x000001, 0x100000, CRC(9b4b2304) SHA1(0b481f4d71d92bf23f38ed22979efd4409004857) ) |
| 1149 | 1149 | |
| 1150 | 1150 | ROM_REGION( 0x1000000, "gfx1", 0 ) |
| 1151 | | ROM_LOAD( "gs210000.u21", 0x000000, 0x400000, CRC(294b2f14) SHA1(90cbd0acdaa2d89d208c28aae33ab57c03624089) ) |
| 1152 | | ROM_LOAD( "gs210100.u20", 0x400000, 0x400000, CRC(f75c5a9a) SHA1(3919643cee6c88185a1aa3c58c5bc80599bf734e) ) |
| 1153 | | ROM_LOAD( "gs210200.u8", 0x800000, 0x400000, CRC(25b4f56b) SHA1(f9a33d5ed54a04ecece3035e75508d191bbe74b1) ) |
| 1154 | | ROM_LOAD( "gs210300.u32", 0xc00000, 0x400000, CRC(db6d4424) SHA1(0a88dafd0ee2490ff2ef39ce8eb1931c41bdda42) ) |
| 1151 | ROM_LOAD( "gs210000.u21", 0x000000, 0x400000, CRC(294b2f14) SHA1(90cbd0acdaa2d89d208c28aae33ab57c03624089) ) |
| 1152 | ROM_LOAD( "gs210100.u20", 0x400000, 0x400000, CRC(f75c5a9a) SHA1(3919643cee6c88185a1aa3c58c5bc80599bf734e) ) |
| 1153 | ROM_LOAD( "gs210200.u8", 0x800000, 0x400000, CRC(25b4f56b) SHA1(f9a33d5ed54a04ecece3035e75508d191bbe74b1) ) |
| 1154 | ROM_LOAD( "gs210300.u32", 0xc00000, 0x400000, CRC(db6d4424) SHA1(0a88dafd0ee2490ff2ef39ce8eb1931c41bdda42) ) |
| 1155 | 1155 | |
| 1156 | 1156 | ROM_REGION( 0x800000, "gfx2", ROMREGION_DISPOSE ) |
| 1157 | | ROM_LOAD( "gs220000.u17", 0x000000, 0x400000, CRC(5caae1c0) SHA1(8f77e4cf018d7290b2d804cbff9fccf0bf4d2404) ) |
| 1158 | | ROM_LOAD( "gs220100.u9", 0x400000, 0x400000, CRC(8d51f197) SHA1(19d2afab823ea179918e7bcbf4df2283e77570f0) ) |
| 1157 | ROM_LOAD( "gs220000.u17", 0x000000, 0x400000, CRC(5caae1c0) SHA1(8f77e4cf018d7290b2d804cbff9fccf0bf4d2404) ) |
| 1158 | ROM_LOAD( "gs220100.u9", 0x400000, 0x400000, CRC(8d51f197) SHA1(19d2afab823ea179918e7bcbf4df2283e77570f0) ) |
| 1159 | 1159 | |
| 1160 | 1160 | ROM_REGION( 0x800000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1161 | 1161 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1162 | 1162 | /* 0x040000 - 0x3fffff empty? */ |
| 1163 | | ROM_LOAD( "gs221000.u3", 0x400000, 0x400000, CRC(58800a18) SHA1(5e6d55ecd12275662d6f59559e137b759f23fff6) ) |
| 1163 | ROM_LOAD( "gs221000.u3", 0x400000, 0x400000, CRC(58800a18) SHA1(5e6d55ecd12275662d6f59559e137b759f23fff6) ) |
| 1164 | 1164 | |
| 1165 | 1165 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1166 | | ROM_LOAD( "gs230000.u1", 0x000000, 0x400000, CRC(0348e8e1) SHA1(8a21c7e5cea0bc08a2595213d689c58c0251fdb5) ) |
| 1166 | ROM_LOAD( "gs230000.u1", 0x000000, 0x400000, CRC(0348e8e1) SHA1(8a21c7e5cea0bc08a2595213d689c58c0251fdb5) ) |
| 1167 | 1167 | ROM_END |
| 1168 | 1168 | |
| 1169 | 1169 | /* |
| r4207 | r4208 | |
| 1189 | 1189 | ROM_LOAD ( "bios.u10", 0x000000, 0x080000, CRC(161fb79e) SHA1(dfb5517de3a14a94344e0f58bbe90b69c5cb5b57) ) /* Korea BIOS */ |
| 1190 | 1190 | |
| 1191 | 1191 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1192 | | ROM_LOAD16_BYTE( "su.u10", 0x000000, 0x100000, CRC(5ae66218) SHA1(c3f32603e1da945efb984ff99e1a30202e535773) ) |
| 1193 | | ROM_LOAD16_BYTE( "su.u8", 0x000001, 0x100000, CRC(10977a03) SHA1(2ab95398d6b88d8819f368ee6104d7f8b485778d) ) |
| 1192 | ROM_LOAD16_BYTE( "su.u10", 0x000000, 0x100000, CRC(5ae66218) SHA1(c3f32603e1da945efb984ff99e1a30202e535773) ) |
| 1193 | ROM_LOAD16_BYTE( "su.u8", 0x000001, 0x100000, CRC(10977a03) SHA1(2ab95398d6b88d8819f368ee6104d7f8b485778d) ) |
| 1194 | 1194 | |
| 1195 | 1195 | /* the rest of the roms match Gals Panic S2, but are in different locations */ |
| 1196 | 1196 | ROM_REGION( 0x1000000, "gfx1", 0 ) |
| 1197 | | ROM_LOAD( "24", 0x000000, 0x400000, CRC(294b2f14) SHA1(90cbd0acdaa2d89d208c28aae33ab57c03624089) ) |
| 1198 | | ROM_LOAD( "20", 0x400000, 0x400000, CRC(f75c5a9a) SHA1(3919643cee6c88185a1aa3c58c5bc80599bf734e) ) |
| 1199 | | ROM_LOAD( "17", 0x800000, 0x400000, CRC(25b4f56b) SHA1(f9a33d5ed54a04ecece3035e75508d191bbe74b1) ) |
| 1200 | | ROM_LOAD( "32", 0xc00000, 0x400000, CRC(db6d4424) SHA1(0a88dafd0ee2490ff2ef39ce8eb1931c41bdda42) ) |
| 1197 | ROM_LOAD( "24", 0x000000, 0x400000, CRC(294b2f14) SHA1(90cbd0acdaa2d89d208c28aae33ab57c03624089) ) |
| 1198 | ROM_LOAD( "20", 0x400000, 0x400000, CRC(f75c5a9a) SHA1(3919643cee6c88185a1aa3c58c5bc80599bf734e) ) |
| 1199 | ROM_LOAD( "17", 0x800000, 0x400000, CRC(25b4f56b) SHA1(f9a33d5ed54a04ecece3035e75508d191bbe74b1) ) |
| 1200 | ROM_LOAD( "32", 0xc00000, 0x400000, CRC(db6d4424) SHA1(0a88dafd0ee2490ff2ef39ce8eb1931c41bdda42) ) |
| 1201 | 1201 | |
| 1202 | 1202 | ROM_REGION( 0x800000, "gfx2", ROMREGION_DISPOSE ) |
| 1203 | | ROM_LOAD( "16", 0x000000, 0x400000, CRC(5caae1c0) SHA1(8f77e4cf018d7290b2d804cbff9fccf0bf4d2404) ) |
| 1204 | | ROM_LOAD( "13", 0x400000, 0x400000, CRC(8d51f197) SHA1(19d2afab823ea179918e7bcbf4df2283e77570f0) ) |
| 1203 | ROM_LOAD( "16", 0x000000, 0x400000, CRC(5caae1c0) SHA1(8f77e4cf018d7290b2d804cbff9fccf0bf4d2404) ) |
| 1204 | ROM_LOAD( "13", 0x400000, 0x400000, CRC(8d51f197) SHA1(19d2afab823ea179918e7bcbf4df2283e77570f0) ) |
| 1205 | 1205 | |
| 1206 | 1206 | ROM_REGION( 0x800000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1207 | 1207 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1208 | 1208 | /* 0x040000 - 0x3fffff empty? */ |
| 1209 | | ROM_LOAD( "7", 0x400000, 0x400000, CRC(58800a18) SHA1(5e6d55ecd12275662d6f59559e137b759f23fff6) ) |
| 1209 | ROM_LOAD( "7", 0x400000, 0x400000, CRC(58800a18) SHA1(5e6d55ecd12275662d6f59559e137b759f23fff6) ) |
| 1210 | 1210 | |
| 1211 | 1211 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1212 | | ROM_LOAD( "4", 0x000000, 0x400000, CRC(0348e8e1) SHA1(8a21c7e5cea0bc08a2595213d689c58c0251fdb5) ) |
| 1212 | ROM_LOAD( "4", 0x000000, 0x400000, CRC(0348e8e1) SHA1(8a21c7e5cea0bc08a2595213d689c58c0251fdb5) ) |
| 1213 | 1213 | ROM_END |
| 1214 | 1214 | |
| 1215 | 1215 | |
| r4207 | r4208 | |
| 1218 | 1218 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1219 | 1219 | |
| 1220 | 1220 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1221 | | ROM_LOAD16_BYTE( "gts000j0.u6" ,0x000000, 0x080000, CRC(8ee91310) SHA1(8dd918189fe445d79c7f028168862b852f70a6f2) ) |
| 1222 | | ROM_LOAD16_BYTE( "gts001j0.u4", 0x000001, 0x080000, CRC(80b8ee66) SHA1(4faf5f358ceee866f09bd81e63ba3ebd21bde835) ) |
| 1221 | ROM_LOAD16_BYTE( "gts000j0.u6", 0x000000, 0x080000, CRC(8ee91310) SHA1(8dd918189fe445d79c7f028168862b852f70a6f2) ) |
| 1222 | ROM_LOAD16_BYTE( "gts001j0.u4", 0x000001, 0x080000, CRC(80b8ee66) SHA1(4faf5f358ceee866f09bd81e63ba3ebd21bde835) ) |
| 1223 | 1223 | |
| 1224 | 1224 | ROM_REGION( 0x400000, "gfx1", 0 ) |
| 1225 | | ROM_LOAD( "gts10000.u24", 0x000000, 0x400000, CRC(1959979e) SHA1(92a68784664dd833ca6fcca1b15cd46b9365d081) ) |
| 1225 | ROM_LOAD( "gts10000.u24", 0x000000, 0x400000, CRC(1959979e) SHA1(92a68784664dd833ca6fcca1b15cd46b9365d081) ) |
| 1226 | 1226 | |
| 1227 | 1227 | ROM_REGION( 0x400000, "gfx2", ROMREGION_DISPOSE ) |
| 1228 | | ROM_LOAD( "gts20000.u16", 0x000000, 0x400000, CRC(c443aac3) SHA1(b0416a09ead26077e9276bae98d94eeb1cf86877) ) |
| 1228 | ROM_LOAD( "gts20000.u16", 0x000000, 0x400000, CRC(c443aac3) SHA1(b0416a09ead26077e9276bae98d94eeb1cf86877) ) |
| 1229 | 1229 | |
| 1230 | 1230 | ROM_REGION( 0x400000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1231 | 1231 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| r4207 | r4208 | |
| 1240 | 1240 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1241 | 1241 | |
| 1242 | 1242 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1243 | | ROM_LOAD16_BYTE( "ps1000j0.u10", 0x000000, 0x100000, CRC(59645f89) SHA1(8da205c6e38899d6c637941700dd7eea56011c10) ) |
| 1244 | | ROM_LOAD16_BYTE( "ps1001j0.u8", 0x000001, 0x100000, CRC(c4722be9) SHA1(7009d320a80cfa7d80efc5fc915081914bc3c827) ) |
| 1243 | ROM_LOAD16_BYTE( "ps1000j0.u10", 0x000000, 0x100000, CRC(59645f89) SHA1(8da205c6e38899d6c637941700dd7eea56011c10) ) |
| 1244 | ROM_LOAD16_BYTE( "ps1001j0.u8", 0x000001, 0x100000, CRC(c4722be9) SHA1(7009d320a80cfa7d80efc5fc915081914bc3c827) ) |
| 1245 | 1245 | |
| 1246 | 1246 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 1247 | | ROM_LOAD( "ps-10000.u24", 0x000000, 0x400000, CRC(294b2f14) SHA1(90cbd0acdaa2d89d208c28aae33ab57c03624089) ) |
| 1248 | | ROM_LOAD( "ps110100.u20", 0x400000, 0x400000, CRC(e292f393) SHA1(b0914f7f0abf9f821f2592c289ea4e3b3e7f819a) ) |
| 1247 | ROM_LOAD( "ps-10000.u24", 0x000000, 0x400000, CRC(294b2f14) SHA1(90cbd0acdaa2d89d208c28aae33ab57c03624089) ) |
| 1248 | ROM_LOAD( "ps110100.u20", 0x400000, 0x400000, CRC(e292f393) SHA1(b0914f7f0abf9f821f2592c289ea4e3b3e7f819a) ) |
| 1249 | 1249 | |
| 1250 | 1250 | ROM_REGION( 0x400000, "gfx2", ROMREGION_DISPOSE ) |
| 1251 | | ROM_LOAD( "ps120000.u16", 0x000000, 0x400000, CRC(d772ac15) SHA1(6bf7b9bfccdcb7481b21fa2ab9b683d79033a192) ) |
| 1251 | ROM_LOAD( "ps120000.u16", 0x000000, 0x400000, CRC(d772ac15) SHA1(6bf7b9bfccdcb7481b21fa2ab9b683d79033a192) ) |
| 1252 | 1252 | |
| 1253 | 1253 | ROM_REGION( 0x400000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1254 | 1254 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1255 | 1255 | /* 0x040000 - 0x3fffff empty? */ |
| 1256 | 1256 | |
| 1257 | 1257 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1258 | | ROM_LOAD( "ps-30000.u4", 0x000000, 0x400000, CRC(2262e263) SHA1(73443e5f40f5c5c9bd41c6207fa6376072f0f65e) ) |
| 1258 | ROM_LOAD( "ps-30000.u4", 0x000000, 0x400000, CRC(2262e263) SHA1(73443e5f40f5c5c9bd41c6207fa6376072f0f65e) ) |
| 1259 | 1259 | ROM_END |
| 1260 | 1260 | |
| 1261 | 1261 | ROM_START( puzzloop ) |
| r4207 | r4208 | |
| 1263 | 1263 | ROM_LOAD ( "sknse1.u10", 0x000000, 0x080000, CRC(e2b9d7d1) SHA1(b530a3bb9dedc8cfafcba9f1f10277590be04a15) ) /* Europe BIOS */ |
| 1264 | 1264 | |
| 1265 | 1265 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1266 | | ROM_LOAD16_BYTE( "pl00e1.u6", 0x000000, 0x080000, CRC(273adc38) SHA1(37ca873342ba9fb9951114048a9cd255f73fe19c) ) |
| 1267 | | ROM_LOAD16_BYTE( "pl00e1.u4", 0x000001, 0x080000, CRC(14ac2870) SHA1(d1abcfd64d7c0ead67e879c40e1010453fd4da13) ) |
| 1266 | ROM_LOAD16_BYTE( "pl00e1.u6", 0x000000, 0x080000, CRC(273adc38) SHA1(37ca873342ba9fb9951114048a9cd255f73fe19c) ) |
| 1267 | ROM_LOAD16_BYTE( "pl00e1.u4", 0x000001, 0x080000, CRC(14ac2870) SHA1(d1abcfd64d7c0ead67e879c40e1010453fd4da13) ) |
| 1268 | 1268 | |
| 1269 | 1269 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 1270 | 1270 | ROM_LOAD( "pzl10000.u24", 0x000000, 0x400000, CRC(35bf6897) SHA1(8a1f1f5234a61971a62401633de1dec1920fc4da) ) |
| r4207 | r4208 | |
| 1278 | 1278 | ROM_LOAD( "pzl21000.u18", 0x400000, 0x400000, CRC(c8b3be64) SHA1(6da9ca8b963ebf10df6bc02bd1bdc66392e2fa60) ) |
| 1279 | 1279 | |
| 1280 | 1280 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1281 | | ROM_LOAD( "pzl30000.u4", 0x000000, 0x400000, CRC(38604b8d) SHA1(1191cf48a6a7baa58e51509442b40ea67f5252d2) ) |
| 1281 | ROM_LOAD( "pzl30000.u4", 0x000000, 0x400000, CRC(38604b8d) SHA1(1191cf48a6a7baa58e51509442b40ea67f5252d2) ) |
| 1282 | 1282 | ROM_END |
| 1283 | 1283 | |
| 1284 | 1284 | ROM_START( puzloopj ) |
| r4207 | r4208 | |
| 1286 | 1286 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1287 | 1287 | |
| 1288 | 1288 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1289 | | ROM_LOAD16_BYTE( "pl0j2u6.u10", 0x000000, 0x080000, CRC(23c3bf97) SHA1(77ea1f32bed5709a6ad5b250370f08cfe8036867) ) |
| 1290 | | ROM_LOAD16_BYTE( "pl0j2u4.u8", 0x000001, 0x080000, CRC(55b2a3cb) SHA1(d4cbe143fe2ad622af808cbd9eedffeff3b77e0d) ) |
| 1289 | ROM_LOAD16_BYTE( "pl0j2u6.u10", 0x000000, 0x080000, CRC(23c3bf97) SHA1(77ea1f32bed5709a6ad5b250370f08cfe8036867) ) |
| 1290 | ROM_LOAD16_BYTE( "pl0j2u4.u8", 0x000001, 0x080000, CRC(55b2a3cb) SHA1(d4cbe143fe2ad622af808cbd9eedffeff3b77e0d) ) |
| 1291 | 1291 | |
| 1292 | 1292 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 1293 | 1293 | ROM_LOAD( "pzl10000.u24", 0x000000, 0x400000, CRC(35bf6897) SHA1(8a1f1f5234a61971a62401633de1dec1920fc4da) ) |
| r4207 | r4208 | |
| 1301 | 1301 | ROM_LOAD( "pzl21000.u18", 0x400000, 0x400000, CRC(c8b3be64) SHA1(6da9ca8b963ebf10df6bc02bd1bdc66392e2fa60) ) |
| 1302 | 1302 | |
| 1303 | 1303 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1304 | | ROM_LOAD( "pzl30000.u4", 0x000000, 0x400000, CRC(38604b8d) SHA1(1191cf48a6a7baa58e51509442b40ea67f5252d2) ) |
| 1304 | ROM_LOAD( "pzl30000.u4", 0x000000, 0x400000, CRC(38604b8d) SHA1(1191cf48a6a7baa58e51509442b40ea67f5252d2) ) |
| 1305 | 1305 | ROM_END |
| 1306 | 1306 | |
| 1307 | 1307 | ROM_START( puzloopu ) |
| r4207 | r4208 | |
| 1309 | 1309 | ROM_LOAD ( "sknsu1.u10", 0x000000, 0x080000, CRC(384d21ec) SHA1(a27e8a18099d9cea64fa32db28d01101c2a78815) ) /* US BIOS */ |
| 1310 | 1310 | |
| 1311 | 1311 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1312 | | ROM_LOAD16_BYTE( "puzloopu.u10", 0x000000, 0x080000, CRC(e6f3f82f) SHA1(ac61dc22fa3c1b1c2f3a41d3a8fb43938b77ca68) ) |
| 1313 | | ROM_LOAD16_BYTE( "puzloopu.u8", 0x000001, 0x080000, CRC(0d081d30) SHA1(ec0cdf120126104b9bb706f68c9ba9c3777dd69c) ) |
| 1312 | ROM_LOAD16_BYTE( "plue5.u6", 0x000000, 0x080000, CRC(e6f3f82f) SHA1(ac61dc22fa3c1b1c2f3a41d3a8fb43938b77ca68) ) |
| 1313 | ROM_LOAD16_BYTE( "plue5.u4", 0x000001, 0x080000, CRC(0d081d30) SHA1(ec0cdf120126104b9bb706f68c9ba9c3777dd69c) ) |
| 1314 | 1314 | |
| 1315 | 1315 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 1316 | 1316 | ROM_LOAD( "pzl10000.u24", 0x000000, 0x400000, CRC(35bf6897) SHA1(8a1f1f5234a61971a62401633de1dec1920fc4da) ) |
| r4207 | r4208 | |
| 1324 | 1324 | ROM_LOAD( "pzl21000.u18", 0x400000, 0x400000, CRC(c8b3be64) SHA1(6da9ca8b963ebf10df6bc02bd1bdc66392e2fa60) ) |
| 1325 | 1325 | |
| 1326 | 1326 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1327 | | ROM_LOAD( "pzl30000.u4", 0x000000, 0x400000, CRC(38604b8d) SHA1(1191cf48a6a7baa58e51509442b40ea67f5252d2) ) |
| 1327 | ROM_LOAD( "pzl30000.u4", 0x000000, 0x400000, CRC(38604b8d) SHA1(1191cf48a6a7baa58e51509442b40ea67f5252d2) ) |
| 1328 | 1328 | ROM_END |
| 1329 | 1329 | |
| 1330 | 1330 | ROM_START( puzloopk ) |
| r4207 | r4208 | |
| 1332 | 1332 | ROM_LOAD ( "sknsk1.u10", 0x000000, 0x080000, CRC(ff1c9f79) SHA1(a51e598d43e76d37da69b1f094c111273bdfc94a) ) /* Korean BIOS */ |
| 1333 | 1333 | |
| 1334 | 1334 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1335 | | ROM_LOAD16_BYTE( "pl0k4.u6", 0x000000, 0x080000, CRC(8d81f20c) SHA1(c32a525e8f92a625e3fecb7c43dd04b13e0a75e4) ) |
| 1336 | | ROM_LOAD16_BYTE( "pl0k4.u4", 0x000001, 0x080000, CRC(17c78e41) SHA1(4a4b612ae00d521d2947ab32554ebb615be72471) ) |
| 1335 | ROM_LOAD16_BYTE( "pl0k4.u6", 0x000000, 0x080000, CRC(8d81f20c) SHA1(c32a525e8f92a625e3fecb7c43dd04b13e0a75e4) ) |
| 1336 | ROM_LOAD16_BYTE( "pl0k4.u4", 0x000001, 0x080000, CRC(17c78e41) SHA1(4a4b612ae00d521d2947ab32554ebb615be72471) ) |
| 1337 | 1337 | |
| 1338 | 1338 | ROM_REGION( 0x800000, "gfx1", 0 ) |
| 1339 | 1339 | ROM_LOAD( "pzl10000.u24", 0x000000, 0x400000, CRC(35bf6897) SHA1(8a1f1f5234a61971a62401633de1dec1920fc4da) ) |
| r4207 | r4208 | |
| 1347 | 1347 | ROM_LOAD( "pzl21000.u18", 0x400000, 0x400000, CRC(c8b3be64) SHA1(6da9ca8b963ebf10df6bc02bd1bdc66392e2fa60) ) |
| 1348 | 1348 | |
| 1349 | 1349 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1350 | | ROM_LOAD( "pzl30000.u4", 0x000000, 0x400000, CRC(38604b8d) SHA1(1191cf48a6a7baa58e51509442b40ea67f5252d2) ) |
| 1350 | ROM_LOAD( "pzl30000.u4", 0x000000, 0x400000, CRC(38604b8d) SHA1(1191cf48a6a7baa58e51509442b40ea67f5252d2) ) |
| 1351 | 1351 | ROM_END |
| 1352 | 1352 | |
| 1353 | 1353 | /* haven't even tried to run the ones below yet */ |
| r4207 | r4208 | |
| 1357 | 1357 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1358 | 1358 | |
| 1359 | 1359 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1360 | | ROM_LOAD16_BYTE( "jp1j1.u10", 0x000000, 0x080000, CRC(de2fb669) SHA1(229ff1ae0ec5bc77fc17642964e0bb0146594e86) ) |
| 1361 | | ROM_LOAD16_BYTE( "jp1j1.u8", 0x000001, 0x080000, CRC(7276efb1) SHA1(3edc265b5c02da7d21a2494a6dc2878fbad93f87) ) |
| 1360 | ROM_LOAD16_BYTE( "jp1j1.u10", 0x000000, 0x080000, CRC(de2fb669) SHA1(229ff1ae0ec5bc77fc17642964e0bb0146594e86) ) |
| 1361 | ROM_LOAD16_BYTE( "jp1j1.u8", 0x000001, 0x080000, CRC(7276efb1) SHA1(3edc265b5c02da7d21a2494a6dc2878fbad93f87) ) |
| 1362 | 1362 | |
| 1363 | 1363 | ROM_REGION( 0x1000000, "gfx1", 0 ) |
| 1364 | | ROM_LOAD( "jp100-00.u24", 0x000000, 0x400000, CRC(f31b2e95) SHA1(7e5bb518d4f6423785d3f9f2752a624a66b42469) ) |
| 1365 | | ROM_LOAD( "jp101-00.u20", 0x400000, 0x400000, CRC(70cc8c24) SHA1(a4805ce19f512b047829548b635e68690d714175) ) |
| 1366 | | ROM_LOAD( "jp102-00.u17", 0x800000, 0x400000, CRC(35401c1e) SHA1(38fe86a08555bb823b8d64ac043330aaaa6b8892) ) |
| 1364 | ROM_LOAD( "jp100-00.u24", 0x000000, 0x400000, CRC(f31b2e95) SHA1(7e5bb518d4f6423785d3f9f2752a624a66b42469) ) |
| 1365 | ROM_LOAD( "jp101-00.u20", 0x400000, 0x400000, CRC(70cc8c24) SHA1(a4805ce19f512b047829548b635e68690d714175) ) |
| 1366 | ROM_LOAD( "jp102-00.u17", 0x800000, 0x400000, CRC(35401c1e) SHA1(38fe86a08555bb823b8d64ac043330aaaa6b8892) ) |
| 1367 | 1367 | |
| 1368 | 1368 | ROM_REGION( 0x200000, "gfx2", ROMREGION_DISPOSE ) |
| 1369 | | ROM_LOAD( "jp200-00.u16", 0x000000, 0x200000, CRC(493d63db) SHA1(4b8fe7ff1ae14a914a675ce4072a4d9e5cfc08b0) ) |
| 1369 | ROM_LOAD( "jp200-00.u16", 0x000000, 0x200000, CRC(493d63db) SHA1(4b8fe7ff1ae14a914a675ce4072a4d9e5cfc08b0) ) |
| 1370 | 1370 | |
| 1371 | 1371 | ROM_REGION( 0x400000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1372 | 1372 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1373 | 1373 | /* 0x040000 - 0x3fffff empty? */ |
| 1374 | 1374 | |
| 1375 | 1375 | ROM_REGION( 0x200000, "ymz", 0 ) /* Samples */ |
| 1376 | | ROM_LOAD( "jp300-00.u4", 0x000000, 0x200000, CRC(7023fe46) SHA1(24a92133bc664d63b3be67c2ef11cd7b605ee7e8) ) |
| 1376 | ROM_LOAD( "jp300-00.u4", 0x000000, 0x200000, CRC(7023fe46) SHA1(24a92133bc664d63b3be67c2ef11cd7b605ee7e8) ) |
| 1377 | 1377 | ROM_END |
| 1378 | 1378 | |
| 1379 | 1379 | ROM_START( jjparad2 ) |
| r4207 | r4208 | |
| 1381 | 1381 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1382 | 1382 | |
| 1383 | 1383 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1384 | | ROM_LOAD16_BYTE( "jp2000j1.u6", 0x000000, 0x080000, CRC(5d75e765) SHA1(33bcd8f929f6025b00df2ea783b13a391a28a5c3) ) |
| 1385 | | ROM_LOAD16_BYTE( "jp2001j1.u4", 0x000001, 0x080000, CRC(1771910a) SHA1(7ca9584d379d7b41f303a3ba861f943c570ad97c) ) |
| 1384 | ROM_LOAD16_BYTE( "jp2000j1.u6", 0x000000, 0x080000, CRC(5d75e765) SHA1(33bcd8f929f6025b00df2ea783b13a391a28a5c3) ) |
| 1385 | ROM_LOAD16_BYTE( "jp2001j1.u4", 0x000001, 0x080000, CRC(1771910a) SHA1(7ca9584d379d7b41f303a3ba861f943c570ad97c) ) |
| 1386 | 1386 | |
| 1387 | 1387 | ROM_REGION( 0x1000000, "gfx1", 0 ) |
| 1388 | | ROM_LOAD( "jp210000.u21", 0x000000, 0x400000, CRC(79a7e3d7) SHA1(bd0f8d01971e5895395f97f2520bcd03ab19d229) ) |
| 1389 | | ROM_LOAD( "jp210100.u20", 0x400000, 0x400000, CRC(42415e0c) SHA1(f7bff86d55fa9002fbd14e4c62f9d3df8faaf7d0) ) |
| 1390 | | ROM_LOAD( "jp210200.u8", 0x800000, 0x400000, CRC(26731745) SHA1(8939d36b82b10b1010e4b924e6b9fdd4742efe48) ) |
| 1388 | ROM_LOAD( "jp210000.u21", 0x000000, 0x400000, CRC(79a7e3d7) SHA1(bd0f8d01971e5895395f97f2520bcd03ab19d229) ) |
| 1389 | ROM_LOAD( "jp210100.u20", 0x400000, 0x400000, CRC(42415e0c) SHA1(f7bff86d55fa9002fbd14e4c62f9d3df8faaf7d0) ) |
| 1390 | ROM_LOAD( "jp210200.u8", 0x800000, 0x400000, CRC(26731745) SHA1(8939d36b82b10b1010e4b924e6b9fdd4742efe48) ) |
| 1391 | 1391 | |
| 1392 | 1392 | ROM_REGION( 0x800000, "gfx2", ROMREGION_DISPOSE ) |
| 1393 | | ROM_LOAD( "jp220000.u17", 0x000000, 0x400000, CRC(d0e71873) SHA1(c6ffba3624e6d4c2d4e12ef7d88a02cbc3867b18) ) |
| 1394 | | ROM_LOAD( "jp220100.u9", 0x400000, 0x400000, CRC(4c7d964d) SHA1(3352cd866a64466f4f5a990c2c5e3e28e7028a99) ) |
| 1393 | ROM_LOAD( "jp220000.u17", 0x000000, 0x400000, CRC(d0e71873) SHA1(c6ffba3624e6d4c2d4e12ef7d88a02cbc3867b18) ) |
| 1394 | ROM_LOAD( "jp220100.u9", 0x400000, 0x400000, CRC(4c7d964d) SHA1(3352cd866a64466f4f5a990c2c5e3e28e7028a99) ) |
| 1395 | 1395 | |
| 1396 | 1396 | ROM_REGION( 0x400000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1397 | 1397 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1398 | 1398 | /* 0x040000 - 0x3fffff empty? */ |
| 1399 | 1399 | |
| 1400 | 1400 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1401 | | ROM_LOAD( "jp230000.u1", 0x000000, 0x400000, CRC(73e30d7f) SHA1(af5b16cec722dbbf0e03d73edfa133dbf10ac4f3) ) |
| 1401 | ROM_LOAD( "jp230000.u1", 0x000000, 0x400000, CRC(73e30d7f) SHA1(af5b16cec722dbbf0e03d73edfa133dbf10ac4f3) ) |
| 1402 | 1402 | ROM_END |
| 1403 | 1403 | |
| 1404 | 1404 | ROM_START( sengekis ) |
| r4207 | r4208 | |
| 1406 | 1406 | ROM_LOAD ( "sknsa1.u10", 0x000000, 0x080000, CRC(745e5212) SHA1(caba649ab2d83b2d7e007eecee0fc582c019df38) ) /* Asia BIOS */ |
| 1407 | 1407 | |
| 1408 | 1408 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1409 | | ROM_LOAD16_BYTE( "ss01a.u6", 0x000000, 0x080000, CRC(962fe857) SHA1(3df74c5efff11333dea9316a063129dcec0d7bdd) ) |
| 1410 | | ROM_LOAD16_BYTE( "ss01a.u4", 0x000001, 0x080000, CRC(ee853c23) SHA1(ddbf7f7cf509788ee3daf7b4d8ae1482e6e31a03) ) |
| 1409 | ROM_LOAD16_BYTE( "ss01a.u6", 0x000000, 0x080000, CRC(962fe857) SHA1(3df74c5efff11333dea9316a063129dcec0d7bdd) ) |
| 1410 | ROM_LOAD16_BYTE( "ss01a.u4", 0x000001, 0x080000, CRC(ee853c23) SHA1(ddbf7f7cf509788ee3daf7b4d8ae1482e6e31a03) ) |
| 1411 | 1411 | |
| 1412 | 1412 | ROM_REGION( 0x1000000, "gfx1", 0 ) |
| 1413 | | ROM_LOAD( "ss100-00.u21", 0x000000, 0x400000, CRC(bc7b3dfa) SHA1(dff10a7aef548abda48470293382057a2ca9557e) ) |
| 1414 | | ROM_LOAD( "ss101-00.u20", 0x400000, 0x400000, CRC(ab2df280) SHA1(e456c578a36f585b24379d74def1bcab276c2b1b) ) |
| 1415 | | ROM_LOAD( "ss102-00.u8", 0x800000, 0x400000, CRC(0845eafe) SHA1(663b163bf4e87c7df0030e791f95b1a5827de315) ) |
| 1416 | | ROM_LOAD( "ss103-00.u32", 0xc00000, 0x400000, CRC(ee451ac9) SHA1(01cc6b6f371c0090a6a7f4c33d05f4b9a6c59fee) ) |
| 1413 | ROM_LOAD( "ss100-00.u21", 0x000000, 0x400000, CRC(bc7b3dfa) SHA1(dff10a7aef548abda48470293382057a2ca9557e) ) |
| 1414 | ROM_LOAD( "ss101-00.u20", 0x400000, 0x400000, CRC(ab2df280) SHA1(e456c578a36f585b24379d74def1bcab276c2b1b) ) |
| 1415 | ROM_LOAD( "ss102-00.u8", 0x800000, 0x400000, CRC(0845eafe) SHA1(663b163bf4e87c7df0030e791f95b1a5827de315) ) |
| 1416 | ROM_LOAD( "ss103-00.u32", 0xc00000, 0x400000, CRC(ee451ac9) SHA1(01cc6b6f371c0090a6a7f4c33d05f4b9a6c59fee) ) |
| 1417 | 1417 | |
| 1418 | 1418 | ROM_REGION( 0x800000, "gfx2", ROMREGION_DISPOSE ) |
| 1419 | | ROM_LOAD( "ss200-00.u17", 0x000000, 0x400000, CRC(cd773976) SHA1(38b8df5e685be65c3fde09f9e585591f678632d4) ) |
| 1420 | | ROM_LOAD( "ss201-00.u9", 0x400000, 0x400000, CRC(301fad4c) SHA1(15faf37eeec5cc46afcb4bd236345b5c3dd647ac) ) |
| 1419 | ROM_LOAD( "ss200-00.u17", 0x000000, 0x400000, CRC(cd773976) SHA1(38b8df5e685be65c3fde09f9e585591f678632d4) ) |
| 1420 | ROM_LOAD( "ss201-00.u9", 0x400000, 0x400000, CRC(301fad4c) SHA1(15faf37eeec5cc46afcb4bd236345b5c3dd647ac) ) |
| 1421 | 1421 | |
| 1422 | 1422 | ROM_REGION( 0x600000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1423 | 1423 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1424 | 1424 | /* 0x040000 - 0x3fffff empty? */ |
| 1425 | | ROM_LOAD( "ss210-00.u3", 0x400000, 0x200000, CRC(c3697805) SHA1(bd41064e3527cdc4b9a4ab9c423c916309b3f057) ) |
| 1425 | ROM_LOAD( "ss210-00.u3", 0x400000, 0x200000, CRC(c3697805) SHA1(bd41064e3527cdc4b9a4ab9c423c916309b3f057) ) |
| 1426 | 1426 | |
| 1427 | 1427 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1428 | | ROM_LOAD( "ss300-00.u1", 0x000000, 0x400000, CRC(35b04b18) SHA1(b69f33fc6a50ec20382329317d20b3c1e7f01b87) ) |
| 1428 | ROM_LOAD( "ss300-00.u1", 0x000000, 0x400000, CRC(35b04b18) SHA1(b69f33fc6a50ec20382329317d20b3c1e7f01b87) ) |
| 1429 | 1429 | ROM_END |
| 1430 | 1430 | |
| 1431 | 1431 | ROM_START( sengekij ) |
| r4207 | r4208 | |
| 1433 | 1433 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1434 | 1434 | |
| 1435 | 1435 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1436 | | ROM_LOAD16_BYTE( "ss01j.u6", 0x000000, 0x080000, CRC(9efdcd5a) SHA1(66cca04d07999dc8ca0bcf19db925996b34d0390) ) |
| 1437 | | ROM_LOAD16_BYTE( "ss01j.u4", 0x000001, 0x080000, CRC(92c3f45e) SHA1(60c647e66b0126fb7749874be39938972481b957) ) |
| 1436 | ROM_LOAD16_BYTE( "ss01j.u6", 0x000000, 0x080000, CRC(9efdcd5a) SHA1(66cca04d07999dc8ca0bcf19db925996b34d0390) ) |
| 1437 | ROM_LOAD16_BYTE( "ss01j.u4", 0x000001, 0x080000, CRC(92c3f45e) SHA1(60c647e66b0126fb7749874be39938972481b957) ) |
| 1438 | 1438 | |
| 1439 | 1439 | ROM_REGION( 0x1000000, "gfx1", 0 ) |
| 1440 | | ROM_LOAD( "ss100-00.u21", 0x000000, 0x400000, CRC(bc7b3dfa) SHA1(dff10a7aef548abda48470293382057a2ca9557e) ) |
| 1441 | | ROM_LOAD( "ss101-00.u20", 0x400000, 0x400000, CRC(ab2df280) SHA1(e456c578a36f585b24379d74def1bcab276c2b1b) ) |
| 1442 | | ROM_LOAD( "ss102-00.u8", 0x800000, 0x400000, CRC(0845eafe) SHA1(663b163bf4e87c7df0030e791f95b1a5827de315) ) |
| 1443 | | ROM_LOAD( "ss103-00.u32", 0xc00000, 0x400000, CRC(ee451ac9) SHA1(01cc6b6f371c0090a6a7f4c33d05f4b9a6c59fee) ) |
| 1440 | ROM_LOAD( "ss100-00.u21", 0x000000, 0x400000, CRC(bc7b3dfa) SHA1(dff10a7aef548abda48470293382057a2ca9557e) ) |
| 1441 | ROM_LOAD( "ss101-00.u20", 0x400000, 0x400000, CRC(ab2df280) SHA1(e456c578a36f585b24379d74def1bcab276c2b1b) ) |
| 1442 | ROM_LOAD( "ss102-00.u8", 0x800000, 0x400000, CRC(0845eafe) SHA1(663b163bf4e87c7df0030e791f95b1a5827de315) ) |
| 1443 | ROM_LOAD( "ss103-00.u32", 0xc00000, 0x400000, CRC(ee451ac9) SHA1(01cc6b6f371c0090a6a7f4c33d05f4b9a6c59fee) ) |
| 1444 | 1444 | |
| 1445 | 1445 | ROM_REGION( 0x800000, "gfx2", ROMREGION_DISPOSE ) |
| 1446 | | ROM_LOAD( "ss200-00.u17", 0x000000, 0x400000, CRC(cd773976) SHA1(38b8df5e685be65c3fde09f9e585591f678632d4) ) |
| 1447 | | ROM_LOAD( "ss201-00.u9", 0x400000, 0x400000, CRC(301fad4c) SHA1(15faf37eeec5cc46afcb4bd236345b5c3dd647ac) ) |
| 1446 | ROM_LOAD( "ss200-00.u17", 0x000000, 0x400000, CRC(cd773976) SHA1(38b8df5e685be65c3fde09f9e585591f678632d4) ) |
| 1447 | ROM_LOAD( "ss201-00.u9", 0x400000, 0x400000, CRC(301fad4c) SHA1(15faf37eeec5cc46afcb4bd236345b5c3dd647ac) ) |
| 1448 | 1448 | |
| 1449 | 1449 | ROM_REGION( 0x600000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1450 | 1450 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1451 | 1451 | /* 0x040000 - 0x3fffff empty? */ |
| 1452 | | ROM_LOAD( "ss210-00.u3", 0x400000, 0x200000, CRC(c3697805) SHA1(bd41064e3527cdc4b9a4ab9c423c916309b3f057) ) |
| 1452 | ROM_LOAD( "ss210-00.u3", 0x400000, 0x200000, CRC(c3697805) SHA1(bd41064e3527cdc4b9a4ab9c423c916309b3f057) ) |
| 1453 | 1453 | |
| 1454 | 1454 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1455 | | ROM_LOAD( "ss300-00.u1", 0x000000, 0x400000, CRC(35b04b18) SHA1(b69f33fc6a50ec20382329317d20b3c1e7f01b87) ) |
| 1455 | ROM_LOAD( "ss300-00.u1", 0x000000, 0x400000, CRC(35b04b18) SHA1(b69f33fc6a50ec20382329317d20b3c1e7f01b87) ) |
| 1456 | 1456 | ROM_END |
| 1457 | 1457 | |
| 1458 | 1458 | ROM_START( senknow ) |
| r4207 | r4208 | |
| 1460 | 1460 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1461 | 1461 | |
| 1462 | 1462 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1463 | | ROM_LOAD16_BYTE( "snw000j1.u6", 0x000000, 0x080000, CRC(0d6136f6) SHA1(eedd011cfe03577bfaf386723502d03f6e5dbd8c) ) |
| 1464 | | ROM_LOAD16_BYTE( "snw001j1.u4", 0x000001, 0x080000, CRC(4a10ec3d) SHA1(bbec4fc53bd61d06ffe5a53debada5785b124fdd) ) |
| 1463 | ROM_LOAD16_BYTE( "snw000j1.u6", 0x000000, 0x080000, CRC(0d6136f6) SHA1(eedd011cfe03577bfaf386723502d03f6e5dbd8c) ) |
| 1464 | ROM_LOAD16_BYTE( "snw001j1.u4", 0x000001, 0x080000, CRC(4a10ec3d) SHA1(bbec4fc53bd61d06ffe5a53debada5785b124fdd) ) |
| 1465 | 1465 | |
| 1466 | 1466 | ROM_REGION( 0x0800000, "gfx1", 0 ) |
| 1467 | | ROM_LOAD( "snw10000.u21", 0x000000, 0x400000, CRC(5133c69c) SHA1(d279df3ffd005dbf0930a8e40eaf2467f8653284) ) |
| 1468 | | ROM_LOAD( "snw10100.u20", 0x400000, 0x400000, CRC(9dafe03f) SHA1(978b4597ff2a54ac5049fd64798e8173b29dd363) ) |
| 1467 | ROM_LOAD( "snw10000.u21", 0x000000, 0x400000, CRC(5133c69c) SHA1(d279df3ffd005dbf0930a8e40eaf2467f8653284) ) |
| 1468 | ROM_LOAD( "snw10100.u20", 0x400000, 0x400000, CRC(9dafe03f) SHA1(978b4597ff2a54ac5049fd64798e8173b29dd363) ) |
| 1469 | 1469 | |
| 1470 | 1470 | ROM_REGION( 0x800000, "gfx2", ROMREGION_DISPOSE ) |
| 1471 | | ROM_LOAD( "snw20000.u17", 0x000000, 0x400000, CRC(d5fe5f8c) SHA1(817d8d0a5fbc0c50dc3c592f938150f82df97cec) ) |
| 1472 | | ROM_LOAD( "snw20100.u9", 0x400000, 0x400000, CRC(c0037846) SHA1(3267b142ebce47e1717250239d98fdb4af7964f8) ) |
| 1471 | ROM_LOAD( "snw20000.u17", 0x000000, 0x400000, CRC(d5fe5f8c) SHA1(817d8d0a5fbc0c50dc3c592f938150f82df97cec) ) |
| 1472 | ROM_LOAD( "snw20100.u9", 0x400000, 0x400000, CRC(c0037846) SHA1(3267b142ebce47e1717250239d98fdb4af7964f8) ) |
| 1473 | 1473 | |
| 1474 | 1474 | ROM_REGION( 0x800000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1475 | 1475 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1476 | 1476 | /* 0x040000 - 0x3fffff empty? */ |
| 1477 | | ROM_LOAD( "snw21000.u3", 0x400000, 0x400000, CRC(f5c23e79) SHA1(b509680001c3205b289f43d4f44aaaa7f896419b) ) |
| 1477 | ROM_LOAD( "snw21000.u3", 0x400000, 0x400000, CRC(f5c23e79) SHA1(b509680001c3205b289f43d4f44aaaa7f896419b) ) |
| 1478 | 1478 | |
| 1479 | 1479 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1480 | | ROM_LOAD( "snw30000.u1", 0x000000, 0x400000, CRC(ec9eef40) SHA1(8f74ec9cb6054a77227c0505094f0ef8bc371429) ) |
| 1480 | ROM_LOAD( "snw30000.u1", 0x000000, 0x400000, CRC(ec9eef40) SHA1(8f74ec9cb6054a77227c0505094f0ef8bc371429) ) |
| 1481 | 1481 | ROM_END |
| 1482 | 1482 | |
| 1483 | 1483 | ROM_START( teljan ) |
| r4207 | r4208 | |
| 1485 | 1485 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1486 | 1486 | |
| 1487 | 1487 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1488 | | ROM_LOAD16_BYTE( "tel1j.u10", 0x000000, 0x080000, CRC(09b552fe) SHA1(2f315fd09eb22fa8c81faa1e926038f20daa845f) ) |
| 1489 | | ROM_LOAD16_BYTE( "tel1j.u8", 0x000001, 0x080000, CRC(070b4345) SHA1(5743f12a351b89593c6adfaeb8a5a2ab7bc8b424) ) |
| 1488 | ROM_LOAD16_BYTE( "tel1j.u10", 0x000000, 0x080000, CRC(09b552fe) SHA1(2f315fd09eb22fa8c81faa1e926038f20daa845f) ) |
| 1489 | ROM_LOAD16_BYTE( "tel1j.u8", 0x000001, 0x080000, CRC(070b4345) SHA1(5743f12a351b89593c6adfaeb8a5a2ab7bc8b424) ) |
| 1490 | 1490 | |
| 1491 | 1491 | ROM_REGION( 0x1000000, "gfx1", 0 ) |
| 1492 | | ROM_LOAD( "tj100-00.u24", 0x000000, 0x400000, CRC(810144f1) SHA1(1c90e71e5f34ee05771ab4a673329f78f17791df) ) |
| 1493 | | ROM_LOAD( "tj101-00.u20", 0x400000, 0x400000, CRC(82f570e1) SHA1(3ba9d1775f897052aca5cff2edbf575399101c5c) ) |
| 1494 | | ROM_LOAD( "tj102-00.u17", 0x800000, 0x400000, CRC(ace875dc) SHA1(be97c895beeac979c5704986e818d4f3cfa00e49) ) |
| 1492 | ROM_LOAD( "tj100-00.u24", 0x000000, 0x400000, CRC(810144f1) SHA1(1c90e71e5f34ee05771ab4a673329f78f17791df) ) |
| 1493 | ROM_LOAD( "tj101-00.u20", 0x400000, 0x400000, CRC(82f570e1) SHA1(3ba9d1775f897052aca5cff2edbf575399101c5c) ) |
| 1494 | ROM_LOAD( "tj102-00.u17", 0x800000, 0x400000, CRC(ace875dc) SHA1(be97c895beeac979c5704986e818d4f3cfa00e49) ) |
| 1495 | 1495 | |
| 1496 | 1496 | ROM_REGION( 0x400000, "gfx2", ROMREGION_DISPOSE ) |
| 1497 | | ROM_LOAD( "tj200-00.u16", 0x000000, 0x400000, CRC(be0f90b2) SHA1(1848a65f244e1e8a3ff7ab38e76f86cabca8b47e) ) |
| 1497 | ROM_LOAD( "tj200-00.u16", 0x000000, 0x400000, CRC(be0f90b2) SHA1(1848a65f244e1e8a3ff7ab38e76f86cabca8b47e) ) |
| 1498 | 1498 | |
| 1499 | 1499 | ROM_REGION( 0x400000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1500 | 1500 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1501 | 1501 | /* 0x040000 - 0x3fffff empty? */ |
| 1502 | 1502 | |
| 1503 | 1503 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1504 | | ROM_LOAD( "tj300-00.u4", 0x000000, 0x400000, CRC(685495c4) SHA1(3853c0583b84ed3163370ae48e4b3912cbeb986e) ) |
| 1504 | ROM_LOAD( "tj300-00.u4", 0x000000, 0x400000, CRC(685495c4) SHA1(3853c0583b84ed3163370ae48e4b3912cbeb986e) ) |
| 1505 | 1505 | ROM_END |
| 1506 | 1506 | |
| 1507 | 1507 | ROM_START( ryouran ) |
| r4207 | r4208 | |
| 1509 | 1509 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1510 | 1510 | |
| 1511 | 1511 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1512 | | ROM_LOAD16_BYTE( "or000j1.u10", 0x000000, 0x080000, CRC(d93aa491) SHA1(dc01707f1e80d81f28d6b685d08fc6c0d2bf7330) ) |
| 1513 | | ROM_LOAD16_BYTE( "or001j1.u8", 0x000001, 0x080000, CRC(f466e5e9) SHA1(65d699f6f9e299333e51a6a52cb13a0f1a902fe1) ) |
| 1512 | ROM_LOAD16_BYTE( "or000j1.u10", 0x000000, 0x080000, CRC(d93aa491) SHA1(dc01707f1e80d81f28d6b685d08fc6c0d2bf7330) ) |
| 1513 | ROM_LOAD16_BYTE( "or001j1.u8", 0x000001, 0x080000, CRC(f466e5e9) SHA1(65d699f6f9e299333e51a6a52cb13a0f1a902fe1) ) |
| 1514 | 1514 | |
| 1515 | 1515 | ROM_REGION( 0x1000000, "gfx1", 0 ) |
| 1516 | | ROM_LOAD( "or100-00.u24", 0x000000, 0x400000, CRC(e9c7695b) SHA1(0a104d4e4e0c933d2eaaf410a8c243db6673786a) ) |
| 1517 | | ROM_LOAD( "or101-00.u20", 0x400000, 0x400000, CRC(fe06bf12) SHA1(f3a2f88aed65bcc1c16f37fd4c0011e3538128f7) ) |
| 1518 | | ROM_LOAD( "or102-00.u17", 0x800000, 0x400000, CRC(f2a5237b) SHA1(b8871f9c0f3864c334ec9a8146cf7dd1961ecb94) ) |
| 1516 | ROM_LOAD( "or100-00.u24", 0x000000, 0x400000, CRC(e9c7695b) SHA1(0a104d4e4e0c933d2eaaf410a8c243db6673786a) ) |
| 1517 | ROM_LOAD( "or101-00.u20", 0x400000, 0x400000, CRC(fe06bf12) SHA1(f3a2f88aed65bcc1c16f37fd4c0011e3538128f7) ) |
| 1518 | ROM_LOAD( "or102-00.u17", 0x800000, 0x400000, CRC(f2a5237b) SHA1(b8871f9c0f3864c334ec9a8146cf7dd1961ecb94) ) |
| 1519 | 1519 | |
| 1520 | 1520 | ROM_REGION( 0x800000, "gfx2", ROMREGION_DISPOSE ) |
| 1521 | | ROM_LOAD( "or200-00.u16", 0x000000, 0x400000, CRC(4c4701a8) SHA1(7b397b553ba86bba2ee82228cabdf2179e878d69) ) |
| 1522 | | ROM_LOAD( "or201-00.u13", 0x400000, 0x400000, CRC(a94064aa) SHA1(5d736f810ffdbb6ada5c5efcb5fb29eedafc3e2f) ) |
| 1521 | ROM_LOAD( "or200-00.u16", 0x000000, 0x400000, CRC(4c4701a8) SHA1(7b397b553ba86bba2ee82228cabdf2179e878d69) ) |
| 1522 | ROM_LOAD( "or201-00.u13", 0x400000, 0x400000, CRC(a94064aa) SHA1(5d736f810ffdbb6ada5c5efcb5fb29eedafc3e2f) ) |
| 1523 | 1523 | |
| 1524 | 1524 | ROM_REGION( 0x400000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1525 | 1525 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1526 | 1526 | /* 0x040000 - 0x3fffff empty? */ |
| 1527 | 1527 | |
| 1528 | 1528 | ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */ |
| 1529 | | ROM_LOAD( "or300-00.u4", 0x000000, 0x400000, CRC(a3f64b79) SHA1(6ecb2b4c0d213fe5384b19d6bfdb86871f21fd9f) ) |
| 1529 | ROM_LOAD( "or300-00.u4", 0x000000, 0x400000, CRC(a3f64b79) SHA1(6ecb2b4c0d213fe5384b19d6bfdb86871f21fd9f) ) |
| 1530 | 1530 | ROM_END |
| 1531 | 1531 | |
| 1532 | 1532 | ROM_START( vblokbrk ) |
| r4207 | r4208 | |
| 1534 | 1534 | ROM_LOAD ( "sknsa1.u10", 0x000000, 0x080000, CRC(745e5212) SHA1(caba649ab2d83b2d7e007eecee0fc582c019df38) ) /* Asia BIOS */ |
| 1535 | 1535 | |
| 1536 | 1536 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1537 | | ROM_LOAD16_BYTE( "sk01a.u10", 0x000000, 0x080000, CRC(4d1be53e) SHA1(3d28b73a67530147962b8df6244af8bea2ab080f) ) |
| 1538 | | ROM_LOAD16_BYTE( "sk01a.u8", 0x000001, 0x080000, CRC(461e0197) SHA1(003573a4abdbecc6dd234a13c61ef07a25d980e2) ) |
| 1537 | ROM_LOAD16_BYTE( "sk01a.u10", 0x000000, 0x080000, CRC(4d1be53e) SHA1(3d28b73a67530147962b8df6244af8bea2ab080f) ) |
| 1538 | ROM_LOAD16_BYTE( "sk01a.u8", 0x000001, 0x080000, CRC(461e0197) SHA1(003573a4abdbecc6dd234a13c61ef07a25d980e2) ) |
| 1539 | 1539 | |
| 1540 | 1540 | ROM_REGION( 0x0400000, "gfx1", 0 ) |
| 1541 | | ROM_LOAD( "sk100-00.u24", 0x000000, 0x200000, CRC(151dd88a) SHA1(87bb1039a9883f721a315760eb2c4abe4a94046f) ) |
| 1542 | | ROM_LOAD( "sk-101.u20", 0x200000, 0x100000, CRC(779cce23) SHA1(70147b36d982524ba9921823e481ce8fbb5daa26) ) |
| 1541 | ROM_LOAD( "sk100-00.u24", 0x000000, 0x200000, CRC(151dd88a) SHA1(87bb1039a9883f721a315760eb2c4abe4a94046f) ) |
| 1542 | ROM_LOAD( "sk-101.u20", 0x200000, 0x100000, CRC(779cce23) SHA1(70147b36d982524ba9921823e481ce8fbb5daa26) ) |
| 1543 | 1543 | |
| 1544 | 1544 | ROM_REGION( 0x200000, "gfx2", ROMREGION_DISPOSE ) |
| 1545 | | ROM_LOAD( "sk200-00.u16", 0x000000, 0x200000, CRC(2e297c61) SHA1(4071b945a1294fbc3d18fab1f144bf09af4349e8) ) |
| 1545 | ROM_LOAD( "sk200-00.u16", 0x000000, 0x200000, CRC(2e297c61) SHA1(4071b945a1294fbc3d18fab1f144bf09af4349e8) ) |
| 1546 | 1546 | |
| 1547 | 1547 | ROM_REGION( 0x400000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1548 | 1548 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1549 | 1549 | /* 0x040000 - 0x3fffff empty? */ |
| 1550 | 1550 | |
| 1551 | 1551 | ROM_REGION( 0x200000, "ymz", 0 ) /* Samples */ |
| 1552 | | ROM_LOAD( "sk300-00.u4", 0x000000, 0x200000, CRC(e6535c05) SHA1(8895b7c326e0261691cb184887ac1ca637302460) ) |
| 1552 | ROM_LOAD( "sk300-00.u4", 0x000000, 0x200000, CRC(e6535c05) SHA1(8895b7c326e0261691cb184887ac1ca637302460) ) |
| 1553 | 1553 | ROM_END |
| 1554 | 1554 | |
| 1555 | 1555 | ROM_START( sarukani ) |
| r4207 | r4208 | |
| 1557 | 1557 | ROM_LOAD ( "sknsj1.u10", 0x000000, 0x080000, CRC(7e2b836c) SHA1(92c5a7a2472496028bff0e5980d41dd294f42144) ) /* Japan BIOS */ |
| 1558 | 1558 | |
| 1559 | 1559 | ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */ |
| 1560 | | ROM_LOAD16_BYTE( "sk1j1.u10", 0x000000, 0x080000, CRC(fcc131b6) SHA1(5e3e71ee1f736b6098e671e6f57b1fb313c81adb) ) |
| 1561 | | ROM_LOAD16_BYTE( "sk1j1.u8", 0x000001, 0x080000, CRC(3b6aa343) SHA1(a969b20b1170d82351024cab9e37f2fbfd01ddeb) ) |
| 1560 | ROM_LOAD16_BYTE( "sk1j1.u10", 0x000000, 0x080000, CRC(fcc131b6) SHA1(5e3e71ee1f736b6098e671e6f57b1fb313c81adb) ) |
| 1561 | ROM_LOAD16_BYTE( "sk1j1.u8", 0x000001, 0x080000, CRC(3b6aa343) SHA1(a969b20b1170d82351024cab9e37f2fbfd01ddeb) ) |
| 1562 | 1562 | |
| 1563 | 1563 | ROM_REGION( 0x0400000, "gfx1", 0 ) |
| 1564 | | ROM_LOAD( "sk100-00.u24", 0x000000, 0x200000, CRC(151dd88a) SHA1(87bb1039a9883f721a315760eb2c4abe4a94046f) ) |
| 1565 | | ROM_LOAD( "sk-101.u20", 0x200000, 0x100000, CRC(779cce23) SHA1(70147b36d982524ba9921823e481ce8fbb5daa26) ) |
| 1564 | ROM_LOAD( "sk100-00.u24", 0x000000, 0x200000, CRC(151dd88a) SHA1(87bb1039a9883f721a315760eb2c4abe4a94046f) ) |
| 1565 | ROM_LOAD( "sk-101.u20", 0x200000, 0x100000, CRC(779cce23) SHA1(70147b36d982524ba9921823e481ce8fbb5daa26) ) |
| 1566 | 1566 | |
| 1567 | 1567 | ROM_REGION( 0x200000, "gfx2", ROMREGION_DISPOSE ) |
| 1568 | | ROM_LOAD( "sk200-00.u16", 0x000000, 0x200000, CRC(2e297c61) SHA1(4071b945a1294fbc3d18fab1f144bf09af4349e8) ) |
| 1568 | ROM_LOAD( "sk200-00.u16", 0x000000, 0x200000, CRC(2e297c61) SHA1(4071b945a1294fbc3d18fab1f144bf09af4349e8) ) |
| 1569 | 1569 | |
| 1570 | 1570 | ROM_REGION( 0x400000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */ |
| 1571 | 1571 | /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */ |
| 1572 | 1572 | /* 0x040000 - 0x3fffff empty? */ |
| 1573 | 1573 | |
| 1574 | 1574 | ROM_REGION( 0x200000, "ymz", 0 ) /* Samples */ |
| 1575 | | ROM_LOAD( "sk300-00.u4", 0x000000, 0x200000, CRC(e6535c05) SHA1(8895b7c326e0261691cb184887ac1ca637302460) ) |
| 1575 | ROM_LOAD( "sk300-00.u4", 0x000000, 0x200000, CRC(e6535c05) SHA1(8895b7c326e0261691cb184887ac1ca637302460) ) |
| 1576 | 1576 | ROM_END |
| 1577 | 1577 | |
| 1578 | 1578 | |
src/mame/drivers/seta2.c
| r4207 | r4208 | |
| 30 | 30 | P0-142A + extra parts 2000 Penguin Brothers Subsino |
| 31 | 31 | B0-003A (or B0-003B) 2000 Deer Hunting USA Sammy |
| 32 | 32 | B0-003A (or B0-003B) 2001 Turkey Hunting USA Sammy |
| 33 | B0-006B 2001 Funcube 2 Namco |
| 34 | B0-006B? 2001 Funcube 4 Namco |
| 33 | 35 | B0-010A 2001 Wing Shooting Championship Sammy |
| 34 | 36 | B0-010A 2002 Trophy Hunting - Bear & Moose Sammy |
| 35 | 37 | ------------------------------------------------------------------------------------------- |
| r4207 | r4208 | |
| 76 | 78 | This is probably due to a couple of frames with an odd or corrupt sprites list, |
| 77 | 79 | taking a long time to render. |
| 78 | 80 | |
| 81 | funcube: |
| 82 | - Hacked to run, as they use a ColdFire CPU. |
| 83 | - Pay-out key causes "unknown error". |
| 84 | |
| 79 | 85 | ***************************************************************************/ |
| 80 | 86 | |
| 81 | 87 | /*************************************************************************** |
| r4207 | r4208 | |
| 407 | 413 | ***************************************************************************/ |
| 408 | 414 | |
| 409 | 415 | #include "driver.h" |
| 416 | #include "memconv.h" |
| 417 | #include "deprecat.h" |
| 410 | 418 | #include "cpu/m68000/m68000.h" |
| 411 | | #include "deprecat.h" |
| 412 | 419 | #include "machine/tmp68301.h" |
| 420 | #include "cpu/h83002/h8.h" |
| 413 | 421 | #include "machine/eeprom.h" |
| 414 | 422 | #include "sound/x1_010.h" |
| 415 | 423 | #include "seta.h" |
| r4207 | r4208 | |
| 820 | 828 | ADDRESS_MAP_END |
| 821 | 829 | |
| 822 | 830 | |
| 831 | /*************************************************************************** |
| 832 | Funcube |
| 833 | ***************************************************************************/ |
| 823 | 834 | |
| 835 | UINT8 *funcube_outputs; |
| 836 | UINT8 *funcube_leds; |
| 837 | |
| 838 | UINT64 funcube_coin_start_cycles; |
| 839 | UINT8 funcube_hopper_motor; |
| 840 | UINT8 funcube_press; |
| 841 | |
| 842 | UINT8 funcube_serial_fifo[4]; |
| 843 | UINT8 funcube_serial_count; |
| 844 | |
| 845 | // Bus conversion functions: |
| 846 | |
| 847 | // RAM shared with the sub CPU |
| 848 | static READ32_HANDLER( funcube_nvram_dword_r ) |
| 849 | { |
| 850 | UINT16 val = generic_nvram16[offset]; |
| 851 | return ((val & 0xff00) << 8) | (val & 0x00ff); |
| 852 | } |
| 853 | |
| 854 | static WRITE32_HANDLER( funcube_nvram_dword_w ) |
| 855 | { |
| 856 | if (ACCESSING_BITS_0_7) |
| 857 | { |
| 858 | generic_nvram16[offset] = (generic_nvram16[offset] & 0xff00) | (data & 0x000000ff); |
| 859 | } |
| 860 | if (ACCESSING_BITS_16_23) |
| 861 | { |
| 862 | generic_nvram16[offset] = (generic_nvram16[offset] & 0x00ff) | ((data & 0x00ff0000) >> 8); |
| 863 | } |
| 864 | } |
| 865 | |
| 866 | static WRITE16_HANDLER( spriteram16_word_w ) |
| 867 | { |
| 868 | COMBINE_DATA( &spriteram16[offset] ); |
| 869 | } |
| 870 | |
| 871 | static READ16_HANDLER( spriteram16_word_r ) |
| 872 | { |
| 873 | return spriteram16[offset]; |
| 874 | } |
| 875 | |
| 876 | static READ16_HANDLER( paletteram16_word_r ) |
| 877 | { |
| 878 | return paletteram16[offset]; |
| 879 | } |
| 880 | |
| 881 | READWRITE16BETO32BE( spriteram32_dword, spriteram16_word_r, spriteram16_word_w ); |
| 882 | |
| 883 | READWRITE16BETO32BE( paletteram32_dword, paletteram16_word_r, paletteram16_xRRRRRGGGGGBBBBB_word_w ); |
| 884 | |
| 885 | WRITE16BETO32BE( seta2_vregs_dword, seta2_vregs_w ); |
| 886 | |
| 887 | // Main CPU |
| 888 | |
| 889 | // ColdFire peripherals |
| 890 | |
| 891 | enum { |
| 892 | CF_PPDAT = 0x1c8/4, |
| 893 | CF_MBSR = 0x1ec/4 |
| 894 | }; |
| 895 | |
| 896 | static UINT32 *coldfire_regs; |
| 897 | |
| 898 | static WRITE32_HANDLER( coldfire_regs_w ) |
| 899 | { |
| 900 | COMBINE_DATA( &coldfire_regs[offset] ); |
| 901 | } |
| 902 | |
| 903 | static READ32_HANDLER( coldfire_regs_r ) |
| 904 | { |
| 905 | switch( offset ) |
| 906 | { |
| 907 | case CF_MBSR: |
| 908 | return mame_rand(space->machine); |
| 909 | |
| 910 | case CF_PPDAT: |
| 911 | return input_port_read(space->machine, "BATTERY") << 16; |
| 912 | } |
| 913 | |
| 914 | return coldfire_regs[offset]; |
| 915 | } |
| 916 | |
| 917 | static READ32_HANDLER( funcube_debug_r ) |
| 918 | { |
| 919 | UINT32 ret = input_port_read(space->machine,"DEBUG"); |
| 920 | |
| 921 | // This bits let you move the crosshair in the inputs / touch panel test with a joystick |
| 922 | if (!(video_screen_get_frame_number(space->machine->primary_screen) % 3)) |
| 923 | ret |= 0x3f; |
| 924 | |
| 925 | return ret; |
| 926 | } |
| 927 | |
| 928 | |
| 929 | static ADDRESS_MAP_START( funcube_map, ADDRESS_SPACE_PROGRAM, 32 ) |
| 930 | AM_RANGE( 0x00000000, 0x0007ffff ) AM_ROM |
| 931 | AM_RANGE( 0x00200000, 0x0020ffff ) AM_RAM |
| 932 | |
| 933 | AM_RANGE( 0x00500000, 0x00500003 ) AM_READ( funcube_debug_r ) |
| 934 | AM_RANGE( 0x00500004, 0x00500007 ) AM_READWRITE( watchdog_reset32_r, SMH_NOP ) |
| 935 | |
| 936 | AM_RANGE( 0x00600000, 0x00600003 ) AM_WRITE( SMH_NOP ) // sound chip |
| 937 | |
| 938 | AM_RANGE( 0x00800000, 0x0083ffff ) AM_READWRITE( spriteram32_dword_r, spriteram32_dword_w ) AM_BASE((UINT32**)&spriteram16 ) AM_SIZE(&spriteram_size) |
| 939 | AM_RANGE( 0x00840000, 0x0084ffff ) AM_READWRITE( paletteram32_dword_r, paletteram32_dword_w ) AM_BASE((UINT32**)&paletteram16) |
| 940 | AM_RANGE( 0x00860000, 0x0086003f ) AM_WRITE( seta2_vregs_dword_w ) AM_BASE((UINT32**)&seta2_vregs) |
| 941 | |
| 942 | AM_RANGE( 0x00c00000, 0x00c002ff ) AM_READWRITE( funcube_nvram_dword_r, funcube_nvram_dword_w ) |
| 943 | |
| 944 | AM_RANGE(0xf0000000, 0xf00001ff ) AM_READWRITE( coldfire_regs_r, coldfire_regs_w ) AM_BASE(&coldfire_regs) // Module |
| 945 | AM_RANGE(0xffffe000, 0xffffffff ) AM_RAM // SRAM |
| 946 | ADDRESS_MAP_END |
| 947 | |
| 948 | // Sub CPU |
| 949 | |
| 950 | static ADDRESS_MAP_START( funcube_sub_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 951 | AM_RANGE( 0x000000, 0x01ffff ) AM_ROM |
| 952 | AM_RANGE( 0x200000, 0x20017f ) AM_RAM AM_BASE(&generic_nvram16) AM_SIZE(&generic_nvram_size) |
| 953 | ADDRESS_MAP_END |
| 954 | |
| 955 | |
| 956 | |
| 957 | |
| 958 | // Simulate coin drop through two sensors |
| 959 | |
| 960 | #define FUNCUBE_SUB_CPU_CLOCK (XTAL_14_7456MHz) |
| 961 | |
| 962 | static READ8_HANDLER( funcube_coins_r ) |
| 963 | { |
| 964 | UINT8 ret = input_port_read(space->machine,"SWITCH"); |
| 965 | UINT8 coin_bit0 = 1; // active low |
| 966 | UINT8 coin_bit1 = 1; |
| 967 | |
| 968 | UINT8 hopper_bit = (funcube_hopper_motor && !(video_screen_get_frame_number(space->machine->primary_screen)%20)) ? 1 : 0; |
| 969 | |
| 970 | const UINT64 coin_total_cycles = FUNCUBE_SUB_CPU_CLOCK / (1000/20); |
| 971 | |
| 972 | if ( funcube_coin_start_cycles ) |
| 973 | { |
| 974 | UINT64 elapsed = cpu_get_total_cycles(space->cpu) - funcube_coin_start_cycles; |
| 975 | |
| 976 | if ( elapsed < coin_total_cycles/2 ) |
| 977 | coin_bit0 = 0; |
| 978 | else if ( elapsed < coin_total_cycles ) |
| 979 | coin_bit1 = 0; |
| 980 | else |
| 981 | funcube_coin_start_cycles = 0; |
| 982 | } |
| 983 | else |
| 984 | { |
| 985 | if (!(ret & 1)) |
| 986 | funcube_coin_start_cycles = cpu_get_total_cycles(space->cpu); |
| 987 | } |
| 988 | |
| 989 | return (ret & ~7) | (hopper_bit << 2) | (coin_bit1 << 1) | coin_bit0; |
| 990 | } |
| 991 | |
| 992 | static READ8_HANDLER( funcube_serial_r ) |
| 993 | { |
| 994 | UINT8 ret = 0xff; |
| 995 | |
| 996 | switch( funcube_serial_count ) |
| 997 | { |
| 998 | case 4: ret = funcube_serial_fifo[0]; break; |
| 999 | case 3: ret = funcube_serial_fifo[1]; break; |
| 1000 | case 2: ret = funcube_serial_fifo[2]; break; |
| 1001 | case 1: ret = funcube_serial_fifo[3]; break; |
| 1002 | } |
| 1003 | |
| 1004 | if (funcube_serial_count) |
| 1005 | funcube_serial_count--; |
| 1006 | |
| 1007 | return ret; |
| 1008 | } |
| 1009 | |
| 1010 | static void funcube_debug_outputs(void) |
| 1011 | { |
| 1012 | #ifdef MAME_DEBUG |
| 1013 | // popmessage("LED: %02x OUT: %02x", (int)*funcube_leds, (int)*funcube_outputs); |
| 1014 | #endif |
| 1015 | } |
| 1016 | |
| 1017 | static WRITE8_HANDLER( funcube_leds_w ) |
| 1018 | { |
| 1019 | *funcube_leds = data; |
| 1020 | |
| 1021 | set_led_status( 0, (~data) & 0x01 ); // win lamp (red) |
| 1022 | set_led_status( 1, (~data) & 0x02 ); // win lamp (green) |
| 1023 | |
| 1024 | // Set in a moving pattern: 0111 -> 1011 -> 1101 -> 1110 |
| 1025 | set_led_status( 2, (~data) & 0x10 ); |
| 1026 | set_led_status( 3, (~data) & 0x20 ); |
| 1027 | set_led_status( 4, (~data) & 0x40 ); |
| 1028 | set_led_status( 5, (~data) & 0x80 ); |
| 1029 | |
| 1030 | funcube_debug_outputs(); |
| 1031 | } |
| 1032 | |
| 1033 | static READ8_HANDLER( funcube_outputs_r ) |
| 1034 | { |
| 1035 | // Bits 1,2,3 read |
| 1036 | return *funcube_outputs; |
| 1037 | } |
| 1038 | |
| 1039 | static WRITE8_HANDLER( funcube_outputs_w ) |
| 1040 | { |
| 1041 | *funcube_outputs = data; |
| 1042 | |
| 1043 | // Bits 0,1,3 written |
| 1044 | |
| 1045 | // Bit 0: hopper motor |
| 1046 | funcube_hopper_motor = (~data) & 0x01; |
| 1047 | |
| 1048 | // Bit 1: high on pay out |
| 1049 | |
| 1050 | // Bit 3: low after coining up, blinks on pay out |
| 1051 | set_led_status( 6, (~data) & 0x08 ); |
| 1052 | |
| 1053 | funcube_debug_outputs(); |
| 1054 | } |
| 1055 | |
| 1056 | |
| 1057 | static ADDRESS_MAP_START( funcube_sub_io, ADDRESS_SPACE_IO, 8 ) |
| 1058 | AM_RANGE( H8_PORT_7, H8_PORT_7 ) AM_READ( funcube_coins_r ) |
| 1059 | AM_RANGE( H8_PORT_4, H8_PORT_4 ) AM_NOP // unused |
| 1060 | AM_RANGE( H8_PORT_A, H8_PORT_A ) AM_READWRITE( funcube_outputs_r, funcube_outputs_w ) AM_BASE( &funcube_outputs ) |
| 1061 | AM_RANGE( H8_PORT_B, H8_PORT_B ) AM_WRITE( funcube_leds_w ) AM_BASE( &funcube_leds ) |
| 1062 | // AM_RANGE( H8_SERIAL_0, H8_SERIAL_0 ) // cabinets linking (jpunit) |
| 1063 | AM_RANGE( H8_SERIAL_1, H8_SERIAL_1 ) AM_READ( funcube_serial_r ) |
| 1064 | ADDRESS_MAP_END |
| 1065 | |
| 1066 | |
| 1067 | |
| 1068 | |
| 824 | 1069 | /*************************************************************************** |
| 825 | 1070 | |
| 826 | 1071 | Input Ports |
| r4207 | r4208 | |
| 1678 | 1923 | |
| 1679 | 1924 | |
| 1680 | 1925 | /*************************************************************************** |
| 1926 | Funcube |
| 1927 | ***************************************************************************/ |
| 1681 | 1928 | |
| 1929 | static INPUT_PORTS_START( funcube ) |
| 1930 | PORT_START("TOUCH_PRESS") |
| 1931 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME( "Touch Screen" ) |
| 1682 | 1932 | |
| 1933 | PORT_START("TOUCH_X") |
| 1934 | PORT_BIT( 0xff, 0x00, IPT_LIGHTGUN_X ) PORT_MINMAX(0,0x5c+1) PORT_CROSSHAIR(X, -(1.0 * 0x05d/0x5c), -1.0/0x5c, 0) PORT_SENSITIVITY(45) PORT_KEYDELTA(5) PORT_REVERSE |
| 1935 | |
| 1936 | PORT_START("TOUCH_Y") |
| 1937 | PORT_BIT( 0xff, 0x00, IPT_LIGHTGUN_Y ) PORT_MINMAX(0,0x46+1) PORT_CROSSHAIR(Y, -(0xf0-8.0)/0xf0*0x047/0x46, -1.0/0x46, 0) PORT_SENSITIVITY(45) PORT_KEYDELTA(5) PORT_REVERSE |
| 1938 | |
| 1939 | PORT_START("SWITCH") // c00030.l |
| 1940 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1) // coin solenoid 1 |
| 1941 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) // coin solenoid 2 |
| 1942 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) // hopper sensor |
| 1943 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) // game select |
| 1944 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CODE(KEYCODE_O) PORT_NAME( "Pay Out" ) |
| 1945 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME( "Reset Key" ) |
| 1946 | PORT_SERVICE( 0x40, IP_ACTIVE_LOW ) |
| 1947 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1948 | |
| 1949 | PORT_START("BATTERY") |
| 1950 | PORT_DIPNAME( 0x10, 0x10, "Battery" ) |
| 1951 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1952 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 1953 | |
| 1954 | PORT_START("DEBUG") |
| 1955 | // 500002.w |
| 1956 | PORT_BIT( 0x00000001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) |
| 1957 | PORT_BIT( 0x00000002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) |
| 1958 | PORT_BIT( 0x00000004, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) |
| 1959 | PORT_BIT( 0x00000008, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) |
| 1960 | PORT_BIT( 0x00000010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 1961 | PORT_BIT( 0x00000020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 1962 | |
| 1963 | // 500000.w |
| 1964 | PORT_DIPNAME( 0x00010000, 0x00010000, "Debug 0" ) |
| 1965 | PORT_DIPSETTING( 0x00000000, DEF_STR( Off ) ) |
| 1966 | PORT_DIPSETTING( 0x00010000, DEF_STR( On ) ) |
| 1967 | PORT_DIPNAME( 0x00020000, 0x00020000, "Debug 1" ) |
| 1968 | PORT_DIPSETTING( 0x00000000, DEF_STR( Off ) ) |
| 1969 | PORT_DIPSETTING( 0x00020000, DEF_STR( On ) ) |
| 1970 | PORT_DIPNAME( 0x00040000, 0x00040000, "Debug 2" ) // Touch-Screen |
| 1971 | PORT_DIPSETTING( 0x00000000, DEF_STR( Off ) ) |
| 1972 | PORT_DIPSETTING( 0x00040000, DEF_STR( On ) ) |
| 1973 | PORT_DIPNAME( 0x00080000, 0x00080000, "Debug 3" ) |
| 1974 | PORT_DIPSETTING( 0x00000000, DEF_STR( Off ) ) |
| 1975 | PORT_DIPSETTING( 0x00080000, DEF_STR( On ) ) |
| 1976 | PORT_DIPNAME( 0x00100000, 0x00100000, "Debug 4" ) |
| 1977 | PORT_DIPSETTING( 0x00000000, DEF_STR( Off ) ) |
| 1978 | PORT_DIPSETTING( 0x00100000, DEF_STR( On ) ) |
| 1979 | PORT_DIPNAME( 0x00200000, 0x00200000, "Debug 5" ) |
| 1980 | PORT_DIPSETTING( 0x00000000, DEF_STR( Off ) ) |
| 1981 | PORT_DIPSETTING( 0x00200000, DEF_STR( On ) ) |
| 1982 | PORT_DIPNAME( 0x00400000, 0x00400000, "Debug 6" ) |
| 1983 | PORT_DIPSETTING( 0x00000000, DEF_STR( Off ) ) |
| 1984 | PORT_DIPSETTING( 0x00400000, DEF_STR( On ) ) |
| 1985 | PORT_DIPNAME( 0x00800000, 0x00800000, "Debug 7" ) |
| 1986 | PORT_DIPSETTING( 0x00000000, DEF_STR( Off ) ) |
| 1987 | PORT_DIPSETTING( 0x00800000, DEF_STR( On ) ) |
| 1988 | INPUT_PORTS_END |
| 1989 | |
| 1990 | |
| 1991 | /*************************************************************************** |
| 1992 | |
| 1993 | |
| 1683 | 1994 | Graphics Layouts |
| 1684 | 1995 | |
| 1685 | 1996 | |
| r4207 | r4208 | |
| 1771 | 2082 | GFXDECODE_ENTRY( "gfx1", 0, layout_2bpp_hi, 0, 0x8000/16 ) /* ??? */ |
| 1772 | 2083 | GFXDECODE_END |
| 1773 | 2084 | |
| 2085 | /*************************************************************************** |
| 2086 | Funcube |
| 2087 | ***************************************************************************/ |
| 1774 | 2088 | |
| 2089 | static const gfx_layout funcube_layout_4bpp_lo = |
| 2090 | { |
| 2091 | 8,8, |
| 2092 | RGN_FRAC(1,1), |
| 2093 | 4, |
| 2094 | { STEP4(7*8, -8) }, |
| 2095 | { STEP8(0, 1) }, |
| 2096 | { STEP8(0, 8*8) }, |
| 2097 | 8*8*8 |
| 2098 | }; |
| 2099 | |
| 2100 | static const gfx_layout funcube_layout_4bpp_hi = |
| 2101 | { |
| 2102 | 8,8, |
| 2103 | RGN_FRAC(1,1), |
| 2104 | 4, |
| 2105 | { STEP4(4*8, -8) }, |
| 2106 | { STEP8(0, 1) }, |
| 2107 | { STEP8(0, 8*8) }, |
| 2108 | 8*8*8 |
| 2109 | }; |
| 2110 | |
| 2111 | static const gfx_layout funcube_layout_6bpp = |
| 2112 | { |
| 2113 | 8,8, |
| 2114 | RGN_FRAC(1,1), |
| 2115 | 6, |
| 2116 | { STEP4(7*8, -8), STEP2(3*8, -8) }, |
| 2117 | { STEP8(0, 1) }, |
| 2118 | { STEP8(0, 8*8) }, |
| 2119 | 8*8*8 |
| 2120 | }; |
| 2121 | |
| 2122 | static const gfx_layout funcube_layout_8bpp = |
| 2123 | { |
| 2124 | 8,8, |
| 2125 | RGN_FRAC(1,1), |
| 2126 | 8, |
| 2127 | { STEP8(7*8, -8) }, |
| 2128 | { STEP8(0, 1) }, |
| 2129 | { STEP8(0, 8*8) }, |
| 2130 | 8*8*8 |
| 2131 | }; |
| 2132 | |
| 2133 | static const gfx_layout funcube_layout_3bpp_lo = |
| 2134 | { |
| 2135 | 8,8, |
| 2136 | RGN_FRAC(1,1), |
| 2137 | 3, |
| 2138 | { 7*8,6*8,5*8 }, |
| 2139 | { STEP8(0, 1) }, |
| 2140 | { STEP8(0, 8*8) }, |
| 2141 | 8*8*8 |
| 2142 | }; |
| 2143 | |
| 2144 | static const gfx_layout funcube_layout_2bpp_hi = |
| 2145 | { |
| 2146 | 8,8, |
| 2147 | RGN_FRAC(1,1), |
| 2148 | 2, |
| 2149 | { STEP2(5*8, -8) }, |
| 2150 | { STEP8(0, 1) }, |
| 2151 | { STEP8(0, 8*8) }, |
| 2152 | 8*8*8 |
| 2153 | }; |
| 2154 | |
| 2155 | /* Tiles are 8bpp, but the hardware is additionally able to discard |
| 2156 | some bitplanes and use the low 4 bits only, or the high 4 bits only */ |
| 2157 | static GFXDECODE_START( funcube ) |
| 2158 | GFXDECODE_ENTRY( "gfx1", 0, funcube_layout_4bpp_lo, 0, 0x8000/16 ) |
| 2159 | GFXDECODE_ENTRY( "gfx1", 0, funcube_layout_4bpp_hi, 0, 0x8000/16 ) |
| 2160 | GFXDECODE_ENTRY( "gfx1", 0, funcube_layout_6bpp, 0, 0x8000/16 ) // 6bpp, but 4bpp granularity |
| 2161 | GFXDECODE_ENTRY( "gfx1", 0, funcube_layout_8bpp, 0, 0x8000/16 ) // 8bpp, but 4bpp granularity |
| 2162 | GFXDECODE_ENTRY( "gfx1", 0, funcube_layout_3bpp_lo, 0, 0x8000/16 ) // 3bpp, but 4bpp granularity |
| 2163 | GFXDECODE_ENTRY( "gfx1", 0, funcube_layout_2bpp_hi, 0, 0x8000/16 ) // ??? |
| 2164 | GFXDECODE_END |
| 2165 | |
| 2166 | |
| 1775 | 2167 | /*************************************************************************** |
| 1776 | 2168 | |
| 1777 | 2169 | Machine Drivers |
| r4207 | r4208 | |
| 1939 | 2331 | |
| 1940 | 2332 | |
| 1941 | 2333 | /*************************************************************************** |
| 2334 | Funcube |
| 2335 | ***************************************************************************/ |
| 1942 | 2336 | |
| 2337 | static INTERRUPT_GEN( funcube_interrupt ) |
| 2338 | { |
| 2339 | switch ( cpu_getiloops(device) ) |
| 2340 | { |
| 2341 | case 1: cpu_set_input_line(device, 2, HOLD_LINE); break; |
| 2342 | case 0: cpu_set_input_line(device, 1, HOLD_LINE); break; |
| 2343 | } |
| 2344 | } |
| 2345 | |
| 2346 | static INTERRUPT_GEN( funcube_sub_timer_irq ) |
| 2347 | { |
| 2348 | if ( funcube_serial_count ) |
| 2349 | { |
| 2350 | cpu_set_input_line(device, H8_SCI_1_RX, HOLD_LINE); |
| 2351 | } |
| 2352 | else |
| 2353 | { |
| 2354 | UINT8 press = input_port_read(device->machine,"TOUCH_PRESS"); |
| 2355 | UINT8 release = funcube_press && !press; |
| 2356 | |
| 2357 | if ( press || release ) |
| 2358 | { |
| 2359 | funcube_serial_fifo[0] = press ? 0xfe : 0xfd; |
| 2360 | funcube_serial_fifo[1] = input_port_read(device->machine,"TOUCH_X"); |
| 2361 | funcube_serial_fifo[2] = input_port_read(device->machine,"TOUCH_Y"); |
| 2362 | funcube_serial_fifo[3] = 0xff; |
| 2363 | funcube_serial_count = 4; |
| 2364 | } |
| 2365 | |
| 2366 | funcube_press = press; |
| 2367 | } |
| 2368 | |
| 2369 | cpu_set_input_line(device, H8_METRO_TIMER_HACK, HOLD_LINE); |
| 2370 | } |
| 2371 | |
| 2372 | static MACHINE_RESET( funcube ) |
| 2373 | { |
| 2374 | funcube_coin_start_cycles = 0; |
| 2375 | funcube_serial_count = 0; |
| 2376 | funcube_press = 0; |
| 2377 | funcube_hopper_motor = 0; |
| 2378 | } |
| 2379 | |
| 2380 | static MACHINE_DRIVER_START( funcube ) |
| 2381 | MDRV_CPU_ADD("main", M68040, XTAL_25_447MHz) // !! XCF5206 actually !! |
| 2382 | MDRV_CPU_PROGRAM_MAP(funcube_map, 0) |
| 2383 | MDRV_CPU_VBLANK_INT_HACK(funcube_interrupt,2) |
| 2384 | |
| 2385 | MDRV_CPU_ADD("sub", H83007, FUNCUBE_SUB_CPU_CLOCK) |
| 2386 | MDRV_CPU_PROGRAM_MAP(funcube_sub_map, 0) |
| 2387 | MDRV_CPU_IO_MAP(funcube_sub_io, 0) |
| 2388 | MDRV_CPU_PERIODIC_INT(funcube_sub_timer_irq, 60*10 ) |
| 2389 | |
| 2390 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 2391 | |
| 2392 | MDRV_MACHINE_RESET( funcube ) |
| 2393 | |
| 2394 | /* video hardware */ |
| 2395 | MDRV_SCREEN_ADD("main", RASTER) |
| 2396 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2397 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) // not accurate |
| 2398 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 2399 | MDRV_SCREEN_SIZE(0x200, 0x200) |
| 2400 | MDRV_SCREEN_VISIBLE_AREA(0x0, 0x140-1, 0x80, 0x170-1) |
| 2401 | |
| 2402 | MDRV_GFXDECODE(funcube) |
| 2403 | MDRV_PALETTE_LENGTH(0x8000+0xf0) /* extra 0xf0 because we might draw 256-color object with 16-color granularity */ |
| 2404 | |
| 2405 | MDRV_VIDEO_START(seta2) |
| 2406 | MDRV_VIDEO_UPDATE(seta2) |
| 2407 | MDRV_VIDEO_EOF(seta2) |
| 2408 | |
| 2409 | /* sound hardware */ |
| 2410 | |
| 2411 | // MSM9810B |
| 2412 | |
| 2413 | MACHINE_DRIVER_END |
| 2414 | |
| 2415 | |
| 2416 | /*************************************************************************** |
| 2417 | |
| 1943 | 2418 | ROMs Loading |
| 1944 | 2419 | |
| 1945 | 2420 | ***************************************************************************/ |
| r4207 | r4208 | |
| 2225 | 2700 | ROM_LOAD( "as1105m01.u18", 0x100000, 0x400000, CRC(633d0df8) SHA1(3401c424f5c207ef438a9269e0c0e7d482771fed) ) |
| 2226 | 2701 | ROM_END |
| 2227 | 2702 | |
| 2228 | | GAME( 1994, gundamex, 0, gundamex, gundamex, 0, ROT0, "Banpresto", "Mobile Suit Gundam EX Revue", 0 ) |
| 2229 | | GAME( 1995, grdians, 0, grdians, grdians, 0, ROT0, "Banpresto", "Guardians / Denjin Makai II", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) // Displays (c) Winky Soft at game's end. |
| 2230 | | GAME( 1996, mj4simai, 0, mj4simai, mj4simai, 0, ROT0, "Maboroshi Ware", "Wakakusamonogatari Mahjong Yonshimai (Japan)", GAME_NO_COCKTAIL ) |
| 2231 | | GAME( 1996, myangel, 0, myangel, myangel, 0, ROT0, "Namco", "Kosodate Quiz My Angel (Japan)", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2232 | | GAME( 1997, myangel2, 0, myangel2, myangel2, 0, ROT0, "Namco", "Kosodate Quiz My Angel 2 (Japan)", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2233 | | GAME( 1999, pzlbowl, 0, pzlbowl, pzlbowl, 0, ROT0, "Nihon System / Moss", "Puzzle De Bowling (Japan)", GAME_NO_COCKTAIL ) |
| 2234 | | GAME( 2000, penbros, 0, penbros, penbros, 0, ROT0, "Subsino", "Penguin Brothers (Japan)", GAME_NO_COCKTAIL ) |
| 2235 | | GAME( 2000, deerhunt, 0, samshoot, deerhunt, 0, ROT0, "Sammy USA Corporation", "Deer Hunting USA V4.3", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2236 | | GAME( 2000, deerhuna, deerhunt, samshoot, deerhunt, 0, ROT0, "Sammy USA Corporation", "Deer Hunting USA V4.2", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2237 | | GAME( 2000, deerhunb, deerhunt, samshoot, deerhunt, 0, ROT0, "Sammy USA Corporation", "Deer Hunting USA V4.0", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2238 | | GAME( 2000, deerhunc, deerhunt, samshoot, deerhunt, 0, ROT0, "Sammy USA Corporation", "Deer Hunting USA V2", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2239 | | GAME( 2001, turkhunt, 0, samshoot, turkhunt, 0, ROT0, "Sammy USA Corporation", "Turkey Hunting USA V1.0", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2240 | | GAME( 2001, wschamp, 0, samshoot, wschamp, 0, ROT0, "Sammy USA Corporation", "Wing Shooting Championship V2.0", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2241 | | GAME( 2001, wschampa, wschamp, samshoot, wschamp, 0, ROT0, "Sammy USA Corporation", "Wing Shooting Championship V1.01", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2242 | | GAME( 2002, trophyh, 0, samshoot, trophyh, 0, ROT0, "Sammy USA Corporation", "Trophy Hunting - Bear & Moose V1.0", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2703 | /*************************************************************************** |
| 2704 | |
| 2705 | FUNCUBE 2 (BET) |
| 2706 | (c)2001 NAMCO,LTD. |
| 2707 | --------------------- |
| 2708 | |
| 2709 | screenshot : |
| 2710 | http://www.bandainamcogames.co.jp/aa/am/mg/funcube2 |
| 2711 | |
| 2712 | cabinet : |
| 2713 | http://www.bandainamcogames.co.jp/aa/am/mg/funcube |
| 2714 | |
| 2715 | SYSTEM: EVA3_A |
| 2716 | |
| 2717 | CPU : COLDFIRE XCF5206 |
| 2718 | : H8 |
| 2719 | |
| 2720 | SND : MSM9810 |
| 2721 | |
| 2722 | SECURITY : FC21A (PIC) |
| 2723 | |
| 2724 | *IOPR-0 ROM : FC21IOPR-0 (= FUNCUBE 2,3,4,5) |
| 2725 | |
| 2726 | ***************************************************************************/ |
| 2727 | |
| 2728 | ROM_START( funcube2 ) |
| 2729 | ROM_REGION( 0x80000, "main", 0 ) /* XCF5206 Code */ |
| 2730 | ROM_LOAD( "funcube2-fc21pg0b.u3", 0x00000, 0x80000, CRC(add1c8a6) SHA1(bf91518da659098a4bad4e756533525fcc910570) ) |
| 2731 | |
| 2732 | ROM_REGION( 0x20000, "sub", 0 ) /* H8/3007 Code */ |
| 2733 | ROM_LOAD( "funcube2-fc21iopr.u49", 0x00000, 0x20000, CRC(314555ef) SHA1(b17e3926c8ef7f599856c198c330d2051aae13ad) ) |
| 2734 | |
| 2735 | ROM_REGION( 0x300, "pic", 0 ) /* PIC12C508? Code */ |
| 2736 | ROM_LOAD( "funcube2-fc21a", 0x000, 0x300, NO_DUMP ) |
| 2737 | |
| 2738 | ROM_REGION( 0x800000, "gfx1", ROMREGION_DISPOSE ) |
| 2739 | ROM_LOAD32_WORD( "funcube2-fc21obj0.u43", 0x000000, 0x400000, CRC(08cfe6d9) SHA1(d10f362dcde01f7a9855d8f76af3084b5dd1573a) ) |
| 2740 | ROM_LOAD32_WORD( "funcube2-fc21obj1.u42", 0x000002, 0x400000, CRC(4c1fbc20) SHA1(ff83691c19ce3600b31c494eaec26d2ac79e0028) ) |
| 2741 | |
| 2742 | ROM_REGION( 0x400000, "samples", 0 ) |
| 2743 | ROM_LOAD( "funcube2-fc21voi0.u47", 0x00000, 0x400000, CRC(25b5fc3f) SHA1(18b16a14e9ee62f3fea382e9d3fdcd43bdb165f5) ) |
| 2744 | ROM_END |
| 2745 | |
| 2746 | static DRIVER_INIT( funcube2 ) |
| 2747 | { |
| 2748 | UINT32 *main = (UINT32 *) memory_region(machine, "main"); |
| 2749 | UINT16 *sub = (UINT16 *) memory_region(machine, "sub"); |
| 2750 | |
| 2751 | main[0x810/4] = 0xe0214e71; |
| 2752 | main[0x814/4] = 0x4e71203c; |
| 2753 | |
| 2754 | main[0x81c/4] = 0x4e714e71; |
| 2755 | |
| 2756 | main[0xa5c/4] = 0x4e713e3c; |
| 2757 | main[0xa74/4] = 0x4e713e3c; |
| 2758 | main[0xa8c/4] = 0x4e7141f9; |
| 2759 | |
| 2760 | // Sub CPU |
| 2761 | |
| 2762 | sub[0x4d4/2] = 0x5470; // rte -> rts |
| 2763 | } |
| 2764 | |
| 2765 | /*************************************************************************** |
| 2766 | |
| 2767 | FUNCUBE 4 (BET) |
| 2768 | (c)2002 NAMCO,LTD. |
| 2769 | --------------------- |
| 2770 | |
| 2771 | screenshot : |
| 2772 | http://www.bandainamcogames.co.jp/aa/am/mg/funcube4 |
| 2773 | |
| 2774 | cabinet : |
| 2775 | http://www.bandainamcogames.co.jp/aa/am/mg/funcube |
| 2776 | |
| 2777 | SYSTEM: EVA3_A |
| 2778 | |
| 2779 | CPU : COLDFIRE XCF5206 |
| 2780 | : H8 |
| 2781 | |
| 2782 | SND : MSM9810 |
| 2783 | |
| 2784 | SECRITY : FC41A (PIC) |
| 2785 | |
| 2786 | *IOPR-0 ROM : FC21IOPR-0 (= FUNCUBE 2,3,4,5) |
| 2787 | |
| 2788 | ***************************************************************************/ |
| 2789 | |
| 2790 | ROM_START( funcube4 ) |
| 2791 | ROM_REGION( 0x80000, "main", 0 ) /* XCF5206 Code */ |
| 2792 | ROM_LOAD( "funcube4-fc41prg0.u3", 0x00000, 0x80000, CRC(ef870874) SHA1(dcb8dc3f780ca135df55e4b4f3c95620597ad28f) ) |
| 2793 | |
| 2794 | ROM_REGION( 0x20000, "sub", 0 ) /* H8/3007 Code */ |
| 2795 | ROM_LOAD( "funcube2-fc21iopr.u49", 0x00000, 0x20000, CRC(314555ef) SHA1(b17e3926c8ef7f599856c198c330d2051aae13ad) ) |
| 2796 | |
| 2797 | ROM_REGION( 0x300, "pic", 0 ) /* PIC12C508? Code */ |
| 2798 | ROM_LOAD( "funcube4-fc41a", 0x000, 0x300, NO_DUMP ) |
| 2799 | |
| 2800 | ROM_REGION( 0x800000, "gfx1", ROMREGION_DISPOSE ) |
| 2801 | ROM_LOAD32_WORD( "funcube4-fc41obj0.u43", 0x000000, 0x400000, CRC(9ff029d5) SHA1(e057f4929aa745ecaf9d4ff7e39974c82e440146) ) |
| 2802 | ROM_LOAD32_WORD( "funcube4-fc41obj1.u42", 0x000002, 0x400000, CRC(5ab7b087) SHA1(c600158b2358cdf947357170044dda2deacd4f37) ) |
| 2803 | |
| 2804 | ROM_REGION( 0x400000, "samples", 0 ) |
| 2805 | ROM_LOAD( "funcube4-fc41snd0.u47", 0x00000, 0x400000, CRC(48337257) SHA1(d1755024b824100070b489f48f6ae921765329e8) ) |
| 2806 | ROM_END |
| 2807 | |
| 2808 | // Note: same as funcube2 |
| 2809 | static DRIVER_INIT( funcube4 ) |
| 2810 | { |
| 2811 | UINT32 *main = (UINT32 *) memory_region(machine, "main"); |
| 2812 | UINT16 *sub = (UINT16 *) memory_region(machine, "sub"); |
| 2813 | |
| 2814 | main[0x810/4] = 0xe0214e71; |
| 2815 | main[0x814/4] = 0x4e71203c; |
| 2816 | |
| 2817 | main[0x81c/4] = 0x4e714e71; |
| 2818 | |
| 2819 | main[0xa5c/4] = 0x4e713e3c; |
| 2820 | main[0xa74/4] = 0x4e713e3c; |
| 2821 | main[0xa8c/4] = 0x4e7141f9; |
| 2822 | |
| 2823 | // Sub CPU |
| 2824 | |
| 2825 | sub[0x4d4/2] = 0x5470; // rte -> rts |
| 2826 | } |
| 2827 | |
| 2828 | GAME( 1994, gundamex, 0, gundamex, gundamex, 0, ROT0, "Banpresto", "Mobile Suit Gundam EX Revue", 0 ) |
| 2829 | GAME( 1995, grdians, 0, grdians, grdians, 0, ROT0, "Banpresto", "Guardians / Denjin Makai II", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) // Displays (c) Winky Soft at game's end. |
| 2830 | GAME( 1996, mj4simai, 0, mj4simai, mj4simai, 0, ROT0, "Maboroshi Ware", "Wakakusamonogatari Mahjong Yonshimai (Japan)", GAME_NO_COCKTAIL ) |
| 2831 | GAME( 1996, myangel, 0, myangel, myangel, 0, ROT0, "Namco", "Kosodate Quiz My Angel (Japan)", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2832 | GAME( 1997, myangel2, 0, myangel2, myangel2, 0, ROT0, "Namco", "Kosodate Quiz My Angel 2 (Japan)", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2833 | GAME( 1999, pzlbowl, 0, pzlbowl, pzlbowl, 0, ROT0, "Nihon System / Moss", "Puzzle De Bowling (Japan)", GAME_NO_COCKTAIL ) |
| 2834 | GAME( 2000, penbros, 0, penbros, penbros, 0, ROT0, "Subsino", "Penguin Brothers (Japan)", GAME_NO_COCKTAIL ) |
| 2835 | GAME( 2000, deerhunt, 0, samshoot, deerhunt, 0, ROT0, "Sammy USA Corporation", "Deer Hunting USA V4.3", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2836 | GAME( 2000, deerhuna, deerhunt, samshoot, deerhunt, 0, ROT0, "Sammy USA Corporation", "Deer Hunting USA V4.2", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2837 | GAME( 2000, deerhunb, deerhunt, samshoot, deerhunt, 0, ROT0, "Sammy USA Corporation", "Deer Hunting USA V4.0", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2838 | GAME( 2000, deerhunc, deerhunt, samshoot, deerhunt, 0, ROT0, "Sammy USA Corporation", "Deer Hunting USA V2", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2839 | GAME( 2001, turkhunt, 0, samshoot, turkhunt, 0, ROT0, "Sammy USA Corporation", "Turkey Hunting USA V1.0", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2840 | GAME( 2001, wschamp, 0, samshoot, wschamp, 0, ROT0, "Sammy USA Corporation", "Wing Shooting Championship V2.0", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2841 | GAME( 2001, wschampa, wschamp, samshoot, wschamp, 0, ROT0, "Sammy USA Corporation", "Wing Shooting Championship V1.01", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2842 | GAME( 2002, trophyh, 0, samshoot, trophyh, 0, ROT0, "Sammy USA Corporation", "Trophy Hunting - Bear & Moose V1.0", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2843 | GAME( 2001, funcube2, 0, funcube, funcube, funcube2, ROT0, "Namco", "Funcube 2 (v1.1)", GAME_NO_SOUND ) |
| 2844 | GAME( 2001, funcube4, 0, funcube, funcube, funcube4, ROT0, "Namco", "Funcube 4 (v1.0)", GAME_NO_SOUND ) |
src/mame/drivers/norautp.c
| r0 | r4208 | |
| 1 | /****************************************************************************** |
| 2 | |
| 3 | - NORAUT POKER - |
| 4 | ------------------ |
| 5 | |
| 6 | Driver by Roberto Fresca & Angelo Salese. |
| 7 | |
| 8 | |
| 9 | Games running on this hardware: |
| 10 | |
| 11 | * Noraut Poker, 1988, Noraut Ltd. |
| 12 | * Poker, 198?, Unknown. |
| 13 | |
| 14 | |
| 15 | ******************************************************************************* |
| 16 | |
| 17 | |
| 18 | Hardware Notes: |
| 19 | --------------- |
| 20 | |
| 21 | 1x Z80 |
| 22 | 3x PPI 8255 |
| 23 | 2x 6116 SRAM |
| 24 | 1x 3.6 Vcc Battery. |
| 25 | 1x 18.432 MHz. Xtal. |
| 26 | |
| 27 | 1x 555 + unknown yellow resonator, near the edge connector. |
| 28 | 1x 555 + resnet, near the battery. |
| 29 | |
| 30 | 2x 3pins jumpers (between the Z80 and ROM) |
| 31 | |
| 32 | JP1 (ABC); JP2 (DEF) |
| 33 | |
| 34 | PCB silksceened: AB+DE=512 BC+DE=256 |
| 35 | (CUT BC) EF=64/128 |
| 36 | |
| 37 | |
| 38 | 1x 10 DIP switches bank. |
| 39 | |
| 40 | |
| 41 | PCB silksceened: SMART-BOARD 131191 ISS.E (Made in USA) |
| 42 | |
| 43 | |
| 44 | ******************************************************************************* |
| 45 | |
| 46 | |
| 47 | Noraut Edge Connector (pinouts) |
| 48 | -------------------------------- |
| 49 | Component PN Solder Side |
| 50 | -------------------------------- |
| 51 | GND 01 GND |
| 52 | 5v DC 02 5v DC |
| 53 | 03 |
| 54 | 12v DC 04 12v DC |
| 55 | 05 |
| 56 | 06 |
| 57 | 07 |
| 58 | 0v 08 Readout Switch |
| 59 | 0v 09 Low level hopper |
| 60 | 0v 10 50p in |
| 61 | 0v 11 pound in |
| 62 | 0v 12 Bet switch |
| 63 | 0v 13 Deal switch |
| 64 | 0v 14 Hold 1 switch |
| 65 | 0v 15 Half Gamble switch |
| 66 | 0v 16 Change Card switch |
| 67 | Refil 17 Coin count/sense from hopper |
| 68 | Low Switch 18 High swicth |
| 69 | Hold 3 Switch 19 Hold 2 switch |
| 70 | Hold 5 Switch 20 Hold 4 switch |
| 71 | 10p coin 21 Deflect |
| 72 | 22 50p in meter |
| 73 | 23 Hopper Motor Drive (low volt switch line NOT 24v) |
| 74 | 24 |
| 75 | 25 spk+ |
| 76 | 26 Panel lamps clock |
| 77 | Monitor sync 27 Hold 1 lamp |
| 78 | Bet lamp 28 Deal lamp |
| 79 | Change lamp 29 Hold 4 lamp |
| 80 | Hold 5 lamp 30 Panel lights reset |
| 81 | High lamp 31 Half Gamble lamp |
| 82 | Hold 2 lamp 32 Low lamp |
| 83 | 10p Meter out 33 Meter refil |
| 84 | Video Green 34 Hold 3 lamp |
| 85 | Video Blue 35 10p in Meter |
| 86 | Video Red 36 Spark Detect (Not on all boards) |
| 87 | |
| 88 | |
| 89 | ******************************************************************************* |
| 90 | |
| 91 | |
| 92 | *** Game Notes *** |
| 93 | |
| 94 | Nothing, yet... |
| 95 | |
| 96 | |
| 97 | ******************************************************************************* |
| 98 | |
| 99 | -------------------- |
| 100 | *** Memory Map *** |
| 101 | -------------------- |
| 102 | |
| 103 | 0x0000 - 0x1FFF ; ROM space. |
| 104 | 0x6000 - 0x63FF ; NVRAM. |
| 105 | |
| 106 | 0x60 - 0x63 ; PPI 8255 0 - DIP Switches. |
| 107 | 0xA0 - 0xA3 ; PPI 8255 1 - Regular Inputs. |
| 108 | 0xC0 - 0xC3 ; PPI 8255 2 - Video RAM. |
| 109 | |
| 110 | |
| 111 | ******************************************************************************* |
| 112 | |
| 113 | |
| 114 | DRIVER UPDATES: |
| 115 | |
| 116 | |
| 117 | [2009-01-27] |
| 118 | |
| 119 | - Initial release. |
| 120 | - Defined ROM, RAM. |
| 121 | - Added 2x PPI 8255 for regular I/O. |
| 122 | - Added complete inputs and hooked DIP switches. |
| 123 | - Added video RAM support. |
| 124 | - Added NVRAM. |
| 125 | - Added lamps support. |
| 126 | - Added coin counters. |
| 127 | - Identified the sound writes. |
| 128 | - Added hardware description. |
| 129 | - Added pinout scheme. |
| 130 | - Added technical notes. |
| 131 | |
| 132 | [2009-01-28] |
| 133 | |
| 134 | - Merged GTI Poker (gtipoker.c) with this driver. |
| 135 | - Added new memory map and machine driver for gtipoker. |
| 136 | - Hooked 2x PPI 8255 to gtipoker. |
| 137 | - Hooked the video RAM access ports to gtipoker. |
| 138 | - Changed norautpn description from Noraut Poker (No Payout), |
| 139 | to Noraut Poker (bootleg), since the game has payout system. |
| 140 | - Some clean-ups. |
| 141 | |
| 142 | |
| 143 | TODO: |
| 144 | |
| 145 | - Analize the extra 8255 at 0xc0-0xc3 (full bidirectional port w/hshk) |
| 146 | - Video RAM (through 3rd PPI?). |
| 147 | - Find if wide chars are hardcoded or tied to a bit. |
| 148 | - Proper colors (missing PROM?) |
| 149 | - Lamps layout. |
| 150 | - Discrete sound. |
| 151 | |
| 152 | |
| 153 | *******************************************************************************/ |
| 154 | |
| 155 | |
| 156 | #define MASTER_CLOCK XTAL_18_432MHz |
| 157 | |
| 158 | #include "driver.h" |
| 159 | #include "cpu/z80/z80.h" |
| 160 | #include "machine/8255ppi.h" |
| 161 | #include "sound/dac.h" |
| 162 | |
| 163 | static UINT16 *np_vram; |
| 164 | static UINT16 np_addr; |
| 165 | |
| 166 | |
| 167 | /************************* |
| 168 | * Video Hardware * |
| 169 | *************************/ |
| 170 | |
| 171 | static VIDEO_START( norautp ) |
| 172 | { |
| 173 | np_vram = auto_malloc(0x1000); |
| 174 | } |
| 175 | |
| 176 | |
| 177 | static VIDEO_UPDATE( norautp ) |
| 178 | { |
| 179 | int x, y, count; |
| 180 | |
| 181 | count = 0; |
| 182 | |
| 183 | bitmap_fill(bitmap, cliprect, screen->machine->pens[0]); //black pen |
| 184 | |
| 185 | for(y = 0; y < 8; y++) |
| 186 | { |
| 187 | /*Double width*/ |
| 188 | if(y == 2 || (y >= 4 && y < 6)) |
| 189 | { |
| 190 | for(x = 0; x < 16; x++) |
| 191 | { |
| 192 | int tile = np_vram[count] & 0x3f; |
| 193 | int colour = (np_vram[count] & 0xc0) >> 6; |
| 194 | |
| 195 | drawgfx(bitmap,screen->machine->gfx[1], tile, colour, 0, 0, x * 32, y * 32, cliprect, TRANSPARENCY_NONE, 0); |
| 196 | |
| 197 | count+=2; |
| 198 | } |
| 199 | } |
| 200 | else |
| 201 | { |
| 202 | for(x = 0; x < 32; x++) |
| 203 | { |
| 204 | int tile = np_vram[count] & 0x3f; |
| 205 | int colour = (np_vram[count] & 0xc0) >> 6; |
| 206 | |
| 207 | drawgfx(bitmap,screen->machine->gfx[0], tile, colour, 0, 0, x * 16, y * 32, cliprect, TRANSPARENCY_NONE, 0); |
| 208 | |
| 209 | count++; |
| 210 | } |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | return 0; |
| 215 | } |
| 216 | |
| 217 | |
| 218 | static PALETTE_INIT( norautp ) |
| 219 | { |
| 220 | /* 1st gfx bank */ |
| 221 | palette_set_color(machine, 0, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ |
| 222 | palette_set_color(machine, 1, MAKE_RGB(0x7f, 0xff, 0x7f)); /* white? */ |
| 223 | palette_set_color(machine, 2, MAKE_RGB(0x00, 0x00, 0xff)); /* blue */ |
| 224 | palette_set_color(machine, 3, MAKE_RGB(0xff, 0xff, 0xff)); /* white */ |
| 225 | palette_set_color(machine, 4, MAKE_RGB(0xff, 0xff, 0xff)); /* white */ |
| 226 | palette_set_color(machine, 5, MAKE_RGB(0xff, 0x00, 0x00)); /* red */ |
| 227 | palette_set_color(machine, 6, MAKE_RGB(0xff, 0xff, 0xff)); /* white */ |
| 228 | palette_set_color(machine, 7, MAKE_RGB(0x00, 0x00, 0x00)); /* black */ |
| 229 | } |
| 230 | |
| 231 | |
| 232 | /************************* |
| 233 | * R/W Handlers * |
| 234 | *************************/ |
| 235 | |
| 236 | static WRITE8_DEVICE_HANDLER( lamps_w ) |
| 237 | { |
| 238 | /* LAMPS: |
| 239 | |
| 240 | 7654 3210 |
| 241 | ---- ---x Change Card / (Save?) |
| 242 | ---- --x- Hi/Lo |
| 243 | ---- -x-- Hold 1 |
| 244 | ---- x--- Hold 2 |
| 245 | ---x ---- Hold 3 |
| 246 | --x- ---- Hold 4 |
| 247 | -x-- ---- Hold 5 |
| 248 | x--- ---- Start (poker) |
| 249 | */ |
| 250 | |
| 251 | output_set_lamp_value(0, (data >> 0) & 1); /* Change */ |
| 252 | output_set_lamp_value(1, (data >> 1) & 1); /* Hi/Lo */ |
| 253 | output_set_lamp_value(2, (data >> 2) & 1); /* Hold 1 */ |
| 254 | output_set_lamp_value(3, (data >> 3) & 1); /* Hold 2 */ |
| 255 | output_set_lamp_value(4, (data >> 4) & 1); /* Hold 3 */ |
| 256 | output_set_lamp_value(5, (data >> 5) & 1); /* Hold 4 */ |
| 257 | output_set_lamp_value(6, (data >> 6) & 1); /* Hold 5 */ |
| 258 | output_set_lamp_value(7, (data >> 7) & 1); /* Start */ |
| 259 | } |
| 260 | |
| 261 | static WRITE8_DEVICE_HANDLER( ccounter_w ) |
| 262 | { |
| 263 | coin_counter_w(0, data & 0x20); /* Coin1 */ |
| 264 | coin_counter_w(1, data & 0x10); /* Coin2 */ |
| 265 | coin_counter_w(2, data & 0x08); /* Payout */ |
| 266 | |
| 267 | } |
| 268 | |
| 269 | static WRITE8_DEVICE_HANDLER( sndlamp_w ) |
| 270 | { |
| 271 | |
| 272 | output_set_lamp_value(8, (data >> 0) & 1); /* Start? */ |
| 273 | output_set_lamp_value(9, (data >> 1) & 1); /* Bet */ |
| 274 | |
| 275 | /* the 4 MSB are for discrete (or DAC) sound */ |
| 276 | dac_data_w(0, (data & 0xf0)); /* Sound DAC? */ |
| 277 | |
| 278 | } |
| 279 | |
| 280 | /*game waits for bit 7 (0x80) to be set.*/ |
| 281 | static READ8_HANDLER( test_r ) |
| 282 | { |
| 283 | return 0xff; |
| 284 | } |
| 285 | |
| 286 | static WRITE8_HANDLER( vram_data_w ) |
| 287 | { |
| 288 | np_vram[np_addr] = data & 0xff; |
| 289 | } |
| 290 | |
| 291 | static WRITE8_HANDLER( vram_addr_w ) |
| 292 | { |
| 293 | np_addr = data; |
| 294 | } |
| 295 | |
| 296 | |
| 297 | /************************* |
| 298 | * Memory Map Information * |
| 299 | *************************/ |
| 300 | |
| 301 | static ADDRESS_MAP_START( norautp_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 302 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 303 | AM_RANGE(0x6000, 0x63ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 304 | ADDRESS_MAP_END |
| 305 | |
| 306 | static ADDRESS_MAP_START( norautp_portmap, ADDRESS_SPACE_IO, 8 ) |
| 307 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 308 | AM_RANGE(0x60, 0x63) AM_DEVREADWRITE(PPI8255, "ppi8255_0", ppi8255_r, ppi8255_w) |
| 309 | AM_RANGE(0xa0, 0xa3) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w) |
| 310 | AM_RANGE(0xc0, 0xc0) AM_WRITE(vram_data_w) |
| 311 | AM_RANGE(0xc1, 0xc1) AM_WRITE(vram_addr_w) |
| 312 | AM_RANGE(0xc2, 0xc2) AM_READ(test_r) |
| 313 | // AM_RANGE(0xc0, 0xc3) AM_DEVREADWRITE(PPI8255, "ppi8255_2", ppi8255_r, ppi8255_w) |
| 314 | ADDRESS_MAP_END |
| 315 | |
| 316 | /* |
| 317 | Video RAM R/W: |
| 318 | |
| 319 | c0 --> W ; data (in case of PPI, port data) |
| 320 | c1 --> W ; addressing |
| 321 | c2 --> R ; status? |
| 322 | c3 --> W ; alternate 00 & 01 (in case of PPI, seting reseting bit 0 of hadshaked port) |
| 323 | |
| 324 | */ |
| 325 | |
| 326 | static ADDRESS_MAP_START( gtipoker_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 327 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 328 | AM_RANGE(0xd000, 0xd3ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 329 | ADDRESS_MAP_END |
| 330 | |
| 331 | static ADDRESS_MAP_START( gtipoker_portmap, ADDRESS_SPACE_IO, 8 ) |
| 332 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 333 | AM_RANGE(0x7c, 0x7f) AM_DEVREADWRITE(PPI8255, "ppi8255_0", ppi8255_r, ppi8255_w) |
| 334 | AM_RANGE(0xbc, 0xbf) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w) |
| 335 | AM_RANGE(0xdc, 0xdc) AM_WRITE(vram_data_w) |
| 336 | AM_RANGE(0xdd, 0xdd) AM_WRITE(vram_addr_w) |
| 337 | AM_RANGE(0xde, 0xde) AM_READ(test_r) |
| 338 | // AM_RANGE(0xdc, 0xdf) AM_DEVREADWRITE(PPI8255, "ppi8255_2", ppi8255_r, ppi8255_w) |
| 339 | AM_RANGE(0xef, 0xef) AM_READ(test_r) |
| 340 | ADDRESS_MAP_END |
| 341 | |
| 342 | |
| 343 | /************************* |
| 344 | * Input Ports * |
| 345 | *************************/ |
| 346 | |
| 347 | static INPUT_PORTS_START( norautp ) |
| 348 | |
| 349 | PORT_START("IN0") |
| 350 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Start / Deal") PORT_CODE(KEYCODE_1) /* Deal */ |
| 351 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Bet / Take") PORT_CODE(KEYCODE_2) /* Bet / Take */ |
| 352 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) /* Coin A */ |
| 353 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) /* Coin B */ |
| 354 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 355 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Hi") PORT_CODE(KEYCODE_A) /* Hi */ |
| 356 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Lo") PORT_CODE(KEYCODE_S) /* Lo */ |
| 357 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_NAME("Payout") PORT_CODE(KEYCODE_W) /* Payout */ |
| 358 | |
| 359 | PORT_START("IN1") |
| 360 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON10 ) PORT_NAME("Change Card") PORT_CODE(KEYCODE_D) /* Change Card */ |
| 361 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_NAME("Save (Half Gamble)") PORT_CODE(KEYCODE_F) /* Half Gamble */ |
| 362 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) /* Hold 1 */ |
| 363 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 2") PORT_CODE(KEYCODE_X) /* Hold 2 */ |
| 364 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold 3") PORT_CODE(KEYCODE_C) /* Hold 3 */ |
| 365 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Hold 4") PORT_CODE(KEYCODE_V) /* Hold 4 */ |
| 366 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B) /* Hold 5 */ |
| 367 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(2) /* Coin C */ |
| 368 | |
| 369 | PORT_START("DSW1") |
| 370 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 371 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 372 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 373 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 374 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 375 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 376 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 377 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 378 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 379 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 380 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 381 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 382 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 383 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 384 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 385 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Coinage ) ) |
| 386 | PORT_DIPSETTING( 0x20, "A=5; B=25; C=1" ) |
| 387 | PORT_DIPSETTING( 0x00, "A=50; B=25; C=5" ) |
| 388 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 389 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 390 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 391 | PORT_DIPNAME( 0x80, 0x80, "Set Value" ) |
| 392 | PORT_DIPSETTING( 0x80, "2 Pence" ) |
| 393 | PORT_DIPSETTING( 0x00, "10 Pence" ) |
| 394 | INPUT_PORTS_END |
| 395 | |
| 396 | static INPUT_PORTS_START( poker ) |
| 397 | |
| 398 | PORT_START("IN0") |
| 399 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Start / Deal") PORT_CODE(KEYCODE_1) /* Deal */ |
| 400 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Bet / Change Card") PORT_CODE(KEYCODE_2) /* Bet / Change Card */ |
| 401 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) /* Coin A */ |
| 402 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) /* Coin B */ |
| 403 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 404 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Hi") PORT_CODE(KEYCODE_A) /* Hi */ |
| 405 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Lo") PORT_CODE(KEYCODE_S) /* Lo */ |
| 406 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON12 ) PORT_NAME("Payout") PORT_CODE(KEYCODE_W) /* Payout */ |
| 407 | |
| 408 | PORT_START("IN1") |
| 409 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON10 ) PORT_NAME("Stand (Take)") PORT_CODE(KEYCODE_D) /* Stand (Take) */ |
| 410 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_NAME("Half Gamble") PORT_CODE(KEYCODE_F) /* Half Gamble */ |
| 411 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z) /* Hold 1 */ |
| 412 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 2") PORT_CODE(KEYCODE_X) /* Hold 2 */ |
| 413 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold 3") PORT_CODE(KEYCODE_C) /* Hold 3 */ |
| 414 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Hold 4") PORT_CODE(KEYCODE_V) /* Hold 4 */ |
| 415 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B) /* Hold 5 */ |
| 416 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON13 ) PORT_NAME("Cancel") PORT_CODE(KEYCODE_N) /* Cancel */ |
| 417 | |
| 418 | PORT_START("DSW1") |
| 419 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 420 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 421 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 422 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 423 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 424 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 425 | PORT_DIPNAME( 0x04, 0x04, "Bet Max" ) |
| 426 | PORT_DIPSETTING( 0x04, "1" ) |
| 427 | PORT_DIPSETTING( 0x00, "5" ) |
| 428 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Coinage ) ) |
| 429 | PORT_DIPSETTING( 0x08, "A=1; B=5" ) |
| 430 | PORT_DIPSETTING( 0x00, "A=50; B=5" ) |
| 431 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 432 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 433 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 434 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 435 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 436 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 437 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 438 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 439 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 440 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 441 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 442 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 443 | INPUT_PORTS_END |
| 444 | |
| 445 | |
| 446 | /************************* |
| 447 | * Graphics Layouts * |
| 448 | *************************/ |
| 449 | |
| 450 | static const gfx_layout charlayout = |
| 451 | { |
| 452 | 16,32, |
| 453 | RGN_FRAC(1,1), |
| 454 | 1, |
| 455 | { 0 }, |
| 456 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, |
| 457 | { 0*16, 0*16, 1*16, 1*16, 2*16, 2*16, 3*16, 3*16, 4*16, 4*16, 5*16, 5*16, 6*16, 6*16, 7*16, 7*16, |
| 458 | 8*16, 8*16, 9*16, 9*16, 10*16,10*16,11*16,11*16,12*16,12*16,13*16,13*16,14*16,14*16,15*16,15*16 }, |
| 459 | 16*16 |
| 460 | }; |
| 461 | |
| 462 | static const gfx_layout charlayout32x32 = |
| 463 | { |
| 464 | 32,32, |
| 465 | RGN_FRAC(1,1), |
| 466 | 1, |
| 467 | { 0 }, |
| 468 | { 0,0, 1,1, 2,2, 3,3, 4,4, 5,5, 6,6, 7,7, 8,8, 9,9, 10,10, 11,11, 12,12, 13,13, 14,14, 15,15 }, |
| 469 | { 0*16, 0*16, 1*16, 1*16, 2*16, 2*16, 3*16, 3*16, 4*16, 4*16, 5*16, 5*16, 6*16, 6*16, 7*16, 7*16, |
| 470 | 8*16, 8*16, 9*16, 9*16, 10*16,10*16,11*16,11*16,12*16,12*16,13*16,13*16,14*16,14*16,15*16,15*16 }, |
| 471 | 16*16 |
| 472 | }; |
| 473 | |
| 474 | |
| 475 | /****************************** |
| 476 | * Graphics Decode Information * |
| 477 | ******************************/ |
| 478 | |
| 479 | static GFXDECODE_START( norautp ) |
| 480 | GFXDECODE_ENTRY( "gfx", 0, charlayout, 0, 4 ) |
| 481 | GFXDECODE_ENTRY( "gfx", 0, charlayout32x32, 0, 4 ) |
| 482 | GFXDECODE_END |
| 483 | |
| 484 | |
| 485 | /************************************ |
| 486 | * PPI 8255 (x3) Interface * |
| 487 | ************************************/ |
| 488 | |
| 489 | static const ppi8255_interface ppi8255_intf[3] = |
| 490 | { |
| 491 | { /* (60-63) Mode 0 - Port A set as input */ |
| 492 | DEVCB_INPUT_PORT("DSW1"), /* Port A read */ |
| 493 | DEVCB_NULL, /* Port B read */ |
| 494 | DEVCB_NULL, /* Port C read */ |
| 495 | DEVCB_NULL, /* Port A write */ |
| 496 | DEVCB_HANDLER(lamps_w), /* Port B write */ |
| 497 | DEVCB_HANDLER(ccounter_w) /* Port C write */ |
| 498 | }, |
| 499 | { /* (a0-a3) Mode 0 - Ports A & B set as input */ |
| 500 | DEVCB_INPUT_PORT("IN0"), /* Port A read */ |
| 501 | DEVCB_INPUT_PORT("IN1"), /* Port B read */ |
| 502 | DEVCB_NULL, /* Port C read */ |
| 503 | DEVCB_NULL, /* Port A write */ |
| 504 | DEVCB_NULL, /* Port B write */ |
| 505 | DEVCB_HANDLER(sndlamp_w) /* Port C write */ |
| 506 | }, |
| 507 | { /* (c0-c3) Group A Mode 2 (5-handshacked bidirectional port) */ |
| 508 | DEVCB_NULL, /* Port A read */ |
| 509 | DEVCB_NULL, /* Port B read */ |
| 510 | DEVCB_NULL, /* Port C read */ |
| 511 | DEVCB_NULL, /* Port A write */ |
| 512 | DEVCB_NULL, /* Port B write */ |
| 513 | DEVCB_NULL /* Port C write */ |
| 514 | } |
| 515 | }; |
| 516 | |
| 517 | |
| 518 | /************************* |
| 519 | * Machine Drivers * |
| 520 | *************************/ |
| 521 | |
| 522 | static MACHINE_DRIVER_START( norautp ) |
| 523 | |
| 524 | /* basic machine hardware */ |
| 525 | MDRV_CPU_ADD("main", Z80, MASTER_CLOCK/6) /* guess */ |
| 526 | MDRV_CPU_PROGRAM_MAP(norautp_map, 0) |
| 527 | MDRV_CPU_IO_MAP(norautp_portmap, 0) |
| 528 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 529 | |
| 530 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 531 | |
| 532 | /* 3x 8255 */ |
| 533 | MDRV_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] ) |
| 534 | MDRV_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] ) |
| 535 | MDRV_PPI8255_ADD( "ppi8255_2", ppi8255_intf[2] ) |
| 536 | |
| 537 | /* video hardware */ |
| 538 | MDRV_SCREEN_ADD("main", RASTER) |
| 539 | MDRV_SCREEN_REFRESH_RATE(60) |
| 540 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 541 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 542 | MDRV_SCREEN_SIZE(32*16, 32*16) |
| 543 | MDRV_SCREEN_VISIBLE_AREA(2*16, 31*16-1, 0*16, 16*16-1) |
| 544 | |
| 545 | MDRV_GFXDECODE(norautp) |
| 546 | |
| 547 | MDRV_PALETTE_INIT(norautp) |
| 548 | MDRV_PALETTE_LENGTH(8) |
| 549 | MDRV_VIDEO_START(norautp) |
| 550 | MDRV_VIDEO_UPDATE(norautp) |
| 551 | |
| 552 | /* sound hardware */ |
| 553 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 554 | MDRV_SOUND_ADD("dac", DAC, 0) |
| 555 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 556 | MACHINE_DRIVER_END |
| 557 | |
| 558 | static MACHINE_DRIVER_START( gtipoker ) |
| 559 | MDRV_IMPORT_FROM(norautp) |
| 560 | |
| 561 | MDRV_CPU_MODIFY("main") |
| 562 | MDRV_CPU_PROGRAM_MAP(gtipoker_map, 0) |
| 563 | MDRV_CPU_IO_MAP(gtipoker_portmap, 0) |
| 564 | |
| 565 | MACHINE_DRIVER_END |
| 566 | |
| 567 | |
| 568 | /************************* |
| 569 | * Rom Load * |
| 570 | *************************/ |
| 571 | |
| 572 | ROM_START( norautp ) |
| 573 | ROM_REGION( 0x10000, "main", 0 ) |
| 574 | ROM_LOAD( "jpoker.bin", 0x0000, 0x2000, CRC(e22ed34d) SHA1(108f034335b5bed183ee316a61880f7b9485b34f) ) |
| 575 | |
| 576 | ROM_REGION( 0x10000, "gfx", ROMREGION_DISPOSE ) |
| 577 | ROM_LOAD( "displayrom.bin", 0x00000, 0x10000, CRC(ed3605bd) SHA1(0174e880835815558328789226234e36b673b249) ) |
| 578 | ROM_END |
| 579 | |
| 580 | /* Has (c)1983 GTI in the roms, and was called 'Poker.zip' GFX roms contain 16x16 tiles of cards */ |
| 581 | /* Nothing else is known about this set / game */ |
| 582 | |
| 583 | ROM_START( gtipoker ) |
| 584 | ROM_REGION( 0x10000, "main", 0 ) |
| 585 | ROM_LOAD( "u12.rom", 0x0000, 0x1000, CRC(abaa257a) SHA1(f830213ae0aaad5a9a44ec77c5a186e9e02fa041) ) |
| 586 | ROM_LOAD( "u18.rom", 0x1000, 0x1000, CRC(1b7e2877) SHA1(717fb70889804baa468203f20b1e7f73b55cc21e) ) |
| 587 | |
| 588 | ROM_REGION( 0x1000, "gfx",ROMREGION_DISPOSE ) |
| 589 | ROM_LOAD( "u31.rom", 0x0000, 0x1000, CRC(2028db2c) SHA1(0f81bb71e88c60df3817f58c28715ce2ea01ad4d) ) |
| 590 | ROM_END |
| 591 | |
| 592 | /* |
| 593 | Poker game - manufacturer unknown |
| 594 | |
| 595 | Z80 CPU |
| 596 | |
| 597 | Program rom = 2764 (2nd Half blank) |
| 598 | Character rom = 2732 |
| 599 | |
| 600 | 18.432 Mhz crystal |
| 601 | |
| 602 | sound probably discrete with ne555 timer chip (located near amp/volume control) |
| 603 | */ |
| 604 | |
| 605 | ROM_START( norautpn ) |
| 606 | ROM_REGION( 0x10000, "main", 0 ) |
| 607 | ROM_LOAD( "prog.bin", 0x0000, 0x2000, CRC(8b1cfd24) SHA1(d673baed1c1e5b54a34b7a5857b269a725737e92) ) |
| 608 | |
| 609 | ROM_REGION( 0x1000, "gfx", ROMREGION_DISPOSE ) |
| 610 | ROM_LOAD( "char.bin", 0x0000, 0x1000, CRC(955eac6f) SHA1(470d8bad1a5d2a0a08dd129e6393c3c3a4ef2159) ) |
| 611 | ROM_END |
| 612 | |
| 613 | |
| 614 | /************************* |
| 615 | * Game Drivers * |
| 616 | *************************/ |
| 617 | |
| 618 | /* YEAR NAME PARENT MACHINE INPUT INIT ROT COMPANY FULLNAME FLAGS */ |
| 619 | GAME( 1988, norautp, 0, norautp, norautp, 0, ROT0, "Noraut Ltd.", "Noraut Poker", GAME_NO_SOUND | GAME_IMPERFECT_COLORS ) |
| 620 | GAME( 1983, gtipoker, 0, gtipoker, norautp, 0, ROT0, "GTI Inc", "GTI Poker", GAME_NO_SOUND | GAME_IMPERFECT_COLORS | GAME_NOT_WORKING ) |
| 621 | |
| 622 | /*The following has everything uncertain, seems a bootleg/hack and doesn't have any identification strings in program rom. */ |
| 623 | GAME( 198?, norautpn, norautp, norautp, poker, 0, ROT0, "bootleg?", "Noraut Poker (bootleg)", GAME_NO_SOUND | GAME_IMPERFECT_COLORS ) |
src/mame/drivers/goldstar.c
| r4207 | r4208 | |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | 262 | static ADDRESS_MAP_START( cm_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 263 | | AM_RANGE(0x0000, 0xbfff) AM_ROM AM_WRITENOP |
| 263 | AM_RANGE(0x0000, 0xcfff) AM_ROM AM_WRITENOP |
| 264 | 264 | |
| 265 | 265 | AM_RANGE(0xd000, 0xd7ff) AM_RAM AM_BASE(&nvram) AM_SIZE(&nvram_size) |
| 266 | 266 | |
| r4207 | r4208 | |
| 2850 | 2850 | static const ppi8255_interface ncb3_ppi8255_intf[3] = |
| 2851 | 2851 | { |
| 2852 | 2852 | { /* A, B & C set as input */ |
| 2853 | | DEVICE8_PORT("IN0"), /* Port A read */ |
| 2854 | | DEVICE8_PORT("IN3"), /* Port B read */ //Player2 controls, confirmed. |
| 2855 | | NULL, /* Port C read */ |
| 2856 | | NULL, /* Port A write */ |
| 2857 | | NULL, /* Port B write */ |
| 2858 | | NULL /* Port C write */ |
| 2853 | DEVCB_INPUT_PORT("IN0"), /* Port A read */ |
| 2854 | DEVCB_INPUT_PORT("IN3"), /* Port B read */ //Player2 controls, confirmed. |
| 2855 | DEVCB_NULL, /* Port C read */ |
| 2856 | DEVCB_NULL, /* Port A write */ |
| 2857 | DEVCB_NULL, /* Port B write */ |
| 2858 | DEVCB_NULL /* Port C write */ |
| 2859 | 2859 | }, |
| 2860 | 2860 | { /* A, B & C set as input */ |
| 2861 | | DEVICE8_PORT("IN1"), /* Port A read */ |
| 2862 | | DEVICE8_PORT("IN2"), /* Port B read */ |
| 2863 | | DEVICE8_PORT("DSW1"), /* Port C read */ |
| 2864 | | NULL, /* Port A write */ |
| 2865 | | NULL, /* Port B write */ |
| 2866 | | NULL /* Port C write */ |
| 2861 | DEVCB_INPUT_PORT("IN1"), /* Port A read */ |
| 2862 | DEVCB_INPUT_PORT("IN2"), /* Port B read */ |
| 2863 | DEVCB_INPUT_PORT("DSW1"), /* Port C read */ |
| 2864 | DEVCB_NULL, /* Port A write */ |
| 2865 | DEVCB_NULL, /* Port B write */ |
| 2866 | DEVCB_NULL /* Port C write */ |
| 2867 | 2867 | }, |
| 2868 | 2868 | { /* A set as input */ |
| 2869 | | DEVICE8_PORT("DSW2"), /* Port A read */ |
| 2870 | | NULL, /* Port B read */ |
| 2871 | | NULL, /* Port C read */ |
| 2872 | | NULL, /* Port A write */ |
| 2873 | | NULL, /* Port B write */ |
| 2874 | | NULL /* Port C write */ |
| 2869 | DEVCB_INPUT_PORT("DSW2"), /* Port A read */ |
| 2870 | DEVCB_NULL, /* Port B read */ |
| 2871 | DEVCB_NULL, /* Port C read */ |
| 2872 | DEVCB_NULL, /* Port A write */ |
| 2873 | DEVCB_NULL, /* Port B write */ |
| 2874 | DEVCB_NULL /* Port C write */ |
| 2875 | 2875 | } |
| 2876 | 2876 | }; |
| 2877 | 2877 | |
| 2878 | 2878 | static const ppi8255_interface cm_ppi8255_intf[2] = |
| 2879 | 2879 | { |
| 2880 | 2880 | { /* A, B & C set as input */ |
| 2881 | | DEVICE8_PORT("IN0"), /* Port A read */ |
| 2882 | | DEVICE8_PORT("IN1"), /* Port B read */ |
| 2883 | | DEVICE8_PORT("IN2"), /* Port C read */ |
| 2884 | | NULL, /* Port A write */ |
| 2885 | | NULL, /* Port B write */ |
| 2886 | | NULL /* Port C write */ |
| 2881 | DEVCB_INPUT_PORT("IN0"), /* Port A read */ |
| 2882 | DEVCB_INPUT_PORT("IN1"), /* Port B read */ |
| 2883 | DEVCB_INPUT_PORT("IN2"), /* Port C read */ |
| 2884 | DEVCB_NULL, /* Port A write */ |
| 2885 | DEVCB_NULL, /* Port B write */ |
| 2886 | DEVCB_NULL /* Port C write */ |
| 2887 | 2887 | }, |
| 2888 | 2888 | { /* A, B & C set as input */ |
| 2889 | | DEVICE8_PORT("DSW1"), /* Port A read */ |
| 2890 | | DEVICE8_PORT("DSW2"), /* Port B read */ |
| 2891 | | DEVICE8_PORT("DSW3"), /* Port C read */ |
| 2892 | | NULL, /* Port A write */ |
| 2893 | | NULL, /* Port B write */ |
| 2894 | | NULL /* Port C write */ |
| 2889 | DEVCB_INPUT_PORT("DSW1"), /* Port A read */ |
| 2890 | DEVCB_INPUT_PORT("DSW2"), /* Port B read */ |
| 2891 | DEVCB_INPUT_PORT("DSW3"), /* Port C read */ |
| 2892 | DEVCB_NULL, /* Port A write */ |
| 2893 | DEVCB_NULL, /* Port B write */ |
| 2894 | DEVCB_NULL /* Port C write */ |
| 2895 | 2895 | } |
| 2896 | 2896 | }; |
| 2897 | 2897 | |
| 2898 | 2898 | static const ppi8255_interface lucky8_ppi8255_intf[3] = |
| 2899 | 2899 | { |
| 2900 | 2900 | { /* A, B & C set as input */ |
| 2901 | | DEVICE8_PORT("IN0"), /* Port A read */ |
| 2902 | | DEVICE8_PORT("IN1"), /* Port B read */ |
| 2903 | | DEVICE8_PORT("IN2"), /* Port C read */ |
| 2904 | | NULL, /* Port A write */ |
| 2905 | | NULL, /* Port B write */ |
| 2906 | | NULL /* Port C write */ |
| 2901 | DEVCB_INPUT_PORT("IN0"), /* Port A read */ |
| 2902 | DEVCB_INPUT_PORT("IN1"), /* Port B read */ |
| 2903 | DEVCB_INPUT_PORT("IN2"), /* Port C read */ |
| 2904 | DEVCB_NULL, /* Port A write */ |
| 2905 | DEVCB_NULL, /* Port B write */ |
| 2906 | DEVCB_NULL /* Port C write */ |
| 2907 | 2907 | }, |
| 2908 | 2908 | { /* A, B & C set as input */ |
| 2909 | | DEVICE8_PORT("IN3"), /* Port A read */ |
| 2910 | | DEVICE8_PORT("IN4"), /* Port B read */ |
| 2911 | | DEVICE8_PORT("DSW1"), /* Port C read */ |
| 2912 | | NULL, /* Port A write */ |
| 2913 | | NULL, /* Port B write */ |
| 2914 | | NULL /* Port C write */ |
| 2909 | DEVCB_INPUT_PORT("IN3"), /* Port A read */ |
| 2910 | DEVCB_INPUT_PORT("IN4"), /* Port B read */ |
| 2911 | DEVCB_INPUT_PORT("DSW1"), /* Port C read */ |
| 2912 | DEVCB_NULL, /* Port A write */ |
| 2913 | DEVCB_NULL, /* Port B write */ |
| 2914 | DEVCB_NULL /* Port C write */ |
| 2915 | 2915 | }, |
| 2916 | 2916 | { /* A set as input */ |
| 2917 | | DEVICE8_PORT("DSW2"), /* Port A read */ |
| 2918 | | NULL, /* Port B read */ |
| 2919 | | NULL, /* Port C read */ |
| 2920 | | NULL, /* Port A write */ |
| 2921 | | NULL, /* Port B write */ |
| 2922 | | NULL /* Port C write */ |
| 2917 | DEVCB_INPUT_PORT("DSW2"), /* Port A read */ |
| 2918 | DEVCB_NULL, /* Port B read */ |
| 2919 | DEVCB_NULL, /* Port C read */ |
| 2920 | DEVCB_NULL, /* Port A write */ |
| 2921 | DEVCB_NULL, /* Port B write */ |
| 2922 | DEVCB_NULL /* Port C write */ |
| 2923 | 2923 | } |
| 2924 | 2924 | }; |
| 2925 | 2925 | |
| 2926 | 2926 | static const ppi8255_interface kkojnoli_ppi8255_intf[3] = |
| 2927 | 2927 | { |
| 2928 | 2928 | { /* A, B & C set as input */ |
| 2929 | | DEVICE8_PORT("IN0"), /* Port A read */ |
| 2930 | | DEVICE8_PORT("IN1"), /* Port B read */ |
| 2931 | | DEVICE8_PORT("IN2"), /* Port C read */ |
| 2932 | | NULL, /* Port A write */ |
| 2933 | | NULL, /* Port B write */ |
| 2934 | | NULL /* Port C write */ |
| 2929 | DEVCB_INPUT_PORT("IN0"), /* Port A read */ |
| 2930 | DEVCB_INPUT_PORT("IN1"), /* Port B read */ |
| 2931 | DEVCB_INPUT_PORT("IN2"), /* Port C read */ |
| 2932 | DEVCB_NULL, /* Port A write */ |
| 2933 | DEVCB_NULL, /* Port B write */ |
| 2934 | DEVCB_NULL /* Port C write */ |
| 2935 | 2935 | }, |
| 2936 | 2936 | { /* A, B & C set as input */ |
| 2937 | | DEVICE8_PORT("IN3"), /* Port A read */ |
| 2938 | | DEVICE8_PORT("IN4"), /* Port B read */ |
| 2939 | | NULL, /* Port C read */ |
| 2940 | | NULL, /* Port A write */ |
| 2941 | | NULL, /* Port B write */ |
| 2942 | | NULL /* Port C write */ |
| 2937 | DEVCB_INPUT_PORT("IN3"), /* Port A read */ |
| 2938 | DEVCB_INPUT_PORT("IN4"), /* Port B read */ |
| 2939 | DEVCB_NULL, /* Port C read */ |
| 2940 | DEVCB_NULL, /* Port A write */ |
| 2941 | DEVCB_NULL, /* Port B write */ |
| 2942 | DEVCB_NULL /* Port C write */ |
| 2943 | 2943 | }, |
| 2944 | 2944 | { /* A set as input */ |
| 2945 | | DEVICE8_PORT("DSW1"), /* Port A read */ |
| 2946 | | NULL, /* Port B read */ |
| 2947 | | NULL, /* Port C read */ |
| 2948 | | NULL, /* Port A write */ |
| 2949 | | NULL, /* Port B write */ |
| 2950 | | NULL /* Port C write */ |
| 2945 | DEVCB_INPUT_PORT("DSW1"), /* Port A read */ |
| 2946 | DEVCB_NULL, /* Port B read */ |
| 2947 | DEVCB_NULL, /* Port C read */ |
| 2948 | DEVCB_NULL, /* Port A write */ |
| 2949 | DEVCB_NULL, /* Port B write */ |
| 2950 | DEVCB_NULL /* Port C write */ |
| 2951 | 2951 | } |
| 2952 | 2952 | }; |
| 2953 | 2953 | |
| 2954 | 2954 | static const ppi8255_interface ladylinr_ppi8255_intf[2] = |
| 2955 | 2955 | { |
| 2956 | 2956 | { /* A, B & C set as input */ |
| 2957 | | DEVICE8_PORT("IN0"), /* Port A read */ |
| 2958 | | DEVICE8_PORT("IN1"), /* Port B read */ |
| 2959 | | DEVICE8_PORT("IN2"), /* Port C read */ |
| 2960 | | NULL, /* Port A write */ |
| 2961 | | NULL, /* Port B write */ |
| 2962 | | NULL /* Port C write */ |
| 2957 | DEVCB_INPUT_PORT("IN0"), /* Port A read */ |
| 2958 | DEVCB_INPUT_PORT("IN1"), /* Port B read */ |
| 2959 | DEVCB_INPUT_PORT("IN2"), /* Port C read */ |
| 2960 | DEVCB_NULL, /* Port A write */ |
| 2961 | DEVCB_NULL, /* Port B write */ |
| 2962 | DEVCB_NULL /* Port C write */ |
| 2963 | 2963 | }, |
| 2964 | 2964 | { /* A set as input */ |
| 2965 | | DEVICE8_PORT("DSW1"), /* Port A read */ |
| 2966 | | NULL, /* Port B read */ |
| 2967 | | NULL, /* Port C read */ |
| 2968 | | NULL, /* Port A write */ |
| 2969 | | NULL, /* Port B write */ |
| 2970 | | NULL /* Port C write */ |
| 2965 | DEVCB_INPUT_PORT("DSW1"), /* Port A read */ |
| 2966 | DEVCB_NULL, /* Port B read */ |
| 2967 | DEVCB_NULL, /* Port C read */ |
| 2968 | DEVCB_NULL, /* Port A write */ |
| 2969 | DEVCB_NULL, /* Port B write */ |
| 2970 | DEVCB_NULL /* Port C write */ |
| 2971 | 2971 | } |
| 2972 | 2972 | }; |
| 2973 | 2973 | |
| r4207 | r4208 | |
| 4474 | 4474 | ROM_LOAD( "sc97t.bin", 0x00000, 0x20000, CRC(8598b059) SHA1(9e031e30e58a9c1b3d029004ee0f1616711fa2ae) ) |
| 4475 | 4475 | ROM_END |
| 4476 | 4476 | |
| 4477 | // this might be 4 different sets (2 fruit bonus, 2 fruit bonus 'se') |
| 4478 | // will need figuring out once the program roms have been decrypted |
| 4479 | ROM_START( nfb96 ) |
| 4480 | ROM_REGION( 0x20000, "main", 0 ) |
| 4481 | ROM_LOAD( "fb362c1.bin", 0x00000, 0x10000, CRC(5054418a) SHA1(a4bfe05b0eb3476651c06cb9ff78051e55c943c5) ) |
| 4482 | ROM_LOAD( "fb363c1.bin", 0x10000, 0x10000, CRC(ddc22974) SHA1(86f5d4d32f69d054ee1b444e2c4d470603e0391c) ) // ?? alt program? |
| 4483 | ROM_LOAD( "fbse354.bin", 0x00000, 0x10000, CRC(89dd3290) SHA1(040aa1daae58a38db66a046a4379975e014a2598) ) // ?? alt program? |
| 4484 | ROM_LOAD( "fbse362.bin", 0x10000, 0x10000, CRC(aa2576f2) SHA1(b6f0d6078dee01b90e08c09008f299439768c266) ) // ?? alt program? |
| 4477 | 4485 | |
| 4486 | ROM_REGION( 0x20000, "graphics", ROMREGION_DISPOSE ) |
| 4487 | ROM_LOAD( "fb96seh.bin", 0x00000, 0x10000, CRC(12042a0a) SHA1(4bc5f87f4b92f303fef100bf16e3d7b27670b793) ) |
| 4488 | ROM_LOAD( "fb96sel.bin", 0x10000, 0x10000, CRC(d611f10b) SHA1(425cad584e85f21de214bf978555a7811b13aa35) ) |
| 4489 | // alt graphics.. different copyright? |
| 4490 | ROM_LOAD( "fbseh.bin", 0x00000, 0x10000, CRC(2fc10ce7) SHA1(a2418cfbe7ed217848ace8ea06587bcaa6b2c8f2) ) |
| 4491 | ROM_LOAD( "fbsel.bin", 0x10000, 0x10000, CRC(fb9d679a) SHA1(a4f6246bdbbf2e25f702006b30a62bc7873137de) ) |
| 4492 | |
| 4493 | ROM_REGION( 0x18000, "gfx1", ROMREGION_DISPOSE ) |
| 4494 | ROM_COPY( "graphics", 0x04000, 0x00000, 0x4000 ) // 1 |
| 4495 | ROM_COPY( "graphics", 0x0c000, 0x04000, 0x4000 ) // 2 |
| 4496 | ROM_COPY( "graphics", 0x08000, 0x08000, 0x4000 ) // 1 |
| 4497 | ROM_COPY( "graphics", 0x14000, 0x0c000, 0x4000 ) // 2 |
| 4498 | ROM_COPY( "graphics", 0x18000, 0x10000, 0x4000 ) // 1 |
| 4499 | ROM_COPY( "graphics", 0x1c000, 0x14000, 0x4000 ) // 2 |
| 4500 | |
| 4501 | ROM_REGION( 0x8000, "gfx2", ROMREGION_DISPOSE ) |
| 4502 | ROM_COPY( "graphics", 0x00000, 0x04000, 0x4000 ) |
| 4503 | ROM_COPY( "graphics", 0x10000, 0x00000, 0x4000 ) |
| 4504 | |
| 4505 | ROM_REGION( 0x200, "proms", 0 ) // palette |
| 4506 | ROM_LOAD( "chu19.bin", 0x0000, 0x0100, CRC(fafc43ad) SHA1(e94592b83f19e5f9b6205473c1e06b36405ebfc2) ) |
| 4507 | ROM_LOAD( "chu20.bin", 0x0100, 0x0100, CRC(05224f73) SHA1(051c3ee9c63f5436e4f6c355fc308f37910a88ef) ) |
| 4508 | |
| 4509 | ROM_REGION( 0x100, "sku1920.bin", 0 ) // colours again? |
| 4510 | ROM_LOAD( "chu1920.bin", 0x0000, 0x0100, CRC(71b0e11d) SHA1(1d2a2a31d8571f580c0cb7f4833823841072b31f) ) |
| 4511 | |
| 4512 | ROM_REGION( 0x80000, "oki", ROMREGION_ERASEFF ) // samples |
| 4513 | // none? |
| 4514 | ROM_END |
| 4515 | |
| 4516 | |
| 4517 | |
| 4518 | |
| 4519 | /* descrambled by looking at CALLs |
| 4520 | |
| 4521 | 0000 -> 0000 |
| 4522 | |
| 4523 | 46e7 -> 16e7 |
| 4524 | 4027 -> 1027 |
| 4525 | |
| 4526 | 35f3 -> 25f3 |
| 4527 | 3327 -> 2327 |
| 4528 | |
| 4529 | 7f6a -> 3f6a |
| 4530 | |
| 4531 | 1095 -> 4095 |
| 4532 | 1d2f -> 4d2f |
| 4533 | 1e8b -> 4e8b |
| 4534 | |
| 4535 | 6246 -> 5246 |
| 4536 | 628f -> 528f |
| 4537 | |
| 4538 | 2bed -> 6bed |
| 4539 | 2db7 -> 6db7 |
| 4540 | |
| 4541 | 5838 -> 7838 |
| 4542 | 58a2 -> 78a2 |
| 4543 | |
| 4544 | 810f -> 810f |
| 4545 | |
| 4546 | 9762 -> 9762 |
| 4547 | |
| 4548 | a??? -> a??? |
| 4549 | |
| 4550 | b84a -> b84a |
| 4551 | |
| 4552 | c??? -> c??? |
| 4553 | |
| 4554 | */ |
| 4555 | |
| 4556 | ROM_START( nfb96se ) |
| 4557 | ROM_REGION( 0x10000, "main", 0 ) |
| 4558 | ROM_LOAD( "dogdptb.prg",0x00000, 0x1000, CRC(0690f915) SHA1(ed2477ba260a421013603017cfd1e1ba5ecd7f4e) ) // alt program? |
| 4559 | ROM_CONTINUE(0x4000, 0x1000) |
| 4560 | ROM_CONTINUE(0x3000, 0x1000) |
| 4561 | ROM_CONTINUE(0x7000, 0x1000) |
| 4562 | ROM_CONTINUE(0x1000, 0x1000) |
| 4563 | ROM_CONTINUE(0x6000, 0x1000) |
| 4564 | ROM_CONTINUE(0x2000, 0x1000) |
| 4565 | ROM_CONTINUE(0x5000, 0x1000) |
| 4566 | ROM_CONTINUE(0x8000, 0x1000) |
| 4567 | ROM_CONTINUE(0x9000, 0x1000) |
| 4568 | ROM_CONTINUE(0xa000, 0x1000) |
| 4569 | ROM_CONTINUE(0xb000, 0x1000) |
| 4570 | ROM_CONTINUE(0xc000, 0x1000) |
| 4571 | ROM_CONTINUE(0xd000, 0x1000) |
| 4572 | ROM_CONTINUE(0xe000, 0x1000) |
| 4573 | ROM_CONTINUE(0xf000, 0x1000) |
| 4574 | |
| 4575 | ROM_REGION( 0x10000, "user1", ROMREGION_DISPOSE | ROMREGION_ERASEFF ) |
| 4576 | |
| 4577 | ROM_REGION( 0x18000, "gfx1", ROMREGION_DISPOSE ) |
| 4578 | ROM_LOAD( "dogd5.rom", 0x10000, 0x08000, CRC(c03b5632) SHA1(4f603ec5218adcbfce09ec6d3643ffb5006056dd) ) |
| 4579 | ROM_LOAD( "dogd6.rom", 0x08000, 0x08000, CRC(c48e5b5c) SHA1(9d79631b54d9915cd161b5028c1be7879254d9be) ) |
| 4580 | ROM_LOAD( "dogd7.rom", 0x00000, 0x08000, CRC(2f03f1e2) SHA1(b221ad7177fcf4d6d65b8ee9c0f5e4289688c707) ) |
| 4581 | |
| 4582 | ROM_REGION( 0x8000, "gfx2", ROMREGION_DISPOSE ) |
| 4583 | ROM_LOAD( "dogd1.rom", 0x6000, 0x2000, CRC(0f9f77b1) SHA1(03719f79a39f93f38e4170143a5654bd74596206) ) |
| 4584 | ROM_LOAD( "dogd2.rom", 0x4000, 0x2000, CRC(6ab19916) SHA1(f125365b3c5546d72662cf439311811ae761f225) ) |
| 4585 | ROM_LOAD( "dogd3.rom", 0x2000, 0x2000, CRC(5d4810a5) SHA1(8e9e50c6c7c13010ecb726041a1ac8eccead96ce) ) |
| 4586 | ROM_LOAD( "dogd4.rom", 0x0000, 0x2000, CRC(be31f6fa) SHA1(b522ff520b3fbb34c55c7bb1fe7dfeecd593d6be) ) |
| 4587 | |
| 4588 | // taken from new fruit bonus '96, might be wrong |
| 4589 | ROM_REGION( 0x200, "proms", 0 ) // palette |
| 4590 | ROM_LOAD( "chu19.bin", 0x0000, 0x0100, CRC(fafc43ad) SHA1(e94592b83f19e5f9b6205473c1e06b36405ebfc2) ) |
| 4591 | ROM_LOAD( "chu20.bin", 0x0100, 0x0100, CRC(05224f73) SHA1(051c3ee9c63f5436e4f6c355fc308f37910a88ef) ) |
| 4592 | |
| 4593 | ROM_REGION( 0x100, "proms2", 0 ) // colours again? |
| 4594 | ROM_LOAD( "chu1920.bin", 0x0000, 0x0100, CRC(71b0e11d) SHA1(1d2a2a31d8571f580c0cb7f4833823841072b31f) ) |
| 4595 | ROM_END |
| 4596 | |
| 4597 | |
| 4598 | // this set has an encrypted program rom |
| 4599 | ROM_START( nfb96sea ) |
| 4600 | ROM_REGION( 0x10000, "main", 0 ) |
| 4601 | ROM_LOAD( "dog_08.rom", 0x00000, 0x10000, CRC(357f13e8) SHA1(ca0872c9f7dc44a4c1c342f7f53c490f6342f1d2) ) |
| 4602 | |
| 4603 | /* the graphic roms on this set are a mess, the planes don't match up properly */ |
| 4604 | ROM_REGION( 0x18000, "gfx1", ROMREGION_DISPOSE ) |
| 4605 | ROM_LOAD( "dog_05.rom", 0x10000, 0x08000, CRC(c03b5632) SHA1(4f603ec5218adcbfce09ec6d3643ffb5006056dd) ) |
| 4606 | ROM_LOAD( "dog_06.rom", 0x08000, 0x08000, CRC(c48e5b5c) SHA1(9d79631b54d9915cd161b5028c1be7879254d9be) ) |
| 4607 | ROM_LOAD( "dog_07.rom", 0x00000, 0x08000, CRC(97033c70) SHA1(4d5746f43f8f4d374ba2f31d21defd21921d39bf) ) |
| 4608 | |
| 4609 | ROM_REGION( 0x8000, "gfx2", ROMREGION_DISPOSE ) |
| 4610 | ROM_LOAD( "dog_01.rom", 0x0000, 0x2000, CRC(26eb35ce) SHA1(564c775eda7a026841095b210257aea59288f042) ) |
| 4611 | ROM_LOAD( "dog_02.rom", 0x2000, 0x2000, CRC(0e220d8a) SHA1(f84145250785dae78ea5af6388d91ad24b42ff9c) ) |
| 4612 | ROM_LOAD( "dog_03.rom", 0x4000, 0x2000, CRC(01a7ff6f) SHA1(bfb4ad07d99807eadbb0cb85c5a6cf60a5875f2d) ) |
| 4613 | ROM_LOAD( "dog_04.rom", 0x6000, 0x2000, CRC(be31f6fa) SHA1(b522ff520b3fbb34c55c7bb1fe7dfeecd593d6be) ) |
| 4614 | |
| 4615 | ROM_REGION( 0x10000, "user1", ROMREGION_DISPOSE | ROMREGION_ERASEFF ) |
| 4616 | |
| 4617 | // taken from new fruit bonus '96, might be wrong |
| 4618 | ROM_REGION( 0x200, "proms", 0 ) // palette |
| 4619 | ROM_LOAD( "chu19.bin", 0x0000, 0x0100, CRC(fafc43ad) SHA1(e94592b83f19e5f9b6205473c1e06b36405ebfc2) ) |
| 4620 | ROM_LOAD( "chu20.bin", 0x0100, 0x0100, CRC(05224f73) SHA1(051c3ee9c63f5436e4f6c355fc308f37910a88ef) ) |
| 4621 | |
| 4622 | ROM_REGION( 0x100, "proms2", 0 ) // colours again? |
| 4623 | ROM_LOAD( "chu1920.bin", 0x0000, 0x0100, CRC(71b0e11d) SHA1(1d2a2a31d8571f580c0cb7f4833823841072b31f) ) |
| 4624 | ROM_END |
| 4625 | |
| 4626 | ROM_START( nfb96seb ) |
| 4627 | ROM_REGION( 0x10000, "main", 0 ) |
| 4628 | ROM_LOAD( "dogdptb.prg",0x00000, 0x1000, CRC(0690f915) SHA1(ed2477ba260a421013603017cfd1e1ba5ecd7f4e) ) // alt program? |
| 4629 | ROM_CONTINUE(0x4000, 0x1000) |
| 4630 | ROM_CONTINUE(0x3000, 0x1000) |
| 4631 | ROM_CONTINUE(0x7000, 0x1000) |
| 4632 | ROM_CONTINUE(0x1000, 0x1000) |
| 4633 | ROM_CONTINUE(0x6000, 0x1000) |
| 4634 | ROM_CONTINUE(0x2000, 0x1000) |
| 4635 | ROM_CONTINUE(0x5000, 0x1000) |
| 4636 | ROM_CONTINUE(0x8000, 0x1000) |
| 4637 | ROM_CONTINUE(0x9000, 0x1000) |
| 4638 | ROM_CONTINUE(0xa000, 0x1000) |
| 4639 | ROM_CONTINUE(0xb000, 0x1000) |
| 4640 | ROM_CONTINUE(0xc000, 0x1000) |
| 4641 | ROM_CONTINUE(0xd000, 0x1000) |
| 4642 | ROM_CONTINUE(0xe000, 0x1000) |
| 4643 | ROM_CONTINUE(0xf000, 0x1000) |
| 4644 | |
| 4645 | ROM_REGION( 0x10000, "user1", ROMREGION_DISPOSE | ROMREGION_ERASEFF ) |
| 4646 | |
| 4647 | ROM_REGION( 0x18000, "gfx1", ROMREGION_DISPOSE ) |
| 4648 | ROM_LOAD( "dogmx5", 0x10000, 0x08000, CRC(c03b5632) SHA1(4f603ec5218adcbfce09ec6d3643ffb5006056dd) ) |
| 4649 | ROM_LOAD( "dogmx6", 0x08000, 0x08000, CRC(c48e5b5c) SHA1(9d79631b54d9915cd161b5028c1be7879254d9be) ) |
| 4650 | ROM_LOAD( "dogmx7", 0x00000, 0x08000, CRC(97033c70) SHA1(4d5746f43f8f4d374ba2f31d21defd21921d39bf) ) // wagner video junk on this layer |
| 4651 | |
| 4652 | ROM_REGION( 0x8000, "gfx2", ROMREGION_DISPOSE ) |
| 4653 | ROM_LOAD( "dogmx1", 0x6000, 0x2000, CRC(b72d2c2c) SHA1(faf60ca0f522868e6dbf7c3ace5c84d8fd001df3) ) |
| 4654 | ROM_LOAD( "dogmx2", 0x4000, 0x2000, CRC(a85f5516) SHA1(1564e6c490883c96bffc561d9115eb53450945ce) ) |
| 4655 | ROM_LOAD( "dogmx3", 0x2000, 0x2000, CRC(f1a8aea8) SHA1(c20b779a73856d94e862d87ad337c9501da86691) ) |
| 4656 | ROM_LOAD( "dogmx4", 0x0000, 0x2000, CRC(be31f6fa) SHA1(b522ff520b3fbb34c55c7bb1fe7dfeecd593d6be) ) |
| 4657 | |
| 4658 | // taken from new fruit bonus '96, might be wrong |
| 4659 | ROM_REGION( 0x200, "proms", 0 ) // palette |
| 4660 | ROM_LOAD( "chu19.bin", 0x0000, 0x0100, CRC(fafc43ad) SHA1(e94592b83f19e5f9b6205473c1e06b36405ebfc2) ) |
| 4661 | ROM_LOAD( "chu20.bin", 0x0100, 0x0100, CRC(05224f73) SHA1(051c3ee9c63f5436e4f6c355fc308f37910a88ef) ) |
| 4662 | |
| 4663 | ROM_REGION( 0x100, "proms2", 0 ) // colours again? |
| 4664 | ROM_LOAD( "chu1920.bin", 0x0000, 0x0100, CRC(71b0e11d) SHA1(1d2a2a31d8571f580c0cb7f4833823841072b31f) ) |
| 4665 | ROM_END |
| 4666 | |
| 4667 | // this contains elephants etc. instead of the usual symbols, maybe |
| 4668 | // it's meant to work with the above program roms? |
| 4669 | ROM_START( carb2002 ) |
| 4670 | ROM_REGION( 0x10000, "main", 0 ) |
| 4671 | ROM_LOAD( "dogd.prg", 0x00000, 0x1000, CRC(000102e0) SHA1(a1824576845b67fbc1a9a16d5aafa6cd000ea4fb) ) |
| 4672 | ROM_CONTINUE(0x4000, 0x1000) |
| 4673 | ROM_CONTINUE(0x3000, 0x1000) |
| 4674 | ROM_CONTINUE(0x7000, 0x1000) |
| 4675 | ROM_CONTINUE(0x1000, 0x1000) |
| 4676 | ROM_CONTINUE(0x6000, 0x1000) |
| 4677 | ROM_CONTINUE(0x2000, 0x1000) |
| 4678 | ROM_CONTINUE(0x5000, 0x1000) |
| 4679 | ROM_CONTINUE(0x8000, 0x1000) |
| 4680 | ROM_CONTINUE(0x9000, 0x1000) |
| 4681 | ROM_CONTINUE(0xa000, 0x1000) |
| 4682 | ROM_CONTINUE(0xb000, 0x1000) |
| 4683 | ROM_CONTINUE(0xc000, 0x1000) |
| 4684 | ROM_CONTINUE(0xd000, 0x1000) |
| 4685 | ROM_CONTINUE(0xe000, 0x1000) |
| 4686 | ROM_CONTINUE(0xf000, 0x1000) |
| 4687 | |
| 4688 | ROM_REGION( 0x10000, "user1", ROMREGION_DISPOSE | ROMREGION_ERASEFF ) |
| 4689 | |
| 4690 | ROM_REGION( 0x18000, "gfx1", ROMREGION_DISPOSE ) |
| 4691 | ROM_LOAD( "dogtai5", 0x10000, 0x08000, CRC(0c8a4afb) SHA1(994295eea7964d60b6a1db911679739a10be9bbe) ) |
| 4692 | ROM_LOAD( "dogtai6", 0x08000, 0x08000, CRC(e9f5dc36) SHA1(6a4060c901f10202fe935701f1f1087c8477da56) ) |
| 4693 | ROM_LOAD( "dogtai7", 0x00000, 0x08000, CRC(73c4c1aa) SHA1(31a70861dc54b442a1e50adf3f013dbc38fbbbb1) ) |
| 4694 | // alt. replacements for roms 5+6?, erases the word 'slot' on the title screen? |
| 4695 | ROM_LOAD( "dogdif5", 0x10000, 0x08000, CRC(a1986e44) SHA1(3178de9c6063c9f33878b6070db95b2eeb12ffea) ) |
| 4696 | ROM_LOAD( "dogdif6", 0x08000, 0x08000, CRC(a5d389fc) SHA1(3db570c938a387708974f24a110cf25b9b52ac22) ) |
| 4697 | |
| 4698 | ROM_REGION( 0x8000, "gfx2", ROMREGION_DISPOSE ) |
| 4699 | ROM_LOAD( "dogtai1", 0x6000, 0x2000, CRC(68ed1c26) SHA1(495a8b57c368b0b7c2a618d4f1e980d5187f411a) ) |
| 4700 | ROM_LOAD( "dogtai2", 0x4000, 0x2000, CRC(b5e25d9b) SHA1(9374f7662f92c10ca6d1af570eaa4d161173283f) ) |
| 4701 | ROM_LOAD( "dogtai3", 0x2000, 0x2000, CRC(df13aeb2) SHA1(942f742a722bab44dd3de270001b60d888c44111) ) |
| 4702 | ROM_LOAD( "dogtai4", 0x0000, 0x2000, CRC(170f07ce) SHA1(4b48841f9c5bdf7bfbc05113148666a5bcdd3d35) ) |
| 4703 | |
| 4704 | // taken from new fruit bonus '96, definitely wrong |
| 4705 | ROM_REGION( 0x200, "proms", 0 ) // palette |
| 4706 | ROM_LOAD( "chu19.bin", 0x0000, 0x0100, BAD_DUMP CRC(fafc43ad) SHA1(e94592b83f19e5f9b6205473c1e06b36405ebfc2) ) |
| 4707 | ROM_LOAD( "chu20.bin", 0x0100, 0x0100, BAD_DUMP CRC(05224f73) SHA1(051c3ee9c63f5436e4f6c355fc308f37910a88ef) ) |
| 4708 | |
| 4709 | ROM_REGION( 0x100, "proms2", 0 ) // colours again? |
| 4710 | ROM_LOAD( "chu1920.bin", 0x0000, 0x0100, BAD_DUMP CRC(71b0e11d) SHA1(1d2a2a31d8571f580c0cb7f4833823841072b31f) ) |
| 4711 | ROM_END |
| 4712 | |
| 4713 | // same program as dogh set.. different gfx |
| 4714 | ROM_START( carb2003 ) |
| 4715 | ROM_REGION( 0x10000, "main", 0 ) |
| 4716 | ROM_LOAD( "dogd.prg", 0x00000, 0x1000, CRC(000102e0) SHA1(a1824576845b67fbc1a9a16d5aafa6cd000ea4fb) ) |
| 4717 | ROM_CONTINUE(0x4000, 0x1000) |
| 4718 | ROM_CONTINUE(0x3000, 0x1000) |
| 4719 | ROM_CONTINUE(0x7000, 0x1000) |
| 4720 | ROM_CONTINUE(0x1000, 0x1000) |
| 4721 | ROM_CONTINUE(0x6000, 0x1000) |
| 4722 | ROM_CONTINUE(0x2000, 0x1000) |
| 4723 | ROM_CONTINUE(0x5000, 0x1000) |
| 4724 | ROM_CONTINUE(0x8000, 0x1000) |
| 4725 | ROM_CONTINUE(0x9000, 0x1000) |
| 4726 | ROM_CONTINUE(0xa000, 0x1000) |
| 4727 | ROM_CONTINUE(0xb000, 0x1000) |
| 4728 | ROM_CONTINUE(0xc000, 0x1000) |
| 4729 | ROM_CONTINUE(0xd000, 0x1000) |
| 4730 | ROM_CONTINUE(0xe000, 0x1000) |
| 4731 | ROM_CONTINUE(0xf000, 0x1000) |
| 4732 | |
| 4733 | ROM_REGION( 0x18000, "gfx1", ROMREGION_DISPOSE ) |
| 4734 | ROM_LOAD( "timedog5.rom", 0x10000, 0x08000, CRC(cf05b66d) SHA1(a711a86f2a82dd685a379fda0cf7240b2ca2696e) ) |
| 4735 | ROM_LOAD( "timedog6.rom", 0x08000, 0x08000, CRC(2d81bdbe) SHA1(56eaa9347014340b902d8f0bc38b719acf56c314) ) |
| 4736 | ROM_LOAD( "timedog7.rom", 0x00000, 0x08000, CRC(f8e410e5) SHA1(1edc863902cfb1605aca08f6970f9bd24147ca0b) ) |
| 4737 | |
| 4738 | ROM_REGION( 0x10000, "user1", ROMREGION_DISPOSE ) |
| 4739 | |
| 4740 | // these seem to contain mixed planes of different gfx sets.. not correct |
| 4741 | ROM_REGION( 0x8000, "gfx2", ROMREGION_DISPOSE ) |
| 4742 | ROM_LOAD( "timedog1.rom", 0x6000, 0x2000, CRC(d29e0217) SHA1(df978143ed313b33f848e7337097fe29c1fa4506) ) |
| 4743 | ROM_LOAD( "timedog2.rom", 0x4000, 0x2000, CRC(fafb6a51) SHA1(57e79e5efd525cdf5a4475eedfee2c8fc1417b76) ) |
| 4744 | ROM_LOAD( "timedog3.rom", 0x2000, 0x2000, CRC(6f305ac7) SHA1(55f0d73b783854584195658ab4e74770bc13ba0b) ) |
| 4745 | ROM_LOAD( "timedog4.rom", 0x0000, 0x2000, CRC(807a16fc) SHA1(111e7d171f9278abea666d6ad41b02f2c8bf98d8) ) |
| 4746 | ROM_IGNORE(0x2000) |
| 4747 | |
| 4748 | // taken from new fruit bonus '96, definitely wrong |
| 4749 | ROM_REGION( 0x200, "proms", 0 ) // palette |
| 4750 | ROM_LOAD( "chu19.bin", 0x0000, 0x0100, BAD_DUMP CRC(fafc43ad) SHA1(e94592b83f19e5f9b6205473c1e06b36405ebfc2) ) |
| 4751 | ROM_LOAD( "chu20.bin", 0x0100, 0x0100, BAD_DUMP CRC(05224f73) SHA1(051c3ee9c63f5436e4f6c355fc308f37910a88ef) ) |
| 4752 | |
| 4753 | ROM_REGION( 0x100, "proms2", 0 ) // colours again? |
| 4754 | ROM_LOAD( "chu1920.bin", 0x0000, 0x0100, BAD_DUMP CRC(71b0e11d) SHA1(1d2a2a31d8571f580c0cb7f4833823841072b31f) ) |
| 4755 | ROM_END |
| 4756 | |
| 4757 | |
| 4758 | |
| 4759 | |
| 4760 | |
| 4478 | 4761 | static DRIVER_INIT(goldstar) |
| 4479 | 4762 | { |
| 4480 | 4763 | int A; |
| r4207 | r4208 | |
| 4707 | 4990 | |
| 4708 | 4991 | GAME( 198?, mtonic, 0, ncb3, cmv801, 0, ROT0, "Tonic", "Magical Tonic?", GAME_WRONG_COLORS | GAME_NOT_WORKING ) |
| 4709 | 4992 | |
| 4993 | |
| 4994 | |
| 4995 | |
| 4710 | 4996 | // bootlegs of cherry master? |
| 4711 | 4997 | GAME( 1998, schery98, 0, cmnobmp, cmv801, 0, ROT0, "Amcoe", "Skill Cherry '98", GAME_NOT_WORKING ) |
| 4712 | | GAME( 1998, schery97, 0, cmnobmp, cmv801, 0, ROT0, "Amcoe", "Skill Cherry '97", GAME_NOT_WORKING ) |
| 4998 | GAME( 1997, schery97, 0, cmnobmp, cmv801, 0, ROT0, "Amcoe", "Skill Cherry '97", GAME_NOT_WORKING ) |
| 4999 | GAME( 1996, nfb96, 0, cmnobmp, cmv801, 0, ROT0, "Amcoe", "New Fruit Bonus '96", GAME_NOT_WORKING ) |
| 5000 | // these all appear to be graphic hacks of 'New Fruit Bonus '96', they can run with the same program rom |
| 5001 | // some sets are messy and appear to have mismatched graphic roms, they needed to be sorted out properly |
| 5002 | GAME( 1996, nfb96se, nfb96, cm, cmv4, 0, ROT0, "bootleg", "New Fruit Bonus '96 Special Edition (bootleg, set 1)", GAME_WRONG_COLORS | GAME_NOT_WORKING ) |
| 5003 | GAME( 1996, nfb96sea, nfb96, cm, cmv4, 0, ROT0, "bootleg", "New Fruit Bonus '96 Special Edition (bootleg, set 2)", GAME_WRONG_COLORS | GAME_NOT_WORKING ) // encrypted program |
| 5004 | GAME( 1996, nfb96seb, nfb96, cm, cmv4, 0, ROT0, "bootleg", "New Fruit Bonus '96 Special Edition (bootleg, set 3)", GAME_WRONG_COLORS | GAME_NOT_WORKING ) |
| 5005 | GAME( 2002, carb2002, nfb96, cm, cmv4, 0, ROT0, "bootleg", "Carriage Bonus 2002 (bootleg)", GAME_WRONG_COLORS | GAME_NOT_WORKING ) |
| 5006 | GAME( 2003, carb2003, nfb96, cm, cmv4, 0, ROT0, "bootleg", "Carriage Bonus 2003 (bootleg)", GAME_WRONG_COLORS | GAME_NOT_WORKING ) |
| 4713 | 5007 | |
| 5008 | |
| 4714 | 5009 | /* possible stealth sets: |
| 4715 | 5010 | |
| 4716 | 5011 | - cmaster |
src/mame/drivers/big10.c
| r0 | r4208 | |
| 1 | /*************************************************************************** |
| 2 | |
| 3 | BIG 10 |
| 4 | ------ |
| 5 | |
| 6 | Driver by Angelo Salese, Roberto Fresca & Tomasz Slanina. |
| 7 | |
| 8 | |
| 9 | **************************************************************************** |
| 10 | |
| 11 | Dumper Notes: |
| 12 | |
| 13 | Possibly some kind of gambling game. |
| 14 | |
| 15 | Z80A |
| 16 | XTAL is 21.?727 |
| 17 | YM2149 |
| 18 | 8-position DSW x1 |
| 19 | RAM 6264 x1 |
| 20 | RAM 41464 x4 |
| 21 | unknown SDIP64 chip with welded heatsink! Might be a video chip or MCU? |
| 22 | |
| 23 | |
| 24 | **************************************************************************** |
| 25 | |
| 26 | Dev Notes... |
| 27 | |
| 28 | - Guessed and hooked the Yamaha VDP (SDIP64 IC). Same VDP used on MSX systems. |
| 29 | - Added v9938 stuff, interrupts, video start, machine reset, input ports, |
| 30 | DIP switch, ym2149 interface, pre-defined main Xtal and derivatives for |
| 31 | z80 and ym2149. |
| 32 | - Added NVRAM, defined half of DIP switches bank (coinage & main game rate). |
| 33 | Added inputs for coins A, B & C, payout, reset, and service mode. |
| 34 | - Reorganized the driver. |
| 35 | |
| 36 | **************************************************************************** |
| 37 | |
| 38 | How to Play: |
| 39 | |
| 40 | - This is actually a Keno game (slightly modified Raffle/Bingo/Tombola game). |
| 41 | - First off, select the bet amount with the BET button. |
| 42 | - Then choose between "SELECT 10" button (pseudo-random) or user-defined |
| 43 | numbers,by pressing the desired number with the numpad then "select" |
| 44 | (enters the decimals first then the units, if three or more buttons |
| 45 | are pressed the older pressed buttons are discarded, i.e. press 1234 |
| 46 | then SELECT, 1 and 2 are discarded). |
| 47 | - Press "CANCEL ALL" to redo the numbering scheme. |
| 48 | - Once that you are happy with it, press START to begin the extraction of |
| 49 | winning numbers. |
| 50 | - If you get at least 2-4 numbers out of 20 extracted numbers, you win a |
| 51 | prize and you are entitled to do a big/small (double up) sub-game. |
| 52 | |
| 53 | ***************************************************************************/ |
| 54 | |
| 55 | |
| 56 | #define MASTER_CLOCK XTAL_21_4772MHz /* Dumper notes poorly refers to a 21.?727 Xtal. */ |
| 57 | |
| 58 | |
| 59 | #include "driver.h" |
| 60 | #include "cpu/z80/z80.h" |
| 61 | #include "sound/ay8910.h" |
| 62 | #include "video/v9938.h" |
| 63 | #include "deprecat.h" |
| 64 | |
| 65 | #define VDP_MEM 0x40000 |
| 66 | |
| 67 | |
| 68 | /*************************************** |
| 69 | * Interrupt handling & Video * |
| 70 | ***************************************/ |
| 71 | |
| 72 | static void big10_vdp_interrupt(running_machine *machine, int i) |
| 73 | { |
| 74 | cpu_set_input_line (machine->cpu[0], 0, (i ? HOLD_LINE : CLEAR_LINE)); |
| 75 | } |
| 76 | |
| 77 | static INTERRUPT_GEN( big10_interrupt ) |
| 78 | { |
| 79 | v9938_interrupt(device->machine, 0); |
| 80 | } |
| 81 | |
| 82 | |
| 83 | VIDEO_START( big10 ) |
| 84 | { |
| 85 | VIDEO_START_CALL(generic_bitmapped); |
| 86 | v9938_init (machine, 0, machine->primary_screen, tmpbitmap, MODEL_V9938, VDP_MEM, big10_vdp_interrupt); |
| 87 | v9938_reset(0); |
| 88 | } |
| 89 | |
| 90 | |
| 91 | /************************************* |
| 92 | * Machine Reset * |
| 93 | *************************************/ |
| 94 | |
| 95 | static MACHINE_RESET(big10) |
| 96 | { |
| 97 | v9938_reset(0); |
| 98 | } |
| 99 | |
| 100 | |
| 101 | /**************************************** |
| 102 | * Input Ports Demux & Common Routines * |
| 103 | ****************************************/ |
| 104 | |
| 105 | static UINT8 mux_data; |
| 106 | |
| 107 | static WRITE8_HANDLER( mux_w ) |
| 108 | { |
| 109 | mux_data = ~data; |
| 110 | } |
| 111 | |
| 112 | static READ8_HANDLER( mux_r ) |
| 113 | { |
| 114 | switch(mux_data) |
| 115 | { |
| 116 | case 1: return input_port_read(space->machine, "IN1"); |
| 117 | case 2: return input_port_read(space->machine, "IN2"); |
| 118 | case 4: return input_port_read(space->machine, "IN3"); |
| 119 | } |
| 120 | |
| 121 | return mux_data; |
| 122 | } |
| 123 | |
| 124 | static READ8_HANDLER( big10_dsw_1_r ) |
| 125 | { |
| 126 | return input_port_read(space->machine, "DSW1"); |
| 127 | } |
| 128 | |
| 129 | static READ8_HANDLER( big10_dsw_2_r ) |
| 130 | { |
| 131 | return input_port_read(space->machine, "DSW2"); |
| 132 | } |
| 133 | |
| 134 | |
| 135 | /************************************** |
| 136 | * Memory Map * |
| 137 | **************************************/ |
| 138 | |
| 139 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 140 | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| 141 | AM_RANGE(0xc000, 0xdfff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 142 | AM_RANGE(0xf000, 0xffff) AM_RAM |
| 143 | ADDRESS_MAP_END |
| 144 | |
| 145 | static ADDRESS_MAP_START( main_io, ADDRESS_SPACE_IO, 8 ) |
| 146 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 147 | AM_RANGE(0x00, 0x00) AM_READ(mux_r) /* present in test mode */ |
| 148 | AM_RANGE(0x02, 0x02) AM_READ_PORT("SYSTEM") /* coins and service */ |
| 149 | AM_RANGE(0x98, 0x98) AM_WRITE(v9938_0_vram_w) AM_READ(v9938_0_vram_r) |
| 150 | AM_RANGE(0x99, 0x99) AM_WRITE(v9938_0_command_w) AM_READ(v9938_0_status_r) |
| 151 | AM_RANGE(0x9a, 0x9a) AM_WRITE(v9938_0_palette_w) |
| 152 | AM_RANGE(0x9b, 0x9b) AM_WRITE(v9938_0_register_w) |
| 153 | AM_RANGE(0xa0, 0xa0) AM_WRITE(ay8910_control_port_0_w) |
| 154 | AM_RANGE(0xa1, 0xa1) AM_WRITE(ay8910_write_port_0_w) |
| 155 | AM_RANGE(0xa2, 0xa2) AM_READ(ay8910_read_port_0_r) /* Dip-Switches routes here. */ |
| 156 | ADDRESS_MAP_END |
| 157 | |
| 158 | |
| 159 | /************************************** |
| 160 | * Input Ports * |
| 161 | **************************************/ |
| 162 | |
| 163 | static INPUT_PORTS_START( big10 ) |
| 164 | |
| 165 | PORT_START("SYSTEM") |
| 166 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_TOGGLE /* Service Mode */ |
| 167 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_R) PORT_NAME("Reset") |
| 168 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_W) PORT_NAME("Payout") |
| 169 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2) |
| 170 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 171 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 172 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2) |
| 173 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(2) |
| 174 | |
| 175 | PORT_START("IN1") |
| 176 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_CODE(KEYCODE_0_PAD) PORT_NAME("Number 0") |
| 177 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_CODE(KEYCODE_1_PAD) PORT_NAME("Number 1") |
| 178 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_CODE(KEYCODE_2_PAD) PORT_NAME("Number 2") |
| 179 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON10 ) PORT_CODE(KEYCODE_3_PAD) PORT_NAME("Number 3") |
| 180 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_CODE(KEYCODE_4_PAD) PORT_NAME("Number 4") |
| 181 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON12 ) PORT_CODE(KEYCODE_5_PAD) PORT_NAME("Number 5") |
| 182 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON13 ) PORT_CODE(KEYCODE_6_PAD) PORT_NAME("Number 6") |
| 183 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON14 ) PORT_CODE(KEYCODE_7_PAD) PORT_NAME("Number 7") |
| 184 | |
| 185 | PORT_START("IN2") |
| 186 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON15 ) PORT_CODE(KEYCODE_8_PAD) PORT_NAME("Number 8") |
| 187 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON16 ) PORT_CODE(KEYCODE_9_PAD) PORT_NAME("Number 9") |
| 188 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_F) PORT_NAME("Flip Flop") |
| 189 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_ENTER_PAD) PORT_NAME("Select") |
| 190 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_Z) PORT_NAME("Select 10") |
| 191 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_MINUS_PAD) PORT_NAME("Cancel All") |
| 192 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_2) PORT_NAME("Start") |
| 193 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_1) PORT_NAME("Bet") |
| 194 | |
| 195 | PORT_START("IN3") |
| 196 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CODE(KEYCODE_3) PORT_NAME("Double Up") |
| 197 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_CODE(KEYCODE_4) PORT_NAME("Take Score") |
| 198 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CODE(KEYCODE_A) PORT_NAME("Big") |
| 199 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_CODE(KEYCODE_S) PORT_NAME("Small") |
| 200 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 201 | |
| 202 | PORT_START("DSW1") |
| 203 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW1:8") |
| 204 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 205 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 206 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW1:7") |
| 207 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 208 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 209 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW1:6") |
| 210 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 211 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 212 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) PORT_DIPLOCATION("DSW1:5") |
| 213 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 214 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 215 | PORT_DIPNAME( 0x30, 0x00, "Main Game Rate" ) PORT_DIPLOCATION("DSW1:3,4") |
| 216 | PORT_DIPSETTING( 0x00, "60%" ) |
| 217 | PORT_DIPSETTING( 0x10, "70%" ) |
| 218 | PORT_DIPSETTING( 0x20, "80%" ) |
| 219 | PORT_DIPSETTING( 0x30, "90%" ) |
| 220 | PORT_DIPNAME( 0xC0, 0x00, "Coinage (A=1; B=5; C=10)" ) PORT_DIPLOCATION("DSW1:1,2") |
| 221 | PORT_DIPSETTING( 0x00, "x1" ) |
| 222 | PORT_DIPSETTING( 0x40, "x2" ) |
| 223 | PORT_DIPSETTING( 0x80, "x5" ) |
| 224 | PORT_DIPSETTING( 0xC0, "x10" ) |
| 225 | |
| 226 | /* Unconnected, probably missing from the board */ |
| 227 | PORT_START("DSW2") |
| 228 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 229 | INPUT_PORTS_END |
| 230 | |
| 231 | |
| 232 | /********************************** |
| 233 | * AY-3-8910 Interface * |
| 234 | **********************************/ |
| 235 | |
| 236 | static const ay8910_interface ay8910_config = |
| 237 | { |
| 238 | AY8910_LEGACY_OUTPUT, |
| 239 | AY8910_DEFAULT_LOADS, |
| 240 | big10_dsw_2_r, |
| 241 | big10_dsw_1_r, |
| 242 | mux_w, |
| 243 | NULL |
| 244 | }; |
| 245 | |
| 246 | |
| 247 | /************************************** |
| 248 | * Machine Driver * |
| 249 | **************************************/ |
| 250 | |
| 251 | static MACHINE_DRIVER_START( big10 ) |
| 252 | |
| 253 | /* basic machine hardware */ |
| 254 | MDRV_CPU_ADD("main", Z80, MASTER_CLOCK/6) /* guess */ |
| 255 | MDRV_CPU_PROGRAM_MAP(main_map, 0) |
| 256 | MDRV_CPU_IO_MAP(main_io, 0) |
| 257 | MDRV_CPU_VBLANK_INT_HACK(big10_interrupt, 262) |
| 258 | |
| 259 | MDRV_MACHINE_RESET(big10) |
| 260 | |
| 261 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 262 | |
| 263 | /* video hardware */ |
| 264 | MDRV_SCREEN_ADD("main", RASTER) |
| 265 | MDRV_SCREEN_REFRESH_RATE(60) |
| 266 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 267 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 268 | |
| 269 | MDRV_SCREEN_SIZE(512 + 32, (212 + 28) * 2) |
| 270 | MDRV_SCREEN_VISIBLE_AREA(0, 512 + 32 - 1, 0, (212 + 28) * 2 - 1) |
| 271 | |
| 272 | MDRV_PALETTE_LENGTH(512) |
| 273 | MDRV_PALETTE_INIT(v9938) |
| 274 | MDRV_VIDEO_START(big10) |
| 275 | MDRV_VIDEO_UPDATE(generic_bitmapped) |
| 276 | |
| 277 | /* sound hardware */ |
| 278 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 279 | MDRV_SOUND_ADD("ay", AY8910, MASTER_CLOCK/12) /* guess */ |
| 280 | MDRV_SOUND_CONFIG(ay8910_config) |
| 281 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) |
| 282 | MACHINE_DRIVER_END |
| 283 | |
| 284 | |
| 285 | /************************************** |
| 286 | * ROM Load * |
| 287 | **************************************/ |
| 288 | |
| 289 | ROM_START( big10 ) |
| 290 | ROM_REGION( 0x10000, "main", 0 ) |
| 291 | ROM_LOAD( "1", 0x0000, 0x4000, CRC(03e50455) SHA1(36834d35d037303e8b9e4ce950d22f11a52e9388) ) |
| 292 | ROM_LOAD( "2", 0x4000, 0x4000, CRC(b4626a5f) SHA1(a9b3b9575c657748a7f0b60ec2c7411dad0c83c1) ) |
| 293 | ROM_LOAD( "3", 0x8000, 0x4000, CRC(8d15da74) SHA1(0e114de6fcf79beac800575bfb739e6a6bf35660) ) |
| 294 | ROM_END |
| 295 | |
| 296 | |
| 297 | /************************************** |
| 298 | * Game Driver(s) * |
| 299 | **************************************/ |
| 300 | |
| 301 | /* YEAR NAME PARENT MACHINE INPUT INIT ROT COMPANY FULLNAME FLAGS */ |
| 302 | GAME( 198?, big10, 0, big10, big10, 0, ROT0, "unknown", "Big 10", 0 ) |
src/mame/drivers/cps3.c
| r4207 | r4208 | |
| 326 | 326 | #include "includes/cps3.h" |
| 327 | 327 | #include "machine/wd33c93.h" |
| 328 | 328 | |
| 329 | #define MASTER_CLOCK 42954500 |
| 330 | |
| 329 | 331 | /* load extracted cd content? */ |
| 330 | 332 | #define LOAD_CD_CONTENT 1 |
| 331 | 333 | #define DEBUG_PRINTF 0 |
| 332 | 334 | |
| 335 | |
| 336 | |
| 333 | 337 | #define DMA_XOR(a) ((a) ^ NATIVE_ENDIAN_VALUE_LE_BE(1,2)) |
| 334 | 338 | |
| 335 | 339 | |
| r4207 | r4208 | |
| 366 | 370 | static bitmap_t *renderbuffer_bitmap; |
| 367 | 371 | static rectangle renderbuffer_clip; |
| 368 | 372 | |
| 373 | static UINT8* cps3_user4region; |
| 374 | UINT8* cps3_user5region; |
| 375 | #define USER4REGION_LENGTH 0x800000*2 |
| 376 | #define USER5REGION_LENGTH 0x800000*10 |
| 369 | 377 | |
| 370 | 378 | #define CPS3_TRANSPARENCY_NONE 0 |
| 371 | 379 | #define CPS3_TRANSPARENCY_PEN 1 |
| r4207 | r4208 | |
| 642 | 650 | return val | (val << 16); |
| 643 | 651 | } |
| 644 | 652 | |
| 645 | | struct game_keys2 |
| 646 | | { |
| 647 | | const char *name; /* game driver name */ |
| 648 | | const UINT32 keys[2]; |
| 649 | | int isSpecial; |
| 650 | | }; |
| 651 | | |
| 652 | | static const struct game_keys2 keys_table2[] = |
| 653 | | { |
| 654 | | // name key1 key2 |
| 655 | | { "jojo", { 0x02203ee3, 0x01301972 },0 }, |
| 656 | | { "jojon", { 0x02203ee3, 0x01301972 },0 }, |
| 657 | | { "jojoalt", { 0x02203ee3, 0x01301972 },0 }, |
| 658 | | { "jojoaltn", { 0x02203ee3, 0x01301972 },0 }, |
| 659 | | { "jojoba", { 0x23323ee3, 0x03021972 },0 }, |
| 660 | | { "jojoban", { 0x23323ee3, 0x03021972 },0 }, |
| 661 | | { "jojobane", { 0x23323ee3, 0x03021972 },0 }, |
| 662 | | { "sfiii", { 0xb5fe053e, 0xfc03925a },0 }, |
| 663 | | { "sfiiiu", { 0xb5fe053e, 0xfc03925a },0 }, |
| 664 | | { "sfiiij", { 0xb5fe053e, 0xfc03925a },0 }, |
| 665 | | { "sfiiin", { 0xb5fe053e, 0xfc03925a },0 }, |
| 666 | | { "sfiii2", { 0x00000000, 0x00000000 },1 }, |
| 667 | | { "sfiii2u", { 0x00000000, 0x00000000 },1 }, |
| 668 | | { "sfiii2j", { 0x00000000, 0x00000000 },1 }, |
| 669 | | { "sfiii2n", { 0x00000000, 0x00000000 },1 }, |
| 670 | | { "sfiii3", { 0xa55432b4, 0x0c129981 },0 }, |
| 671 | | { "sfiii3n", { 0xa55432b4, 0x0c129981 },0 }, |
| 672 | | { "sfiii3a", { 0xa55432b4, 0x0c129981 },0 }, |
| 673 | | { "sfiii3an", { 0xa55432b4, 0x0c129981 },0 }, |
| 674 | | { "warzard", { 0x9e300ab1, 0xa175b82c },0 }, |
| 675 | | { "redearth", { 0x9e300ab1, 0xa175b82c },0 }, |
| 676 | | { 0 } // end of table |
| 677 | | }; |
| 678 | | |
| 679 | 653 | static void cps3_decrypt_bios(running_machine *machine) |
| 680 | 654 | { |
| 681 | 655 | int i; |
| r4207 | r4208 | |
| 687 | 661 | { |
| 688 | 662 | UINT32 dword = coderegion[i/4]; |
| 689 | 663 | UINT32 xormask = cps3_mask(i, cps3_key1, cps3_key2); |
| 690 | | |
| 691 | | /* a bit of a hack, don't decrypt the FLASH commands which are transfered by SH2 DMA */ |
| 692 | | // if (((i<0x1ff00) || (i>0x1ff6b)) && (i<0x20000) ) |
| 693 | | // { |
| 694 | | decrypted_bios[i/4] = dword ^ xormask; |
| 695 | | // } |
| 696 | | // else |
| 697 | | // { |
| 698 | | // decrypted_bios[i/4] = dword; |
| 699 | | // } |
| 664 | decrypted_bios[i/4] = dword ^ xormask; |
| 700 | 665 | } |
| 701 | 666 | #if 0 |
| 702 | 667 | /* Dump to file */ |
| r4207 | r4208 | |
| 716 | 681 | #endif |
| 717 | 682 | } |
| 718 | 683 | |
| 684 | |
| 719 | 685 | static DRIVER_INIT( cps3 ) |
| 720 | 686 | { |
| 721 | | const char *gamename = machine->gamedrv->name; |
| 722 | | const struct game_keys2 *k = &keys_table2[0]; |
| 723 | 687 | int i; |
| 724 | 688 | |
| 689 | // cache pointers to regions |
| 690 | cps3_user4region = memory_region(machine,"user4"); |
| 691 | cps3_user5region = memory_region(machine,"user5"); |
| 692 | |
| 693 | if (!cps3_user4region) cps3_user4region = auto_malloc(USER4REGION_LENGTH); |
| 694 | if (!cps3_user5region) cps3_user5region = auto_malloc(USER5REGION_LENGTH); |
| 695 | |
| 725 | 696 | // set strict verify |
| 726 | 697 | device_set_info_int(machine->cpu[0], CPUINFO_INT_SH2_DRC_OPTIONS, SH2DRC_STRICT_VERIFY); |
| 727 | 698 | |
| 728 | | cps3_key1 = -1; |
| 729 | | cps3_key2 = -1; |
| 730 | | cps3_altEncryption = -1; |
| 731 | | |
| 732 | | while (k->name) |
| 733 | | { |
| 734 | | if (strcmp(k->name, gamename) == 0) |
| 735 | | { |
| 736 | | // we have a proper key set the global variables to it (so that we can decrypt code in ram etc.) |
| 737 | | cps3_key1 = k->keys[0]; |
| 738 | | cps3_key2 = k->keys[1]; |
| 739 | | cps3_altEncryption = k->isSpecial; |
| 740 | | break; |
| 741 | | } |
| 742 | | ++k; |
| 743 | | } |
| 744 | | |
| 745 | 699 | cps3_decrypt_bios(machine); |
| 746 | 700 | decrypted_gamerom = auto_malloc(0x1000000); |
| 747 | 701 | |
| r4207 | r4208 | |
| 760 | 714 | intelflash_init( machine, i, FLASH_FUJITSU_29F016A, NULL ); |
| 761 | 715 | |
| 762 | 716 | cps3_eeprom = auto_malloc(0x400); |
| 717 | } |
| 763 | 718 | |
| 719 | static DRIVER_INIT( jojo ) { cps3_key1 = 0x02203ee3; cps3_key2 = 0x01301972; cps3_altEncryption = 0; DRIVER_INIT_CALL(cps3); } |
| 720 | static DRIVER_INIT( jojoba ) { cps3_key1 = 0x23323ee3; cps3_key2 = 0x03021972; cps3_altEncryption = 0; DRIVER_INIT_CALL(cps3); } |
| 721 | static DRIVER_INIT( sfiii ) { cps3_key1 = 0xb5fe053e; cps3_key2 = 0xfc03925a; cps3_altEncryption = 0; DRIVER_INIT_CALL(cps3); } |
| 722 | static DRIVER_INIT( sfiii2 ) { cps3_key1 = 0x00000000; cps3_key2 = 0x00000000; cps3_altEncryption = 1; DRIVER_INIT_CALL(cps3); } |
| 723 | static DRIVER_INIT( sfiii3 ) { cps3_key1 = 0xa55432b4; cps3_key2 = 0x0c129981; cps3_altEncryption = 0; DRIVER_INIT_CALL(cps3); } |
| 724 | static DRIVER_INIT( redearth ){ cps3_key1 = 0x9e300ab1; cps3_key2 = 0xa175b82c; cps3_altEncryption = 0; DRIVER_INIT_CALL(cps3); } |
| 764 | 725 | |
| 765 | 726 | |
| 766 | | } |
| 767 | | |
| 768 | 727 | /* GFX decodes */ |
| 769 | 728 | |
| 770 | 729 | |
| r4207 | r4208 | |
| 1320 | 1279 | direct->decrypted = (UINT8*)decrypted_gamerom-0x06000000; |
| 1321 | 1280 | direct->raw = (UINT8*)decrypted_gamerom-0x06000000; |
| 1322 | 1281 | |
| 1323 | | if (cps3_altEncryption) direct->raw = (UINT8*) memory_region(space->machine, "user4")-0x06000000; |
| 1282 | if (cps3_altEncryption) direct->raw = (UINT8*) cps3_user4region-0x06000000; |
| 1324 | 1283 | |
| 1325 | 1284 | |
| 1326 | 1285 | return ~0; |
| r4207 | r4208 | |
| 1467 | 1426 | |
| 1468 | 1427 | /* make a copy in the linear memory region we actually use for drawing etc. having it stored in interleaved flash roms isnt' very useful */ |
| 1469 | 1428 | { |
| 1470 | | UINT32* romdata = (UINT32*)memory_region(space->machine, "user5"); |
| 1429 | UINT32* romdata = (UINT32*)cps3_user5region; |
| 1471 | 1430 | int real_offset = 0; |
| 1472 | 1431 | UINT32 newdata; |
| 1473 | 1432 | UINT8* ptr1 = intelflash_getmemptr(flash1); |
| r4207 | r4208 | |
| 1569 | 1528 | |
| 1570 | 1529 | /* copy data into regions to execute from */ |
| 1571 | 1530 | { |
| 1572 | | UINT32* romdata = (UINT32*)memory_region(machine, "user4"); |
| 1531 | UINT32* romdata = (UINT32*)cps3_user4region; |
| 1573 | 1532 | UINT32* romdata2 = (UINT32*)decrypted_gamerom; |
| 1574 | 1533 | int real_offset = 0; |
| 1575 | 1534 | UINT32 newdata; |
| r4207 | r4208 | |
| 1834 | 1793 | if (data & 0x0002) |
| 1835 | 1794 | { |
| 1836 | 1795 | int i; |
| 1837 | | UINT16* src = (UINT16*)memory_region(space->machine, "user5"); |
| 1796 | UINT16* src = (UINT16*)cps3_user5region; |
| 1838 | 1797 | // if(DEBUG_PRINTF) printf("CPS3 pal dma start %08x (real: %08x) dest %08x fade %08x other2 %08x (length %04x)\n", paldma_source, paldma_realsource, paldma_dest, paldma_fade, paldma_other2, paldma_length); |
| 1839 | 1798 | |
| 1840 | 1799 | for (i=0;i<paldma_length;i++) |
| r4207 | r4208 | |
| 1913 | 1872 | |
| 1914 | 1873 | static void cps3_do_char_dma( running_machine *machine, UINT32 real_source, UINT32 real_destination, UINT32 real_length ) |
| 1915 | 1874 | { |
| 1916 | | UINT8* sourcedata = (UINT8*)memory_region(machine, "user5"); |
| 1875 | UINT8* sourcedata = (UINT8*)cps3_user5region; |
| 1917 | 1876 | int length_remaining; |
| 1918 | 1877 | |
| 1919 | 1878 | last_normal_byte = 0; |
| r4207 | r4208 | |
| 1998 | 1957 | |
| 1999 | 1958 | static void cps3_do_alt_char_dma( running_machine *machine, UINT32 src, UINT32 real_dest, UINT32 real_length ) |
| 2000 | 1959 | { |
| 2001 | | UINT8* px = (UINT8*)memory_region(machine, "user5"); |
| 1960 | UINT8* px = (UINT8*)cps3_user5region; |
| 2002 | 1961 | UINT32 start = real_dest; |
| 2003 | 1962 | UINT32 ds = real_dest; |
| 2004 | 1963 | |
| r4207 | r4208 | |
| 2334 | 2293 | current_table_address = -1; |
| 2335 | 2294 | } |
| 2336 | 2295 | |
| 2337 | | #define MASTER_CLOCK 42954500 |
| 2338 | 2296 | |
| 2339 | 2297 | |
| 2340 | 2298 | |
| 2299 | |
| 2341 | 2300 | static void precopy_to_flash(running_machine *machine) |
| 2342 | 2301 | { |
| 2343 | | UINT32* romdata = (UINT32*)memory_region(machine, "user4"); |
| 2302 | UINT32* romdata = (UINT32*)cps3_user4region; |
| 2344 | 2303 | int i; |
| 2345 | 2304 | /* precopy program roms, ok, sfiii2 tests pass, others fail because of how the decryption affects testing */ |
| 2346 | 2305 | for (i=0;i<0x800000;i+=4) |
| r4207 | r4208 | |
| 2377 | 2336 | |
| 2378 | 2337 | /* precopy gfx roms, good, tests pass */ |
| 2379 | 2338 | { |
| 2380 | | UINT32 thebase, len = memory_region_length(machine, "user5"); |
| 2339 | UINT32 thebase, len = USER5REGION_LENGTH; |
| 2381 | 2340 | int flashnum = 8; |
| 2382 | 2341 | |
| 2383 | | romdata = (UINT32*)memory_region(machine, "user5"); |
| 2342 | romdata = (UINT32*)cps3_user5region; |
| 2384 | 2343 | for (thebase = 0;thebase < len/2; thebase+=0x200000) |
| 2385 | 2344 | { |
| 2386 | 2345 | // printf("flashnums %d. %d\n",flashnum, flashnum+1); |
| r4207 | r4208 | |
| 2406 | 2365 | // make a copy in the regions we execute code / draw gfx from |
| 2407 | 2366 | static void copy_from_nvram(running_machine *machine) |
| 2408 | 2367 | { |
| 2409 | | UINT32* romdata = (UINT32*)memory_region(machine, "user4"); |
| 2368 | UINT32* romdata = (UINT32*)cps3_user4region; |
| 2410 | 2369 | UINT32* romdata2 = (UINT32*)decrypted_gamerom; |
| 2411 | 2370 | int i; |
| 2412 | 2371 | /* copy + decrypt program roms which have been loaded from flashroms/nvram */ |
| r4207 | r4208 | |
| 2446 | 2405 | |
| 2447 | 2406 | /* copy gfx from loaded flashroms to user reigon 5, where it's used */ |
| 2448 | 2407 | { |
| 2449 | | UINT32 thebase, len = memory_region_length(machine, "user5"); |
| 2408 | UINT32 thebase, len = USER5REGION_LENGTH; |
| 2450 | 2409 | int flashnum = 8; |
| 2451 | 2410 | int countoffset = 0; |
| 2452 | 2411 | |
| 2453 | | romdata = (UINT32*)memory_region(machine, "user5"); |
| 2412 | romdata = (UINT32*)cps3_user5region; |
| 2454 | 2413 | for (thebase = 0;thebase < len/2; thebase+=0x200000) |
| 2455 | 2414 | { |
| 2456 | 2415 | // printf("flashnums %d. %d\n",flashnum, flashnum+1); |
| r4207 | r4208 | |
| 2632 | 2591 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2633 | 2592 | ROM_LOAD( "sfiii_usa.29f400.u2", 0x000000, 0x080000, CRC(fb172a8e) SHA1(48ebf59910f246835f7dc0c588da30f7a908072f) ) |
| 2634 | 2593 | |
| 2635 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* Program Code Region */ |
| 2636 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* GFX Region */ |
| 2637 | | |
| 2638 | 2594 | DISK_REGION( "cdrom" ) |
| 2639 | 2595 | DISK_IMAGE_READONLY( "sf3000", 0, MD5(cdc5c5423bd8c053de7cdd927dc60da7) SHA1(cc72c9eb2096f4d51f2cf6df18f29fd79d05067c) ) |
| 2640 | 2596 | ROM_END |
| r4207 | r4208 | |
| 2643 | 2599 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2644 | 2600 | ROM_LOAD( "sfiii_japan.29f400.u2", 0x000000, 0x080000, CRC(74205250) SHA1(c3e83ace7121d32da729162662ec6b5285a31211) ) |
| 2645 | 2601 | |
| 2646 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* Program Code Region */ |
| 2647 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* GFX Region */ |
| 2648 | | |
| 2649 | 2602 | DISK_REGION( "cdrom" ) |
| 2650 | 2603 | DISK_IMAGE_READONLY( "sf3000", 0, MD5(cdc5c5423bd8c053de7cdd927dc60da7) SHA1(cc72c9eb2096f4d51f2cf6df18f29fd79d05067c) ) |
| 2651 | 2604 | ROM_END |
| r4207 | r4208 | |
| 2654 | 2607 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2655 | 2608 | ROM_LOAD( "sfiii2_usa.29f400.u2", 0x000000, 0x080000, CRC(75dd72e0) SHA1(5a12d6ea6734df5de00ecee6f9ef470749d2f242) ) |
| 2656 | 2609 | |
| 2657 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* Program Code Region */ |
| 2658 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* GFX Region */ |
| 2659 | | |
| 2660 | 2610 | DISK_REGION( "cdrom" ) |
| 2661 | 2611 | DISK_IMAGE_READONLY( "3ga000", 0, MD5(941c7e8d0838db9880ea7bf169ad310d) SHA1(76e9fdef020c4b85a10aa8828a63e67c7dca22bd) ) |
| 2662 | 2612 | ROM_END |
| r4207 | r4208 | |
| 2665 | 2615 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2666 | 2616 | ROM_LOAD( "sfiii2_japan.29f400.u2", 0x000000, 0x080000, CRC(faea0a3e) SHA1(a03cd63bcf52e4d57f7a598c8bc8e243694624ec) ) |
| 2667 | 2617 | |
| 2668 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* Program Code Region */ |
| 2669 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* GFX Region */ |
| 2670 | | |
| 2671 | 2618 | DISK_REGION( "cdrom" ) |
| 2672 | 2619 | DISK_IMAGE_READONLY( "3ga000", 0, MD5(941c7e8d0838db9880ea7bf169ad310d) SHA1(76e9fdef020c4b85a10aa8828a63e67c7dca22bd) ) |
| 2673 | 2620 | ROM_END |
| r4207 | r4208 | |
| 2676 | 2623 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2677 | 2624 | ROM_LOAD( "sfiii3_usa.29f400.u2", 0x000000, 0x080000, CRC(ecc545c1) SHA1(e39083820aae914fd8b80c9765129bedb745ceba) ) |
| 2678 | 2625 | |
| 2679 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* Program Code Region */ |
| 2680 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* GFX Region */ |
| 2681 | | |
| 2682 | 2626 | DISK_REGION( "cdrom" ) |
| 2683 | 2627 | DISK_IMAGE_READONLY( "cap-33s-2", 0, SHA1(24e78b8c66fb1573ffd642ee51607f3b53ed40b7) MD5(cf63f3dbcc2653b95709133fe79c7225) ) |
| 2684 | 2628 | ROM_END |
| r4207 | r4208 | |
| 2687 | 2631 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2688 | 2632 | ROM_LOAD( "sfiii3_usa.29f400.u2", 0x000000, 0x080000, CRC(ecc545c1) SHA1(e39083820aae914fd8b80c9765129bedb745ceba) ) |
| 2689 | 2633 | |
| 2690 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* Program Code Region */ |
| 2691 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* GFX Region */ |
| 2692 | | |
| 2693 | 2634 | DISK_REGION( "cdrom" ) |
| 2694 | 2635 | DISK_IMAGE_READONLY( "33s000", 0, MD5(f159ad85cc94ced3ddb9ef5e92173a9f) SHA1(47c7ae0f2dc47c7d28bdf66d378a3aaba4c99c75) ) |
| 2695 | 2636 | ROM_END |
| r4207 | r4208 | |
| 2698 | 2639 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2699 | 2640 | ROM_LOAD( "warzard_euro.29f400.u2", 0x000000, 0x080000, CRC(02e0f336) SHA1(acc37e830dfeb9674f5a0fb24f4cc23217ae4ff5) ) |
| 2700 | 2641 | |
| 2701 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* Program Code Region */ |
| 2702 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* GFX Region */ |
| 2703 | | |
| 2704 | 2642 | DISK_REGION( "cdrom" ) |
| 2705 | 2643 | DISK_IMAGE_READONLY( "wzd000", 0, MD5(028ff12a4ce34118dd0091e87c8cdd08) SHA1(6d4e6b7fff4ff3f04e349479fa5a1cbe63e673b8) ) |
| 2706 | 2644 | ROM_END |
| r4207 | r4208 | |
| 2709 | 2647 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2710 | 2648 | ROM_LOAD( "warzard_japan.29f400.u2", 0x000000, 0x080000, CRC(f8e2f0c6) SHA1(93d6a986f44c211fff014e55681eca4d2a2774d6) ) |
| 2711 | 2649 | |
| 2712 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* Program Code Region */ |
| 2713 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* GFX Region */ |
| 2714 | | |
| 2715 | 2650 | DISK_REGION( "cdrom" ) |
| 2716 | 2651 | DISK_IMAGE_READONLY( "wzd000", 0, MD5(028ff12a4ce34118dd0091e87c8cdd08) SHA1(6d4e6b7fff4ff3f04e349479fa5a1cbe63e673b8) ) |
| 2717 | 2652 | ROM_END |
| r4207 | r4208 | |
| 2720 | 2655 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2721 | 2656 | ROM_LOAD( "jojo_japan.29f400.u2", 0x000000, 0x080000, CRC(02778f60) SHA1(a167f9ebe030592a0cdb0c6a3c75835c6a43be4c) ) |
| 2722 | 2657 | |
| 2723 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* Program Code Region */ |
| 2724 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* GFX Region */ |
| 2725 | | |
| 2726 | 2658 | DISK_REGION( "cdrom" ) |
| 2727 | 2659 | DISK_IMAGE_READONLY( "cap-jjk-160", 0, SHA1(74fb14d838d98c3e10baa08e6f7b2464d840dcf0) MD5(93cc16f11a88c8f5268cb96baebc0a13) ) |
| 2728 | 2660 | ROM_END |
| r4207 | r4208 | |
| 2731 | 2663 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2732 | 2664 | ROM_LOAD( "jojo_japan.29f400.u2", 0x000000, 0x080000, CRC(02778f60) SHA1(a167f9ebe030592a0cdb0c6a3c75835c6a43be4c) ) |
| 2733 | 2665 | |
| 2734 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* Program Code Region */ |
| 2735 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* GFX Region */ |
| 2736 | | |
| 2737 | 2666 | DISK_REGION( "cdrom" ) |
| 2738 | 2667 | DISK_IMAGE_READONLY( "jjk000", 0, MD5(05440ecf90e836207a27a99c817a3328) SHA1(d5a11315ac21e573ffe78e63602ec2cb420f361f) ) |
| 2739 | 2668 | ROM_END |
| r4207 | r4208 | |
| 2742 | 2671 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2743 | 2672 | ROM_LOAD( "jojoba_japan.29f400.u2", 0x000000, 0x080000, CRC(3085478c) SHA1(055eab1fc42816f370a44b17fd7e87ffcb10e8b7) ) |
| 2744 | 2673 | |
| 2745 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* Program Code Region */ |
| 2746 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* GFX Region */ |
| 2747 | | |
| 2748 | 2674 | DISK_REGION( "cdrom" ) |
| 2749 | 2675 | DISK_IMAGE_READONLY( "jjm000", 0, MD5(bf6b90334bf1f6bd8dbfed737face2d6) SHA1(688520bb83ccbf4b31c3bfe26bd0cc8292a8c558) ) |
| 2750 | 2676 | ROM_END |
| r4207 | r4208 | |
| 2756 | 2682 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2757 | 2683 | ROM_LOAD( "sfiii_asia_nocd.29f400.u2", 0x000000, 0x080000, CRC(73e32463) SHA1(45d144e533e4b20cc5a744ca4f618e288430c601) ) |
| 2758 | 2684 | |
| 2759 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2685 | ROM_REGION32_BE( USER4REGION_LENGTH, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2760 | 2686 | ROM_LOAD( "10", 0x0000000, 0x800000, CRC(e896dc27) SHA1(47623820c64b72e69417afcafaacdd2c318cde1c) ) |
| 2761 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2687 | ROM_REGION16_BE( USER5REGION_LENGTH, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2762 | 2688 | ROM_LOAD( "30", 0x0000000, 0x800000, CRC(98c2d07c) SHA1(604ce4a16170847c10bc233a47a47a119ce170f7) ) |
| 2763 | 2689 | ROM_LOAD( "31", 0x0800000, 0x800000, CRC(7115a396) SHA1(b60a74259e3c223138e66e68a3f6457694a0c639) ) |
| 2764 | 2690 | ROM_LOAD( "40", 0x1000000, 0x800000, CRC(839f0972) SHA1(844e43fcc157b7c774044408bfe918c49e174cdb) ) |
| r4207 | r4208 | |
| 2770 | 2696 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2771 | 2697 | ROM_LOAD( "sfiii2_asia_nocd.29f400.u2", 0x000000, 0x080000, CRC(fd297c0d) SHA1(4323deda2789f104b53f32a663196ec16de73215) ) |
| 2772 | 2698 | |
| 2773 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2699 | ROM_REGION32_BE( USER4REGION_LENGTH, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2774 | 2700 | ROM_LOAD( "10", 0x0000000, 0x800000, CRC(682b014a) SHA1(abd5785f4b7c89584d6d1cf6fb61a77d7224f81f) ) |
| 2775 | 2701 | ROM_LOAD( "20", 0x0800000, 0x800000, CRC(38090460) SHA1(aaade89b8ccdc9154f97442ca35703ec538fe8be) ) |
| 2776 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2702 | ROM_REGION16_BE( USER5REGION_LENGTH, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2777 | 2703 | ROM_LOAD( "30", 0x0000000, 0x800000, CRC(77c197c0) SHA1(944381161462e65de7ae63a656658f3fbe44727a) ) |
| 2778 | 2704 | ROM_LOAD( "31", 0x0800000, 0x800000, CRC(7470a6f2) SHA1(850b2e20afe8a5a1f0d212d9abe002cb5cf14d22) ) |
| 2779 | 2705 | ROM_LOAD( "40", 0x1000000, 0x800000, CRC(01a85ced) SHA1(802df3274d5f767636b2785606e0558f6d3b9f13) ) |
| r4207 | r4208 | |
| 2786 | 2712 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2787 | 2713 | ROM_LOAD( "sfiii3_japan_nocd.29f400.u2", 0x000000, 0x080000, CRC(1edc6366) SHA1(60b4b9adeb030a33059d74fdf03873029e465b52) ) |
| 2788 | 2714 | |
| 2789 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2715 | ROM_REGION32_BE( USER4REGION_LENGTH, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2790 | 2716 | ROM_LOAD( "10", 0x0000000, 0x800000, CRC(ba7f76b2) SHA1(6b396596dea009b34af17484919ae37eda53ec65) ) |
| 2791 | 2717 | ROM_LOAD( "20", 0x0800000, 0x800000, CRC(5ca8faba) SHA1(71c12638ae7fa38b362d68c3ccb4bb3ccd67f0e9) ) |
| 2792 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2718 | ROM_REGION16_BE( USER5REGION_LENGTH, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2793 | 2719 | ROM_LOAD( "30", 0x0000000, 0x800000, CRC(b37cf960) SHA1(60310f95e4ecedee85846c08ccba71e286cda73b) ) |
| 2794 | 2720 | ROM_LOAD( "31", 0x0800000, 0x800000, CRC(450ec982) SHA1(1cb3626b8479997c4f1b29c41c81cac038fac31b) ) |
| 2795 | 2721 | ROM_LOAD( "40", 0x1000000, 0x800000, CRC(632c965f) SHA1(9a46b759f5dee35411fd6446c2457c084a6dfcd8) ) |
| r4207 | r4208 | |
| 2804 | 2730 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2805 | 2731 | ROM_LOAD( "sfiii3_japan_nocd.29f400.u2", 0x000000, 0x080000, CRC(1edc6366) SHA1(60b4b9adeb030a33059d74fdf03873029e465b52) ) |
| 2806 | 2732 | |
| 2807 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2733 | ROM_REGION32_BE( USER4REGION_LENGTH, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2808 | 2734 | ROM_LOAD( "10", 0x0000000, 0x800000, CRC(77233d39) SHA1(59c3f890fdc33a7d8dc91e5f9c4e7b7019acfb00) ) |
| 2809 | 2735 | ROM_LOAD( "20", 0x0800000, 0x800000, CRC(5ca8faba) SHA1(71c12638ae7fa38b362d68c3ccb4bb3ccd67f0e9) ) |
| 2810 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2736 | ROM_REGION16_BE( USER5REGION_LENGTH, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2811 | 2737 | ROM_LOAD( "30", 0x0000000, 0x800000, CRC(b37cf960) SHA1(60310f95e4ecedee85846c08ccba71e286cda73b) ) |
| 2812 | 2738 | ROM_LOAD( "31", 0x0800000, 0x800000, CRC(450ec982) SHA1(1cb3626b8479997c4f1b29c41c81cac038fac31b) ) |
| 2813 | 2739 | ROM_LOAD( "40", 0x1000000, 0x800000, CRC(632c965f) SHA1(9a46b759f5dee35411fd6446c2457c084a6dfcd8) ) |
| r4207 | r4208 | |
| 2822 | 2748 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2823 | 2749 | ROM_LOAD( "jojo_asia_nocd.29f400.u2", 0x000000, 0x080000, CRC(05b4f953) SHA1(c746c7bb5359acc9adced817cb4870b1912eaefd) ) |
| 2824 | 2750 | |
| 2825 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2751 | ROM_REGION32_BE( USER4REGION_LENGTH, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2826 | 2752 | ROM_LOAD( "10", 0x0000000, 0x800000, CRC(bc612872) SHA1(18930f2906176b54a9b8bec56f06dda3362eb418) ) |
| 2827 | 2753 | ROM_LOAD( "20", 0x0800000, 0x800000, CRC(0e1daddf) SHA1(34bb4e0fb86258095a7b20f60174453195f3735a) ) |
| 2828 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2754 | ROM_REGION16_BE( USER5REGION_LENGTH, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2829 | 2755 | ROM_LOAD( "30", 0x0000000, 0x800000, CRC(1d99181b) SHA1(25c216de16cefac2d5892039ad23d07848a457e6) ) |
| 2830 | 2756 | ROM_LOAD( "31", 0x0800000, 0x800000, CRC(6889fbda) SHA1(53a51b993d319d81a604cdf70b224955eacb617e) ) |
| 2831 | 2757 | ROM_LOAD( "40", 0x1000000, 0x800000, CRC(8069f9de) SHA1(7862ee104a2e9034910dd592687b40ebe75fa9ce) ) |
| r4207 | r4208 | |
| 2837 | 2763 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2838 | 2764 | ROM_LOAD( "jojo_asia_nocd.29f400.u2", 0x000000, 0x080000, CRC(05b4f953) SHA1(c746c7bb5359acc9adced817cb4870b1912eaefd) ) |
| 2839 | 2765 | |
| 2840 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2766 | ROM_REGION32_BE( USER4REGION_LENGTH, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2841 | 2767 | ROM_LOAD( "10", 0x0000000, 0x800000, CRC(e40dc123) SHA1(517e7006349b5a8fd6c30910362583f48d009355) ) |
| 2842 | 2768 | ROM_LOAD( "20", 0x0800000, 0x800000, CRC(0571e37c) SHA1(1aa28ef6ea1b606a55d0766480b3ee156f0bca5a) ) |
| 2843 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2769 | ROM_REGION16_BE( USER5REGION_LENGTH, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2844 | 2770 | ROM_LOAD( "30", 0x0000000, 0x800000, CRC(1d99181b) SHA1(25c216de16cefac2d5892039ad23d07848a457e6) ) |
| 2845 | 2771 | ROM_LOAD( "31", 0x0800000, 0x800000, CRC(6889fbda) SHA1(53a51b993d319d81a604cdf70b224955eacb617e) ) |
| 2846 | 2772 | ROM_LOAD( "40", 0x1000000, 0x800000, CRC(8069f9de) SHA1(7862ee104a2e9034910dd592687b40ebe75fa9ce) ) |
| r4207 | r4208 | |
| 2852 | 2778 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2853 | 2779 | ROM_LOAD( "jojoba_japan_nocd.29f400.u2", 0x000000, 0x080000, CRC(4dab19f5) SHA1(ba07190e7662937fc267f07285c51e99a45c061e) ) |
| 2854 | 2780 | |
| 2855 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2781 | ROM_REGION32_BE( USER4REGION_LENGTH, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2856 | 2782 | ROM_LOAD( "10", 0x000000, 0x800000, CRC(6e2490f6) SHA1(75cbf1e39ad6362a21c937c827e492d927b7cf39) ) |
| 2857 | 2783 | ROM_LOAD( "20", 0x800000, 0x800000, CRC(1293892b) SHA1(b1beafac1a9c4b6d0640658af8a3eb359e76eb25) ) |
| 2858 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2784 | ROM_REGION16_BE( USER5REGION_LENGTH, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2859 | 2785 | ROM_LOAD( "30", 0x0000000, 0x800000, CRC(d25c5005) SHA1(93a19a14783d604bb42feffbe23eb370d11281e8) ) |
| 2860 | 2786 | ROM_LOAD( "31", 0x0800000, 0x800000, CRC(51bb3dba) SHA1(39e95a05882909820b3efa6a3b457b8574012638) ) |
| 2861 | 2787 | ROM_LOAD( "40", 0x1000000, 0x800000, CRC(94dc26d4) SHA1(5ae2815142972f322886eea4885baf2b82563ab1) ) |
| r4207 | r4208 | |
| 2868 | 2794 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2869 | 2795 | ROM_LOAD( "jojoba_euro_nocd.29f400.u2", 0x000000, 0x080000, CRC(1ee2d679) SHA1(9e129b454a376606b3f7e8aec64de425cf9c635c) ) |
| 2870 | 2796 | |
| 2871 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2797 | ROM_REGION32_BE( USER4REGION_LENGTH, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2872 | 2798 | ROM_LOAD( "10", 0x000000, 0x800000, CRC(6e2490f6) SHA1(75cbf1e39ad6362a21c937c827e492d927b7cf39) ) |
| 2873 | 2799 | ROM_LOAD( "20", 0x800000, 0x800000, CRC(1293892b) SHA1(b1beafac1a9c4b6d0640658af8a3eb359e76eb25) ) |
| 2874 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2800 | ROM_REGION16_BE( USER5REGION_LENGTH, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2875 | 2801 | ROM_LOAD( "30", 0x0000000, 0x800000, CRC(d25c5005) SHA1(93a19a14783d604bb42feffbe23eb370d11281e8) ) |
| 2876 | 2802 | ROM_LOAD( "31", 0x0800000, 0x800000, CRC(51bb3dba) SHA1(39e95a05882909820b3efa6a3b457b8574012638) ) |
| 2877 | 2803 | ROM_LOAD( "40", 0x1000000, 0x800000, CRC(94dc26d4) SHA1(5ae2815142972f322886eea4885baf2b82563ab1) ) |
| r4207 | r4208 | |
| 2885 | 2811 | ROM_REGION32_BE( 0x080000, "user1", 0 ) /* bios region */ |
| 2886 | 2812 | ROM_LOAD( "redearth_nocd.bios", 0x000000, 0x080000, NO_DUMP ) |
| 2887 | 2813 | |
| 2888 | | ROM_REGION32_BE( 0x800000*2, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2814 | ROM_REGION32_BE( USER4REGION_LENGTH, "user4", ROMREGION_ERASEFF ) /* cd content region */ |
| 2889 | 2815 | ROM_LOAD( "10", 0x000000, 0x800000, CRC(68188016) SHA1(93aaac08cb5566c33aabc16457085b0a36048019) ) |
| 2890 | | ROM_REGION16_BE( 0x800000*10, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2816 | ROM_REGION16_BE( USER5REGION_LENGTH, "user5", ROMREGION_ERASEFF ) /* cd content region */ |
| 2891 | 2817 | ROM_LOAD( "30", 0x0000000, 0x800000, CRC(074cab4d) SHA1(4cb6cc9cce3b1a932b07058a5d723b3effa23fcf) ) |
| 2892 | 2818 | ROM_LOAD( "31", 0x0800000, 0x800000, CRC(14e2cad4) SHA1(9958a4e315e4476e4791a6219b93495413c7b751) ) |
| 2893 | 2819 | ROM_LOAD( "40", 0x1000000, 0x800000, CRC(72d98890) SHA1(f40926c52cb7a71b0ef0027a0ea38bbc7e8b31b0) ) |
| r4207 | r4208 | |
| 3041 | 2967 | |
| 3042 | 2968 | /* todo: use BIOS for the bios roms, having clones only for CD / No CD */ |
| 3043 | 2969 | |
| 3044 | | GAME( 1997, sfiii, 0, cps3, cps3, cps3, ROT0, "Capcom", "Street Fighter III: New Generation (USA, 970204)", GAME_IMPERFECT_GRAPHICS ) |
| 3045 | | GAME( 1997, sfiiij, sfiii, cps3, cps3, cps3, ROT0, "Capcom", "Street Fighter III: New Generation (Japan, 970204)", GAME_IMPERFECT_GRAPHICS ) |
| 2970 | GAME( 1997, sfiii, 0, cps3, cps3, sfiii, ROT0, "Capcom", "Street Fighter III: New Generation (USA, 970204)", GAME_IMPERFECT_GRAPHICS ) |
| 2971 | GAME( 1997, sfiiij, sfiii, cps3, cps3, sfiii, ROT0, "Capcom", "Street Fighter III: New Generation (Japan, 970204)", GAME_IMPERFECT_GRAPHICS ) |
| 3046 | 2972 | |
| 3047 | | GAME( 1997, sfiii2, 0, cps3, cps3, cps3, ROT0, "Capcom", "Street Fighter III 2nd Impact: Giant Attack (USA, 970930)", GAME_IMPERFECT_GRAPHICS ) |
| 3048 | | GAME( 1997, sfiii2j, sfiii2, cps3, cps3, cps3, ROT0, "Capcom", "Street Fighter III 2nd Impact: Giant Attack (Japan, 970930)", GAME_IMPERFECT_GRAPHICS ) |
| 2973 | GAME( 1997, sfiii2, 0, cps3, cps3, sfiii2, ROT0, "Capcom", "Street Fighter III 2nd Impact: Giant Attack (USA, 970930)", GAME_IMPERFECT_GRAPHICS ) |
| 2974 | GAME( 1997, sfiii2j, sfiii2, cps3, cps3, sfiii2, ROT0, "Capcom", "Street Fighter III 2nd Impact: Giant Attack (Japan, 970930)", GAME_IMPERFECT_GRAPHICS ) |
| 3049 | 2975 | |
| 3050 | | GAME( 1999, sfiii3, 0, cps3, cps3, cps3, ROT0, "Capcom", "Street Fighter III 3rd Strike: Fight for the Future (USA, 990608)", GAME_IMPERFECT_GRAPHICS ) |
| 3051 | | GAME( 1999, sfiii3a, sfiii3, cps3, cps3, cps3, ROT0, "Capcom", "Street Fighter III 3rd Strike: Fight for the Future (USA, 990512)", GAME_IMPERFECT_GRAPHICS ) |
| 2976 | GAME( 1999, sfiii3, 0, cps3, cps3, sfiii3, ROT0, "Capcom", "Street Fighter III 3rd Strike: Fight for the Future (USA, 990608)", GAME_IMPERFECT_GRAPHICS ) |
| 2977 | GAME( 1999, sfiii3a, sfiii3, cps3, cps3, sfiii3, ROT0, "Capcom", "Street Fighter III 3rd Strike: Fight for the Future (USA, 990512)", GAME_IMPERFECT_GRAPHICS ) |
| 3052 | 2978 | |
| 3053 | | GAME( 1998, jojo, 0, cps3, cps3, cps3, ROT0, "Capcom", "JoJo's Venture / JoJo no Kimyouna Bouken (Japan, 990108)", GAME_IMPERFECT_GRAPHICS ) |
| 3054 | | GAME( 1998, jojoa, jojo, cps3, cps3, cps3, ROT0, "Capcom", "JoJo's Venture / JoJo no Kimyouna Bouken (Japan, 981202)", GAME_IMPERFECT_GRAPHICS ) |
| 2979 | GAME( 1998, jojo, 0, cps3, cps3, jojo, ROT0, "Capcom", "JoJo's Venture / JoJo no Kimyouna Bouken (Japan, 990108)", GAME_IMPERFECT_GRAPHICS ) |
| 2980 | GAME( 1998, jojoa, jojo, cps3, cps3, jojo, ROT0, "Capcom", "JoJo's Venture / JoJo no Kimyouna Bouken (Japan, 981202)", GAME_IMPERFECT_GRAPHICS ) |
| 3055 | 2981 | |
| 3056 | | GAME( 1999, jojoba, 0, cps3, cps3, cps3, ROT0, "Capcom", "JoJo's Bizarre Adventure: Heritage for the Future / JoJo no Kimyouna Bouken: Miraie no Isan (Japan, 990913)", GAME_IMPERFECT_GRAPHICS ) |
| 2982 | GAME( 1999, jojoba, 0, cps3, cps3, jojoba, ROT0, "Capcom", "JoJo's Bizarre Adventure: Heritage for the Future / JoJo no Kimyouna Bouken: Miraie no Isan (Japan, 990913)", GAME_IMPERFECT_GRAPHICS ) |
| 3057 | 2983 | |
| 3058 | | GAME( 1996, redearth,0, cps3, cps3, cps3, ROT0, "Capcom", "Red Earth (Euro, 961121)", GAME_IMPERFECT_GRAPHICS ) |
| 3059 | | GAME( 1996, warzard, redearth, cps3, cps3, cps3, ROT0, "Capcom", "Warzard (Japan, 961121)", GAME_IMPERFECT_GRAPHICS ) |
| 2984 | GAME( 1996, redearth,0, cps3, cps3, redearth, ROT0, "Capcom", "Red Earth (Euro, 961121)", GAME_IMPERFECT_GRAPHICS ) |
| 2985 | GAME( 1996, warzard, redearth, cps3, cps3, redearth, ROT0, "Capcom", "Warzard (Japan, 961121)", GAME_IMPERFECT_GRAPHICS ) |
| 3060 | 2986 | |
| 3061 | 2987 | /* NO-CD sets */ |
| 3062 | 2988 | |
| 3063 | | GAME( 1997, sfiiin, sfiii, cps3, cps3, cps3, ROT0, "Capcom", "Street Fighter III: New Generation (Asia, 970204, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 2989 | GAME( 1997, sfiiin, sfiii, cps3, cps3, sfiii, ROT0, "Capcom", "Street Fighter III: New Generation (Asia, 970204, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 3064 | 2990 | |
| 3065 | | GAME( 1997, sfiii2n, sfiii2, cps3, cps3, cps3, ROT0, "Capcom", "Street Fighter III 2nd Impact: Giant Attack (Asia, 970930, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 2991 | GAME( 1997, sfiii2n, sfiii2, cps3, cps3, sfiii2, ROT0, "Capcom", "Street Fighter III 2nd Impact: Giant Attack (Asia, 970930, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 3066 | 2992 | |
| 3067 | | GAME( 1999, sfiii3n, sfiii3, cps3, cps3, cps3, ROT0, "Capcom", "Street Fighter III 3rd Strike: Fight for the Future (Japan, 990608, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 3068 | | GAME( 1999, sfiii3an,sfiii3, cps3, cps3, cps3, ROT0, "Capcom", "Street Fighter III 3rd Strike: Fight for the Future (Japan, 990512, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 2993 | GAME( 1999, sfiii3n, sfiii3, cps3, cps3, sfiii3, ROT0, "Capcom", "Street Fighter III 3rd Strike: Fight for the Future (Japan, 990608, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 2994 | GAME( 1999, sfiii3an,sfiii3, cps3, cps3, sfiii3, ROT0, "Capcom", "Street Fighter III 3rd Strike: Fight for the Future (Japan, 990512, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 3069 | 2995 | |
| 3070 | | GAME( 1998, jojon, jojo, cps3, cps3, cps3, ROT0, "Capcom", "JoJo's Venture / JoJo no Kimyouna Bouken (Asia, 990108, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 3071 | | GAME( 1998, jojoan, jojo, cps3, cps3, cps3, ROT0, "Capcom", "JoJo's Venture / JoJo no Kimyouna Bouken (Asia, 981202, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 2996 | GAME( 1998, jojon, jojo, cps3, cps3, jojo, ROT0, "Capcom", "JoJo's Venture / JoJo no Kimyouna Bouken (Asia, 990108, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 2997 | GAME( 1998, jojoan, jojo, cps3, cps3, jojo, ROT0, "Capcom", "JoJo's Venture / JoJo no Kimyouna Bouken (Asia, 981202, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 3072 | 2998 | |
| 3073 | | GAME( 1999, jojoban, jojoba, cps3, cps3, cps3, ROT0, "Capcom", "JoJo's Bizarre Adventure: Heritage for the Future / JoJo no Kimyouna Bouken: Miraie no Isan (Japan, 990913, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 3074 | | GAME( 1999, jojobane,jojoba, cps3, cps3, cps3, ROT0, "Capcom", "JoJo's Bizarre Adventure: Heritage for the Future / JoJo no Kimyouna Bouken: Miraie no Isan (Euro, 990913, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 2999 | GAME( 1999, jojoban, jojoba, cps3, cps3, jojoba, ROT0, "Capcom", "JoJo's Bizarre Adventure: Heritage for the Future / JoJo no Kimyouna Bouken: Miraie no Isan (Japan, 990913, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 3000 | GAME( 1999, jojobane,jojoba, cps3, cps3, jojoba, ROT0, "Capcom", "JoJo's Bizarre Adventure: Heritage for the Future / JoJo no Kimyouna Bouken: Miraie no Isan (Euro, 990913, NO CD)", GAME_IMPERFECT_GRAPHICS ) |
| 3075 | 3001 | |
| 3076 | 3002 | // We don't have any actual warzard / red earth no cd bios sets, but keep this here anyway |
| 3077 | | GAME( 1996, redeartn,redearth, cps3, cps3, cps3, ROT0, "Capcom", "Red Earth (961121, NO CD)", GAME_NOT_WORKING ) |
| 3003 | GAME( 1996, redeartn,redearth, cps3, cps3, redearth, ROT0, "Capcom", "Red Earth (961121, NO CD)", GAME_NOT_WORKING ) |
src/mame/drivers/toaplan2.c
| r4207 | r4208 | |
| 4868 | 4868 | ROM_LOAD( "rom5.bin", 0x040000, 0x100000, CRC(f6d49863) SHA1(3a3c354852adad06e8a051511abfab7606bce382) ) |
| 4869 | 4869 | ROM_END |
| 4870 | 4870 | |
| 4871 | /* |
| 4872 | The region of Batrider is controlled by the first byte of rom prg0.u22 |
| 4873 | only sets which have been dumped from original PCBs are supported |
| 4871 | 4874 | |
| 4872 | | ROM_START( batrider ) |
| 4875 | original ROM labels have no indication of the region. |
| 4876 | |
| 4877 | valid values are: |
| 4878 | ( * denotes that this set has been found on an original PCB ) |
| 4879 | |
| 4880 | 00 : Nippon * |
| 4881 | 01 : USA * |
| 4882 | 02 : Europe * |
| 4883 | 03 : Asia |
| 4884 | 04 : German |
| 4885 | 05 : Austria |
| 4886 | 06 : Belgium |
| 4887 | 07 : Denmark |
| 4888 | 08 : Finland |
| 4889 | 09 : France |
| 4890 | 0A : Great Britain |
| 4891 | 0B : Greece |
| 4892 | 0C : Holland |
| 4893 | 0D : Italy |
| 4894 | 0E : Norway |
| 4895 | 0F : Portugal |
| 4896 | 10 : Spain |
| 4897 | 11 : Sweden |
| 4898 | 12 : Switzerland |
| 4899 | 13 : Australia |
| 4900 | 14 : New Zealand |
| 4901 | 15 : Taiwan |
| 4902 | 16 : Hong Kong |
| 4903 | 17 : Korea * |
| 4904 | 18 : China * |
| 4905 | 19 : No Region? |
| 4906 | 1A+: Invalid |
| 4907 | |
| 4908 | For future reference, that would mean the following |
| 4909 | |
| 4910 | ROM_LOAD16_BYTE( "prg0_nippon.u22", 0x000000, 0x080000, CRC(4f3fc729) SHA1(b32d51c254741b82171a86c271679522a7aefd34) ) |
| 4911 | ROM_LOAD16_BYTE( "prg0_usa.u22", 0x000000, 0x080000, CRC(2049d007) SHA1(f2a43547a6fc5083b03c1d59a85abbf6e1ce4cd9) ) |
| 4912 | ROM_LOAD16_BYTE( "prg0_europe.u22", 0x000000, 0x080000, CRC(91d3e975) SHA1(682885fc17f2424d475c282f239f42faf1aae076) ) |
| 4913 | ROM_LOAD16_BYTE( "prg0_asia.u22", 0x000000, 0x080000, CRC(fea5fe5b) SHA1(0008336ecd3886485ab1d9678880b1a0bc788f40) ) |
| 4914 | ROM_LOAD16_BYTE( "prg0_german.u22", 0x000000, 0x080000, CRC(29969dd0) SHA1(eb8ad84b772508b6befb35afb11a0d6193c6a060) ) |
| 4915 | ROM_LOAD16_BYTE( "prg0_austria.u22", 0x000000, 0x080000, CRC(46e08afe) SHA1(a6f46581d0f7285704fbf1ac57476c96f4dcbec2) ) |
| 4916 | ROM_LOAD16_BYTE( "prg0_belgium.u22", 0x000000, 0x080000, CRC(f77ab38c) SHA1(8be87175250345d3e31d95ec204805071eae81f6) ) |
| 4917 | ROM_LOAD16_BYTE( "prg0_denmark.u22", 0x000000, 0x080000, CRC(980ca4a2) SHA1(4f29eaa5ba6b94d96c527f80188657abc8f4dcd0) ) |
| 4918 | ROM_LOAD16_BYTE( "prg0_finland.u22", 0x000000, 0x080000, CRC(826d72db) SHA1(be4bca0143f43c13361fd56974eb9b1ce7bd1740) ) |
| 4919 | ROM_LOAD16_BYTE( "prg0_france.u22", 0x000000, 0x080000, CRC(ed1b65f5) SHA1(1e08957c0f7ed65695fb1ceb961ab765f8a97c89) ) |
| 4920 | ROM_LOAD16_BYTE( "prg0_greatbritain.u22", 0x000000, 0x080000, CRC(5c815c87) SHA1(dea89944cd9a3fa6991b214495dc7123a505d39b) ) |
| 4921 | ROM_LOAD16_BYTE( "prg0_greece.u22", 0x000000, 0x080000, CRC(33f74ba9) SHA1(fe770415584b037152b37a75fe468d3c52dcb3cd) ) |
| 4922 | ROM_LOAD16_BYTE( "prg0_holland.u22", 0x000000, 0x080000, CRC(e4c42822) SHA1(8bfd286c42d7f2b3c88757b9a8b818be90b73f48) ) |
| 4923 | ROM_LOAD16_BYTE( "prg0_italy.u22", 0x000000, 0x080000, CRC(8bb23f0c) SHA1(b448bba312a8d583a981f6633cbc14af99fdbb06) ) |
| 4924 | ROM_LOAD16_BYTE( "prg0_norway.u22", 0x000000, 0x080000, CRC(3a28067e) SHA1(9435e6ce90b8d740a545469e6edb35d1af11ceab) ) |
| 4925 | ROM_LOAD16_BYTE( "prg0_portugal.u22", 0x000000, 0x080000, CRC(555e1150) SHA1(5c9ae898244a23a4184f9613f42d9aa9530468b9) ) |
| 4926 | ROM_LOAD16_BYTE( "prg0_spain.u22", 0x000000, 0x080000, CRC(0eebaa8c) SHA1(e305e90434e7f322a33e42a642362f770d3eb0e5) ) |
| 4927 | ROM_LOAD16_BYTE( "prg0_sweden.u22", 0x000000, 0x080000, CRC(619dbda2) SHA1(9e88ba104a5cffcced3b93ca711487a82b0fddde) ) |
| 4928 | ROM_LOAD16_BYTE( "prg0_switzerland.u22", 0x000000, 0x080000, CRC(d00784d0) SHA1(0b809414ce910684ca39216086f7d26fd2adeded) ) |
| 4929 | ROM_LOAD16_BYTE( "prg0_australia.u22", 0x000000, 0x080000, CRC(bf7193fe) SHA1(9af50fffc6ef23e300bf7b5e90b0dee6e4f4ad05) ) |
| 4930 | ROM_LOAD16_BYTE( "prg0_newzealand.u22", 0x000000, 0x080000, CRC(6842f075) SHA1(125b303c064d2f0b539ecadcb205756e7fd1334e) ) |
| 4931 | ROM_LOAD16_BYTE( "prg0_taiwan.u22", 0x000000, 0x080000, CRC(0734e75b) SHA1(17a8fb4f8fda3c234ed976490193ba308cac08fe) ) |
| 4932 | ROM_LOAD16_BYTE( "prg0_hongkong.u22", 0x000000, 0x080000, CRC(b6aede29) SHA1(580f29db6a2c2cea43966413778362694992a675) ) |
| 4933 | ROM_LOAD16_BYTE( "prg0_korea.u22", 0x000000, 0x080000, CRC(d9d8c907) SHA1(69c197f2a41f288913f042de9eb8274c0df3ac27) ) |
| 4934 | ROM_LOAD16_BYTE( "prg0_china.u22", 0x000000, 0x080000, CRC(c3b91f7e) SHA1(6b2376c37808dccda296d90ccd7f577ccff4e4dc) ) |
| 4935 | ROM_LOAD16_BYTE( "prg0_none.u22", 0x000000, 0x080000, CRC(accf0850) SHA1(d93e4e80443a40c3a9575dbf21927ef0d1a039b9) ) |
| 4936 | |
| 4937 | */ |
| 4938 | |
| 4939 | |
| 4940 | ROM_START( batrid ) |
| 4873 | 4941 | ROM_REGION( 0x200000, "main", 0 ) /* Main 68k code */ |
| 4942 | ROM_LOAD16_BYTE( "prg0_europe.u22", 0x000000, 0x080000, CRC(91d3e975) SHA1(682885fc17f2424d475c282f239f42faf1aae076) ) |
| 4943 | ROM_LOAD16_BYTE( "prg1b.u23", 0x000001, 0x080000, CRC(8e70b492) SHA1(f84f2039826ae815afb058d71c1dbd190f9d524d) ) |
| 4944 | ROM_LOAD16_BYTE( "prg2.u21" , 0x100000, 0x080000, CRC(bdaa5fbf) SHA1(abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe) ) |
| 4945 | ROM_LOAD16_BYTE( "prg3.u24" , 0x100001, 0x080000, CRC(7aa9f941) SHA1(99bdbad7a96d461073b06a53c50fc57c2fd6fc6d) ) |
| 4946 | |
| 4947 | ROM_REGION( 0x48000, "audio", 0 ) /* Sound Z80 code + bank */ |
| 4948 | ROM_LOAD( "snd.u77", 0x00000, 0x08000, CRC(56682696) SHA1(a372450d9a6d535123dfc31d8116074b168ab646) ) |
| 4949 | ROM_CONTINUE( 0x10000, 0x38000 ) |
| 4950 | |
| 4951 | ROM_REGION( 0x1000000, "gfx1", ROMREGION_DISPOSE ) |
| 4952 | ROM_LOAD( "rom-1.bin", 0x000000, 0x400000, CRC(0df69ca2) SHA1(49670347ebd7e1067ff988cf842b275b7ee7b5f7) ) |
| 4953 | ROM_LOAD( "rom-3.bin", 0x400000, 0x400000, CRC(60167d38) SHA1(fd2429808c59ef51fd5f5db84ea89a8dc504186e) ) |
| 4954 | ROM_LOAD( "rom-2.bin", 0x800000, 0x400000, CRC(1bfea593) SHA1(ce06dc3097ae56b0df56d104bbf7efc9b5d968d4) ) |
| 4955 | ROM_LOAD( "rom-4.bin", 0xc00000, 0x400000, CRC(bee03c94) SHA1(5bc1e6769c42857c03456426b502fcb86a114f19) ) |
| 4956 | |
| 4957 | ROM_REGION( 0x140000, "oki1", 0 ) /* ADPCM Samples 1 */ |
| 4958 | ROM_LOAD( "rom-5.bin", 0x040000, 0x100000, CRC(4274daf6) SHA1(85557b4707d529e5914f03c7a856864f5c24950e) ) |
| 4959 | |
| 4960 | ROM_REGION( 0x140000, "oki2", 0 ) /* ADPCM Samples 2 */ |
| 4961 | ROM_LOAD( "rom-6.bin", 0x040000, 0x100000, CRC(2a1c2426) SHA1(8abc3688ffc5ebb94b8d5118d4fa0908f07fe791) ) |
| 4962 | ROM_END |
| 4963 | |
| 4964 | ROM_START( batridu ) |
| 4965 | ROM_REGION( 0x200000, "main", 0 ) /* Main 68k code */ |
| 4966 | ROM_LOAD16_BYTE( "prg0_usa.u22", 0x000000, 0x080000, CRC(2049d007) SHA1(f2a43547a6fc5083b03c1d59a85abbf6e1ce4cd9) ) |
| 4967 | ROM_LOAD16_BYTE( "prg1b.u23", 0x000001, 0x080000, CRC(8e70b492) SHA1(f84f2039826ae815afb058d71c1dbd190f9d524d) ) |
| 4968 | ROM_LOAD16_BYTE( "prg2.u21" , 0x100000, 0x080000, CRC(bdaa5fbf) SHA1(abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe) ) |
| 4969 | ROM_LOAD16_BYTE( "prg3.u24" , 0x100001, 0x080000, CRC(7aa9f941) SHA1(99bdbad7a96d461073b06a53c50fc57c2fd6fc6d) ) |
| 4970 | |
| 4971 | ROM_REGION( 0x48000, "audio", 0 ) /* Sound Z80 code + bank */ |
| 4972 | ROM_LOAD( "snd.u77", 0x00000, 0x08000, CRC(56682696) SHA1(a372450d9a6d535123dfc31d8116074b168ab646) ) |
| 4973 | ROM_CONTINUE( 0x10000, 0x38000 ) |
| 4974 | |
| 4975 | ROM_REGION( 0x1000000, "gfx1", ROMREGION_DISPOSE ) |
| 4976 | ROM_LOAD( "rom-1.bin", 0x000000, 0x400000, CRC(0df69ca2) SHA1(49670347ebd7e1067ff988cf842b275b7ee7b5f7) ) |
| 4977 | ROM_LOAD( "rom-3.bin", 0x400000, 0x400000, CRC(60167d38) SHA1(fd2429808c59ef51fd5f5db84ea89a8dc504186e) ) |
| 4978 | ROM_LOAD( "rom-2.bin", 0x800000, 0x400000, CRC(1bfea593) SHA1(ce06dc3097ae56b0df56d104bbf7efc9b5d968d4) ) |
| 4979 | ROM_LOAD( "rom-4.bin", 0xc00000, 0x400000, CRC(bee03c94) SHA1(5bc1e6769c42857c03456426b502fcb86a114f19) ) |
| 4980 | |
| 4981 | ROM_REGION( 0x140000, "oki1", 0 ) /* ADPCM Samples 1 */ |
| 4982 | ROM_LOAD( "rom-5.bin", 0x040000, 0x100000, CRC(4274daf6) SHA1(85557b4707d529e5914f03c7a856864f5c24950e) ) |
| 4983 | |
| 4984 | ROM_REGION( 0x140000, "oki2", 0 ) /* ADPCM Samples 2 */ |
| 4985 | ROM_LOAD( "rom-6.bin", 0x040000, 0x100000, CRC(2a1c2426) SHA1(8abc3688ffc5ebb94b8d5118d4fa0908f07fe791) ) |
| 4986 | ROM_END |
| 4987 | |
| 4988 | ROM_START( batridc ) |
| 4989 | ROM_REGION( 0x200000, "main", 0 ) /* Main 68k code */ |
| 4990 | ROM_LOAD16_BYTE( "prg0_china.u22", 0x000000, 0x080000, CRC(c3b91f7e) SHA1(6b2376c37808dccda296d90ccd7f577ccff4e4dc) ) |
| 4991 | ROM_LOAD16_BYTE( "prg1b.u23", 0x000001, 0x080000, CRC(8e70b492) SHA1(f84f2039826ae815afb058d71c1dbd190f9d524d) ) |
| 4992 | ROM_LOAD16_BYTE( "prg2.u21" , 0x100000, 0x080000, CRC(bdaa5fbf) SHA1(abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe) ) |
| 4993 | ROM_LOAD16_BYTE( "prg3.u24" , 0x100001, 0x080000, CRC(7aa9f941) SHA1(99bdbad7a96d461073b06a53c50fc57c2fd6fc6d) ) |
| 4994 | |
| 4995 | ROM_REGION( 0x48000, "audio", 0 ) /* Sound Z80 code + bank */ |
| 4996 | ROM_LOAD( "snd.u77", 0x00000, 0x08000, CRC(56682696) SHA1(a372450d9a6d535123dfc31d8116074b168ab646) ) |
| 4997 | ROM_CONTINUE( 0x10000, 0x38000 ) |
| 4998 | |
| 4999 | ROM_REGION( 0x1000000, "gfx1", ROMREGION_DISPOSE ) |
| 5000 | ROM_LOAD( "rom-1.bin", 0x000000, 0x400000, CRC(0df69ca2) SHA1(49670347ebd7e1067ff988cf842b275b7ee7b5f7) ) |
| 5001 | ROM_LOAD( "rom-3.bin", 0x400000, 0x400000, CRC(60167d38) SHA1(fd2429808c59ef51fd5f5db84ea89a8dc504186e) ) |
| 5002 | ROM_LOAD( "rom-2.bin", 0x800000, 0x400000, CRC(1bfea593) SHA1(ce06dc3097ae56b0df56d104bbf7efc9b5d968d4) ) |
| 5003 | ROM_LOAD( "rom-4.bin", 0xc00000, 0x400000, CRC(bee03c94) SHA1(5bc1e6769c42857c03456426b502fcb86a114f19) ) |
| 5004 | |
| 5005 | ROM_REGION( 0x140000, "oki1", 0 ) /* ADPCM Samples 1 */ |
| 5006 | ROM_LOAD( "rom-5.bin", 0x040000, 0x100000, CRC(4274daf6) SHA1(85557b4707d529e5914f03c7a856864f5c24950e) ) |
| 5007 | |
| 5008 | ROM_REGION( 0x140000, "oki2", 0 ) /* ADPCM Samples 2 */ |
| 5009 | ROM_LOAD( "rom-6.bin", 0x040000, 0x100000, CRC(2a1c2426) SHA1(8abc3688ffc5ebb94b8d5118d4fa0908f07fe791) ) |
| 5010 | ROM_END |
| 5011 | |
| 5012 | ROM_START( batridj ) |
| 5013 | ROM_REGION( 0x200000, "main", 0 ) /* Main 68k code */ |
| 4874 | 5014 | ROM_LOAD16_BYTE( "prg0b.u22", 0x000000, 0x080000, CRC(4f3fc729) SHA1(b32d51c254741b82171a86c271679522a7aefd34) ) |
| 4875 | 5015 | ROM_LOAD16_BYTE( "prg1b.u23", 0x000001, 0x080000, CRC(8e70b492) SHA1(f84f2039826ae815afb058d71c1dbd190f9d524d) ) |
| 4876 | 5016 | ROM_LOAD16_BYTE( "prg2.u21" , 0x100000, 0x080000, CRC(bdaa5fbf) SHA1(abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe) ) |
| r4207 | r4208 | |
| 4893 | 5033 | ROM_LOAD( "rom-6.bin", 0x040000, 0x100000, CRC(2a1c2426) SHA1(8abc3688ffc5ebb94b8d5118d4fa0908f07fe791) ) |
| 4894 | 5034 | ROM_END |
| 4895 | 5035 | |
| 4896 | | |
| 4897 | | ROM_START( batridra ) |
| 5036 | ROM_START( batridk ) |
| 4898 | 5037 | ROM_REGION( 0x200000, "main", 0 ) /* Main 68k code */ |
| 4899 | | ROM_LOAD16_BYTE( "prg0.bin", 0x000000, 0x080000, CRC(f93ea27c) SHA1(41023c2ee1efd70b5aa9c70e1ddd9e5c3d51d68a) ) |
| 4900 | | ROM_LOAD16_BYTE( "prg1.bin", 0x000001, 0x080000, CRC(8ae7f592) SHA1(8a20ebf85eca621f578d2302c3a3988647b077a7) ) |
| 5038 | ROM_LOAD16_BYTE( "prg0_korea.u22", 0x000000, 0x080000, CRC(d9d8c907) SHA1(69c197f2a41f288913f042de9eb8274c0df3ac27) ) |
| 5039 | ROM_LOAD16_BYTE( "prg1.u23", 0x000001, 0x080000, CRC(8e70b492) SHA1(f84f2039826ae815afb058d71c1dbd190f9d524d) ) |
| 4901 | 5040 | ROM_LOAD16_BYTE( "prg2.u21", 0x100000, 0x080000, CRC(bdaa5fbf) SHA1(abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe) ) |
| 4902 | 5041 | ROM_LOAD16_BYTE( "prg3.u24", 0x100001, 0x080000, CRC(7aa9f941) SHA1(99bdbad7a96d461073b06a53c50fc57c2fd6fc6d) ) |
| 4903 | 5042 | |
| r4207 | r4208 | |
| 4918 | 5057 | ROM_LOAD( "rom-6.bin", 0x040000, 0x100000, CRC(2a1c2426) SHA1(8abc3688ffc5ebb94b8d5118d4fa0908f07fe791) ) |
| 4919 | 5058 | ROM_END |
| 4920 | 5059 | |
| 4921 | | |
| 4922 | | ROM_START( batridrk ) |
| 5060 | /* Version A is older, might have been only released in Japan? */ |
| 5061 | ROM_START( batridja ) |
| 4923 | 5062 | ROM_REGION( 0x200000, "main", 0 ) /* Main 68k code */ |
| 4924 | | ROM_LOAD16_BYTE( "prg0.u22", 0x000000, 0x080000, CRC(d9d8c907) SHA1(69c197f2a41f288913f042de9eb8274c0df3ac27) ) |
| 4925 | | ROM_LOAD16_BYTE( "prg1.u23", 0x000001, 0x080000, CRC(8e70b492) SHA1(f84f2039826ae815afb058d71c1dbd190f9d524d) ) |
| 5063 | ROM_LOAD16_BYTE( "prg0.bin", 0x000000, 0x080000, CRC(f93ea27c) SHA1(41023c2ee1efd70b5aa9c70e1ddd9e5c3d51d68a) ) |
| 5064 | ROM_LOAD16_BYTE( "prg1.bin", 0x000001, 0x080000, CRC(8ae7f592) SHA1(8a20ebf85eca621f578d2302c3a3988647b077a7) ) |
| 4926 | 5065 | ROM_LOAD16_BYTE( "prg2.u21", 0x100000, 0x080000, CRC(bdaa5fbf) SHA1(abd72ac633c0c8e7b4b1d7902c0d6e014ba995fe) ) |
| 4927 | 5066 | ROM_LOAD16_BYTE( "prg3.u24", 0x100001, 0x080000, CRC(7aa9f941) SHA1(99bdbad7a96d461073b06a53c50fc57c2fd6fc6d) ) |
| 4928 | 5067 | |
| r4207 | r4208 | |
| 4944 | 5083 | ROM_END |
| 4945 | 5084 | |
| 4946 | 5085 | |
| 5086 | |
| 5087 | |
| 4947 | 5088 | /* |
| 4948 | 5089 | Battle Bakraid |
| 4949 | 5090 | Raizing/8ing, 1999 |
| r4207 | r4208 | |
| 4992 | 5133 | HSync - 15.39kHz |
| 4993 | 5134 | */ |
| 4994 | 5135 | |
| 4995 | | ROM_START( bbakraid ) |
| 5136 | |
| 5137 | |
| 5138 | ROM_START( bkraidu ) |
| 4996 | 5139 | ROM_REGION( 0x200000, "main", 0 ) /* Main 68k code */ |
| 4997 | | ROM_LOAD16_BYTE( "prg0u022.bin", 0x000000, 0x080000, CRC(0dd59512) SHA1(c6a4e6aa49c6ac3b04ae62a0a4cc8084ae048381) ) |
| 4998 | | ROM_LOAD16_BYTE( "prg1u023.bin", 0x000001, 0x080000, CRC(fecde223) SHA1(eb5ac0eda49b4b0f3d25d8a8bb356e77a453d3a7) ) |
| 5140 | ROM_LOAD16_BYTE( "prg0u022_usa.bin", 0x000000, 0x080000, CRC(95fb2ffd) SHA1(c7f502f3945249573b66226e8bacc6a9bc230693) ) |
| 5141 | ROM_LOAD16_BYTE( "prg1u023.new", 0x000001, 0x080000, CRC(4ae9aa64) SHA1(45fdf72141c4c9f24a38d4218c65874799b9c868) ) |
| 4999 | 5142 | ROM_LOAD16_BYTE( "prg2u021.bin", 0x100000, 0x080000, CRC(ffba8656) SHA1(6526bb65fad3384de3f301a7d1095cbf03757433) ) |
| 5000 | 5143 | ROM_LOAD16_BYTE( "prg3u024.bin", 0x100001, 0x080000, CRC(834b8ad6) SHA1(0dd6223bb0749819ad29811eeb04fd08d937abb0) ) |
| 5001 | 5144 | |
| r4207 | r4208 | |
| 5016 | 5159 | ROM_END |
| 5017 | 5160 | |
| 5018 | 5161 | |
| 5019 | | ROM_START( bbakradu ) |
| 5162 | ROM_START( bkraiduj ) |
| 5020 | 5163 | ROM_REGION( 0x200000, "main", 0 ) /* Main 68k code */ |
| 5021 | 5164 | ROM_LOAD16_BYTE( "prg0u022.new", 0x000000, 0x080000, CRC(fa8d38d3) SHA1(aba91d87a8a62d3fe1139b4437b16e2f844264ad) ) |
| 5022 | 5165 | ROM_LOAD16_BYTE( "prg1u023.new", 0x000001, 0x080000, CRC(4ae9aa64) SHA1(45fdf72141c4c9f24a38d4218c65874799b9c868) ) |
| r4207 | r4208 | |
| 5040 | 5183 | ROM_END |
| 5041 | 5184 | |
| 5042 | 5185 | |
| 5186 | ROM_START( bkraidj ) |
| 5187 | ROM_REGION( 0x200000, "main", 0 ) /* Main 68k code */ |
| 5188 | ROM_LOAD16_BYTE( "prg0u022.bin", 0x000000, 0x080000, CRC(0dd59512) SHA1(c6a4e6aa49c6ac3b04ae62a0a4cc8084ae048381) ) |
| 5189 | ROM_LOAD16_BYTE( "prg1u023.bin", 0x000001, 0x080000, CRC(fecde223) SHA1(eb5ac0eda49b4b0f3d25d8a8bb356e77a453d3a7) ) |
| 5190 | ROM_LOAD16_BYTE( "prg2u021.bin", 0x100000, 0x080000, CRC(ffba8656) SHA1(6526bb65fad3384de3f301a7d1095cbf03757433) ) |
| 5191 | ROM_LOAD16_BYTE( "prg3u024.bin", 0x100001, 0x080000, CRC(834b8ad6) SHA1(0dd6223bb0749819ad29811eeb04fd08d937abb0) ) |
| 5043 | 5192 | |
| 5193 | ROM_REGION( 0x40000, "audio", 0 ) /* Sound Z80 code */ |
| 5194 | ROM_LOAD( "sndu0720.bin", 0x00000, 0x08000, CRC(e62ab246) SHA1(00d23689dd423ecd4024c58b5903d16e890f1dff) ) |
| 5195 | ROM_CONTINUE( 0x10000, 0x18000 ) |
| 5196 | |
| 5197 | ROM_REGION( 0x1000000, "gfx1", ROMREGION_DISPOSE ) |
| 5198 | ROM_LOAD( "gfxu0510.bin", 0x000000, 0x400000, CRC(9cca3446) SHA1(1123f8b8bfbe59a2c572cdf61f1ad27ff37f0f0d) ) |
| 5199 | ROM_LOAD( "gfxu0512.bin", 0x400000, 0x400000, CRC(a2a281d5) SHA1(d9a6623f9433ad682223f9780c26cd1523ebc5c5) ) |
| 5200 | ROM_LOAD( "gfxu0511.bin", 0x800000, 0x400000, CRC(e16472c0) SHA1(6068d679a8b3b65e05acd58a7ce9ead90177049f) ) |
| 5201 | ROM_LOAD( "gfxu0513.bin", 0xc00000, 0x400000, CRC(8bb635a0) SHA1(9064f1a2d8bb88ddbca702fb8556d0dfe6a5cadc) ) |
| 5202 | |
| 5203 | ROM_REGION( 0x0c00000, "ymz", 0 ) /* YMZ280B Samples */ |
| 5204 | ROM_LOAD( "rom6.829", 0x000000, 0x400000, CRC(8848b4a0) SHA1(e0dce136c5d5a4c1a92b863e57848cd5927d06f1) ) |
| 5205 | ROM_LOAD( "rom7.830", 0x400000, 0x400000, CRC(d6224267) SHA1(5c9b7b13effbef9f707811f84bfe50ca85e605e3) ) |
| 5206 | ROM_LOAD( "rom8.831", 0x800000, 0x400000, CRC(a101dfb0) SHA1(4b729b0d562e09df35438e9e6b457b8de2690a6e) ) |
| 5207 | ROM_END |
| 5208 | |
| 5209 | |
| 5044 | 5210 | /* The following is in order of Toaplan Board/game numbers */ |
| 5045 | 5211 | /* See list at top of file */ |
| 5046 | 5212 | /* Whoopee machine to be changed to Teki Paki when (if) HD647180 is dumped */ |
| r4207 | r4208 | |
| 5048 | 5214 | |
| 5049 | 5215 | /* ( YEAR NAME PARENT MACHINE INPUT INIT MONITOR COMPANY FULLNAME FLAGS ) */ |
| 5050 | 5216 | GAME( 1991, tekipaki, 0, tekipaki, tekipaki, T2_Z180, ROT0, "Toaplan", "Teki Paki", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) |
| 5217 | |
| 5051 | 5218 | GAME( 1991, ghox, 0, ghox, ghox, T2_Z180, ROT270, "Toaplan", "Ghox (Spinner with Up/Down Axis)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) |
| 5052 | 5219 | GAME( 1991, ghoxj, ghox, ghox, ghox, T2_Z180, ROT270, "Toaplan", "Ghox (8-Way Joystick)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) |
| 5220 | |
| 5053 | 5221 | GAME( 1992, dogyuun, 0, dogyuun, dogyuun, T2_V25, ROT270, "Toaplan", "Dogyuun", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) |
| 5054 | 5222 | GAME( 1992, dogyuunk, dogyuun, dogyuun, dogyuunk, T2_V25, ROT270, "Toaplan", "Dogyuun (Licensed to Unite Trading For Korea)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) |
| 5223 | |
| 5055 | 5224 | GAME( 1993, kbash, 0, kbash, kbash, T2_V25, ROT0, "Toaplan", "Knuckle Bash", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |
| 5225 | |
| 5056 | 5226 | GAME( 1999, kbash2, 0, kbash2, kbash2, T2_noZ80, ROT0, "bootleg", "Knuckle Bash 2 (bootleg)", GAME_SUPPORTS_SAVE ) |
| 5227 | |
| 5057 | 5228 | GAME( 1992, truxton2, 0, truxton2, truxton2, T2_noZ80, ROT270, "Toaplan", "Truxton II / Tatsujin Oh", GAME_SUPPORTS_SAVE ) |
| 5229 | |
| 5058 | 5230 | GAME( 1991, pipibibs, 0, pipibibs, pipibibs, T2_Z80, ROT0, "Toaplan", "Pipi & Bibis / Whoopee!! (Z80 sound cpu)", GAME_SUPPORTS_SAVE ) |
| 5059 | 5231 | GAME( 1991, whoopee, pipibibs, whoopee, whoopee, T2_Z80, ROT0, "Toaplan", "Whoopee!! / Pipi & Bibis", GAME_SUPPORTS_SAVE ) |
| 5060 | 5232 | GAME( 1991, pipibibi, pipibibs, pipibibi, pipibibi, pipibibi, ROT0, "[Toaplan] Ryouta Kikaku", "Pipi & Bibis / Whoopee!! (bootleg ?)", GAME_SUPPORTS_SAVE ) |
| 5233 | |
| 5061 | 5234 | GAME( 1992, fixeight, 0, fixeight, fixeight, fixeight, ROT270, "Toaplan", "FixEight", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) |
| 5062 | 5235 | GAME( 1992, fixeighb, fixeight, fixeighb, fixeighb, fixeighb, ROT270, "bootleg", "FixEight (bootleg)", GAME_SUPPORTS_SAVE ) |
| 5236 | |
| 5063 | 5237 | GAME( 1992, grindstm, vfive, vfive, grindstm, T2_V25, ROT270, "Toaplan", "Grind Stormer", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) |
| 5064 | 5238 | GAME( 1992, grindsta, vfive, vfive, grindstm, T2_V25, ROT270, "Toaplan", "Grind Stormer (older set)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) |
| 5065 | 5239 | GAME( 1993, vfive, 0, vfive, vfive, T2_V25, ROT270, "Toaplan", "V-Five (Japan)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) |
| 5240 | |
| 5066 | 5241 | GAME( 1993, batsugun, 0, batsugun, batsugun, T2_V25, ROT270, "Toaplan", "Batsugun (set 1)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| 5067 | 5242 | GAME( 1993, batsugna, batsugun, batsugun, batsugun, T2_V25, ROT270, "Toaplan", "Batsugun (set 2)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| 5068 | 5243 | GAME( 1993, batugnsp, batsugun, batsugun, batsugun, T2_V25, ROT270, "Toaplan", "Batsugun (Special Ver.)", GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| 5244 | |
| 5069 | 5245 | GAME( 1994, snowbro2, 0, snowbro2, snowbro2, T2_noZ80, ROT0, "[Toaplan] Hanafram", "Snow Bros. 2 - With New Elves / Otenki Paradise", GAME_SUPPORTS_SAVE ) |
| 5246 | |
| 5070 | 5247 | GAME( 1993, mahoudai, 0, mahoudai, mahoudai, T2_Z80, ROT270, "Raizing (Able license)", "Mahou Daisakusen (Japan)", GAME_SUPPORTS_SAVE ) |
| 5071 | 5248 | GAME( 1993, sstriker, mahoudai, mahoudai, sstriker, T2_Z80, ROT270, "Raizing", "Sorcer Striker (World)" , GAME_SUPPORTS_SAVE ) // from korean board |
| 5072 | 5249 | GAME( 1993, sstrikra, mahoudai, mahoudai, sstriker, T2_Z80, ROT270, "Raizing", "Sorcer Striker (World, alt)" , GAME_SUPPORTS_SAVE ) // verified on two different PCBs |
| 5250 | |
| 5073 | 5251 | GAME( 1994, shippumd, 0, shippumd, shippumd, T2_Z80, ROT270, "Raizing / Eighting", "Shippu Mahou Daisakusen (Japan)", GAME_SUPPORTS_SAVE ) |
| 5074 | 5252 | GAME( 1994, kingdmgp, shippumd, shippumd, kingdmgp, T2_Z80, ROT270, "Raizing / Eighting", "Kingdom Grandprix (World)" , GAME_SUPPORTS_SAVE ) // from korean board, missing letters on credits screen but this is correct |
| 5253 | |
| 5075 | 5254 | GAME( 1996, bgaregga, 0, bgaregga, bgaregga, T2_Z80, ROT270, "Raizing / Eighting", "Battle Garegga (Europe / USA / Japan / Asia) (Sat Feb 3 1996)", GAME_SUPPORTS_SAVE ) |
| 5076 | 5255 | GAME( 1996, bgareghk, bgaregga, bgaregga, bgareghk, T2_Z80, ROT270, "Raizing / Eighting", "Battle Garegga (Austria / Hong Kong) (Sat Feb 3 1996)", GAME_SUPPORTS_SAVE ) |
| 5077 | 5256 | GAME( 1996, bgaregnv, bgaregga, bgaregga, bgareghk, T2_Z80, ROT270, "Raizing / Eighting", "Battle Garegga - New Version (Austria / Hong Kong) (Sat Mar 2 1996)" , GAME_SUPPORTS_SAVE ) // displays New Version only when set to HK |
| 5078 | 5257 | GAME( 1996, bgaregt2, bgaregga, bgaregga, bgaregga, T2_Z80, ROT270, "Raizing / Eighting", "Battle Garegga - Type 2 (Europe / USA / Japan / Asia) (Sat Mar 2 1996)" , GAME_SUPPORTS_SAVE ) // displays Type 2 only when set to Europe |
| 5079 | 5258 | GAME( 1996, bgaregcn, bgaregga, bgaregga, bgaregcn, T2_Z80, ROT270, "Raizing / Eighting", "Battle Garegga - Type 2 (Denmark / China) (Tue Apr 2 1996)", GAME_SUPPORTS_SAVE ) // displays Type 2 only when set to Denmark |
| 5080 | | GAME( 1998, batrider, 0, batrider, batrider, batrider, ROT270, "Raizing / Eighting", "Armed Police Batrider - B Version (Japan) (Fri Feb 13 1998)", GAME_SUPPORTS_SAVE ) |
| 5081 | | GAME( 1998, batridra, batrider, batrider, batrider, batrider, ROT270, "Raizing / Eighting", "Armed Police Batrider (Japan) (Mon Dec 22 1997)", GAME_SUPPORTS_SAVE ) |
| 5082 | | GAME( 1998, batridrk, batrider, batrider, batrider, batrider, ROT270, "Raizing / Eighting", "Armed Police Batrider (Korea) (Fri Feb 13 1998)", GAME_SUPPORTS_SAVE ) |
| 5083 | | GAME( 1999, bbakraid, 0, bbakraid, bbakraid, bbakraid, ROT270, "Eighting", "Battle Bakraid (Japan) (Wed Apr 7 1999)", GAME_SUPPORTS_SAVE ) |
| 5084 | | GAME( 1999, bbakradu, bbakraid, bbakraid, bbakraid, bbakradu, ROT270, "Eighting", "Battle Bakraid - Unlimited Version (Japan) (Tue Jun 8 1999)", GAME_SUPPORTS_SAVE ) |
| 5259 | |
| 5260 | // these are all based on Version B, even if only the Japan version states 'version B' |
| 5261 | GAME( 1998, batrid, 0, batrider, batrider, batrider, ROT270, "Raizing / Eighting", "Armed Police Batrider (Europe) (Fri Feb 13 1998)", GAME_SUPPORTS_SAVE ) |
| 5262 | GAME( 1998, batridu, batrid, batrider, batrider, batrider, ROT270, "Raizing / Eighting", "Armed Police Batrider (U.S.A.) (Fri Feb 13 1998)", GAME_SUPPORTS_SAVE ) |
| 5263 | GAME( 1998, batridc, batrid, batrider, batrider, batrider, ROT270, "Raizing / Eighting", "Armed Police Batrider (China) (Fri Feb 13 1998)", GAME_SUPPORTS_SAVE ) |
| 5264 | GAME( 1998, batridj, batrid, batrider, batrider, batrider, ROT270, "Raizing / Eighting", "Armed Police Batrider - B Version (Japan) (Fri Feb 13 1998)", GAME_SUPPORTS_SAVE ) |
| 5265 | GAME( 1998, batridk, batrid, batrider, batrider, batrider, ROT270, "Raizing / Eighting", "Armed Police Batrider (Korea) (Fri Feb 13 1998)", GAME_SUPPORTS_SAVE ) |
| 5266 | // version A is older code |
| 5267 | GAME( 1998, batridja, batrid, batrider, batrider, batrider, ROT270, "Raizing / Eighting", "Armed Police Batrider (Japan) (Mon Dec 22 1997)", GAME_SUPPORTS_SAVE ) |
| 5268 | |
| 5269 | // Battle Bakraid |
| 5270 | // the 'unlimited' version is a newer revisino of the code. |
| 5271 | GAME( 1999, bkraidu, 0, bbakraid, bbakraid, bbakradu, ROT270, "Eighting", "Battle Bakraid - Unlimited Version (U.S.A.) (Tue Jun 8 1999)", GAME_SUPPORTS_SAVE ) |
| 5272 | GAME( 1999, bkraiduj, bkraidu, bbakraid, bbakraid, bbakradu, ROT270, "Eighting", "Battle Bakraid - Unlimited Version (Japan) (Tue Jun 8 1999)", GAME_SUPPORTS_SAVE ) |
| 5273 | // older revision of the code |
| 5274 | GAME( 1999, bkraidj, bkraidu, bbakraid, bbakraid, bbakraid, ROT270, "Eighting", "Battle Bakraid (Japan) (Wed Apr 7 1999)", GAME_SUPPORTS_SAVE ) |
src/mame/drivers/merit.c
| r4207 | r4208 | |
| 10 | 10 | TODO: |
| 11 | 11 | - add flipscreen according to schematics |
| 12 | 12 | - pitboss: dip switches |
| 13 | | - casino5: seems to have 0x2000 ram, with 0x2000, will keep resetting. |
| 14 | 13 | - general - add named output notifiers |
| 15 | 14 | |
| 16 | 15 | Notes: it's important that "user1" is 0xa0000 bytes with empty space filled |
| r4207 | r4208 | |
| 308 | 307 | backup_ram[0x1011] = 0xc9; //ret |
| 309 | 308 | } |
| 310 | 309 | |
| 310 | static WRITE8_HANDLER(casino5_bank_w) |
| 311 | { |
| 312 | if ( data == 0 ) |
| 313 | { |
| 314 | memory_set_bank(space->machine, 1, 1); |
| 315 | memory_set_bank(space->machine, 2, 1); |
| 316 | } |
| 317 | else if ( data == 0xff ) |
| 318 | { |
| 319 | memory_set_bank(space->machine, 1, 0); |
| 320 | memory_set_bank(space->machine, 2, 0); |
| 321 | } |
| 322 | else |
| 323 | { |
| 324 | logerror( "Uknown banking write %02x\n", data ); |
| 325 | } |
| 326 | } |
| 311 | 327 | |
| 328 | static CUSTOM_INPUT(rndbit_r) |
| 329 | { |
| 330 | return mame_rand(field->port->machine); |
| 331 | } |
| 332 | |
| 312 | 333 | static ADDRESS_MAP_START( pitboss_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 313 | 334 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 314 | 335 | AM_RANGE(0x6000, 0x67ff) AM_RAM |
| r4207 | r4208 | |
| 323 | 344 | AM_RANGE(0xf800, 0xfbff) AM_READWRITE(palette_r, palette_w) |
| 324 | 345 | ADDRESS_MAP_END |
| 325 | 346 | |
| 347 | static ADDRESS_MAP_START( casino5_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 348 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 349 | AM_RANGE(0x2000, 0x3fff) AM_ROMBANK(1) |
| 350 | AM_RANGE(0x4000, 0x5fff) AM_ROMBANK(2) |
| 351 | AM_RANGE(0x6000, 0x6fff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 352 | AM_RANGE(0x7000, 0x7000) AM_WRITE(casino5_bank_w) |
| 353 | AM_RANGE(0x7001, 0x7fff) AM_RAM |
| 354 | AM_RANGE(0xa000, 0xa003) AM_DEVREADWRITE(PPI8255, "ppi8255_0", ppi8255_r, ppi8255_w) |
| 355 | AM_RANGE(0xc000, 0xc003) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w) |
| 356 | AM_RANGE(0xe000, 0xe000) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w) |
| 357 | AM_RANGE(0xe001, 0xe001) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w) |
| 358 | AM_RANGE(0xe800, 0xefff) AM_RAM AM_BASE(&ram_attr) |
| 359 | AM_RANGE(0xf000, 0xf7ff) AM_RAM AM_BASE(&ram_video) |
| 360 | AM_RANGE(0xf800, 0xfbff) AM_READWRITE(palette_r, palette_w) |
| 361 | ADDRESS_MAP_END |
| 362 | |
| 326 | 363 | static ADDRESS_MAP_START( bigappg_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 327 | | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 328 | | AM_RANGE(0xa000, 0xbfff) AM_RAM |
| 364 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 365 | AM_RANGE(0xa000, 0xbfff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 366 | AM_RANGE(0xc004, 0xc007) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w) |
| 367 | AM_RANGE(0xc008, 0xc00b) AM_DEVREADWRITE(PPI8255, "ppi8255_0", ppi8255_r, ppi8255_w) |
| 368 | AM_RANGE(0xe000, 0xe000) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w) |
| 369 | AM_RANGE(0xe001, 0xe001) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w) |
| 370 | AM_RANGE(0xe800, 0xefff) AM_RAM AM_BASE(&ram_attr) |
| 371 | AM_RANGE(0xf000, 0xf7ff) AM_RAM AM_BASE(&ram_video) |
| 372 | AM_RANGE(0xf800, 0xfbff) AM_READWRITE(palette_r, palette_w) |
| 373 | ADDRESS_MAP_END |
| 374 | |
| 375 | static ADDRESS_MAP_START( dodge_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 376 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 377 | AM_RANGE(0xa000, 0xbfff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 329 | 378 | AM_RANGE(0xc004, 0xc007) AM_DEVREADWRITE(PPI8255, "ppi8255_0", ppi8255_r, ppi8255_w) |
| 330 | 379 | AM_RANGE(0xc008, 0xc00b) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w) |
| 331 | 380 | AM_RANGE(0xe000, 0xe000) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w) |
| r4207 | r4208 | |
| 771 | 820 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 772 | 821 | INPUT_PORTS_END |
| 773 | 822 | |
| 774 | | static INPUT_PORTS_START( bigappg ) |
| 823 | static INPUT_PORTS_START( casino5 ) |
| 775 | 824 | PORT_START("IN0") |
| 776 | | PORT_DIPNAME( 0x01, 0x01, "1" ) |
| 777 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 778 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 779 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 780 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 781 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 782 | | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 783 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 784 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 785 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 786 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 787 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 788 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 789 | | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 790 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 791 | | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 792 | | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 793 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 794 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 795 | | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 796 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 797 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 825 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 826 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 827 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 828 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| 829 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) |
| 830 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON6 ) |
| 831 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Play") |
| 832 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) |
| 798 | 833 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 799 | 834 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 800 | 835 | |
| 801 | 836 | PORT_START("IN1") |
| 802 | | PORT_DIPNAME( 0x01, 0x01, "2" ) |
| 803 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 804 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 805 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 806 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 807 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 808 | | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 809 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 810 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 811 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 837 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 838 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 839 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) |
| 840 | PORT_DIPNAME( 0x08, 0x08, "Reset High Scores" ) |
| 812 | 841 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 813 | 842 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 814 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 815 | | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 816 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 843 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* 1 displays additional screens in attract mode - custom ads? */ |
| 844 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 845 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 846 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 847 | |
| 848 | |
| 849 | PORT_START("IN2") |
| 850 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 851 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 852 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* 0 causes "Unathorized conversion" */ |
| 853 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 854 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 855 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 856 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 857 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 858 | |
| 859 | PORT_START("DSW") |
| 860 | PORT_DIPNAME( 0x01, 0x01, "Draw Poker enabled" ) |
| 861 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 862 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 863 | PORT_DIPNAME( 0x02, 0x02, "Black Jack enabled" ) |
| 864 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 865 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 866 | PORT_DIPNAME( 0x04, 0x04, "Dice Game enabled" ) |
| 867 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 868 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 869 | PORT_DIPNAME( 0x08, 0x08, "Foto Finish enabled" ) |
| 870 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 871 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 872 | PORT_DIPNAME( 0x10, 0x10, "Acey Deucey enabled" ) |
| 873 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 874 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 817 | 875 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 818 | | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 819 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 876 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 877 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| 820 | 878 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 821 | | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 822 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 879 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 880 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) |
| 823 | 881 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 882 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 883 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 884 | |
| 885 | INPUT_PORTS_END |
| 886 | |
| 887 | static INPUT_PORTS_START( bigappg ) |
| 888 | PORT_START("IN0") |
| 889 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 890 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 891 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 892 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) |
| 893 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) |
| 894 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON6 ) |
| 895 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Play") |
| 896 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) |
| 824 | 897 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 825 | 898 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 826 | 899 | |
| 827 | | PORT_START("IN2") |
| 828 | | PORT_DIPNAME( 0x01, 0x01, "3" ) |
| 829 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 830 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 831 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 832 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 833 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 834 | | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 835 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 836 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 837 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 900 | PORT_START("IN1") |
| 901 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1) |
| 902 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(1) |
| 903 | PORT_SERVICE_NO_TOGGLE( 0x04, IP_ACTIVE_LOW ) |
| 904 | PORT_DIPNAME( 0x08, 0x08, "Reset High Scores" ) |
| 838 | 905 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 839 | 906 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 840 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 841 | | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 842 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 843 | | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 844 | | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 845 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 846 | | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 847 | | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 848 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 849 | | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 850 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 851 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 907 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 908 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 909 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 910 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 852 | 911 | |
| 912 | |
| 913 | PORT_START("IN2") |
| 914 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) |
| 915 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 916 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 917 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 918 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 919 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 920 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 921 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(rndbit_r, NULL) |
| 922 | |
| 853 | 923 | PORT_START("DSW") |
| 854 | | PORT_DIPNAME( 0x01, 0x01, "4" ) |
| 855 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 856 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 857 | | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 858 | | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 859 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 860 | | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 861 | | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 862 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 863 | | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 864 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 865 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 866 | | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 867 | | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 868 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 924 | PORT_DIPNAME( 0x01, 0x01, "Draw Poker enabled" ) |
| 925 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 926 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) |
| 927 | PORT_DIPNAME( 0x02, 0x02, "Black Jack enabled" ) |
| 928 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 929 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) |
| 930 | PORT_DIPNAME( 0x04, 0x04, "Dice Game enabled" ) |
| 931 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 932 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 933 | PORT_DIPNAME( 0x08, 0x08, "Foto Finish enabled" ) |
| 934 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 935 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 936 | PORT_DIPNAME( 0x10, 0x10, "Acey Deucey enabled" ) |
| 937 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 938 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) |
| 869 | 939 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 870 | | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 871 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 940 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 941 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) |
| 872 | 942 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 873 | | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 874 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 943 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 944 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) |
| 875 | 945 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 876 | | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 877 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 946 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 947 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 948 | |
| 878 | 949 | INPUT_PORTS_END |
| 879 | 950 | |
| 880 | 951 | static INPUT_PORTS_START( couple ) |
| r4207 | r4208 | |
| 988 | 1059 | static const ppi8255_interface ppi8255_intf[2] = |
| 989 | 1060 | { |
| 990 | 1061 | { |
| 991 | | DEVICE8_PORT("IN0"), /* Port A read */ |
| 992 | | DEVICE8_PORT("IN1"), /* Port B read */ |
| 993 | | DEVICE8_PORT("IN2"), /* Port C read */ |
| 994 | | NULL, /* Port A write */ |
| 995 | | NULL, /* Port B write */ |
| 996 | | NULL /* Port C write */ |
| 1062 | DEVCB_INPUT_PORT("IN0"), /* Port A read */ |
| 1063 | DEVCB_INPUT_PORT("IN1"), /* Port B read */ |
| 1064 | DEVCB_INPUT_PORT("IN2"), /* Port C read */ |
| 1065 | DEVCB_NULL, /* Port A write */ |
| 1066 | DEVCB_NULL, /* Port B write */ |
| 1067 | DEVCB_NULL /* Port C write */ |
| 997 | 1068 | }, |
| 998 | 1069 | { |
| 999 | | DEVICE8_PORT("DSW"), /* Port A read */ |
| 1000 | | NULL, /* Port B read */ |
| 1001 | | NULL, /* Port C read */ |
| 1002 | | NULL, /* Port A write */ |
| 1003 | | led1_w, /* Port B write */ |
| 1004 | | misc_w /* Port C write */ |
| 1070 | DEVCB_INPUT_PORT("DSW"), /* Port A read */ |
| 1071 | DEVCB_NULL, /* Port B read */ |
| 1072 | DEVCB_NULL, /* Port C read */ |
| 1073 | DEVCB_NULL, /* Port A write */ |
| 1074 | DEVCB_HANDLER(led1_w), /* Port B write */ |
| 1075 | DEVCB_HANDLER(misc_w) /* Port C write */ |
| 1005 | 1076 | } |
| 1006 | 1077 | }; |
| 1007 | 1078 | |
| 1008 | 1079 | static const ppi8255_interface ppi8255_couple_intf[2] = |
| 1009 | 1080 | { |
| 1010 | 1081 | { |
| 1011 | | DEVICE8_PORT("IN0"), /* Port A read */ |
| 1012 | | DEVICE8_PORT("IN1"), /* Port B read */ |
| 1013 | | DEVICE8_PORT("IN2"), /* Port C read */ |
| 1014 | | NULL, /* Port A write */ |
| 1015 | | NULL, /* Port B write */ |
| 1016 | | NULL /* Port C write */ |
| 1082 | DEVCB_INPUT_PORT("IN0"), /* Port A read */ |
| 1083 | DEVCB_INPUT_PORT("IN1"), /* Port B read */ |
| 1084 | DEVCB_INPUT_PORT("IN2"), /* Port C read */ |
| 1085 | DEVCB_NULL, /* Port A write */ |
| 1086 | DEVCB_NULL, /* Port B write */ |
| 1087 | DEVCB_NULL /* Port C write */ |
| 1017 | 1088 | }, |
| 1018 | 1089 | { |
| 1019 | | DEVICE8_PORT("DSW"), /* Port A read */ |
| 1020 | | NULL, /* Port B read */ |
| 1021 | | NULL, /* Port C read */ |
| 1022 | | NULL, /* Port A write */ |
| 1023 | | led1_w, /* Port B write */ |
| 1024 | | misc_couple_w /* Port C write */ |
| 1090 | DEVCB_INPUT_PORT("DSW"), /* Port A read */ |
| 1091 | DEVCB_NULL, /* Port B read */ |
| 1092 | DEVCB_NULL, /* Port C read */ |
| 1093 | DEVCB_NULL, /* Port A write */ |
| 1094 | DEVCB_HANDLER(led1_w), /* Port B write */ |
| 1095 | DEVCB_HANDLER(misc_couple_w) /* Port C write */ |
| 1025 | 1096 | } |
| 1026 | 1097 | }; |
| 1027 | 1098 | |
| r4207 | r4208 | |
| 1033 | 1104 | led2_w, NULL |
| 1034 | 1105 | }; |
| 1035 | 1106 | |
| 1107 | static NVRAM_HANDLER(dodge) |
| 1108 | { |
| 1109 | if (read_or_write) |
| 1110 | { |
| 1111 | mame_fwrite(file, generic_nvram, generic_nvram_size); |
| 1112 | } |
| 1113 | else if (file) |
| 1114 | { |
| 1115 | mame_fread(file, generic_nvram, generic_nvram_size); |
| 1116 | } |
| 1117 | else |
| 1118 | { |
| 1119 | memset(generic_nvram, 0x00, generic_nvram_size); |
| 1120 | generic_nvram[0x1040] = 0xc9; /* ret */ |
| 1121 | } |
| 1122 | } |
| 1036 | 1123 | |
| 1124 | static MACHINE_START(casino5) |
| 1125 | { |
| 1126 | MACHINE_START_CALL(merit); |
| 1127 | memory_configure_bank(machine, 1, 0, 2, memory_region(machine, "main") + 0x2000, 0x2000); |
| 1128 | memory_configure_bank(machine, 2, 0, 2, memory_region(machine, "main") + 0x6000, 0x2000); |
| 1129 | memory_set_bank(machine, 1, 0); |
| 1130 | memory_set_bank(machine, 2, 0); |
| 1131 | } |
| 1132 | |
| 1037 | 1133 | static MACHINE_DRIVER_START( pitboss ) |
| 1038 | 1134 | MDRV_CPU_ADD("main",Z80, CPU_CLOCK) |
| 1039 | 1135 | MDRV_CPU_PROGRAM_MAP(pitboss_map,0) |
| r4207 | r4208 | |
| 1061 | 1157 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33) |
| 1062 | 1158 | MACHINE_DRIVER_END |
| 1063 | 1159 | |
| 1160 | static MACHINE_DRIVER_START( casino5 ) |
| 1161 | MDRV_IMPORT_FROM(pitboss) |
| 1162 | |
| 1163 | MDRV_CPU_MODIFY("main") |
| 1164 | MDRV_CPU_PROGRAM_MAP(casino5_map, 0) |
| 1165 | |
| 1166 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1167 | |
| 1168 | MDRV_MACHINE_START(casino5) |
| 1169 | MACHINE_DRIVER_END |
| 1170 | |
| 1064 | 1171 | static MACHINE_DRIVER_START( bigappg ) |
| 1065 | 1172 | MDRV_IMPORT_FROM(pitboss) |
| 1066 | 1173 | |
| 1067 | 1174 | MDRV_CPU_MODIFY("main") |
| 1068 | 1175 | MDRV_CPU_PROGRAM_MAP(bigappg_map,0) |
| 1069 | 1176 | MDRV_CPU_IO_MAP(tictac_io_map,0) |
| 1177 | |
| 1178 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 1070 | 1179 | MACHINE_DRIVER_END |
| 1071 | 1180 | |
| 1181 | static MACHINE_DRIVER_START( dodge ) |
| 1182 | MDRV_IMPORT_FROM(pitboss) |
| 1183 | |
| 1184 | MDRV_CPU_MODIFY("main") |
| 1185 | MDRV_CPU_PROGRAM_MAP(dodge_map,0) |
| 1186 | |
| 1187 | MDRV_NVRAM_HANDLER(dodge) |
| 1188 | MACHINE_DRIVER_END |
| 1189 | |
| 1072 | 1190 | static MACHINE_DRIVER_START( tictac ) |
| 1073 | 1191 | MDRV_IMPORT_FROM(pitboss) |
| 1074 | 1192 | |
| r4207 | r4208 | |
| 1581 | 1699 | |
| 1582 | 1700 | ROM_REGION( 0x8000, "gfx2", ROMREGION_ERASEFF ) |
| 1583 | 1701 | /* socket at position u40 is unpopulated */ |
| 1702 | ROM_LOAD( "dodge.u40", 0x00000, 0x8000, NO_DUMP ) |
| 1584 | 1703 | ROM_END |
| 1585 | 1704 | |
| 1586 | 1705 | ROM_START( couple ) |
| r4207 | r4208 | |
| 1692 | 1811 | GAME( 1983, pitboss, 0, pitboss, pitboss, 0, ROT0, "Merit", "Pit Boss (Set 1)", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_GRAPHICS ) |
| 1693 | 1812 | GAME( 1983, pitbossa, pitboss, pitboss, pitboss, 0, ROT0, "Merit", "Pit Boss (Set 2)", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_GRAPHICS ) |
| 1694 | 1813 | |
| 1695 | | GAME( 1983, casino5, 0, pitboss, pitboss, 0, ROT0, "Merit", "Casino 5", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1814 | GAME( 1984, casino5, 0, casino5, casino5, 0, ROT0, "Merit", "Casino Five", GAME_SUPPORTS_SAVE ) |
| 1696 | 1815 | |
| 1697 | 1816 | GAME( 1985, trvwzh, 0, trvwhiz, trivia, key_0, ROT0, "Merit", "Trivia ? Whiz (Horizontal) (question set 1)", GAME_SUPPORTS_SAVE ) |
| 1698 | 1817 | GAME( 1985, trvwzha, trvwzh, trvwhiz, trivia, key_0, ROT0, "Merit", "Trivia ? Whiz (Horizontal) (question set 2)", GAME_SUPPORTS_SAVE ) |
| r4207 | r4208 | |
| 1716 | 1835 | GAME( 1986, phrcraza, phrcraze,phrcraze, phrcraze, key_7, ROT0, "Merit", "Phraze Craze (set 2)", GAME_SUPPORTS_SAVE ) |
| 1717 | 1836 | GAME( 1986, phrcrazs, phrcraze,phrcraze, phrcrazs, key_7, ROT90, "Merit", "Phraze Craze (Sex Kit)", GAME_SUPPORTS_SAVE ) |
| 1718 | 1837 | |
| 1719 | | GAME( 1986, bigappg, 0, bigappg, bigappg, 0, ROT0, "Merit", "Big Apple Games ?", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1838 | GAME( 1986, bigappg, 0, bigappg, bigappg, 0, ROT0, "Merit", "Big Apple Games", GAME_SUPPORTS_SAVE ) |
| 1720 | 1839 | |
| 1721 | | GAME( 1986, dodge, 0, bigappg, bigappg, 0, ROT0, "Merit", "Dodge City", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1840 | GAME( 1986, dodge, 0, dodge, couple, 0, ROT0, "Merit", "Dodge City", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_GRAPHICS | GAME_NOT_WORKING ) |
| 1722 | 1841 | |
| 1723 | 1842 | GAME( 1988, couple, 0, couple, couple, couple, ROT0, "Merit", "The Couples (Set 1)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) |
| 1724 | 1843 | GAME( 1988, couplep, couple, couple, couplep, couple, ROT0, "Merit", "The Couples (Set 2)", GAME_IMPERFECT_GRAPHICS | GAME_UNEMULATED_PROTECTION ) |
src/mame/drivers/spoker.c
| r0 | r4208 | |
| 1 | /*************************************************************************** |
| 2 | Super Poker (IGS) |
| 3 | Driver by Mirko Buffoni |
| 4 | |
| 5 | TODO: |
| 6 | - Understand how to reset NVRAM |
| 7 | - Map DSW (Operator mode doesn't help) |
| 8 | - Map Leds and Coin counters |
| 9 | ***************************************************************************/ |
| 10 | |
| 11 | #include "driver.h" |
| 12 | #include "cpu/z180/z180.h" |
| 13 | #include "sound/2413intf.h" |
| 14 | #include "sound/okim6295.h" |
| 15 | |
| 16 | |
| 17 | /*************************************************************************** |
| 18 | Video Hardware |
| 19 | ***************************************************************************/ |
| 20 | |
| 21 | |
| 22 | static UINT8 *bg_tile_ram; |
| 23 | static tilemap *bg_tilemap; |
| 24 | |
| 25 | static UINT8 *fg_tile_ram, *fg_color_ram; |
| 26 | static tilemap *fg_tilemap; |
| 27 | |
| 28 | static int video_enable; |
| 29 | |
| 30 | static WRITE8_HANDLER( bg_tile_w ) |
| 31 | { |
| 32 | bg_tile_ram[offset] = data; |
| 33 | tilemap_mark_tile_dirty(bg_tilemap,offset); |
| 34 | } |
| 35 | |
| 36 | static TILE_GET_INFO( get_bg_tile_info ) |
| 37 | { |
| 38 | int code = bg_tile_ram[tile_index]; |
| 39 | SET_TILE_INFO(1 + (tile_index & 3), code & 0xff, 0, 0); |
| 40 | } |
| 41 | |
| 42 | static TILE_GET_INFO( get_fg_tile_info ) |
| 43 | { |
| 44 | int code = fg_tile_ram[tile_index] | (fg_color_ram[tile_index] << 8); |
| 45 | SET_TILE_INFO(0, code, (4*(code >> 14)+3), 0); |
| 46 | } |
| 47 | |
| 48 | static WRITE8_HANDLER( fg_tile_w ) |
| 49 | { |
| 50 | fg_tile_ram[offset] = data; |
| 51 | tilemap_mark_tile_dirty(fg_tilemap,offset); |
| 52 | } |
| 53 | |
| 54 | static WRITE8_HANDLER( fg_color_w ) |
| 55 | { |
| 56 | fg_color_ram[offset] = data; |
| 57 | tilemap_mark_tile_dirty(fg_tilemap,offset); |
| 58 | } |
| 59 | |
| 60 | static VIDEO_START(spoker) |
| 61 | { |
| 62 | bg_tilemap = tilemap_create(machine, get_bg_tile_info, tilemap_scan_rows, 8, 32, 128, 8); |
| 63 | fg_tilemap = tilemap_create(machine, get_fg_tile_info, tilemap_scan_rows, 8, 8, 128, 32); |
| 64 | tilemap_set_transparent_pen(fg_tilemap, 0); |
| 65 | } |
| 66 | |
| 67 | static VIDEO_UPDATE(spoker) |
| 68 | { |
| 69 | bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine)); |
| 70 | |
| 71 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 72 | |
| 73 | tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0); |
| 74 | |
| 75 | return 0; |
| 76 | } |
| 77 | |
| 78 | /*************************************************************************** |
| 79 | Memory Maps |
| 80 | ***************************************************************************/ |
| 81 | |
| 82 | static int nmi_enable, hopper; |
| 83 | |
| 84 | static CUSTOM_INPUT( hopper_r ) |
| 85 | { |
| 86 | if (hopper) return !(video_screen_get_frame_number(field->port->machine->primary_screen)%10); |
| 87 | return input_code_pressed(KEYCODE_H); |
| 88 | } |
| 89 | |
| 90 | static UINT8 out[3]; |
| 91 | |
| 92 | static void show_out(void) |
| 93 | { |
| 94 | #ifdef MAME_DEBUG |
| 95 | popmessage("%02x %02x %02x", out[0], out[1], out[2]); |
| 96 | #endif |
| 97 | } |
| 98 | |
| 99 | static WRITE8_HANDLER( spoker_nmi_and_coins_w ) |
| 100 | { |
| 101 | if ((nmi_enable ^ data) & (~0xdd)) |
| 102 | { |
| 103 | logerror("PC %06X: nmi_and_coins = %02x\n",cpu_get_pc(space->cpu),data); |
| 104 | // popmessage("%02x",data); |
| 105 | } |
| 106 | |
| 107 | coin_counter_w(0, data & 0x01); // coin_a |
| 108 | coin_counter_w(1, data & 0x04); // coin_c |
| 109 | coin_counter_w(2, data & 0x08); // key in |
| 110 | coin_counter_w(3, data & 0x10); // coin out mech |
| 111 | |
| 112 | set_led_status(6, data & 0x40); // led for coin out / hopper active |
| 113 | |
| 114 | nmi_enable = data; // data & 0x80 // nmi enable? |
| 115 | |
| 116 | out[0] = data; |
| 117 | show_out(); |
| 118 | } |
| 119 | |
| 120 | static WRITE8_HANDLER( spoker_video_and_leds_w ) |
| 121 | { |
| 122 | set_led_status(4, data & 0x01); // start? |
| 123 | set_led_status(5, data & 0x04); // l_bet? |
| 124 | |
| 125 | video_enable = data & 0x40; |
| 126 | hopper = (~data)& 0x80; |
| 127 | |
| 128 | out[1] = data; |
| 129 | show_out(); |
| 130 | } |
| 131 | |
| 132 | static WRITE8_HANDLER( spoker_leds_w ) |
| 133 | { |
| 134 | set_led_status(0, data & 0x01); // stop_1 |
| 135 | set_led_status(1, data & 0x02); // stop_2 |
| 136 | set_led_status(2, data & 0x04); // stop_3 |
| 137 | set_led_status(3, data & 0x08); // stop |
| 138 | // data & 0x10? |
| 139 | |
| 140 | out[2] = data; |
| 141 | show_out(); |
| 142 | } |
| 143 | |
| 144 | static UINT8 igs_magic[2]; |
| 145 | |
| 146 | static WRITE8_HANDLER( spoker_magic_w ) |
| 147 | { |
| 148 | igs_magic[offset] = data; |
| 149 | |
| 150 | if (offset == 0) |
| 151 | return; |
| 152 | |
| 153 | switch(igs_magic[0]) |
| 154 | { |
| 155 | case 0x01: |
| 156 | break; |
| 157 | |
| 158 | default: |
| 159 | // popmessage("magic %x <- %04x",igs_magic[0],data); |
| 160 | logerror("%06x: warning, writing to igs_magic %02x = %02x\n", cpu_get_pc(space->cpu), igs_magic[0], data); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | static READ8_HANDLER( spoker_magic_r ) |
| 165 | { |
| 166 | switch(igs_magic[0]) |
| 167 | { |
| 168 | case 0x00: |
| 169 | if ( !(igs_magic[1] & 0x01) ) return input_port_read(space->machine, "DSW1"); |
| 170 | if ( !(igs_magic[1] & 0x02) ) return input_port_read(space->machine, "DSW2"); |
| 171 | if ( !(igs_magic[1] & 0x04) ) return input_port_read(space->machine, "DSW3"); |
| 172 | if ( !(igs_magic[1] & 0x08) ) return input_port_read(space->machine, "DSW4"); |
| 173 | if ( !(igs_magic[1] & 0x10) ) return input_port_read(space->machine, "DSW5"); |
| 174 | logerror("%06x: warning, reading dsw with igs_magic[1] = %02x\n", cpu_get_pc(space->cpu), igs_magic[1]); |
| 175 | break; |
| 176 | |
| 177 | default: |
| 178 | logerror("%06x: warning, reading with igs_magic = %02x\n", cpu_get_pc(space->cpu), igs_magic[0]); |
| 179 | } |
| 180 | |
| 181 | return 0; |
| 182 | } |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 187 | static ADDRESS_MAP_START( spoker_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 188 | AM_RANGE( 0x00000, 0x0f3ff ) AM_ROM |
| 189 | AM_RANGE( 0x0f400, 0x0ffff ) AM_RAM AM_BASE( &generic_nvram ) AM_SIZE( &generic_nvram_size ) |
| 190 | ADDRESS_MAP_END |
| 191 | |
| 192 | static ADDRESS_MAP_START( spoker_portmap, ADDRESS_SPACE_IO, 8 ) |
| 193 | AM_RANGE( 0x0000, 0x003f ) AM_RAM // Z180 internal regs |
| 194 | |
| 195 | AM_RANGE( 0x2000, 0x23ff ) AM_RAM_WRITE( paletteram_xBBBBBGGGGGRRRRR_split1_w ) AM_BASE( &paletteram ) |
| 196 | AM_RANGE( 0x2400, 0x27ff ) AM_RAM_WRITE( paletteram_xBBBBBGGGGGRRRRR_split2_w ) AM_BASE( &paletteram_2 ) |
| 197 | |
| 198 | AM_RANGE( 0x3000, 0x33ff ) AM_RAM_WRITE( bg_tile_w ) AM_BASE( &bg_tile_ram ) |
| 199 | |
| 200 | AM_RANGE( 0x5000, 0x5fff ) AM_RAM_WRITE( fg_tile_w ) AM_BASE( &fg_tile_ram ) |
| 201 | |
| 202 | AM_RANGE( 0x6480, 0x6480 ) AM_WRITE( spoker_nmi_and_coins_w ) |
| 203 | |
| 204 | AM_RANGE( 0x6481, 0x6481 ) AM_READ_PORT( "SERVICE" ) |
| 205 | AM_RANGE( 0x6482, 0x6482 ) AM_READ_PORT( "COINS" ) |
| 206 | AM_RANGE( 0x6490, 0x6490 ) AM_READ_PORT( "BUTTONS1" ) |
| 207 | AM_RANGE( 0x6491, 0x6491 ) AM_WRITE( spoker_video_and_leds_w ) |
| 208 | AM_RANGE( 0x6492, 0x6492 ) AM_WRITE( spoker_leds_w ) |
| 209 | AM_RANGE( 0x64a0, 0x64a0 ) AM_READ_PORT( "BUTTONS2" ) |
| 210 | |
| 211 | AM_RANGE( 0x64b0, 0x64b0 ) AM_WRITE( ym2413_register_port_0_w ) |
| 212 | AM_RANGE( 0x64b1, 0x64b1 ) AM_WRITE( ym2413_data_port_0_w ) |
| 213 | |
| 214 | AM_RANGE( 0x64c0, 0x64c0 ) AM_READWRITE( okim6295_status_0_r, okim6295_data_0_w ) |
| 215 | |
| 216 | AM_RANGE( 0x64d0, 0x64d1 ) AM_READWRITE( spoker_magic_r, spoker_magic_w ) // DSW1-5 |
| 217 | |
| 218 | AM_RANGE( 0x7000, 0x7fff ) AM_RAM_WRITE( fg_color_w ) AM_BASE( &fg_color_ram ) |
| 219 | ADDRESS_MAP_END |
| 220 | |
| 221 | |
| 222 | |
| 223 | |
| 224 | /*************************************************************************** |
| 225 | Input Ports |
| 226 | ***************************************************************************/ |
| 227 | |
| 228 | static INPUT_PORTS_START( spoker ) |
| 229 | PORT_START("DSW1") |
| 230 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) |
| 231 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 232 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 233 | PORT_DIPUNKNOWN( 0x02, 0x02 ) |
| 234 | PORT_DIPUNKNOWN( 0x04, 0x04 ) |
| 235 | PORT_DIPUNKNOWN( 0x08, 0x08 ) |
| 236 | PORT_DIPUNKNOWN( 0x10, 0x10 ) |
| 237 | PORT_DIPUNKNOWN( 0x20, 0x20 ) |
| 238 | PORT_DIPUNKNOWN( 0x40, 0x40 ) |
| 239 | PORT_DIPUNKNOWN( 0x80, 0x80 ) |
| 240 | |
| 241 | PORT_START("DSW2") |
| 242 | PORT_DIPUNKNOWN( 0x01, 0x01 ) |
| 243 | PORT_DIPUNKNOWN( 0x02, 0x02 ) |
| 244 | PORT_DIPUNKNOWN( 0x04, 0x04 ) |
| 245 | PORT_DIPUNKNOWN( 0x08, 0x08 ) |
| 246 | PORT_DIPUNKNOWN( 0x10, 0x10 ) |
| 247 | PORT_DIPUNKNOWN( 0x20, 0x20 ) |
| 248 | PORT_DIPUNKNOWN( 0x40, 0x40 ) |
| 249 | PORT_DIPUNKNOWN( 0x80, 0x80 ) |
| 250 | |
| 251 | PORT_START("DSW3") |
| 252 | PORT_DIPUNKNOWN( 0x01, 0x01 ) |
| 253 | PORT_DIPUNKNOWN( 0x02, 0x02 ) |
| 254 | PORT_DIPUNKNOWN( 0x04, 0x04 ) |
| 255 | PORT_DIPUNKNOWN( 0x08, 0x08 ) |
| 256 | PORT_DIPUNKNOWN( 0x10, 0x10 ) |
| 257 | PORT_DIPUNKNOWN( 0x20, 0x20 ) |
| 258 | PORT_DIPUNKNOWN( 0x40, 0x40 ) |
| 259 | PORT_DIPUNKNOWN( 0x80, 0x80 ) |
| 260 | |
| 261 | PORT_START("DSW4") |
| 262 | PORT_DIPUNKNOWN( 0xff, 0xff ) |
| 263 | |
| 264 | PORT_START("DSW5") |
| 265 | PORT_DIPUNKNOWN( 0xff, 0xff ) |
| 266 | |
| 267 | PORT_START("SERVICE") |
| 268 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 269 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Memory Clear") // stats, memory |
| 270 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM( hopper_r, (void *)0 ) PORT_NAME("HPSW") // hopper sensor |
| 271 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 272 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_4) PORT_NAME("Payout") |
| 273 | PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW ) |
| 274 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_F1) PORT_NAME("Statistics") |
| 275 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 276 | |
| 277 | PORT_START("COINS") |
| 278 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 279 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 280 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 281 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_CODE(KEYCODE_Q) PORT_NAME("Key In") |
| 282 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_CODE(KEYCODE_W) PORT_NAME("Key Down") |
| 283 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 284 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 285 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 286 | |
| 287 | PORT_START("BUTTONS1") |
| 288 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 289 | |
| 290 | PORT_START("BUTTONS2") |
| 291 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 292 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Hold1/High/Low") |
| 293 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold5/Bet") |
| 294 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold4/Take") |
| 295 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Hold3/W-Up") |
| 296 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Hold2/Red/Black") |
| 297 | PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 298 | INPUT_PORTS_END |
| 299 | |
| 300 | /*************************************************************************** |
| 301 | Graphics Layout |
| 302 | ***************************************************************************/ |
| 303 | |
| 304 | static const gfx_layout layout_8x8x6 = |
| 305 | { |
| 306 | 8, 8, |
| 307 | RGN_FRAC(1, 3), |
| 308 | 6, |
| 309 | { RGN_FRAC(0,3)+8,RGN_FRAC(0,3)+0, |
| 310 | RGN_FRAC(1,3)+8,RGN_FRAC(1,3)+0, |
| 311 | RGN_FRAC(2,3)+8,RGN_FRAC(2,3)+0 }, |
| 312 | { STEP8(0,1) }, |
| 313 | { STEP8(0,2*8) }, |
| 314 | 8*8*2 |
| 315 | }; |
| 316 | |
| 317 | static const gfx_layout layout_8x32x6 = |
| 318 | { |
| 319 | 8, 32, |
| 320 | RGN_FRAC(1, 3), |
| 321 | 6, |
| 322 | { RGN_FRAC(0,3)+8,RGN_FRAC(0,3)+0, |
| 323 | RGN_FRAC(1,3)+8,RGN_FRAC(1,3)+0, |
| 324 | RGN_FRAC(2,3)+8,RGN_FRAC(2,3)+0 }, |
| 325 | { STEP8(0,1) }, |
| 326 | { STEP32(0,2*8) }, |
| 327 | 8*32*2 |
| 328 | }; |
| 329 | |
| 330 | static GFXDECODE_START( spoker ) |
| 331 | GFXDECODE_ENTRY( "gfx1", 0x00000, layout_8x8x6, 0, 16 ) |
| 332 | GFXDECODE_ENTRY( "gfx2", 0x04000, layout_8x32x6, 0, 16 ) |
| 333 | GFXDECODE_ENTRY( "gfx2", 0x08000, layout_8x32x6, 0, 16 ) |
| 334 | GFXDECODE_ENTRY( "gfx2", 0x0c000, layout_8x32x6, 0, 16 ) |
| 335 | GFXDECODE_ENTRY( "gfx2", 0x00000, layout_8x32x6, 0, 16 ) |
| 336 | GFXDECODE_END |
| 337 | |
| 338 | |
| 339 | |
| 340 | |
| 341 | /*************************************************************************** |
| 342 | Machine Drivers |
| 343 | ***************************************************************************/ |
| 344 | |
| 345 | static MACHINE_RESET( spoker ) |
| 346 | { |
| 347 | nmi_enable = 0; |
| 348 | hopper = 0; |
| 349 | video_enable = 1; |
| 350 | } |
| 351 | |
| 352 | static INTERRUPT_GEN( spoker_interrupt ) |
| 353 | { |
| 354 | if (nmi_enable & 0x80) |
| 355 | cpu_set_input_line(device, INPUT_LINE_NMI, PULSE_LINE); |
| 356 | } |
| 357 | |
| 358 | static MACHINE_DRIVER_START( spoker ) |
| 359 | /* basic machine hardware */ |
| 360 | MDRV_CPU_ADD("main", Z180, XTAL_12MHz / 2) /* HD64180RP8, 8 MHz? */ |
| 361 | MDRV_CPU_PROGRAM_MAP(spoker_map,0) |
| 362 | MDRV_CPU_IO_MAP(spoker_portmap,0) |
| 363 | MDRV_CPU_VBLANK_INT("main",spoker_interrupt) |
| 364 | |
| 365 | MDRV_MACHINE_RESET(spoker) |
| 366 | |
| 367 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 368 | |
| 369 | /* video hardware */ |
| 370 | MDRV_SCREEN_ADD("main", RASTER) |
| 371 | MDRV_SCREEN_REFRESH_RATE(60) |
| 372 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 373 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 374 | MDRV_SCREEN_SIZE(512, 256) |
| 375 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-16-1) |
| 376 | |
| 377 | MDRV_GFXDECODE(spoker) |
| 378 | MDRV_PALETTE_LENGTH(0x400) |
| 379 | |
| 380 | MDRV_VIDEO_START(spoker) |
| 381 | MDRV_VIDEO_UPDATE(spoker) |
| 382 | |
| 383 | /* sound hardware */ |
| 384 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 385 | MDRV_SOUND_ADD("ym", YM2413, XTAL_3_579545MHz) |
| 386 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 387 | |
| 388 | MDRV_SOUND_ADD("oki", OKIM6295, XTAL_12MHz / 12) |
| 389 | MDRV_SOUND_CONFIG(okim6295_interface_pin7high) |
| 390 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 391 | MACHINE_DRIVER_END |
| 392 | |
| 393 | |
| 394 | static DRIVER_INIT( spk116it ) |
| 395 | { |
| 396 | int A; |
| 397 | UINT8 *rom = memory_region(machine, "main"); |
| 398 | |
| 399 | |
| 400 | for (A = 0;A < 0x10000;A++) |
| 401 | { |
| 402 | rom[A] ^= 0x02; |
| 403 | if ((A & 0x0208) == 0x0208) rom[A] ^= 0x20; |
| 404 | if ((A & 0x0228) == 0x0008) rom[A] ^= 0x20; |
| 405 | if ((A & 0x04A0) == 0x04A0) rom[A] ^= 0x02; |
| 406 | if ((A & 0x1208) == 0x1208) rom[A] ^= 0x01; |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | |
| 411 | ROM_START( spk116it ) |
| 412 | ROM_REGION( 0x10000, "main", 0 ) |
| 413 | ROM_LOAD( "v.bin", 0x0000, 0x10000, CRC(e44e943a) SHA1(78e32d07e2be9a452be10735641cbcf269068c55) ) |
| 414 | |
| 415 | ROM_REGION( 0xc0000, "gfx1", ROMREGION_DISPOSE ) |
| 416 | ROM_LOAD( "6.bin", 0x80000, 0x40000, CRC(55b54b11) SHA1(decf27d40ec842374af02c93d761375690be83a3) ) |
| 417 | ROM_LOAD( "5.bin", 0x40000, 0x40000, CRC(163f5b64) SHA1(5d3a5c2a64691ee9e2bb3a7c283aa9efa53fb35e) ) |
| 418 | ROM_LOAD( "4.bin", 0x00000, 0x40000, CRC(ec2c6ac3) SHA1(e0a38da26202d2b9a481060fe5b88a38e284201e) ) |
| 419 | |
| 420 | ROM_REGION( 0x30000, "gfx2", ROMREGION_DISPOSE ) |
| 421 | ROM_LOAD( "3.bin", 0x20000, 0x10000, CRC(5f18b012) SHA1(c9a96237eaf3138f136bbaffb29dde0ef568ce73) ) |
| 422 | ROM_LOAD( "2.bin", 0x10000, 0x10000, CRC(50fc3505) SHA1(ca1e4ee7e0bb59c3bd67727f65054a48000ae7fe) ) |
| 423 | ROM_LOAD( "1.bin", 0x00000, 0x10000, CRC(28ce630a) SHA1(9b597073d33841e7db2c68bbe9f30b734d7f7b41) ) |
| 424 | |
| 425 | ROM_REGION( 0x40000, "oki", 0 ) /* expansion rom - contains backgrounds and pictures charmaps */ |
| 426 | ROM_LOAD( "7.bin", 0x0000, 0x40000, CRC(67789f1c) SHA1(1bef621b4d6399f76020c6310e2e1c2f861679de) ) |
| 427 | ROM_END |
| 428 | |
| 429 | GAME( 1993?, spk116it, 0, spoker, spoker, spk116it, ROT0, "IGS", "Super Poker (v116IT)", 0 ) |
| 430 | |
src/mame/drivers/funworld.c
| r4207 | r4208 | |
| 31 | 31 | * Pool 10 (italian, set 4), C.M.C., 1997. |
| 32 | 32 | * Tortuga Family (italian), C.M.C., 1997. |
| 33 | 33 | * Pot Game (italian), C.M.C., 1996. |
| 34 | * Bottle 10 (italian, set 1), C.M.C., 1996. |
| 35 | * Bottle 10 (italian, set 2), C.M.C., 1996. |
| 34 | 36 | * Royal Card (austrian, set 1), TAB-Austria, 1991. |
| 35 | 37 | * Royal Card (austrian, set 2), TAB-Austria, 1991. |
| 36 | 38 | * Royal Card (slovak, encrypted), Evona Electronic, 1991. |
| r4207 | r4208 | |
| 150 | 152 | * Elephant Family |
| 151 | 153 | * Tortuga Family |
| 152 | 154 | * Pot Game |
| 155 | * Bottle 10 |
| 153 | 156 | |
| 154 | 157 | In Italy many people became addicted to videopokers. They put so much money on them, |
| 155 | 158 | and they had to sell the house. Also some engineers modified videopokers to do less |
| r4207 | r4208 | |
| 1005 | 1008 | - Added common MC6845 device interface. |
| 1006 | 1009 | - Eliminated the screen size & visible area parameters to Magic Card 2. |
| 1007 | 1010 | |
| 1011 | [2009/01/23] |
| 1012 | - Added new sets: Bottle 10 (italian, set 1 & 2). |
| 1013 | - Updated technical notes. |
| 1008 | 1014 | |
| 1015 | |
| 1009 | 1016 | *** TO DO *** |
| 1010 | 1017 | |
| 1011 | 1018 | - Figure out the royalcdc & jokercrd encryption. |
| r4207 | r4208 | |
| 1029 | 1036 | #include "video/mc6845.h" |
| 1030 | 1037 | #include "machine/6821pia.h" |
| 1031 | 1038 | #include "sound/ay8910.h" |
| 1032 | | |
| 1039 | #include "machine/eeprom.h" |
| 1033 | 1040 | #include "funworld.lh" |
| 1034 | 1041 | |
| 1035 | 1042 | /* from video */ |
| r4207 | r4208 | |
| 1065 | 1072 | output_set_lamp_value(6, (data >> 1) & 1); /* button 7 (start/play) */ |
| 1066 | 1073 | } |
| 1067 | 1074 | |
| 1075 | static WRITE8_HANDLER(pia1_ca2_w) |
| 1076 | { |
| 1077 | /* TAB and Impera games are writting 0x01 constantly, and 0x00 with each screen change */ |
| 1078 | // popmessage("PIA1 CA2: %02X", data); |
| 1079 | } |
| 1068 | 1080 | |
| 1081 | |
| 1069 | 1082 | /************************* |
| 1070 | 1083 | * Memory map information * |
| 1071 | 1084 | *************************/ |
| r4207 | r4208 | |
| 1946 | 1959 | input_port_2_r, input_port_3_r, 0, 0, 0, 0, |
| 1947 | 1960 | |
| 1948 | 1961 | /* PIA outputs: A, B, CA2, CB2 */ |
| 1949 | | 0, 0, 0, 0, |
| 1962 | 0, 0, pia1_ca2_w, 0, |
| 1950 | 1963 | |
| 1951 | 1964 | /* PIA IRQs: A, B */ |
| 1952 | 1965 | 0, 0 |
| r4207 | r4208 | |
| 2067 | 2080 | MDRV_CPU_PROGRAM_MAP(saloon_map, 0) |
| 2068 | 2081 | MACHINE_DRIVER_END |
| 2069 | 2082 | |
| 2083 | static const UINT8 jolyc980_default_eeprom[0x800] = { |
| 2084 | 0x4C,0x17,0xAC,0x4C,0x3B,0xB6,0xAE,0x65,0x33,0x79,0x40,0x00,0x00,0x20,0x20,0x20, |
| 2085 | 0x20,0x20,0x31,0x30,0x00,0x00,0x32,0x4D,0x64,0x30,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2086 | 0x00,0x00,0x00,0x00,0x60,0xE5,0x69,0x03,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2087 | 0x00,0x00,0x00,0x00,0x00,0x00,0xD4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2088 | 0x01,0x60,0x05,0x02,0x02,0x02,0xEE,0x07,0x00,0x01,0x00,0x09,0x09,0x99,0x6C,0xD8, |
| 2089 | 0xA2,0x5A,0x00,0x04,0x00,0x01,0x2A,0x06,0x31,0x12,0x3D,0x00,0x00,0x00,0x01,0x0F, |
| 2090 | 0x00,0x6D,0x00,0x00,0x00,0x00,0xBE,0x99,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2091 | 0xFE,0x04,0x04,0x04,0x40,0x02,0x15,0xB3,0x00,0x40,0x00,0x00,0x00,0x00,0xB8,0xFF, |
| 2092 | 0x00,0x07,0x01,0x2A,0x38,0x18,0x03,0x3C,0x2C,0x24,0x35,0x0C,0x04,0x3F,0x06,0x31, |
| 2093 | 0x12,0x3D,0x13,0x1A,0x23,0x11,0x21,0x24,0x1C,0x06,0x27,0xFF,0x00,0xFF,0x00,0xFF, |
| 2094 | 0x00,0x00,0x01,0xFF,0x00,0xFF,0x00,0xF7,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x02,0x05, |
| 2095 | 0x00,0x00,0x00,0xFF,0x00,0xFF,0x08,0xFF,0xE3,0x00,0x00,0xFF,0x00,0xFF,0x00,0xFF, |
| 2096 | 0x40,0x6D,0xFF,0x00,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF, |
| 2097 | 0x00,0xFF,0x00,0xFF,0xDD,0xFD,0x07,0x80,0x07,0x02,0x08,0x80,0x08,0x02,0x0A,0x00, |
| 2098 | 0x00,0x00,0x07,0x80,0x02,0x00,0x3F,0x00,0xFF,0xFF,0x00,0xFF,0xF0,0xFF,0x00,0x04, |
| 2099 | 0x00,0x00,0xF0,0xFF,0x00,0x00,0x50,0xFF,0x00,0x00,0x6C,0x0C,0x80,0xE8,0x02,0xFE, |
| 2100 | 0x48,0x00,0xFE,0x00,0xFF,0x00,0xFE,0x00,0xFF,0x00,0xFE,0x00,0xFF,0x00,0xFE,0x00, |
| 2101 | 0xFF,0x00,0xFE,0x00,0xFF,0x00,0xEE,0xEC,0x68,0xED,0x00,0x3D,0x9B,0x81,0xC2,0x00, |
| 2102 | 0x40,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00, |
| 2103 | 0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00, |
| 2104 | 0x00,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00, |
| 2105 | 0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00, |
| 2106 | 0x00,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00, |
| 2107 | 0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00, |
| 2108 | 0x40,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00, |
| 2109 | 0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00, |
| 2110 | 0xDF,0x00,0xC2,0x00,0xDF,0x00,0xC2,0x00,0xFF,0x00,0xFE,0x00,0xFF,0x00,0xFE,0x00, |
| 2111 | 0xFF,0x00,0xFE,0x00,0xFF,0x00,0xFE,0x00,0xFF,0x00,0xFE,0x00,0xFF,0x00,0xFE,0x00, |
| 2112 | 0x40,0x00,0xFE,0x00,0xFF,0x00,0xFE,0x00,0xFF,0x00,0xFE,0x00,0xFF,0x00,0xFE,0x00, |
| 2113 | 0xFF,0x00,0xFE,0x00,0xFF,0xEB,0xEB,0x60,0x60,0x60,0xB1,0x60,0xB1,0x60,0x60,0x60, |
| 2114 | 0xB1,0x89,0xB1,0x0E,0xB0,0x31,0x20,0x20,0x20,0x20,0x20,0x00,0x40,0x79,0x60,0x67, |
| 2115 | 0x82,0x00,0x04,0x77,0x20,0xD0,0x28,0xA0,0xC3,0x8F,0x4A,0xAB,0x75,0xAB,0xA9,0x86, |
| 2116 | 0x00,0x00,0x00,0x01,0x98,0x05,0x05,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2117 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,0x02,0x00, |
| 2118 | 0x01,0x00,0x00,0x00,0x3F,0x06,0x31,0x12,0x3D,0x06,0x00,0x00,0x00,0x00,0x00,0xFF, |
| 2119 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2120 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2121 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2122 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2123 | 0x01,0x01,0x00,0x02,0x00,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2124 | 0x56,0x32,0x2E,0x30,0x20,0x05,0x04,0x00,0x00,0x03,0x05,0x08,0x02,0x02,0x00,0x00, |
| 2125 | 0x00,0x01,0x29,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2126 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2127 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2128 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2129 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2130 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2131 | 0x18,0x85,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2132 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2133 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2134 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2135 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2136 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2137 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2138 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2139 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2140 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2141 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2142 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2143 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2144 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2145 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2146 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2147 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2148 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2149 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2150 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2151 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2152 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2153 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2154 | 0x29,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2155 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2156 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2157 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2158 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2159 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2160 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2161 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2162 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2163 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2164 | 0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2165 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2166 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2167 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2168 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2169 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2170 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2171 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2172 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2173 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2174 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2175 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2176 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2177 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2178 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2179 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2180 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2181 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2182 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2183 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2184 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2185 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2186 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2187 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2188 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2189 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2190 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2191 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2192 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2193 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2194 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2195 | 0xF0,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0xF0,0x00,0x00,0x00,0x7C,0x00,0x00,0x9F, |
| 2196 | 0x91,0x62,0x04,0x00,0x00,0x00,0x05,0x15,0x09,0x00,0x00,0x00,0x31,0x85,0x03,0x00, |
| 2197 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2198 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2199 | 0x00,0x00,0x00,0x91,0x62,0x04,0x00,0x00,0x00,0x05,0x15,0x09,0x00,0x00,0x00,0x31, |
| 2200 | 0x85,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2201 | 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2202 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2203 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2204 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2205 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2206 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2207 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2208 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2209 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
| 2210 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x9D, |
| 2211 | 0x1C,0x80,0xF0,0x02,0x00,0x00,0x00,0x80,0x60,0xEB,0x00,0xF7,0x40,0xFF,0x00,0x21 |
| 2212 | }; |
| 2070 | 2213 | |
| 2214 | /* |
| 2215 | Load a default eeprom, otherwise an annoying password system should be inserted with |
| 2216 | inputs correlated to a code that pops up on the screen. |
| 2217 | This code should be inserted into a PC-DOS program, that program is nowhere to be found right now. |
| 2218 | */ |
| 2219 | static NVRAM_HANDLER( jolyc980 ) |
| 2220 | { |
| 2221 | if (read_or_write) |
| 2222 | mame_fwrite(file, generic_nvram, generic_nvram_size); |
| 2223 | else if (file) |
| 2224 | mame_fread(file, generic_nvram, generic_nvram_size); |
| 2225 | else |
| 2226 | { |
| 2227 | int i; |
| 2228 | for(i=0;i<generic_nvram_size;i++) |
| 2229 | generic_nvram[i] = jolyc980_default_eeprom[i]; |
| 2230 | } |
| 2231 | } |
| 2232 | |
| 2233 | static MACHINE_DRIVER_START( jolyc980 ) |
| 2234 | MDRV_IMPORT_FROM(cuoreuno) |
| 2235 | |
| 2236 | MDRV_NVRAM_HANDLER( jolyc980 ) |
| 2237 | MACHINE_DRIVER_END |
| 2238 | |
| 2239 | |
| 2071 | 2240 | /************************* |
| 2072 | 2241 | * Rom Load * |
| 2073 | 2242 | *************************/ |
| r4207 | r4208 | |
| 2420 | 2589 | ROM_LOAD( "palce20v8h_pot.u23", 0x0400, 0x0157, NO_DUMP ) /* PAL is read protected */ |
| 2421 | 2590 | ROM_END |
| 2422 | 2591 | |
| 2592 | ROM_START( bottle10 ) |
| 2593 | ROM_REGION( 0x10000, "main", 0 ) |
| 2594 | ROM_LOAD( "boat_3.bin", 0x8000, 0x8000, CRC(e2db8334) SHA1(22ac4ce361a93b7e6d491e260635755dd562b294) ) |
| 2595 | |
| 2596 | ROM_REGION( 0x10000, "gfx1", ROMREGION_DISPOSE ) |
| 2597 | ROM_LOAD( "boat_2.bin", 0x0000, 0x8000, CRC(a6b36c3f) SHA1(90b12d9552ad5dbf11a30fc7451da1f3e6763cc3) ) |
| 2598 | ROM_LOAD( "boat_1.bin", 0x8000, 0x8000, CRC(61fd8c19) SHA1(eb8fd8bd7de38a6c8a435e9e36daf699162138a5) ) |
| 2599 | |
| 2600 | ROM_REGION( 0x0200, "proms", 0 ) |
| 2601 | ROM_LOAD( "n82s147an_p10.u25", 0x0000, 0x0200, CRC(1de03d14) SHA1(d8eda20865c1d885a428931f4380032e103b252c) ) |
| 2602 | |
| 2603 | ROM_REGION( 0x0600, "plds", 0 ) |
| 2604 | ROM_LOAD( "palce16v8h_p10.u5", 0x0000, 0x0117, NO_DUMP ) /* PAL is read protected */ |
| 2605 | ROM_LOAD( "gal20v8b_p10.u22", 0x0200, 0x0157, NO_DUMP ) /* GAL is read protected */ |
| 2606 | ROM_LOAD( "gal20v8b_p10.u23", 0x0400, 0x0157, NO_DUMP ) /* GAL is read protected */ |
| 2607 | ROM_END |
| 2608 | |
| 2609 | ROM_START( bottl10b ) |
| 2610 | ROM_REGION( 0x10000, "main", 0 ) |
| 2611 | ROM_LOAD( "3.u2", 0x8000, 0x8000, CRC(e2db8334) SHA1(22ac4ce361a93b7e6d491e260635755dd562b294) ) |
| 2612 | |
| 2613 | ROM_REGION( 0x10000, "gfx1", ROMREGION_DISPOSE ) |
| 2614 | ROM_LOAD( "2.u21", 0x0000, 0x8000, CRC(9395c15b) SHA1(e4caefc6f55b07f5c4370a3b8652fa93e08987ce) ) |
| 2615 | ROM_LOAD( "1.u20", 0x8000, 0x8000, CRC(61fd8c19) SHA1(eb8fd8bd7de38a6c8a435e9e36daf699162138a5) ) |
| 2616 | |
| 2617 | ROM_REGION( 0x0200, "proms", 0 ) |
| 2618 | ROM_LOAD( "n82s147an_p10.u25", 0x0000, 0x0200, CRC(1de03d14) SHA1(d8eda20865c1d885a428931f4380032e103b252c) ) |
| 2619 | |
| 2620 | ROM_REGION( 0x0600, "plds", 0 ) |
| 2621 | ROM_LOAD( "palce16v8h_p10.u5", 0x0000, 0x0117, NO_DUMP ) /* PAL is read protected */ |
| 2622 | ROM_LOAD( "gal20v8b_p10.u22", 0x0200, 0x0157, NO_DUMP ) /* GAL is read protected */ |
| 2623 | ROM_LOAD( "gal20v8b_p10.u23", 0x0400, 0x0157, NO_DUMP ) /* GAL is read protected */ |
| 2624 | ROM_END |
| 2625 | |
| 2423 | 2626 | ROM_START( royalcrd ) |
| 2424 | 2627 | ROM_REGION( 0x10000, "main", 0 ) |
| 2425 | 2628 | ROM_LOAD( "r2.bin", 0x8000, 0x8000, CRC(25dfe0dc) SHA1(1a857a910d0c34b6b5bfc2b6ea2e08ed8ed0cae0) ) |
| r4207 | r4208 | |
| 2938 | 3141 | /* YEAR NAME PARENT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 2939 | 3142 | GAME( 1985, jollycrd, 0, funworld, funworld, funworld, ROT0, "TAB-Austria", "Jolly Card (austrian)", 0 ) |
| 2940 | 3143 | GAME( 1985, jolyc3x3, jollycrd, funworld, funworld, funworld, ROT0, "TAB-Austria", "Jolly Card (3x3 deal)", 0 ) |
| 2941 | | GAME( 2000, jolyc980, jollycrd, cuoreuno, jolyc980, jolyc980, ROT0, "Spale-Soft", "Jolly Card Professional 2.0", 0 ) |
| 3144 | GAME( 2000, jolyc980, jollycrd, jolyc980, jolyc980, jolyc980, ROT0, "Spale-Soft", "Jolly Card Professional 2.0", 0 ) |
| 2942 | 3145 | GAME( 1998, jolycdev, jollycrd, funworld, funworld, funworld, ROT0, "TAB/Evona", "Jolly Card (Evona Electronic)", 0 ) |
| 2943 | 3146 | GAME( 1985, jolyccra, jollycrd, cuoreuno, jolycdcr, funworld, ROT0, "TAB-Austria", "Jolly Card (croatian, set 1)", 0 ) |
| 2944 | 3147 | GAME( 1993, jolyccrb, jollycrd, cuoreuno, jolycdcr, funworld, ROT0, "Soft Design", "Jolly Card (croatian, set 2)", 0 ) |
| r4207 | r4208 | |
| 2958 | 3161 | GAME( 1997, pool10d, pool10, cuoreuno, cuoreuno, funworld, ROT0, "C.M.C.", "Pool 10 (italian, set 4)", 0 ) |
| 2959 | 3162 | GAME( 1997, tortufam, 0, cuoreuno, cuoreuno, funworld, ROT0, "C.M.C.", "Tortuga Family (italian)", 0 ) |
| 2960 | 3163 | GAME( 1996, potgame, 0, cuoreuno, cuoreuno, funworld, ROT0, "C.M.C.", "Pot Game (italian)", 0 ) |
| 3164 | GAME( 1996, bottle10, 0, cuoreuno, cuoreuno, funworld, ROT0, "C.M.C.", "Bottle 10 (italian, set 1)", 0 ) |
| 3165 | GAME( 1996, bottl10b, bottle10, cuoreuno, cuoreuno, funworld, ROT0, "C.M.C.", "Bottle 10 (italian, set 2)", 0 ) |
| 2961 | 3166 | GAME( 1991, royalcrd, 0, royalcrd, royalcrd, funworld, ROT0, "TAB-Austria", "Royal Card (austrian, set 1)", 0 ) |
| 2962 | 3167 | GAME( 1991, royalcdb, royalcrd, royalcrd, royalcrd, funworld, ROT0, "TAB-Austria", "Royal Card (austrian, set 2)", 0 ) |
| 2963 | 3168 | GAME( 1991, royalcdc, royalcrd, royalcrd, royalcrd, funworld, ROT0, "Evona Electronic","Royal Card (slovak, encrypted)", GAME_WRONG_COLORS | GAME_NOT_WORKING ) |
src/mame/drivers/cabaret.c
| r0 | r4208 | |
| 1 | /*************************************************************************** |
| 2 | |
| 3 | Cabaret (AMT) |
| 4 | Driver by Mirko Buffoni, David Haywood |
| 5 | |
| 6 | TODO: |
| 7 | - This game should have an NVRAM. There is trace of System Reset so need |
| 8 | to find how to reset its content. |
| 9 | - DSW3 is read, not sure where it's used |
| 10 | - Keyboard is mapped thru test mode, but some bits are unknown, and hopper |
| 11 | is not emulated |
| 12 | - Map Leds and Coin counters |
| 13 | - Remove patches after finding why there are so many pitfalls. Maybe the |
| 14 | game expects to read inputs via an external device and expects certain |
| 15 | timings |
| 16 | |
| 17 | Press F1+F2 during reset to see 'pork*ish' test mode :P |
| 18 | |
| 19 | Interesting thing: this game is copyright AMT 1992, but protection checks |
| 20 | are the same of IGS. AMT may be previous IGS name. |
| 21 | |
| 22 | ***************************************************************************/ |
| 23 | |
| 24 | #include "driver.h" |
| 25 | #include "cpu/z180/z180.h" |
| 26 | #include "sound/2413intf.h" |
| 27 | |
| 28 | |
| 29 | /*************************************************************************** |
| 30 | Video Hardware |
| 31 | ***************************************************************************/ |
| 32 | |
| 33 | |
| 34 | static UINT8 *bg_tile_ram; |
| 35 | static tilemap *bg_tilemap; |
| 36 | static UINT8 *bg_scroll; |
| 37 | |
| 38 | static UINT8 *fg_tile_ram, *fg_color_ram; |
| 39 | static tilemap *fg_tilemap; |
| 40 | |
| 41 | static WRITE8_HANDLER( bg_scroll_w ) |
| 42 | { |
| 43 | bg_scroll[offset] = data; |
| 44 | tilemap_set_scrolly(bg_tilemap,offset,data); |
| 45 | } |
| 46 | |
| 47 | static WRITE8_HANDLER( bg_tile_w ) |
| 48 | { |
| 49 | bg_tile_ram[offset] = data; |
| 50 | tilemap_mark_tile_dirty(bg_tilemap,offset); |
| 51 | } |
| 52 | |
| 53 | static TILE_GET_INFO( get_bg_tile_info ) |
| 54 | { |
| 55 | int code = bg_tile_ram[tile_index]; |
| 56 | SET_TILE_INFO(1, code & 0xff, 0, 0); |
| 57 | } |
| 58 | |
| 59 | static TILE_GET_INFO( get_fg_tile_info ) |
| 60 | { |
| 61 | int code = fg_tile_ram[tile_index] | (fg_color_ram[tile_index] << 8); |
| 62 | int tile = code & 0x1fff; |
| 63 | SET_TILE_INFO(0, code, tile != 0x1fff ? ((code >> 12) & 0xe) + 1 : 0, 0); |
| 64 | } |
| 65 | |
| 66 | static WRITE8_HANDLER( fg_tile_w ) |
| 67 | { |
| 68 | fg_tile_ram[offset] = data; |
| 69 | tilemap_mark_tile_dirty(fg_tilemap,offset); |
| 70 | } |
| 71 | |
| 72 | static WRITE8_HANDLER( fg_color_w ) |
| 73 | { |
| 74 | fg_color_ram[offset] = data; |
| 75 | tilemap_mark_tile_dirty(fg_tilemap,offset); |
| 76 | } |
| 77 | |
| 78 | static VIDEO_START(cabaret) |
| 79 | { |
| 80 | bg_tilemap = tilemap_create(machine, get_bg_tile_info, tilemap_scan_rows, 8, 32, 64, 8); |
| 81 | fg_tilemap = tilemap_create(machine, get_fg_tile_info, tilemap_scan_rows, 8, 8, 64, 32); |
| 82 | tilemap_set_transparent_pen(fg_tilemap, 0); |
| 83 | tilemap_set_scroll_cols(bg_tilemap, 64); |
| 84 | } |
| 85 | |
| 86 | |
| 87 | static VIDEO_UPDATE(cabaret) |
| 88 | { |
| 89 | bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine)); |
| 90 | |
| 91 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 92 | |
| 93 | tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0); |
| 94 | |
| 95 | return 0; |
| 96 | } |
| 97 | |
| 98 | /*************************************************************************** |
| 99 | Memory Maps |
| 100 | ***************************************************************************/ |
| 101 | |
| 102 | static int nmi_enable; |
| 103 | |
| 104 | static UINT8 out[3]; |
| 105 | |
| 106 | static void show_out(void) |
| 107 | { |
| 108 | #ifdef MAME_DEBUG |
| 109 | popmessage("%02x %02x %02x", out[0], out[1], out[2]); |
| 110 | #endif |
| 111 | } |
| 112 | |
| 113 | static WRITE8_HANDLER( cabaret_nmi_and_coins_w ) |
| 114 | { |
| 115 | if ((nmi_enable ^ data) & (~0xdd)) |
| 116 | { |
| 117 | logerror("PC %06X: nmi_and_coins = %02x\n",cpu_get_pc(space->cpu),data); |
| 118 | // popmessage("%02x",data); |
| 119 | } |
| 120 | |
| 121 | coin_counter_w(0, data & 0x01); // coin_a |
| 122 | coin_counter_w(1, data & 0x04); // coin_c |
| 123 | coin_counter_w(2, data & 0x08); // key in |
| 124 | coin_counter_w(3, data & 0x10); // coin out mech |
| 125 | |
| 126 | set_led_status(6, data & 0x40); // led for coin out / hopper active |
| 127 | |
| 128 | nmi_enable = data; // data & 0x80 // nmi enable? |
| 129 | |
| 130 | out[0] = data; |
| 131 | show_out(); |
| 132 | } |
| 133 | |
| 134 | |
| 135 | |
| 136 | static ADDRESS_MAP_START( cabaret_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 137 | AM_RANGE( 0x00000, 0x0efff ) AM_ROM |
| 138 | AM_RANGE( 0x0f000, 0x0ffff ) AM_RAM AM_REGION("main", 0xf000) |
| 139 | ADDRESS_MAP_END |
| 140 | |
| 141 | static ADDRESS_MAP_START( cabaret_portmap, ADDRESS_SPACE_IO, 8 ) |
| 142 | AM_RANGE( 0x0000, 0x003f ) AM_RAM // Z180 internal regs |
| 143 | |
| 144 | AM_RANGE( 0x0080, 0x0080 ) AM_READ_PORT( "BUTTONS2" ) |
| 145 | AM_RANGE( 0x0081, 0x0081 ) AM_READ_PORT( "SERVICE" ) |
| 146 | AM_RANGE( 0x0082, 0x0082 ) AM_READ_PORT( "COINS" ) |
| 147 | AM_RANGE( 0x0090, 0x0090 ) AM_READ_PORT( "BUTTONS1" ) |
| 148 | AM_RANGE( 0x00a0, 0x00a0 ) AM_WRITE( cabaret_nmi_and_coins_w ) |
| 149 | |
| 150 | AM_RANGE( 0x00a1, 0x00a1 ) AM_READ_PORT("DSW1") /* DSW1 */ |
| 151 | AM_RANGE( 0x00a2, 0x00a2 ) AM_READ_PORT("DSW2") /* DSW2 */ |
| 152 | AM_RANGE( 0x00b0, 0x00b0 ) AM_READ_PORT("DSW3") /* DSW3 */ |
| 153 | |
| 154 | AM_RANGE( 0x00e0, 0x00e0 ) AM_WRITE( ym2413_register_port_0_w ) |
| 155 | AM_RANGE( 0x00e1, 0x00e1 ) AM_WRITE( ym2413_data_port_0_w ) |
| 156 | |
| 157 | AM_RANGE( 0x2000, 0x27ff ) AM_RAM_WRITE( fg_tile_w ) AM_BASE( &fg_tile_ram ) |
| 158 | AM_RANGE( 0x2800, 0x2fff ) AM_RAM_WRITE( fg_color_w ) AM_BASE( &fg_color_ram ) |
| 159 | |
| 160 | AM_RANGE( 0x3000, 0x37ff ) AM_RAM_WRITE( paletteram_xBBBBBGGGGGRRRRR_split1_w ) AM_BASE( &paletteram ) |
| 161 | AM_RANGE( 0x3800, 0x3fff ) AM_RAM_WRITE( paletteram_xBBBBBGGGGGRRRRR_split2_w ) AM_BASE( &paletteram_2 ) |
| 162 | |
| 163 | AM_RANGE( 0x1000, 0x103f ) AM_RAM_WRITE( bg_scroll_w ) AM_BASE( &bg_scroll ) |
| 164 | |
| 165 | AM_RANGE( 0x1800, 0x19ff ) AM_RAM_WRITE( bg_tile_w ) AM_BASE( &bg_tile_ram ) |
| 166 | AM_RANGE( 0x8000, 0xffff ) AM_ROM AM_REGION("gfx3", 0) |
| 167 | ADDRESS_MAP_END |
| 168 | |
| 169 | |
| 170 | /*************************************************************************** |
| 171 | Input Ports |
| 172 | ***************************************************************************/ |
| 173 | |
| 174 | static INPUT_PORTS_START( cabaret ) |
| 175 | PORT_START("DSW1") // OK |
| 176 | PORT_DIPNAME( 0x07, 0x00, "Poke %" ) PORT_DIPLOCATION("SWA:1,2,3") |
| 177 | PORT_DIPSETTING( 0x07, "60%" ) |
| 178 | PORT_DIPSETTING( 0x06, "65%" ) |
| 179 | PORT_DIPSETTING( 0x05, "70%" ) |
| 180 | PORT_DIPSETTING( 0x04, "75%" ) |
| 181 | PORT_DIPSETTING( 0x03, "82%" ) |
| 182 | PORT_DIPSETTING( 0x02, "85%" ) |
| 183 | PORT_DIPSETTING( 0x01, "88%" ) |
| 184 | PORT_DIPSETTING( 0x00, "92%" ) |
| 185 | PORT_DIPNAME( 0x08, 0x00, "Double %" ) PORT_DIPLOCATION("SWA:4") |
| 186 | PORT_DIPSETTING( 0x08, DEF_STR( Easy ) ) |
| 187 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) |
| 188 | PORT_DIPNAME( 0x10, 0x00, "Coin Credit" ) PORT_DIPLOCATION("SWA:5") |
| 189 | PORT_DIPSETTING( 0x10, "5/1" ) |
| 190 | PORT_DIPSETTING( 0x00, "10/1" ) |
| 191 | PORT_DIPNAME( 0x20, 0x00, "Held Method" ) PORT_DIPLOCATION("SWA:6") |
| 192 | PORT_DIPSETTING( 0x20, "Discard" ) |
| 193 | PORT_DIPSETTING( 0x00, "Held" ) |
| 194 | PORT_DIPNAME( 0x40, 0x00, "Speed" ) PORT_DIPLOCATION("SWA:7") |
| 195 | PORT_DIPSETTING( 0x40, "Slow" ) |
| 196 | PORT_DIPSETTING( 0x00, "Quick" ) |
| 197 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 198 | |
| 199 | PORT_START("DSW2") // OK |
| 200 | PORT_DIPNAME( 0x03, 0x00, "Limit" ) PORT_DIPLOCATION("SWB:1,2") |
| 201 | PORT_DIPSETTING( 0x03, "5000" ) |
| 202 | PORT_DIPSETTING( 0x02, "10000" ) |
| 203 | PORT_DIPSETTING( 0x01, "15000" ) |
| 204 | PORT_DIPSETTING( 0x00, "30000" ) |
| 205 | PORT_DIPNAME( 0x0c, 0x00, "Max Bet" ) PORT_DIPLOCATION("SWB:3,4") |
| 206 | PORT_DIPSETTING( 0x0c, "20" ) |
| 207 | PORT_DIPSETTING( 0x08, "30" ) |
| 208 | PORT_DIPSETTING( 0x04, "40" ) |
| 209 | PORT_DIPSETTING( 0x00, "50" ) |
| 210 | PORT_DIPNAME( 0x10, 0x00, "Withdraw" ) PORT_DIPLOCATION("SWB:5") |
| 211 | PORT_DIPSETTING( 0x10, DEF_STR( No ) ) |
| 212 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) |
| 213 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_DIPLOCATION("SWB:6,7,8") |
| 214 | |
| 215 | PORT_START("DSW3") |
| 216 | PORT_DIPUNKNOWN( 0xff, 0xff ) |
| 217 | |
| 218 | PORT_START("SERVICE") |
| 219 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 220 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Memory Clear") // stats, memory |
| 221 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 222 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_4) PORT_NAME("Payout") |
| 223 | PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW ) |
| 224 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_F1) PORT_NAME("Statistics") |
| 225 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 226 | |
| 227 | PORT_START("COINS") |
| 228 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 229 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 230 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 231 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_CODE(KEYCODE_Q) PORT_NAME("Key In") |
| 232 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_CODE(KEYCODE_W) PORT_NAME("Key Down") |
| 233 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 234 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 235 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 236 | |
| 237 | PORT_START("BUTTONS1") |
| 238 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_CODE(KEYCODE_Z) PORT_NAME("Hold1") |
| 239 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_CODE(KEYCODE_X) PORT_NAME("Hold2") |
| 240 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_CODE(KEYCODE_C) PORT_NAME("Hold3") |
| 241 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_CODE(KEYCODE_V) PORT_NAME("Hold4") |
| 242 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_CODE(KEYCODE_B) PORT_NAME("Hold5") |
| 243 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 244 | |
| 245 | PORT_START("BUTTONS2") |
| 246 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| 247 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Decrement") |
| 248 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Bet") |
| 249 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Collect") |
| 250 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("W-Up") |
| 251 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 252 | INPUT_PORTS_END |
| 253 | |
| 254 | /*************************************************************************** |
| 255 | Graphics Layout |
| 256 | ***************************************************************************/ |
| 257 | |
| 258 | static const gfx_layout layout_8x8x6 = |
| 259 | { |
| 260 | 8, 8, |
| 261 | RGN_FRAC(1, 3), |
| 262 | 6, |
| 263 | { RGN_FRAC(0,3)+8,RGN_FRAC(0,3)+0, |
| 264 | RGN_FRAC(1,3)+8,RGN_FRAC(1,3)+0, |
| 265 | RGN_FRAC(2,3)+8,RGN_FRAC(2,3)+0 }, |
| 266 | { STEP8(0,1) }, |
| 267 | { STEP8(0,2*8) }, |
| 268 | 8*8*2 |
| 269 | }; |
| 270 | |
| 271 | static const gfx_layout layout_8x32x6i = |
| 272 | { |
| 273 | 8, 32, |
| 274 | RGN_FRAC(1, 3), |
| 275 | 6, |
| 276 | { RGN_FRAC(0,3)+8,RGN_FRAC(0,3)+0, |
| 277 | RGN_FRAC(1,3)+8,RGN_FRAC(1,3)+0, |
| 278 | RGN_FRAC(2,3)+8,RGN_FRAC(2,3)+0 }, |
| 279 | { STEP8(0,1) }, |
| 280 | { STEP32(0,2*8) }, |
| 281 | 8*32*2 |
| 282 | }; |
| 283 | |
| 284 | static GFXDECODE_START( cabaret ) |
| 285 | GFXDECODE_ENTRY( "gfx1", 0x00000, layout_8x8x6, 0, 16 ) |
| 286 | GFXDECODE_ENTRY( "gfx2", 0x00000, layout_8x32x6i, 0, 16 ) |
| 287 | GFXDECODE_END |
| 288 | |
| 289 | |
| 290 | |
| 291 | |
| 292 | /*************************************************************************** |
| 293 | Machine Drivers |
| 294 | ***************************************************************************/ |
| 295 | |
| 296 | static MACHINE_RESET( cabaret ) |
| 297 | { |
| 298 | nmi_enable = 0; |
| 299 | } |
| 300 | |
| 301 | static INTERRUPT_GEN( cabaret_interrupt ) |
| 302 | { |
| 303 | if (nmi_enable & 0x80) |
| 304 | cpu_set_input_line(device, INPUT_LINE_NMI, PULSE_LINE); |
| 305 | } |
| 306 | |
| 307 | static MACHINE_DRIVER_START( cabaret ) |
| 308 | /* basic machine hardware */ |
| 309 | MDRV_CPU_ADD("main", Z180, XTAL_12MHz / 2) |
| 310 | MDRV_CPU_PROGRAM_MAP(cabaret_map,0) |
| 311 | MDRV_CPU_IO_MAP(cabaret_portmap,0) |
| 312 | MDRV_CPU_VBLANK_INT("main",cabaret_interrupt) |
| 313 | |
| 314 | MDRV_MACHINE_RESET(cabaret) |
| 315 | |
| 316 | /* video hardware */ |
| 317 | MDRV_SCREEN_ADD("main", RASTER) |
| 318 | MDRV_SCREEN_REFRESH_RATE(60) |
| 319 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 320 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 321 | MDRV_SCREEN_SIZE(512, 256) |
| 322 | MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1) |
| 323 | |
| 324 | MDRV_GFXDECODE(cabaret) |
| 325 | MDRV_PALETTE_LENGTH(0x800) |
| 326 | |
| 327 | MDRV_VIDEO_START(cabaret) |
| 328 | MDRV_VIDEO_UPDATE(cabaret) |
| 329 | |
| 330 | /* sound hardware */ |
| 331 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 332 | MDRV_SOUND_ADD("ym", YM2413, XTAL_3_579545MHz) |
| 333 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 334 | MACHINE_DRIVER_END |
| 335 | |
| 336 | |
| 337 | static DRIVER_INIT( cabaret ) |
| 338 | { |
| 339 | UINT8 *rom = memory_region(machine, "main"); |
| 340 | int i; |
| 341 | |
| 342 | /* decrypt the program ROM */ |
| 343 | for (i = 0;i < 0xf000;i++) |
| 344 | { |
| 345 | if ((i & 0x2206) == 0x2002) rom[i] ^= 0x01; |
| 346 | } |
| 347 | |
| 348 | /* Patch pitfalls */ |
| 349 | rom[0x1012] = |
| 350 | rom[0x1013] = 0; |
| 351 | rom[0x13b8] = 0x18; |
| 352 | rom[0x53a6] = 0x18; |
| 353 | rom[0x73c6] = 0x18; |
| 354 | rom[0xc46a] = 0x18; |
| 355 | rom[0xc583] = 0x18; |
| 356 | rom[0xc5fa] = 0x18; |
| 357 | rom[0xc6c4] = 0x18; |
| 358 | } |
| 359 | |
| 360 | ROM_START( cabaret ) |
| 361 | ROM_REGION( 0x10000, "main", 0 ) /* 64k for code */ |
| 362 | ROM_LOAD( "cg-8v204.u97", 0x0000, 0x10000, CRC(44cebf77) SHA1(e3f4e4abf41388f0eed50cf9a0fd0b14aa2f8b93) ) |
| 363 | |
| 364 | ROM_REGION( 0x60000, "gfx1", ROMREGION_DISPOSE ) |
| 365 | ROM_LOAD( "cg-4.u43", 0x40000, 0x20000, CRC(e509f50a) SHA1(7e68ca54642c92cdb348d5cf9466065938d0e027) ) |
| 366 | ROM_LOAD( "cg-5.u44", 0x20000, 0x20000, CRC(e2cbf489) SHA1(3a15ed7efd5696656e6d55b54ec0ff779bdb0d98) ) |
| 367 | ROM_LOAD( "cg-6.u45", 0x00000, 0x20000, CRC(4f2fced7) SHA1(b954856ffdc97fbc99fd3ec087376fbf466d2d5a) ) |
| 368 | |
| 369 | ROM_REGION( 0xc000, "gfx2", ROMREGION_DISPOSE ) |
| 370 | ROM_LOAD( "cg-1.u40", 0x8000, 0x4000, CRC(7dee8b1f) SHA1(80dbdf6aab9b02cc000956b7894023552428e6a1) ) |
| 371 | ROM_LOAD( "cg-2.u41", 0x0000, 0x4000, CRC(ce8dea39) SHA1(b30d1678a7b98cd821d2ce7383a83cb7c9f31b5f) ) |
| 372 | ROM_LOAD( "cg-3.u42", 0x4000, 0x4000, CRC(7e1f821f) SHA1(b709d49f9d1890fe3b8ca7f90affc0017a0ad95e) ) |
| 373 | |
| 374 | ROM_REGION( 0x8000, "gfx3", 0 ) |
| 375 | ROM_LOAD( "cg-7.u98", 0x0000, 0x8000, CRC(b93ae6f8) SHA1(accb87045c278d5d79fff65bb763aa6e8025a945) ) /* background maps, read by the CPU */ |
| 376 | ROM_END |
| 377 | |
| 378 | GAME( 1992, cabaret, 0, cabaret, cabaret, cabaret, ROT0, "AMT Co. Ltd.", "Cabaret", GAME_NOT_WORKING ) |
| 379 | |