Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Assembler - loading the register

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
sabarikanth

New User


Joined: 07 Jun 2010
Posts: 59
Location: coimbatore

PostPosted: Fri Jun 11, 2010 11:44 am    Post subject: Assembler - loading the register
Reply with quote

Is this instruction valid?
loading the register. How it works explain in detail plz.

Code:

 L     R11,=F'20'   
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Jun 11, 2010 12:26 pm    Post subject:
Reply with quote

Principles of Operation SA22-7832-02
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Jun 11, 2010 4:17 pm    Post subject: Reply to: Assembler - loading the register
Reply with quote

You could also issue one of the following, which will save a LTORG addition -

Code:

         LA    R11,20        LOAD R11 WITH X'00000014'

-O R-

Code:

         LHI   R11,20        LOAD R11 WITH X'00000014'

The "LA" instruction (Load Address) can load a maximum value of 4095 (X'0FFF') into a register, whereas, the "LHI" instruction (Load Halfword Immediate) can load a maximum value of 32767 (X'7FFF').

If you need to load a value of more than 32767 into a register, use the "L" (Load) instruction, with which you provided.

All values loaded into a general purpose, 32-bit register, use the full four-bytes.

Bill
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts Online Assembler Program Starting point Aditya.Srivastava PL/I & Assembler 4 Fri Jul 08, 2016 6:48 pm
This topic is locked: you cannot edit posts or make replies. MVS Assembler profiles for Pune Locat... shailesh_do Mainframe Jobs 0 Mon Feb 22, 2016 6:21 pm
No new posts ASRA abend calling Assembler from CICS surya8 PL/I & Assembler 13 Thu Sep 10, 2015 7:50 pm
No new posts Is Enterprise PL/I v4.2 compatible wi... sundarkudos PL/I & Assembler 2 Wed Aug 19, 2015 11:15 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us