Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
5th Edition
ISBN: 9780134801155
Author: Tony Gaddis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 1, Problem 20MC
Program Description Answer
The decode step makes the CPU to determine which operation to be performed next.
Hence the correct option is “B”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
The INT instruction causes the CPU to go through four stages when it is used by a program.
None
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.
Chapter 1 Solutions
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Ch. 1.2 - What is a program?Ch. 1.2 - What is hardware?Ch. 1.2 - List the five major components of a computer...Ch. 1.2 - What part of the computer actually runs programs?Ch. 1.2 - Prob. 1.5CPCh. 1.2 - Prob. 1.6CPCh. 1.2 - Prob. 1.7CPCh. 1.2 - Prob. 1.8CPCh. 1.3 - What amount of memory is enough to store a letter...Ch. 1.3 - Prob. 1.10CP
Ch. 1.3 - Prob. 1.11CPCh. 1.3 - Prob. 1.12CPCh. 1.3 - Prob. 1.13CPCh. 1.3 - Prob. 1.14CPCh. 1.4 - A CPU understands instructions that are written...Ch. 1.4 - Prob. 1.16CPCh. 1.4 - When a CPU executes the instructions in a program,...Ch. 1.4 - What is assembly language?Ch. 1.4 - What type of programming language allows you to...Ch. 1.4 - Prob. 1.20CPCh. 1.4 - What do you call a program that translates a...Ch. 1.4 - What do you call a program that both translates...Ch. 1.4 - Prob. 1.23CPCh. 1.5 - Prob. 1.24CPCh. 1.5 - Prob. 1.25CPCh. 1.5 - Word processing programs, spreadsheet programs,...Ch. 1 - A(n) _______ is a set of instructions that a...Ch. 1 - Prob. 2MCCh. 1 - Prob. 3MCCh. 1 - Today, CPUs are small chips known as ____. a....Ch. 1 - Prob. 5MCCh. 1 - Prob. 6MCCh. 1 - Prob. 7MCCh. 1 - Prob. 8MCCh. 1 - Prob. 9MCCh. 1 - Prob. 10MCCh. 1 - Prob. 11MCCh. 1 - In a(n) ______ numbering system, all numeric...Ch. 1 - A bit that is turned off represents the following...Ch. 1 - Prob. 14MCCh. 1 - Prob. 15MCCh. 1 - Prob. 16MCCh. 1 - Prob. 17MCCh. 1 - Prob. 18MCCh. 1 - Prob. 19MCCh. 1 - Prob. 20MCCh. 1 - Computers can only execute programs that are...Ch. 1 - Prob. 22MCCh. 1 - The words that make up a high-level programming...Ch. 1 - Prob. 24MCCh. 1 - A(n) _______ program translates a high-level...Ch. 1 - Today, CPUs are huge devices made of electrical...Ch. 1 - Prob. 2TFCh. 1 - Any piece of data that is stored in a computers...Ch. 1 - Prob. 4TFCh. 1 - Machine language is the only language that a CPU...Ch. 1 - Assembly language is considered a high-level...Ch. 1 - An interpreter is a program that both translates...Ch. 1 - A syntax error does not prevent a program from...Ch. 1 - Prob. 9TFCh. 1 - Word processing programs, spreadsheet programs,...Ch. 1 - Why is the CPU the most important component in a...Ch. 1 - Prob. 2SACh. 1 - Prob. 3SACh. 1 - What are the words that make up a high-level...Ch. 1 - What are the short words that are used in assembly...Ch. 1 - What is the difference between a compiler and an...Ch. 1 - Prob. 7SACh. 1 - Prob. 1ECh. 1 - Use what you've learned about the binary numbering...Ch. 1 - Prob. 3ECh. 1 - Use the Web to research the history of the BASIC,...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- A CPU is a(n) __________ processor capable of performing many different tasks simply by changing the program.arrow_forwardThe major components of a CPU are the __________, __________, and __________.arrow_forwardThe memory unit that communicates directly with the CPU is called the: A Main memory B A B Direct memory C Shared memory D Auxiliary memory.arrow_forward
- Determines how fast instructions can be executed.arrow_forwardWhen a programme uses the INT instruction, the CPU goes through four phases.arrow_forward38. _________ register keeps tracks of the instructions stored in program stored in memory. a. AR (Address Register) b. XR (Index Register) c. PC (Program Counter) d. AC (Accumulator)arrow_forward
- What is the first action that the CPU does when the INT instruction is executed?arrow_forwardWhat type of memory must a programme be loaded into whenever the CPU executes it?arrow_forward:02 72%* © Passing data by reference from program to a subroutine and back to the program is done using: اختر احدى الإجابات Control hardwar. Pointer to memory locations Registers Control instructionsarrow_forward
- In what kind of memory must a program always be loaded when the CPU runs it?arrow_forwardq1arrow_forwardWrite short answer on the following parts of the question. PLEASE REFER TO THE IMAGES BELOW FOR PARTS OF THE QUESTION, THERE ARE 25 PARTS TO THE QUESTION! YOU HAVE TO PROVIDE SHORT ANSWERS!arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning