11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ORG instruction||||||||If symbol denotes an ordinary symbol, the ordinary symbol is defined with thevalue that the location counter had before the ORG statement is processed.expressionis a relocatable expression, the value of which is used to set the locationcounter. If expression is omitted, the location counter is set to the next availablelocation for the current control section.expression must be a predefined absolute expression whose value is known atthe time the ORG statement is processed.boundaryis an absolute expression that must be a number that is a power of 2 with arange from 2 (halfword) to 4096 (page). If boundary exceeds the SECTALGNvalue, message ASMA500E is issued.boundary must be a predefined absolute expression whose value is known atthe time the ORG statement is processed.If the boundary operand is greater than 16, the GOFF option must be specifiedin addition to the SECTALGN option.offsetAny absolute expressionIf boundary or offset are provided, then the resultant location counter is calculatedby rounding the expression up to the next higher boundary and then adding theoffset value.|ORG emits no “fill” bytes for bytes skipped in any direction.In general, symbols used in expression need not have been previously defined.However, the relocatable component of expression (that is, the unpaired relocatableterm) must have been previously defined in the same control section in which theORG statement appears, or be equated to a previously defined value.A length attribute reference to the name of a ORG instruction is always invalid.Message ASMS042E is issued, and a default value of 1 is assigned.An ORG statement cannot be used to specify a location below the beginning of thecontrol section in which it appears. For example, the following statement is notcorrect if it appears less than 500 bytes from the beginning of the current controlsection.ORG *−500This is because the expression specified is negative, and sets the location counter toa value larger than the assembler can process. The location counter wraps around(the location counter is discussed in detail in “Location counter” on page 35).If you specify multiple location counters with the LOCTR instruction, the ORGinstruction can alter only the location counter in use when the instruction appears.Thus, you cannot control the structure of the whole control section using ORG, butonly the part that is controlled by the current location counter.An ORG statement cannot be used to change sections or LOCTR segments. Forexample:200 <strong>HLASM</strong>: <strong>V1R6</strong> <strong>Language</strong> <strong>Ref</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!