Starting Out with Programming Logic and Design (4th Edition)
4th Edition
ISBN: 9780133985078
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
When the INT instruction executes, what is the first task carried out by the CPU?
The INT instruction causes the CPU to go through four stages when it is used by a program.
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 (4th Edition)
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
- The major components of a CPU are the __________, __________, and __________.arrow_forward11. During the first step of the fetch-execute cycle, an instruction is read from main memory and stored in the 12. After being fetched, the instruction is determines which operation is being executed. meaning the CPU circuitry 13. RAM stands for and is generally synonymous with the main memory of a computer. 14. ROM stands for which retains its contents even after the power is turned off. 15. RAM is meaning its contents will be lost when the power is turned off.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
- It is the job of this function to count the amount of CPU instructions required by each statement at the source level.arrow_forwardThe store word instruction is used to... A. Read from a memory address to a CPU register B. Write to a memory address from a CPU register C. Assign a value to a CPU register D. Access a label in a programarrow_forwardMicroprocessors Fundamentals ENT 237 Homework 1 Problem4: A microcomputer has the following memory map: I/O 4100 to 410F 2100 to 22FF RAM 0000 to OFFF ROM Determine the amount of ROM and RAM memory - in Kbytes - and the number of I/O ports.arrow_forward
- d. traditional The major CPU structure component is which is responsible of Select one: ut of 2 a. Control unit, controls the CPU operation OF b. Registers, long term storage C. ALU, performs Arithmetic operation only d. All Optionsarrow_forwardThe decoded instruction is stored in ______ .arrow_forwardDescribe the fetch-decode-execute cycle in a CPU and its role in executing instructions.arrow_forward
- The most time - consuming operation in a computer is: O A. Register access O B. The execution phase of a register reference instruction Memory access. O D. The decoding phase of an instruction cyclearrow_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_forwardMemory addressing mode means _____. a. the address of the data for the instruction is stored in memory. b. the data for the instruction is stored in memory. c. the data for the instruction is stored in the MAR.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