A series of kits from CPUville.com allows you to build an 8 bit CPU from TTL logic, wire it up into a small computer, and program it.