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;