Chapter 08 - CHAPTER 8 Exercises E8.1 The number of bits in...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CHAPTER 8 Exercises E8.1 The number of bits in the memory addresses is the same as the address bus width, which is 20. Thus the number of unique addresses is 2 20 = 1,048,576 = 1024 × 1024 = 1024K. E8.2 (8 bits/byte) × (64 Kbytes) = 8 × 64 × 1024 = 524,288 bits E8.3 Starting from the initial situation shown in Figure 8.9a in the book, execution of the command PSHB results in: 0907: 0908: SP 0909: 090A: A2 Then, execution of the command PSHA results in: 0907: SP 0908: 0909: 34 090A: A2 Then, the PULX command reads two bytes from the stack and we have: 0907: X: 34A2 0908: 0909: 34 SP 090A: A2 E8.4 Starting from the initial situation shown in Figure 8.9a in the book, execution of the command PSHX results in: 0907: SP 0908: 0909: 00 090A: 00
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Then, the command PSHA results in: SP 0907: 0908: 34 0909: 00 090A: 00 Next the PULX command reads two bytes from the stack, and we have: 0907: X: 3400 0908: 34 SP 0909: 00 090A: 00 E8.5 The results are given in the book. E8.6 (a) LDAA $0202 This instruction uses extended addressing. The effective address is 0202. In Figure 8.11 we see that this location contains 1A. Thus the content of the A register after this instruction is 1A. (b) LDAA #$43 This instruction uses immediate addressing. The effective address is the one immediately following the op code. This location contains the hexadecimal digits 43. Thus the content of the A register after this instruction is 43. (c) LDAA $05,X This instruction uses indexed addressing. The effective address is the content of the X register plus the offset which is 05. Thus the effective address is 0205. In Figure 8.11 we see that this location contains FF. Thus the content of the A register after this instruction is FF. (d) LDAA $06 This instruction uses direct addressing. The effective address is 0006. In Figure 8.11 we see that this location contains 13.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/02/2010 for the course ECE 3710 taught by Professor Haris during the Spring '07 term at Georgia Institute of Technology.

Page1 / 9

Chapter 08 - CHAPTER 8 Exercises E8.1 The number of bits in...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online