rz-asm - Man Page

rizin assembler and disassembler tool

Synopsis

rz-asm[-ABdDeEfCLvwrqx] [-a arch] [-b bits] [-c cpu] [-F in:out] [-o offset] [-@ offset] [-O ofile] [-s syntax] [-i int] [-l int] [ARG]

Description

This tool uses r_asm to assemble and disassemble files or hexpair strings. It supports a large list of architectures which can be listed using the -L flag.

-a arch

Set architecture plugin

-A

Show analysis information of given hexpair string

-b bits

Set architecture bits

-B

Binary input/output (-l is mandatory for binary input)

-c cpu

Select specific CPU (depends on -a arch)

-C

Output in C format

-d

Disassemble hexpair bytes. rz-asm -d 9090

-D

Disassemble showing hexpair and opcode

-e

Use big endian (or swap endianness if used more than once)

-E

Output disassembled instructions in ESIL format.

-f

Read data from file instead of ARG.

-F in:out

Specify input and/or output filters (att2intel, x86.pseudo, ...)

-h

Show usage help message.

-hh

Show long help message including supported assembler directives

-l int

Input/Output length

-i int

Ignore/skip N bytes from the beginning of the input buffer

-L

List supported asm plugins

-o offset

Offset of the opcode to assemble (default is 0)

-@ offset

Alias for -o

-O ofile

output to file, for example 'rz-asm -BF a a.asm'

-r

Show output in rizin script

-s syntax

Select syntax output (intel, att)

-w

Describe opcode (whats op)

-x

Use hex dwords instead of hexpairs in the assembler output

-q

Quiet output (handy for -L, -v, ...)

different than filename

-.intel_syntax

Use intel syntax rather than att:w

-.att_syntax

Use ATT syntax rather than flu :w dentify the region fof aslerrger

-string

dentify the region fof aslerrger

-.align
-.arch
-.arm
-.ascii
-.bits
-.data
-.equ
-.fill
-.glob
-.hex
-.int16
-.int32
-.int64
-.kernel
-.offset
-.org
-.os
-.short
-.text
-.thumb

Examples

Assemble opcode:

$ rz-asm -a x86 -b 32 'mov eax, 33'

Disassemble opcode:

$ rz-asm -d 90

See Also

rizin(1), rz-find(1), rz-hash(1), rz-bin(1), rz-diff(1), rz-gg(1), rz-run(1), rz-ax(1),

Authors

pancake <pancake@nopcode.org>

Referenced By

rizin(1), rz-ax(1), rz-bin(1), rz-diff(1), rz-find(1), rz-gg(1), rz-hash(1), rz-run(1).

October 30, 2018