Write programs that will accomplish the desired tasks listed below, using as few lines of code as possible. a) Add the bytes in RAM locations 34H and 35H ; put the result in register R5 (LSB) and R6 (MSB) b) Subtract the content of R2 from the number F3H ; put the result in external RAM location 028BH. c) Subtract the content of R1 from R0 ; put the result in R7. d) Multiply the data in RAM location 22H by the data in RAM location 15H ; put the result in RAM location 19H (low byte) and 1AH (high byte).

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.1: Addresses And Pointers
Problem 12E
icon
Related questions
Question

Write programs that will accomplish the desired tasks listed below, using as few lines of code as possible.

a) Add the bytes in RAM locations 34H and 35H ; put the result in register R5 (LSB) and R6 (MSB)
b) Subtract the content of R2 from the number F3H ; put the result in external RAM location 028BH.
c) Subtract the content of R1 from R0 ; put the result in R7.
d) Multiply the data in RAM location 22H by the data in RAM location 15H ; put the result in RAM
location 19H (low byte) and 1AH (high byte).
e) Divide the data in RAM location 3EH by the number 12H ; put the quotient in R4 and the remainder
in R5.
f) Divide the data in RAM location 15H by the data in RAM location 16H ; put the quotient in
external RAM location 7CH and the remainder in in external RAM location 7DH. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr