diff --git a/VTIL-Architecture/arch/instruction_desc.cpp b/VTIL-Architecture/arch/instruction_desc.cpp index 0a9ab34..2831962 100644 --- a/VTIL-Architecture/arch/instruction_desc.cpp +++ b/VTIL-Architecture/arch/instruction_desc.cpp @@ -60,5 +60,17 @@ namespace vtil else branch_operands_rip.push_back( -op - 1 ); } + + // Validate operand types. + // + bool written = false; + for ( operand_type type : operand_types ) + { + if ( type >= operand_type::write ) + { + fassert( !written ); + written = true; + } + } } }; \ No newline at end of file