Fix make-issue, caused by calling to r_io

This commit is contained in:
condret 2013-12-17 20:00:26 +01:00 committed by pancake
parent 72c2dc0f3c
commit 4fdf22a9e7
4 changed files with 6 additions and 4 deletions

View file

@ -185,3 +185,5 @@ THE ONLY WINNING MOVE IS NOT TO PLAY.
SHALL WE PLAY A GAME?
sudo make me a pancake
bitch
I nodejs so hard my exams
What a nodejs!

View file

@ -1,7 +1,7 @@
include ../config.mk
NAME=r_anal
DEPS=r_util r_db r_lib r_reg r_syscall r_diff r_io
DEPS=r_util r_db r_lib r_reg r_syscall r_diff
# r_core (commented as it would be recursive)
CFLAGS*=HAVE_CPARSE=$(HAVE_CPARSE)
CFLAGS+=-DCORELIB -Iarch -I$(TOP)/shlr

View file

@ -11,9 +11,9 @@ void meta_gb_bankswitch_cmt(RMeta *m, ut64 addr, ut16 ldarg, ut8 rmbc) {
r_meta_set_string(m, R_META_TYPE_COMMENT, addr, "Bankswitch");
}
void gb_bankswitch_detect(RMeta *m, RIO *io, ut64 addr, ut16 ldarg) {
void gb_bankswitch_detect(RMeta *m, RIOBind iob, ut64 addr, ut16 ldarg) {
ut8 rt;
r_io_read_at(io, 0x147, &rt, 1); //xxx: it won't change
iob.read_at(iob.io, 0x147, &rt, 1); //xxx: it won't change
switch(gb_mbc_resolve(rt)) {
case -1:
r_meta_set_string(m, R_META_TYPE_COMMENT, addr, "unknown MBC!!!");

View file

@ -71,7 +71,7 @@ static int gb_anop(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int len
break;
case 0x08:
case 0xea:
gb_bankswitch_detect(anal->meta, anal->iob.io, addr, (data[2]*0x100)+data[1]);
gb_bankswitch_detect(anal->meta, anal->iob, addr, (data[2]*0x100)+data[1]);
case 0x02:
case 0x12:
case 0x22: