Call Exception.CreateRes in inline assembler

139 views Asked by At

How do I call an Exception with a resource string message using inline assembler?

I tried various things, but nothing seems to work. I get things like inline assembler syntax error or operant sizes does not match.

resourcestring
  sMessage = 'Test 123';

procedure foo;
asm
  mov eax, @sMessage
  push eax
  call Exception.CreateRes
end;
0

There are 0 answers