Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- masm
- model small
- .data
- l db ?
- r db ?
- .code
- main:
- mov ah,1h
- int 21h
- mov l,al
- int 21h
- cmp al,'>'
- je s1
- s1:
- int 21h
- cmp al,'='
- je s1
- mov r,al
- mov al,l
- sub al,r
- int 21h
- jc p1
- mov dl,'t'
- mov ah,2h
- int 21h
- jmp fin
- p1:
- mov dl,'f'
- mov ah,2h
- int 21h
- fin:
- mov ax,4c00h
- int 21h
- end main
- code ends
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement