Great video and usually i love Ben's work, but, @ 7:48 he DECrements A which is not a valid instruction on the 6502 =(
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.
- RMB/SMB/BBR/BBS - Rockwell/later WDC only
- WAI/STP - later WDC only
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 :-)