HomeDelphiDelphi Error – E2116 Invalid combination of opcode and operands

Delphi Error – E2116 Invalid combination of opcode and operands

Delphi Compiler Error

E2116 Invalid combination of opcode and operands

Reason for the Error & Solution

You have specified an inline assembler statement which is not correct.

program Produce;

  procedure AssemblerExample;
  asm
    mov al, $0f0 * 16
  end;

begin
end.

The inline assembler is not capable of storing the result of $f0 * 16 into the ‘al’ register – it simply won’t fit.

program Solve;
  procedure AssemblerExample;
  asm
    mov al, $0f * 16
  end;

begin
end.

Make sure that the type of both operands are compatible.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Delphi Compiler Error X2421 Imported identifier ‘%s’ conflicts with ‘%s’ in ‘%s’ Reason for the Error & Solution This occurs...
Delphi Compiler Error X2367 Case of property accessor method %s.%s should be %s.%s Reason for the Error & Solution No...
Delphi Compiler Error X2269 Overriding virtual method ‘%s.%s’ has lower visibility (%s) than base class ‘%s’ (%s) Reason for the...