Computer Science: An Overview (12th Edition)
Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 2.3, Problem 3QE

Suppose the Vole memory cells at addresses 0xA4 to 0xB1 contain the bit patterns given in the following table:

Address Contents
0xA4 0x20
0xA5 0x00
0xA6 0x21
0xA7 0x03
0xA8 0x22
0xA9 0x01
0xAA 0xB1
0xAB 0xB0
0xAC 0x50
0xAD 0x02
0xAE 0xB0
0xAF 0xAA
0xB0 0xC0
0xB1 0x00

When answering the following questions, assume that the Vole is started with its program counter containing 0xA4.

  1. a. What is in register 0x0 the first time the instruction at address 0xAA is executed?
  2. b. What is in register 0x0 the second time the instruction at address 0xAA is executed?
  3. c. How many times is the instruction at address 0xAA executed before the Vole halts?
Blurred answer
Students have asked these similar questions
Variable x has 4-byte representation 0x01234567 Address given by &x is 0x100 If the machine uses little endian byte ordering which of the following table presents variable in machine memory Select one: a. Ox100 :67 Ox001: 45 Ox102: 23 Ox103: 01 b. 0x100 : 76 Ox001: 54 Ox102: 32 Ox103: 10 O c. Ox100:01 Ox001: 23 Ox102: 45 Ox103: 67 d. 0x100 : 10 Ox001: 32 Ox102: 54 Ox103: 76 Clear my choice
Variable x has 4-byte representation 0x01234567 Address given by &x is 0x100 If the machine uses Big endian byte ordering which of the following table presents variable in machine memory Select one: a. 0x100 : 100x001: 320x102: 540x103: 76 b. 0x100 : 670x001: 450x102: 230x103: 01 c. 0x100 : 760x001: 540x102: 320x103: 10 d. 0x100 : 010x001: 230x102: 450x103: 67
Computer Science Assume the following register contents: $t0 = 1111 1111 1111 1111 1111 1111 0011 1010 = 0xFFFFFF3A $t1 = 0010 0011 0100 0101 0110 0111 1000 1001 = 0x23456789 a. What are the decimal values of $t0 and $t1, respectively, if they are 32-bit two's complement signed numbers? b. For the register values shown above, what are $t2 binary and hexadecimal representations, respectively, for the following sequence of instructions? sll $t2, $t0, 4 or $t2, $t2, $t1 c. For the register values shown above, what are $t2 binary and hexadecimal representations, respectively, for the following sequence of instructions? sll $t2, $t0, 2 nor $t2, $t2, $t1 d. For the register values shown above, what are $t2 binary and hexadecimal representations, respectively, for the following sequence of instructions? srl $t2, $t0, 4 and $t2, $t2, $t1

Chapter 2 Solutions

Computer Science: An Overview (12th Edition)

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 - 11. Classify each of the following 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
Knowledge Booster
Background pattern image
Computer Science
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Instruction Format (With reference to address); Author: ChiragBhalodia;https://www.youtube.com/watch?v=lNdy8HREvgo;License: Standard YouTube License, CC-BY