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
- ; add your code here
- .data
- .code
- mov ah,1
- int 21h
- cmp al,"Z"
- jg lower
- jle upper
- lower: mov bl,al
- mov dl,0ah
- mov ah,2
- int 21h
- mov dl,0dh
- mov ah,2
- int 21h
- mov dl,bl
- mov ah,2
- int 21h
- jmp endif
- upper:
- mov dl,0ah
- mov ah,2
- int 21h
- mov dl,0dh
- mov ah,2
- int 21h
- mov dl,"?"
- mov ah,2
- int 21h
- endif:
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement