Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Adding Two Numbers and Display the Content of Register in Assembly Language using nasm
;Author : Sanjib Narzary
;Institute: NIT Calicut
;Assembly Code
section .text
global main
extern printf
mov eax, 45
mov ebx, 55
add eax,ebx
push eax
push message
call printf
add esp, 8
message db "Value = %d", 10, 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.