Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task:
- mov ah,1 ;input mode on
- int 21h
- cmp al,'q'
- je exit
- cmp al,'Q'
- je exit
- cmp al,'a'
- jge smallcheck ;small check
- smallback:
- cmp al,'A'
- jge capcheck ; captial check
- capback:
- jmp other ;kisu na mille other func
- jmp task ; just in case
- smallcheck: ;small detection function
- cmp al,'z'
- jle small
- jmp smallback
- small: ;small function
- mov ah,1 ;input on
- int 21h
- cmp al,'k'
- jl task ;k er kom hole main task e back
- cmp al,'n' ;n er kom hole main task e back
- jl task
- cmp al,'o'
- je ouprint
- cmp al,'u'
- je ouprint
- jmp small
- ouprint:
- mov ah,2 ;dis
- mov dl,al
- int 21h
- jmp small
- capcheck: ;captial detection function
- cmp al,'Z'
- jle capital
- jmp task
- capital: ;captial function
- mov ah,2 ;display mode
- inc al
- mov dl,al
- int21h
- inc al
- mov dl,al
- int21h
- inc al
- mov dl,al
- int21h
- inc al
- mov dl,al
- int21h
- inc al
- mov dl,al
- int21h
- jmp task
- other: ;other function definiton
- mov ah,2 ;display mode
- mov cx,8 ; init loop
- mov dl,'*'
- ko:
- int 21h
- loop ko
- jmp task
- exit:
- ret
Advertisement
Add Comment
Please, Sign In to add comment