Question: Analyze the given statement and write a program in assembly language. You have inputs from Port 1 using loop with 2 seconds delay every time.

 Analyze the given statement and write a program in assembly language.

Analyze the given statement and write a program in assembly language. You have inputs from Port 1 using loop with 2 seconds delay every time. If input data is even then send it to the stack. Starting memory of the stack will be 41H. If input is odd, then make it even and after that send it to the stack. After that retrieve the data in LIFO i.e. last in first out and display the data one by one on port 2. 5 Mark

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!