RE: ASM Help

new topic     » topic index » view thread      » older message » newer message

> -----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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu