private static void visitRegister(MemoryStateCreator mem, RegisterContext tree) {
		switch (tree.getText()) {
			case "A":
				mem.addRegisterA();				break;
			case "B":
				mem.addRegisterB();				break;
			case "C":
				mem.addRegisterC();				break;
			case "X":
				mem.addRegisterX();				break;
			case "Y":
				mem.addRegisterY();				break;
			case "Z":
				mem.addRegisterZ();				break;
		}
	}