diff options
Diffstat (limited to 'opcodes/h8300-dis.c')
-rw-r--r-- | opcodes/h8300-dis.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/opcodes/h8300-dis.c b/opcodes/h8300-dis.c index 9c77e91..769c12e 100644 --- a/opcodes/h8300-dis.c +++ b/opcodes/h8300-dis.c @@ -279,17 +279,17 @@ print_one_arg (disassemble_info *info, if ((x & SIZE) == L_16 || (x & SIZE) == L_16U) { - outfn (stream, ".%s%d (0x%x)", + outfn (stream, ".%s%d (0x%lx)", (short) cst > 0 ? "+" : "", (short) cst, - addr + (short) cst + len); + (long)(addr + (short) cst + len)); } else { - outfn (stream, ".%s%d (0x%x)", + outfn (stream, ".%s%d (0x%lx)", (char) cst > 0 ? "+" : "", (char) cst, - addr + (char) cst + len); + (long)(addr + (char) cst + len)); } } else if ((x & MODE) == DISP) |