The String Reverse function of this program is to be written in assembly language. A string is passed on to the function from the main, where the string will then be reversed in order and printed out in the main.
For this part , the use of stack becomes very handy and makes the coding much easier. The stack is used to store the string, by pushing one by one characters on to the stack, and then popping out in the reverse order as pushed, in the first pushed, last popped basis.
For the code given below, The following results are obtained in the kitty serial monitor:
Comments