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 3QE
Suppose the Vole memory cells at addresses 0xA4 to 0xB1 contain the bit patterns given in the following table:
Address | Contents |
0xA4 | 0x20 |
0xA5 | 0x00 |
0xA6 | 0x21 |
0xA7 | 0x03 |
0xA8 | 0x22 |
0xA9 | 0x01 |
0xAA | 0xB1 |
0xAB | 0xB0 |
0xAC | 0x50 |
0xAD | 0x02 |
0xAE | 0xB0 |
0xAF | 0xAA |
0xB0 | 0xC0 |
0xB1 | 0x00 |
When answering the following questions, assume that the Vole is started with its
- a. What is in register 0x0 the first time the instruction at address 0xAA is executed?
- b. What is in register 0x0 the second time the instruction at address 0xAA is executed?
- c. How many times is the instruction at address 0xAA executed before the Vole halts?
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Variable x has 4-byte representation 0x01234567
Address given by &x is 0x100
If the machine uses little endian byte ordering which of the following table presents
variable in machine memory
Select one:
a. Ox100 :67
Ox001: 45
Ox102: 23
Ox103: 01
b. 0x100 : 76
Ox001: 54
Ox102: 32
Ox103: 10
O c. Ox100:01
Ox001: 23
Ox102: 45
Ox103: 67
d. 0x100 : 10
Ox001: 32
Ox102: 54
Ox103: 76
Clear my choice
Variable x has 4-byte representation 0x01234567
Address given by &x is 0x100
If the machine uses Big endian byte ordering which of the following table presents variable in machine memory
Select one:
a. 0x100 : 100x001: 320x102: 540x103: 76
b. 0x100 : 670x001: 450x102: 230x103: 01
c. 0x100 : 760x001: 540x102: 320x103: 10
d. 0x100 : 010x001: 230x102: 450x103: 67
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.
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
Consider the adage Never ask a question for which you do not want the answer. a. Is following that adage ethica...
Experiencing MIS
Assume that for those materials the ID of which starts with a numeric character, the last three letters of the ...
Modern Database Management
What is the purpose of opening a file?
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Write a recursive method that will compute the sum of all the values in an array.
Java: An Introduction to Problem Solving and Programming (7th Edition)
Let Ly=y+py+qy. Suppose that y1 and y2 are two functions such that Ly1=f(x)andLy2=g(x). Show that their sum y=y...
Differential Equations: Computing and Modeling (5th Edition), Edwards, Penney & Calvis
You can use_________ to create an empty dictionary. a. {} b. () c. [] d. empty ()
Starting Out with Python (4th 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 Science Assume the following register contents: $t0 = 1111 1111 1111 1111 1111 1111 0011 1010 = 0xFFFFFF3A $t1 = 0010 0011 0100 0101 0110 0111 1000 1001 = 0x23456789 a. What are the decimal values of $t0 and $t1, respectively, if they are 32-bit two's complement signed numbers? b. For the register values shown above, what are $t2 binary and hexadecimal representations, respectively, for the following sequence of instructions? sll $t2, $t0, 4 or $t2, $t2, $t1 c. For the register values shown above, what are $t2 binary and hexadecimal representations, respectively, for the following sequence of instructions? sll $t2, $t0, 2 nor $t2, $t2, $t1 d. For the register values shown above, what are $t2 binary and hexadecimal representations, respectively, for the following sequence of instructions? srl $t2, $t0, 4 and $t2, $t2, $t1arrow_forwardWhat is the hexadecimal representation of the memory variable lacation at address 003FBA0CH in the Little Endian format from the 32-bit binary quantity represented by 10100111110111100101101100001100b? Address in hexadecimal format Data in hexadecimal format 003FBA00H 003FBA04H 003FBA08H 003FBA0CH 003FBA10H a. The hexadecimal representation for the variable located at memory address 003FBA10 is A3. The hexadecimal representation for the variable located at memory address 003FBA00 is A8. The hexadecimal representation for the variable located at memory address 003FBA0C is A7. OC. d. The hexadecimal representation for the variable located at memory address 003FBA04 is A5.arrow_forwardVariable x has 4-byte representation 0x01234567 Address given by &x is 0x100 If the machine uses little endian byte ordering which of the following table presents variable in machine memory Select one: O a. Ox100 : 10 Ox001: 32 Ox102: 54 Ox103: 76 O b. Ox100: 67 Ox001: 45 Ox102: 23 Ox103: 01 O c. Ox100:01 Ox001: 23 0x102: 45 0x103: 67 O d. 0x100:76 Ox001: 54 Ox102: 32 0x103: 10arrow_forward
- Consider a 32-bit hexadecimal number stored in memory as follows: Address Value 100 2A 101 C2 102 08 103 1B If the machine is big endian and uses two’s complement representation for integers, write the 32-bit integer number stored at address 100 (you may write the number in hex).arrow_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_forwardFor the ROM diagram please fill the truth table values using hexadecimal digits only. Output 3 is the most significative bit. A3 is the most significative address line. mo ml m2 m3 m4 m5 m6 m8 m9 ml0 ml1 m12 m13 ml4 ml5 A, A, A, A, °o о, о, о, о, Decoderarrow_forward
- Memory 12200 12201 12202 12203 12204 Content %D AA EE FF 22 What result is produced in the destination operand by execution the following instruction? a- LEA SI[DI+Bx+5] b- LDS SI.[200]arrow_forward(-content of data memory given in hex . ) 00 01 02 03 04 05 06 07 08 09 OA OB OD OE OF Address Ox050 01 FC 68 48 70 Al 12 A7 92 OA 01 FD DC 4E 36 Ox250 88 14 42 F9 DB B6 D4 85 CE 7E 4E 35 C5 9E 51 F5 Ox450 1B 1F C3 DB 18 C2 95 4D 48 2F 85 3B 46 02 40 CD Table 1: PIC18 instruction sequence for Question 3(d) STATUS Instruction WREG ov DC MOVLB Ox2 Ox6C Ox MOVF Ox52, W, BANKED Ox SUBWF WREG, F, BANKED Ox SWAPF Ox5C, W, A 0x ADDLW Ox5C 0x BSF WREG, 7, Aarrow_forwardA 12-bit Hamming code word containing 8 bits of data and 4 parity bits is read from memory. What was the original 8-bit data word that was written into memory if the 12-bit word read out is as follows:1. 0000111010102. 1011100001103. 101111110100arrow_forward
- What is the relationship between the number of redundant bits required for code and the number of data bits?arrow_forwardLIST P = 16F877AUsing INCLUDE "P16F877A.INC" and PWM (Pulse Width Modulation), write the microprocessor code that enables the fan to operate at 80% if the button on the 5th bit is pressed, and 30% if the button on the third bit is pressed.arrow_forwardAssembly 68000 Question: Write an assembly 68k code that performs multiplication on two single precision floating point numbers in D1 & D2 and delivers the result in D3arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
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