diff options
author | Oxore <oxore@protonmail.com> | 2023-05-11 00:24:26 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-05-11 00:24:26 +0300 |
commit | 93593bc3c7c5e815ab507cca629d5cd9e0f4c248 (patch) | |
tree | 0d15158eaff913db321898455036bd9527e56888 /disasm.h | |
parent | cc5de4cba039fa6dcd1bbd9f41697e5c24819e0f (diff) |
Remove SizeSpec, use OpSize only
Diffstat (limited to 'disasm.h')
-rw-r--r-- | disasm.h | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -30,6 +30,8 @@ enum class OpSize: int { kWord = 1, kLong = 2, kInvalid = 3, + kNone = kInvalid, + kShort, ///< Semantically is the same as kByte, pseudosize, used for Bcc }; struct AddrModeArg { @@ -247,14 +249,6 @@ enum class Condition: uint8_t { }; -enum class SizeSpec: uint8_t { - kNone, - kByte, - kShort, - kWord, - kLong, -}; - enum class ArgType: uint8_t { kNone, kRaw, @@ -483,7 +477,7 @@ struct DisasmNode { ReferenceNode *last_ref_by{}; OpCode opcode{OpCode::kNone}; ///< Should replace `mnemonic` field /// Size specifier, the suffix `b`, `w` or `l` - SizeSpec size_spec{SizeSpec::kNone}; + OpSize size_spec{OpSize::kNone}; Condition condition{Condition::kT}; ///< For Scc, Bcc and Dbcc Arg arg1{}, arg2{}; ///< Should replace `arguments` field |