go to previous page   go to home page   go to next page hear noise highlighting

Answer:

No. A biased exponent of all zeros requires that the mantissa be all zeros.


Example Program: Polynomial Evaluation

        .text
        .globl main

main:   # read input
        la      $a0,prompt          # prompt user for x
        li      $v0,4               # print string
        syscall
        
        li      $v0,6               # read single
        syscall                     # $f0 <-- x
        
        # evaluate the quadratic
        . . . . .
 
        .data
        . . . . .
				
				
prompt: .asciiz "Enter x: "

This example program computes the value of ax2 + bx + c. It starts by asking the user for x.

After the syscall the floating point value from the user is in $f0. The next section of the program does the calculation.


QUESTION 16:

Should a, b, and c be integer constants or floating point constants?


go to previous page   go to home page   go to next page