Tom Kelliher, CS 220
Oct. 8, 1997
Finish reading Chapter 5. Homework handout.
Fields of a single precision floating point number:
.
Features:
Values (f is the fractional part of the mantissa):
.
, if e=255 and f=0.
, if 0 < e < 255.
, if e=0 and
. (Denormalized.)
, if e=0 and f=0.
Examples:
Operations:
Others are three operands.
Truth tables?
Do you think all these exist in hardware?
.data
mask1: .word 0X0000FF00
temp: .word
char: .word 'a'
target: .word
.text
... # Get characters into target
not temp, mask1
and target, target, temp
sll temp, char, 8
or target, target, temp