libTriton version 1.0 build 1590
Loading...
Searching...
No Matches
arm32Specifications.hpp
Go to the documentation of this file.
1
2/*
3** Copyright (C) - Triton
4**
5** This program is under the terms of the Apache License 2.0.
6*/
7
8#ifndef TRITON_ARM32SPECIFICATIONS_H
9#define TRITON_ARM32SPECIFICATIONS_H
10
11#include <unordered_map>
12#include <string>
13
14#include <triton/archEnums.hpp>
16#include <triton/dllexport.hpp>
17#include <triton/register.hpp>
18
19
20
22namespace triton {
29 namespace arch {
37 namespace arm {
45 namespace arm32 {
53
55 protected:
57 std::unordered_map<triton::arch::register_e, const triton::arch::Register> id2reg;
58 std::unordered_map<std::string, triton::arch::register_e> name2id;
59
60 public:
63
66
69
72
75
78 };
79
82
85
89
522
523 /* Must be the last item */
525 };
526
528 };
530 };
532 };
534};
535
536#endif /* TRITON_ARM32SPECIFICATIONS_H */
This class is used to represent an instruction.
The Arm32Specifications class defines specifications about the Arm32 CPU.
std::unordered_map< triton::arch::register_e, const triton::arch::Register > id2reg
List of registers specification available for this architecture.
TRITON_EXPORT triton::arch::register_e capstoneRegisterToTritonRegister(triton::uint32 id) const
Converts a capstone's register id to a triton's register id.
TRITON_EXPORT triton::uint32 capstoneInstructionToTritonInstruction(triton::uint32 id) const
Converts a capstone's instruction id to a triton's instruction id.
TRITON_EXPORT triton::arch::arm::shift_e capstoneShiftToTritonShift(triton::uint32 id) const
Converts a capstone's shift id to a triton's shift id.
TRITON_EXPORT triton::arch::arm::condition_e capstoneConditionToTritonCondition(triton::uint32 id) const
Converts a capstone's condition id to a triton's condition id.
TRITON_EXPORT triton::uint32 getMemoryOperandSpecialSize(triton::uint32 id) const
Returns memory access size if it is specified by instruction.
register_e
Types of register.
Definition archEnums.hpp:64
instruction_e
The list of opcodes.
const triton::arch::Instruction nop
ARM32 NOP instruction.
const triton::arch::Instruction thumbnop
ARM32 Thumb NOP instruction.
@ ID_INS_LAST_ITEM
must be the last item
shift_e
Types of shift.
condition_e
Types of condition.
std::uint32_t uint32
unisgned 32-bits
The Triton namespace.