Skip to content

Instantly share code, notes, and snippets.

Embed
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
;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
You can’t perform that action at this time.