Advertisement
Guest User

Untitled

a guest
May 26th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Funkcja wyświetlająca liczbę zapisaną ax
  2. display PROC
  3.     mov cx,0
  4.     mov bx,10
  5. disp1:
  6.     mov dx,0
  7.     div bx ; ax <-ax/bx | dx <-ax%bx
  8.     add dx,30h
  9.     push dx
  10.     inc cx
  11.     cmp ax,0
  12.     jnz disp1 ; dziel ax dopóki nie jest 0
  13. disp2:
  14.     pop dx
  15.     mov ah,2
  16.     int 21h
  17.     loop disp2
  18.     ret
  19. display ENDP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement