public void debuggerAddressWrite(int addr, int data) {
		if (cartType == 0) {
			rom[addr] = (byte) data;
		} else {
			if (addr < 0x4000) {
				rom[addr] = (byte) data;
			} else {
				rom[pageStart + addr - 0x4000] = (byte) data;
			}
		}
	}