From a72134539d7f9340aecd1bb7a03e90cc9dbb40f8 Mon Sep 17 00:00:00 2001 From: rogerman Date: Wed, 27 Apr 2022 18:08:34 -0700 Subject: [PATCH] JIT (ARM): Fix bug that prevented the Titan LMNTS Demo homebrew ROM from starting up. - Special thanks to @byte4byte! His notes: "Fixed cmp operands, Fixes titan homebrew rom" --- desmume/src/utils/arm_jit/arm_jit_arm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/utils/arm_jit/arm_jit_arm.cpp b/desmume/src/utils/arm_jit/arm_jit_arm.cpp index b7437f206..d6261b9fe 100755 --- a/desmume/src/utils/arm_jit/arm_jit_arm.cpp +++ b/desmume/src/utils/arm_jit/arm_jit_arm.cpp @@ -3358,8 +3358,8 @@ static int OP_CMP(const u32 i) static int OP_CMP_SPE(const u32 i) { u32 Rn = (i&7) | ((i>>4)&8); - reg_pos_ptr(3, tmp, VALUE); - reg_ptr(Rn, tmp2, VALUE); + reg_pos_ptr(3, tmp2, VALUE); + reg_ptr(Rn, tmp, VALUE); emit_cmp(g_out, tmp, tmp2); SET_NZCV(1);