For each part of this problem, assume that the X register contains 2000 and the A register initially contains 01. Name the type of addressing and give the content of A after each instruction listed next. The contents of memory are shown in Figure P8.34. a. LDDA $2002 b. LDDA #$43 c. LDDA $04 d. LDDA 6,X e. INCA f. CLRA g. LDAA $2007 h. INX 0000 0001 0002 0003 0004 0005 0006 0007 01 FA 9B 61 9A B6 73 41 2000 2001 2002 2003 2004 2005 2006 2007 37 AF 20 07 20 00 FF F3 Figure P8.34
ENGE 201 Notes Hexadecimal numbers Base 16 number system; used as a shorthand of binary Values range from 0-F o 1, 2, 3, ,4 5, 6, 7, 8, 9, A, B, C, D, E, F o positional multipliers are powers of 16: 16^1, 16^2, etc. Hex Decimal Binary Hex cont. Decimal Binary 0 0 0000 8 8 1000 1 1 0001 9 9 1001 2 2 0010 A 10 1010 3 3 0011 B 11 1011 4 4 0100 C 12 1100 5 5 0101 D 13 1101 6 6 0110 E 1