Skip to content

The Character Frequency Calculator, part of the Coal Project, is an x86 assembly program that analyzes user-inputted strings, displaying character frequencies in binary, decimal, or hexadecimal formats. The `cproj.asm` file structures the project.

Notifications You must be signed in to change notification settings

emanmunir/Character-Frequency-Calculator-Coal-Project-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Character Frequency Calculator (Coal Project)

Overview

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.

File Structure

  • cproj.asm: Assembly code file containing the character frequency calculator.
  • README.md (this file): Readme file providing information about the program.

Usage

  1. Assemble and link the cproj.asm file using an appropriate x86 assembler and linker.
  2. Run the resulting executable to input a string and choose the display format.

Procedures

  • 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.

Input

  1. The user is prompted to enter a string.
  2. The program then prompts the user to choose the display format (binary, decimal, or hexadecimal).

Output

  • 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.

Termination

  • The program terminates when the user chooses to exit.

Additional Notes

  • 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.

Author

  • BSDSF21A010 EMAN ZAHID
  • BSDSF21A022 ZOHA EMAAN
  • BSDSF21A024 EMAN MUNIR
  • BSDSF21A026 ZOBIA BILAL
  • BSDSF21A040 BARIRA SAJJAD

About

The Character Frequency Calculator, part of the Coal Project, is an x86 assembly program that analyzes user-inputted strings, displaying character frequencies in binary, decimal, or hexadecimal formats. The `cproj.asm` file structures the project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published