On Tue, 27 Dec 2016 19:52:26 -0800 Charles Mills <[email protected]> wrote:
:>I guess the answer is found in the Assembler manual: "Immediate data must be
:>specified as absolute expressions whose range of values depends on the
:>machine instruction for which the data is required."
:>
:>There is no good reason why what I am attempting *should* not work. As I
:>said, if I code DC X'C02F',AL4(FOO) I believe I will get exactly what I
:>intended and it will execute as intended. But it doesn't work because it
:>doesn't work. It doesn't work because "immediate data must be specified as
:>absolute expressions."
That will not work.
You would need
DC X'C02F',AL4((FOO-*-2)/2)
Don't know if this will assembler
:>Charles
:>
:>-----Original Message-----
:>From: IBM Mainframe Discussion List [mailto:[email protected]] On
:>Behalf Of Charles Mills
:>Sent: Tuesday, December 27, 2016 5:02 PM
:>To: [email protected]
:>Subject: ASMA032E Relocatable value or unresolved symbol found when absolute
:>value required
:>
:>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.
:>
:>----------------------------------------------------------------------
:>For IBM-MAIN subscribe / signoff / archive access instructions,
:>send email to [email protected] with the message: INFO IBM-MAIN
--
Binyamin Dissen <[email protected]>
http://www.dissensoftware.com
Director, Dissen Software, Bar & Grill - Israel
Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.
I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN