X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=linux%2Fhost_dasm.c;h=d35bc9f56497aeaad6284f2d4b0bdcfdab5f4ba6;hb=e81b987fc1e567f92298087e32e5d9f01fce0aa7;hp=cd2db694cca386b6a9df57740f3bd0cc8193010c;hpb=e8fc349e7136741eeb504eaefacf3cb333ea9397;p=libpicofe.git diff --git a/linux/host_dasm.c b/linux/host_dasm.c index cd2db69..d35bc9f 100644 --- a/linux/host_dasm.c +++ b/linux/host_dasm.c @@ -1,3 +1,14 @@ +/* + * (C) Gražvydas "notaz" Ignotas, 2009-2010 + * + * This work is licensed under the terms of any of these licenses + * (at your option): + * - GNU GPL, version 2 or later. + * - GNU LGPL, version 2.1 or later. + * - MAME license. + * See the COPYING file in the top-level directory. + */ + #include #include #include @@ -11,7 +22,7 @@ extern char **g_argv; static struct disassemble_info di; -#ifdef ARM +#ifdef __arm__ #define print_insn_func print_insn_little_arm #define BFD_ARCH bfd_arch_arm #define BFD_MACH bfd_mach_arm_4T @@ -188,7 +199,7 @@ void host_dasm(void *addr, int len) if (name != NULL) printf("%s:\n", name); - printf(" %p ", (void *)(long)vma); + printf(" %08lx ", (long)vma); vma += print_insn_func(vma, &di); printf("\n"); }