IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Usages of Register in Assembler


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
afroz alam

New User


Joined: 02 Jul 2007
Posts: 13
Location: India

PostPosted: Thu Jul 05, 2007 5:32 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 05, 2007 10:03 pm
Reply with quote

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
View user's profile Send private message
haibrs

New User


Joined: 03 Jan 2007
Posts: 8
Location: Mumbai

PostPosted: Tue Jul 17, 2007 5:07 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Tue Jul 17, 2007 5:16 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts Finding Assembler programs PL/I & Assembler 5
No new posts How Can I Recall a Migrated Data Set ... PL/I & Assembler 3
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
No new posts Getting SOC4 while calling a Cobol DB... PL/I & Assembler 4
Search our Forums:

Back to Top