On 21 October 2014 10:09, Tom Marchant <
0000000a2a8c2020-dmarc-requ...@listserv.ua.edu> wrote:
> I've never seen a case where "BALR is used to return to the caller."

Well... Here's the epilog code for a non-main function generated by an
oldish version of IBM C:

00010E                    Start of Epilog
00010E  58D0  D004        00413 |                 L     r13,4(,r13)
000112  58E0  D00C        00413 |                 L     r14,12(,r13)
000116  9824  D01C        00413 |                 LM    r2,r4,28(r13)
00011A  051E              00413 |                 BALR  r1,r14
00011C  0707              00413 |                 NOPR  7
00011E  0000

000120                    Start of Literals
000120  0100018D                                        =F'16777613'
000124  05000194                                        =F'83886484'
000128  0900019A                                        =F'150995354'
00012C                    End of Literals

Why they use[d] BALR I don't know, but surely they don't plan to return to
the NOPR and the certain program check that follows. Perhaps the NOPR can
be changed to something else for debugging.

Tony H.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to