Assignment 5

Due at the beginning of class on Friday, October 14,1994

Note : Show your work to receive full credit

(1) 5 points What decimal value is represented by the IEEE single precision floating point value 0xc2290000 ?

(2) 6 points Perform the following operations. Assume that the operands and the results are integers represented as 8-bit 2's complement integers. Indicate which ( if any ) of the operations cause overflow.

	10101010	00001111	10001001
      + 11011000      + 10001111      - 01100000
      ----------      -----------     -----------

(3) 6 points Perform the following operations. Assume that the operands and the results are integers represented as 8-bit sign magnitude integers. Indicate which (if any) of the operations cause overflow.

	10101010	00001111	10001001
      + 11011000      + 10001111      - 01100000
      ----------      -----------     -----------

(4) 5 points Perform the following multiplication. Assume that both operands are 5-bit 2's complement integers and the result is a 10-bit 2's complement integer.

	11010
     *  11000
     ---------

(5) 6 points What are the values of the variables aa,bb and cc after the following SAL code completes? Give the results in hexadecimal.


.data

aa: .word 0x000000aa bb: .word 0xe00000ff cc: .word 0xcc112233

.text

nand aa,aa,bb xor bb,bb,aa sll cc,cc,3 done

______________________________________________________________________________

Handing in Assignment 5

Everyone has to turn in a hardcopy ( with the calculations shown on paper ) to the instructor at the beginning of class on the due date.