BartmanAbyss / vscode-amiga-debug

One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
312 stars 39 forks source link

Incorrect cycle times? #96

Closed rjobling closed 2 years ago

rjobling commented 2 years ago

Love the new additions but some of the cycle counts seem wrong.

This should be 8 cycles not 18, I think: image

This also seems wrong, EASy68k reports 22cycles: image

I don't know these numbers well, so I'm going off what EASy68k tells me. I suppose it could be wrong in the second case.

BartmanAbyss commented 2 years ago

Haha, nice find. Seems the lea opcode only has problems with a5 as source register ;)

BartmanAbyss commented 2 years ago

For bchg, 68000 user's manual pg. 136 says for dynamic, memory 8 + EA (=10). So I would say, EASy68k is wrong, it seems to take from the column static, memory but that refers to something like bchg #3,(a4,d3.w).

rjobling commented 2 years ago

For bchg, 68000 user's manual pg. 136 says for dynamic, memory 8 + EA (=10). So I would say, EASy68k is wrong, it seems to take from the column static, memory but that refers to something like bchg #3,(a4,d3.w).

My code just got faster :)