13.1 asm/dasm

There are two rsc scripts that emulate 'rasm' to assemble and disassemble single opcodes for multiple architectures from the command line.

$ rsc asm 'mov eax,33'
b8 21 00 00 00 

$ rsc dasm 'b8 21 00 00 00'
   0:   b8 21 00 00 00          mov    $0x21,%eax

If you pay attention to the output you'll notice that it's AT&T syntax and the formatting is the objdump one. Looking the scripts will make you understand that it's using 'gas' and 'nasm' for assembling and objdump for disassembling.

Compare this with rasm:

$ rasm 'mov eax,33'
b8 21 00 00 00 
$ rasm -d 'b8 21 00 00 00'
mov eax, 0x21