什么字节发出一个ARM64相当于EBFE的? [英] What bytes to emit for an ARM64 equivalent of EBFE?

查看:403
本文介绍了什么字节发出一个ARM64相当于EBFE的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是这对86相当于ARM64?

What is the EBFE which is for x86 equivalent for ARM64?

看到了类似的帖子(<一个href=\"http://stackoverflow.com/questions/9595940/what-bytes-to-emit-for-an-arm-equivalent-of-ebfe\">What字节发出一个相当于ARM的EBFE )?但它不工作。可能是32位>

Saw a similar posting (What bytes to emit for an ARM equivalent of EBFE?) but it is not working. Probably for 32 bit>

由于提前

推荐答案

由于我没有的知道的确切答案,也不觉得自己挖掘出ARMv8 ARM和编码手的指令,我要骗:

Since I neither know the exact answer, nor feel like digging out the ARMv8 ARM and hand-encoding an instruction, I'm going to cheat:

$ echo "b ." | aarch64-linux-gnu-as
$ aarch64-linux-gnu-objdump -d a.out

a.out:     file format elf64-littleaarch64


Disassembly of section .text:

0000000000000000 <.text>:
   0:   14000000        b       0 <.text>

嗯,这很容易; 0x14000000

编辑:万一明显需要指出,这就是32位指令字。它的实际字节必须以正确的顺序为系统字节​​序,即逆转了LE系统。

just in case the obvious needs stating, that's the 32-bit instruction word. The actual bytes of it need to be in the correct order for the system endianness, i.e. reversed for a LE system.

这篇关于什么字节发出一个ARM64相当于EBFE的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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