ArchC functional simulator for the Princeton TOY machine