LD HL,(nn) <= nn located in DATA segment, fixed by OS. LD DE,(PROGRAM_OFFSET) <= constant ADD HL,DE JP (HL) This is almost exactly how ZShell works.