Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. org 100h
  2.  
  3. mov ax, 12345    ;35
  4. mov si, tekst_ispis
  5. inc si
  6.  
  7. mov bx, ax
  8. provera:
  9.     cmp bx, 0
  10.     je print
  11.     mov ax,bx
  12.     cwd  
  13.     mov bx, 10  
  14.     div bx
  15.     add dx, 48  
  16.     mov [si], dx
  17.     mov bx, ax
  18.     inc si
  19.     jmp provera
  20.  
  21.  
  22.  
  23. print:    
  24.     dec si
  25.     print1:
  26.         cmp [si], byte 0
  27.         je kraj
  28.         mov al,[si]
  29.         mov ah, 0eh
  30.         int 10h
  31.         dec si
  32.         jmp print1
  33.  
  34.  
  35.  
  36. kraj:  
  37.  
  38.  
  39. ret
  40.  
  41. tekst_ispis: db 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement