行业解决方案查看所有行业解决方案
IDA 用于解决软件行业的关键问题。
发布时间:2022-10-15 13: 52: 22
Action name: OpEnum
This command converts immediate operand(s) type of the current instruction/data to an enum member. Before using this command, you have to define an enumeration type.
If the selected enum is a bitfield, IDA will try to build a bitfield expression to represent the constant. Please note that for bitfields having multiple constants with the same value some expressions won't be possible.
If a range is selected using the anchor, IDA will perform 'en masse' conversion. It will convert immediate operands of all instructions in the selected range to symbolic constants. However, IDA will ask you first the lower and upper limits of immediate operand value. If the operand value is >= lower limit and <= upper limit then the operand will be converted to offset, otherwise it will be left unmodified.
When you use this command, IDA deletes the manually entered operand.
If the cursor is on the first operand (the cursor is before ',') then the first operand will be affected; otherwise all other operands will be affected.
中文翻译:
转换操作数为枚举
操作名称:Convert operand to enum
此命令将当前指令/数据的立即操作数类型转换为枚举成员。在使用此命令之前,您需要定义一个枚举类型。如果所选的枚举是一个位域(bitfield),IDA将尝试构建一个位域表达式来表示常量。请注意,对于具有相同值的多个常量的位域,某些表达式将不可能。如果使用锚点选择了范围,则IDA将执行“批量”转换。它将把所选范围内所有指令的立即操作数转换为符号常量。但是,IDA首先会询问您立即操作数值的下限和上限。如果操作数值>=下限且<=上限,则将转换操作数为符号常量,否则将不作更改。使用此命令时,IDA将删除手动输入的操作数。如果光标在第一个操作数(光标位于','之前),则第一个操作数将受到影响;否则所有其他操作数将受到影响。
展开阅读全文
︾