On Tue, Jul 05, 2011 at 12:12:00PM +0100, Edd Barrett wrote:
> On Mon, Jul 04, 2011 at 11:59:23AM +0000, Jona Joachim wrote:
> > Looks like you need a RUN_DEPENDS on nasm:
>
> Thanks! Fixed.
>
> Attached is an update from todays hg with more bugfixes (thanks
> upstream) the vala API enabled as a MULTI_PACKAGE.
Here is a test case for the vala API:
using Radare;
public static void main(string[] args) {
uint8 buf[3] = {0x49, 0x89, 0xd9};
RAsm st = new RAsm();
st.use("x86");
st.set_bits(64);
RAsm.Op op;
st.disassemble(out op, buf, 3);
print("Disassemble: '%s'\n", op.buf_asm);
}
Build like this:
% valac --pkg=r_asm world.vala
Run:
% ./world
Disassemble: 'mov r9, rbx'
--
Best Regards
Edd Barrett
http://www.theunixzoo.co.uk