libmicroemu 0.2.0
ARM Microcontroller Emulator Library
Loading...
Searching...
No Matches
mnemonic_builder_unary_null_instr_with_imm.h
1#pragma once
2
4#include "libmicroemu/types.h"
5
6namespace libmicroemu::internal {
7
11template <typename TContext> class MnemonicBuilderUnaryNullInstrWithImm {
12public:
13 using It = typename TContext::It;
14 using Reg = typename TContext::Reg;
15 using SReg = typename TContext::SReg;
16
17 static void Build(const char *instr_spec, TContext &mctx, const MnemonicBuilderFlagsSet &bflags,
18 const InstrFlagsSet &iflags, const u32 &imm) {
19 static_cast<void>(bflags);
20 const bool is_setflags = (iflags & static_cast<InstrFlagsSet>(InstrFlags::kSetFlags)) != 0U;
21 mctx.builder.AddString(instr_spec)
22 .AddString(is_setflags == true ? "S" : "")
23 .AddString(It::GetConditionAsStr(mctx.cpua))
24 .AddString(" #")
25 .AddUInt(imm)
26 .Terminate();
27 }
28
29private:
33 MnemonicBuilderUnaryNullInstrWithImm() = delete;
34
38 ~MnemonicBuilderUnaryNullInstrWithImm() = delete;
39
44 MnemonicBuilderUnaryNullInstrWithImm(const MnemonicBuilderUnaryNullInstrWithImm &r_src) = default;
45
50 MnemonicBuilderUnaryNullInstrWithImm &
51 operator=(const MnemonicBuilderUnaryNullInstrWithImm &r_src) = delete;
52
57 MnemonicBuilderUnaryNullInstrWithImm(MnemonicBuilderUnaryNullInstrWithImm &&r_src) = delete;
58
63 MnemonicBuilderUnaryNullInstrWithImm &
64 operator=(MnemonicBuilderUnaryNullInstrWithImm &&r_src) = delete;
65};
66
67} // namespace libmicroemu::internal
The libmicroemu::internal namespace contains all classes and functions of libmicroemu which are priva...
Definition bkpt_flags.h:6
Contains the Result class which is used to return the result of a function.