Re: Using EQU with length

2024-07-17 Thread Paul Gilmartin
On 7/17/24 16:12, Tony Harminc wrote: On Wed, 17 Jul 2024 at 16:56, João Reginato wrote: As you can see, WKLEN already has a calculated value of x'023c' when the second EQU is written. Why don't use it? ... The listing with the length shown that you are relying on to make that claim was pr

Re: Using EQU with length

2024-07-17 Thread Tony Harminc
On Wed, 17 Jul 2024 at 16:56, João Reginato wrote: > As you can see, WKLEN already has a calculated value of x'023c' when the > second EQU is written. > Why don't use it? > > 0023C 25379 WKLEN EQU > *-WKSAVE > 00684 4 25380 WKARE

Re: Using EQU with length

2024-07-17 Thread Jonathan Scott
gil writes: > Does that imply that the value of > SYMBOL EQU * > following such a field whose "length cannot be resolved" > is similarly unresolvable by lookahead? Lookahead does not resolve locations. It can resolve the type of a symbol or the length of a DC/DS statement or similar. Du

Re: Using EQU with length

2024-07-17 Thread Paul Gilmartin
On 7/17/24 11:28, Jonathan Scott wrote: ... Note for example that if the start of some area is fullword aligned but it contains a doubleword aligned field then the length cannot be resolved until the assembler can tell whether the start is on an odd or even fullword boundary. . Does that imp

Re: Using EQU with length

2024-07-17 Thread Jonathan Scott
I must admit that one of the bullets of the explanation of message ASMA182E doesn't make sense to me: - It is derived from an absolute value. This text appears to have been added in 1987 for the equivalent message IEV182 in the third edition of the Programmer's Guide for Assembler H V2, so it pre

Re: Using EQU with length

2024-07-17 Thread Jonathan Scott
Any length specified on EQU must be able to be evaluated at the time that the EQU statement is processed, otherwise message ASMA0182E will be produced. This means not only that the definition must have been seen, but also that the definition can be processed and resolved to an numeric value. If t