public static bool isMapperWriteAddress(ushort address) { if (Core.rom != null) { int mapperSetting = Core.rom.getMapperSetting(); if (mapperSetting == 1) { return(MMC1.isMapperWriteAddress(address)); } else if (mapperSetting == 2) { return(UNROM.isMapperWriteAddress(address)); } else if (mapperSetting == 3) { return(CNROM.isMapperWriteAddress(address)); } else if (mapperSetting == 4) { return(MMC3.isMapperWriteAddress(address)); } } return(false); }