Hi Rashid, Thanks for the reply, here in my program i am working on PC-Program Counter value which is also known as IP - Instruction Pointer value. I want to know that whether the current instruction executed is a call instruction or not.
On Thu, May 29, 2014 at 5:28 PM, Rashid Siddique <[email protected]>wrote: > Hi Neelam > > Look into this code may be this is help full. > > event void Timer0.fired() { > counter++; > if (!busy) { > BlinkToRadioMsg* btrpkt = > (BlinkToRadioMsg*)(call Packet.getPayload(&pkt, > sizeof(BlinkToRadioMsg))); > if (btrpkt == NULL) { > return; > } > btrpkt->nodeid = TOS_NODE_ID; > btrpkt->counter = counter; > if (call AMSend.send(AM_BROADCAST_ADDR, > &pkt, sizeof(BlinkToRadioMsg)) == SUCCESS) { > busy = TRUE; > } > > Best Regards > Rashid > > > On Thu, May 29, 2014 at 12:43 PM, Neelam Surti <[email protected]>wrote: > >> Hi all, >> I am working on a program were i want to check whether the current >> program counter value matches with a specific value than i want do some >> task. The problem is how to get the program counter value in tinyos 2.1.0? >> >> Please help me if someone knows the technique. >> >> >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> > >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
