Browse Source

* fix for #31645. Probably 16-bits mnemonics now really generate 16-bits opcodes,
so now really use 32-bit mnemonics for pushf/pusha and pop variants.

git-svn-id: trunk@35752 -

marco 8 years ago
parent
commit
f218076c8a
1 changed files with 8 additions and 8 deletions
  1. 8 8
      packages/ptc/src/dos/timeunit/timeunit.pp

+ 8 - 8
packages/ptc/src/dos/timeunit/timeunit.pp

@@ -110,32 +110,32 @@ Label
 
 Asm
   mov CpuFlags, 0
-  pushf
+  pushfd
   pop eax
   mov ecx, eax
   xor eax, 40000h
   push eax
-  popf
-  pushf
+  popfd
+  pushfd
   pop eax
   xor eax, ecx
   jz nocpuid
   push ecx
-  popf
+  popfd
   mov eax, ecx
   xor eax, 200000h
   push eax
-  popf
-  pushf
+  popfd
+  pushfd
   pop eax
   xor eax, ecx
   je nocpuid
 
-  pusha
+  pushad
   mov eax, 1
   cpuid
   mov CpuFlags, edx
-  popa
+  popad
 
 nocpuid:
 end;