0001 1. The figure below shows the data memory of three different systems. For each of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
0001 1. The figure below shows the data memory of three different systems. For each of these systems, determine the size of Part 1 and Part 2. 1PPH * 30TH Part 1 ECCE 316 (Microprocessor Systems) Part 2 (a) MOVS ro, #0x12 MOVS r1, #0x23 ADDS r2, ri, ro SUBS r2, r2, ri Exercise Sheet 1 (Fall 2023) 000CH 1 SFFFH FFFFH Pa Part 2 (8) одан (b) LDR ro, 0x20001000 LDR r1, 0x20002000 MOVS 12, #0x23 GAM . MOVS 13, #0x45 STR 12, [ro] STR r3, [1] FFFH Pa 2. A data memory system consists of two consecutive parts. What are the starting and ending addresses of the second part if you know that the total size of the two parts is 512 KB, and that the first part starts at address 0 and has a size of 12 KB? Assume that each memory address contains a single byte of data. Patz 3. What are the contents of the relevant CPU registers and data memory locations if any after the execution of each of the Assembly programs below. (e) (c) MOVS r1, #0x15 MOVS 12, #15 LSRS r1, #1 LSLS 2, #2 4. Write an Assembly program that will fill 100 consecutive bytes of data memory starting at address 0x20001000 with the value 0xFF. 5. Write an Assembly program that will fill (n+ng) consecutive bytes of data memory starting at address 0x20001000 with the value OxFF. n, is stored in the register R1 and ny is stored in the register R2 6. Write an Assembly program that will add the contents of 100 consecutive bytes of data memory starting at address Ox20001000 and store the result in R1. Write an Assembly program that will fill 100 consecutive bytes of data memory with the value OxFF. The starting address of the 100 bytes is determined by whether the 32-bit value stored in address 0x20000000 is zero or not. If it is zero, then the starting address is 0x20001000. If not, then the starting address is 0x20002000. 0001 1. The figure below shows the data memory of three different systems. For each of these systems, determine the size of Part 1 and Part 2. 1PPH * 30TH Part 1 ECCE 316 (Microprocessor Systems) Part 2 (a) MOVS ro, #0x12 MOVS r1, #0x23 ADDS r2, ri, ro SUBS r2, r2, ri Exercise Sheet 1 (Fall 2023) 000CH 1 SFFFH FFFFH Pa Part 2 (8) одан (b) LDR ro, 0x20001000 LDR r1, 0x20002000 MOVS 12, #0x23 GAM . MOVS 13, #0x45 STR 12, [ro] STR r3, [1] FFFH Pa 2. A data memory system consists of two consecutive parts. What are the starting and ending addresses of the second part if you know that the total size of the two parts is 512 KB, and that the first part starts at address 0 and has a size of 12 KB? Assume that each memory address contains a single byte of data. Patz 3. What are the contents of the relevant CPU registers and data memory locations if any after the execution of each of the Assembly programs below. (e) (c) MOVS r1, #0x15 MOVS 12, #15 LSRS r1, #1 LSLS 2, #2 4. Write an Assembly program that will fill 100 consecutive bytes of data memory starting at address 0x20001000 with the value 0xFF. 5. Write an Assembly program that will fill (n+ng) consecutive bytes of data memory starting at address 0x20001000 with the value OxFF. n, is stored in the register R1 and ny is stored in the register R2 6. Write an Assembly program that will add the contents of 100 consecutive bytes of data memory starting at address Ox20001000 and store the result in R1. Write an Assembly program that will fill 100 consecutive bytes of data memory with the value OxFF. The starting address of the 100 bytes is determined by whether the 32-bit value stored in address 0x20000000 is zero or not. If it is zero, then the starting address is 0x20001000. If not, then the starting address is 0x20002000.
Expert Answer:
Related Book For
Computer Organization and Design The Hardware Software Interface
ISBN: 978-0124077263
5th edition
Authors: David A. Patterson, John L. Hennessy
Posted Date:
Students also viewed these programming questions
-
ZB Company has the terms 2/10, net 30 with its customers, and uses the gross method to record transactions. ZB Company made a $4,000 sale on account to a customer, who paid their balance off within...
-
The figure below shows the production possibilities frontiers (PPFs) for Italy and India for their domestic production of olives and tea. Without trade, assume that each is consuming olives and tea...
-
20.9. The following transfer function was provided by Waller et al. (1987) for a distillation column with the levels and pressure controlled with single- loop controllers as in Figure 20.3. The...
-
The data below provides weekly sales for the past 12 weeks (weeks 21-32). Week Sales 21 4,000 22 3,655 23 3,958 24 3,983 25 4,538 26 4,120 27 4,692 28 4,421 29 4,859 30 5,030 31 5,540 32 5,670 Use a...
-
Compute the moments of inertia Ix and Iy for the beams cross-sectional area about the x and y axes. Given: a = 30 mm b = 170 mm c = 30 mm d = 140 mm e = 30 mm f = 30 mm g = 70 mm
-
What is the importance of internal analysis in an organization and how can it help identify key areas to improve its competitiveness?
-
Suppose \(F(S, t)\) is the forward price of a commodity with no storage cost and governed by \(\mathrm{d} S(t)=\mu \mathrm{d} t+\sigma \mathrm{d} z\) and terminating at time \(T\). What is the...
-
Comparative income statements and balance sheets for Best Buy are shown below ($ millions). Required: a. Use the following ratios to prepare a projected income statement, balance sheet, and statement...
-
Let D= {(x, y): x + y < 1} C R and consider the Neumann BVP Au=0, (x,y) E D h, x + y = 1, where - Vu n denotes the normal derivative of u on OD, n is the unit normal vector to OD, and where h is a...
-
Carter Enterprises is involved in the soybean business in South Carolina, Alabama, and Georgia. The president of the company, Earl Carter, goes to a commodity sale once a month where he buys and...
-
If you were asked to design a training program to help managers become better communicators, what would you include in the program?
-
Aarons Agency sells an insurance policy offered by Capital Insurance Company for a commission of \($100\). In addition, Aaron will receive an additional commission of \($10\) each year for as long as...
-
Angela Corporation issues 2,000 convertible bonds at January 1, 2015. The bonds have a 3-year life and are issued at par with a face value of 1,000 per bond, giving total proceeds of 2,000,000....
-
Alvarado Company sells a machine for \($7\),400 under a 12-month warranty agreement that requires the company to replace all defective parts and to provide the repair labor at no cost to the...
-
Shaw Company sells goods that cost \($300\),000 to Ricard Company for \($410\),000 on January 2, 2015. The sales price includes an installation fee, which is valued at \($40\),000. The fair value of...
-
Rick Kleckner Corporation recorded a finance lease at 300,000 on January 1, 2015. The interest rate is 12%. Kleckner Corporation made the first lease payment of 53,920 on January 1, 2015. The lease...
-
Drawing control charts requires ...? O a. Teamwork training of workers O b. Calculation of statistics from data O c. Meetings with suppliers O d. Top management involvement
-
The overall reaction and equilibrium constant value for a hydrogenoxygen fuel cell at 298 K is 2H 2 (g) + O 2 (g) 2H 2 O(l) K = 1.28 10 83 a. Calculate E cell and G 8 at 298 K for the fuel cell...
-
Figure B.8.8 on page B-55 illustrates the implementation of the register file for the MIPS datapath. Pretend that a new register file is to be built, but that there are only two registers and only...
-
Assume that we would like to expand the MIPS register file to 128 registers and expand the instruction set to contain four times as many instructions. 1. How this would this affect the size of each...
-
Prove that the two equations for E in the example starting on page B-7 are equivalent by using DeMorgans theorems and the axioms shown on page B-7.
-
Assume the same facts as in Problem 42. Further assume that next year, Gary sells the SUV for $20,000. a. How much depreciation expense can Gary deduct as a business deduction with respect to the SUV...
-
Describe how liabilities are reported and analyzed.
-
Assume the same facts as in Problem 29, except that Sally has AGI of \($75,000.\) What is her qualified student loan interest deduction in 2019? Problem 29, In 2019, Sally Morris, a single taxpayer,...
Study smarter with the SolutionInn App