Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; You may customize this and other start-up templates;
- ; The location of this template is c:\emu8086\inc\0_com_template.txt
- org 100h
- .data
- MSGpos db "the number is positive $"
- MSGzero db "the number is zero $"
- MSGneg db "the number is negetive $"
- .code
- mov ax,@data
- mov ds,ax
- mov bl,-8 ; here change any number then the msg will display to compare yhis number it's not a user define number
- cmp bl,0
- jg levelG
- jl levelL
- je level
- levelL:
- lea dx,MSGneg
- mov ah,9
- int 21h
- jmp finish
- levelG:
- lea dx,MSGpos
- mov ah,9
- int 21h
- jmp finish
- level:
- lea dx,MSGzero
- mov ah,9
- int 21h
- jmp finish
- finish:
- ret
Add Comment
Please, Sign In to add comment