diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/simulator.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/simulator.c b/lib/simulator.c index 8db38ef..1438143 100644 --- a/lib/simulator.c +++ b/lib/simulator.c @@ -272,17 +272,17 @@ void DecodeExec(Uint32 instruction) if (Champ1(instruction) == Champ2(instruction)) { test1 = 1; } else { - test1 = LireRegistre(Champ1(instruction)) == LireRegistre(Champ2(instruction)); + test1 = ((int) LireRegistre(Champ1(instruction))) == ((int) LireRegistre(Champ2(instruction))); } break; case 1: - test1 = LireRegistre(Champ1(instruction)) != LireRegistre(Champ2(instruction)); + test1 = ((int) LireRegistre(Champ1(instruction))) != ((int) LireRegistre(Champ2(instruction))); break; case 2: - test1 = LireRegistre(Champ1(instruction)) < LireRegistre(Champ2(instruction)); + test1 = ((int) LireRegistre(Champ1(instruction))) < ((int) LireRegistre(Champ2(instruction))); break; case 3: - test1 = LireRegistre(Champ1(instruction)) <= LireRegistre(Champ2(instruction)); + test1 = ((int) LireRegistre(Champ1(instruction))) <= ((int) LireRegistre(Champ2(instruction))); break; } switch (champ(Extension(instruction) >> 2, 4)) { |