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.
     

MajorGeeks.Com Menu

Downloads 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 \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

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