summaryrefslogtreecommitdiff
path: root/src/arch/arm/v7/opdefs/mov_A88104.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm/v7/opdefs/mov_A88104.d')
-rw-r--r--src/arch/arm/v7/opdefs/mov_A88104.d29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/arch/arm/v7/opdefs/mov_A88104.d b/src/arch/arm/v7/opdefs/mov_A88104.d
index 1efebd3..d164983 100644
--- a/src/arch/arm/v7/opdefs/mov_A88104.d
+++ b/src/arch/arm/v7/opdefs/mov_A88104.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,25 +23,28 @@
@title MOV (register, ARM)
-@encoding(A1) {
+@desc Move (register) copies a value from a register to the destination register. It can optionally update the condition flags based on the value.
- @word cond(4) 0 0 0 1 1 0 1 S(1) 0 0 0 0 Rd(4) 0 0 0 0 0 0 0 0 Rm(4)
+@encoding (A1) {
- @syntax {S} {c} <Rd> <Rm>
+ @word cond(4) 0 0 0 1 1 0 1 S(1) 0 0 0 0 Rd(4) 0 0 0 0 0 0 0 0 Rm(4)
- @conv {
+ @syntax <reg_D> <reg_M>
- S = SetFlags(S)
- c = Condition(cond)
- Rd = Register(Rd)
- Rm = Register(Rm)
+ @conv {
- }
+ reg_D = Register(Rd)
+ reg_M = Register(Rm)
+ setflags = (S == '1')
- @rules {
+ }
- if ((Rd == '1111') && (S == '1')) ; see SUBS PC, LR and related instructions (ARM)
+ @rules {
- }
+ if (setflags); chk_call ExtendKeyword("s")
+ chk_call StoreCondition(cond)
+
+ }
}
+