JDoodle

Easy and Quick way to run Assembler (NASM) Code Online

Assembler - NASM
Version - NASM 2.11.08
Project Name :
Your Code ...
section .text global _start _start: mov eax, [x] sub eax, '0' mov ebx, [y] sub ebx, '0' add eax, ebx add eax, '0' mov [sum], eax mov ecx, msg mov edx, len mov ebx, 1 mov eax, 4 int 0x80 mov ecx, sum mov edx, 1 mov ebx, 1 mov eax, 4 int 0x80 mov eax, 1 int 0x80 section .data x db '5' y db '3' msg db "sum of x and y is " len equ $ - msg segment .bss sum resb 1
Interactive mode :
Stdin Inputs...
Result...
compiled and executed in second(s)
Hint - Press Ctrl+Space or Alt+Space for Auto Complete.
Your valuable inputs will help us improve this site
please give your comments. Thanks.
Which language would you like to see next in JDoodle?
Comments/Suggestions/Inputs...
Please Login to use this option....