Advertisement
JuanDark24

Untitled

Dec 16th, 2021
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. .386
  2. .model flat, stdcall
  3. .data
  4. source BYTE "This is the source string", 0
  5. target BYTE SIZEOF source DUP('#')
  6. .code
  7.  
  8. start:
  9. ;write your code here
  10. mov esi, 0
  11. mov ecx, SIZEOF source
  12.  
  13. Ciclo:
  14. mov al, source[ecx]
  15. mov target[esi], al
  16. inc esi
  17. loop Ciclo
  18.  
  19. mov al,source[ecx]
  20. mov target[esi], al
  21. ret
  22. END start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement