Think of it this way: the USING specifies "Max-16" and the implied
address specifies -(Max-16) so the difference between the two that's
needed for the displacement is the implied address minus the USING
value, or (-(Max-16)-(Max-16))=(-2*Max)+16+16=32, which to 31 bits
is 32=X'020'.
John Ehrman
(------------------ Referenced Note Follows --------------------)
Date: 15 September 2010, 10:14:32 +1000
From: "Paul Gilmartin" <[email protected]>
Sent: Sunday, 12 September 2010 4:57 PM
> Another test:
>
> Active Usings: None
> Loc Object Code Addr1 Addr2 Stmt Source Statement
> 000000 00000 00004 1 NEGDISP CSECT
> 2 *
> R:1 FFFFF0 3 USING X'7FFFFFF0',R1
> 000000 4132 1020 00010 4 LA R3,-X'7FFFFFF0'(R2)
Did I miss something here?
Should the displacement in the object code be x'010', not x'020' ?