Uploaded by Satyabrata Dash

RELATIVE

advertisement
000000 00000 001DD 1 TESTPM1 CSECT *ENTRY ROUTINE STARTS 000000 90EC D00C 0000C 2 STM 14,12,12(13) 000004 05C0 3 BALR 12,0 R:C 00006 4 USING *,12 000006 50D0 C16E 00174 5 ST 13,SAVEAREA+4 00000A 41D0 C16A 00170 6 LA 13,SAVEAREA 7 * ENTRY ROUTINE ENDS 00000E 5850 C152 00158 8 L 5,NUM1 000012 5A50 C156 0015C 9 A 5,NUM2 000016 4E50 C162 00168 10 CVD 5,BCD 00001A F397 C1C3 C162 001C9 00168 11 UNPK VAR1,BCD 000020 96F0 C1CC 001D2 12 OI VAR1+9,X'F0' 13 WTO TEXT=MSG1 0000AC 5840 C15A 00160 53 L 4,NUM3 0000B0 1B45 54 SR 4,5 0000B2 4E40 C162 00168 55 CVD 4,BCD 0000B6 F397 C1C3 C162 001C9 00168 56 UNPK VAR1,BCD 0000BC 96F0 C1CC 001D2 57 OI VAR1+9,X'F0' 58 WTO TEXT=MSG1 *EXIT ROUTINE STARTS
000148 58D0 C16E 00174 98 L 13,SAVEAREA+4 00014C 98EC D00C 0000C 99 LM 14,12,12(13) 000150 41F0 0000 00000 100 LA 15,0 000154 07FE 101 BR 14 *EXIT ROUTINE ENDS 000156 0000 000158 0000000F 102 NUM1 DC F'15' 00015C 00000007 103 NUM2 DC F'7' 000160 00000008 104 NUM3 DC F'8' 000168 105 BCD DS D 000170 106 SAVEAREA DS 18F 0001B8 0023 107 MSG1 DC AL2(L'MSGX) 0001BA 108 MSGX DS 0CL35 0001BA D9C5E2E4D3E34040 109 DC CL15'RESULT IS ' 0001C9 110 VAR1 DS CL10 0001D3 4040404040404040 111 DC CL10'' 000000 112 END TESTPM1 Symbol Length Value BCD 8 00000168
MSGX 35 000001BA
MSG1 2 000001B8
NUM1 4 00000158
NUM2 4 0000015C
NUM3 4 00000160
SAVEAREA 4 00000170
TESTPM1 1 00000000
VAR1 10 000001C9
=================================================================
TESTPM1 CSECT STM 14,12,12(13) BALR 12,0 USING *,12 ST 13,SAVEAREA+4 LA 13,SAVEAREA * L 5,158(,7) 344
A 5,15C(,7) 348
CVD 5,BCD UNPK VAR1,BCD OI VAR1+9,X'F0' WTO TEXT=MSG1
L 4,160(,7) 352
SR 4,5
CVD 4,BCD UNPK VAR1,BCD OI VAR1+9,X'F0' WTO TEXT=MSG1 L 13,SAVEAREA+4 LM 14,12,12(13) LA 15,0 BR 14 NUM1 DC F’15’
NUM2 DC F’7’
NUM3 DC F’8’
BCD DS D SAVEAREA DS 18F MSG1 DC AL2(L'MSGX) MSGX DS 0CL35 DC CL15'RESULT IS ' VAR1 DS CL10 DC CL10'' END TESTPM1 EXPLICIT Addressing ASSEMBLER program: EXMPL1 CSECT
STM14,12,12(13)
LR12, 15
USINGEXMPL1, 12
L 5,24(,15)
A 5,28(,15)
ST 5,36(,15)
L 4,32(,15)
SR 4,5
ST 4,40(,15)
BCR B’1111’,14
NUM1 DC F’15’
NUM2 DC F’7’
NUM3 DC F’8’
RESULT1 DS F
RESULT2 DS F
END EXMPL1
Download