Fix x86-16 disasm issue and add ctypes (wip)
This commit is contained in:
parent
7ee7f936db
commit
05d78f3fc6
3 changed files with 9 additions and 3 deletions
|
|
@ -1,9 +1,9 @@
|
|||
#!/bin/sh
|
||||
# Check bindings supported by valabind
|
||||
# pancake // radare.org - 2010-2011
|
||||
# pancake // radare.org - 2010-2012
|
||||
|
||||
SUP_LANGS=""
|
||||
LANGS="python perl ruby lua go java guile php5 node-ffi"
|
||||
LANGS="python perl ruby lua go java guile php5 node-ffi ctypes"
|
||||
[ -z "${CC}" ] && CC=gcc
|
||||
[ -z "${CXX}" ] && CXX=g++
|
||||
|
||||
|
|
|
|||
6
r2-bindings/ctypes/Makefile
Normal file
6
r2-bindings/ctypes/Makefile
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
LANG=ctypes
|
||||
LANG_EXT=py
|
||||
LIBS_PFX=
|
||||
FORCE_SOEXT=1
|
||||
|
||||
include ../rules.mk
|
||||
|
|
@ -140,7 +140,7 @@ static void gen_operand(struct ud* u, struct ud_operand* op, int syn_cast)
|
|||
mkasm(u, "0x" FMT64 "x", u->pc + op->lval.sbyte);
|
||||
break;
|
||||
case 16:
|
||||
mkasm(u, "0x" FMT64 "x", ( u->pc + op->lval.sword )); // & 0xffff );
|
||||
mkasm(u, "0x" FMT64 "x", ( u->pc + op->lval.sword & 0xffff ));
|
||||
break;
|
||||
case 32:
|
||||
mkasm(u, "0x" FMT64 "x", ( u->pc + op->lval.sdword )); // & 0xfffffffful );
|
||||
|
|
|
|||
Loading…
Reference in a new issue