Legacy PIC or 8051 chips can often be found on specialized electronics surplus sites, or their assembly code can be ported to a modern Arduino/ESP32.