Open maximumspatium opened 4 years ago
Question: should we make Capstone disassembly conform with the Motorola docs?
I would not. The disassembly in form of (xxx).W or .L as suggested in Motorola docs was never used in reality. The m68k assemblers on amiga as well as gnu tools use the notation without parentheses.
Same on the Atari assemblers/disassemblers - I've never seen the parentheses there. Thus I suggest to close this ticket unless somebody wants to implement it with an optional bit in the config settings.
Let's close it for now.
Capstone disassembly for the addressing mode 7, register 0 and 1 doesn't conform with the Motorola specification that uses parentheses around the destination address:
That's Capstone's output for two related instructions:
Expected output according with the Motorola manual would be
respectively. In the case of the MOVEA, the original disassembly makes much more sense because that instruction actually loads a double word from the specified EA into A5. Omitting the parentheses would make the programmer think that the EA itself will be loaded into A5.
Question: should we make Capstone disassembly conform with the Motorola docs?