Advertisement
Guest User

mappso1

a guest
Jun 24th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. .model small
  2. .stack 32
  3.  
  4. .data
  5. head1 db "cybernauts",10,'$'
  6. date db "6/24/19////////////////////////////",10,'$'
  7. errorMessage db "Error not in string",10,'$'
  8. mock db "+----+"
  9. copy4 db 24 DUP(' '), '$'
  10.  
  11. .code
  12.  
  13. main proc far
  14.  
  15. mov ax, @data
  16. mov ds, ax
  17. mov es, ax
  18.  
  19. cld
  20.  
  21. mov cx, 12 ; mov cx, 24 but then --> = rep movsB
  22. ; mov si, 24 // pre-seting the register doesn't work you must remove the '$' because that
  23. ; limits the size of the string variable
  24. lea si, mock
  25. lea di, copy4
  26. rep movsW
  27.  
  28. ;lea dx, mock
  29. ;mov ah, 09h
  30. ;int 21h
  31.  
  32. lea dx, copy4
  33. mov ah, 09h
  34. int 21h
  35.  
  36.  
  37. mov ax,4c00h
  38. int 21h
  39.  
  40. main endp
  41. end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement