MicroController

by ljdp

Program circuit network logic using FAL, a Factorio Assembly Language.

Content
5 years ago
0.16
7
Circuit network

g AAI Patrol Route example

6 years ago
(updated 6 years ago)

As I'm relatively familiar with the concept (thanks, TIS-100 and Shenzhen I/O!) I'm having a blast with this mod, however one thing in particular that came up and was a bit trickier is that I wanted to condense some of the larger combinator arrays used to control AAI programmable vehicles down into, if possible, only one microcontroller.

So far I do have a "simple" routine that allows for setting up a straightforward A->B->C->D->A patrol route. Red inputs are from the Unit Scanner, and green inputs should be isolated and come from a single Constant Combinator that has each of the zones you want to patrol, in the order you want the unit to cycle them. Basically this will always output the "next" signal in order from the green circuit when that signal is found in the red circuit.

mov green@4 mem2
tlt mem4 cng
set 0 mem4
add mem4 1
mov mem1 mem4
fir mem2
mul mem1 mem2
tlt mem1 1
mov green@4 out
jmp 1

New response