summaryrefslogtreecommitdiff
path: root/dis.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-12-04 19:13:12 -0800
committerMike Pavone <pavone@retrodev.com>2012-12-04 19:13:12 -0800
commit854a8a9abf29e5cab28871f7a81d0fd1e7474b3d (patch)
tree54651ed6d72de7191718ba8e26e015e2ee2720ef /dis.c
parente54fddc285255b26e7e0ca69db3efb009cfc9c15 (diff)
M68K to x86 translation works for a limited subset of instructions and addressing modes
Diffstat (limited to 'dis.c')
-rw-r--r--dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dis.c b/dis.c
index 38a3527..4aae55c 100644
--- a/dis.c
+++ b/dis.c
@@ -24,9 +24,9 @@ int main(int argc, char ** argv)
{
//printf("cur: %p: %x\n", cur, *cur);
unsigned short * start = cur;
- cur = m68K_decode(cur, &instbuf);
+ cur = m68k_decode(cur, &instbuf, (start - filebuf)*2);
m68k_disasm(&instbuf, disbuf);
- printf("%lX: %s\n", (start - filebuf)*2, disbuf);
+ printf("%X: %s\n", instbuf.address, disbuf);
}
return 0;
}