11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

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

Create successful ePaper yourself

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

Examples of coded machine instructions┌────────┬─────────┬────┬────────────┐│Op Code │ I₂ │ B₁ │ D₁ │└────────┴─────────┴────┴────────────┘0 8 16 20 31Symbols used to represent immediate data (see HEX40 and TEN in the instructionslabeled ALPHA2 and BETA1 below) are assumed to be equated to absolute valuesbetween 0 and 255.Symbols used to represent implicit addresses (see IMPLICIT and KEY in theinstructions labeled BETA1 and BETA2) can be either relocatable or absolute.Symbols used to represent displacements (see DISPL40 in the instruction labeledALPHA2 below) in explicit addresses are assumed to be equated to absolute valuesbetween 0 and 4095.Examples:ALPHA1 CLI 40(9),X’40’ALPHA2 CLI DISPL40(NINE),HEX40BETA1 CLI IMPLICIT,TENBETA2 CLI KEY,C’E’When assembled, the object code for the instruction labeled ALPHA1, inhexadecimal, is:95409028where95 is the operation code.40 is the immediate data.9 is the base register.028 is the displacement from the base registerSSformatThe operand fields and subfields of SS-format instructions designate two virtualstorage addresses (coded as implicit addresses or explicit addresses) and,optionally, the explicit data lengths you want to include. However, note that, in theShift and Round Decimal (SRP) instruction, a 4-bit immediate data field (see 3 inSRP instruction below), with a value between 0 and 9, is specified as a thirdoperand.Chapter 4. Machine instruction statements 93

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

Saved successfully!

Ooh no, something went wrong!