Link to home
Start Free TrialLog in
Avatar of marissa_guevara
marissa_guevara

asked on

Help Parsing through a string of characters in assembly

I'm new to assembly & I need help with this exercise which is parsing through a string of characters and create and print certain statistics regarding the string.

This is the string I need to define:
str1 byte 'rfDy8nNqbYv~RABAB%E86nBA@ABEgh86Abeg'


I need to create the following output:

Total number of characters processed:
(The number)

Number of uppercase characters:
(The number)

Number of lowercase characters:
(The number)

Digit Total:
(The total)

Digit Average:
(the average)

Number of character digits:
(the number)

Number of invalid characters:
(The number)
Avatar of Bill Bach
Bill Bach
Flag of United States of America image

When learning a new skill and asking for help from EE,it is always best to post your code that you have thus far, and to all pointed questions about how to fix it.  EE is not supposed to be a homework machine, but rather a place to find help when you are stuck.

Please post your first cut at the code, along with an idea of what the problem may be worn it that you cannot seem to get past, and we will gladly help.

If you need a starting point, try setting up a pointer into the bye array, walking the entire array until the end of the string, and building your counters as you encounter each character. Once you've done this, outputting the results should be easy.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.