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 28CRP
Suppose the following
0x2003
0x2101
0x2200
0x2310
0x1400
0x3410
0x5221
0x5331
0x3239
0x333B
0xB248
0xB038
0xC000
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
A CPU that supports little endian format reads two integer (4-byte) values from address 0x1000 and 0x2000. The values read are 55 and 6850 respectively. Please show the memory contents (byte-wise) at address 0x1000 and 0x2000?
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]
int i = 5; is a statement in a C program.
A.
during execution, value of i may change but not its address
B.
during execution both the address and value may change
C.
repeated execution may result in different addresses for i
D.
i may not have an associated address
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
Convert each of the following mathematical expressions to a C++ arithmetic expression: x+y x y+7 area+fudge tim...
Problem Solving with C++ (10th Edition)
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)
(SavingsAccount Class) Create a SavingsAccount class. Use a static data member annualInterestRate to store the ...
C How to Program (8th Edition)
Modify the constructor of TicketMachine so that it no longer has a parameter. Instead, the price of tickets sho...
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
A diesel car gradually speeds up so that for the first 10 s its acceleration is given by dvdt=(0.12)t2+(0.6)t(f...
Differential Equations: Computing and Modeling (5th Edition), Edwards, Penney & Calvis
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
- Write a program to test negative numbers are there in an array of 50 signed byte stored starting with address 4B000. microprocessor 8086arrow_forwardAssume you are given an array of four 16-bit numbers stored in memory with a starting address x3110. Using PC- relative addressing, write an LC-3 machine language program that will copy the same four 16-bit numbers in reverse order, starting at memory address x3120. For example, if the following are the four 16-bit values stored in x3110, x3110 12 x3111 23 х3112 34 х3113 45 then the result of your program execution should write the following starting at memory address x3120: x3120 45 х3121 34 x3122 23 x3123 12 Load your program starting at address x3100. You will need to demonstrate the correct execution of your program by using the LC-3 Simulator.arrow_forwardWrite a program in 8086 microprocessors to find out the addition of two 8-bit BCD numbers, where numbers are stored from starting memory address 500 and store the result into memory address 600 and carry at 601.arrow_forward
- Computer Science Write an assembly language program for the 8085 Microprocessor to find the smallest of the given three numbers.Input: 2230H: 3AH2231H: A3H2232H: 18HStore the result in memory location 2250H.Note: Starting Address of the Program (Mnemonic) Code: 2200Harrow_forwardConsider a computer that has a byte-addressable memory organized in 32-bit words according to the big-endian scheme. A program reads ASCII characters entered at a keyboard and stores them in successive byte locations, starting at address 500. Show the contents of the two memory words at addresses 504 and 508 after the characters “Computer#ece@OSU" have been entered. Give the contents for the two words in hexadecimal. Repeat this problem for the little-endian scheme. ´sMarrow_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 25 97 57 98 59 99 75 100 74 101 63 102 67 103 84 104 93arrow_forward
- Given rax = 0x0000000200000100, rbx = 0x0000000000000100, and rcx = 0x0000000000000001,and the following values in memoryaddress -> byte at that address0x0000000000000100 -> 0x010x0000000000000101 -> 0x000x0000000000000102 -> 0x000x0000000000000103 -> 0x000x0000000000000104 -> 0x020x0000000000000105 -> 0x000x0000000000000106 -> 0x000x0000000000000107 -> 0x00what is the new value in %rax after the following operation?subq -0x04(%rbx, %rcx, 4), %raxarrow_forwardSuppose the memory of a computer contains the following hex values: Address Ox100 Address Ox101 Address Ox102 Address Ox103 00 12 34 56 What hex value is this on a big endian computer? type your answer. What hex value is this on a little endian computer? type your answer.arrow_forwardIf the value 8 is stored in the memory cell corresponding to the address 5, what is the practical difference between writing the value 5 into cell number 6 and copying the contents of cell number 5 into cell number 6?arrow_forward
- Here is a machine code program using the textbook assembly language. The addresses are given in the left margin in decimal for each memory cell. 0: 1101 0000 0000 1001 1: 0000 00000000 1000 2: 0011 0000 0000 1001 3: 0001 0000 0000 1001 4: 01110000 0000 1010 5: 1011 0000 0000 0000 6: 11100000 0000 1000 7: 1111 0000 0000 0000 8: 0000 0000 0000 0011 9: 0000 0000 0000 0000 10:0000 0000 0000 0000 Using this program, write the correct assembly language instructions for the specified addresses. Opcodes are not case sensitive. Express the memory addresses in decimals. Address 1: Address 4: Address 0: Checkarrow_forwardThe computer program is stored in the lowest 1kbyte block of memory. Give the start and end address of this blockarrow_forwardWrite a Java program that prompts the user for the page size used in a virtual memory system; this will be a power of two between 512 (29) and 16384 (214), inclusive. Your program should check the user input for page size to make sure it is one of the allowable inputs (must be a power of 2 and cannot be smaller than 512 or larger than 16384), and should then prompt the user for a virtual address (assume 32-bit virtual addressing, so your code must be able to accept any input between 0 and 4294967295, which is 232-1). Given this input, the program must output the virtual page number and the offset within the page. Sample output might look like this: Please enter the system page size: 1024 Please enter the virtual address: 10000 This address is in virtual page: 9 At offset: 784arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Instruction Format (With reference to address); Author: ChiragBhalodia;https://www.youtube.com/watch?v=lNdy8HREvgo;License: Standard YouTube License, CC-BY