i would like to read the PC and global page register from the stack, on an event of an access violation interrupt (or perhaps an interrupt in general). I am not familiar with the stack frame structure.
here is what i have initially:
asm movw 2,sp+7, pc_t; //im not sure about this
asm movb 1, sp+6, gpage_t; //this too
i still need to be walked thru the assembler codes as well.