
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 2 images

Knowledge Booster
Similar questions
- CPUs use values to access memory locations, and certain registers may be used to store instruction and data addresses. With the help of the above statement, please list all of the registers used in the aforementioned processes.arrow_forwardWhich of the following steps must be completed for a computer program to be constructed and executed? None of the other choices. All of the other choices (except "None of the other choices") A computer program is loaded from storage device into RAM and the CPU "jumps to" (begins executing) the first instruction A computer program is written in a high-level language and saved as a plain-text file. A computer program is combined with (a.k.a. linked) with other previously written and compiled code the program depends on, called libraries A computer program is compiled into machine instructions in binary codearrow_forwardWhen a computer needs a piece of information, does it immediately perform the memory fetch operation? If not, what does it do?arrow_forward
- The distinction between internal and external memory should be mentioned.arrow_forwardDescribe the role of flags in ALU instructions, including the zero flag, carry flag, and overflow flag.arrow_forwardAssign the location in the memory, find the object code for the instructions then create the object programarrow_forward
- When creating instructions that access variables, why is it not a good idea to use numeric addresses?arrow_forwardThis procedure counts the amount of CPU instructions required by each statement in the source code.arrow_forwardDiscuss the role of flags or condition codes in ALU instructions and how they affect program flow.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

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 Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

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
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY