DW反向字节如内存中所示 [英] DW reverse bytes as shown in memory

查看:94
本文介绍了DW反向字节如内存中所示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在基数16中有DW并且我想在内存中以反向字节显示它。

例如:Num = 0x5d009a45我希望看到数字:Num = 0x459a005d。

有没有这样的功能?

谢谢。

I have DW in base 16 and I want tosee it as shown at memory in reverse bytes.
for example : Num= 0x5d009a45 and I want to see the number so: Num= 0x459a005d.
Is there a function that does it?
Thanks.

推荐答案

试试这个:

try this :
function reverse (s) {
  return (s === '') ? '' : reverse(s.substr(1)) + s.charAt(0);
}


这篇关于DW反向字节如内存中所示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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