APPENDIX A

ANSWERS TO SELECTED PROBLEMS

Chapter 2

2.1 Microprocessor: CPU in a single chip.

Single-chip Microcomputer : microprocessor, memory, and I/O in a single chip.

2.4(a)

(d)

sign = 0, carry = 0, zero = 0, overflow = 0.

sign = 1, carry = 0, zero = 0, overflow = 1.

2.6 (a)

(b)

20BE

(20BE) = 05, (20BF) = 02.

2.11 Scalar microprocessor can execute one instruction per cycle. Intel 80486 is a scalar microprocessor.

Superscalar microprocessor can execute more than one instruction per cycle. Intel Pentium is a superscalar microprocessor.

Chapter 3

3.5 (a)

(b)

(c)

16,384

128 chips

4 bits

3.8 (a)

(b)

20

6 × 64 decoder

3.9 Maximum Directly Addressable Memory = 16 Megabytes;

14 unused address pins Available.

3.11 Memory Chip # 1 EC00H - EDFFH

Memory Chip #2 F200H - F3FFH

3.12(a) ROM Map: 0000H - 07FFH

RAM Map: 2000H - 27FFH

3.21 Cache Tag Field = 1 -bit

Cache Index Field = 12-bits

Cache Data Field = 32-bits

3.23 Cache word size = 36 bits.

Chapter 4

4.2 Using standard I/O, the microprocessor uses an output pin such as images pin to distinguish between memory and I/O. Also, the microprocessor uses IN and OUT instructions to perform I/O operation in standard I/O.

Using memory-mapped I/O, the microprocessor uses an unused address pin to distinguish between memory and I/O. The ports are mapped as memory locations. Memory-oriented instructions are used for performing I/O operation.

Intel microprocessors can use either standard or memory-mapped I/O while Motorola microprocessors can use only memory-mapped I/O.

4.4 Memory-mapping provides the physical addresses for the microcomputer's main memory while memory-mapped I/O maps port addresses into memory locations.
4.7 Interrupt address vector is the starting address of the service routine.
4.10 Internal interrupt is generated by exceptional conditions such as division by zero where external interrupts are initiated via microprocessor's interrupt pins.

Chapter 5

5.2 Yes.
5.3 No.
5.7 Use the following identities:

images

5.8 Product = 0000 0000 0000 01002
5.9 Quotient = −8, Remainder = −1. The sign of the remainder is the same as the sign of the dividend unless remainder is zero.

Chapter 6

6.2 Supervisor mode.
6.7 TRAP occurs since odd address.
6.9(c) Privileged
6.13 $0000 0000
6.14 images
6.23 images

Chapter 7

7.2 images
7.12 Memory map:

images

Chapter 8

8.2 (D1.W) = $4567
8.4 CMP.L (0,A0,D5.L*2),D0
8.9

images

Chapter 9

9.8 *32-bit device: Byte data will be transferred via 68020 D15 - D8 pins.

*8-bit device: Byte data will be transferred via D31 - D24 pins.

Chapter 10

10.2 20642H
10.4(a) Implied
10.6 (a) (EAX) = 00000080H
10.8 (AL) = 05H, unpacked BCD for 5.
10.14

images

10.21 (AX) = 1234H
10.28

images

10.29

images

Chapter 11

11.3

images

11.6

Assuming segment registers are already initialized

images

11.7

images

11.8

images

Chapter 12

12.9

images

12.12

images

images

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.162.87