Hi all, im trying to code a real time micro kernel for MSC1213, but 2 problems had occurred:
1) How can I do a RETI instruction? In others words, I want to do this: POP, POP, CLR TF0.... (I was using interrupt from timer 0)
2) I want to put the value from stack here:
void (code *task_pc)(); task_pc = 16 bits value from stack
But stack is only 8 bits, so i think i should use dptr....
Any ideas??
Thanks in advance