Question: Need help going step-by-step. I got lost halfway through. Thank you Data Memory Map Address Offset Data Walk through the assembly program below and fill

 Need help going step-by-step. I got lost halfway through. Thank you

Need help going step-by-step. I got lost halfway through. Thank you

Data Memory Map Address Offset Data Walk through the assembly program below and fill out the memory map (right). If a value changes during the program, you only need to record the final value. Unless otherwise stated all memory locations contain a value of 0. ;Program for task 1 ;Definitions .EQU top=0x03 .DEF counter=R16 ;Main .CSEG .ORG 0x0000 LDI counter, o LDI R17,1 RJMP Second First: INC R17 INC counter CPI counter, top BRNE First MOV R1, R17 RJMP Third Second: INC R17 INC counter CPI counter, top BRNE Second MOV RO, R17 ADD counter, R17 MOV R2, counter CLR R17 RJMP First Third: ADD R17, counter Data Memory Map Address Offset Data Walk through the assembly program below and fill out the memory map (right). If a value changes during the program, you only need to record the final value. Unless otherwise stated all memory locations contain a value of 0. ;Program for task 1 ;Definitions .EQU top=0x03 .DEF counter=R16 ;Main .CSEG .ORG 0x0000 LDI counter, o LDI R17,1 RJMP Second First: INC R17 INC counter CPI counter, top BRNE First MOV R1, R17 RJMP Third Second: INC R17 INC counter CPI counter, top BRNE Second MOV RO, R17 ADD counter, R17 MOV R2, counter CLR R17 RJMP First Third: ADD R17, counter

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!