Sfoglia il codice sorgente

Patched an issue with allocating stack during enter -- tested with Minos and it works now.

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@6368 8c9fc860-2736-0410-a75d-ab315db34111
felixf 9 anni fa
parent
commit
77a1d04c46
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      source/FoxARMBackend.Mod

+ 1 - 1
source/FoxARMBackend.Mod

@@ -1569,7 +1569,7 @@ TYPE
 						Emit2(opLDR, count, InstructionSet.NewImmediateOffsetMemory(InstructionSet.PC, 8+4, {InstructionSet.Decrement}));
 						(* label *)
 						Emit2(opSTR, zero, InstructionSet.NewImmediateOffsetMemory(InstructionSet.SP, 4, {InstructionSet.Decrement, InstructionSet.PreIndexed}));
-						Emit3(opSUB, count, count, InstructionSet.NewImmediate(1));
+						Emit3WithFlags(opSUB, count, count, InstructionSet.NewImmediate(1),{InstructionSet.flagS});
 						Emit1WithCondition(opB, InstructionSet.NewImmediate(-8 -8), InstructionSet.conditionGT); (* label *)
 					END;
 				ELSE