Question: Problem 3: (30%) (CLO2] Table 1 shows an assembly language program along with machine code of each instruction and memory address where the instruction is
![Problem 3: (30%) (CLO2] Table 1 shows an assembly language program](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f32c7dcb52b_66966f32c7d6d75f.jpg)
Problem 3: (30%) (CLO2] Table 1 shows an assembly language program along with machine code of each instruction and memory address where the instruction is stored in Program Memory). a) Calculate the missing operands (indicated by question marks (?) in Table 1). b) If eight LEDs are connected to PORTB of the AVR microcontroller (each pin connected to one LED), which LEDs will be on when the OUT instruction is executed the first time? Page 2 of 3 Table 1: Problem 3 Memory Address (in hex) 1FFO 1FF1 1FF2 1FF4 1FFS 1FF6 Machine code (in hex) E04A E053 940C ???? E053 EF45 BB48 C??? Instruction LDI R20, 10 LDI R21,3 JMP L1 LDI R21,3 L1: ADD R20 R21 OUT PORTB, R20 RUMP L1 1FF7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
