Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 2.3, Problem 4QE
Suppose the Vole memory cells at addresses 0xF0 to 0xF9 contain the bit patterns described in the following table:
Address | Contents |
0xF0 | 0x20 |
0xF1 | 0xC0 |
0xF2 | 0x30 |
0xF3 | 0xF8 |
0xF4 | 0x20 |
0xF5 | 0x00 |
0xF6 | 0x30 |
0xF7 | 0xF9 |
0xF8 | 0xFF |
0xF9 | 0xFF |
If we start the Vole with its
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
0001 = Load AC from memory
0010 = Store AC to memory
0101 = Add to AC from memory
0011 = Load AC (the accumulator register) from an I/O device
0111 = Store AC to an I/O device
With these instructions, a particular I/O device is identified by replacing the 12-bit address portion with a 12-bit device number. Remember that a number ending with a small ‘h’ means the number is a hexadecimal number.
What is the hexadecimal string that expresses the following instructions?
Load AC from memory location 62h.
Add the contents of memory location 451h to AC.
Store AC to memory location 8h.
Store AC to I/O device number 8h.
if BX=1000, DS=0400, and
AL=EDH, for the following
instruction: MOV [BX] +
1234H, AL. the physical
address is
O 6243H
O 4234H
O 6234H
O 6324H
O 4244H
Question 2: Write the MIPS code for the given Hexadecimal Machine Code that starts at memory address 0x40000. Line1: 0x0080082A Line2: 0x14200002 Line3: 0x2084FFFF Line4: 0x08010005 Line5: 0x20840001 Line6: 0x1480FFFA Line7: 0x03E00008 Line8: 0x0C010000
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
In the following exercises, write a program to carry out the task. The program should use variables for each of...
Introduction To Programming Using Visual Basic (11th Edition)
(Population growth) A certain city had a population of 25000 in 1960 and a population of 30,000 in 1970. Assume...
Differential Equations: Computing and Modeling (5th Edition), Edwards, Penney & Calvis
The following program skeleton, when complete, will allow the user to store names and telephone numbers in a fi...
Starting Out with C++: Early Objects (9th Edition)
What is a count-controlled loop?
Starting Out with Python (3rd Edition)
Budget Analysis Write a program that asks the user to enter the amount that he or she has budgeted for a month....
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Write a function definition for a function called before that takes two arguments of the type DayOfYear which i...
Problem Solving with C++ (9th 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
- A(n) __________ is a storage location implemented in the CPU.arrow_forwardMost Intel CPUs use the __________, in which each memory address is represented by two integers.arrow_forwardWhat is the effective address that is targeted by the store instruction whose code word in binary is:101011 01000 10001 1111 1111 1111 1000Assume [$t0]=0x400Carrow_forward
- SP=1239H, SS=9876H, the physical address is AAAFOH Non of them 1BC06H 0AAAFH 99999H if BX=1000, DS=0400, and AL=EDH, for the following instruction: MOV [BX] + 1234H, AL. the physical address is 6324H O 4244H 4234H 6234H 6243H Oarrow_forwardBus d'adresse Ox0 A7 0 A6 0 AS Oxo 0 A4 0 A3 0 A2 0 A1 Lecture Bus de contrôle Écriture AO Bus de données Mémoire d'Instructions Adr Adr Ctr Ctr Ctr Ox Mémoire de données Clavier Écran CD 0 EN Data Data EN Data EN Data EN Write the instruction STR R2, [R3] in hexadecimal (using 2 bytes). АО A1 DO D1 D d u r D3 D2 09arrow_forwardThe first two bytes of a 2M x 16 bits main memory have the following Hex values: Byte 0 is FD, Byte 1 is 04 If these bytes hold a 16-bit two's complement integer, what is its actual decimal value if: a) Memory is big endian? b) Memory is little endian?arrow_forward
- Machine Language Format HW Convert the MIPS assembly language to machine language. Convert your 32 bits machine language to hexadecimal for each instruction. Use the following: $s0=16, $s1=17, $s2=18, $s3=19, $s4=20, $s5=21, $s6=22 $+0=8, $+1=9 (Look on the MIPS Reference Sheet for verification) .text Loop: add $11, $s3, $s3 add $†1, $+1, $+1 add $†1, $†1, $56 Iw $+0,0($+1) bne $10, $s5, Exit add $s3, $s3, $s4 j Loop Exit:arrow_forwardMachine Language Format HW Convert the MIPS assembly language to machine language. Convert your 32 bits machine language to hexadecimal for each instruction. Use the following: $s0=16, $s1=17, $s2=18, $s3=19, $s4=20, $s5=21, $s6=22 $+0=8, $+1=9 (Look on the MIPS Reference Sheet for verification) .text Loop: add $+1, $s3, $s3 add $†1, $+1, $†1 Exit: add $†1, $+1, $s6 Iw $+0,0($+1) bne $10, $s5, Exit add $s3, $s3, $s4 j Looparrow_forwardEvaluate the following expression using three, two and one address machine format.X= (A-BX C)/(D+EXF)arrow_forward
- Please complete the binary encoding for the following BL instruction at address Ox2000 using the given information. Please write the answer in a group of four bits as follows: 0010 0010 0010 1100. Address Instructions 0x2000 bl sub 0x2004 add r3, r2, r1 0x2008 sub r6, r5, r3 sub: stmfd r13!, {r0-r12, 0X200C r14] 0x2010 add r7, r2, r5 Ox2014 mov r3, r2arrow_forwardQ: Compute the physical address for the specified operand in each of the following instructions. The register contents and variable are as follows: (CS)=0A00H, (DS)=0B00H, (SS)=0D00H, (SI)=OFFOH, (DI)=00BOH, (BP)=00EAH and (IP)=00O0H, LIST=00FOH, AX=4020H, BX=2500H. 1) Destination operand of the instruction MOV LIST [BP+DI] , AX 2) Source operand of the instruction MOV CL, [BX+200H] 3) Destination operand of the instruction MOV [DI+6400H] , DX 4) Source operand of the instruction MOV AL, [BP+SI-400H] 5) Destination operand of the instruction MOV [DI+SP] , AX 6) Source operand of the instruction MOV CL, [SP+200H] 7) Destination operand of the instruction MOV [BX+DI+6400H] , CX 8) Source operand of the instruction MOV AL , [BP- 0200H] 9) Destination operand of the instruction MOV [SI] , AX 10) Destination operand of the instruction MOV [BX][DI]+0400H,AL 11) Source operand of the instruction MOV AX, [BP+200H] 12) Source operand of the instruction MOV AL, [SI-0100H] 13) Destination operand…arrow_forwardThe equivalent GPR-type machine code of the statement: D = ((A/B) + ((B+A) * C))/A can be written in at least how many lines/instructions. 8 9 10 11 Can the following instruction set fit into a 16-bit CPU if each operand uses 4 bits? 12 3-address instructions 62 2-address instructions 31 1-address instructions 14 0-address instructions Yes Noarrow_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
Instruction Format (With reference to address); Author: ChiragBhalodia;https://www.youtube.com/watch?v=lNdy8HREvgo;License: Standard YouTube License, CC-BY