-
Notifications
You must be signed in to change notification settings - Fork 5
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
M68K disassembly displays wrong instruction #30
Comments
M68KDisassemble() function in m68kdasm.c is a good start to look at the problem. Depend the situation HandleMovem(buffer, offset, 1) is correct but for our case it should be 0 instead of 1. Exemple of correct usage with parameter as 1: |
Comments have been added when looking for an issue. #30
|
This is good to know, and I guess it occurs also in the original Virtual Jaguar 2.1.2 / 2.1.3. |
I will make one this evening. |
Sorry, to tired. Anyway here the source and cof for the moveq and move ..,sr problem. |
No problems, thank you for the file. I do not promise a fix but I will look at it for sure. |
No problem. Just collecting issues ;-) It is not the most urgent one. |
Looked at the moveq issue and to make it "short", 2 problems arise.
It is possible to fix the moveq in the dasm within a cautious approach. |
Looked into the 68000 folder, wow, this is not an easy change :( |
VJ's 68000 emulation has been ported from the UAE 68000 cpu core. May be their Amiga emulator got updates since then. |
Just checked |
James Hammons did the port for the Atari Jaguar many years ago, but unsure if he is still active on the console. |
User reports a display disassembly error but the opcode is correct and correctly executed.
Problem occurs also in the M68K Disassembly Browser, available in the debug Alpine mode.
It is also a legacy issue, occuring in Virtual Jaguar 2.1.2.
Source code:
move.l d0,(a0)+
move.l d1,(a0)+
movem.l d0-d1,bmpupdate
Disassembly:
MOVE.L D0, (A0)+
MOVE.L D1, (A0)+
MVMLE.L A6-A7, $9108
Listing
8021EC: 20C0 | MOVE.L D0, (A0)+
8021EE: 20C1 | MOVE.L D1, (A0)+
8021F0: 48F9 0003 0001 6C28 |
MVMLE.L A6-A7, bmpupdateThe text was updated successfully, but these errors were encountered: