简体   繁体   中英

BLRAAZ hexadecimal value

As said in the title, does anyone know the hexadecimal of the BLRAAZ instruction (like blraaz x19 )?

It seems to be not implemented yet in radare2 and I can't find any values on internet.

Acording to the ARM a64 instruction set architecture (page 98), the instruction BLRAAZ <Xn> is

+---------------+-----+---------------------------+-------+------------+----------+
| 1 1 0 1 0 1 1 | Z=0 | 0 0 1 1 1 1 1 1 0 0 0 0 1 | M = 0 | Rn = ????? | Rm=11111 |
+---------------+-----+---------------------------+-------+------------+----------+

in binary notation ie 0xD63F081F in hexadecimal. Rn is your register number here. For x19 , just set Rn=10011 here and you got 0xD63F0A7F .

Even faster than looking online for the answer you could just try it:

blraaz x19

assemble then disassemble

   0:   d63f0a7f    blraaz  x19

EDIT:

going backward (with binutils)

.inst 0xd63f0a7f

Disassembly of section .text:

0000000000000000 <.text>:
   0:   d63f0a7f    blraaz  x19


aarch64-none-elf-as --version
GNU assembler (GNU Binutils) 2.34
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `aarch64-none-elf'.

apt-get install binutils-aarch64-linux-gnu

aarch64-linux-gnu-as --version
GNU assembler (GNU Binutils for Ubuntu) 2.30
Copyright (C) 2018 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `aarch64-linux-gnu'.

Disassembly of section .text:

0000000000000000 <.text>:
   0:   d63f0a7f    blraaz  x19


blraaz x19


Disassembly of section .text:

0000000000000000 <.text>:
   0:   d63f0a7f    blraaz  x19

so the apt-gettable 2.30 also supports this instruction. (vs building 2.34 from sources)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM