Advertisement
niem786

problem 1

Mar 24th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ; You may customize this and other start-up templates;
  2. ; The location of this template is c:\emu8086\inc\0_com_template.txt
  3.  
  4. org 100h
  5.  
  6. ; add your code here
  7. .code
  8.  
  9. mov ax,13
  10. mov bx,6
  11. mov cx,8
  12.  
  13. cmp ax,bx
  14. jl label1
  15. jg label2
  16.  
  17. label1:
  18. mov dl,'0'
  19. mov ah,2
  20. int 21h
  21. jmp finished
  22.  
  23. label2:
  24. cmp bx,cx
  25. jl label1
  26. jg label3
  27. jmp finished
  28.  
  29. label3:
  30. mov dl,'1'
  31. mov ah,2
  32. int 21h
  33.  
  34. finished:
  35. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement