Concept explainers
The following table represents the addresses and contents (using hexadecimal notation) of some cells in a machine’s main memory. Starting with this memory arrangement, follow the sequence of instructions and record the final contents of each of these memory cells:
Address | Contents |
0x00 | 0xAB |
0x01 | 0x53 |
0x02 | 0xD6 |
0x03 | 0x02 |
Step 1 Move the contents of the cell whose address is 0x03 to the cell at address 0x00.
Step 2 Move the value 0x01 into the cell at address 0x02.
Step 3 Move the value stored at address 0x01 into the cell at address 0x03.
Want to see the full answer?
Check out a sample textbook solutionChapter 1 Solutions
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Additional Engineering Textbook Solutions
Software Engineering (10th Edition)
Java: An Introduction to Problem Solving and Programming (7th Edition)
Digital Fundamentals (11th Edition)
Starting Out with Java: Early Objects (6th Edition)
Concepts of Programming Languages (11th Edition)
Starting Out with Programming Logic and Design (4th Edition)
- If a microprocessor has a cycle time of 0.5 nanoseconds, what’s the processor clock rate? If the fetch cycle is 40% of the processor cycle time, what memory access speed is required to implement load operations with zero wait states and load operations with two wait states?arrow_forwardIn the ________, memory addresses consist of a single integer.arrow_forwardA(n) ________________ instruction always alters the instruction execution sequence. A(n) ______________ instruction alters the instruction execution sequence only if a specified Condition is true.arrow_forward
- 1. Assume the memory uses big endian addressing, find the byte stored in 0x20000001 if the address of the memory 0x20000000 contains the value 0x89346710. 2. Assume the memory uses little endian addressing, find the value of r0 after the instruction LDRSB r0, [#0x20000000] if the address of the memory 0x20000000 contains the value 0x893467B0.arrow_forwardGiven the following state of memory (in hexadecimal), answer the following questions for the instructions given in Pep/9 assembly language. Memory Address: Memory Contents: 00F1 4A00F2 D1 00F3 29 00F4 C6a. What are the contents of the A register in binary after the execution of the instructions:LDBA 0x00F1, i ADDA 0x00F2, db. What are the contents of the A register in binary after the execution of the instructions:LDWA 0x00F3, d ADDA 0x0104, iarrow_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 of memory.1. a) How many bits are needed for the opcode?2. b) How many bits are left for the address part of the instruction?3. ◆c) What is the maximum allowable size for memory?4. d) What is the largest unsigned binary number that can be accommodated in one word of memory?arrow_forward
- Suppose that the following instructions are found at the given location in memory. Illustrate the flow of fetch and execute cycle during processing for both instructions. Assume initially [PC] = 45. Program Counter: 45 Accumulator: 123 Memory Location: Memory Address Content 45 STO 79 46 SUB 80 : : 79 737 80 012 : : Perform instruction 45. Perform instruction 46.arrow_forwardA digital computer has a memory unit with 32 bits per word. The instruction set consists of 127 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 of memory. How many bits are needed for the opcode? ________ How many bits are left for the address part of the instruction? _______ What is the maximum allowable size for memory? _________arrow_forwardCompare 0-, 1-, 2-, and 3-address machines by writing programs to computeX = (A x B + C) / (D − E × B)for each of the four machines. The instructions available for use are as follows: M is a 16-bit memory address, and X, Y, and Z are either 16-bit addresses or 4-bit registers. The0-address machine uses a stack, the 1-address machine uses an accumulator, and the other two have16 registers and instructions operating on all combinations of memory locations and registers. SUB X,Y subtracts Y from X and SUB X, Y, Z subtracts Z from Y and puts the result in X. With 8-bit opcodesand instruction lengths that are multiples of 4 bits, how many bits does each machine need to computeX?arrow_forward
- A computer has a 16 bit address space A[15:0]. If all addresses having bits A[15:14]=11 are reserved for I/O device registers, then the maximum number of actual word addressable memory locations is 216 - 214 Group of answer choices True Falsearrow_forwardGiven the following state of memory (in hexadecimal), answer the following questions for the instructions given in Pep/9 machine language. Memory Address: Memory Contents: 00310B0032 0033 0034A3 08 3Fa. What are the contents of the A register in binary after the execution of the instruction: 1101 0001 0000 0000 0011 0001b. What are the contents of the A register in binary after the execution of the instruction: 1100 0001 0000 0000 0011 0011c. What are the contents of the A register in binary after the execution of the two instructions: 1101 0001 0000 0000 0011 0010 0110 0000 0000 0000 0011 0100d. What are the contents of the A register in binary after the execution of the two instructions: 1101 0000 0000 0000 0011 0001 0110 0001 0000 0000 0011 0011arrow_forwardGiven the following memory values and a one-address machine with an accumulator, what values do the following instructions load into the accumulator? Word 20 contains 40. Word 30 contains 50. Word 40 contains 60. Word 50 contains 70. LOAD IMMEDIATE 20 LOAD DIRECT 20 LOAD INDIRECT 20 LOAD IMMEDIATE 30 LOAD DIRECT 30 LOAD INDIRECT 30arrow_forward
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning