views:

213

answers:

1

I have to make a program in Assembly Language for 8086 or 8088 processor. Where a given .txt file will have all its letters (from A to Z, not case sensitive) counted and later shown on screen. The ammount of letters in the file cannot pass the size of a word (16bits or 65535).

in the end i show on screen something like this:

A - 00010 B - 00359 C - 00353

CAn any1 help me? Im quite a noob in Assembly...

+8  A: 

Here is a list of some things you will need to know how to do:

  • read the name of a file from the command line
  • open a file using operating system services
  • read the contents of a file into memory
  • inspect the value of each character in the file
  • make a table of letters and corresponding count for each letter
  • detect when you've reached the end of the file
  • print text to the screen
  • convert an integer to its string representation
  • terminate and return to the OS with a success exit code
Greg Hewgill