Assignment Help, Cloud Based ERP System, Microsoft NAV Certification
WELCOME !!

Please Register, ask for assignment solutions & post the solutions if you know any.

LETS START POSTING YOUR IDEAS AND THOUGHTS AND BUILD THE COMMUNITY OF EXPERTS.

Assignment Help, Cloud Based ERP System, Microsoft NAV Certification
WELCOME !!

Please Register, ask for assignment solutions & post the solutions if you know any.

LETS START POSTING YOUR IDEAS AND THOUGHTS AND BUILD THE COMMUNITY OF EXPERTS.

Assignment Help, Cloud Based ERP System, Microsoft NAV Certification

Stock Market, Online Tutoring, Cloud Based ERP System, Microsoft Dynamics Reporting, Microsoft Nav Certification

Similar topics

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1vowel count Empty vowel count 9th March 2009, 11:40 pm

tihor

tihor
Administrator
TITLE VOWEL COUNT
.MODEL SMALL
.STACK 64H
.DATA
MAXCHAR DB 20H
ACTCHAR DB ?
CHARS DB 20H DUP (?)
ARRAY DB "AEIOUaeiou"
TEMP DB 03H
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
LEA DX,MAXCHAR
MOV AH,0AH
INT 21H
MOV CH,00
MOV CL,ACTCHAR
MOV DL,00
LEA SI,CHARS

P0: MOV DH,[SI]
MOV AL,0AH
LEA DI,ARRAY
P2: CMP [DI],DH
JNE P1
INC DL
INC SI
JMP P0
P1: INC DI
DEC AL
JNZ P2
INC SI
LOOP P0

MOV SI,00
MOV AL,DL
MOV DL,0AH
P3: MOV AH,00
DIV DL
ADD AH,30H
MOV TEMP[SI],AH
INC SI
CMP AL,00
JNE P3


MOV AH,02
MOV DL,0AH
INT 21H
MOV DL,0DH
INT 21H
P4: DEC SI
MOV DL,TEMP[SI]
INT 21H
CMP SI,00
JNE P4

MOV AX,4C00H
INT 21H
MAIN ENDP

END MAIN

View previous topic View next topic Back to top  Message [Page 1 of 1]

Similar topics

-

» count vowel

Permissions in this forum:
You cannot reply to topics in this forum