RCR和ROR有什么区别? [英] What is the difference between RCR and ROR?

查看:519
本文介绍了RCR和ROR有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从以下术语中理解RCR将使位从右向左旋转,取进位为进位,而ROR将使位从右向左旋转,取为右边的,但这是它们之间的唯一区别吗?如果是这样的话,这两个指令似乎可以完成相同的工作.请帮忙.谢谢

I understand the from the terms that RCR would rotate the bit from the right to left, taking the bit from the carry while ROR will rotate the bit from right to left, taking the bit from the right but is that the only difference between them? If this is so, both of the instructions seem to do the same work. Please help out. Thanks

推荐答案

RCR在旋转中包含进位标志,因此它实际上是N + 1位旋转,而ROR不包含进位标志,因此它只是一个N旋转.

RCR includes the carry flag in the rotation, so it's effectively an N+1 bit rotate, whereas ROR does not include the carry flag, so it's just an N bit rotate.

来自 www.c-jump.com 的一些不错的图:

这篇关于RCR和ROR有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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