Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 2, Problem 9CRP
Translate the following instructions from English into Vole.
- a. LOAD register 0x6 with the value 0x77.
- b. LOAD register 0x7 with the contents of memory cell 0x77.
- c. JUMP to the instruction at memory location 0x24 if the contents of register 0x0 equals the value in register 0xA.
- d. ROTATE register 0x4 three bits to the right.
- e. AND the contents of registers 0xE and 0x2 leaving the result in register 0x1.
Expert Solution & Answer
Learn your wayIncludes step-by-step video
schedule11:58
Students have asked these similar questions
c
A. Calculate the time to execute the "addi", "add", "beq", and "lw" instructions. Show the calculation. Ignore the wire delay.
B. What is the maximum speed of the processor? (hint: maximum speed is calculated based on the slowest instruction. For example,
if the slowest instruction takes 50ns, the maximum processor speed is 1/50ns-20MHz).
PC
4
5ns
Read
address
10ns
Instruction
memory
Read
register 1
5ns
(read or write)
groter
Write
data
RegWrite
Read
16
10ns
32
Shift
left 2
ALUSrc
M
X
4
5ns It
ALU operation
20ns
PCSrc
Count
M3X
Address
MemWrite
Read
date
100ns
MemRead
Write Data
data
memory
A. Wire delay for:
1.
addi:
E3X
2. add:
3. beq:
4. Iw:
MemtoRey B. Maximum speed:
The instruction, Add #45,R1 does
A.
Adds 45 to the value of Rl and stores it in R1
Adds the value of 45 to the address of R1 and stores 45 in that address
C.
None of the mentioned
D.
Finds the memory location 45 and adds that content to that of R1
B.
Chapter 2 Solutions
Computer Science: An Overview (12th Edition)
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 - 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
When displaying a Java applet, the browser invokes the _____ to interpret the bytecode into the appropriate mac...
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
Circuit Board Profit An electronics company sells circuit boards at a 40 percent profit. If you know the retail...
Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
Solar System Use the Circle class to draw each of the planets of our solar system. Draw the sun first, then eac...
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
A(n) _____ is a set of well-defined steps for performing a task or solving a problem.
Starting Out With Visual Basic (8th Edition)
Using examples, illustrate the different types of adaptor needed to support sequential composition, hierarchica...
Software Engineering (10th Edition)
Array bounds checking happens. a. when the program is compiled b. when the program is saved c. when the program...
Starting Out with Java: Early Objects (6th 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
- The time it takes to perform the fetch instruction and decode instruction steps is called the execution time. True or false?arrow_forward12. The MOD R/M Byte: If the mod R/M byte has the following data in it: mod 11 reg 011 a. What addressing mode is being use in the instruction? b. What is the source register (use 16 bit register)? c. What is the destination register(use 16 bit register)? d. What does the assembly instruction look like? r/m 000arrow_forwardIn the instruction cycle, the operation during time T1 is: O A. AR E PC O B. IREM[AR], PC PC +1 O C. AR IR (0 – 11) O D. DR E M [ AR] Question 17arrow_forward
- 7arrow_forward2. Identify the type of addressing mode in the following instruction: i. MOVE.W $1500, D2 = ii. ADD.W D0, A1 iii. MOVE.L D2,D3 =arrow_forward4. Consider the following instruction: and $t0, $e5, $3 a. What are the values of the control signals generated by the control unit for the above instruction? RegDst Jump Branch MemRead MemtoReg MemWrite ALUSrc RegWritearrow_forward
- Which of these is not a stage in Instruction pipelining a. Fetch b. Generating address c. Execute d. Decodearrow_forwardIn an instruction cycle the execute phase includes Select one: a.the operation of the decoded instruction on all the operands. b.there is no correct answer here c.incrementing the program counter by 2 addresses. d.the step of decoding the instruction for execution. e.the transfer of the content of memory address pointed by the program counter.arrow_forwardWhich of the following statements is correct? I. The 80/20 rule states that 80% of instructions are executed and 20% are created. External bus is used exclusively for data memory in von Neumann architecture II. a) Only I is true; b) Only II is true; c)Both I and I are true; d) Neither I nor |l is true.arrow_forward
- 2. To enforce the microprocessor in case of sign and parity without any arithmetic or logic operation, the following assembly code should be written to the CPU: A. MOV AH, 10000110B В. MOV AH, 86H С. МOV AH, 10000110B PUSHF PUSH AX SAHF D. MOV AH, 1010010B E. MOV AL, 10000110B SAHF F. None of these SAHFarrow_forwardI need the answer as soon as possiblearrow_forwardWhat is the MIPS machine language code for the following instruction? Write opcode, rs, rt, rd, shamt, and funct in decimal if it is of R-type, write opcode, rs, rt, offset/const/address in decimal if it is of l-type, and write opcode and const/address in decimal if it is of J-type. In the answer fields below, if any field is not used, enter exactly as written here inside of the quotes "N/A". bne $13, Szero, label where label = 0x1000 and PC = Ox1012 opcode (in decimal) = rs (in decimal) = rt (in decimal) = rd (in decimal) = shamt (in decimal) = funct (in decimal) = offset/const/address/immediate (in decimal) =arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Principles of Information Systems (MindTap Course...Computer ScienceISBN:9781285867168Author:Ralph Stair, George ReynoldsPublisher:Cengage LearningSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher: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