22.02.2015 Views

HLASM Language Reference

HLASM Language Reference

HLASM Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Operand Entries<br />

Format │ Coded or Symbolic │<br />

Object Code<br />

│ Representation of │<br />

Representation<br />

│ Explicit Address │ of Addresses<br />

───────┼───────────────────┼──────────────────────────────────────────────────────────────────────────────<br />

│<br />

│<br />

│ │ │8 bits │4 │4 │4 │12 bits │4 │12 bits │<br />

│ │ │Operation │bits │bits │bits │Displacement │bits │Displacement │<br />

│ │ │Code │ │ │Base │ │ │ │<br />

│ │ │ │ │ │Reg. │ │ │ │<br />

│<br />

│ ├───────────┼─────┼─────┼─────┼─────────────────┼─────┼─────────────────┤<br />

│ │ │ │ │ │ ▌2▐ │ ▌1▐ │ │ │<br />

│ │ │ │ │ │ ▼ │ ▼ │ │ │<br />

│ │ ├ ─ ─ ─ ─ ─ ┼ ─ ─ ┼ ─ ─ ┼─────┼─────────────────┤ │ │<br />

RS │ D(B) │ │OP CODE │ R │ R │ B │ D │ │ │<br />

│ │ ├ ─ ─ ─ ─ ─ ┴ ─ ─ ┴ ─ ─ ┴─────┴─────────────────┤ │ │<br />

│ │ │ ┌──▌3▐ (Index Register) │ │ │<br />

│ │ │ ▼ │ │ │<br />

│ │ ├ ─ ─ ─ ─ ─ ┬ ─ ─ ┬ ─ ─ ┬─────┬─────────────────┤ │ │<br />

RX │ D(X,B) │ │OP CODE │ R │ X │ B │ D │ │ │<br />

│ │ ├ ─ ─ ─ ─ ─ ┴ ─ ─ ┴ ─ ─ ┴─────┴─────────────────┤ │ │<br />

│ │ │ │ │ │<br />

│ │ │ │ │ │<br />

│ │ ├ ─ ─ ─ ─ ─ ┬ ─ ─ ─ ─ ─ ┬─────┬─────────────────┤ │ │<br />

SI │ D(B) │ │OP CODE │ I │ B │ D │ │ │<br />

│ │ ├ ─ ─ ─ ─ ─ ┴ ─ ─ ─ ─ ─ ┴─────┴─────────────────┤ │ │<br />

│ │ │ │ ▌2▐ │ ▌1▐ │<br />

│ │ │ │ ▼ │ ▼ │<br />

│<br />

│ ├ ─ ─ ─ ─ ─ ┬ ─ ─ ─ ─ ─ ┬─────┬─────────────────┼─────┼─────────────────┤<br />

SS │ D(,B),D(B) │ │OP CODE │ L │ B │ D │ B │ D │<br />

│<br />

│ ├ ─ ─ ─ ─ ─ ┴ ─ ─ ─ ─ ─ ┴─────┴─────────────────┴─────┴─────────────────┤<br />

I<br />

represents an immediate value<br />

L<br />

represents a length<br />

B, R and R represent registers<br />

Figure 23. Format of Addresses in Object Code<br />

Lengths<br />

You can specify the length field in an SS-format instruction. This lets you indicate<br />

explicitly the number of bytes of data at a virtual storage location that is to be used<br />

by the instruction. However, you can omit the length specification, because the<br />

assembler computes the number of bytes of data to be used from the expression<br />

that represents the address of the data.<br />

See page 97 for more information about SS-format instructions.<br />

Implicit Length: When a length subfield is omitted from an SS-format machine<br />

instruction, an implicit length is assembled into the object code of the instruction.<br />

The implicit length is either of the following:<br />

For an implicit address, it is the length attribute of the first or only term in the<br />

expression representing the implicit address.<br />

For an explicit address, it is the length attribute of the first or only term in the<br />

expression representing the displacement.<br />

Explicit Length: When a length subfield is specified in an SS-format machine<br />

instruction, the explicit length always overrides the implicit length.<br />

An implicit or explicit length is the effective length. The length value assembled is<br />

90 <strong>HLASM</strong> V1R5 <strong>Language</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!