Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Assembly Program To Add 2 Numbers Isn't Working
;nasm 2.11.08 segment .bss n1 resb 2 n2 resb 2 result resb 1 section .text global main main: mov eax,3 mov ebx,0 mov ecx,n1 mov edx,2 int 0x80 mov eax,3 mov ebx,0 mov ecx,n2 mov edx,2 int 0x80 mov eax,[n1] sub eax,"0" mov ebx,[n2] sub ebx,"0" add eax,ebx sub eax,"0" mov [result],eax mov eax,4 mov ebx,1 mov ecx,[result] mov edx,1 int 0x80 mov eax,1 mov ebx,0 int 0x80
run
|
edit
|
history
|
help
0
Macro String Output
Compare data in AL and AH
dsafdfsdafds
fib.asm
helloworldgroup1
sdffdfsdafd
bcfsfssdffs
recursive
hello.asm
Evaluate Expression