I am working with a W65C02S chip and it has extra opcodes, BBRn
and BBSn
that branch on a bit set, or bit reset. However, I cannot find on which register or memory location this check is done.
When looking for more info on these opcodes, I found this from 6502.org. But that is talking about an extra addressing mode zp,rel
, which is not talked about at all in the W65C02S datasheet. The datasheet says these opcodes use the r
(relative) addressing mode.
I would assume BBRn
/BBSn
use the accu, but can someone confirm?