[CDG5] MPW code mysteries

Max Poliakovski maximumspatium at googlemail.com
Sat Dec 29 05:02:06 AWST 2018


> > I don't understand this message. What do I need to put there in order to
> get the base address of TOC placed there?
> Perhaps DC.L TOC[TC0] - Data_Start + Data_Base_Address? Data_Start is the
> label that ends up at 0x00100000 and Data_Base_Address is 0x00100000.
> Haven't tested it.


PPCAsm says that neither Data_Start nor Data_Base_Address are known so I'm
stuck for now.

I copied the TOC definition DC.L TOC[TC0] from transition vectors. It seems
to emit the TOC base address just fine from inside a CSECT [DS] section.
But the executable code is wrapped in a CSECT [PR] section so it doesn't
work there as expected. TOC[TC0] seems to return an offset but I need the
absolute address of TOC.

Where can I ask for help on this? Code examples are difficult to find,
PPCAsm doc is brief and I'm bad at reading between the lines...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ucc.gu.uwa.edu.au/pipermail/cdg5/attachments/20181228/f8b0016e/attachment.htm 


More information about the cdg5 mailing list