1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MIPS Assembly Language

Discussion in 'Software' started by dinkyday, Apr 18, 2012.

  1. dinkyday

    dinkyday Private E-2

    Write an assembly program which takes two single-precision floating point inputs from the user, calculates the greater number, calculates the difference of the two(greater-smaller), and prints all these as well.
    Desired Output:
    Enter a number (A):15.90
    Enter another number (B):11.28
    You entered A=15.90 and B=11.28
    The difference is 4.62

    Any ideas? The program must compile and run on MARS Assembler.
  2. mastermosley

    mastermosley Sergeant

    Google MIPS Tutorial and read. The structure would be very simple. Load the two floating points into memory. Subtract one float (which you stored in memory) from the other. Print the float.

Share This Page

MajorGeeks.Com Menu

MajorGeeks.Com \ All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds