Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

Perform addition and subtraction operation on the following two floating point operands. ...

Perform addition and subtraction operation on the following two floating point operands.

A = 0 10001 011011
B = 1 01111 101010
A and B are represented in a 12-bit format. The scale factor has an implied base of 2 and a 5-bit excess-15 exponent. The 6-bit mantissa is normalized as in the IEEE format, with an implied 1 to the left of the binary point.

Answers


KELVIN
Initially 0 0 0 0 0 1 1 1 0
1 1

Shift 0 0 0 0 1 1 1 0 --
Subtract + 1 1 1 0 1
1 1 1 1 0 1 1 0 0

Shift 1 1 1 0 1 1 0 0 --
Add + 0 0 0 1 1
0 0 0 0 0 1 0 0 1

Shift 0 0 0 0 1 0 0 1 --
Subtract + 1 1 1 0 1
1 1 1 1 0 0 0 1 0

Shift 1 1 1 0 0 0 1 0 --
Add + 0 0 0 1 1
1 1 1 1 1 0 1 0 0

Restore + 1 1 1 1 1
0 0 0 1 1 0 1 0 0
0 0 0 1 0 0 1 0 0

kalvinspartan answered the question on July 7, 2018 at 08:16

Answer Attachments

Exams With Marking Schemes

Related Questions