src/mame/machine/snes.c
| r5345 | r5346 | |
| 280 | 280 | |
| 281 | 281 | *************************************/ |
| 282 | 282 | |
| 283 | static READ8_HANDLER( snes_open_bus_r ) |
| 284 | { |
| 285 | static UINT8 recurse = 0; |
| 286 | UINT16 result; |
| 287 | |
| 288 | /* prevent recursion */ |
| 289 | if (recurse) |
| 290 | return 0xff; |
| 291 | |
| 292 | recurse = 1; |
| 293 | result = memory_read_byte_8le(space, cpu_get_pc(space->cpu)+2); //TODO: must be the LAST opcode that's fetched on the bus |
| 294 | recurse = 0; |
| 295 | return result; |
| 296 | } |
| 297 | |
| 283 | 298 | /* |
| 284 | 299 | * DR - Double read : address is read twice to return a 16bit value. |
| 285 | 300 | * low - This is the low byte of a 16 or 24 bit value |
| r5345 | r5346 | |
| 299 | 314 | /* offset is from 0x000000 */ |
| 300 | 315 | switch( offset ) |
| 301 | 316 | { |
| 302 | | /* hacks for SimCity 2000 to boot - I presume openbus emulation will fix */ |
| 317 | /* hacks for SimCity 2000 (J) to boot - I presume openbus emulation will fix */ |
| 303 | 318 | case 0x221a: |
| 304 | 319 | case 0x231c: |
| 305 | 320 | case 0x241e: |
| r5345 | r5346 | |
| 312 | 327 | case 0x2016: |
| 313 | 328 | return 2; |
| 314 | 329 | |
| 330 | /* Shien The Blade Chaser / Shien's Revenge reads here instead */ |
| 331 | case NMITIMEN: |
| 332 | return snes_open_bus_r(space,0); |
| 315 | 333 | case OAMADDL: |
| 316 | 334 | case OAMADDH: |
| 317 | 335 | case VMADDL: |