20 likes | 148 Views
Prog .-(11)* Write a program to input your name and its display in reverse order. By using push and pop command. Store 0 into CX Input one character in AL Store AL into Stack memory Increment in cx if AL = 13 then go to step 6 else repeat step from 2 to 5
E N D
Prog.-(11)* Write a program to input your name and its display in reverse order. By using push and pop command • Store 0 into CX • Input one character in AL • Store AL into Stack memory • Increment in cx • if AL = 13 then go to step 6 else repeat step from 2 to 5 • Receive one character/ data from stack • Display character on the screen • If CX != 0 then go to step 6 else end
Start CX = 0 Input AL Store AL into stack cx=cx+1 Yes If AL=13 No Receive character from stack Display character CX = CX-1 If CX=0 Yes No End