Paul Gilmartin wrote:
On Aug 18, 2010, at 20:33, Steve Smith wrote:

Furthermore, it is incorrect to put a USING statement before it is valid
(although it is fairly common).  It should be moved after your commented
line.  The USING for R13 is also obviously premature.


What do you do when you're marching through control blocks
using a single base register?  There's inevitably a point
in code between the L and the USING where the prior using
is invalid.  I suppose you could do:

    L  (different register)
    DROP
    LR
    USING

-- gil


L   R15,something
USING SomethingD,R15
L   R15,otherthing
USING OtherthingD,R15
...
DROP R15

...works fine, and is common idiom.  Besides, my rule is that the USING
always immediately follows the setup of the base register.  So no one
should ever be sticking new instructions there.

sas

Reply via email to