Browse Source

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

git-svn-id: branches/z80@44628 -
nickysn 5 years ago
parent
commit
472ac716b7
1 changed files with 1 additions and 1 deletions
  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