On 8/6/2018 8:23 AM, Keven wrote:
Ditto for
EX R0,*
except that you get a 0C3 program interrupt instead, which is usually a sign of
code scuttling itself and can be treated as such in recovery routines.
Yes, I used the 'EX R0,*' technique back in the 80s and early 90s before
R&I existed. However, it requires more code to implement and does not
work with "baseless" code. For example, let's suppose we have a "should
never occur" condition where R1>R14.
In 2018, I will code:
CGR R1,R14
JH *+2
Using the old-school 'EX R0,*' technique, I would need to code:
IF CGR,R1,GT,R14
EX R0,*
ENDIF ,
which generates a conditional branch *around* the 'EX R0,*' instruction.
Both are effective, but for performance reasons I prefer a branch that
is never taken to one that is always taken. Also, these days I don't
have a base register covering my code, so I would need to use EXRL
instead which only works on z10 and higher machines.
--
Phoenix Software International
Edward E. Jaffe
831 Parkview Drive North
El Segundo, CA 90245
https://www.phoenixsoftware.com/
--------------------------------------------------------------------------------
This e-mail message, including any attachments, appended messages and the
information contained therein, is for the sole use of the intended
recipient(s). If you are not an intended recipient or have otherwise
received this email message in error, any use, dissemination, distribution,
review, storage or copying of this e-mail message and the information
contained therein is strictly prohibited. If you are not an intended
recipient, please contact the sender by reply e-mail and destroy all copies
of this email message and do not otherwise utilize or retain this email
message or any or all of the information contained therein. Although this
email message and any attachments or appended messages are believed to be
free of any virus or other defect that might affect any computer system into
which it is received and opened, it is the responsibility of the recipient
to ensure that it is virus free and no responsibility is accepted by the
sender for any loss or damage arising in any way from its opening or use.