On Tue, 27 Dec 2016 17:01:40 -0800, Charles Mills wrote:

>Why won't this assemble?
>
>SOME  CSECT
>      LLILF 2,FOO
>OTHER CSECT
>FOO   EQU   *
>
>Why do I get ASMA032E Relocatable value or unresolved symbol found when
>absolute value required - FOO?
>
>Can't the assembler generate a relocatable address constant for the
>immediate operand of LLILF? Or am I doing something stupid that I am not
>seeing?
>
>DC A(FOO) at the same spot assembles with no problem. I could presumably
>code DC X'C02F',AL4(FOO) and it would execute correctly.
>
Conway's law; a disdain for reusable code.  Interestingly, I've encountered
somewhat the complement of this: a literal reference is accepted in a
12-bit address RS instruction; a syntax error in an S-type constant.
I suppose there might be some objection that allowing the latter would
open the gate to recursive literal definition.  But why fear recursion?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to