hw4_solution_4 - 01000101 + 10111100 ------------- 1...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE331 SS-08 HOMEWORK #4 Solution Problems from the textbook Chapter 2: Fundamental: 2. STAB $23, STAB #0023 3. X register must contain $7000 4. CPD #1234 8. Acc. A contains $00, Z=1, N=0, C=1, H=0 14. LDD #$2000 - Immediate addressing mode LDD $2000 – Extended Addressing mode Advanced: 2. $44 (%01000100) in 2’s complement form = 10111100
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 01000101 + 10111100 ------------- 1 00000001 Z=0, V=0, N=0, C=0 Therefore, BGE – Taken, BNE – Taken, BLT- Not taken, BHS - Taken, BLE - Not taken 8. Challenging: 2. Use indexed addressing as it provides a convenient way to step through the address of each table element. You can step by auto-incrementing or by using INX instruction....
View Full Document

This note was uploaded on 03/24/2008 for the course EGR 331 taught by Professor Jayanthirao during the Spring '08 term at Michigan State University.

Ask a homework question - tutors are online