PROBLEM STATEMENT- The pressure of two boilers is monitored and controlled by a microcomputer works based on microprocessor programming. A set of 6 readings of first boiler, recorded by six pressure sensors, which are stored in the memory location starting from 2050H. A corresponding set of 6 reading from the second boiler is stored at the memory location starting from 2060H. Each reading from the first set is expected to be higher than the corresponding position in the second set of readings. Write an 8085 sequence to check whether the first set of reading is higher than the second one or not. If all the readings of first set is higher than the second set, store 00 in the 'D' register. If any one of the readings is lower than the corresponding reading of second set, stop the process and store FF in the register 'D'.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Write the Mnemonics of the code and show the output in SIM8085

PROBLEM STATEMENT- The pressure of two boilers is monitored and
controlled by a microcomputer works based on microprocessor
programming. A set of 6 readings of first boiler, recorded by six
pressure sensors, which are stored in the memory location starting
from 2050H. A corresponding set of 6 reading from the second boiler
is stored at the memory location starting from 2060H. Each reading
from the first set is expected to be higher than the corresponding
position in the second set of readings. Write an 8085 sequence to
check whether the first set of reading is higher than the second one or
not. If all the readings of first set is higher than the second set, store
00 in the 'D' register. If any one of the readings is lower than the
corresponding reading of second set, stop the process and store FF in
the register 'D'.
Data (H): First set: 78, 89, 6A, 80, 90, 85
Second Set:71, 78, 65, 89, 56, 75
Transcribed Image Text:PROBLEM STATEMENT- The pressure of two boilers is monitored and controlled by a microcomputer works based on microprocessor programming. A set of 6 readings of first boiler, recorded by six pressure sensors, which are stored in the memory location starting from 2050H. A corresponding set of 6 reading from the second boiler is stored at the memory location starting from 2060H. Each reading from the first set is expected to be higher than the corresponding position in the second set of readings. Write an 8085 sequence to check whether the first set of reading is higher than the second one or not. If all the readings of first set is higher than the second set, store 00 in the 'D' register. If any one of the readings is lower than the corresponding reading of second set, stop the process and store FF in the register 'D'. Data (H): First set: 78, 89, 6A, 80, 90, 85 Second Set:71, 78, 65, 89, 56, 75
Expert Solution
Step 1

Algorithm:

  1. Load register pair B-C with the given address 2050H.
  2. Load register pair H-L with the given address 2060H.
  3. Load the register E with immediate 06H.
  4. Move the contents of B-C pair register into the accumulator and compare the content of the accumulator with the content pointed by the M (i.e H-L register pair).
  5. If the zero flag is not equal to zero then go to step 6 if not zero then load the register D with immediate FFH and the program will end.
  6. Load the D register with immediate 00H. Increment the value of B-C and H-L register pair by 1.
  7. Decrement the value of register E by 1 and if the zero flag is not equal to 1 again go to the step 4.
  8. Move the content of register D in accumulator and this will terminate the program
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education