src/mess/drivers/cpschngr.c
| r4587 | r4588 | |
| 6 | 6 | This in turn includes cps1.h. |
| 7 | 7 | Therefore we must call our include by the same name, in order to |
| 8 | 8 | override the mame include, and thereby remove any compilation errors. |
| 9 | | It also means we can get rid of the varios bodges of the past, and |
| 9 | It also means we can get rid of the various bodges of the past, and |
| 10 | 10 | no more ifdefs are needed in the mame code. |
| 11 | 11 | |
| 12 | 12 | ***************************************************************************/ |
| r4587 | r4588 | |
| 77 | 77 | |
| 78 | 78 | static INTERRUPT_GEN( cps1_interrupt ) |
| 79 | 79 | { |
| 80 | | /* Strider also has a IRQ4 handler. It is input port related, but the game */ |
| 81 | | /* works without it. It is the *only* CPS1 game to have that. */ |
| 82 | 80 | cpu_set_input_line(device, 2, HOLD_LINE); |
| 83 | 81 | } |
| 84 | 82 | |
| r4587 | r4588 | |
| 101 | 99 | { |
| 102 | 100 | UINT8 *rom = memory_region(space->machine, "user1"); |
| 103 | 101 | |
| 104 | | if (rom) return rom[offset] | 0xff00; |
| 102 | if (rom) |
| 103 | return rom[offset] | 0xff00; |
| 105 | 104 | else |
| 106 | | { |
| 107 | | popmessage("%06x: read sound ROM byte %04x",cpu_get_pc(space->cpu),offset); |
| 108 | 105 | return 0; |
| 109 | | } |
| 110 | 106 | } |
| 111 | 107 | |
| 112 | 108 | static READ16_HANDLER( qsound_sharedram1_r ) |
| r4587 | r4588 | |
| 135 | 131 | { |
| 136 | 132 | UINT8 *RAM = memory_region(space->machine, "audiocpu"); |
| 137 | 133 | int bankaddress=0x10000+((data&0x0f)*0x4000); |
| 134 | |
| 138 | 135 | if (bankaddress >= memory_region_length(space->machine, "audiocpu")) |
| 139 | | { |
| 140 | | logerror("WARNING: Q sound bank overflow (%02x)\n", data); |
| 141 | 136 | bankaddress=0x10000; |
| 142 | | } |
| 137 | |
| 143 | 138 | memory_set_bankptr(space->machine, 1, &RAM[bankaddress]); |
| 144 | 139 | } |
| 145 | 140 | |
| r4587 | r4588 | |
| 611 | 606 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 612 | 607 | CONS( 1995, sfach, sfzch, 0, cps1_10MHz, sfzch, cps1, NULL, "Capcom", "CPS Changer - Street Fighter Alpha - Warriors' Dreams (Publicity US 950727)", 0 ) |
| 613 | 608 | CONS( 1995, sfzch, 0, 0, cps1_10MHz, sfzch, cps1, NULL, "Capcom", "CPS Changer - Street Fighter Zero (Japan 951020)", 0 ) |
| 614 | | CONS( 1995, sfzbch, sfzch, 0, cps1_10MHz, sfzch, cps1, NULL, "Hack", "CPS Changer - Street Fighter Alpha (Brazil 950727)", 0 ) |
| 609 | CONS( 1995, sfzbch, sfzch, 0, cps1_10MHz, sfzch, cps1, NULL, "Capcom", "CPS Changer - Street Fighter Zero (Brazil 950727)", 0 ) |
| 615 | 610 | CONS( 1995, wofch, 0, 0, qsound, sfzch, wof, NULL, "Capcom", "CPS Changer - Tenchi Wo Kurau II (Japan 921031)", 0 ) |