On Mar 8, 2011, at 03:15, Robert A. Rosenberg wrote: > At 06:52 PM -0500 on 03/07/2011, Tony Harminc wrote about Re: EQUate > to a character string: > >> Typically you would use >> >> CLC MYSTRING,=A(CODE) >> >> but this is a bit doubtful... It tempts the beginner into thinking that >> >> WRONG EQU C'ABCDE' >> CLC MYSTRING,=A(WRONG) >> >> might work, and it won't. > > OTOH, since MYSTRING is apparently 5 bytes long, this SHOULD work: > > WRONG EQU C'ABCDE' > CLC MYSTRING,=AL5(WRONG) > > Although you need to go AMODE 64 since this constant needs 33 bits to > be stored and thus is beyond 32-bit addressing.
Errr... I haven't tested this. But I believe you're conflating assembly time expression evaluation which is always 32-bit with execution time arithmetic. AMODE has no effect on the former. -- gil
