Skip to content

Latest commit

 

History

History
79 lines (61 loc) · 2.08 KB

readme.md

File metadata and controls

79 lines (61 loc) · 2.08 KB

Contents

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.

FAL Reference Document

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

Creative Commons License

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, ZwerOxotnik and contributors, 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.