Experiment 8

Shift Rotate and Jump Instructions

 

Review the CMP instruction from the online book.

 

 

Write a program which displays the following menu:

1.                Perform logical AND operation

2.                Perform Logical OR operation

3.                Exit

 

When the user presses 1, the program should get two binary numbers from the user and display the AND of these numbers. It should say press x to go to the main menu.

When the user presses 2, the program should get two binary numbers from the user and display the OR of these numbers. It should say press x to go to the main menu.

When the user presses x, it should go to the main menu.

Pressing 3 on the main menu, should exit to DOS.