是否有任何指令或操作员将字节从10110001转换为10001101? [英] is there any instruction or operator to convert a Byte from 10110001 to 10001101?

查看:58
本文介绍了是否有任何指令或操作员将字节从10110001转换为10001101?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否有任何单个指令或操作符在''C''[作为旋转(RL A)在

8051汇编中)]到
转换一个字节使得MSB将变为LSB等等.....


例如:11101010将成为01010111


它可以通过构建函数来完成,但如果有任何单个

指令而不是plz告诉....

Hi,
is there any single instruction or operator in ''C'' [as Rotate(RL A) in
8051 assembly)] to
convert a byte such that MSB will become LSB and so.....

for example:11101010 will become 01010111

it can be done by building a function,,but if there is any single
instruction than plz tell....

推荐答案

2006年3月15日星期三22:14,NISARG认为(

< 11 ***************** ****@j33g2000cwa.googlegroups.com>):
On Wednesday 15 March 2006 22:14, NISARG opined (in
<11*********************@j33g2000cwa.googlegroups. com>):

C中有任何单个指令或操作符[作为旋转(RL A) )
8051汇编)]转换一个字节使MSB变为LSB等等......例如:11101010将成为01010111

它可以通过构建一个函数来完成,但是如果有任何单个
指令而不是plz告诉....
Hi,
is there any single instruction or operator in ''C'' [as Rotate(RL A)
in
8051 assembly)] to
convert a byte such that MSB will become LSB and so.....

for example:11101010 will become 01010111

it can be done by building a function,,but if there is any single
instruction than plz tell....




不,没有这样的指示,但正如你所说,将b / b
实现为函数或宏并不困难。


-

BR,Vladimir


组装完仪器后,

将在工作台上找到额外的组件。



No, there is no such instruction, but as you say, it''s not difficult to
implement as a function or a macro.

--
BR, Vladimir

After an instrument has been assembled,
extra components will be found on the bench.


" NISARG" < NI *********** @ yahoo.com>写道:
"NISARG" <ni***********@yahoo.com> writes:
在''C'中有任何单指令或运算符[作为8051汇编中的旋转(RL A))]
转换为字节使得MSB将变为LSB等......例如:11101010将成为01010111
is there any single instruction or operator in ''C'' [as Rotate(RL A) in
8051 assembly)] to
convert a byte such that MSB will become LSB and so.....

for example:11101010 will become 01010111




No.

-

我看到它的方式,一个不同意我的聪明人是

可能是我将与之互动的最重要的人在任何给定的

天。

- 比利Chambless



No.
--
"The way I see it, an intelligent person who disagrees with me is
probably the most important person I''ll interact with on any given
day."
--Billy Chambless


" NISARG" < NI *********** @ yahoo.com>写道:
"NISARG" <ni***********@yahoo.com> writes:

是'C'中的任何单指令或运算符[作为8051汇编中的旋转(RL A)]]
转换一个字节使得MSB将变为LSB等等.....

例如:11101010将成为01010111
Hi,
is there any single instruction or operator in ''C'' [as Rotate(RL A) in
8051 assembly)] to
convert a byte such that MSB will become LSB and so.....

for example:11101010 will become 01010111




这是位反转,但你的汇编指令是一个

轮换。这些都是不同的东西,你想要的是什么?


无论哪种方式,都没有C操作员这样做。


考虑256-字节查找表。或测试&单独设置位。


-


John Devereux



This is bit reversal, but your assembly instruction is a
rotation. These are different things, which do you want?

Either way, there is no C operator to do this.

Consider a 256-byte lookup table. Or test & set bits individually.

--

John Devereux


这篇关于是否有任何指令或操作员将字节从10110001转换为10001101?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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