bipo143

micro leb 17.0217 } this is zero

Feb 17th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. .data
  2.  
  3. msg1 db "The number is zero,$"
  4. msg2 db "The number is negative,$"
  5. msg3 db "The number is positive ,$"
  6.  
  7. .code
  8. mov ax, @data
  9. mov ds,ax
  10.  
  11. mov bl,-10
  12. cmp ax,0
  13.  
  14.  
  15.  
  16. jg LEVELG
  17. jl LEVELL
  18. je LEVELE
  19.  
  20. LEVELG:
  21. lea dx,msg1
  22. mov ah,9
  23. int 21h
  24. jmp finish
  25.  
  26.  
  27.  
  28. LEVELL:
  29. lea dx,msg2
  30.  
  31. mov ah,9
  32. int 21h
  33. jmp finish
  34.  
  35. LEVELE:
  36. lea dx,msg3
  37.  
  38. mov ah,9
  39. int 21h
  40. jmp finish
  41.  
  42. finish:
Advertisement
Add Comment
Please, Sign In to add comment