Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. IDEAL
  2. MODEL small
  3. STACK 100h
  4. INCLUDE "gvahim.mac"
  5.  
  6. DATASEG
  7. ; --------------------------
  8. ; Your variables here
  9. msg db 'BOOM', 0
  10. msg1 db 'not_boom', 0
  11. ; --------------------------
  12. CODESEG
  13. start:
  14. mov ax, @data
  15. mov ds, ax
  16. ; --------------------------
  17. ; Your code here
  18. ; --------------------------
  19. call SCAN_NUM
  20. cmp dx, 7
  21. je equal
  22. LEA si, [msg1]
  23. call PRINT_STR
  24. jmp exit
  25. equal:
  26. LEA si, [msg]
  27. call PRINT_STR
  28.  
  29.  
  30. exit:
  31. mov ax, 4c00h
  32. int 21h
  33.  
  34. INCLUDE "gvahim.asm"
  35. END start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement