On 3/26/2015 18:07, John Ehrman wrote:
Steve Smith asked for the answer to my quiz question of March 23:
While we're having fun: under what circumstances is the character
sequence
(4)(3)(2)(1)
legal as part of a machine instruction operand, not part of a quoted
string, not part of a macro operand, and not part of a SETC statement?
And no, it's not an "April-Fool" question.
Here's the answer:
USING *,12
&V(4) SETC 'L'
LA 0,=A&V(4)(3)(2)(1)
END
Try assembling it! (And no, it wasn't my idea originally.)
Regards... John
Thanks! That's a great trick.
I have to admit I had to assemble it to see what it actually did... and
I have actually used a literal with an index register before. So
something similar to this *might* actually be useful. The subscripted
SETC is a stretch, though.
sas