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 32CRP
Suppose the registers 0x4 and 0x5 in the Vole contain the bit patterns 0x3A and 0xC8, respectively. What bit pattern is left in register 0x0 after executing each of the following instructions:
- a. 0x5045
- b. 0x6045
- c. 0x7045
- d. 0x8045
- e. 0x9045
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
The instruction used to fill DX with the its sign bit is: *
CWD
SAR DX, 1
SAR DX, SF
SHR DX, CL
SHR DX, SF
SAR DX, 10
SAR DX, [SF]
SAR DX, 16
The instruction that moves each bit to the right, copies the lowest bit into the Carry flag, and copies the Carry flag into the highest bit position is the one that does this.
You are given a before condition of the registers eax, ebx, edx and an instruction. Choose the correct
after condition of eax, edx
Before condition:
EAX: 00 00 00 11
EBX: 00 00 00 OC
EDX FF FF FF 03
Instruction:
CWD
idiv bx
After condition:
EAX: 00 00 00 51
EDX: FF FF FF 01
O EAX: 00 00 05 01
EDX: FF FF FF 03
EAX: 00 00 00 01
EDX: 00 00 00 05
O EAX: 00 00 00 01
EDX: FF FF 00 05
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
The ______ mode flag causes an offset to he calculated from the current position in the file.
Starting Out with C++: Early Objects (9th Edition)
What will the following program display? #include iostream using namespace std; class Base { protected: int bas...
Starting Out with C++ from Control Structures to Objects (9th Edition)
Determine the reaction at the roller support B if it settles 5mm. E = 200 GPa and I = 65.0 (106) m4. F1218
Mechanics of Materials (10th Edition)
Suppose aList is an object of the class ArrayListString. How do you add the string Hello to the end of aList ?
Java: An Introduction to Problem Solving and Programming (8th Edition)
When displaying a Java applet, the browser invokes the _____ to interpret the bytecode into the appropriate mac...
Web Development and Design Foundations with HTML5 (8th Edition)
Software Sales Software companies often offer their customers the option to lease the software yearly or purcha...
Starting Out With Visual Basic (8th 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
- Computer architecturearrow_forwardQ1: Select any value for AX register b15 b14 b13 b12 bl1 bl0 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 X |X X X х х X x x X xx X X x X Design a mask to perform the following: 1. Complement bits (b1, b5, b9, and b13) 2. Set bits (b0, b2, and b3) 3. Clear bits (b10, b11, and b12)arrow_forwardFor instruction: j Label The instruction is at address 11100000 00000000 00000000 001001. Given an 26-bit immediate field: 00000000 00000000 00000000 10.arrow_forward
- Write an instruction to sum of the values 9AH, 29H and F4H.Put the sum in registers RO (low byte) and R7 (high byte). (C5) Find the time delay for the delay subroutine shown to the right, if the system has an 8051 with frequency of 11.0592 MHz (C4) DELAY: AGAIN: MOV R2, #150 MOV R3, #250 NOP NOP NOP DJNZ R3, HERE DJNZ R2, AGAIN RETarrow_forwardQ1: Select any value for AX register b15 b14 b13 b12 bl1 b10 b9 b8 b7 b6 b5 b4 ь3 b2 bl bО X X X X X X X X XX X X X X x X Design a mask to perform the following: 1. Complement bits (b1, b5, b9, and b13) 2. Set bits (b0, b2, and b3) 3. Clear bits (b10, b11, and b12) Q2: Write assembly language to: 1. Output message "Enter your name?" 2. Input your name from KB, character by character, stop by type /.arrow_forwardWrite the machine code of the instruction: subwf Ox53, 1 How to write answer: Write 4-digits hexadecimal value starting without '0x'. Example: if answer is 0X245F, then write 245F Example: if answer is 0X005F, then write 005F Answer:arrow_forward
- Question 36 It is an instruction that illustrates powers of two. A) RCR AL, 03H, with AL = 01H %3D B) RCL AL, 03H, with AL = 01H RCL AL, 03H, with AL = 10H Question 37 It is an instruction that needs to identify a positive or negative value of the register. A MOVZX AX,AL B) IDIV AX MUL AX Question 38 It is an instruction that illustrates the opposite of powers of two. A) RCL AL, 03H, with AL = 10H B) RCL AL, 03H, with AL = 01H RCR AL, 03H, with AL = 80H Question 39 It is an instruction to clear the register. A) XOR AX,AX B) CLC c) CLEARarrow_forwardQ1: Select any value for AX register b15 b14 bl3 b12 bl1 b10 b9 b8 b7 b6 b5 b4 b3 b2 bl b0 |X X |X xxX X XXX X X X Design a mask to perform the following: 1. Complement bits (bl, b5, b9, and bl3) 2. Set bits (b0, b2, and b3) 3. Clear bits (b10, b11, and b12)arrow_forwardTask 3: Design of 4-to-1 line Data Selector / Multiplexers: A multiplexer (MUX) is a combinational circuit that selects binary information from one of many input lines and directs the information to a single output line. The selection of a particular input line is controlled by a set of input variables called selection inputs. Normally, there are 2n input lines and n selection inputs whose bit combinations determine which input is selected. 4-to-1 Do MUX y D, a) Complete the truth table of the 4-to-1 line multiplexer. SELECTION INPUT OUTPUT SO $1 Y 1 1 b) Draw the 4-to-1 multiplexer logic circuit.arrow_forward
- Decode the following instructions and show the values for the TOP, BOTTOM, and ANSWER registers. Show the working steps carried out in the ALU for each operation. 90 9 10 20 1 16 11 10 2 11 12 13 3 5 13 314 14 14 좋 ⠀ 14 13 20 끝 쓱 끝 2꼽 7 8 9 126.50 200arrow_forwardList the steps necessary to read a word from memory in the 4 × 3 memory circuit shown below. Please explain all stepsarrow_forward3. For each instruction in the table, write 8 hexadecimal digits that represent the 32 bits in the destination register after the instruction is executed. Assume s0 is 0x98AB3C6A, s1 is 0x20503666. Instructions to, 50, s1 t1, so, s1 t2, so, s1 t3, 50, 51 addi t4, 50, 0x210 wwwwwww andi t5, 50, -16 add and or xor slli t6, 50, 12 srai s2, 50, 8 Dest. reg. in 8 hexadecimal digitsarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Computer Fundamentals - Basics for Beginners; Author: Geek's Lesson;https://www.youtube.com/watch?v=eEo_aacpwCw;License: Standard YouTube License, CC-BY