Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created March 15, 2010 02:59
Show Gist options
  • Save abuiles/332447 to your computer and use it in GitHub Desktop.
Save abuiles/332447 to your computer and use it in GitHub Desktop.
segment .data
matriz1: dd 1,2,3,4,5,6,7,8,9,10
matriz2: dd 1,2,3,4,5,6,7,8,9,10
segment .bss
matriz3: resd 10
segment .text
global main
main:
cld
mov esi,matriz1
mov ebx,matriz2
mov edi,matriz3
mov ecx,10
lp:
lodsd
add eax,[ebx]
add ebx,4
stosd
loop lp
mov ecx,10
mov esi,matriz3
jmp exit
exit:
mov eax,1
mov ebx,0
int 0x80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment