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 2QE
Suppose the Vole memory cells at addresses 0xB0 to 0xB8 contain the bit patterns given in the following table:
Address | Contents |
0xB0 | 0x13 |
0xB1 | 0xB8 |
0xB2 | 0xA3 |
0xB3 | 0x02 |
0xB4 | 0x33 |
0xB5 | 0xB8 |
0xB6 | 0xC0 |
0xB7 | 0x00 |
0xB8 | 0x0F |
- a. If the
program counter starts at 0xB0, what bit pattern is in register number 0x3 after the first instruction has been executed? - b. What bit pattern is in memory cell 0xB8 when the halt instruction is executed?
Expert Solution & Answer
Learn your wayIncludes step-by-step video
schedule12:04
Students have asked these similar questions
Consider the following hexadecimal readout:
000000 8A00 8E00 CFA1 48BF 7900 3202 9015 AD34
000010 0218 6D30 028D 3402 AD35 0288 3102 8D35
000020 0E30 0290 DAEE 3102 4C00 0200 0040 004B
Refer to the first byte of memory shown above, address 000000. Assume that this byte is used to store an 8-bit unsigned integer. What is the decimal value stored in this byte?
Group of answer choices
138
-27
22,842
66
Suppose r0 = ox300010A0, r2 = 0x00000011, and the memory layout is as follows
Address: Data:
0x300010A7 0x72
0x300010A6 0XA5
0x300010A5 0x9F
0x300010A4 0x00
0x300010A3 0x50
0x300010A2 0x2B
0x300010A1 0XA5
0x300010A0 0x01
-What are the values of r0 and r1 after executing the following code? Illustrate your process in a memory map.
LDR r1, [r0], #3
ADD r1, r1, r2
STR r1, [r0, r#4]
Suppose r0 = ox300010A0, r2 = 0x00000011, and the memory layout is as follows
Address: Data:
0x300010A7 0x72
0x300010A6 0XA5
0x300010A5 0x9F
0x300010A4 0x00
0x300010A3 0x50
0x300010A2 0x2B
0x300010A1 0XA5
0x300010A0 0x01
-What is the Value of r0 and r1 after executing LDR r1, [r0, #2]
-What are the values of r0 and r1 after executing the following code? Illustrate your process in a memory map.
LDR r1, [r0], #3
ADD r1, r1, r2
STR r1, [r0, r#4]
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 displaying a Java applet, the browser invokes the _____ to interpret the bytecode into the appropriate mac...
Web Development and Design Foundations with HTML5 (8th Edition)
What is the value of x after each of the following statements is executed? double x = Math.abs(-6.4);
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
In Exercises 57 through 64, identify any errors. ConstnAsInteger=5n+=1txtOutput.Text=CStrn
Introduction To Programming Using Visual Basic (11th Edition)
Carefully describe the process of program testing.
Problem Solving with C++ (9th Edition)
Write the first line of the definition for a Poodle class. The class should extend the Dog class.
Starting Out with Java: Early Objects (6th Edition)
What class do you use to write data to a file?
Starting Out with Java: From Control Structures through Data Structures (3rd 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
- QUESTION 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_forwardThe 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 52arrow_forwardif 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 4244Harrow_forward
- Below is a list of 64-bit memory address references given as word address. Ox03, Oxb4, Ox2b, Ox01, Oxb7, Ox58, Oxbe, Ox02, Oxb5, Ox2e, Oxb6, Ox5b 0000 4 0100 8 1000 1100 1 0001 5 0101 9 1001 d 1101 2 0010 6 0110 a 1010 e 1110 3 0011 7 0111 b 1011 f 1111 Given a direct-mapped cache with 16 word blocks, what is the hit ratio? O 0.5 O 1 O 0.75 O 0.25arrow_forwardSP=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_forwardConsider the simple program below: Memory Address Hex 100 101 102 103 104 105 106 107 203 204 205 206 207 Instruction Load 203 Add 204 Store 205 Add 100 Store 206 Halt Contents of Address (Hex) 1203 2204 2205 3100 2206 7000 0010 002B FFF7arrow_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_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_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_forward
- physcal addresses are 4s ng 4 Ame dat in a cetain compe, te addresses can be translaled without y TLB entries At most how many ditina vid the address translation peh has 12 vld The Translation Look aside Bulfer (TLB)i sine is kB and the word size iby The memory is word addresible. The pe virtual addresses are 64 bea long d th sine is miss?arrow_forwardWrite an 8085 microprocessor program to calculate the number of negative data among the following data (D4, 5E, 14, 93, 80, 11, 21, EE, 5D, 23, F1, C4, 39, 79, 10, OD). Note that D7 bit represents the sign, where 1 is for negative and 0 for positive.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
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