Question
Q2) In each of the following exercises, you will be asked to write ARM instructions that extract a field from register r0 (from the location
Q2) In each of the following exercises, you will be asked to write ARM instructions that extract a field from register r0 (from the location named source-field) and place the field into register r1 at the location named destination-field
(a)
R0 | 31 source field 15 | 14 0.0 6 | 5 0..0 0 |
R1 | 31 00000.0000 17 | 16 destination-field 0 |
(b) R0 as in part (a) and R1 as below:
R1 | 31 destination-field 15 | 14 00000.0000 0 |
(c)
R0 | 31 source field 27 | 26 00..000 0 |
R1 | 31 destination field 27 | 26 00..00 0 |
(d) R0 as in part (c) and R1 as below:
R1 | 31 00 10 | 9 destination-field 5 | 4 00 0 |
(e)
R0 | 31 source-field 28 | 27 0 |
R1 | 31 destination-field 28 | 27 00000.0000 0 |
(f) R0 as in part (e) and R1 as below:
R1 | 31 00 18 | 17 destination-field 14 | 13 0000 0 |
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