View previous topic :: View next topic
|
Author |
Message |
afroz alam
New User
Joined: 02 Jul 2007 Posts: 13 Location: India
|
|
|
|
Hi all.....
Can anyone plz tell me what is the purpose of Register 0,2,14,and 15 in assembly language.
afroz |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You may want to search the web for some introductory assembler info or look at the assembler book written by Kevin McQuillen that is available form Murach Publishing. Kevin's book is excellent.
There are 16 registers - zero to 15. Various assembler instructions require the use one or more of these registers. |
|
Back to top |
|
|
haibrs
New User
Joined: 03 Jan 2007 Posts: 8 Location: Mumbai
|
|
|
|
Hi,
Register 0 is for System usage.
Register 2 is used for speacial purpose instruction like TRT, etc.
Register 14, 15 is used for Calling & Called programs address.
Register 15 is alse used for Return Code.
Regards,
BRS. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
haibrs's answer is not exactly the answer to your question, but rather to the important question (which is perhaps what you intended): "What are the conventional uses of these registers?"
Assembler language per se has no particular preference. |
|
Back to top |
|
|
|