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: 2435
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 Loading data to table gives wrong for... Raghu navaikulam DB2 18 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
No new posts loading a Modified Mapset Susanta CICS 2 Tue Mar 14, 2017 5:43 pm
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


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