On 2016-11-28, at 06:46, [email protected] wrote:

>       Ds 0d is sufficient in data area.
> 
But it doesn't leave room for the fullword.


On 2016-11-28, at 06:39, Jonathan Scott wrote:
> 
> 
> Here's a general solution which I mentioned on this list earlier
> this year (in the thread "Friday Puzzle: CNOP 1,2"), which shows
> how to use ORG for the general case:
> 
>        MACRO
> &LABEL   ALIGN &BOUNDARY,&OFFSET
>        ORG   *+&BOUNDARY-(&OFFSET),&BOUNDARY,&OFFSET-(&BOUNDARY)
> &LABEL   DS    0X
>        MEND  ,
> 
> Note that unlike CNOP this macro expects boundary first then
> offset, but you can of course invent your own macro the other way
> round.  In many cases, the ORG can be simplified a little, but
> this rather complicated form works even when the current location
> counter is less than the specified offset from the start of the
> section or LOCTR.
> 
Does a transitory negative offset from LOCCTR cause problems?
Even if no code is generated there?

But I'll persist in preferring my:

      DS    1F
      DS    0D
      ORG   *-4

o Fewer keystrokes
o Easier (for me) to understand.

But does the new-fangled ORG support something really fancy,
such as alignment to a multiple of 5 bytes?

-- gil

Reply via email to