hw8sol_s08 - University of Florida EEL 3701 Spring 2008 ECE...

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

View Full Document Right Arrow Icon
University of Florida EEL 3701 Spring 2008 ECE Dept., Dr. Gugel HOMEWORK #8 Solution 1. (a) extended addressing mode LDAA $1380 STAA $1500 (b) indexed addressing mode LDX $1380 LDAA 0,X LDX $1500 STAA 0,X 2. (a) After Statement 3 is executed, the content of A = $FC (b) In Statement 5, the effective address is $ABC1 + $1B = $ABDC 3. LDAB #$00 ; Initialized A to $00. LDAA #$80 ; Initialized counter to $80. LDX #$1900 ; X is initialized to point to $1900, the beginning of the table. LOOP: STAB 0,X ; Store $00 (from A) to memory location pointed to by X. INX ; Increment pointer in X to point to the next byte. DECA ; Decrement counter in A. BNE LOOP ; Continue to loop if counter not 0 yet. FIN: BRA FIN 4. LDAB #$00 ; Initialized counter in B to $00. LDX #$1800 ; X is initialized to point to $1800, the beginning of the table. AGAIN: LDAA 0,X ; Bring in the current byte in the table.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/10/2008 for the course EEL 3701c taught by Professor Gugel during the Spring '05 term at University of Florida.

Page1 / 2

hw8sol_s08 - University of Florida EEL 3701 Spring 2008 ECE...

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

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