Skip to content

Instantly share code, notes, and snippets.

@eventhelix
Last active May 7, 2022 17:36
Show Gist options
  • Save eventhelix/f609da080214fce2aac517d2a5071a09 to your computer and use it in GitHub Desktop.
Save eventhelix/f609da080214fce2aac517d2a5071a09 to your computer and use it in GitHub Desktop.
Code generated for a Rust function that adds two numbers
; The caller has passed a and b in rdi and rsi. The load effective address
; instruction is used (misused?) to perform the addition.
lea rax, [rdi + rsi]
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment