handmade.network » Wiki » x86 Registers
#14248 mmozeiko Feb. 11, 2018, 8:07 p.m.

Instruction pointer can be also read with LEA in x86_64:

1
lea rax, [rip]

Edited by Mārtiņš Možeiko on Feb. 11, 2018, 10:04 p.m.
#14251 ratchetfreak Feb. 11, 2018, 9:52 p.m.

and instruction pointer can also be set using the (indirect) jump