mirror of https://github.com/bsnes-emu/bsnes.git
That was silly
This commit is contained in:
parent
48397683b8
commit
c459058156
|
@ -712,7 +712,7 @@ static void write_mbc(GB_gameboy_t *gb, uint16_t addr, uint8_t value)
|
||||||
break;
|
break;
|
||||||
case GB_MBC5:
|
case GB_MBC5:
|
||||||
switch (addr & 0xF000) {
|
switch (addr & 0xF000) {
|
||||||
case 0x0000: case 0x1000: gb->mbc_ram_enable = (value & 0xFF) == 0x0A; break;
|
case 0x0000: case 0x1000: gb->mbc_ram_enable = value == 0x0A; break;
|
||||||
case 0x2000: gb->mbc5.rom_bank_low = value; break;
|
case 0x2000: gb->mbc5.rom_bank_low = value; break;
|
||||||
case 0x3000: gb->mbc5.rom_bank_high = value; break;
|
case 0x3000: gb->mbc5.rom_bank_high = value; break;
|
||||||
case 0x4000: case 0x5000:
|
case 0x4000: case 0x5000:
|
||||||
|
|
Loading…
Reference in New Issue