Question: Question 3 ( 1 4 points ) Answer the following questions about the development of assembly programs to interface 8 0 8 6 with peripherals.

Question 3(14 points) Answer the following questions about the development of assembly programs to interface 8086 with peripherals. You dont need to use the emulator to write or test these instructions.
a. In a given 8086-based system that uses the isolated I/O address space, port address 0F220h is used as an input port for measuring the humidity (the port size is one byte). Write Assembly language instructions to read port 0F220h continuously to monitor the humidity. If the value received from the port is greater than 30d, then the continuous monitoring of the humidity should stop, and a value of -1 should be stored in register CL.
b. Consider an 8086-based system that is used to control a robotic vehicle. The 8086 processor uses the isolated I/O address space, where port address 0F01H is used as an input port for measuring the vehicle speed and port 13H is used to measure the time in which the vehicle was moving. Assume that the vehicle is moving in a straight line. Write Assembly language instructions to continuously read ports 0F01H and 13H (each port is one-byte in width) and compute the total distance that the vehicle has moved, and store the result in register CX.

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!