10 comments

[ 3.6 ms ] story [ 30.1 ms ] thread
As someone who pivoted into more computing-centric work from an unrelated scientific field, I can't recommend Ben's channel enough! The 6502 series really helped me put together a ground-up view of hardware that I don't think I could have gotten as quickly anywhere else. His networking series is a banger too.

(I had a decent circuitry background from my intro physics courses so YMMV)

Yeah, picked up his 6502 kit and worked through his video series: burning a ROM, adding an LCD display, serial communication....

I learned a lot.

I have a limited background in computing hardware, but I really appreciate the thought he puts into explaining both the why and how.

His 8-bit CPU videos are just amazing, and even at ~1 Hz, it’s incredible to think about what all happens. And then to think about going billions of times faster…

Great video and usually i love Ben's work, but, @ 7:48 he DECrements A which is not a valid instruction on the 6502 =(
The CMOS version (at least the one from WDC, which he uses) does have it.
Ahhh i see. So technicallyyyyy it's a 65C02. All good.

So if you're trying this code on an original 6502 it will not work, but easily modifiable to use the X or Y registers instead of A.

All the CMOS variants have it, regardless of manufacturer. The manufacturer-specific instructions are:

- RMB/SMB/BBR/BBS - Rockwell/later WDC only

- WAI/STP - later WDC only

Aren’t WAI and STP only on the 16 bit versions?

EDIT: just looked it up, and you’re right! The 65C02S has them. I thought I saw in the WDC programming manual that it was on the 16 bit version. I’m going to play around with those a bit :-)

Don't they also have BRA - BRanch Always, PHX PHY PLX PLY - PusH or PulL X or Y register, STZ - STore Zero, TRB - Test and Reset Bits, TSB - Test and Set Bits?
Yes, but those are common to all versions, not manufacturer-specific.