How to mov EAX, &func?
Mehrdad
wfunction at hotmail.com
Wed May 16 12:41:32 PDT 2012
On Wednesday, 16 May 2012 at 18:17:50 UTC, Walter Bright wrote:
> On 5/16/2012 2:40 AM, Mehrdad wrote:
>> The trouble with 'sticking to D code' is that, well, I
>> can't... it's naked...
>
> Just insert an asm call to a function that returns the address
> of foo.
Hmmm... interesting idea.
Not a real fan of this solution, since it's extra code, and it
involves a function call (and I was trying to avoid function
calls in this code, since it's going to be in a boot-sector-like
thing). But I think it'll work, thanks...
More information about the Digitalmars-d
mailing list