Advertisement
JuanDark24

Untitled

Dec 16th, 2021
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .386
  2. .model flat, stdcall
  3. .data
  4. ListaNumeros dword 1,2,3,4,5,6,7,8
  5. .code
  6. start:
  7.     ;write your code here
  8.     mov esi, OFFSET ListaNumeros    
  9.     mov ecx, LENGTHOF ListaNumeros / 2      
  10.  
  11.     Ciclo:
  12.         mov eax, [esi]
  13.         mov ebx, [esi + 4]
  14.         mov [esi], ebx
  15.         mov [esi + 4], eax
  16.         add esi, TYPE ListaNumeros * 2
  17.     loop Ciclo
  18.     ret
  19.     END start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement