Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. DOSSEG
  2. .MODEL TINY
  3. .STACK 100h
  4. .DATA
  5. A DB 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, '$'
  6. B DB 11 DUP(0)
  7. .CODE
  8. start:
  9. cld
  10. mov ax, @DATA
  11. mov ds, ax
  12. mov es, ax
  13.  
  14. lea si, A
  15. lea di, B
  16.  
  17. mov cx, 11
  18. rep movsb
  19. mov cx, 10
  20. lea si, B
  21.  
  22. m2: mov ax, [si]
  23. add ax, 30h
  24. mov [si], ax
  25. add si, 1
  26. loop m2
  27. mov cx,10
  28. mov si, 0
  29. m1:
  30. mov dl, [A+si]
  31. add dl, 30h
  32. int 21h
  33. mov ah, 02h
  34. mov dl, 20h
  35. int 21h
  36. inc si
  37. loop m1
  38.  
  39. mov ah, 4ch
  40. int 21h
  41. END start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement