X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Flinux%2Fhost_dasm.c;h=5117a240412ee95a86c1e7b7bdaeb693d4dc6890;hb=c6f91b0ea34fceac83acb2c5c227e327f8d40786;hp=0b9782115aff23feeedf5ee02c8567a510a5ac88;hpb=44e6452e0247e4a926eba8a233080aec5dd7b29b;p=picodrive.git diff --git a/platform/linux/host_dasm.c b/platform/linux/host_dasm.c index 0b97821..5117a24 100644 --- a/platform/linux/host_dasm.c +++ b/platform/linux/host_dasm.c @@ -1,3 +1,10 @@ +/* + * PicoDrive + * (C) notaz, 2009,2010 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ #include #include #include @@ -11,7 +18,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 +195,7 @@ void host_dasm(void *addr, int len) if (name != NULL) printf("%s:\n", name); - printf(" %08lx ", (long)vma); + printf(" %08lx ", (long)vma); vma += print_insn_func(vma, &di); printf("\n"); }