fCPU


Factorio Customizable Processing Unit. Allow to write any logic on low level machine code. The fCPU acts like a programmable microcontroller with a vector coprocessor that supports many useful instructions.

Content
3 months ago
0.18 - 1.1
8.51K
Logistic network Circuit network

g Histeresis program

3 years ago

Hello,

I don't know where we can share our programs that maybe could be attractive to others, like with the blueprints. But, in the meanwhile, is a very very simple program but it was my first one and is much simpler to do it with fCPU than with standard circuits, so here it is!

clr out1 r1 r2 r3

:main
fir r1 [item=copper-plate]
fig r2 [virtual-signal=signal-C]
fig r3 [virtual-signal=signal-H]
tad r8 [virtual-signal=signal-green]
sst r8 [virtual-signal=signal-green]

div r1 1000
sub r1 r2
mul r3 r8

tle r1 r3
ssv r8 1
tgt r1 r3
ssv r8 0

mov out1 r8
jmp :main

It can be the basement to create complex histeresis that control the production to not overproduced nor run out of items. I hope you like it. And, thank you so much for the mod, is really triggering me!

3 years ago
(updated 3 years ago)

Thank you for the example.
I created Discord channels for enthusiasts to discuss their programs and blueprints.
So there is a good place to share your designs and get advice.

New response