radare2/man/rasm2.1

82 lines
1.7 KiB
Groff
Raw Normal View History

2014-09-30 09:01:45 +00:00
.Dd Sep 30, 2014
2014-09-30 09:37:26 +00:00
.Dt RASM2 1
.Sh NAME
.Nm rasm2
.Nd radare2 assembler and disassembler tool
.Sh SYNOPSIS
.Nm rasm2
.Op Fl dDfBCLevw
2011-12-02 02:43:08 +00:00
.Op Fl F Ar in:out
.Op Fl o Ar offset
.Op Fl O Ar ofile
2011-12-02 02:43:08 +00:00
.Op Fl a Ar arch
.Op Fl b Ar bits
.Op Fl c Ar cpu
2011-12-02 02:43:08 +00:00
.Op Fl s Ar syntax
.Op Fl i Ar int
2011-12-02 02:43:08 +00:00
.Op Fl l Ar int
.Op ARG
.Sh 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.
.Pp
.Bl -tag -width Fl
.It Fl a Ar arch
Set architecture plugin
.It Fl b Ar bits
Set architecture bits
.It Fl B
Binary input/output (\-l is mandatory for binary input)
.It Fl c Ar cpu
Select specific CPU (depends on \-a arch)
.It Fl C
Output in C format
.It Fl d
2011-12-02 02:43:08 +00:00
Disassemble hexpair bytes. rasm2 \-d 9090
.It Fl D
Disassemble showing hexpair and opcode
.It Fl e
Use big endian (or swap endianness if used more than once)
.It Fl f
Read data from file instead of ARG.
2011-12-02 02:43:08 +00:00
.It Fl F Ar in:out
Specify input and/or output filters (att2intel, x86.pseudo, ...)
.It Fl h
Show usage help message.
2011-12-02 02:43:08 +00:00
.It Fl l Ar int
Input/Output length
.It Fl i Ar int
Ignore/skip N bytes from the beginning of the input buffer
2011-12-02 02:43:08 +00:00
.It Fl L
List supported asm plugins
.It Fl o Ar offset
Offset of the opcode to assemble (default is 0)
.It Fl O Ar ofile
output to file, for example 'rasm2 \-BF a a.asm'
.It Fl s Ar syntax
Select syntax output (intel, att)
.It Fl w
Describe opcode (whats op)
.El
.Sh EXAMPLES
.Pp
Assemble opcode:
.Pp
2013-04-16 17:54:26 +00:00
$ rasm2 \-a x86 \-b 32 'mov eax, 33'
.Pp
Disassemble opcode:
.Pp
2013-04-16 17:54:26 +00:00
$ rasm2 \-d 90
.Sh SEE ALSO
.Pp
.Xr radare2(1) ,
.Xr rafind2(1) ,
.Xr rahash2(1) ,
.Xr rabin2(1) ,
.Xr radiff2(1) ,
.Xr ragg2(1) ,
.Xr rarun2(1) ,
.Xr rax2(1) ,
.Sh AUTHORS
.Pp
pancake <pancake@nopcode.org>