| ??? 05/31/02 12:36 Read: times |
#23692 - RE: any way of reading P2 SFR ?peter |
i must have been very vague.here's the deal
1.i am saving a task context when an interrupt causes preemption.the code is naturally: push acc push psw etc. 2.i wanted p2 to be part of the context.so i tried push p2 for storing context.as for the reasons mentioned by manuals and you people it did not work as it was pushing pin contents rather than latch. 3.my idea to use p2 as part of context so that programmer can have dual data pointers which are static in nature.by push dpl,dph i can save one of them.the other is p2+r0/r1.i am saving r0 to r7 also.but push pop p2 did not work.so i posted question asking confiramtion about my conclusions. 4.as mentioned by peter some hardwares have special shadow to track p2 conents.this is absent is my 80c552. if i wasted you people's valuable time i am sorry for that. regards pranav |



