Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .386
- .model flat, stdcall
- option casemap : none
- .data
- array DWORD 10, 20, 30, 40
- .code
- start:
- ;write your code here
- mov edi, OFFSET array
- mov ecx, LENGTHOF array
- mov eax, [edi]
- Ciclo:
- mov edx, [edi]
- mov [edi], eax
- mov eax, edx
- add edi, TYPE array
- loop Ciclo
- mov edi, OFFSET array
- mov [edi], eax
- mov eax, [edi] ;40
- mov eax, [edi]+4 ;10
- mov eax, [edi]+8 ;20
- mov eax, [edi]+12 ;30
- ret
- END start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement