Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2nd program
- ORG 0100h
- .code
- main proc
- mov ah,1
- int 21h
- mov bl,al
- cmp bl,97
- jge big
- add bl,33
- mov ah,2
- mov dl,0dh
- int 21h
- mov dl,0ah
- int 21h
- mov ah,2
- mov dl,bl
- int 21h
- add bl,1
- mov ah,2
- mov dl,bl
- int 21h
- add bl,1
- mov ah,2
- mov dl,bl
- int 21h
- add bl,1
- mov ah,2
- mov dl,bl
- int 21h
- add bl,1
- mov ah,2
- mov dl,bl
- int 21h
- mov dl,0dh
- int 21h
- mov dl,0ah
- int 21h
- add bl,20
- mov ah,2
- mov dl,bl
- int 21h
- sub bl,1
- mov ah,2
- mov dl,bl
- int 21h
- sub bl,1
- mov ah,2
- mov dl,bl
- int 21h
- sub bl,1
- mov ah,2
- mov dl,bl
- int 21h
- sub bl,1
- mov ah,2
- mov dl,bl
- int 21h
- ret
- big:
- sub bl,31
- mov ah,02
- mov dl,0dh
- int 21h
- mov dl,0ah
- int 21h
- mov ah,2
- mov dl,bl
- int 21h
- add bl,1
- mov ah,2
- mov dl,bl
- int 21h
- add bl,1
- mov ah,2
- mov dl,bl
- int 21h
- add bl,1
- mov ah,2
- mov dl,bl
- int 21h
- add bl,1
- mov ah,2
- mov dl,bl
- int 21h
- mov dl,0dh
- int 21h
- mov dl,0ah
- int 21h
- add bl,20
- mov ah,2
- mov dl,bl
- int 21h
- sub bl,1
- mov ah,2
- mov dl,bl
- int 21h
- sub bl,1
- mov ah,2
- mov dl,bl
- int 21h
- sub bl,1
- mov ah,2
- mov dl,bl
- int 21h
- sub bl,1
- mov ah,2
- mov dl,bl
- int 21h
- RET
- main ENDP
- end Main
- RET
- 1st program
- ORG 0100h
- .code
- main proc
- mov ah,1
- int 21h
- mov bl,al
- cmp bl,97
- jge big
- add bl,32
- mov ah,2
- mov dl, 0dh
- int 21h
- mov dl,0ah
- int 21h
- mov ah,2
- mov dl,bl
- int 21h
- RET
- big:
- sub bl,32
- mov ah,02
- mov dl, 0dh
- int 21h
- mov dl,0ah
- int 21h
- mov ah,2
- mov dl,bl
- int 21h
- RET
- main endp
- end main
- RET
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement