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 g_Text. Complete the code in countItemInArray. Currently, it returns zero every time as you can see when you run the program without any breakpoints. Remember, g_Text is a character (i.e.1 byte per element) array. Get the address of g_Text 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 0x20(a space character). You also need to check for zero which signals the end of the g_Text array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!