Re: Friday puzzle: CNOP 1,2

2016-08-19 Thread Robin Vowels
From: "Ngan, Robert" Sent: Saturday, August 20, 2016 4:47 AM I'm writing a macro to build length prefixed character strings. The length is one byte, and the actual string is referenced by LARL so it needs to be halfword aligned. So I coded (what would be a CNOP 1,2 - if it

Re: Friday puzzle: CNOP 1,2

2016-08-19 Thread Paul Gilmartin
On 2016-08-19 16:01, Ngan, Robert wrote: > I wanted the length aligned on the odd byte, so the immediately following > (labeled) string was on a halfword boundary and could therefore be referenced > using a LARL. > How about: DSCAllow at least one byte DS0H

Re: Friday puzzle: CNOP 1,2

2016-08-19 Thread Ngan, Robert
I wanted the length aligned on the odd byte, so the immediately following (labeled) string was on a halfword boundary and could therefore be referenced using a LARL. Just realized my expression was doing DIVISION by 2 instead of the MODULO 2 I wanted. I was calling it a (conceptual) CNOP,

Re: Friday puzzle: CNOP 1,2

2016-08-19 Thread Tony Harminc
On 19 August 2016 at 14:47, Ngan, Robert wrote: > I'm writing a macro to build length prefixed character strings. The length is one byte, and the actual string is referenced by LARL so it needs to be halfword aligned. The string needs to be halfword aligned, or the length byte

Re: Friday puzzle: CNOP 1,2

2016-08-19 Thread Ed Jaffe
On 8/19/2016 11:47 AM, Ngan, Robert wrote: Yes, I could use LAY instead of LARL LAY requires base register coverage, so it's not really an acceptable substitute for LARL. , or I could use an aligned halfword length (which is what I've ended up doing for now). We pretty much always code

Friday puzzle: CNOP 1,2

2016-08-19 Thread Ngan, Robert
I'm writing a macro to build length prefixed character strings. The length is one byte, and the actual string is referenced by LARL so it needs to be halfword aligned. So I coded (what would be a CNOP 1,2 - if it was valid): DC(1-(*-)/2)X'00' Simulate a CNOP 1,2 However, this