Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Assume a memory location ( 1 byte) of address 0378H containing the status of eight running machines. A working machine is with status 1
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 number of that machine (from 0 to 7 ) and display it on the screen. Steps : a) Read the content of the memory of address 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 Function 09H, Int 21H to display the message on the standard output
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started