furnace
advanced-furnace.mips
arc-furnace-room-control.mips
furnace-calc-pre.mips
furnace-ingot-recipe.mips
furnace-operate.mips
furnace-room-vacuum-pump.mips
hot-cold-waste-tank-manager.mips
hot-tank-filler.mips
pressurize-furnace.mips
waste-tank-to-cold-tank-with-chiller.mips
furnace-waste-chiller.mips

manufacturing
vend-ingots-to-printer.mips
vending-ore-counter-omni-fast.mips
vending-ore-counter-omni-slow.mips
vending-ore-counter-single.mipsr
vending-ore-counter-triple.mips

greenhouse
greenhouse-ac.mips
greenhouse-o2-pressure-display.mips
greenhouse-oxygen-harvest.mips
greenhouse-temperature.mips
harvie-triple.mips
seed-distributer.mips
seed-sorter-old.mips
seed-sorter.mips
stacker-vending-button.mips

atmospherics
base-atmosphere-control.mips
battery-room-atmosphere.mips
battery-room-vent-setter.mips
harvest-cold-atmosphere.mips
harvest-liquid-from-atmosphere.mips
refrigeration-room.mips

mining rocket
rocket-driving.mips
rocket-miner-readout.mips

ore warehousing
ore-sorter-multi.mips
ore-sorter2-multi.mips
gas-rock-sorter.mips
centrifuge-ore.mips

gas handling
gas-filter-chain.mips
co2-tank-pressure-management.mips
fuel-mixer.mips
gas-harvester.mips
gas-mixer-nitrous.mips
n2o-heater.mips
pump-feed-nitrolyzer.mips
show-gas-pressure-triple.mips
manage-coolant-from-atmosphere.mips

doors
weather-gate.mips
door-switch-logic.mips

solar
solar-old.mips
1-axis-solar-panel-control.mips
2-axis-solar-panel-control.mips

biomass fuel
biomass-generator-pipeline.mips
biomass-generator-silo.mips
biomass-recycler.mips
charcoal-stockpile-display.mips

AIMeE
aimee-old.mips
aimee-position-display.mips
aimee.mips


airlock-tank-accelerator-mgmt.mips
batch-solar-control.mips
centrifuge-miner-manager.mips
chamber-liquification-mgr.mips
cooling-gas-buffer-room.mips
cooling-gas-buffer.mips
display-avionics.mips
exhaust-gas-cooler-control.mips
fuel-mixer-n2o.mips
fuel-mixer-o2.mips
larre-config-1.mips
larre-farming-hardcoded.mips
larre-farming-stack.mips
light-console.manager.mips
light-manager.mips
loulan-airlock.mips
loulan-arc-furnace-room.mips
loulan-greenhouse.mips
measure-condensation-rate.mips
nitrolyzer-battery-threshold.mips
nitrous-warmer.mips
power-consumption-triple.mips
radiator-control.mips
simpler-gate.mips
sorter-feeding-autooven.mips
trader-scanner.mips
vend-ingots-to-printer-2.mips

alias recycler d0
alias arcfurnace d1
alias sensor d2
alias centrifuge d3

alias recyclerState r15
alias recyclerImportQuantity r14
alias recyclerExportQuantity r13
alias generatorfeedstate r12

define GFEMPTY 1
define GFFED 2
define GFON 3
define MAXPRESSURE 10

move generatorfeedstate GFEMPTY
move recyclerState 0

start:

ls recyclerImportQuantity recycler 0 Quantity
sgtz r0 recyclerImportQuantity
blez r0 nothingtorecycle
move recyclerState 1
s recycler On r0
nothingtorecycle:

ls recyclerExportQuantity recycler 1 Quantity
sgtz r0 recyclerExportQuantity
blez r0 nothingtoexportrecycle
move recyclerState 1
nothingtoexportrecycle:
add recyclerState recyclerState 1

ble recyclerState 20 recyclerOperating
s recycler On 0
move recyclerState 0
recyclerOperating:

bdns centrifuge nocentrifuge
ls r0 centrifuge 0 Occupied
s centrifuge On r0

nocentrifuge:

#l r0 arcfurnace ImportCount
#l r1 arcfurnace ExportCount
#sgt r0 r0 r1
l r0 arcfurnace RecipeHash
snez r0 r0

bdns sensor nosensor

l r1 sensor Pressure
slt r1 r1 MAXPRESSURE
and r0 r0 r1
s db Setting r0

nosensor:
s arcfurnace Activate r0
#

yield
j start

MIPS is the programming language used by IC (integrated circuits) in the game Stationeers. Stationeering web site has a MIPS emulator with syntax highlighting and error detection.