LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2006, 03:18 PM   #1
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Rep: Reputation: 30
mips: 32(sp) -- meaning?


hi,

could someone tell me what this syntax means in MIPS assembly?

sw s0,32(sp)

i know that sw means store the 32bit word in s0 in the stack pointer sp...but what does 32(sp) mean?

thanks,
ashlesha.
 
Old 09-16-2006, 12:13 AM   #2
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 31
32 is the offset from sp. This opcode will load the word at +32 bytes away from sp into s0.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MIPS question... kponenation Programming 10 10-04-2005 01:21 AM
translate C to MIPS kponenation Programming 1 10-01-2005 09:12 PM
Bluetooth on MIPS-System tomcat22 Linux - General 0 10-07-2004 05:24 AM
MIPS assembly question Gnute Programming 1 08-24-2004 05:33 PM
MIPS assembly fenriswolf Programming 0 10-17-2001 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration