Advertisement
JuanDark24

Untitled

Dec 14th, 2021
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     L1:
  13.     mov  al,source[ecx]        
  14.     mov  target[esi],al        
  15.     inc  esi                   
  16.     loop L1                    
  17.  
  18.     mov  al,source[ecx]        
  19.     mov target[esi],al
  20.     ret
  21.     END start
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement