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-(*-&SYSECT)/2)X'00'   Simulate a CNOP 1,2

However, this generates ASMA067S Illegal duplication factor.

Yes, I could use LAY instead of LARL, or I could use an aligned halfword length 
(which is what I've ended up doing for now).  However, for curiosity's sake, 
does anyone know of a technique for forcing alignment to the next odd byte 
(i.e. a theoretical CNOP 1,2)?


Robert Ngan
CeleritiFinTech Services


CSC - This is a PRIVATE message - If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to bind 
the Company to any order or other contract unless pursuant to explicit written 
agreement or government initiative expressly permitting the use of e-mail for 
such purpose.

Reply via email to