Hello Martin
I am not able to figure it out which instruction to use from MPCxxxx instruction set for PC and PSW. what are the actual Program counter(PC) and program status word(PSW) equivalent registers in MPCxxxx instruction set.
I have a renesas v850 assembly code below, now i have use same using MPC5606B instruction set
first part:-
stsr 0, r1 /* Store the contents of eipc values in register 1 */
stsr 1, r5 /* Store the contents of eipsw in register 5 */
/*EIPC and EIPSW : -Interrupt status saving registers , EIPC and EIPSW are used to save the status when an interrupt occurs. If a software exception or a maskable interrupt occurs, the contents of the program counter (PC) are saved to EIPC, and the contents of the program status word (PSW) are saved to EIPSW*/
second part :
ori 0x20, r5, r5 /* Disabling the interrupts*/
ori 0x40, r5, r5 /*Exception is being processed.:-Indicates that an exception is being processed. This bit is set to 1 when an exception occurs. Even if this bit is set, interrupt requests are acknowledged*/
In second part i can use MSR register bit EE to disable the interrupt (if not correct please let me know which one to use and how to use it),
In second part , in MPXxxx instruction set Which register says the exception handling , which register i have to access to say that i have handled the exception occurrence.
best Regards
vijay