Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .MODEL SMALL
- .STACK 100H
- .DATA
- WELCOME DW "WELCOME TO OUR PROJECT$"
- MEMBERS DW "GROUP MEMBERS$"
- NAFI DW "MD.RASHID ARIF (171-15-1199)$"
- PINO DW "MD.HANIF MAHMUD (171-15-1218)$"
- ATIK DW "MD.ATIKUR RAHMAN (171-15-1227)$"
- MIZAN DW "MD.MIZANUR RAHMAN (171-15-1208)$"
- LIPU DW "SIBLUR RAHMAN (171-15-1210)$"
- MSG1 DW "Please Input your Name: $"
- MSG2 DW "Your Output is: $"
- .CODE
- MAIN PROC
- MOV AX,@DATA
- MOV DS,AX
- MOV AH,9
- LEA DX,WELCOME
- INT 21H
- CALL NEW
- CALL NEW
- MOV AH,9
- LEA DX,MEMBERS
- INT 21H
- CALL NEW
- CALL NEW
- MOV AH,9
- LEA DX,NAFI
- INT 21H
- CALL NEW
- CALL NEW
- MOV AH,9
- LEA DX,PINO
- INT 21H
- CALL NEW
- CALL NEW
- MOV AH,9
- LEA DX,ATIK
- INT 21H
- CALL NEW
- CALL NEW
- MOV AH,9
- LEA DX,MIZAN
- INT 21H
- CALL NEW
- CALL NEW
- MOV AH,9
- LEA DX,LIPU
- INT 21H
- CALL NEW
- CALL NEW
- CALL NEW
- MOV AH,9
- LEA DX,MSG1
- INT 21H
- CALL NEW
- XOR CX,CX
- MOV AH,1
- INT 21H
- MOV AL,CL
- WHILE_:
- CMP CL,0DH
- JE POP_
- PUSH AX
- INC CX
- ; INT 21H
- CMP CL,41H
- JE VOWEL
- CMP CL,45H
- JE VOWEL
- CMP CL,49H
- JE VOWEL
- CMP CL,4FH
- JE VOWEL
- CMP CL,55H
- JE VOWEL
- JMP CONSONENT
- POP_:
- CALL NEW
- POP DX
- MOV AH,2
- INT 21H
- CALL NEW
- MOV AH,2
- MOV DL,BL
- CALL NEW
- MOV AH,2
- MOV DL,BH
- LOOP POP_
- VOWEL:
- ADD BL,1
- INT 21H
- JMP WHILE_
- CONSONENT:
- ADD BH,1
- INT 21H
- JMP WHILE_
- MAIN ENDP
- NEW PROC
- MOV AH,2
- MOV DL,0AH
- INT 21H
- MOV DL,0DH
- INT 21H
- RET
- NEW ENDP
- END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement