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 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
Given a memory load instruction, "mov R0; [R1+1000]," please give the input that should be selectedat each multiplexer. You can write "none" for the multiplexers that are not used for this instruction.(a) MUX1:(b) MUX2:(c) MUX3:(d) MUX4:
Select 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.
2- Write a program in assembly language for the 8085 microprocessor to receive 10 bytes of data via the
SID and store it at the memory address (3000h) using a baud rate of 1200.
And two high pulses must be sent before each byte (start bits) and one low pulse after each byte (end
bits).
You can use this flowchart, but you should notice that this flowchart deals with one byte, and you are
required to deal with 10 bytes
No
CDD CHHICE 10
Yes
SIDATA
Read SID
Start
Bit?
Wait for
Half-Bit Time
Set up Bit
Counter
Wait Bit Time
Read SID
Save Bit
Decrement Bit
Counter
All Bits
Received?
Add Bit to
Previous Bits
Go Back to
Get Next Bit
Return
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
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_forwardA. 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:arrow_forwardThe 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.arrow_forward
- Execute the following instruction using all previous instruction format typesarrow_forward6. 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_forwardA set of ten packed BCD numbers is stored in the memory location starting at 3050H. i. Write a program with a subroutine to add these numbers in BCD. If a carry is generated, save it in register B, and adjust it for BCD. The final sum will be less than 9999sCD. ii. Write a second subroutine to unpack the BCD sum stored in registers A and B, and store them in the memory locations starting at 3070H. The most significant digit (BCD4) should be stored at 3070H and the least significant digit (BCD) at 3073H.arrow_forward
- -Two word wide unsigned integers are stored at the physical memory addresses 00A00 and 00A02, respectively. Write an instruction sequence that computes and stores their sum, difference, product, and quotient. Store these results at consecutive memory locations starting at physical address 00A10 in memory. To obtain the difference, subtract the integer at 00A02 from the integer at 00A00. For the division divide the integer at 00A00 by the integer at 00A02. Use the register indirect relative addressing mode to store the various results.arrow_forward4. 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_forward25: . 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 RET 26: Write a program to display 2 on 7 segment. A 7 segment is connected to PortD.arrow_forward
- 26. 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_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
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