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

Load function in assembly

If I have the address of particular function, is it possible load the function in assembly?

I understand that usually the function is loaded as

LCALL _function

but I was wondering whether it is possible to load the function with its address?

Appreciate anyone who can offer me advise on this. Thank you.

Parents
  • Thank you all for your replies.

    To clarify my question, what I needed to do was to call a function whose address is stored in variables.

    Anyway, as suggested, I have tried by loading the return address and the function onto the stack and it is working fine.

    Thank you.

Reply
  • Thank you all for your replies.

    To clarify my question, what I needed to do was to call a function whose address is stored in variables.

    Anyway, as suggested, I have tried by loading the return address and the function onto the stack and it is working fine.

    Thank you.

Children
No data