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 =)) !
you mean the MSB become LSB and vice versa
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
sorry i didn't get your explanation :/
what you didnt get??
"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
Join our real-time social learning platform and learn together with your friends!