Advertisement
Guest User

assemblerrrr

a guest
Nov 1st, 2017
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. format MZ
  2. stack stk:256
  3. entry codseg:main
  4. ;-------segment danych
  5. segment sdat use16
  6. w db 'Hello ',0dh,0ah,24h
  7.  
  8. segment sdat2 use16
  9. z db 'World!',0dh,0ah,24h
  10.  
  11.  
  12. ;-------segment programu
  13. segment codseg use16
  14.  
  15. main:
  16. push ds
  17. push bx
  18. push dx
  19.  
  20. mov bx,sdat
  21. mov ds,bx
  22. mov ah,9
  23. mov dx,w
  24.  
  25. int 21h
  26. mov ah,1
  27. int 21h
  28.  
  29. mov bx, sdat2
  30. mov ds,bx
  31. mov ah,9
  32. mov dx,w
  33.  
  34. int 21h
  35. mov ah,1
  36. int 21h
  37.  
  38.  
  39. pop dx
  40. pop bx
  41. pop ds
  42. mov ax,4c00h
  43. int 21h
  44.  
  45. ret
  46.  
  47. ;----segment stosu
  48. segment stk use16
  49. db 256 dup(?)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement