SYNOPSIS
rasm2 [-dDfBCLevw ] [-F in:out ] [-o offset ] [-a arch ] [-b bits ] [-c cpu ] [-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
- -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. rasm2 -d 9090
- -D
- Disassemble showing hexpair and opcode
- -e
- Use big endian (or swap endianness if used more than once)
- -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.
- -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)
- -s syntax
- Select syntax output (intel, att)
- -w
- Describe opcode (whats op)
EXAMPLES
Assemble opcode:
$ rasm2 -a x86 -b 32 'mov eax, 33'
Disassemble opcode:
$ rasm2 -d 90