summaryrefslogtreecommitdiff
path: root/Debugger/debug_macros.h
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-04-04 08:49:11 +0800
committerTat-Chee Wan (USM)2011-04-04 08:49:11 +0800
commitcaf7c44cfee07b8a41d7a11e585d6aa6bd6ed319 (patch)
tree5d224272fffe027ce1e72765a30362ef1b4360ca /Debugger/debug_macros.h
parent6e7f43118e82a7fbf4356f28da0498d0a9c40a37 (diff)
optimized reference to halfword bitmask values
Diffstat (limited to 'Debugger/debug_macros.h')
-rw-r--r--Debugger/debug_macros.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Debugger/debug_macros.h b/Debugger/debug_macros.h
index aa40a9a..75d6299 100644
--- a/Debugger/debug_macros.h
+++ b/Debugger/debug_macros.h
@@ -52,7 +52,8 @@
add \instrmask, \instrmask, \indexreg, lsl #3
ldm \instrmask, {\instrreg, \codehandler} /* LSHW: IID, MSHW: IBM */
mov \instrmask, \instrreg, lsr #16
- and \instrreg, \instrreg, #HLFWRD0
+ mov \instrreg, \instrreg, lsl #16
+ mov \instrreg, \instrreg, lsr #16 /* Keep HLFWORD0 containing instruction */
.endm
/* _dbg_armDecodeEntry