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
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
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,
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
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
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