Question

In: Computer Science

Problem: On an ARM processor using big endian format, given the following memory map and [R1]...

Problem: On an ARM processor using big endian format, given the following memory map and [R1] = 0xA10E0C2D, [R2] = 0x00000060, [R3] = 0x00000002, [R4] = 0x0000000C, predict [R1] and [R2] and draw the updated memory map after an ARM data transfer instruction is executed in EACH case. (hint: (1) in this map, each memory location is a word long and occupies 4 bytes; also you only need to draw the section of the memory including the changed word and its address; (2) these instructions are NOT executed one after the other one; instead, each instruction starts with the initial conditions given in the statement.)

0x6C [0x78092A7B]

0x68 [0x56AB8CEF]

0x64 [0x3490AB02]

0x60 [0x902E8C9A]

(1) LDRH R1, [R2, R4]

(2) STRB R1, [R2]

Solutions

Expert Solution

Given that [R1] = 0xA10E0C2D, [R2] = 0x00000060, [R3] = 0x00000002, [R4] = 0x000000

Given that the processor executes in Big Endian format (MSB is stored in the lowest address location), Therefore the address location along with the value is given as follows

0x60 = 0x90

0x61 = 0x2E

0x62 = 0x8C

0x63 = 0x9A

0x64 = 0x34

0x65 = 0x90

0x66 = 0xAB

0x67 = 0x02

0x68 = 0x56

0x69 = 0xAB

0x6A = 0x8C

0x6B = 0xEF

0x6C = 0x78

0x6D = 0x09

0x6E = 0x2A

0x6F = 0x7B

1. LDRH R1, [R2, R4]

R1 <-- [0x60+00] = R1 <---[0x60] since the halfword(16bits) is transferred to R1

R1 = 0x902E

2. STRB R1,[R2]

Store Byte(STRB) Value from R1 is transferred to the address location which is R2

We know that R1 = 0xA10E0C2D since it big endian MSB is transferred first to the address location 0x60

After this instruction

0x60 = 0xA1

0x61 = 0x2E

0x62 = 0x8C

0x63 = 0x9A

0x64 = 0x34

0x65 = 0x90

0x66 = 0xAB

0x67 = 0x02

0x68 = 0x56

0x69 = 0xAB

0x6A = 0x8C

0x6B = 0xEF

0x6C = 0x78

0x6D = 0x09

0x6E = 0x2A

0x6F = 0x7B


Related Solutions

need c++ format 1.Check endianness on your system . Either Big or Little Endian 2.Convert a...
need c++ format 1.Check endianness on your system . Either Big or Little Endian 2.Convert a decimal number to 2’s complement (32bits) E.g., 5 -> 0000 0000 0000 0000 0000 0000 0000 1001    here is the start code ********************************************************* #include <iostream> using namespace std; void endianness(); void get_two_complement(); void print_menu(); int main(){ int menu; do { print_menu(); cout<< "Enter a number to select the menu: "; cin >>menu; if(menu == 1){ endianness(); } else if (menu == 2){ get_two_complement(); }...
need c++ format 1.Check endianness on your system . Either Big or Little Endian 2.Convert a...
need c++ format 1.Check endianness on your system . Either Big or Little Endian 2.Convert a decimal number to 2’s complement (32bits) E.g., 5 -> 0000 0000 0000 0000 0000 0000 0000 1001    here is the start code ********************************************************* #include <iostream> using namespace std; void endianness(); void get_two_complement(); void print_menu(); int main(){ int menu; do { print_menu(); cout<< "Enter a number to select the menu: "; cin >>menu; if(menu == 1){ endianness(); } else if (menu == 2){ get_two_complement(); }...
Using C, use mmap() to map a file to memory, and then search through it. For...
Using C, use mmap() to map a file to memory, and then search through it. For example, get and print out the first character of each line in the file: abc def ghi
Using a concept map format arrange your identified quality gap into the PDSA cycle. (For bedside...
Using a concept map format arrange your identified quality gap into the PDSA cycle. (For bedside handoff).
Using Python, Regular Expressions, .map() and other functions as appropriate to format existing address records and...
Using Python, Regular Expressions, .map() and other functions as appropriate to format existing address records and eliminate records with missing critical fields.Critical fieldsincludeFirstName, Lastname, Zipcode+4, and Phone number for customers. For this exercise, create an array to hold data with these 4 fields containing at least 25records. The Zipcode field should contain either traditional 5-digit Zipcode(e.g. 21801)or Zip+4 format(e.g 21801-1101). The phone numbers should contain 10-digit (e.g. 5555555555)or formatted 10-digit(e.g. 555-555-5555). Some records might be corrupt so the data needs...
Problem Description: Given Machine Instruction 1. LD R1, 50(R2) 2. ADD R3, R1, R4 3. LD...
Problem Description: Given Machine Instruction 1. LD R1, 50(R2) 2. ADD R3, R1, R4 3. LD R5, 100(R3) 4. MUL R6, R5, R7 5. ADD R1, R1, #100 6. SUB R2, R2, #8 Font type: Times New Roman and Size 12 Task to do: a) Draw the four-stage pipeline for the above Instruction. b) Calculate the total clock cycles for all the above-mentioned instructions need to be completed. c) Explain how to handle structural hazards the pipeline instruction. d) Explain...
1A. Map out the correct chromosome map for four genes given the following information X-Z =...
1A. Map out the correct chromosome map for four genes given the following information X-Z = 18%X-G = 10%Z-Y=27%Z-G=28%X-Y=9% 1B. Hemophilia is a type of blood clotting disorder that is an example of a sex-linked (X-linked) recessively inherited trait. Polydactyly is an example of a dominantly inherited disorder, where individuals with the dominant allele have extra fingers or toes. Josh has the normal number of fingers and toes and has hemophilia. Josh is married to Olive. Olive does not have...
Mini - Essay: Please answer the following in essay format: Discuss the concepts of perception, memory,...
Mini - Essay: Please answer the following in essay format: Discuss the concepts of perception, memory, and learning as they relate to the brand positioning of the Toyota Prius Hybrid.
Using PROC FORMAT and PROC FREQ for following data: (a) Define an appropriate format for the...
Using PROC FORMAT and PROC FREQ for following data: (a) Define an appropriate format for the gender variable. (b) Produce a 2 X 2 table with gender as the rows and lenses as the columns. (c) Calculate the relative risk and provide a one sentence written interpretation explicitly stating which groups are being compared and defining the outcome. (d) Perform a chi-squared test of association between gender and needing contact lenses. What are the results of the test (i.e. do...
1) The big problem with using prices as a ruler to measure the size of our...
1) The big problem with using prices as a ruler to measure the size of our economy and how fast it grows is: A. Monopolies can distort prices. B. Prices include sales taxes. C. There are no prices to measure government output. D. Prices cannot estimate the true value of goods and services. E. Prices change from year to year. 2) A French couple purchases gasoline: A. An intermediary good. B. An export.. C. A financial transaction. D. Investment spending....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT