Borland x86 inlined assembler; get a label's address?

前端 未结 12 924
清酒与你
清酒与你 2021-01-05 03:15

I am using Borland Turbo C++ with some inlined assembler code, so presumably Turbo Assembler (TASM) style assembly code. I wish to do the following:

void foo         


        
12条回答
  •  粉色の甜心
    2021-01-05 03:54

    Just guessing since I haven't used inline assembler with any C/++ compiler...

    void foo::bar( void )
    {
        __asm
        {
          mov eax, SomeLabel
          // ...
        }
        // ...
        __asm
        {
          SomeLabel:
          // ...
        }
        // ...
    }
    

    I don't know the exact syntax of TASM.

提交回复
热议问题