mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 19:29:22 +02:00
+ when targeting the i8087, emit FWAIT prefix manually for the 8087 instructions
that require it in the NASM asm writer, since NASM doesn't do it itself. git-svn-id: trunk@26107 -
This commit is contained in:
parent
12b2f86e99
commit
0020a2ed10
@ -972,6 +972,13 @@ interface
|
||||
AsmWriteln(#9#9'DB'#9'09bh')
|
||||
else
|
||||
begin
|
||||
{$ifdef i8086}
|
||||
{ nickysn note: I don't know if the 187 requires FWAIT before
|
||||
every instruction like the 8087, so I'm including it just in case }
|
||||
if (current_settings.cputype<=cpu_186) and
|
||||
requires_fwait_on_8087(fixed_opcode) then
|
||||
AsmWriteln(#9#9'DB'#9'09bh');
|
||||
{$endif i8086}
|
||||
{$ifndef i8086}
|
||||
{ We need to explicitely set
|
||||
word prefix to get selectors
|
||||
|
Loading…
Reference in New Issue
Block a user