On Fri, Dec 2, 2011 at 5:58 PM, Martin Truebner <[email protected]> wrote:

> You must have really goofed it....
>
> I can not even imagine the (weird) circumstances where such an error
> would occur.
>
> Who (in a non friday mode) would code
>    L    R15,=V(R15)
>    BASR R14,R15
>
> or what caused it?

Hey, I went for the booze *after* this, not before...  Martin was very
close, except that I did not code the mishap myself but have a macro
to do it.

There's a CALL macro we inherited from a very ancient MVS release. It
takes a symbol (to generate the =V(xxx) operand) or a register in
parentheses. The other part is that I have a convenient COND macro
that does an IF / FI for a single instruction. Unfortunately HLASM
unravels the parentheses and complained about my  COND
NOTZERO,CALL,(15) and silly enough I coded it as COND
NOTZERO,CALL,(R15) which made HLASM happy. Obviously that generated
the reference to a routine R15 which was not intended...

Weekend! Rob

Reply via email to