Re: Friday puzzle: CNOP 1,2

2016-08-23 Thread Paul Gilmartin
On 2016-08-23, at 10:21, Ngan, Robert wrote: > Hmm, there's always something new to learn with the assembler. I've never > encountered the boundary and offset operands of ORG. That's useful to know > for future coding. > The only thing that ORG doesn't do vs. DC is emit the potential filler by

Re: Friday puzzle: CNOP 1,2

2016-08-23 Thread Ngan, Robert
Hmm, there's always something new to learn with the assembler. I've never encountered the boundary and offset operands of ORG. That's useful to know for future coding. The only thing that ORG doesn't do vs. DC is emit the potential filler byte. Is uninitialized csect/rsect storage still an is

Re: Friday puzzle: CNOP 1,2

2016-08-23 Thread Lifshitz, Michael
Thanks Jonathan. Correct. The error of mine... -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Jonathan Scott Sent: Tuesday, August 23, 2016 1:36 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Friday puzzle: CNOP 1,2 Ref:

Re: Friday puzzle: CNOP 1,2

2016-08-23 Thread Jonathan Scott
Ref: Your note of Tue, 23 Aug 2016 10:52:13 +0100 OK, I've spotted why I used the more complex format: ORG*+&BOUNDARY-&OFFSET,&BOUNDARY,&OFFSET-&BOUNDARY instead of ORG*-&OFFSET,&BOUNDARY,&OFFSET If you use the simpler form too close to the start of a section, so that t

Re: Friday puzzle: CNOP 1,2

2016-08-23 Thread Jonathan Scott
Ref: Your note of Tue, 23 Aug 2016 09:43:14 + Michael Lifshitz wrote: > Jonathan, isn't it the same as > > ORG *-&OFFSET,&BOUNDARY,&OFFSET > > ? Yes, I'd have thought that your simpler form would have exactly the same effect as the form in my old ALIGN macro: ORG*+&BOUNDARY-

Re: Friday puzzle: CNOP 1,2

2016-08-23 Thread Lifshitz, Michael
Jonathan, isn't it the same as ORG *-&OFFSET,&BOUNDARY,&OFFSET ? -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Jonathan Scott Sent: Tuesday, August 23, 2016 12:25 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Fr

Re: Friday puzzle: CNOP 1,2

2016-08-23 Thread Jonathan Scott
I have the following macro lying around which I presume I wrote to solve this problem. I leave whether it is correct or not as an exercise for the reader (as it appears I never used it). MACRO &LABEL ALIGN &BOUNDARY,&OFFSET ORG *+&BOUNDARY-&OFFSET,&BOUNDARY,&OFFSET-&BOUNDARY