def ldx2(comp: Computer): ptr = getat_pages(comp, True) data = comp.getat(ptr) comp.regx = data
def ldx_imm(comp: Computer): comp.pc += 1 data = comp.getat(comp.pc) comp.regx = data