None of the above.  The answer is "Inelegant and stupid".
Actually, I take part of that back.  It is common, in code written by
morons.
David de Jongh


-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]]
On Behalf Of zMan
Sent: Thursday, July 02, 2015 3:00 PM
To: [email protected]
Subject: *+n branches

I was raised to do single-instruction branches thus:
        TM   FLAG,BIT               Is the flag bit set?
        BO    *+8                        Yes, skip next instruction
        L      R15,SOMEVAL        No, get the value
*+8   DS    0H

Yes, of course I realize that the "DS 0H" is meaningless, but it helps
readability.

My question is whether folks see this as:
- useful
- common
- overly clever
- evil
...or what?

I've often wished for an assembly option that would note "*+n" branches and
warn if they were not skipping one instruction (and doing so *exactly*!).
--
zMan -- "I've got a mainframe and I'm not afraid to use it"

Reply via email to