private void Setup_Mapper() { if (is_XROM) { mapper = new MapperXROM { Core = this }; } else { mapper = new MapperDefault { Core = this }; } mapper.Initialize(); // bank size is different for 12 k carts, it uses all 3k per bank. Note that A11 is held low by the CPU during interrupts // so this means 12k games use the upper 1k outside of vbl if (_rom.Length == 0x3000) { bank_size = 0xC00; } else { bank_size = 0x800; } }
private void Setup_Mapper() { mapper = new MapperDefault(); mapper.Core = this; }