Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- x db "Correct $"
- y db "In Correct $"
- v db ?, '$'
- .code
- mov ax, @data
- mov ds,ax
- mov AH,1
- int 21H
- mov v,al
- int 21H
- cmp v,'y'
- JE CORRECT_
- cmp v,'Y'
- JE CORRECT_
- JNE INCORRECT_
- CORRECT_:lea dx,x
- mov ah,9
- int 21h
- jmp finish
- INCORRECT_: lea dx,y
- mov ah,9
- int 21h
- jmp finish
- finish:
Advertisement
Add Comment
Please, Sign In to add comment