LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-09-2006, 06:10 PM   #1
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Rep: Reputation: 30
MIPS: assembly language query


Hi,

I m looking @ some MIPS kernel disassembly:

lui a0,0x8038

what address is the a0 at?

thanks,
Ashlesha.
 
Old 09-11-2006, 12:20 PM   #2
anamericanjoe
Member
 
Registered: May 2006
Posts: 69

Rep: Reputation: 16
a0 is not an address -- it's actually a register in the processor.

The instruction

lui a0, 0x8038

loads the hex number 0x8038 into the upper portion of register a0.
 
Old 09-11-2006, 11:05 PM   #3
Dan04
Member
 
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu
Posts: 207

Rep: Reputation: 37
Quote:
Originally Posted by anamericanjoe
a0 is not an address -- it's actually a register in the processor.
And by convention, it's the first argument to a function.
 
  


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
Assembly Language syntax ashlesha Linux - Newbie 4 06-30-2006 04:22 PM
generating mips assembly from c code with gcc? lilili Programming 4 05-11-2006 08:37 PM
MIPS assembly question Gnute Programming 1 08-24-2004 05:33 PM
Assembly Language, and networks grizzly Programming 5 12-11-2003 09:50 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 11:03 PM.

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