什么是XOR在x86汇编意思? [英] What is the meaning of XOR in x86 assembly?

查看:777
本文介绍了什么是XOR在x86汇编意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我进入组装和我一直运行到XOR,例如:

I'm getting into assembly and I keep running into xor, for example:

xor     ax, ax

这是否只是清除寄存器的值?

Does it just clear the register's value?

推荐答案

A XOR B 英文会被翻译成是A和B不等于。因此,异斧,因为斧将设置零总是等于本身。

A XOR B in english would be translated as "are A and B not equal". So xor ax, ax will set ax to zero since ax is always equal to itself.

A B | A XOR B
0 0 | 0
1 0 | 1
0 1 | 1
1 1 | 0

这篇关于什么是XOR在x86汇编意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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