Question: write the inline assmebly code to count the number of items in the character array g _ Text. Complete the code in countItemInArray. Currently, it
write the inline assmebly code to count the number of items in the character array gText. Complete the code in countItemInArray. Currently, it returns zero every time as you can see when you run the program without any breakpoints. Remember, gText is a character ie byte per element array. Get the address of gText in a register, then access each byte and see if it's equal to "char item" which is passed in In main, you can see I call it with a xa space character You also need to check for zero which signals the end of the gText array.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
