-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
Description
There's an interesting 6502 assembly optimization where you put a 256-byte page aligned table in memory with each byte having the value of its index. Then you can make some pseudo-operations:
- ADC X with ADC table,X
- TXY with LDY table,X
- etc.
These are faster and smaller than doing it with a temp byte, so if they offset the cost of the table it can be worth it. Could such a feature (probably in the form of a flag) be added to the compiler?