Microcomputer Systems Week 3

Submitted by: Submitted by

Views: 81

Words: 2682

Pages: 11

Category: Science and Technology

Date Submitted: 07/27/2014 09:44 AM

Report This Essay

21July 2014

TEC140 – Microcomputer Systems

HW3 4.7 Practice Set (Odd Only)

TEC140 – Microcomputer Systems

21 July 2014

Review Questions

1. What is the difference between arithmetic operation and a logical operation?

Arithmetic operations interpret bit patterns as numbers. Logical operations interpret each bit as a logical value

3. Can n, the bit allocation equal 1? Why or why not?

The bit allocation can be 1. In this case, the data type normally represents a logical value.

5. In the addition of floating-point numbers, how do we adjust the representation of numbers with different exponents?

The decimal point of the number with the smaller exponent is shifted to the left until the exponents are equal.

7. Name the logical binary operations.

The common logical binary operations are: AND, OR, and XOR.

9. What does the NOT operator do?

The NOT operation inverts logical values (bits): it changes true to false and false to true.

11. When is the result of an Or operator true?

The result of an OR operation is true when one or both of the operands are true.

13. Mention an important property of the OR operator discussed in this chapter.

An important property of the AND operator is that if one of the operands is false, the result is false.

15. Mention an important property of the XOR operator discussed in this chapter.

An important property of the XOR operator is that if one of the operands is true, the result will be the inverse of the other operand.

17. What binary operation can be used to unset bits? What bit pattern should the mask move?

The AND operator can be used to clear bits. Set the desired positions in the mask to 0.

What is the difference between logical and arithmetic shifts?

The logical shift operation is applied to a pattern that does not represent a signed number. The arithmetic shift operation assumes that the bit pattern is a signed number in two’s complement format....