2076 5

Microprocessor20765 marksSimple sequence programs

Write an ALP for 8086 to read a string and print it in the reverse order.

Write an ALP for 8086 to read a string and print it in the reverse order. [5]

The program reads characters one by one from the keyboard and pushes each character onto the stack. After the Enter key (carriage return) is detected, the characters are popped from the stack (LIFO order) and printed, which produces the reverse order. --- --- Step Description ------------------- ...

Up nextDifferentiate between PUSH and POP instruction with example illustrating the use of these