瀏覽代碼

* mark the 8-bit versions of the registers as volatile when calling procedures/functions

git-svn-id: branches/z80@44628 -
nickysn 5 年之前
父節點
當前提交
472ac716b7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/z80/cpubase.pas

+ 1 - 1
compiler/z80/cpubase.pas

@@ -106,7 +106,7 @@ unit cpubase;
         {$i rz80dwa.inc}
       );
       { registers which may be destroyed by calls }
-      VOLATILE_INTREGISTERS = [RS_A,RS_BC,RS_DE,RS_HL];
+      VOLATILE_INTREGISTERS = [RS_A,RS_B,RS_C,RS_D,RS_E,RS_H,RS_L];
       VOLATILE_FPUREGISTERS = [];
 
     type