Question: After executing the code ( a ) What is the hexadecimal value in R 5 ? Enter a 1 6 - bit hex number starting

After executing the code
(a) What is the hexadecimal value in R5? Enter a 16-bit hex number starting with 0x.
(b) What is the hexadecimal value in R7? Enter a 16-bit hex number starting with 0x.
(c) If after executing line 34 I want to have the value 0x0007 in R9, what should be the
number in the blank in line 33? Enter a decimal number.
(d) This is part independent from part (d) I am no longer interested in having the value
0x0007 in R9. Instead, I decide to fill the blank in line 33 with the number 11. What do
you say?This question is based on the following code snippet
.data
array: .word 1,2,3,4,5,6,7,8
not_array: .word -1
LENGTH: .set 16
;-__________________________________________
.text
RESET mov.w #__STACK_END,SP
StopWDT mov.w #WDTPW|WDTHOLD, &WDTCTL
; Main loop here
;---------------_
mov.w #10, R4
mov.w array(R4), R5
mov.w #LENGTH, R6
mov.w array(R6), R7
mov.w #__, R8
mov.w array(R8), R9
After executing the code
(a) What is the hexadecimal value in R5? Enter a 16-bit hex number starting with 0x.
(b) What is the hexadecimal value in R7? Enter a 16-bit hex number starting with 0x.
(c) If after executing line 34 I want to have the value 0x0007 in R9, what should be the
number in the blank in line 33? Enter a decimal number.
(d) This is part independent from part (d)-I am no longer interested in having the value
0x0007 in R9. Instead, I decide to fill the blank in line 33 with the number 11. What do
you say?
Hint: This will be a multiple-choice entry, and you will get to choose the best option. You
might want to review how word addressing works.
After executing the code ( a ) What is the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!