|
Atari coding BBS
jmp on the 030 |
Posted by: Thomas / New Beat
|
Apr,02.2014-09:37
|
Heya,
I've got some code where 5 status bits is used to enable/disable some functionality. Up til now I've used btst to check these status bits. btst is slow esp. since in the most common cases, only 1-2 bits are enabled.
This is now replaced with two 32-entry jmp-tables. I decided to make two tables because the code got really messy with only one table. The first table handles the most common cases while other cases will have to use both jmp's.
Now to my question
The rout_table-offset in move.w rout_table(pc,d0),d0 can only be +-128 bytes or so. So if I place the rout_table directly after the jmp-instruction, what will that do to the i-cache? I remember something about 16 byte cache blocks or so.
Or is there a better (faster) way to do the above on the 030? (I don't have any a/d registers to spare)
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|