行业解决方案查看所有行业解决方案
IDA 用于解决软件行业的关键问题。
发布时间:2023-04-23 15: 36: 24
Action name:SetSegmentRegister
Relevant only for processors with the segment registers.Currently this command works for IBM PC,TMS320C2,Intel80196,and PowerPC processors.
This command creates or updates a segment register change point.
See jump to segment register change point for more info.
ALPHA DISASSEMBLY
For Alpha processors,the user must enter the difference between the real GP value and the start of the GOT(global offset table).For example:
.got
....
;gp points here
label:
If you want to specify that a register points to"label",you must calculate and enter the difference"label-.got"as the register value.
ARM DISASSEMBLY
The ARM processor module has a virtual segment register T which reflects the state of the T bit of the processor state register(PSR).Therefore,the value of this register controls THUMB/ARM mode.If its value is not zero,then the disassembly will be in the thumb mode.
POWER PC DISASSEMBLY
For PowerPC processors,the user must enter an offset from the beginning of the TOC to the TOC entry which contains the address of the target.An example:
TOC:.toc
....
sometc:.tc sometc[tc],datachunk
If you want to specify that a register points to"datachunk",you must calculate and enter the difference"sometc-TOC"as the register value.You can change the TOC value in the processor specific options(which is accessible from the analysis options).
INTEL 80196 DISASSEMBLY
For Intel 80196NP/NU processors,the user must enter the value of WSR or WSR1 register.IDA will automatically take the new value into account.
以下为中文翻译:
名称:SetSegmentRegister
仅与具有段寄存器的处理器相关。目前,此命令适用于IBM PC、TMS320C2、Intel80196和PowerPC处理器。
此命令创建或更新段寄存器更改点。有关更多信息,请参阅跳到段寄存器更改点将。对于ALPHA处理器,LPHA DISASSEMBLY,用户必须输入实际GP值和GOT(全局偏移表)开始之间的差值。
例如:.get;gp指向此处标签:
如果您想指定寄存器指向“标签”,则必须计算并输入差值“label-.get”作为寄存器值。
ARM DISASSEMBLY
ARM处理器模块有一个虚拟段寄存器T,它反映处理器状态寄存器(PSR)T位的状态。因此,此寄存器的值控制THUMB/ARM模式。如果其值不为零,则
反汇编将处于拇指模式。
对于PowerPC处理器,用户必须输入从
TOC开始到包含目标地址的TOC条目的偏移量。例如:TOC:.TOC。。。。sometc:.tc sometc[tc],datachunk
如果要指定寄存器指向“datachunk”,则必须
计算并输入差值“sometc-TOC”作为寄存器值。您
可以在处理器特定选项中更改TOC值(可从分析选项中访问)。
INTEL 80196 DISASSEMBLY
对于INTEL 80196NP/NU处理器,用户必须输入WSR或WSR1寄存器的值。IDA将自动将新值考虑在内。另请参见“编辑|分段”子菜单。
展开阅读全文
︾