Hello, I'm finding that there seems to be inconsistency in the numeric base that constants are emitted in from M68K objdump, in particular the address register indirect with index mode (110) appears to emit the displacement as a hexadecimal number (without 0x qualifier) where other values are emitted in decimal.
Repro: > $ cat repro.s > repro: > moveb #30, %d0 > moveb %a0@(30, %d0:w), %d1 > rts > $ as -o repro.o repro.s > $ objdump -d repro.o > > repro.o: file format elf32-m68k > > > Disassembly of section .text: > > 00000000 <repro>: > 0: 103c 0010 moveb #30,%d0 > 4: 1230 0010 moveb %a0@(1e,%d0:w),%d1 > 8: 4e75 rts Note the use of constant 30 for both an immediate and displacement, and the output of objdump with 30 as the immediate but 1e (30 hex) as the displacement with no 0x prefix. I have not found a way thus far to mitigate this inconsistency. I've seen this in both 2.46.1 and 2.47 on multiple hosts. Let me know if any further information is needed, thank you! - Matt G.
