It works for me with HLASM R6.0, and is as Charles Mills said: it changes the
location counter value reported in the listing.
I wouldn’t think it would change the relative address in the object? Because
then your entry point would be greater than the CSECT size.
Without the expression:
Loc Object Code Addr1 Addr2 Stmt Source Statement
000000 00000 00002 1 START
000000 07FE 2 BR 14
3 END
With the expression:
Loc Object Code Addr1 Addr2 Stmt Source Statement
001000 01000 00002 1 START X'1000'
001000 07FE 2 BR 14
3 END
-----Original Message-----
From: IBM Mainframe Assembler List <[email protected]> On Behalf
Of Dan Greiner
Sent: Wednesday, June 3, 2020 12:57 AM
To: [email protected]
Subject: z/390 Assembler and START statement.
According to the HLASM Language Reference manual (SC26-4940), the START
statement may be used to create the first control section in an assembly and
define an expression that is used to set the initial location counter. For
example:
START X'1000'
BR 14
END
should generate an assembly where the BR instruction appears at location 1000
hex.
However, the z/390 assembler does not appear to recognize the expression on the
START statement, and flags no error for this. In the listing, the address of
the BR14 is zero, and in object file, the relative address in the .TXT record
is also zero ... regardless of what expression I use.
This is certainly not a major issue, and I can easily circumvent it. But, I was
curious if I'm incorrectly using START (or is this behavior an undocumented
feature)?
DXC Technology Company - Headquarters: 1775 Tysons Boulevard, Tysons, Virginia
22102, USA.
DXC Technology Company -- This message is transmitted to you by or on behalf of
DXC Technology Company or one of its affiliates. It is intended exclusively
for the addressee. The substance of this message, along with any attachments,
may contain proprietary, confidential or privileged information or information
that is otherwise legally exempt from disclosure. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended recipient
of this message, you are not authorized to read, print, retain, copy or
disseminate any part of this message. If you have received this message in
error, please destroy and delete all copies and notify the sender by return
e-mail. Regardless of content, this e-mail shall not operate to bind DXC
Technology Company or any of its affiliates to any order or other contract
unless pursuant to explicit written agreement or government initiative
expressly permitting the use of e-mail for such purpose. --.