LAB 2: Floating Point Conversion (Due midnite Mon 3/2/98)



PART I:

Write a SAL program that accepts a floating point number as input and then prints out its mantissa and exponent values in IEEE floating point format.

A sample execution of such a program is shown below:

PART II:

Now, convert the above SAL program to MAL code. You DO NOT necessarily have to use procedures.
To implement MAL code for reading in a floating point number from the input, take a look at the MAL code on pages 245-249 of the text for clues. Here, you will also find a procedure to print out an integer number to the output.

Note: