Procházet zdrojové kódy

* declare all registers as clobbered by int 10h in the asm block in SetVisual200_350 and leave it to fpc to preserve what is necessary

git-svn-id: trunk@41103 -
nickysn před 6 roky
rodič
revize
8a96bb656f
1 změnil soubory, kde provedl 1 přidání a 9 odebrání
  1. 1 9
      packages/graph/src/go32v2/graph.pp

+ 1 - 9
packages/graph/src/go32v2/graph.pp

@@ -2237,16 +2237,8 @@ End;
     asm
       mov ax,[page]    { only lower byte is supported. }
       mov ah,05h
-      push ebp
-      push esi
-      push edi
-      push ebx
       int 10h
-      pop ebx
-      pop edi
-      pop esi
-      pop ebp
-    end ['EDX','EAX'];
+    end ['EAX','EBX','ECX','EDX','ESI','EDI','EBP'];
   end;
 
  procedure SetActive200(page: word);