Silver_Smoulder icon

Project 4

Silver_Smoulder | PRO | 11/22/19 06:40:25 PM UTC | 0 ⭐ | 457 👁️ | Never ⏰ | []
text |

1.14 KB

|

None

|

0 👍

/

0 👎

Write a program that accepts 2 numbers as input. 
The first is a signed integer such as -3,+567,-452 etc.  Since -0 is basically meaningless a +/- 0 will exit the program. (this means the program will not work for  numbers between -1 and +1.)
The second number is a decimal number in binary such as .11,.1010110 etc. example      .7510 = .112             
 you will convert these 2 numbers to a single floating point single precision number using logic instructions such as and, or, shift
 This site will help check your answers
 https://babbage.cs.qc.cuny.edu/IEEE-754.old/Decimal.html
  code to print floating point number that is "created" in register $s0
               mtc1 $s0,$f12                 #move to coprocessor 1 (floating point unit)
               li $v0,2                             #print a floating point number
              syscall
  have your program convert values that are entered until 0 is entered for the whole number (so won't convert 0.xxxxx)
 name your program firstInitialLastNameP4.asm,  or it will not be graded.   ( my project would be named ELichtenthalP4.asm)
 You may use anything we've done this semester

Comments