Page 1 of 1

how to call a function with only the

Posted: Fri Jun 06, 2008 4:37 pm
by sazuker
how to call a function with only the address of it?

lets say my function address

FunctionAddress.l = $00000001

How can I call this?

Posted: Fri Jun 06, 2008 4:43 pm
by Chaos

Code: Select all

callfunctionfast(*ptr, param1, param2 ...)
or

Code: Select all

!PUSH param1
..
..
..
!CALL *tr
(with the corect syntax of course :) )

Posted: Fri Jun 06, 2008 4:46 pm
by hallodri

Code: Select all

prototyp func(a)

afunc.func = address 

afunc(0)


Posted: Fri Jun 06, 2008 5:34 pm
by sazuker
thank you very much