Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2442
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: 2504
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 Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Sr SW Eng-Rocket Software (Assembler,... Kenneth Barton Lasky Mainframe Jobs 0 Fri Aug 25, 2017 12:29 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts Dump analysis of an assembler module monica1 PL/I & Assembler 4 Tue May 09, 2017 10:05 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us