Hi Ed (love your OPC stuff),
No, this is strictly a toy 4-bit educational CPU (including 4-bit address bus) for TTL on a (large-ish) breadboard. The cool part are the many hours of amazing videos Ben has made showing exactly how he designed and built every single part of the computer and how it all works (all the way from "what is a semiconductor", what is a flip-flop etc.). The actual CPU design is very similar to the SAP-1 from an out of print computer book called Digital Computer Electronics.
I have attached a diagram of the CPU "screen grabbed" from Youtube to this post.
As far as the instruction set, high 4 bits is instruction and low 4 bits are operand (or ignored). Ben hasn't gotten to JCS yet (jump carry set), but here are the instructions plus that one:
Code:
-- Ben Eater SAP inspired CPU instruction set:
--
-- 0000 xxxx NOP no-operation
-- 0001 mmmm LDA M A = RAM[M]
-- 0010 mmmm ADD M A = A+RAM[M]
-- 0011 mmmm SUB M A = A-RAM[M]
-- 0100 mmmm STA M RAM[M] = A
-- 0101 iiii LDI N A = N (4-LSB)
-- 0110 mmmm JMP M PC = M
-- 0111 mmmm JCS M if (carry) then PC = M
-- 1000 xxxx ??? (unused, acts like NOP)
-- 1001 xxxx ??? (unused, acts like NOP)
-- 1010 xxxx ??? (unused, acts like NOP)
-- 1011 xxxx ??? (unused, acts like NOP)
-- 1100 xxxx ??? (unused, acts like NOP)
-- 1101 xxxx ??? (unused, acts like NOP)
-- 1110 xxxx OUT output A register
-- 1111 xxxx HLT halt CPU clock (forces clock enable low)
SAP stands for "Simple As Possible" to teach about CPUs and digital electronics (and maybe a bit of FPGAs and VHDL with my project). Of course the first thing one wants to do when you get this operational is to extend it. Thankfully, this is a lot easier than re-wiring things on a breadboard.
-Xark