Question: Objective Learn the basic structure of an assembly program, how to read the 8-bit instruction set reference and become familiar with a few commands. Lab

Objective Learn the basic structure of an assembly program, how to read the 8-bit instruction set reference and become familiar with a few commands. Lab Task 1: Walk through the assembly program below and fill out the data 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 myData=0x21 .DEF config=R4 Main .CSEG .ORG 0x0000 LDI R16, Ob00001000 MOV RO, R16 LDI R16, 0b10010011 MOV R1, R16 LDI R16, Ob01010101 ANDI R16, Ob00001111 MOV R2, R16 ORI R16, 0b10100101 LDI R17,20 ADD R17 R16 MOV R3, R16 MOV config R17 OUT 0, R3 CBI 0,1 IN R5,0 STS myData, RO SBI 1,6 SBI 1,7 LDS RO, myData Data Memory Map Address Offset Data 0 Ob00001000 1 Ob10010011 2 Ob00000101 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Ob10100101 17 Ob10111001 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 0 33 1 34 2 35 3 36 4 37 5 38 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
