LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 07: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, 01: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-12-2006, 12:05 AM   #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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:22 PM
generating mips assembly from c code with gcc? lilili Programming 4 05-11-2006 09:37 PM
MIPS assembly question Gnute Programming 1 08-24-2004 06:33 PM
Assembly Language, and networks grizzly Programming 5 12-11-2003 10:50 PM
MIPS assembly fenriswolf Programming 0 10-17-2001 04:01 PM


All times are GMT -5. The time now is 04:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration