diff options
Diffstat (limited to 'plugins/arm/v7/opdefs/ldrb_A8869.d')
-rw-r--r-- | plugins/arm/v7/opdefs/ldrb_A8869.d | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/plugins/arm/v7/opdefs/ldrb_A8869.d b/plugins/arm/v7/opdefs/ldrb_A8869.d index fb80049..37abb30 100644 --- a/plugins/arm/v7/opdefs/ldrb_A8869.d +++ b/plugins/arm/v7/opdefs/ldrb_A8869.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,18 +23,28 @@ @title LDRB (literal) -@desc Load Register Byte (literal) calculates an address from the PC value and an immediate offset, loads a byte from memory, zero-extends it to form a 32-bit word, and writes it to a register. For information about memory accesses see Memory accesses on page A8-294. +@id 68 + +@desc { + + Load Register Byte (literal) calculates an address from the PC value and an immediate offset, loads a byte from memory, zero-extends it to form a 32-bit word, and writes it to a register. For information about memory accesses see Memory accesses on page A8-294. + +} @encoding (T1) { @word 1 1 1 1 1 0 0 0 U(1) 0 0 1 1 1 1 1 Rt(4) imm12(12) - @syntax <reg_T> <imm32> + @syntax { + + @conv { - @conv { + reg_T = Register(Rt) + imm32 = ZeroExtend(imm12, 32) - reg_T = Register(Rt) - imm32 = ZeroExtend(imm12, 32) + } + + @asm ldrb reg_T imm32 } @@ -44,18 +54,22 @@ @word cond(4) 0 1 0 1 U(1) 1 0 1 1 1 1 1 Rt(4) imm12(12) - @syntax <reg_T> <imm32> + @syntax { - @conv { + @conv { - reg_T = Register(Rt) - imm32 = ZeroExtend(imm12, 32) + reg_T = Register(Rt) + imm32 = ZeroExtend(imm12, 32) - } + } + + @asm ldrb reg_T imm32 + + @rules { - @rules { + check g_arm_instruction_set_cond(cond) - chk_call StoreCondition(cond) + } } |