Advertisement
apl-mhd

Assembly loop print new line

Jul 22nd, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mov bh,0
  2.  
  3.  
  4. init:
  5. cmp bh,10
  6. jl lop
  7.  
  8. hlt
  9. lop:
  10. add bh,1
  11.  
  12.  
  13.  
  14.  
  15.  
  16. mov ah,2    ;digit print
  17. mov dl,bh
  18.  
  19. add dl, 30h
  20.  
  21. int 21h
  22.  
  23.  
  24. mov ah,2
  25.  
  26. mov dl, 0AH
  27. int 21h
  28.  
  29.  
  30. mov ah,2
  31.  
  32. mov dl, 0DH
  33. int 21h
  34.  
  35.  
  36.  
  37. jmp init
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement