radare2/man/rasm2.1
pancake 7f5a84b57a Add new code analysis vars and update manpages
rasm2 defaults -o to 0 instead of 0x8048000
fixes in rarun2 to make it more userfriendly
update some manpages with examples
enhace output of 'afi' command
fix 'pi' bug setting blocksize
fix 'pdi' bug ignoring user defined len
add $C $J $X and $F $I code analysis variables
run r2irc.js in sandbox mode
2012-10-22 02:28:42 +02:00

73 lines
1.3 KiB
Groff

.Dd Mar 11, 2012
.Dt RASM2 1
.Os
.Sh NAME
.Nm rasm2
.Nd radare2 assembler and disassembler tool
.Sh SYNOPSIS
.Nm rasm2
.Op Fl dDfBCLev
.Op Fl F Ar in:out
.Op Fl o Ar offset
.Op Fl a Ar arch
.Op Fl b Ar bits
.Op Fl s Ar syntax
.Op Fl l Ar int
.Op ARG
.Sh DESCRIPTION
TODO: This manpage is incomplete.
.Pp
.Bl -tag -width Fl
.It Fl d
Disassemble hexpair bytes. rasm2 \-d 9090
.It Fl D
Disassemble showing hexpair and opcode
.It Fl f
Read data from file instead of ARG.
.It Fl F Ar in:out
Specify input and/or output filters (att2intel, x86.pseudo, ...)
.It Fl o Ar offset
Offset of the opcode to assemble (default is 0)
.It Fl a Ar arch
Set architecture plugin
.It Fl b Ar bits
Set architecture bits
.It Fl s Ar syntax
Select syntax output (intel, att)
.It Fl B
Binary input/output (\-l is mandatory for binary input)
.It Fl l Ar int
Input/Output length
.It Fl C
Output in C format
.It Fl L
List supported asm plugins
.It Fl e
Use big endian
.It Fl h
Show usage help message.
.El
.Sh EXAMPLES
.Pp
Assemble opcode:
.Pp
$ rasm2 -a x86 -b 32 'mov eax, 33'
.Pp
Disassemble opcode:
.Pp
$ 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>,
nibble <nibble@develsec.org>