EE306_HW_4 - EE 306 HW#4 Completion date Wednesday November...

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

View Full Document Right Arrow Icon
EE 306 - HW #4 Completion date: Wednesday November 7 th , in class Remember 1: Make sure your name, eid, TA session are clearly marked on your submission Remember 2: FOR ALL FUTURE HOMEWORK, TEST AND EXAM SUBMISSIONS YOUR NAME, EID, AND FINAL ANSWER MUST BE IN INK – FAILURE TO DO SO WILL RESULT IN YOUR WORK NOT BEING GRADED. 1. We want to increase the number of registers that we can specify in the LC-3b AND instruction to 16. Do you see any problem with that? Explain. 2. Implement a XOR gate (A XOR B) using the LC3 instruction set. Assume that the 2 numbers are given at R0 and R1. (Hint : Use DeMorgan’s Laws. LC3 Doesn’t have an OR function). 3. Write the condition code at the end of each instruction: Instruction N Z P Initial case 0 0 1 LEA R2, #100 LD R2, #0 ADD R3, R2,0x5 ADD R4,R2,#-11 AND R5,R5,#0 NOT R6, R5,R5 ST R6, #200 Do the condition codes depend on the NZP values of the previous instructions ? 4.
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 02/13/2010 for the course EE 306 taught by Professor Ambler during the Fall '07 term at University of Texas.

Page1 / 3

EE306_HW_4 - EE 306 HW#4 Completion date Wednesday November...

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