Answered step by step
Verified Expert Solution
Question
1 Approved Answer
0001 1. The figure below shows the data memory of three different systems. For each of these systems, determine the size of Part 1
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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