SS format

The operand fields and subfields of SS-format instructions designate two virtual storage addresses (coded as implicit addresses or explicit addresses) and, optionally, the explicit data lengths you want to include. However, note that, in the Shift and Round Decimal (SRP) instruction, a 4-bit immediate data field (see 3 in SRP instruction below), with a value between 0 and 9, is specified as a third operand.

*--------*---------*----*---/----*----*----/----*
|Op Code |    L    | B1 |   D1   | B2 |   D2    |
*--------*---------*----*---/----*----*----/----*
0         8        16   20       32   36       47

*--------*----*----*----*---/----*----*----/----*
|Op Code | L1 | L2 | B1 |   D1   | B2 |   D2    |
*--------*----*----*----*---/----*----*----/----*
0         8   12   16   20       32   36       47

*--------*----*----*----*---/----*----*----/----*
|Op Code | L1 | I3 | B1 |   D1   | B2 |   D2    |
*--------*----*----*----*---/----*----*----/----*
0         8   12   16   20       32   36       47

*--------*----*----*----*---/----*----*----/----*
|Op Code | R1 | R3 | B1 |   D1   | B2 |   D2    |
*--------*----*----*----*---/----*----*----/----*
0         8   12   16   20       32   36       47

*--------*----*----*----*---/----*----*----/----*
|Op Code | R1 | R3 | B2 |   D2   | B4 |   D4    |
*--------*----*----*----*---/----*----*----/----*
0         8   12   16   20       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 DISP40 and DISP30 in the instruction labeled ALPHA5 below) in explicit addresses are assumed to be equated to absolute values between 0 and 4095.

See topic Lengths 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,FIELD2
ALPHA4   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,FROM
         SRP             FIELD1,X'8',3

When assembled, the object code for the instruction labeled ALPHA1, in hexadecimal, is:

FA858028701E

where:

FA
is the operation code.
8
is length L1
5
is length L2
8
is base register B1
028
is displacement D1 from base register B1
7
is base register B2
01E
is displacement D2 from base register B2

When assembled, the object code for the instruction labeled BETA1, in hexadecimal, is:

D24F80007000

where:

D2
is the operation code
4F
is length L
8
is base register B1
000
is displacement D1 from base register B1
7
is base register B2
000
is displacement D2 from base register B2

[ Top of Page | Previous Page | Next Page | Contents | Index ]