I am referring to the next MACHINE instruction after the EQU, note you have
a slack byte between LAB1 and LAB2, here is my example:
000000                00000 00014     1 TESTMAP CSECT ,

000000 07FE                           2         BR    14

000002 D506 E000 F000 00000 00000     3         CLC   0(7,R14),0(R15)

000008                                4         DS    CL5

                      0000D           5 MYTAG   EQU   *

00000D 00

00000E D504 F001 1000 00001 00000     6         CLC   1(5,R15),0(R1)

Note that in my case the assembler made it obvious that there is a slack
byte at X'000D' so a branch to MYTAG would result in an 0C1.

On Wed, Oct 2, 2024 at 4:16 PM Tom Brennan <[email protected]>
wrote:

> It better not, otherwise things like this wouldn't give the right length.
>
> STRING  DC  C'SOME LENGTH STRING'
> STRINGL EQU *-STRING
>
>    Loc  Object Code    Addr1 Addr2  Stmt   Source Statement
>                                      114 *
> 000054                              116 START    DS    CL1
>                        00055         117 LAB1     EQU   *
> 000056                              118 LAB2     DS    0h
> 000056 47F0 C056            00056   120          B     LAB2
> 00005A 47F0 C055            00055   121          B     LAB1
> ** ASMA212W Branch address alignment for LAB1 unfavorable
>
> On 10/2/2024 1:58 PM, David Spiegel wrote:
> > Hi R'Shmuel AMV"SH,
> > I realize that DS 0H forces alignment. I was wondering if EQU *
> > does/does not.
> >
> > כתיבה וחתימה טובה
> >
> > Regards,
> > David
> >
> >
> > On 2024-10-02 11:33, Seymour J Metz wrote:
> >> It is still true that DS 0H forces alignment.
> >>
> >> --
> >> Shmuel (Seymour J.) Metz
> >> http://mason.gmu.edu/~smetz3
> >> עַם יִשְׂרָאֵל חַי
> >> נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר
> >>
> >>
> >>
> >> ________________________________________
> >> From: IBM Mainframe Discussion List <[email protected]> on
> >> behalf of David Spiegel <[email protected]
> >
> >> Sent: Wednesday, October 2, 2024 9:07 AM
> >> To: [email protected]
> >> Subject: Re: Question on HLASM - B to a DROP statement!?!
> >>
> >> Caution: This email did not originate from George Mason’s mail system.
> >> Do not click links or open attachments unless you recognize the sender
> >> and know the content is safe.
> >>
> >>
> >> Hi Allan,
> >> As a rule, "DS 0H" used to be safer than "EQU *" since the former forces
> >> half-word alignment.
> >> (I do not know if that is still true.)
> >>
> >> Regards,
> >> David
> >>
> >>
> >> On 2024-10-02 08:38, Allan Staller wrote:
> >>> Classification: Confidential
> >>>
> >>> Suggested code change to resolve..
> >>>
> >>> -----Original Message-----
> >>> From: IBM Mainframe Discussion List <[email protected]> On
> >>> Behalf Of Steve Thompson
> >>> Sent: Tuesday, October 1, 2024 4:29 PM
> >>> To: [email protected]
> >>> Subject: Question on HLASM - B to a DROP statement!?!
> >>>
> >>> Suggested code change to resolve:
> >>>
> >>>            B  DROPR11
> >>>
> >>> DROPR11 EQU  *
> >>>            DROP R11
> >>>            LA   R1,xxxxx  (or something similar)
> >>> ----------------------------------------------------------------------
> >>> For IBM-MAIN subscribe / signoff / archive access instructions, send
> >>> email to [email protected] with the message: INFO IBM-MAIN
> >>> ::DISCLAIMER::
> >>> ________________________________
> >>> The contents of this e-mail and any attachment(s) are confidential
> >>> and intended for the named recipient(s) only. E-mail transmission is
> >>> not guaranteed to be secure or error-free as information could be
> >>> intercepted, corrupted, lost, destroyed, arrive late or incomplete,
> >>> or may contain viruses in transmission. The e mail and its contents
> >>> (with or without referred errors) shall therefore not attach any
> >>> liability on the originator or HCL or its affiliates. Views or
> >>> opinions, if any, presented in this email are solely those of the
> >>> author and may not necessarily reflect the views or opinions of HCL
> >>> or its affiliates. Any form of reproduction, dissemination, copying,
> >>> disclosure, modification, distribution and / or publication of this
> >>> message without the prior written consent of authorized
> >>> representative of HCL is strictly prohibited. If you have received
> >>> this email in error please delete it and notify the sender
> >>> immediately. Before opening any email and/or attachments, please
> >>> check them for viruses and other defects.
> >>> ________________________________
> >>>
> >>> ----------------------------------------------------------------------
> >>> For IBM-MAIN subscribe / signoff / archive access instructions,
> >>> send email to [email protected] with the message: INFO IBM-MAIN
> >>
> >> ----------------------------------------------------------------------
> >> For IBM-MAIN subscribe / signoff / archive access instructions,
> >> send email to [email protected] with the message: INFO IBM-MAIN
> >>
> >>
> >> ----------------------------------------------------------------------
> >> For IBM-MAIN subscribe / signoff / archive access instructions,
> >> send email to [email protected] with the message: INFO IBM-MAIN
> >
> >
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to [email protected] with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>


-- 
Wayne Driscoll
Software Engineer | Mainframe Software Division
Broadcom Software

*Office: *630-300-1931* Mobile:* 630-310-1784
[email protected]

-- 
This electronic communication and the information and any files transmitted 
with it, or attached to it, are confidential and are intended solely for 
the use of the individual or entity to whom it is addressed and may contain 
information that is confidential, legally privileged, protected by privacy 
laws, or otherwise restricted from disclosure to anyone else. If you are 
not the intended recipient or the person responsible for delivering the 
e-mail to the intended recipient, you are hereby notified that any use, 
copying, distributing, dissemination, forwarding, printing, or copying of 
this e-mail is strictly prohibited. If you received this e-mail in error, 
please return the e-mail to the sender, delete it from your computer, and 
destroy any printed copy of it.

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

Reply via email to