Scroll to navigation

RASM2(1) General Commands Manual RASM2(1)

NAME

rasm2radare2 assembler and disassembler tool

SYNOPSIS

rasm2 [-ABdDeEfCLvwrq] [-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.

arch
Set architecture plugin
Show analysis information of given hexpair string
bits
Set architecture bits
Binary input/output (-l is mandatory for binary input)
cpu
Select specific CPU (depends on -a arch)
Output in C format
Disassemble hexpair bytes. rasm2 -d 9090
Disassemble showing hexpair and opcode
Use big endian (or swap endianness if used more than once)
Output disassembled instructions in ESIL format.
Read data from file instead of ARG.
in:out
Specify input and/or output filters (att2intel, x86.pseudo, ...)
Show usage help message.
Show long help message including supported assembler directives
int
Input/Output length
int
Ignore/skip N bytes from the beginning of the input buffer
List supported asm plugins
offset
Offset of the opcode to assemble (default is 0)
offset
Alias for -o
ofile
output to file, for example 'rasm2 -BF a a.asm'
Show output in r2 script
syntax
Select syntax output (intel, att)
Describe opcode (whats op)
Quiet output (handy for -L, -v, ...)

different than filename

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

EXAMPLES

Assemble opcode:


$ rasm2 -a x86 -b 32 'mov eax, 33'

Disassemble opcode:


$ rasm2 -d 90

SEE ALSO

radare2(1), rafind2(1), rahash2(1), rabin2(1), radiff2(1), ragg2(1), rarun2(1), rax2(1),

AUTHORS

pancake <pancake@nopcode.org>

October 30, 2018