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, Problem 17CRP
Suppose the memory cells at addresses 0x00 through 0x0D in the Vole contain the following bit patterns:
Address | Contents |
0x00 | 0x20 |
0x01 | 0x04 |
0x02 | 0x21 |
0x03 | 0x01 |
0x04 | 0x40 |
0x05 | 0x12 |
0x06 | 0x51 |
0x07 | 0x12 |
0x08 | 0xB1 |
0x09 | 0x0C |
0x0A | 0xB0 |
0x0B | 0x06 |
0x0C | 0xC0 |
0x0D | 0x00 |
Assume that the machine starts with its
- a. What bit pattern will be in register 0x0 when the machine halts?
- b. What bit pattern will be in register 0x1 when the machine halts?
- c. What bit pattern is in the program counter when the machine halts?
Expert Solution & Answer
Trending nowThis is a popular solution!
Students 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.
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 O
Given the instruction: j Target where its 32-bit format is 0x08100002 and its address in text segment is 0x00400016 Compute the target address (Target) in hexadecimal format
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 a function uses a mixture of parameters with and without default arguments, the parameters with default ar...
Starting Out with C++ from Control Structures to Objects (9th Edition)
Payroll Class Design a Payroll class that has fields for an employees name, ID number, hourly pay rate, and num...
Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
True or False: A Menu object cannot contain other Menu objects.
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
It is not necessary to have a base case in all recursive algorithms.
Starting Out with Python (4th Edition)
The job of the _____ is to fetch instructions, carry out the operations commanded by the instructions, and prod...
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
- ___________ occurs when the result of an arithmetic operation exceeds the number of bits available to store it.arrow_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
- 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: 0x0C010000arrow_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_forwardA 74LS139 2-to-4 code is used to partition the memory space of an MC68008 into 4 quadrant, ROM, RAM, PER (for Synchronous devices) and the 4th is reserved for future provision. Write the address range of the RAM. And compute the addresses per location in ROM if is 64 KBarrow_forward
- Address Instruction Ох180 CALL tstFun Ox642 testFun: MOVLW Ox90 Using the above code segment, enter Machine code stored in location Ox181 and Ox180: Ox Machine code stored in location Ox183 and Ox182: 0xarrow_forwardA10 A9 A8 LS 138 The lowest hex address decoded by the circuit above is C B A 2 3 567 A12 A11 H E1 E2 ROM OCSarrow_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 $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_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 $+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_forwardThe first two bytes of a 2M x 16 main memory have the following hex values:Byte 0 is FEByte 1 is 01If 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_forwardFor instruction: j Label The instruction is at address 01000000 00000000 00000000 001110. Given an 26-bit immediate field: 00000000 00000000 00000010 00. Enter the first and last 6 bits of the 32-bit address the CPU will construct. Ex: 000101 00 00000000 00000000 00 Ex: 000110arrow_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