Computer Science: An Overview (13th Edition) (What's New in Computer Science)
13th Edition
ISBN: 9780134875460
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 2, Problem 11CRP
Classify each of the following Vole instructions in terms of whether its execution changes the contents of the memory cell at location 0x3C, retrieves the contents of the memory cell at location 0x3C, or is independent of the contents of the memory cell at location 0x3C.
- a. 0x353C
- b. 0x253C
- c. 0x153C
- d. 0x3C3C
- e. 0x403C
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Given the following state of memory (in hexadecimal), answer the following questions for the instructions given in Pep/9 assembly language.
Memory Address: Memory Contents:
00F1 4A00F2 D1
00F3 29
00F4 C6a. What are the contents of the A register in binary after the execution of the instructions:LDBA 0x00F1, i
ADDA 0x00F2, db. What are the contents of the A register in binary after the execution of the instructions:LDWA 0x00F3, d
ADDA 0x0104, i
Given the following memory values and a one-address machine with an accumulator, what values do the following instructions load into the accumulator?
Word 20 contains 40.
Word 30 contains 50.
Word 40 contains 60.
Word 50 contains 70.
LOAD IMMEDIATE 20
LOAD DIRECT 20
LOAD INDIRECT 20
LOAD IMMEDIATE 30
LOAD DIRECT 30
LOAD INDIRECT 30
Assume that the state of the 8088’s registers and memory just prior to the executionof each instruction in problem 15 is as follows: * in photos*What result is produced in the destination operand by executing instructions (a)through (k)? *only h through k*
(h) MUL DX(i) IMUL BYTE PTR [BX+SI](j) DIV BYTE PTR [SI]+0030H(k) IDIV BYTE PTR [BX][SI]+0030H
Chapter 2 Solutions
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Ch. 2.1 - What sequence of events do you think would be...Ch. 2.1 - What information must the CPU supply to the main...Ch. 2.1 - Prob. 3QECh. 2.2 - Prob. 1QECh. 2.2 - In the text, JUMP instructions were expressed by...Ch. 2.2 - Is the instruction If 0 equals 0, then jump to...Ch. 2.2 - Write the example program in Figure 2.7 in actual...Ch. 2.2 - The following are instructions written in Vole...Ch. 2.2 - What is the difference between the instructions...Ch. 2.2 - Here are some instructions in English. Translate...
Ch. 2.3 - Prob. 1QECh. 2.3 - Suppose the Vole memory cells at addresses 0xB0 to...Ch. 2.3 - Suppose the Vole memory cells at addresses 0xA4 to...Ch. 2.3 - Suppose the Vole memory cells at addresses 0xF0 to...Ch. 2.4 - Prob. 1QECh. 2.4 - Prob. 2QECh. 2.4 - Prob. 3QECh. 2.4 - a. Suppose you XOR the first 2 bits of a string of...Ch. 2.4 - Prob. 5QECh. 2.4 - Prob. 6QECh. 2.4 - Prob. 7QECh. 2.4 - Prob. 8QECh. 2.4 - Prob. 9QECh. 2.4 - Prob. 10QECh. 2.4 - Using Vole machine language (Appendix C), write a...Ch. 2.4 - Prob. 12QECh. 2.5 - Prob. 1QECh. 2.5 - Prob. 2QECh. 2.5 - Prob. 3QECh. 2.6 - The hypotenuse example script truncates the sides...Ch. 2.6 - Prob. 2QECh. 2.6 - The Python built-in function str () will convert a...Ch. 2.6 - Use the Python built-in bin () to write a script...Ch. 2.6 - Prob. 6QECh. 2.7 - Referring back to Questions 3 of Section 2.3, if...Ch. 2.7 - Prob. 2QECh. 2.7 - Suppose there were two central processing units...Ch. 2 - a. In what way are general-purpose registers and...Ch. 2 - Answer the following questions in Vole machine...Ch. 2 - Prob. 3CRPCh. 2 - What is the value of the program counter in the...Ch. 2 - Prob. 5CRPCh. 2 - Prob. 6CRPCh. 2 - Prob. 7CRPCh. 2 - Suppose a machine language is designed with an...Ch. 2 - Translate the following instructions from English...Ch. 2 - Rewrite the program in Figure 2.7 assuming that...Ch. 2 - Classify each of the following Vole instructions...Ch. 2 - Prob. 12CRPCh. 2 - Prob. 13CRPCh. 2 - Suppose the memory cells at addresses 0x00 through...Ch. 2 - Suppose the memory cells at addresses 0x00 through...Ch. 2 - Suppose the memory cells at addresses 0x00 through...Ch. 2 - Suppose the memory cells at addresses 0x00 through...Ch. 2 - Prob. 18CRPCh. 2 - If the Vole executes an instruction every...Ch. 2 - Prob. 20CRPCh. 2 - Prob. 21CRPCh. 2 - Prob. 22CRPCh. 2 - Prob. 23CRPCh. 2 - Write a program in Vole to compute the sum of...Ch. 2 - Prob. 26CRPCh. 2 - Prob. 27CRPCh. 2 - Suppose the following program, written in Vole, is...Ch. 2 - Summarize the steps involved when the Vole...Ch. 2 - Summarize the steps involved when the Vole...Ch. 2 - Summarize the steps involved when the Vole...Ch. 2 - Suppose the registers 0x4 and 0x5 in the Vole...Ch. 2 - Prob. 33CRPCh. 2 - Prob. 34CRPCh. 2 - Prob. 35CRPCh. 2 - Prob. 36CRPCh. 2 - Prob. 37CRPCh. 2 - Prob. 38CRPCh. 2 - Prob. 39CRPCh. 2 - Prob. 40CRPCh. 2 - Prob. 41CRPCh. 2 - Prob. 42CRPCh. 2 - a. What single instruction in the Vole machine...Ch. 2 - Write a Vole program that reverses the contents of...Ch. 2 - Write a Vole program that subtracts the value...Ch. 2 - Prob. 46CRPCh. 2 - Suppose a person is typing forty words per minute...Ch. 2 - Prob. 48CRPCh. 2 - Suppose the Vole communicates with a printer using...Ch. 2 - Write a Vole program that places 0s in all the...Ch. 2 - Prob. 51CRPCh. 2 - Prob. 52CRPCh. 2 - Suppose you are given 32 processors, each capable...Ch. 2 - Prob. 54CRPCh. 2 - Prob. 55CRPCh. 2 - Describe how the average of a collection of...Ch. 2 - Write and test a Python script that reads in a...Ch. 2 - Write and test a Python script that reads in a...Ch. 2 - Prob. 59CRPCh. 2 - Suppose a computer manufacturer develops a new...Ch. 2 - Prob. 2SICh. 2 - Prob. 3SICh. 2 - Prob. 4SICh. 2 - Suppose a manufacturer produces a computer chip...Ch. 2 - Prob. 6SICh. 2 - Prob. 7SICh. 2 - Prob. 8SI
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
What is the output produced by the following?
Absolute Java (6th Edition)
Words that have predefined meaning in a programming language are called _____ .
Starting Out With Visual Basic (7th Edition)
3.12 (Date Create a class called Date that includes three pieces Of information as data
members—a month (type ...
C++ How to Program (10th Edition)
Show the output of the following programs. (Hint: Draw a table and list the variables in the columns to trace t...
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
Rewrite the following loop so it uses pointer notation (with the indirection operator) instead of subscript not...
Starting Out with C++: Early Objects
What populates the Smalltalk world?
Concepts Of Programming Languages
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
- Given the following state of memory (in hexadecimal), answer the following questions for the instructions given in Pep/9 machine language. Memory Address: Memory Contents: 00310B0032 0033 0034A3 08 3Fa. What are the contents of the A register in binary after the execution of the instruction: 1101 0001 0000 0000 0011 0001b. What are the contents of the A register in binary after the execution of the instruction: 1100 0001 0000 0000 0011 0011c. What are the contents of the A register in binary after the execution of the two instructions: 1101 0001 0000 0000 0011 0010 0110 0000 0000 0000 0011 0100d. What are the contents of the A register in binary after the execution of the two instructions: 1101 0000 0000 0000 0011 0001 0110 0001 0000 0000 0011 0011arrow_forwardExplain what happens as the following sequences of instructions are executed : Again: MOV DL,05H MOV AX,0A00H MOV DS ,AX MOV SI,0H MOV CX,0FH INC SI CMP [SI],DL LOCPNE Againarrow_forwardAssume that a personal computer must get two pieces of data from its memory for every operation (one piece of data indicates which instruction to perform; the other is the information which is operated on). If the computer is the size of a typical PC, how long does it take to get these pieces of data? From this, what is the maximum rate at which the PC can execute instructions? Assume half the speed of light as travel rate.arrow_forward
- Below is a set of instructions for a three-address machine. Write down the equivalent set of instructions for a 1-address machine and a 0-address machine. SUB R1, B, C ADD R2, D, E MULT A, R1, R2arrow_forwardGiven the following state of memory (in hexadecimal), match the left side to the right side 0001 A2 0002 11 0003 00 0004 FF Group of answer choices What are the contents of the A register after the execution of this instruction? C1 00 01 What are the contents of the A register after the execution of this instruction? C1 00 02 What are the contents of the A register after the execution of the following two instructions? C0 00 01 70 00 01 What are the contents of the A register after the execution of the following two instructions? C1 00 01 70 00 01 What are the contents of location…arrow_forwardProblem Given the following memory values and a one-address machine with an accumulator, what values do the following instructions load into the accumulator? Word 20 contains 40. Word 30 contains 50. Word 40 contains 60. Word 50 contains 70. LOAD IMMEDIATE 20 LOAD DIRECT 20 LOAD INDIRECT 20 LOAD IMMEDIATE 30 LOAD DIRECT 30 LOAD INDIRECT 30arrow_forward
- Assume that the state of the 8088’s registers and memory just prior to the executionof each instruction in problem 15 is as follows: * in photos*What result is produced in the destination operand by executing instructions (a)through (k)? *only b,c,e,g* b) ADC SI, AX(c) INC BYTE PTR [0100H] (e) SBB DL, [0200H] (g) NEG BYTE PTR [DI]+0010Harrow_forwardSuppose that the registers $t1 and $t2 contain the following values: $t1: 0100 1101 0000 0000 0101 0111 0101 0110 $t2: 0010 0100 0110 1000 0010 0110 0011 0011 What is the value of $t3 after executing these instructions? sll $t1, $t1, 4 andi $t3,$t1, $t2 srl $t3, $t3, 3arrow_forwardA word in main memory may contain an instruction or a binary number in twos complement notation. Demonstrate that this instruction repertoire is reasonably complete by specifying how the following operations can be programmed: (a) Data transfer: location X to accumulator, accumulator to location x (b) Addition: Add contents of location X to accumulator (c) Conditional branch (d) Logical OR (e) I/O operationsarrow_forward
- A digital computer has a memory unit with 24 bits per word. The instruction set consists of 150 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word ofmemory.a. How many bits are needed for the opcode?b. How many bits are left for the address part of the instruction?c. What is the maximum allowable size for memory?d. What is the largest unsigned binary number that can be accommodated in one word of memory?arrow_forwardA process occupies a computer's main memory locations starting at address 76524. What is the logical address of an instruction of the process if it occupies the location 80100? (Assume the process occupies a single block of memory) a. 3576 b. 3575 c. 3577 d. More information is requiredarrow_forwardGive a sequence of instructions for CPU-S that realises the following function: There is one input value x ≥ 1. If x is even then the function outputs 1. If x is odd then the function outputs 0. Do not use INPUT and OUTPUT instructions. Instead of this, fix the initial content of DM and fix a memory cell that will contain the output of the computation.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Computer Fundamentals - Basics for Beginners; Author: Geek's Lesson;https://www.youtube.com/watch?v=eEo_aacpwCw;License: Standard YouTube License, CC-BY