Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|