RE: ASM Help
call_back() returns a value wich is a pointer to an Eu
function.
Call it from ASM or use call().
example:
atom ptr
ptr = call_back(routine_id("crap"))
call(crap)
Mike The Spike
--- Matthew Lewis <matthewwalkerlewis at YAHOO.COM>
wrote:
>
> > -----Original Message-----
> > From: stabmaster_ at HOTMAIL.COM
> [mailto:stabmaster_ at HOTMAIL.COM]
> >
> > First of all, I see an evil typo in here. You're
> storing the
> > adress to CALL
> > in EDX, but you're CALLin EAX..
> > And you shouldn't use CALL FAR, but CALL NEAR.
> >
> > This is how to call a procedure (void) with one
> parameter:
> >
> > PUSH the_parameter
> > MOV EAX, proc_address
> > CALL NEAR EAX
>
> Thanks. Unfortunately, I haven't been able to get
> that to work, so I've
> taken a different route. I wrote a little DLL (63K
> compressed) in VC that
> will call the funcs by pointer, taking up to 10
> arguments.
>
> Rob, I'd like to add this to the wishlist: call
> functions by pointer. It
> seems it shouldn't be hard to do, since you probably
> already do something
> like this for c_func.
>
> Matt Lewis
>
|
Not Categorized, Please Help
|
|