This character frequency calculator is implemented in x86 assembly language. The program takes a user-inputted string and calculates the frequency of each character. Users can choose to display the frequency in binary, decimal, or hexadecimal format.
cproj.asm
: Assembly code file containing the character frequency calculator.README.md
(this file): Readme file providing information about the program.
- Assemble and link the
cproj.asm
file using an appropriate x86 assembler and linker. - Run the resulting executable to input a string and choose the display format.
frequency
: Increments the frequency count of a character.clearfreq
: Resets all character frequencies to zero.decout
: Displays a decimal number.binout
: Displays a binary number.hexout
: Displays a hexadecimal number.
- The user is prompted to enter a string.
- The program then prompts the user to choose the display format (binary, decimal, or hexadecimal).
- The program displays the frequency of each character in the chosen format.
- Results are displayed with a colon (:) separator between the character and its frequency.
- The program terminates when the user chooses to exit.
- The program uses x86 assembly language and is designed to run on DOS-like environments.
- Ensure proper setup and configuration of your assembler and linker to build and run the program.
- BSDSF21A010 EMAN ZAHID
- BSDSF21A022 ZOHA EMAAN
- BSDSF21A024 EMAN MUNIR
- BSDSF21A026 ZOBIA BILAL
- BSDSF21A040 BARIRA SAJJAD