CS326 HW78910 - .data num1 float num2 float signmask.word...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Eric Diehl Homework 6: Fahrenheit/Celsius Converter #C = (F-32)(5/9) #F = (C)(9/5)+32 #Celsius lw $s1,0(F) sub $s2,$s1,$t0 (#ss2 now has F-32) mult $s2,$t1 mflow $s2 (# $s2 now has C value) #Fahrenheit lw $s0,0(C) mult $s0,$t2 mflow $s3 div $s3,$t1 mflow $s3 add $s3,$s3,$t0 (# $s3 now has F value) # Eric Diehl # Homework Progression - Contains #7,8,9
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: .data num1: float; num2: float; signmask: .word 0x80000000 expmask: .word 0x7f800000 sigmask: .word 0x0007ffff impl: .word 0x00080000 # Will be the beginning to HW8 .text main: lui $s0,0x1001 lw 0($s0) lw 4($s0) lw 8($s0) Eric Diehl and $,$sigfloat;$mask exit: ori $v0, $zero, 10 syscall...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern