Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .STACK 100H
- .MODEL SMALL
- .DATA
- A DW " ENTER 3 CHARACTER: $"
- B DW " OUTPUT IS: $"
- C DW " INPUT IS WRONG !!!!$"
- .CODE
- MAIN PROC
- MOV AX,@DATA
- MOV DS,AX
- LEA DX,A
- MOV AH,9
- INT 21H
- MOV AH,1
- INT 21H
- MOV BL,AL
- MOV AH,1
- INT 21H
- MOV CL,AL
- MOV AH,1
- INT 21H
- MOV BH,AL
- MOV AH,2
- MOV DL,0DH
- INT 21H
- MOV DL,0AH
- INT 21H
- ADD BL,1
- ADD CL,1
- ADD BH,1
- LEA DX,B
- MOV AH,9
- INT 21H
- MOV AH,2
- MOV DL,BL
- INT 21H
- MOV AH,2
- MOV DL,CL
- INT 21H
- MOV AH,2
- MOV DL,BH
- INT 21H
- MAIN ENDP
- END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement