public int getFromMemory(int start, int offset) {
		if(start >= 0x10010000 && start <= 0x10010000 + 4*1024)
			return data.get(start+offset);
		if(start <= 0x7FFFEFFF && start >= 0x7FFFEFFF-2*1024)
			return stack.get(start+offset);
		if(start >= 0x00400000 && start <= 0x00400000 + 2*1024)
			return instr.get(start+offset);
		return 0;
	}