Skip to content

Instantly share code, notes, and snippets.

@sanjibnarzary
Created January 10, 2012 14:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save sanjibnarzary/1589234 to your computer and use it in GitHub Desktop.
Save sanjibnarzary/1589234 to your computer and use it in GitHub Desktop.
Adding Two Numbers and Display the Content of Register in Assembly Language using nasm
;Author : Sanjib Narzary
;Institute: NIT Calicut
;Email: o-._.-o@live.com
;Assembly Code
section .text
global main
extern printf
main:
mov eax, 45
mov ebx, 55
add eax,ebx
push eax
push message
call printf
add esp, 8
ret
message db "Value = %d", 10, 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment