Question: microprocessors and interconnection 8086 processor 1. Assume a memory location ( 1 byte) of address 0378H containing the status of eight running machines. A working
1. Assume a memory location ( 1 byte) of address 0378H containing the status of eight running machines. A working machine is with status 1 and a machine failure is with status 0 . A machine can start (passing from 0 to 1) or fails (passing from 1 to 0 ). Assume once again that only one machine can change status at a time. Write an 8086 Assembly language program to continuously read the status of the machines. In case of status change, the program determine the uumber of that machine (from 0 to 7 ) and display it on the nereen. Steps : a) Real the content of the memory of addres 0378H using direct addressing mode. b) Compare the current status with the previous one. If there is a change : 1) Determine the number N of the machine status change, 2) Convert the number to ASCII (Just Add 30H), 3) Display on the screen The message "The machine Number N change of status." Use the Funetion 09H, Int 21H to display the messige on the standard output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
