Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

comparing letters in array to al

Status
Not open for further replies.

txp200

Programmer
May 14, 2004
1
US
Hi, i am using _GetCh to accept a letter from the user and then i am comparing the letter to an array to check for occurrences. the letter is stored in ax. the problem is everything works except its never going to count and i know there are occurrences in the array. any help is appreciated.
here is part of the code:
cmp al, [di + bx]
je count
 
What your code does is compare the byte at [di+bx], then continues on if it's not equal. In other words, it only compares one byte, one time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top