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 ...

Get Microprocessor Theory and Applications with 68000/68020 and Pentium now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.