Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (sanaelshazly):

I want an ARM7 Assembly code that reverses a string stored in the memory. Define the input string using DC directive with label “input”. The result should be stored in the same memory location. And I want the solution steps in a pseudo-code form. if you could help please =)) !

OpenStudy (anonymous):

you mean the MSB become LSB and vice versa

OpenStudy (anonymous):

declare variables input and rotate take the input string into the input variable now copy it to the rotate variable now rotate the rotate variable to the left 7 time if it is 8 bit variable or rotate it to the left 9 time if it is 10 bit variable now copy this rotated value to input variable, all the string is reversed

OpenStudy (sanaelshazly):

sorry i didn't get your explanation :/

OpenStudy (anonymous):

what you didnt get??

OpenStudy (sanaelshazly):

"now rotate the rotate variable to the left 7 time if it is 8 bit variable or rotate it to the left 9 time if it is 10 bit variable" this point

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!