Here's what I came up with for storing an arbitrary input value. Sorry for the potato quality (on lunch break at work)NotABiter wrote:
I've been thinking about the "Decider Combinator" (with the output set to "Input Count" and operator set to '<'), wondering if it could somehow be used to latch arbitrary values (by toggling the 2nd input between MIN_INTEGER and MAX_INTEGER), but I'm not exactly seeing an easy solution. (The immediate problem is that you need to somehow loop the output back to the input in order to "remember" the value, but you don't want to wire-add the remembered value to the original input value.) Maybe with two of them linked together with some fancy timing of the secondary inputs...
When a "red" signal is sent, decider 1 records the "set" state. the current input for B (in this case 52) is captured by decider 2 and sent to 3 and 4. 4 Then forwards the value to 5, while 3 sends out a signal to stop 4 from continuously outputting B (which prevents the infinite addition problem). 5 and 6 act as the memory cell, passing the value of B back and forth. By then hooking up 3-out to 6-in, the reset signal can be introduced to the memory cell (5+6).
The only problem is in input signal B ever falls to zero the cell drops its memory... but there are multiple ways around that.