Question: Hello, I need help reading the program and filling out the data memory map. A step by step explanation on at least the first 3-5
Hello, I need help reading the program and filling out the data memory map. A step by step explanation on at least the first 3-5 would be greatly appreciated. I am new and know very little.
Objective Learn what the status register (SREG) is and how to use it. Learn about labels and how to implement loops and conditionals. Data Memory Map Address Offset Data Lab Task 1: 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 EQUtop=0x03 .DEF counter=R16 :Main CSEG .ORG 0x0000 LDI counter, 0 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 0 1 3 35 36 38 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
