From 5db974bd5c7304b96ad50010e8f742fbc636c20d Mon Sep 17 00:00:00 2001 From: shashclp Date: Fri, 2 Feb 2007 21:35:44 +0000 Subject: [PATCH] - Fixed the bug reported by masscat in here: http://sourceforge.net/tracker/index.php?func=detail&aid=1650937&group_id=164579&atid=832291 --- desmume/src/arm_instructions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/arm_instructions.c b/desmume/src/arm_instructions.c index 87e388ac3..9cbd56e36 100644 --- a/desmume/src/arm_instructions.c +++ b/desmume/src/arm_instructions.c @@ -3400,7 +3400,7 @@ static u32 FASTCALL OP_BX(armcpu_t *cpu) u32 tmp = cpu->R[REG_POS(cpu->instruction, 0)]; cpu->CPSR.bits.T = BIT0(tmp); - cpu->R[15] = tmp & 0x0FFFFFFE; + cpu->R[15] = tmp & 0xFFFFFFFE; cpu->next_instruction = cpu->R[15]; return 3; } @@ -3411,7 +3411,7 @@ static u32 FASTCALL OP_BLX_REG(armcpu_t *cpu) cpu->R[14] = cpu->next_instruction; cpu->CPSR.bits.T = BIT0(tmp); - cpu->R[15] = tmp & 0x0FFFFFFE; + cpu->R[15] = tmp & 0xFFFFFFFE; cpu->next_instruction = cpu->R[15]; return 3; }