From 93593bc3c7c5e815ab507cca629d5cd9e0f4c248 Mon Sep 17 00:00:00 2001 From: Oxore Date: Thu, 11 May 2023 00:24:26 +0300 Subject: Remove SizeSpec, use OpSize only --- disasm.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'disasm.h') diff --git a/disasm.h b/disasm.h index 8488ee0..c597e9d 100644 --- a/disasm.h +++ b/disasm.h @@ -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 -- cgit v1.2.3