Răsfoiți Sursa

* don't typecast the const to aint in taicpu.op_const_reg and .op_reg_const, because, on the Z80, aint
is 8-bit (we treat it as having an 8-bit ALU), but it also has 16-bit instructions and registers,
that can take 16-bit consts

git-svn-id: branches/z80@44626 -

nickysn 5 ani în urmă
părinte
comite
fe20a00711
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      compiler/z80/aasmcpu.pas

+ 2 - 2
compiler/z80/aasmcpu.pas

@@ -152,7 +152,7 @@ implementation
          inherited create(op);
          ops:=2;
          loadreg(0,_op1);
-         loadconst(1,aint(_op2));
+         loadconst(1,_op2);
       end;
 
      constructor taicpu.op_const_reg(op:tasmop; _op1: LongInt; _op2: tregister);
@@ -187,7 +187,7 @@ implementation
         inherited create(op);
         ops:=2;
         loadref(0,_op1);
-        loadconst(1,aint(_op2));
+        loadconst(1,_op2);
       end;