Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- msg1 db "The number is zero,$"
- msg2 db "The number is negative,$"
- msg3 db "The number is positive ,$"
- .code
- mov ax, @data
- mov ds,ax
- mov bl,-10
- cmp ax,0
- jg LEVELG
- jl LEVELL
- je LEVELE
- LEVELG:
- lea dx,msg1
- mov ah,9
- int 21h
- jmp finish
- LEVELL:
- lea dx,msg2
- mov ah,9
- int 21h
- jmp finish
- LEVELE:
- lea dx,msg3
- mov ah,9
- int 21h
- jmp finish
- finish:
Advertisement
Add Comment
Please, Sign In to add comment