Created
March 15, 2010 02:59
-
-
Save abuiles/332447 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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