MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > ----------= PC, Desktop and Laptop Support =---------- > Software
Register FAQ Members List Calendar Casino Mark Forums Read

Software Software such as operating systems like Windows XP, Windows Vista, Windows 7 etc., or specific programs.


Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-12, 14:38
dinkyday dinkyday is offline
Private E-2
 
Join Date: May 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default MIPS Assembly Language

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.
Reply With Quote
Sponsored links
  #2  
Old 05-04-12, 21:58
mastermosley's Avatar
mastermosley mastermosley is offline
Sergeant
 
Join Date: Jan 2005
Location: Merritt, BC, Canada
Posts: 406
Thanks: 7
Thanked 10 Times in 9 Posts
Default Re: MIPS Assembly Language

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.
Reply With Quote
Reply

Tags
mips assembly

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Word stucks when I choose another language from language bar. How do I fix it? langclinic Software 1 03-18-07 02:03
Rig Assembly - Mostly regarding cooling dscl Hardware 0 01-31-06 11:35
Custom PC Assembly ANHEDONIC Hardware 9 08-06-05 21:15
Programming the TI-83 Plus in Assembly Magi Matt Software 2 03-10-05 21:46
how to convert assembly language into C? kunalsethi Software 2 11-15-04 05:39


All times are GMT -5. The time now is 16:28.

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


All content Copyright MajorGeeks.com source code Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger