Assembly Combinator

by joalon

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

Content
a day ago
2.0
151
Circuit network
Owner:
joalon
Source:
https://github.com/joalon/assembly-combinator
Homepage:
N/A
License:
MIT
Created:
8 months ago
Latest Version:
0.7.0 (a day ago)
Factorio version:
2.0
Downloaded by:
151 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