Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[5 pts] (a) Assuming the following AVR code: .org $1108 markera: byte 4 .org $1206 markerB: .byte 2 destP: .byte 4 What would be the
[5 pts] (a) Assuming the following AVR code: .org $1108 markera: byte 4 .org $1206 markerB: .byte 2 destP: .byte 4 What would be the value of the following expression: high (markerB) (1) ASCII value of 'm' (2) ASCII value of 'B' (3) Ox12 (4) 0x06 (5) None of the above (5 pts) (b) Assuming the stack pointer has already been initialized, what hexadecimal value will be contained in register r18 after the execution of the following AVR code? ldi r17, $AF ldi r18, $15 mov ro, r17 push r18 push ro and r17, ro popr18 [15 pts] (c) Based on the initial register and data memory contents shown below (represented in hexadecimal), show how these contents are modified (in hexadecimal) after executing each of the following AVR assembly instructions. Do not be concerned about what happens to the Status Register (SREG) after the operation. Instructions are unrelated. Data Memory (i) LD (ii) OR (iii) STS (iv) MUL (v) SBIW R 3, -X R2, R4 90104, R26 R4, R3 R29:R28, $3F 0100 Registers RO01 05 R21B 0101 BE 0106 0102 SREG FF [5 pts] (a) Assuming the following AVR code: .org $1108 markera: byte 4 .org $1206 markerB: .byte 2 destP: .byte 4 What would be the value of the following expression: high (markerB) (1) ASCII value of 'm' (2) ASCII value of 'B' (3) Ox12 (4) 0x06 (5) None of the above (5 pts) (b) Assuming the stack pointer has already been initialized, what hexadecimal value will be contained in register r18 after the execution of the following AVR code? ldi r17, $AF ldi r18, $15 mov ro, r17 push r18 push ro and r17, ro popr18 [15 pts] (c) Based on the initial register and data memory contents shown below (represented in hexadecimal), show how these contents are modified (in hexadecimal) after executing each of the following AVR assembly instructions. Do not be concerned about what happens to the Status Register (SREG) after the operation. Instructions are unrelated. Data Memory (i) LD (ii) OR (iii) STS (iv) MUL (v) SBIW R 3, -X R2, R4 90104, R26 R4, R3 R29:R28, $3F 0100 Registers RO01 05 R21B 0101 BE 0106 0102 SREG FF
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