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.

Examples of coded machine instructions┌────────┬─────────┬────┬───/────┬────┬────/────┐│Op Code │ L │ B₁ │ D₁ │ B₂ │ D₂ │└────────┴─────────┴────┴───/────┴────┴────/────┘0 8 16 20 32 36 47┌────────┬────┬────┬────┬───/────┬────┬────/────┐│Op Code │ L₁ │ L₂ │ B₁ │ D₁ │ B₂ │ D₂ │└────────┴────┴────┴────┴───/────┴────┴────/────┘0 8 12 16 20 32 36 47┌────────┬────┬────┬────┬───/────┬────┬────/────┐│Op Code │ L₁ │ I₃ │ B₁ │ D₁ │ B₂ │ D₂ │└────────┴────┴────┴────┴───/────┴────┴────/────┘0 8 12 16 20 32 36 47┌────────┬────┬────┬────┬───/────┬────┬────/────┐│Op Code │ R₁ │ R₃ │ B₁ │ D₁ │ B₂ │ D₂ │└────────┴────┴────┴────┴───/────┴────┴────/────┘0 8 12 16 20 32 36 47┌────────┬────┬────┬────┬───/────┬────┬────/────┐│Op Code │ R₁ │ R₃ │ B₂ │ D₂ │ B₄ │ D₄ │└────────┴────┴────┴────┴───/────┴────┴────/────┘0 8 12 16 20 32 36 47Symbols used to represent base registers (see BASE8 and BASE7 in the instructionlabeled ALPHA2 below) in explicit addresses are assumed to be equated to absolutevalues between 0 and 15.Symbols used to represent explicit lengths (see NINE and SIX in the instructionlabeled ALPHA2 below) are assumed to be equated to absolute values between 0 and256 for SS-format instructions with one length specification, and between 0 and 16for SS-format instructions with two length specifications.Symbols used to represent implicit addresses (see FIELD1 and FIELD2 in theinstruction labeled ALPHA3, and FIELD1,X’8’ in the SRP instructions below) can beeither relocatable or absolute.Symbols used to represent displacements (see DISP40 and DISP30 in the instructionlabeled ALPHA5 below) in explicit addresses are assumed to be equated to absolutevalues between 0 and 4095.See page 86 for more information about the lengths of SS-format instructions.Examples:ALPHA1 AP 40(9,8),30(6,7)ALPHA2 AP 40(NINE,BASE8),30(SIX,BASE7)ALPHA3 AP FIELD1,FIELD2ALPHA4 AP AREA(9),AREA2(6)ALPHA5 AP DISP40(,8),DISP30(,7)BETA1 MVC 0(80,8),0(7)BETA2 MVC DISP0(,8),DISP0(7)BETA3 MVC TO,FROMSRPFIELD1,X’8’,3When assembled, the object code for the instruction labeled ALPHA1, inhexadecimal, is:FA858028701Ewhere:FA is the operation code.94 <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!