소스 검색

* 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 6 년 전
부모
커밋
8a96bb656f
1개의 변경된 파일1개의 추가작업 그리고 9개의 파일을 삭제
  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);