Search
lxdream.org :: lxdream/src/test/testsh4x86.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/test/testsh4x86.c
changeset 990:ae329de3c8ab
prev968:6fb1481859a4
next1065:bc1cc0c54917
author nkeynes
date Wed Mar 04 23:04:54 2009 +0000 (13 years ago)
permissions -rw-r--r--
last change Print address correctly with %p
file annotate diff log raw
1.1 --- a/src/test/testsh4x86.c Thu Jan 15 11:23:20 2009 +0000
1.2 +++ b/src/test/testsh4x86.c Wed Mar 04 23:04:54 2009 +0000
1.3 @@ -22,6 +22,8 @@
1.4 #include <stdarg.h>
1.5 #include <getopt.h>
1.6 #include <sys/stat.h>
1.7 +#include <string.h>
1.8 +
1.9 #include "x86dasm/x86dasm.h"
1.10 #include "sh4/sh4trans.h"
1.11 #include "sh4/sh4core.h"
1.12 @@ -191,7 +193,7 @@
1.13 char buf[256];
1.14 char op[256];
1.15 uintptr_t pc2 = x86_disasm_instruction( pc, buf, sizeof(buf), op );
1.16 - fprintf( stdout, "%08x: %s\n", pc, buf );
1.17 + fprintf( stdout, "%p: %s\n", (void *)pc, buf );
1.18 pc = pc2;
1.19 }
1.20 return 0;
.