summaryrefslogtreecommitdiff
path: root/plugins/arm/v7/opdefs/bfc_A8819.d
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/arm/v7/opdefs/bfc_A8819.d')
-rw-r--r--plugins/arm/v7/opdefs/bfc_A8819.d48
1 files changed, 31 insertions, 17 deletions
diff --git a/plugins/arm/v7/opdefs/bfc_A8819.d b/plugins/arm/v7/opdefs/bfc_A8819.d
index 0ee99c8..bb0e448 100644
--- a/plugins/arm/v7/opdefs/bfc_A8819.d
+++ b/plugins/arm/v7/opdefs/bfc_A8819.d
@@ -2,7 +2,7 @@
/* Chrysalide - Outil d'analyse de fichiers binaires
* ##FILE## - traduction d'instructions ARMv7
*
- * Copyright (C) 2015 Cyrille Bagard
+ * Copyright (C) 2017 Cyrille Bagard
*
* This file is part of Chrysalide.
*
@@ -23,20 +23,30 @@
@title BFC
-@desc Bit Field Clear clears any number of adjacent bits at any position in a register, without affecting the other bits in the register.
+@id 18
+
+@desc {
+
+ Bit Field Clear clears any number of adjacent bits at any position in a register, without affecting the other bits in the register.
+
+}
@encoding (T1) {
@word 1 1 1 1 0 0 1 1 0 1 1 0 1 1 1 1 0 imm3(3) Rd(4) imm2(2) 0 msb(5)
- @syntax <reg_D> <lsbit> <width>
+ @syntax {
+
+ @conv {
- @conv {
+ reg_D = Register(Rd)
+ lsbit = UInt(imm3:imm2)
+ msbit = UInt(msb)
+ width = BitDiff(msbit, lsbit)
- reg_D = Register(Rd)
- msbit = UInt(msb)
- lsbit = UInt(imm3:imm2)
- width = BitDiff(msbit, lsbit)
+ }
+
+ @asm bfc reg_D lsbit width
}
@@ -46,20 +56,24 @@
@word cond(4) 0 1 1 1 1 1 0 msb(5) Rd(4) lsb(5) 0 0 1 1 1 1 1
- @syntax <reg_D> <lsbit> <width>
+ @syntax {
- @conv {
+ @conv {
- reg_D = Register(Rd)
- msbit = UInt(msb)
- lsbit = UInt(lsb)
- width = BitDiff(msbit, lsbit)
+ reg_D = Register(Rd)
+ lsbit = UInt(lsb)
+ msbit = UInt(msb)
+ width = BitDiff(msbit, lsbit)
- }
+ }
+
+ @asm bfc reg_D lsbit width
+
+ @rules {
- @rules {
+ check g_arm_instruction_set_cond(cond)
- chk_call StoreCondition(cond)
+ }
}