在X86汇编sar命令带有一个参数 [英] SAR command in X86 assembly with one parameter

查看:2012
本文介绍了在X86汇编sar命令带有一个参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个反汇编程序我分析,我发现命令

In a disassembled program I'm analyzing, I found the command

sar %eax

这是什么呢?我知道,特区带有两个参数进行右移,但我找不到它只有一个参数表示。

What does this do? I know that sar with two arguments performs a right shift, but I can't find what it means with only one parameter.

这个程序编译为英特尔x86处理器。

This program was compiled for an Intel x86 processor.

推荐答案

看起来像用短手的伪君子特区EAX,1 里面有一个运算$ C $ 0xD1F8的ç。当眼前的不是1,又名 SAR EAX,XX ,运code是 0xC1F8 XX ,见英特尔指令参考,卷。 2B,4-353。

Looks like the dissembler used short-hand for SAR EAX,1 which has an opcode of 0xD1F8. when the immediate is not 1, aka SAR EAX,xx, the opcode is 0xC1F8 xx, see the Intel Instruction reference, Vol. 2B, 4-353.

这篇关于在X86汇编sar命令带有一个参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆