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 "This valu is correct$"
- y db "This valu is incorrects$"
- .code
- mov ax,@data
- mov ds,ax
- mov ah,1
- int 21h
- mov bl,al
- cmp bl,"y"
- je ODD_
- cmp bl,"Y"
- je EVEN_
- ODD_: mov ah,2
- mov dx,0ah
- int 21h
- mov ah,2
- mov dx,0dh
- int 21h
- lea dx,x
- mov ah,9
- int 21h
- jmp finish
- EVEN_: mov ah,2
- mov dx,0ah
- int 21h
- mov ah,2
- mov dx,0dh
- int 21h
- lea dx,y
- mov ah,9
- int 21h
- jmp finish
- finish:
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement