IDA Pro > IDA Pro教程 > 技术问题 > IDA Pro 将操作数转换为数字(Convert operand to number)

IDA Pro 将操作数转换为数字(Convert operand to number)

发布时间:2022-09-29 10: 41: 32

Convert operand to number

  Action name:OpNumber

 This command converts immediate operand(s)type of the current instruction/data to a number.That way,you can delete suspicious mark of the item.

 The number is represented in the default radix for the current processor(usually hex,but octal for PDP-11,for example).

 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.

 See also Edit|Operand types|Number submenu.

 

Convert operand to hex number

  Action name:OpHex

 This command converts immediate operand(s)type of the current instruction/data to hex number.So you can delete suspicious mark of the item.

 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.

 See also Edit|Operand types|Number submenu.

 

Convert operand to decimal number

  Action name:OpDecimal

 This command converts the immediate operand(s)type of the current instruction/data to decimal.Therefore,it becomes a'number'.

 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.

 See also Edit|Operand types|Number submenu.

 

Convert operand to octal number

  Action name:OpOctal

 This command makes the current instruction or data operand type octal.IDA always uses 123o notation for octal numbers even if the current assembler does not support octal numbers.

 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.

 See also Edit|Operand types|Number submenu.

 

Convert operand to binary number

  Action name:OpBinary

 This command makes the current instruction or data operand type binary.IDA always uses 123b notation for binary numbers even if the current assembler does not support binary numbers.

 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.

 See also Edit|Operand types|Number submenu.

 

Convert operand to floating point number

  Action name:OpFloat

 This command makes the current operand type floating point.

 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.

 See also Edit|Operand types|Number submenu.

 

Toggle leading zeroes

  Action name:ToggleLeadingZeroes

 This command displays or hides the leading zeroes of the current operand.Example:if the instruction looked like this:

 and ecx,40h

 then after applying the command it will look like this:

 and ecx,00000040h

 If you prefer to see leading zeroes in all cases,then open the calculator and enter the following expression:

 set_inf_attr(INF_GENFLAGS,get_inf_attr(INF_GENFLAGS)|INFFL_LZERO);

 This will toggle the default for the current database and all numbers without leading zeroes will become numbers with leading zeroes,and vice versa.

 See also Edit|Operand types|Number submenu.

 

中文翻译:

将操作数转换为数字

操作名称:OpNumber

此命令将当前指令/数据的立即操作数转换为数字。这样,您可以删除项目的可疑标记。该数字以当前处理器的默认基数表示(通常为十六进制,但例如对于PDP-11而言为八进制)。使用此命令时,IDA会删除手动输入的操作数。如果光标位于第一个操作数(光标位于“,”之前)之上,则仅影响第一个操作数;否则,将影响所有其他操作数。另请参见“编辑|操作数类型|数字”子菜单。

将操作数转换为十六进制数字

操作名称:OpHex

此命令将当前指令/数据的立即操作数转换为十六进制数字,以便您可以删除项目的可疑标记。使用此命令时,IDA会删除手动输入的操作数。如果光标位于第一个操作数(光标位于“,”之前)之上,则仅影响第一个操作数;否则,将影响所有其他操作数。另请参见“编辑|操作数类型|数字”子菜单。

将操作数转换为十进制数字

操作名称:OpDecimal

此命令将当前指令/数据的立即操作数转换为十进制数字。因此,它成为“数字”。使用此命令时,IDA会删除手动输入的操作数。如果光标位于第一个操作数(光标位于“,”之前)之上,则仅影响第一个操作数;否则,将影响所有其他操作数。另请参见“编辑|操作数类型|数字”子菜单。

将操作数转换为八进制数字

操作名称:OpOctal

此命令将当前指令或数据的操作数类型更改为八进制。即使当前汇编器不支持八进制数,IDA也总是使用123o表示法来表示八进制数。使用此命令时,IDA会删除手动输入的操作数。如果光标在第一个操作数上(光标在“,”之前),则第一个操作数将受到影响;否则,所有其他操作数都将受到影响。另请参见编辑|操作数类型|数字子菜单。

将操作数转换为二进制数字

操作名称:OpBinary

此命令将当前指令或数据的操作数类型更改为二进制。即使当前汇编器不支持二进制数,IDA也总是使用123b表示法来表示二进制数。使用此命令时,IDA会删除手动输入的操作数。如果光标在第一个操作数上(光标在“,”之前),则第一个操作数将受到影响;否则,所有其他操作数都将受到影响。另请参见编辑|操作数类型|数字子菜单。

将操作数转换为浮点数

动作名称:OpFloat

此命令将当前操作数类型更改为浮点数。使用此命令时,IDA将删除手动输入的操作数。如果光标在第一个操作数上(光标位于“,”之前),则只影响第一个操作数;否则,影响所有操作数。另请参见“编辑|操作数类型|数字”子菜单。

切换前导零

动作名称:ToggleLeadingZeroes

此命令显示或隐藏当前操作数的前导零。例如,如果指令看起来像这样:and ecx,40h那么应用命令后它会变成这样:and ecx,00000040h如果您希望在所有情况下看到前导零,则打开计算器并输入以下表达式:set_inf_attr(INF_GENFLAGS,get_inf_attr(INF_GENFLAGS)|INFFL_LZERO);这将切换当前数据库的默认值,所有没有前导零的数字将成为带前导零的数字,反之亦然。另请参见“编辑|操作数类型|数字”子菜单。

展开阅读全文

标签:数据库反汇编

读者也访问过这里:
邀请您进入交流群 点击扫码
400-8765-888 kefu@makeding.com

专业销售为您服务

欢迎添加好友,了解更多IDA优惠信息,领逆向工程学习资料礼包1份!
热门文章
exe反编译工具哪个好?反编译能力强的工具盘点
随着软件技术的发展,exe(可执行文件)已经成为了电脑、手机等多个平台上的主要软件运行格式,而对于exe文件的反编译也成为了逆向工程中不可缺少的一个步骤。本文将介绍一些常用的exe反编译工具,并评价其优缺点,帮助读者选择合适的工具。
2023-04-12
idapro怎么改为中文
IDA Pro是一款功能强大的反汇编和反编译工具,广泛应用于逆向工程和软件开发领域。在使用IDA Pro时,如果我们不习惯英文界面,可以将其改为中文界面。本文将介绍IDA Pro怎么改为中文界面。IDA Pro界面改成中文主要有两种方法,下面是详细介绍。
2023-04-19
c++反编译工具有哪些
反编译C++代码的工具一般是针对可执行文件和库文件的反汇编和逆向分析工具。本文将给大家介绍c++反编译工具有哪些的内容。市面说的c++反编译工具有很多,下面介绍几款使用认识较多的软件。
2023-04-23
ida怎么查找字符串 ida字符串窗口快捷键
在数字化时代,逆向工程作为解密软件和分析程序的关键技术,正日益受到广泛关注。在逆向分析的过程中,IDA(Interactive DisAssembler)是一款备受推崇的工具,它为逆向工程师们提供了强大的功能和灵活的操作。本文将带您深入探讨如何在IDA中查找字符串,优化字符串窗口的使用,并探讨IDA如何将变量转换成字符串,帮助您更加熟练地驾驭这一工具,为逆向分析的世界增添一抹精彩。
2023-09-27
ida如何转伪代码 ida伪代码怎么看
IDA Pro是一款常用的反汇编和反编译工具,可以帮助我们分析二进制文件的实现细节和执行过程,以便更好地理解程序的执行过程和逻辑。在进行逆向工程的过程中,我们经常需要将反汇编结果转换为伪代码,以便更好地进行分析和修改。本文将介绍如何使用IDA Pro转换为伪代码,并简单讲解ida伪代码怎么看。
2023-04-14
最新文章
IDA Pro如何分析ARM架构代码?IDA Pro如何分析x86架构代码?
IDA Pro非常强大,也非常好用,但很多朋友使用时会遇到IDA Pro如何分析ARM架构代码?IDA Pro如何分析x86架构代码的问题,这篇文章就将帮你解决这两个问题,让你看完就能试试。
2025-03-21
IDA Pro如何调试脚本 IDA Pro脚本调试可以使用哪些工具
做逆向工程或者安全分析的小伙伴都知道IDA Pro这个软件,它还有个功能很实用,就是脚本调试。IDA Pro的脚本功能不仅能做更深入的分析,还能省下很多重复劳动时间,让逆向过程变得特别高效。接下来,我们就聊聊IDA Pro如何调试脚本 IDA Pro脚本调试可以使用哪些工具这个话题。
2025-03-17
IDA Pro如何批量分析文件 IDA Pro自动化脚本怎么写
说起逆向工程分析工具,不少人第一个想到的就是IDA Pro。只要掌握了IDA Pro自动化的一些小技巧,比如批量处理文件、用脚本自动分析,逆向工作的效率就会蹭蹭往上涨。这篇文章我就给大家聊聊IDA Pro如何批量分析文件 IDA Pro自动化脚本怎么写。
2025-03-17
IDA Pro脚本怎么编写?IDA Pro如何自动化反编译任务?
如果你是从事逆向工程或者恶意软件分析的朋友,应该对IDA Pro这款工具不陌生,IDA Pro有强大的脚本功能,通过它你可以自动化很多工作,省时省力。今天,我们就来聊一聊IDA Pro脚本怎么编写?IDA Pro如何自动化反编译任务?让工作效率更高!
2025-03-17
如何优化IDA Pro的反汇编速度?如何设置IDA Pro加快程序分析过程?
IDA Pro大家应该都知道,是逆向工程师必备的工具。有时候,当程序越来越大、分析任务越来越复杂时,IDA Pro的反汇编速度就会有点慢。今天就来分享一些优化的小技巧:如何优化IDA Pro的反汇编速度?如何设置IDA Pro加快程序分析过程?帮你提升IDA Pro的速度,让程序分析更流畅。
2025-02-26
IDA Pro如何将程序的分支和循环结构可视化 IDA Pro如何生成控制流图
当你在进行程序分析和逆向工程时,有没有遇到过这些问题:程序结构复杂,分支多,循环多,看得眼花缭乱,根本搞不清楚执行流程?IDA Pro能帮你轻松搞定这些问题,还能将程序的分支、循环和控制流图展示得一目了然。今天就来聊聊,IDA Pro如何将程序的分支和循环结构可视化,IDA Pro如何生成控制流图,以及IDA Pro怎么优化流程图,让你能更快速、准确地理解和分析代码。
2025-02-24

通过微信咨询我们

欢迎添加好友,了解更多IDA优惠信息,领取逆向工程学习资料礼包1份!