HLASM Language Reference

HLASM Language Reference HLASM Language Reference

faculty.cs.niu.edu
from faculty.cs.niu.edu More from this publisher
22.02.2015 Views

Examples of Coded Machine Instructions ┌────────┬─────────┬────┬───/────┬────┬────/────┐ │Op Code │ L │ B │ D │ B │ D │ └────────┴─────────┴────┴───/────┴────┴────/────┘ 8 16 2 32 36 47 ┌────────┬────┬────┬────┬───/────┬────┬────/────┐ │Op Code │ L │ L │ B │ D │ B │ D │ └────────┴────┴────┴────┴───/────┴────┴────/────┘ 8 12 16 2 32 36 47 ┌────────┬────┬────┬────┬───/────┬────┬────/────┐ │Op Code │ L │ I │ B │ D │ B │ D │ └────────┴────┴────┴────┴───/────┴────┴────/────┘ 8 12 16 2 32 36 47 ┌────────┬────┬────┬────┬───/────┬────┬────/────┐ │Op Code │ R │ R │ B │ D │ B │ D │ └────────┴────┴────┴────┴───/────┴────┴────/────┘ 8 12 16 2 32 36 47 ┌────────┬────┬────┬────┬───/────┬────┬────/────┐ │Op Code │ R │ R │ B │ D │ B │ D │ └────────┴────┴────┴────┴───/────┴────┴────/────┘ 8 12 16 2 32 36 47 Symbols used to represent base registers (see BASE8 and BASE7 in the instruction labeled ALPHA2 below) in explicit addresses are assumed to be equated to absolute values between 0 and 15. Symbols used to represent explicit lengths (see NINE and SIX in the instruction labeled ALPHA2 below) are assumed to be equated to absolute values between 0 and 256 for SS-format instructions with one length specification, and between 0 and 16 for SS-format instructions with two length specifications. Symbols used to represent implicit addresses (see FIELD1 and FIELD2 in the instruction labeled ALPHA3, and FIELD1,X'8' in the SRP instructions below) can be either relocatable or absolute. Symbols used to represent displacements (see DISP4 and DISP3 in the instruction labeled ALPHA5 below) in explicit addresses are assumed to be equated to absolute values between 0 and 4095. See page 90 for more information about the lengths of SS-format instructions. Examples: ALPHA1 AP 4(9,8),3(6,7) ALPHA2 AP 4(NINE,BASE8),3(SIX,BASE7) ALPHA3 AP FIELD1,FIELD2 ALPHA4 AP AREA(9),AREA2(6) ALPHA5 AP DISP4(,8),DISP3(,7) BETA1 MVC (8,8),(7) BETA2 MVC DISP(,8),DISP(7) BETA3 MVC TO,FROM SRP FIELD1,X'8',3 When assembled, the object code for the instruction labeled ALPHA1, in hexadecimal, is: FA8582871E 98 HLASM V1R5 Language Reference

Examples of Coded Machine Instructions where: FA is the operation code. 8 is length L 5 is length L 8 is base register B 28 is displacement D from base register B 7 is base register B 1E is displacement D from base register B When assembled, the object code for the instruction labeled BETA1, in hexadecimal, is: D24F87 where: D2 is the operation code 4F is length L 8 is base register B is displacement D from base register B 7 is base register B is displacement D from base register B Chapter 4. Machine Instruction Statements 99

Examples of Coded Machine Instructions<br />

┌────────┬─────────┬────┬───/────┬────┬────/────┐<br />

│Op Code │ L │ B │ D │ B │ D │<br />

└────────┴─────────┴────┴───/────┴────┴────/────┘<br />

8 16 2 32 36 47<br />

┌────────┬────┬────┬────┬───/────┬────┬────/────┐<br />

│Op Code │ L │ L │ B │ D │ B │ D │<br />

└────────┴────┴────┴────┴───/────┴────┴────/────┘<br />

8 12 16 2 32 36 47<br />

┌────────┬────┬────┬────┬───/────┬────┬────/────┐<br />

│Op Code │ L │ I │ B │ D │ B │ D │<br />

└────────┴────┴────┴────┴───/────┴────┴────/────┘<br />

8 12 16 2 32 36 47<br />

┌────────┬────┬────┬────┬───/────┬────┬────/────┐<br />

│Op Code │ R │ R │ B │ D │ B │ D │<br />

└────────┴────┴────┴────┴───/────┴────┴────/────┘<br />

8 12 16 2 32 36 47<br />

┌────────┬────┬────┬────┬───/────┬────┬────/────┐<br />

│Op Code │ R │ R │ B │ D │ B │ D │<br />

└────────┴────┴────┴────┴───/────┴────┴────/────┘<br />

8 12 16 2 32 36 47<br />

Symbols used to represent base registers (see BASE8 and BASE7 in the instruction<br />

labeled ALPHA2 below) in explicit addresses are assumed to be equated to absolute<br />

values between 0 and 15.<br />

Symbols used to represent explicit lengths (see NINE and SIX in the instruction<br />

labeled ALPHA2 below) are assumed to be equated to absolute values between 0<br />

and 256 for SS-format instructions with one length specification, and between 0 and<br />

16 for SS-format instructions with two length specifications.<br />

Symbols used to represent implicit addresses (see FIELD1 and FIELD2 in the<br />

instruction labeled ALPHA3, and FIELD1,X'8' in the SRP instructions below) can be<br />

either relocatable or absolute.<br />

Symbols used to represent displacements (see DISP4 and DISP3 in the instruction<br />

labeled ALPHA5 below) in explicit addresses are assumed to be equated to absolute<br />

values between 0 and 4095.<br />

See page 90 for more information about the lengths of SS-format instructions.<br />

Examples:<br />

ALPHA1 AP 4(9,8),3(6,7)<br />

ALPHA2 AP 4(NINE,BASE8),3(SIX,BASE7)<br />

ALPHA3 AP FIELD1,FIELD2<br />

ALPHA4 AP AREA(9),AREA2(6)<br />

ALPHA5 AP DISP4(,8),DISP3(,7)<br />

BETA1 MVC (8,8),(7)<br />

BETA2 MVC DISP(,8),DISP(7)<br />

BETA3 MVC TO,FROM<br />

SRP<br />

FIELD1,X'8',3<br />

When assembled, the object code for the instruction labeled ALPHA1, in<br />

hexadecimal, is:<br />

FA8582871E<br />

98 <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!