FloatinltPoint Instructions (Contd) OP FOR· 0 NAME MNEMONIC CODE MAT OPERANDS Compare, Long (c) CDR 29 RR R1,R2 Compare, Long (c) CD 69 RX R1,D2(X2,B2) Compare, Short (c) CER 39 RR R1,R2 Compare, Short (c) CE 79 RX R 1,D2(X2,B2) Divide, Long DDR 20 RR R1,R2 Divide, Long DO 60 RX R1,D2(X2,B2) Divide, Short DER 3D RR R1,R2 Divide, Short DE 70 RX R1,D2(X2,B2) Halve, Long HDR 24 RR R1,R2 Halve, Short HER 34 RR R1,R2 Load and Test, Long (c) LTDR 22 RR R1,R2 Load and Test, Short (c) LTER 32 RR R1,R2 Load Complement, Long (c) LCDR 23 RR R1,R2 Load Complement, Short (c) LCER 33 RR R1,R2 Load, Long LOR 28 RR R1,R2 Load, Long LD 68 RX R1,D2(X2,B2) Load Negative, Long (c) LNDR 21 RR R1,R2 Load Negative, Short (c) LNER 31 RR R1,R2 Load Positive, Long (c) LPDR 20 RR R1,R2 Load Positive, Short (c) LPER 30 RR R1,R2 Load Rounded, Extended to Long (x) LRDR 25 RR R1,R2 Load Rounded, Long to Short (x) LRER 35 RR R1,R2 Load, Short LER 38 RR R1,R2 Load, Short LE 78 RX R1,D2(X2,B21 Multiply, Extended (x) MXR 26 RR R1,R2 Multiply, Long MDR 2C RR R1,R2 Multiply, Long MD 6C RX R1,D2(X2,B2) Multiply, Long/Extended (x) MXDR 27 RR R1,R2 Multiply, Long/Extended (x) MXD 67 RX R1,D2(X2,B2) Multiply, Short MER 3C RR R1,R2 Multiply, Short ME 7C RX R1,D2(X2,B2) Store, Long STD 60 RX R1,D2(X2,B2) Store, Short STE 70 RX R1,D2(X2,B2) Subtract Normalized, Extended (c,x) SXR 37 RR R1,R2 Subtract Normalized, Long (c) SDR 2B RR R1,R2 Subtract Normalized, Long (c) SO 6B RX R1,D2(X2,B2) Subtract Normalized, Short (c) SER 3B RR R1,R2 Subtract Normalized, Short (c) SE 7B RX R 1,D2(X2,B2) Subtract Unnormalized, Long (c) SWR 2F RR R1,R2 Subtract Unnormalized, Long (c) SW 6F RX R1,D2(X2,B2) Subtract Unnormalized, Short (c) SUR 3F RR R1,R2 Subtract Unnormalized, Short (c) SU 7F RX R1,D2(X2,B2}
EXTENDED MNEMONIC INSTRUCTIONSt Extended Code* Machine Instr.* Use (RX or RR) Meaning (RX or RR)
General B or BR Unconditional Branch BC or BCR 15, NOP or NOPR No Operation BC or BCR 0, After BH or BHR Branch on A High BC or BCR 2, Compare BL orBLR Branch on A Low BCor SCR 4, Instructions BE orBER Branch on A Equal B BC or SCR 8, (A:BI BNH orBNHR Branch on A Not High BC or BCR 13, BNL or BNLR Branch on A Not LQw BC or BCR 11, BNE or BNER Branch on A Not Equal B BC or BCR 7, After BO orBOR Branch on Overflow BC or BCR 1, Arithmetic BP orBPR Branch on Plus BC or BCR 2, Instructions BM orBMR Branch on Minus BC or BCR 4, BNPorBNPR Branch on Not Plus BC or BCR 13, BNM orBNMR Branch on Not Minus BC or BCR 11, BNZorBNZR Branch on Not Zero SCor SCR 7, BZ or BZR Branch on Zero BC or BCR 8, After Test BO orBOR Branch if Ones BC or SCR 1, under Mask BM orBMR Branch if Mixed BC or BCR 4, Instruction BZ or BZR Branch if Zeros BC or BCR 8, BNO orBNOR Branch if Not Ones BC or BCR 14, tSource: GC33-401 0; for ·Second operand, not shown, is D2(X2,B2) OSIVS,VM/370 and DOSIVS. for R
X format and R2 for R
R
format. SOME EDIT AND EDMK PATTERN CHARACTERS (in hex) 20-digit selector 40-blank 5C-asterisk
21-start of significance 4B-period 6B-comma
22-field separator 5B-dollar sign C3D9-CR
CONDITION CODES 0 Condition Code Setting 0 1 2 3
Mask Bit Value 8 4 2 1
General Instructions Add, Add Halfword zero <zero >zero overflow
Add Logical zero, not zero, zero, not zero,
no carry no carry carry carry
AND zero not zero
Compare, Compare Halfword equal 1st op low 1st op high
Compare and Swap/Double equal not equal
Compare Logical equal 1st op low 1st op high
Exclusive OR zero not zero I nsert Characters under Mask all zero 1st bit one 1st bit zero
Load and Test zero <zero >zero
Load Complement zero <zero >zero overflow
Load Negative zero <zero
Load Positive zero >zero overflow
Move Long count equal count low count high overlap OR zero not zero Shift Left Double/Single zero <zero >zero overflow Shift Right Double/Single zero <zero >zero Store Clock set not set error not oper Subtract, Subtract Halfword zero <zero >zero overflow
Subtract Logical not zero, zero, not zero,
no carry carry carry
Test and Set zero one
Test under Mask zero mixed ones
Translate and Test zero incomplete complete
Decimal Instructions Add Decimal zero <zero >zero overflow
Compare Decimal equal 1st op low 1st op high
Edit, Edit and Mark zero <zero >zero Shift and Round Decimal zero <zero >zero overflow
Subtract Decimal zero <zero >zero overflow Zero and Add zero <zero >zero overflow
Floating-Point Instructions Add Normalized zero <zero >zero
Add Unnormalized zero <zero >zero
Compare equal 1st op low 1st op high
Load and Test zero <zero >zero
Load Complement zero <zero >zero
Load Negative zero <zero
Load Positive zero >zero
Subtract Normalized zero <zero >zero
Subtract Unnormalized zero <zero >zero Input/Output Instructions Clear I/O no oper in CSW stored chan busy not oper
progress
Halt Device interruption CSW stored channel not oper
pending working
Halt I/O interruption CSW stored burst op not oper
pending stopped Start I/O, SIOF successful CSW stored busy not oper Store Channel I D ID stored CSW stored busy not oper
Test Channel available interruption burst mode not oper
pending
Test I/O available CSW stored busy not oper
System Control Instructions Load Real Address translation ST entry PT entry length
available invalid invalid violation
Reset Reference Bit R=O,C=O R=O, C=1 R=1, C=O R=1,C=1 Set Clock set secure not oper Signal Processor accepted stat stored busy not oper CNOP ALIGNMENT DOUBLEWORD WORD I WORD HALFWORD I HALFWORD I HALFWORD I HALFWORD
BYTE BYTE I BYTE I BYTE I BYTE BYTE I BYTE BYTE 0,8 2,8 4,8 6,8
ASSEMBLER INSTRUCTIONSt ® Function Mnemonic Meaning
Data definition DC Define constant OS Define stllrage CCW Define channel command word
Program START Start assembly sectioning CSECT Identify control section
and linking DSECT Identify dummy section
DXD* Define external dummy section
CXD* Cumulative length of external dummy section COM Identify blank common control section
ENTRY Identify entry-point symbol EXTRN Identify external symbol WXTRN Identify weak external symbol Base register USING Use base address register
assignment DROP Drop base address register Control of listings TITLE Identify assembly output
EJECT Start new page
SPACE Space listing PRINT Print optional data
Program Control ICTL Input format control ISEQ Input sequence checking
PUNCH Punch a card REPRO Reproduce following card ORG Set location counter
EQU Equate symbol OPSYN* Equate operation code PUSH * Save current PRINT or USING status POP * Restore PRINT or USING status LTORG Begin literal pool CNOP Conditional no operation COpy Copy predefined source coding
END End assembly Macro definition MACRO Macro definition header MNOTE Request for error message MEXIT Macro definition exit
MEND Macro definition trailer Conditional ACTR Conditional assembly loop counter assembly AGO Unconditional branch AIF Conditional branch ANOP Assembly no operation
GBLA Define global SETA symbol GBLB Define global SETB symbol GBLC Define global SETC symbol LCLA Define local SETA symbol LCLB Define local SETB symbol
LCLC Define local SETC symbol SETA Set arithmetic variable symbol SETB Set binary variable symbol SETC Set character variable symbol SUMMARY OF CONSTANTSt IMPLIED LENGTH, TYPE BYTES ALIGNMENT FORMAT C
- byte characters
X -byte hexadecimal digits
B -byte binary digits
F 4 word fixed-point binary
H
2 halfword fixed-point binary
E 4 word short floatin!}-point 0 8 doubleword long floatin!}-point L 16 doubleword extended floating-point
P -byte packed decimal Z -byte zoned decimal A 4 word value of address
Y 2 halfword value of address S 2 halfword address in baslHlisplacement form
V 4 word externally defined address value Q* 4 word symbol naming a DXD or DSECT
tSource: GC33-4010; for OS/VS, VM/370, and DOS/VS, ·OS/VS and VM/370 only, TRUNCA- TIDNI PADDING right left left left left right
right
right left left left left - left left
1/0 COMMAND CODES Standard Command Code Assignments (CCW bits 0-7) xxxx 0000 Invalid tttt ttOl Write
Read
Control
tttt 0100 Sense tttt ttl0 xxxx 1000 Transfer in Channel tttt ttll tttt 1100 Read Backward 0000 0011 Control No Operation x-Bit ignored_ t Modifier bit for specific type of I/O device CONSOLE PRINTERS Write, No Carrier Return
Write, Auto Carrier Return
Read Inquiry 01 Sense 09 Audible Alarm OA 04 OB
3504,3505 CARD READERS/3525 CARD PUNCH Source: GA21-9124
Command Binary Hex Bit Meanings Sense 0000 0100 04 Stacker Feed, Select Stacker SS10 FOll 00 -1-
Read Only* llDOF010 01/10 2
Diagnostic Read (invalid for 3504) 1101 0010 02 E Format Mode
Read, Feed, Select Stacker* SSDO F010 0 Unformatted
Write RCE Format* 0001 0001 11
1 Formatted
3504, 3505 only
0 Data Mode
Write OMR Format t 0011 0001 31 0 l-EBCDIC 3525 only 1 2-Card image
Write, Feed, Select Stacker SSDO 0001 L Line Position
Print Line* LLLL L101 5=bit binary value
*Special feature on 3525. tSpecial feature. PRINTERS: 3211/3811 (GA24-3543). 3203/IPA, 1403*/2821 (GA24-3312)
After Write Immed
Write without spacing 01 Space 1 Line 09 OB Sense 04 Space 2 Lines 11 13 Load UCSB without folding FB Space 3 Lines 19 1B Foldt 43 Skip to Channel ot 83 Unfoldt 23 Skip to Channel 1 89 8B Load UCSB and Fold (exc. 3211) F3 Skip to Channel 2 91 93 UCS Gate Load (14030nly) EB Skip to Channel 3 99 9B Load FCB (exc. 1403) 63 Skip to Channel 4 Al A3 Block Data Check 73 Skip to Channel 5 A9 AB Allow Data Check 7B Skip to Channel 6 Bl B3 Read PLBt 02 Skip to Channel 7 B9 BB Read UCSBt OA Skip to Channel 8 C1 C3 Read FCBt 12 Skip to Channel 9 C9 CB Diag. Check Read (exc. 3203) 06 Skip to Channel 10 Dl D3 Diagnostic Write t 05 Skip to Channel 11 D9 DB Raise Covert 6B Ski to Channel 12 El E3 Diagnostic Gate t 07 Adv. to End of Sheet (3203 only) 5B Diagnostic Read (1403 only) 02 * UCS special feature; I PA diagnostics are model-dependent. t3211 only_ 3420/3803,3410/3411 MAGNETIC TAPE (* * Indicates 3420 only)
See GA32-0020 -0021 -0022 for special features and functions of specific models
Density Parity DC Trans Cmd
Write 01 { f" off
13
Read Forward 02 odd off { off 33
Read Backward OC 200 on 3B Sense 04 even off { 23 CJ Sense Reserve* * F4 2B
Sense Release** 04 t: { {"" off
53
Request Track-in-Error lB ... odcl off { off 73
Loop Write-to-Read* * 8B Q;-< 556 on 7B Set Diagnose** 4B en even off { off
63 CIl Rewind 07 "0 6B 0 { {"" Rewind Unload OF 93
Erase Gap 17
odd off { off B3
Write Tape Mark 1F 800 on BB
Backspace Block 27
even off { off
A3
Backspace File 2F on AB
Forward Space Block 37
Forward Space File 3F Mode Set 2 (9-track). 800 bpi CB
Data Security Erase ** 97 Mode Set 2 (9-track), 1600 bpi C3
Diagnostic Mode Set ** OB Mode Set 2 (9-track). 6250 bpi * * D3
Next Page