Advertisement
Osher15151

יחעחי

Feb 27th, 2020
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mov di,0
  2.         mov si,0
  3.         mov cx,10
  4.        
  5.     ll:
  6.         mov ah,1
  7.         int 21h
  8.         mov str1[si],al
  9.        
  10.         lea dx,msg
  11.         mov ah,9
  12.         int 21h
  13.        
  14.         cmp al,'0'
  15.         je con
  16.        
  17.        
  18.         inc si
  19.  
  20.         loop ll
  21.        
  22.         mov si,0
  23.         mov cl,str1[2]
  24.  
  25.    
  26.        
  27.     con:
  28.  
  29.        
  30.         mov dl,str1[di]
  31.        
  32.         cmp dl,'0'
  33.         je finish
  34.         mov ah,2
  35.         int 21h
  36.        
  37.         inc di
  38.         loop con
  39.        
  40.     finish:
  41.         dec di
  42.         lea dx,msg
  43.         mov ah,9
  44.         int 21h
  45.        
  46.     replace:   
  47.         mov dl,str1[di]
  48.         mov ah,2
  49.         int 21h
  50.        
  51.         cmp dl,'0'
  52.         je finish2
  53.  
  54.        
  55.         dec di
  56.         loop replace
  57.     finish2:
  58.         mov ah,4ch
  59.         int 21h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement