Advertisement
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
- x_ db "ODD$"
- y_ db "EveEn$"
- z_ db "This is a out of range compare ! azad ki koro $"
- .code
- mov ax,@data
- mov ds,ax
- mov al,6
- 1,3:cmp al,1
- je odd_
- cmp al,3
- je odd_
- ;jne z5
- 2,4:cmp al,2
- je even_
- cmp al,4
- je even_
- jne z5
- odd_:
- lea dx,x_
- mov ah,9
- int 21h
- jmp finish
- even_:lea dx,y_
- mov ah,9
- int 21h
- jmp finish
- z5:
- lea dx,z_
- mov ah,9
- int 21h
- jmp finish
- finish:
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement