Handle `!` with r_core_cmd_str_pipe Fix 'afl' output Add help for 'px' command Add pxQ and pxW to show one word per line Fix segmented io with maps and sections Some test cases got fixed Add test-r_anal.py
19 lines
388 B
Python
Executable file
19 lines
388 B
Python
Executable file
try:
|
|
from r_asm import *
|
|
except:
|
|
from r2.r_asm import *
|
|
|
|
def ass(a, arch, op):
|
|
print "---------------------------->8- - - - - -"
|
|
print "OPCODE: %s"%op
|
|
a.use (arch)
|
|
print "ARCH: %s"%arch
|
|
code = a.massemble (op)
|
|
if code is None:
|
|
print "HEX: Cannot assemble opcode"
|
|
else:
|
|
print "HEX: %s"%code.buf_hex
|
|
|
|
a = RAsm()
|
|
ass (a, 'x86.olly', 'mov eax, 33')
|
|
ass (a, 'java', 'bipush 33')
|