Bit manipulation: R65c02 and W65c02

Programming the 6502 microprocessor and its relatives in assembly and other languages.
Post Reply
dlenmn
Posts: 8
Joined: 10 Jul 2005
Contact:

Bit manipulation: R65c02 and W65c02

Post by dlenmn »

I was looking at WDC's W65c02 data sheet (http://www.westerndesigncenter.com/wdc/ ... 65c02s.pdf) and noticed that it listed Reset Memory Bit (RMB), Set Memory Bit (SMB), Branch on Bit Reset (BBR), and Branch on Bit Set (BBS) as instructions. However, appendix c of WDC's programming manual (http://www.westerndesigncenter.com/wdc/ ... manual.pdf) indicates that these instructions are only available to Rockwell's R65c02. Being able to test any bit in any byte in the zero page sounds like a nice feature. Do WDC's chips these instructions or not?
TANSTAAFL -- There Ain't No Such Thing As A Free Lunch
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Post by GARTHWILSON »

Yes, all of WDC's 65c02's today have these instructions. Originally only Rockwell had them, but for the last several years, all WDC ones have had them too. They started before year 2000 IIRC.
dlenmn
Posts: 8
Joined: 10 Jul 2005
Contact:

Post by dlenmn »

Score. Thanks for the confirmation.
TANSTAAFL -- There Ain't No Such Thing As A Free Lunch
kc5tja
Posts: 1706
Joined: 04 Jan 2003

Post by kc5tja »

dlenmn wrote:
Score. Thanks for the confirmation.
However, these instructions are NOT in the 65C816 instruction set, even when running in 6502-mode. (For the benefit of anyone reading this thread for informational purposes.)
Post Reply