For example if it spots: ROR $f00d ADC $f00d It could automatically suggest RRA $f00d
LDY #spritenumber LAX #yposition TAS $7BF8,Y ;TAS performs and #$7C, allowing for 32 different sprite images. PLA STA $D027,Y ;Assuming I have color data on the stack. Just as an example of using that TAS modifies SP.
Suppose bank 1 is used and screen memory starts at $7800. Then the sprite image pointers are at $7bf8-$7bff. The trick I'm thinking about uses the and+store operation of TAS, for example LDY #spritenumber LAX #yposition TAS $7BF8,Y ;TAS performs and #$7C, allowing for 32 different sprite images. PLA STA $D027,Y ;Assuming I have color data on the stack. Just as an example of using that TAS modifies SP.
LDY #spritenumber LDX #spritecoordinate SHX $7BF8,Y