As I recall, VM CP set the CC as an indicator of success when returning from a routine/module. I don't know about CMS. So the technique was used many years ago. But it's been 30+ years since I last saw any CP source.
Gary Weinhold from blackberry From: [email protected] Sent: December 8, 2018 07:48 To: [email protected] Reply to: [email protected] Subject: Re: Getting the Last Condition Code The RC in our case is the CC. Type in haste repent at leisure. Equal - ok, low - bad, high - unexpected. We don’t (say) set an 8 in r15 everywhere. Allows us to branch conditionally without requiring a compare after the return. > On Dec 8, 2018, at 3:58 AM, Robin Vowels <[email protected]> wrote: > > > EXTERNAL > ====================================================================== > From: "Alan Atkinson" <[email protected]> > Sent: Saturday, December 08, 2018 1:34 PM > > >> So smelly or not we have a lot of stuff that branches conditionally based on >> return codes > > Nothing unusual about that. > > Has nothing to do with condition codes. > >> from whatever was just called. CLI *,0 and *,255 along with CR R11,R11 gives >> a range of options for indicating if something was good, bad or indifferent. >> >> The ability to insert (say) a logging routine to trace an operation by using >> an IPM / <log> / SPM and not having to do the <expensive cc setting routine> >> over again or worry that <log> changed the cc outweighs the idea that doing >> <expensive cc setting operation> twice is somehow more intellectually pure. >> >> YMMV, but it works. > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus Gary Weinhold Senior Application Architect DATAKINETICS | Data Performance & Optimization Phone: +1.613.523.5500 x216<tel:+1.613.523.5500%20x216> Email: [email protected]<mailto:[email protected]> [http://www.dkl.com/wp-content/uploads/2015/07/dkl_logo.png]<http://www.dkl.com/> Visit us online at www.DKL.com<http://www.dkl.com/> [http://www.dkl.com/wp-content/uploads/2015/08/banner.png]<http://www.dkl.com/mailsig> E-mail Notification: The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.
