1 / 2

Store 0 into CX Input one character in AL Store AL into Stack memory Increment in cx

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

zea
Download Presentation

Store 0 into CX Input one character in AL Store AL into Stack memory Increment in cx

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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

More Related