This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Get an address of function

I am using 89v51RD2.
my question is how to push an address of a function on to stack in C??
For the same how do I get address of a function??
Plz Help.

Parents
  • situation is,
    when i get last byte from external interrupt 0 den Function(); should get called.
    But Function(); also needs some information from external interrupt. Now the thing is, if I call that function in ISR then I wont get new byte from INT 0 that is why i need to push address of function(); on to the stack instead of address from where ISR got called.

Reply
  • situation is,
    when i get last byte from external interrupt 0 den Function(); should get called.
    But Function(); also needs some information from external interrupt. Now the thing is, if I call that function in ISR then I wont get new byte from INT 0 that is why i need to push address of function(); on to the stack instead of address from where ISR got called.

Children