One obvious use is for coroutines.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Vernooij, Kees (ITOP NM) - KLM <kees.verno...@klm.com> Sent: Tuesday, January 22, 2019 8:38 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: BALR and BAL in AMODE=24 I wonder what the purpose of this is. It branches to R14, usually the return address, unless you loaded the destination address in R14 first. I am used to BALR R14,15, where R15 is the (conventional) destination address. Kees. > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of esst...@juno.com > Sent: 22 January, 2019 14:31 > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: BALR and BAL in AMODE=24 > > I remember back in the CICS/VS days we would code a BALR 14,14 > It was a great Interview question to explain the workings of a BALR > instruction. > > ---------- Original Message ---------- > From: John Gateley <jrg.spur...@outlook.com> > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: BALR and BAL in AMODE=24 > Date: Tue, 22 Jan 2019 06:43:54 -0600 > > Hello. > > The link information in the 24-bit addressing mode consists of the > instruction-length code (ILC), the condition code (CC), the program-mask > bits, and the rightmost 24 bits of the updated instruction address. > > I have never given much thought to the high byte when using this > instruction and switched to BASR and BAS years ago. > > Just for personal interest, does anyone recall a program using the > contents of the link register other than as a return address? > > Thanks for any replies. > John > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ******************************************************** For information, services and offers, please visit our web site: http://secure-web.cisco.com/1Z5AoR6n60zWWEZxgV7N4LGjWoOUzzVzKHqidjYG6oucKYJsvAF8vOw8OPezbI9Vy9sh2d3-xk630oxN-xhgbjAqSk2bV8HrATHR0-hg7h-h44bwsT7SCKQYQnCn-pHTj-ameH5UAvh-c2OSsH5_AXV4SkxWRQCW5qLiOAQXgPKJopB4Y_u8IGvz3ObYitfZGakRt2pprirFIAkuzmO5IysumRazs2lN_9SUNZebL2Tt6cmz0CkuZVebWx9RURMMHHJiqO26CMHPcpyBq-mQmVdj99OE72WeOYb9RmjlhxNktU67eObRGgiFW0cwc3sLFEVAR6S31rDhpZbvG9XmZIM3nhAYlF6hHbVjGKlqitdqzYkcdoqlAYcRQJn4VxQkZ/http%3A%2F%2Fwww.klm.com. This e-mail and any attachment may contain confidential and privileged material intended for the addressee only. If you are not the addressee, you are notified that no part of the e-mail or any attachment may be disclosed, copied or distributed, and that any other action related to this e-mail or attachment is strictly prohibited, and may be unlawful. If you have received this e-mail by error, please notify the sender immediately by return e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for the incorrect or incomplete transmission of this e-mail or any attachments, nor responsible for any delay in receipt. Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch Airlines) is registered in Amstelveen, The Netherlands, with registered number 33014286 ******************************************************** ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN