capstone icon indicating copy to clipboard operation
capstone copied to clipboard

Motorola 68K's "move.b a0,d0" instruction not disassembled properly

Open mikrosk opened this issue 11 months ago • 2 comments

Please see https://github.com/WerWolv/ImHex/issues/2083 so I don't have to repeat everything again. I'm not sure what version of the engine is used in ImHex but I'd bet that the bug is present even in the latest version as it went unnoticed for so long. :)

Let me know if you need more details.

mikrosk avatar Jan 23 '25 08:01 mikrosk

I understand that it is annoying to retype everything. But please at least add the instruction bytes, the expected instruction and endianess to the issue. Without pictures (because they are not searchable). Also the Capstone version affected (v5.0.3 in this case).

Otherwise other people can't find the issue here, if they run into the same problem.

Rot127 avatar Jan 23 '25 14:01 Rot127

Fair enough.

The instruction in question is move.b a0,d0 which is represented as two bytes: 0x10, 0x08 ((uint16_t)0x1008, big endian order).

Currently it is disassembled as .byte 0x10, 0x08 and not as the instruction.

mikrosk avatar Jan 23 '25 14:01 mikrosk