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 14CRP
Suppose the memory cells at addresses 0x00 through 0x05 in the Vole contain the following bit patterns:
Address | Contents |
0x00 | 0x12 |
0x01 | 0x02 |
0x02 | 0x32 |
0x03 | 0x42 |
0x04 | 0xC0 |
0x05 | 0x00 |
When answering the following questions, assume that the machine starts with its
- a. Translate the instructions that are executed into English.
- b. What bit pattern is in the memory cell at address 0x42 when the machine halts?
- c. What bit pattern is in the program counter when the machine halts?
Expert Solution & Answer
Learn your wayIncludes step-by-step video
schedule06:55
Students have asked these similar questions
Suppose r0 = ox300010A0, r2 = 0x00000011, and the memory layout is as follows
Address: Data:
0x300010A7 0x72
0x300010A6 0XA5
0x300010A5 0x9F
0x300010A4 0x00
0x300010A3 0x50
0x300010A2 0x2B
0x300010A1 0XA5
0x300010A0 0x01
-What is the Value of r0 and r1 after executing LDR r1, [r0, #2]
-What are the values of r0 and r1 after executing the following code? Illustrate your process in a memory map.
LDR r1, [r0], #3
ADD r1, r1, r2
STR r1, [r0, r#4]
Suppose r0 = ox300010A0, r2 = 0x00000011, and the memory layout is as follows
Address: Data:
0x300010A7 0x72
0x300010A6 0XA5
0x300010A5 0x9F
0x300010A4 0x00
0x300010A3 0x50
0x300010A2 0x2B
0x300010A1 0XA5
0x300010A0 0x01
-What are the values of r0 and r1 after executing the following code? Illustrate your process in a memory map.
LDR r1, [r0], #3
ADD r1, r1, r2
STR r1, [r0, r#4]
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?
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
Describe a situation where memberwise assignment is not desirable.
Starting Out with C++ from Control Structures to Objects (9th Edition)
State whether each of the following is true or false. If false, explain why. The break statement is required in...
Java How To Program (Early Objects)
For each of the following E-R diagrams from Chapter 2 C: Transform the diagram to a relational schema that show...
Modern Database Management
Why is it necessary to introduce some methods and documentation from plan-based approaches when scaling agile m...
Software Engineering (10th Edition)
What is the difference between main memory and secondary storage?
Starting Out With Visual Basic (7th Edition)
Examine the following program. // This program uses variables and literals, public class BigLittle { public sta...
Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
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
- Most Intel CPUs use the __________, in which each memory address is represented by two integers.arrow_forward1. Use the following representation of a portion of a computer’s main memory to answer the question. Address Contents50 5151 5652 5353 5754 5855 5056 5757 5258 53 What would be stored at address 50 after executing the instruction “Copy the contents of the memory cell at address 54 to address 50”? 2. Use the following representation of a portion of a computer’s main memory to answer the question. Address Contents50 5151 5652 5353 5754 5855 5056 5757 5258 53 What would be stored at address 50 after executing the instruction “Copy the contents of the memory cell pointed to by the cell at address 54 to address 50”?arrow_forwardTranscribed Image Text (Micro processer 8086) Q1) Choose the correct answer: 1. One of the following instructions is correct: a. MUL 67 b. LEA BL.[SI] (2. AS) c. LALF d. Neither a,b nor c 2. Suppose we have SS starts at B4102 H, CS ends at E4250H. The suitable point for DS to start so there are no overlapping of the segments is: c. C4200 H d. C4300 H a. C4000 H b. C4100 H 3. If you have AX-0208H, BL=D8H, the results of performing IDIV BL in AX is: a. 00F3 H b. F300 H c. 5802 H d. 0258 H 4. The Execution Unit includes: a. Instruction pointer b. Status register c. Address generation d. Neither a,b nor c 5. The compare instruction and test instruction are similar in : a. Both instructions are subtraction methods b. Both instructions effect on ZF, SF & PF. c. Both instructions store the result in the destination operand d. Neithe a,b nor c 6. The data bus in 8088 Mp is: a. 16-bit unidirectional lines c. 8-bit unidirectional lines b. 16-bit bidirectional lines d. 8-bit bidirectional…arrow_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 of memory.1. a) How many bits are needed for the opcode?2. b) How many bits are left for the address part of the instruction?3. ◆c) What is the maximum allowable size for memory?4. d) What is the largest unsigned binary number that can be accommodated in one word of memory?arrow_forwardConsider a MIPS processor and a program that is loaded in the main memory between the addresses 130h and 161Ch (h means hexadecimal). Calculate the number of blocks of the main memory that this program uses if the size of a block is 2^7 words (give the result in decimal).arrow_forward1. T/F - if (B)=006000 (PC)=003600 (X)=000090, for the machine instruction 0x032026, the target address is 003000.2. T/F – PC register stores the return address for subroutine jump.3. T/F – S register contains a variety of information such as condition code.4. T/F – INPUT WORD 1034 – This means Operating system should reserve 1034 bytes in memory5. T/F - In a two pass assembler, adding literals to literal table and address resolution of local symbol are done using first pass and second pass respectively.arrow_forward
- Suppose 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_forwardGiven the binary format of an instruction as follows0000 0011 0000 1000 1000 1000 0110 0011a. What assembly instruction does this correspond to?b. If the PC = 0X0040 00F4, what is the target address?c. How many instructions forwards or backwards is that?d. How many bytes is that in decimal?arrow_forwardAssume that registers $s0 and $s1 hold the values 0x90000000 and 0xA0000000, respectively. These are integer values. Please take into account that these are 32-bit registers. a) What is the value of $t0 after the following MIPS instruction has been completed? add $t0, $s0, $s1 $s0: 0 x 9 0 0 0 0 0 0 0 $s1: 0 x A 0 0 0 0 0 0 0arrow_forward
- A computer employs RAM chips of 512 x 4 and ROM chips of 256 x 8. The computer system needs 1KB of RAM, and 512 x 8 ROM and an interface unit with 256 registers each. A memory-mapped I/O configuration is used. The two higher -order bits of the address bus are assigned 00 for RAM, O1 for ROM, and 10 for interface. a) How many lines must be decoded for chip select? Specify the size of the decoder b) Draw a memory-address map for the system and Give the address range in hexadecimal for RAM, ROM c) Develop a chip layout for the above said specifications.arrow_forwardQ 1 What is the assembly language instruction for the following binary pattern? (In MIPS) 0000 0010 0001 0000 0100 1000 0010 0100 Full explain this question and text typing work only thanksarrow_forwardQuestion 30 Assume that EBX and ECX have the following values EBX: FF FF FF 75 ECX: 00 00 01 A2 After the execution of the instruction INC EBX, ECX The Value in EBX is _________ Group of answer choices FFFFFF76 FFFFFF75 000001A2 none of them Question 31 The Hexadecimal Representation for each of the following Binary number 11101111 Group of answer choices 239 EF FE none of them Question 32 Assume that EBX and ECX have the following values EBX: FF FF FF 75 ECX: 00 00 01 A2 After the execution of the instruction MOV EBX, ECX The Value in EBX is _________ Group of answer choices 00000117 FFFFFF75 000001A2 none of themarrow_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