While browsing through the undocumented 6502 opcodes today I realized one should be able to replace all of one's BIT tricks with NOP tricks.
After going through the tables I found two interesting characters (there appear to be duplicates):
$80: NOP #Imm = 2 B, 2 cycles, affects no flags, aka DOP
$0C: NOP Abs = 3 B, 4 cycles, affects no flags, aka TOP
compared to the "normal"
$24: BIT ZP = 2 B, 3 cycles, affects NVZ
$2C: BIT Abs = 3 B, 4 cycles, affects NVZ
NOP #Imm in particular is useful since it allows skipping one byte one cycle faster compared to BIT ZP.
NOP Abs is useful mostly because it doesn't affect the status flags like BIT Abs does, which could be useful in some tightly optimized loop.
Has anyone used either of these and found any problems with them? I tried searching around, but didn't come up with much.
Luckily I haven't yet reached a state where I'd need either of these, but they could prove useful..













