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

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

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 Databases Questions!