On Sun, 13 Sep 2020 at 13:18, FancyDancer <[email protected]>
wrote:


> The main claim to fame that this package has is that is is able to
> override the normal precedence of AND conjuctions and have OR conjunctions
> be evaluated at a higher priority, by adding an extra pair of parentheses
> around two or more logic expressions conjoined by OR:
>
> IF (CLC,A,Z,NE),AND,((CLC,B,Z,NE),OR,(CLC,C,Z,NE))
>

I dislike conditional expressions with built-in side effects. My concern is
that you often use the condition code from other types of instructions, not
just things like CLC. It gets ugly when you can't predict which part of the
expression may be executed or the order in which the clauses will run.

I am using structured programming in HLASM as well, but use John Hartmann's
set of macros that use simple condition codes as expressions, with the
preceding instructions developing the condition code.

Rob

Reply via email to