I was looking at good practices on the wiki when I spotted Use Jump tables with RTS instruction instead of JMP indirect instruction incorrectly page and it says.
Now, isnt that wrong? 4 bytes is correct, but there is no saving in cycles.
In fact, the alternate piece of code is 1 cycle slower, not faster. If thats the case, this optimisation should be in Optimise code size at the expense of cycles part of the page.
Sorry if this is in wrong subforum.
Quote:
Savings : 4 bytes, 1 cycle.
Now, isnt that wrong? 4 bytes is correct, but there is no saving in cycles.
In fact, the alternate piece of code is 1 cycle slower, not faster. If thats the case, this optimisation should be in Optimise code size at the expense of cycles part of the page.
Sorry if this is in wrong subforum.