Xbot

New to S12X stack frame structure (need assistance) repost

Discussion created by Xbot on May 26, 2008
Latest reply on May 27, 2008 by Xbot
Hello all,
 
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:
 
Code:

voidAccessViolation_InterruptHandler(void){

int pc_t;

char gpage_t;

   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.
 
thanks,

Outcomes