Skip to content

Instantly share code, notes, and snippets.

@Kittoes0124
Created March 2, 2019 22:53
Show Gist options
  • Save Kittoes0124/a7f4640a702eee434bdb096f4a104250 to your computer and use it in GitHub Desktop.
Save Kittoes0124/a7f4640a702eee434bdb096f4a104250 to your computer and use it in GitHub Desktop.
.code
Main proc
sub rsp, 28h ; align with 16 while simultaneously setting up the "home space"
; TODO: something useful here...
xor eax, eax ; set return value to zero
add rsp, 48h ; free all space that was reserved on the stack
ret ; end of main
Main endp
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment