borland x86 inlined assembler; label's address?
i am controlling borland turbo c++ inlined assembler code, presumably turbo assembler (tasm) impression public code. i wish following:
void foo::bar( vacant )
{
__asm
{
mov eax, somelabel
// ...
}
// ...
somelabel:
// ...
}
so castle somelabel placed eax. doesn't work compiler complains of: capricious representation 'somelabel'.
in microsoft assembler (masm) dollar representation ($) serves tide plcae counter, useful purpose. nonetheless again does seem work borlands assember (expression syntax error).
update: small some-more specific, i need compiler beget castle moves eax consistent during compilation/linking during run time, accumulate "mov eax, 0x00401234".
can anybody advise working?
update: respond pax's doubt (see comment), bottom castle altered during run windows loader dll/exe pe settlement still relocated windows loader labels castle patched during run loader re-based castle controlling compile/link value tag castle an issue.
many interjection advance.
Comments
Post a Comment