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
Q3/ write a program to cout number of one's & zero's in a number stored at 0200:0010, use rotate instruction, store the result in the memory location 0200:0011 and 0200:0012 respectively.
Q1: If DX contains 81FEH and CX contains 1986H, explain the effect of the following
instructions on the flag registers. Suppose that the flags are initially 0 in each statement of
this question.
i.SUB DX, CX
ii.XCHG DX, CX
v
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
What is denormalization?
Database Concepts (8th Edition)
The following code appears in the program in Listing 10.7: Why doesnt this code really include an infinite loop...
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)
What is the difference between the names defined in an ML let construct from the variables declared in a C bloc...
Concepts Of Programming Languages
Figure 4-3212 shows a class list for Millennium College. Convert this user view to a set of 3NF relations using...
Modern Database Management
Total Purchase A customer in a store is purchasing five items. Design a program that asks for the price of each...
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
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_forward1.The Instruction that sets all odd bits (D0, D2, D4, ... ) of register r1 to one and keeps its even bits unchanged is: Group of answer choices A.ORR r1, r1, #0x55555555 B.ORR r1, r1, #0xAAAAAAAA C.AND r1, r1, #0x55555555 D.ORR r1, r1, #0x01010101 2. Suppose Mask = 0x00000F0F and P = 0xDCBADCBA. What is the result of the following bitwise operation? Q = ~Mask Group of answer choices a. Q = 0xFFFFF0F0 b. Q = 0x00000F0F c. Q = 0x00000C0A d. Q = 0xDCBAD0B0arrow_forwardSelect an OR instruction that will:a) OR BL with AH and save the result in AH.b) OR 88H with CX.c) OR DX with SI and save the result in SI.d) OR 1122H with BP.e) OR the data addressed by BX with CX and save the result in memory.f) OR the data stored 40 bytes after the location addressed by BP with AL and save the result in AL.arrow_forward
- 6. What is the result of executing the following instruction MOV AL,05H AND AL, 03H OR AL,01H NOT AL Oa. AL= 0000 0001 b. AL= 0000 0010 c. AL= 11111110arrow_forward26. Find the time delay in the following program if the crystal frequency is 1 MHz. Do not ignore the time delay due to the first and last instruction. DELAY: LDI R16, 30 AGAIN: LDI R17, 35 HERE: NOP NOP DEC R17 BRNE HERE DEC R16 BRNE AGAIN RETarrow_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_forward
- 4. Select an AND instruction that will : a) AND BX with DX and save the result in BX b) AND 0AEH with DH c) AND DI with BP and save the result in DI d) AND the data addressed by BP with CX and save the result in memory e) AND the data stored in four words before the location addressed by SI with DX and save the result in DXarrow_forwardEncode the following instruction from MSP430 assembly to MSP430 machine code. Write the bytes in the boxes below. Don’t need to put ox as it is assumed to be in hex bytes.arrow_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_forwardwhat are the bits in s1 in 8 hexdecimal digits after the execution.arrow_forward7. For both of the instructions shown below, the initial conditions are shown. The result (which the instruction stores in r1) is also shown. For each instruction, answer these questions: • What is the state of the flags (NZCV) after the instruction executes • If the operands were signed, are the results valid? Why or why not? • If the operands were unsigned, are the results valid? Why or why not? a) initial conditions: r0 = 0xAAAA_AAAA rl=0x5555_5555 ADDS rl,rl,ro Result: r1=0xFFFF_FFFF b) initial conditions: r0=0x7FFF_FFFD r1 = 0x0000_000F ADDS rl,ro,r1 Result: r1=0x8000_000Carrow_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