Skip to content

Instantly share code, notes, and snippets.

@raminfp
Forked from sanjibnarzary/addition.asm
Created January 8, 2017 00:34
Show Gist options
  • Save raminfp/bfe9a35c48437ad38069e1239afa518d to your computer and use it in GitHub Desktop.
Save raminfp/bfe9a35c48437ad38069e1239afa518d 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