Skip to content

Instantly share code, notes, and snippets.

@realoriginal
Created March 15, 2024 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realoriginal/ee649d89e0567d13f915aad73be30898 to your computer and use it in GitHub Desktop.
Save realoriginal/ee649d89e0567d13f915aad73be30898 to your computer and use it in GitHub Desktop.
GetIp AARCH64 for Windows on ARM.
.section .text$C
.global GetIp
GetIp:
bl _next_instruction
_next_instruction:
mov x0, lr
sub x0, x0, _next_instruction - GetIp
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment