6610-- Discussion Sheet

6610-- Discussion Sheet - EXAMINATION DISCUSSION LESSON...

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

View Full Document Right Arrow Icon
EXAMINATION DISCUSSION LESSON 6610 (25 Questions) 68CH11 PROGRAMMING, PART B To assist you in your review of this lesson we have prepared this discussion sheet. We suggest that you read the discussion on questions you had right as well as on questions you missed. 1. (4) ALU … Study Guide, first paragraph. The ALU not only handles the arithmetic operations of the processor, but also the logic instructions. 2. (2) %0000 0001 … The AND instruction performs a bit-by-bit logical AND on the contents of the processor register and the operand. In this case, the only bit that contains a 1 in both is b 0 . 3. (2) clear (logic 0) … The Z flag is set only if the processor register contains all zeros. In this case, the accumulator contains %0000 0001, so the Z flag is clear (logic 0). 4. (3) %0000 1110 … The OR instruction performs a bit-by-bit logical OR on the contents of the processor register and the operand. In this case, bit b 3 , b 2 , and b 1 are logic 1’s in either Accumulator B or in the operand. Therefore, these bits are set in the result, which is placed in Accumulator B. The other bits do not contain 1’s. 5. (3) %0000 0100 … The EXOR instruction performs a bit-by-bit logical Exclusive OR on the contents of the processor register and the
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 03/08/2010 for the course CIE W660 taught by Professor . during the Winter '09 term at World College.

Page1 / 2

6610-- Discussion Sheet - EXAMINATION DISCUSSION LESSON...

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