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
Question
Chapter 2.3, Problem 1QE
Program Plan Intro
In a computer processor, program counter is used as a register with the location of the instructions. The program counter increases by its 1 value, whenever each instruction gets fetched.
Instruction Register:
The machine cycle is defined as first instruction is fetched into instruction register, it is decoded by the CPU and then it is executed. Instruction register holds the data or address which is being decoded and executed.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
The following addresses of a Little-Endian machine contain the given hex values shown.
If a 32-bit integer is stored at address 100, what is its decimal value?
Address Value (Hex).
96
32
97
65
98
77
99
28
100
59
101
16
102
72
103
87
104
52
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.
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
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_forwardIf 2 bits of a byte are in error when the byte is read from ECC memory, can ECC detect the error? Can it fix the error?arrow_forwardIf 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_forward
- If the machine is little 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_forwardUsing the chart provided in the second image, solve problem 2arrow_forwardFor instruction: j Label The instruction is at address 11100000 00000000 00000000 001001. Given an 26-bit immediate field: 00000000 00000000 00000000 10.arrow_forward
- For 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_forwardComputer 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_forwardQUESTION 9 What is the hexadecimal representation of the memory variable location at address 003FBA03H in the Little Endian format from the 32-bit binary quantity represented by 10100111 110111100101101100001100b? Address in hexadecimal format 003FBA00H 003FBA01H 003FBA02H 003FBA03H 003FBA04H Data in hexadecimal format O a. The hexadecimal representation for the variable located at memory address 003FBA03 is A8. Ob. The hexadecimal representation for the variable located at memory address 003FBA03 is A5. OC. The hexadecimal representation for the variable located at memory address 003FBA03 is A3. Od. The hexadecimal representation for the variable located at memory address 003FBA03 is A7.arrow_forward
- Given the binary format of an instruction as follows: 0000 1101 0110 1100 1010 1011 0001 0111 a. What assembly instruction does this correspond to? b. If the PC + 4 = 0XA0BC32F4, what is the target address? c. How many instructions forwards or backwards is that? d. How many bytes is that in decimal?arrow_forwardA PDA has "XY" MB of memory, Where XY are the last two numbers of your student number (e.g for 2021789, the number is in red ). How many bits are needed to address any single byte in of its memory? Show your calculation stepsarrow_forwardBy assuming that X = 3, and 33 is a two digit number, consider memory storage of a 64-bit word stored at memory word 33 in a byte-addressable memory (a) What is the byte address of memory word 33? (b) What are the byte addresses that memory word 33 spans? (c) Draw the number 0xF1234567890ABCDE stored at word 33 in both big endian and little-endian machines. Clearly label the byte address corresponding to each data byte value.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage LearningA+ Guide to Hardware (Standalone Book) (MindTap C...Computer ScienceISBN:9781305266452Author:Jean AndrewsPublisher:Cengage LearningA+ Guide To It Technical SupportComputer ScienceISBN:9780357108291Author:ANDREWS, Jean.Publisher:Cengage,
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
A+ Guide to Hardware (Standalone Book) (MindTap C...
Computer Science
ISBN:9781305266452
Author:Jean Andrews
Publisher:Cengage Learning
A+ Guide To It Technical Support
Computer Science
ISBN:9780357108291
Author:ANDREWS, Jean.
Publisher:Cengage,