hm.. I was just wondering if you do something like
.data
api001 dd (address of an api)
.code
call api001
What does masm replace call api001 with, something like call [ds+0] ??
Assemble it and tell us.
Probably because api001 is the first in your data segment; [ds+0] points to api001.
If it was the n-th in your .data, you would have [ds+n*sizeof(whatever)].
should be call dword ptr [api001] tho otherwise it'd probably crash ;)
Parse,
It's the job of the windows loader to locate the adresses of API functions.
Ok, I figured out what I wanted to do was pretty useless so I found a different, better, way.