MicroController

program circuit network logic using FAL, a Factorio Assembly Language. Author: Luke Perkin. Modified by ZwerOxotnik
3 days ago
0.17
69
Owner: ZwerOxotnik
Source: ZwerOxotnik/m-microcontroller
Homepage: N/A
License: CC BY 4.0
Created: 3 days ago
Latest Version: 0.5.3 (3 days ago)
Factorio version: 0.17
Downloaded: 69 times

Description

Handle your signals like a pro by writing FAL (Factorio Assembly Language).
This state of the art MicroController has 4 memory registers, can take any number of inputs on two channels, red and green plus 1 output register.
The MicroController can do everything a combinator can do, only more and better!

FAL has 34 Opcodes and can read 32 lines of instructions.

Download the FAL Reference Document here: dropbox, github or open the file in the mod folder.

Examples

1-st

# Outputs the first signal
# from red multiplied by 2.
mov red1 mem1
mul mem1 2
mov mem1 out
jmp 2

2-nd

# accumulates first 4
# signals on the red wire.
:SETUP
clr
set 11 mem2
set 1 mem3
:LOOP
mov red@3 mem1
add mem1 mem@2
mov mem1 mem@2
:NEXT
add mem2 1
tlt mem1 15
set 11 mem1
mov mem1 mem2
add mem3 1
tlt mem1 5
set 1 mem1
mov mem1 mem3
jmp :LOOP

Terms of use

This work is a derivative of "MicroController" by Luke Perkin, used under Creative Commons Attribution 4.0 Unported license. This work is attributed to Luke Perkin and ZwerOxotnik, and the original version can be found here.

This work is licensed under a Creative Commons Attribution 4.0 International License.

Credit

Roundicons and Flaticons.com for the icon sprites.

Disclaimer

THE WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS IN THE
WORK.