Not sure why no one has mentioned the COMPARE AND TRAP type instructions, in 
most(?) cases they'll do the test and force the abend when required.
My only gripe is there's no extended mnemonic for an unconditional TRAP when 
there's no appropriate "compare" (e.g. I need to do a TM).
I had to code an unconditional trap (with mask B'1110') within a "xxxTRAP" 
macro since I've never memorized the condition code mask settings, and didn't 
want to manually code them every time I needed an unconditional trap.

Robert Ngan
HCL

-----Original Message-----
From: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU> On Behalf 
Of Gord Tomlin
Sent: Monday, August 6, 2018 10:57
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: EX

On 2018-08-06 10:35, Ed Jaffe wrote:
> We use 'Jxx *+2' which disturbs no registers and is guaranteed to fail
> with an 0C1.

'EX 0,*' was my old standby, but 'Jxx *+2' eliminates the need for a code base 
register and so is more generally usable in modern code.

--

Regards, Gord Tomlin
Action Software International
(a division of Mazda Computer Corporation)
Tel: (905) 470-7113, Fax: (905) 470-6507
Support: https://actionsoftware.com/support/

DXC Technology Company - Headquarters: 1775 Tysons Boulevard, Tysons, Virginia 
22102, USA.
DXC Technology Company -- This message is transmitted to you by or on behalf of 
DXC Technology Company or one of its affiliates.  It is intended exclusively 
for the addressee.  The substance of this message, along with any attachments, 
may contain proprietary, confidential or privileged information or information 
that is otherwise legally exempt from disclosure. Any unauthorized review, use, 
disclosure or distribution is prohibited. If you are not the intended recipient 
of this message, you are not authorized to read, print, retain, copy or 
disseminate any part of this message. If you have received this message in 
error, please destroy and delete all copies and notify the sender by return 
e-mail. Regardless of content, this e-mail shall not operate to bind DXC 
Technology Company or any of its affiliates to any order or other contract 
unless pursuant to explicit written agreement or government initiative 
expressly permitting the use of e-mail for such purpose.

Reply via email to