Question

In: Computer Science

How to separate 2000H of external RAM? Sent the high 4 bits to the low 4...

How to separate 2000H of external RAM? Sent the high 4 bits to the low 4 bits of 2001H, and the low 4 bits are sent to the low 4 bits of 2002H. Clear the high 4 bits of 2001H and 2002H.

the answer in C program please

Solutions

Expert Solution

Write an assembly language program to add two 16 bit numbers by using:

  • (a) 8 bit operation
  • (b) 16 bit operation

(a) Addition of 16 bit numbers using 8 bit operation – It is a lengthy method and requires more memory as compared to 16 bit operation.

Algorithm –

  1. Load the lower part of first number in B register
  2. Load the lower part of second number in A (accumulator)
  3. Add both the numbers and store
  4. Load the higher part of first number in B register
  5. Load the higher part of second number in A (accumulator)
  6. Add both the numbers with carry from the lower bytes (if any) and store at the next location

Explanation –

  1. LDA 2050 stores the value at 2050 in A (accumulator)
  2. MOV B, A stores the value of A into B register
  3. LDA 2052 stores the value at 2052 in A
  4. ADD B add the contents of B and A and store in A
  5. STA 3050 stores the result in memory location 3050
  6. LDA 2051 stores the value at 2051 in A
  7. MOV B, A stores the value of A into B register
  8. LDA 2053 stores the value at 2053 in A
  9. ADC B add the contents of B, A and carry from the lower bit addition and store in A
  10. STA 3051 stores the result in memory location 3051
  11. HLT stops execution

Related Solutions

When a message is sent electronically it is usually sent as a stream of bits, each...
When a message is sent electronically it is usually sent as a stream of bits, each of which can be either a 0 or a 1. If the digital channel is noisy then each bit has some probability of being flipped (ie changed from a 0 to a 1 or vice versa) resulting in a corrupted message. Assume that a message is being sent through a noisy channel where the probability that any individual bit will be flipped is 0.1....
Assume a merchandising company uses the high-low method to separate any mixed costs into their variable...
Assume a merchandising company uses the high-low method to separate any mixed costs into their variable and fixed elements. It provided the following income statements: May June July Sales in units 4,800 5,000 5,500 Sales $ 168,000 $ 175,000 $ 192,500 Cost of goods sold 86,400 90,000 99,000 Gross margin 81,600 85,000 93,500 Selling and administrative expenses: Advertising 17,000 17,000 17,000 Shipping 16,800 17,500 19,250 Salaries and commissions 29,600 30,000 31,000 Total selling and administrative expenses 63,400 64,500 67,250 Net...
What is your understanding of the relationship between economic growth (GDP), high/low unemployment, high/low Inflation, high/low...
What is your understanding of the relationship between economic growth (GDP), high/low unemployment, high/low Inflation, high/low wages, and the way they impact one another?
4. Assume that the Graduation Rate is classified into 3 categories (Low, Medium, High) in the...
4. Assume that the Graduation Rate is classified into 3 categories (Low, Medium, High) in the following way: Low is considered to be a rate that is less than 0.66, Medium is between 0.66 and less than 0.80, and High is at least 0.80. Assume that the Student-to-Faculty ratio is also classified into 3 categories: Category 1: Up to 10 student-to-faculty ratio, Category 2: between 11 and 18 student-to-faculty ratio Category 3: greater than 18 student-to-faculty ratio The following contingency...
Breathing rates for humans can be as low as 4 breaths per minute or as high...
Breathing rates for humans can be as low as 4 breaths per minute or as high as 70 or 75 for a person doing strenuous exercise. Suppose that the resting breathing rates for college-age students have a distribution that is mound-shaped, with a mean of 12 and a standard deviation of 2.3 breaths per minute. What fraction of all students have breathing rates in the following intervals. a. 9.7 to 14.3 breaths per minute b. 7.4 to 16.6 breaths per...
Trace how quantum cryptography will work if n = 4, and random bits are: b1 =...
Trace how quantum cryptography will work if n = 4, and random bits are: b1 = 1, b2 = 0, b3 = 1, b4 = 0; r1 = 1, r2 = 1, r3 = 0, r4 = 1; s1 = 1, s2 = 1, s3 = 0, s4 = 0. As a message, Alice wants to send as many first bits as possible from the string 1010, i.e.: if possible, the whole string, if not possible to send the whole...
Construct an even parity Hamming code with a total of 7 bits (4 data bits and...
Construct an even parity Hamming code with a total of 7 bits (4 data bits and 3 check bits).
Distinguish between a low and high income and a low and high economic growth rate. What...
Distinguish between a low and high income and a low and high economic growth rate. What are the key features of an economy that are present when incomes are high or fast growing and absent when incomes are low and stagnating or growing slowly? Provide an example of an economy with a low income and slow growth rate, a low income and rapid growth rate, and a high income with sustained growth over many decades.
now identify 4 risks in this project with different level(low, medium, high) of the impact and...
now identify 4 risks in this project with different level(low, medium, high) of the impact and probability. justify your answer
determine the number of high outputs for a 4 x 16 decoder with active low outputs
determine the number of high outputs for a 4 x 16 decoder with active low outputs
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT