diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-05-22 15:43:43 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-05-22 15:43:43 (GMT) |
commit | 7577eadd4e871d467f747c4927a1b1984d6a7606 (patch) | |
tree | e72a2fd5c1619e60402a678b0559079ed267eab0 /src/arch/arm/v7/opdefs/movt_A88106.d | |
parent | 33aa90b022e7d711a733ca7eb62c0b285f974317 (diff) |
Extended the compiler to transform all the new ARMv7 encoding definitions.
Diffstat (limited to 'src/arch/arm/v7/opdefs/movt_A88106.d')
-rw-r--r-- | src/arch/arm/v7/opdefs/movt_A88106.d | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/src/arch/arm/v7/opdefs/movt_A88106.d b/src/arch/arm/v7/opdefs/movt_A88106.d index a5ad4f1..265d008 100644 --- a/src/arch/arm/v7/opdefs/movt_A88106.d +++ b/src/arch/arm/v7/opdefs/movt_A88106.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,45 +23,41 @@ @title MOVT -@encoding(T1) { +@desc Move Top writes an immediate value to the top halfword of the destination register. It does not affect the contents of the bottom halfword. - @word 1 1 1 1 0 i(1) 1 0 1 1 0 0 imm4(4) 0 imm3(3) Rd((4) imm8(8) +@encoding (T1) { - @syntax <Rd> <imm16> + @word 1 1 1 1 0 i(1) 1 0 1 1 0 0 imm4(4) 0 imm3(3) Rd(4) imm8(8) - @conv { + @syntax <reg_D> <imm16> - Rd = Register(Rd) - imm16 = Imm16(imm4:i:imm3:imm8) + @conv { - } + reg_D = Register(Rd) + imm16 = BuildImm16(imm4:i:imm3:imm8) - @rules { - - //if d IN {13,15} then UNPREDICTABLE; - - } + } } -@encoding(A1) { +@encoding (A1) { - @word cond(4) 0 0 1 1 0 1 0 0 imm4(4) Rd(4) imm12(12) + @word cond(4) 0 0 1 1 0 1 0 0 imm4(4) Rd(4) imm12(12) - @syntax {c} <Rd> <imm16> + @syntax <reg_D> <imm16> - @conv { + @conv { - c = Condition(cond) - Rd = Register(Rd) - imm16 = Imm16(imm4:imm12) + reg_D = Register(Rd) + imm16 = BuildImm16(imm4:imm12) - } + } - @rules { + @rules { - //if d == 15 then UNPREDICTABLE; + chk_call StoreCondition(cond) - } + } } + |