mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 20:26:00 +02:00
* patch by Marģers: patch to enable ENTER asm instruction
+ test
This commit is contained in:
parent
a6fe41f3f6
commit
d5ab671ec3
@ -1664,8 +1664,9 @@ implementation
|
||||
else
|
||||
begin
|
||||
{ allow 2nd, 3rd or 4th operand being a constant and expect no size for shuf* etc. }
|
||||
{ further, allow AAD and AAM with imm. operand }
|
||||
{ further, allow ENTER, AAD and AAM with imm. operand }
|
||||
if (opsize=S_NO) and not((i in [1,2,3])
|
||||
or ((i=0) and (opcode in [A_ENTER]))
|
||||
{$ifndef x86_64}
|
||||
or ((i=0) and (opcode in [A_AAD,A_AAM]))
|
||||
{$endif x86_64}
|
||||
|
10
tests/test/tasm30.pp
Normal file
10
tests/test/tasm30.pp
Normal file
@ -0,0 +1,10 @@
|
||||
{ %NORUN }
|
||||
{ %CPU=i386,x86_64 }
|
||||
|
||||
program tasm30;
|
||||
|
||||
begin
|
||||
asm
|
||||
enter $5,$1234
|
||||
end;
|
||||
end.
|
Loading…
Reference in New Issue
Block a user