summaryrefslogtreecommitdiff
path: root/src/arch/arm/v7/opdefs/bx_A8827.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm/v7/opdefs/bx_A8827.d')
-rw-r--r--src/arch/arm/v7/opdefs/bx_A8827.d53
1 files changed, 24 insertions, 29 deletions
diff --git a/src/arch/arm/v7/opdefs/bx_A8827.d b/src/arch/arm/v7/opdefs/bx_A8827.d
index 75921ac..f278d85 100644
--- a/src/arch/arm/v7/opdefs/bx_A8827.d
+++ b/src/arch/arm/v7/opdefs/bx_A8827.d
@@ -2,7 +2,7 @@
/* Chrysalide - Outil d'analyse de fichiers binaires
* ##FILE## - traduction d'instructions ARMv7
*
- * Copyright (C) 2014 Cyrille Bagard
+ * Copyright (C) 2015 Cyrille Bagard
*
* This file is part of Chrysalide.
*
@@ -23,56 +23,51 @@
@title BX
-@encoding(t1) {
+@desc Branch and Exchange causes a branch to an address and instruction set specified by a register.
+@encoding (t1) {
- @half 0 1 0 0 0 1 1 1 0 Rm(4) 0 0 0
+ @half 0 1 0 0 0 1 1 1 0 Rm(4) 0 0 0
- @syntax <Rm>
+ @syntax <reg_M>
- @conv {
+ @conv {
- Rm = Register(Rm)
+ reg_M = Register(Rm)
- }
+ }
- @hooks {
+ @hooks {
- fetch = help_fetching_with_instruction_bx_from_thumb
+ fetch = help_fetching_with_instruction_bx_from_thumb
- }
-
- @rules {
-
- chk_call SetInsFlag(AIF_RETURN_POINT)
-
- }
+ }
}
-@encoding(A1) {
+@encoding (A1) {
- @word cond(4) 0 0 0 1 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 Rm(4)
+ @word cond(4) 0 0 0 1 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 Rm(4)
- @syntax {c} <Rm>
+ @syntax <reg_M>
- @conv {
+ @conv {
- c = Condition(cond)
- Rm = Register(Rm)
+ reg_M = Register(Rm)
- }
+ }
- @hooks {
+ @rules {
- fetch = help_fetching_with_instruction_bx_from_thumb
+ chk_call StoreCondition(cond)
- }
+ }
- @rules {
+ @hooks {
- chk_call SetInsFlag(AIF_RETURN_POINT)
+ fetch = help_fetching_with_instruction_bx_from_thumb
- }
+ }
}
+