So I was wanting to make a micro controller; IRL I've been playing with Arduino and I thought it would be neat to make a low-level programming language using Minecraft's item system.
So the problem is: I don't want to use a piston tape, and I want to use a chest's slots as the parts.
And, naturally, I don't want to have to make 30 of the same testfor for each slot of the chest.
So how would I make it look for it slot by slot?
Do command blocks have a variable system that I could use?