Objective Data Memory Map Learn the basic structure of an assembly program, how to read the 8-bit instruction set reference and Address Offset Data Ob00001000 Ob10010011 |Ob00000101 become familiar with a few commands. 1. Lab 4 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 7 record the final value. Unless otherwise stated all 8. memory locations contain a value of 0. 10 11 12 :Program for task 1 :Definitions .EQU myData=0x21 .DEF config=R4 13 14 15 Ob10100101 Ob10111001 16 17 :Main 18 .CSEG 19 .ORG Ox0000 20 LDI R16, Ob00001000 21 MOV RO, R16 LDI R16, Ob10010011 22 23 MOV R1, R16 24 LDI R16, Ob01010101 ANDI R16, Ob00001111 MOV R2, R16 25 26 ORI R16, Ob10100101 27 LDI R17, 20 28 ADD R17, R16 29 MOV R3, R16 30 31 MOV config. R17 OUT O, R3 CBI 0,1 32 33 IN R5, 0 34 STS myData, RO SBI 1, 6 SBI 1,7 LDS R6, myData 35 3 36 4 37 38

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Objective
Learn the basic structure of an assembly program,
Data Memory Map
how to read the 8-bit instruction setreference and
Address Offset
Data
become familiar with a few commands.
Ob00001000
1
Ob10010011
Ob00000101
2
Lab
3
4
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
7
record the final value. Unless otherwise stated all
8.
memory locations contain a value of 0.
10
11
12
:Program for task 1
:Definitions
13
14
.EQU myData=0x21
.DEF config=R4
15
Ob10100101
Ob10111001
16
17
:Main
18
.CSEG
19
.ORG Ox0000
20
LDI R16, Ob00001000
MOV RO, R16
21
22
LDI R16, Ob10010011
MOV R1, R16
23
24
LDI R16, Ob01010101
ANDI R16,Ob00001111
25
26
MOV R2, R16
ORI R16, Ob10100101
LDI R17,20
ADD R17, R16
27
28
29
MOV R3, R16
30
MOV config, R17
OUT O, R3
31
32
CBI 0,1
IN R5,0
STS myData, RO
SBI 1, 6
SBI 1,7
LDS R6, myData
33
1.
34
2
35
3
36
4
37
5
38
6.
Transcribed Image Text:Objective Learn the basic structure of an assembly program, Data Memory Map how to read the 8-bit instruction setreference and Address Offset Data become familiar with a few commands. Ob00001000 1 Ob10010011 Ob00000101 2 Lab 3 4 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 7 record the final value. Unless otherwise stated all 8. memory locations contain a value of 0. 10 11 12 :Program for task 1 :Definitions 13 14 .EQU myData=0x21 .DEF config=R4 15 Ob10100101 Ob10111001 16 17 :Main 18 .CSEG 19 .ORG Ox0000 20 LDI R16, Ob00001000 MOV RO, R16 21 22 LDI R16, Ob10010011 MOV R1, R16 23 24 LDI R16, Ob01010101 ANDI R16,Ob00001111 25 26 MOV R2, R16 ORI R16, Ob10100101 LDI R17,20 ADD R17, R16 27 28 29 MOV R3, R16 30 MOV config, R17 OUT O, R3 31 32 CBI 0,1 IN R5,0 STS myData, RO SBI 1, 6 SBI 1,7 LDS R6, myData 33 1. 34 2 35 3 36 4 37 5 38 6.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY