Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikrosk opened this issue Jan 23, 2025 · 2 comments
Open

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

mikrosk opened this issue Jan 23, 2025 · 2 comments
Labels
bug Something is not working as it should M68K Arch
Milestone

Comments

@mikrosk
Copy link

mikrosk commented Jan 23, 2025

Please see WerWolv/ImHex#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.

@Rot127 Rot127 added bug Something is not working as it should M68K Arch labels Jan 23, 2025
@Rot127
Copy link
Collaborator

Rot127 commented Jan 23, 2025

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.

@mikrosk
Copy link
Author

mikrosk commented Jan 23, 2025

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.

@Rot127 Rot127 added outdated-module Issue due to an outdated arch module and removed outdated-module Issue due to an outdated arch module labels Jan 23, 2025
@Rot127 Rot127 added this to the v6 - Beta milestone Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as it should M68K Arch
Projects
None yet
Development

No branches or pull requests

2 participants