The CMOS version (at least the one from WDC, which he uses) does have it.
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 :-)