rom.write(addr, (rom.read(addr) & (~ (3 << ((change.getY() % 4) * 2)))) + (rom.read(addr) << ((change.getY() % 4) * 2)));
rom.write(addr, (rom.read(addr) & (~ (3 << ((change.getY() % 4) * 2)))) | (change.getValue() >> 2) << ((change.getY() % 4) * 2));
	public static void writeMapChanges(AbstractRom rom) {		int addr;				for (int i = 0; i < mapChanges.size(); i++) {			MapChange change = (MapChange) mapChanges.get(i);			rom.write(getMapAddress(change.getY()) + change.getX(), change					.getValue());						addr = localTsetAddress + ((change.getY() / 8) * (MapEditor.width + 1)) + change.getX();			if (((change.getY() / 4) % 2) == 1)				addr += 0x3000;			rom.write(addr, (rom.read(addr) & (~ (3 << ((change.getY() % 4) * 2)))) + (rom.read(addr) << ((change.getY() % 4) * 2))); 		}		mapChanges.clear();		}