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 points Answer the following questions about the development of assembly programs to interface with peripherals. You dont need to use the emulator to write or test these instructions.
a In a given based system that uses the isolated IO address space, port address Fh is used as an input port for measuring the humidity the port size is one byte Write Assembly language instructions to read port Fh continuously to monitor the humidity. If the value received from the port is greater than d then the continuous monitoring of the humidity should stop, and a value of should be stored in register CL
b Consider an based system that is used to control a robotic vehicle. The processor uses the isolated IO address space, where port address FH is used as an input port for measuring the vehicle speed and port H 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 FH and H each port is onebyte 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
