I'm wondering just as CrazyCat why you want to retrieve the PC, do you really need it?
If you do need it, see below for one way how to do it.
This snippet gets the PC as it is at the STX instruction, just after the LEAX.
Daniel
Code:
unsigned int pcVar;void test(void) { __asm { LEAX 0,PC; STX pcVar; }}