Assembly Combinator

by joalon

Adds assembly combinators that allow programming signal logic using a simple assembly-like language

Content
17 days ago
2.0
113
Circuit network
Owner:
joalon
Source:
https://github.com/joalon/assembly-combinator
Homepage:
N/A
License:
MIT
Created:
7 months ago
Latest Version:
0.6.0 (17 days ago)
Factorio version:
2.0
Downloaded by:
113 users

Assembly combinators

A Factorio mod adding sophisticated combinators
that are programmed using a simple assembly dialect.

Usage

Download it from the mod portal.

Example programs

A simple counter:

main:
    ADDI x10, x0, 0             # Initialize counter to 0
loop:
    ADDI x10, x10, 1            # Increment counter
    WSIG o1, copper-plate, x10   # Output counter value
    WAIT 60                     # Wait 1 second (60 game ticks)
    SLTI x6, x10, 100           # Check if counter < 100
    BNE  x6, x0, loop           # Branch if not equal to zero
    JAL  x1, main               # Jump back to main

Contributions

PRs are welcome! Make sure to lint and test the code with Busted. busted test.lua