****please don't copy and paste and don't use handwriting
Q3:
Write LMC assembly code that prints the minimum of two numbers.
HINT: use and extend the table below for your solution.
Mailbox |
Mnemonic |
Code |
Instruction description |
Q4:
Convert the given exponential expression into SEEMMMMM floating-point format (use excess-50 notation to represent an exponent) and perform multiplication operation,
0.85067 x 102
0.52099 x 10-1
Q3. Table not provided, please provide table.
Q4.
1) 0.85067×102
The number is positive, hence sign of mantissa is positive.
So, first digit S=0
The exponent value is 2.
So, the Excess-50 value is represented by 52 (which was got from 50+2).
EE= 52 (second and third digit).
Mantissa = 85067 (last 5 digits)
Thus, 0.85067×102
represented in SEEMMMMM format is
05285067
2)
2) 0.52099×10-1
The sign of mantissa is positive(+ve).
So, S=0(first digit).
The exponent value is -1.
So, the Excess-50 value is represented by 49.(which was got from 50-1).
So, EE= 49 (second and third digit).
The mantissa value is 52099
So, M= 52099 (last 5 digits).
Thus, 0.52099×10-1
represented in SEEMMMMM format is
04952099
Get Answers For Free
Most questions answered within 1 hours.