Skip to content

Instantly share code, notes, and snippets.

@codemee
Created May 8, 2022 03:51
Show Gist options
  • Save codemee/083e2741fc3e24c6db1bbfda7f014fba to your computer and use it in GitHub Desktop.
Save codemee/083e2741fc3e24c6db1bbfda7f014fba to your computer and use it in GitHub Desktop.
asm code generated for var
a:
.long 10
.LC0:
.string "%d"
main:
push rbp
mov rbp, rsp
mov eax, DWORD PTR a[rip]
mov esi, eax
mov edi, OFFSET FLAT:.LC0
mov eax, 0
call printf
mov eax, 0
pop rbp
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment