Tom Kelliher, CS 240
Feb. 22, 2002
No class Monday.
For Monday, e-mail assembly exercise solution to me. Read 3.10--16.
For Wednesday, read 4.5 --- carry lookahead addition.
String handling, summary of addressing modes, program build process.
Carry lookahead addition.
Important design principle: reuse.
2-1 mux symbol:

A one-bit two function logical unit:

Recall block diagram for full adder:

A one-bit three operation ALU:

A 32-bit three operation ALU:

Ripple carry addition.
What additional functionality needed?
Notes:
slt:
slt $t0, $t1, $t2 $t0 = ($t1 < $t2);
Can the difference of two unsigned numbers result in an overflow?
Difference?
Three input lines: