From 3014da89b3008be76dfcb6326b4f32083887b734 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 20 Apr 2011 06:26:42 +0000 Subject: [PATCH] use EXCEPTION_UNDEFINED_INSTRUCTION instead of magic number 0x04 --- desmume/src/armcpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/armcpu.cpp b/desmume/src/armcpu.cpp index 79a74177b..bbbb287e4 100644 --- a/desmume/src/armcpu.cpp +++ b/desmume/src/armcpu.cpp @@ -561,7 +561,7 @@ u32 TRAPUNDEF(armcpu_t* cpu) if (((cpu->intVector != 0) ^ (cpu->proc_ID == ARMCPU_ARM9))) { - armcpu_exception(&NDS_ARM9,0x04); + armcpu_exception(&NDS_ARM9,EXCEPTION_UNDEFINED_INSTRUCTION); return 4; } else