Advertisement
Guest User

choinka XD

a guest
Dec 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. Progr segment
  2. assume cs:Progr, ds:dane, ss:stosik
  3.  
  4. start: mov ax,dane
  5. mov ds,ax
  6. mov ax,stosik
  7. mov ss,ax
  8. mov sp,offset szczyt
  9.  
  10.  
  11. ;choinka start
  12. mov ax,0b800h
  13. mov es,ax
  14. mov ax,1120h
  15. mov di,0
  16. mov cx,2000
  17. mov bx,25
  18.  
  19. tlo:
  20. mov es:[di],ax
  21. inc di
  22. inc di
  23. loop tlo
  24.  
  25. drukowanie:
  26. mov ax,znak
  27. mov di, miejsce
  28. mov cx,ilerazy
  29. wyswietlanie:
  30. mov es:[di],ax
  31. inc di
  32. inc di
  33. loop wyswietlanie
  34. add ilerazy,2
  35. add miejsce,158
  36. inc znak
  37. dec bx
  38. jnz drukowanie
  39.  
  40. ;wyjscie
  41. mov ah,4ch
  42. mov al,0
  43. int 21h
  44.  
  45. Progr ends
  46.  
  47. dane segment
  48.  
  49. znak dw 2441h
  50. ilerazy dw 1
  51. miejsce dw 78
  52.  
  53. dane ends
  54.  
  55. stosik segment
  56. dw 100h dup(0)
  57. szczyt Label word
  58. stosik ends
  59.  
  60. end start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement