Computer Science: An Overview (13th Edition) (What's New in Computer Science)
13th Edition
ISBN: 9780134875460
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 2, Problem 16CRP
Suppose the memory cells at addresses 0x00 through 0x07 in the Vole contain the following bit patterns:
Address | Contents |
0x00 | 0x2B |
0x01 | 0x07 |
0x02 | 0x3B |
0x03 | 0x06 |
0x04 | 0xC0 |
0x05 | 0x00 |
0x06 | 0x00 |
0x07 | 0x23 |
- a. List the addresses of the memory cells that contain the
program that will be executed if we start the machine with its program counter containing 0x00. - b. List the addresses of the memory cells that are used to hold data.
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
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]
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]
Consider memory storage of a 32-bit word stored at memory word 34 in a byte addressable memory.
(a) What is the byte address of memory word 34?
(b) What are the byte addresses that memory word 34 spans?
(c) Draw the number 0x3F526372 stored at word 342 in both big-endian and little-endian machines. Clearly label the byte address corresponding to each data byte value.
Chapter 2 Solutions
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
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 - Classify each of the following Vole 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 following program written in C syntax: void fun (int first, int second) { first += first; second +...
Concepts Of Programming Languages
3.12 (Date Create a class called Date that includes three pieces Of information as data
members—a month (type ...
C++ How to Program (10th Edition)
In the following If Then statement, assume that blnIsInvalid is a Boolean variable. Exactly what condition is ...
Starting Out With Visual Basic (7th Edition)
Convert the Do-Whi1e loop in the following code to a Whi1e loop: Declare String sure Do Display "Are you sure y...
Starting Out with Programming Logic and Design (4th Edition)
What are the advantages and disadvantages of implicit declarations?
Concepts of Programming Languages (11th Edition)
A variable that is used to reference an object is commonly called a(n)________. a. reference variable b. resour...
Starting out with Visual C# (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
- Consider a MIPS processor and a program that is loaded in the main memory between the addresses 130h and 161Ch (h means hexadecimal). Calculate the number of blocks of the main memory that this program uses if the size of a block is 2^7 words (give the result in decimal).arrow_forwardConsider 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 66arrow_forwardShow how the following values would be stored by byteaddressable machines with 32-bit words, using little endian and then big endian format. Assume that each value starts at address 10 . Draw a diagram of memory for each, placing the appropriate values in the correct (and labeled) memory locations.Q.) 0x456789A1arrow_forward
- Consider a memory implemented for 8086 microprocessor Draw the memory block diagram. Determine the values for A0 , /BHE ,address lines(A1..A19) and data lines(D0.. D15) in order to access: A byte at odd address [01FF3H] A byte at even address [01FFCH] A word at even address [01FFEH] A word at odd address [01ABFH]arrow_forwardWrite a program to determine Y, where Y= (2X +5) Assume that X is an eight bits .stored in any memory locationarrow_forwardAssume a computer that has 32-bit integers. Use a table to clearly show how each of the following values would be stored sequentially in memory, starting at address 0x100, assuming each address holds one byte. 0x123456BA 0xabcde -28 (decimal values, assume the machine uses 2's complement notation. 0xFEDCarrow_forward
- What is the highest address possible if 16 bits are used for each address? A. 65536 B. 12868 C. 16556 D. 643897 E. None of the abovearrow_forward1. Use the following representation of a portion of a computer’s main memory to answer the question. Address Contents50 5151 5652 5353 5754 5855 5056 5757 5258 53 What would be stored at address 50 after executing the instruction “Copy the contents of the memory cell at address 54 to address 50”? 2. Use the following representation of a portion of a computer’s main memory to answer the question. Address Contents50 5151 5652 5353 5754 5855 5056 5757 5258 53 What would be stored at address 50 after executing the instruction “Copy the contents of the memory cell pointed to by the cell at address 54 to address 50”?arrow_forwardSuppose a computer system uses 16-bit addresses for both its virtual and physical addresses. In addition, assume each page (and frame) has size 256 bytes. 8 bits are used for offset, 8 bits are used for page # and the max number of pages a process can have is 256. e. Translate the following virtual addresses to physical addresses, and show how you obtain the answers. (Hint: You do not need to convert hexadecimal numbers to decimal ones.) 0x0389 0xDF78 0x0245 0x8012 f) Now, suppose that the OS uses a two-level page table. Draw the page table. (Assume that frames 7 through 221 are free, so you can allocate space for the page table there.) In addition, suppose that the page-table directory storage comprises a whole number of consecutive full frames. (For examples: if the directory entry is 2 bytes, the entry’s storage comprises 1 frame; if the directory entry is 260 bytes, the entry’s storage comprises 2 consecutive frames.) g)What is the size of the two-level page table…arrow_forward
- The first two bytes of a 4M x 16 main memory have the following Hex values: Byte 0 is FE 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? 2. The memory unit of a computer has 2M Words of 32 bits (or 4 bytes) each. The computer has an instruction format with 4 fields: an opcode field; an addressing mode field to specify 1 of 6 addressing modes; a register address field to specify one of 7 registers; and a memory address field. Assume an instruction is 32 bits long. Answer the following: How large must the addressing mode field be? How large must the register field be? How large must the address field be? How large is the opcode field?arrow_forwardA digital computer has a memory unit with 24 bits per word. The instruction set consists of 150 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word ofmemory.a. How many bits are needed for the opcode?b. How many bits are left for the address part of the instruction?c. What is the maximum allowable size for memory?d. What is the largest unsigned binary number that can be accommodated in one word of memory?arrow_forwardTranscribed Image Text (Micro processer 8086) Q1) Choose the correct answer: 1. One of the following instructions is correct: a. MUL 67 b. LEA BL.[SI] (2. AS) c. LALF d. Neither a,b nor c 2. Suppose we have SS starts at B4102 H, CS ends at E4250H. The suitable point for DS to start so there are no overlapping of the segments is: c. C4200 H d. C4300 H a. C4000 H b. C4100 H 3. If you have AX-0208H, BL=D8H, the results of performing IDIV BL in AX is: a. 00F3 H b. F300 H c. 5802 H d. 0258 H 4. The Execution Unit includes: a. Instruction pointer b. Status register c. Address generation d. Neither a,b nor c 5. The compare instruction and test instruction are similar in : a. Both instructions are subtraction methods b. Both instructions effect on ZF, SF & PF. c. Both instructions store the result in the destination operand d. Neithe a,b nor c 6. The data bus in 8088 Mp is: a. 16-bit unidirectional lines c. 8-bit unidirectional lines b. 16-bit bidirectional lines d. 8-bit bidirectional…arrow_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