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 larre d0
alias depositchute d1

alias hydroname r15
alias stationidx r14
alias occupied r13
alias ratiowater r12
alias temperature r11
alias pressure r10
alias seeding r9
alias mature r8
alias seedstation r7

define DEPOSITSTATION 6
define tooCold 280
define tooHot 320
define HYDROHASH HASH("StructureHydroponicsTrayData")

start:
bdns depositchute nochute
ls r0 depositchute 0 Occupied
seqz r0 r0
s depositchute Open r0
nochute:

move hydroname HASH("hydro B1")
move stationidx 2
move seedstation 5
jal doplant

move hydroname HASH("hydro B2")
move stationidx 3
jal doplant

move hydroname HASH("hydro B3")
move stationidx 4
move seedstation 1
jal doplant

move hydroname HASH("hydro B4")
move stationidx 7
move seedstation 1
jal doplant

move hydroname HASH("hydro B5")
move stationidx 8
move seedstation 1
jal doplant

move hydroname HASH("hydro B6")
move stationidx 9
jal doplant

yield
j start

#

doplant:

ls r0 larre 0 Occupied
blez r0 regular
push ra
s larre Setting DEPOSITSTATION
jal waittillidle

s larre Activate 1
jal waittillidle
pop ra
j ra

regular:

lbns seeding HYDROHASH hydroname 0 Seeding Maximum
lbns mature HYDROHASH hydroname 0 Mature Maximum

bltz seeding skipharvest
s db Setting 42
push ra
s larre Setting stationidx
jal waittillidle
s larre Activate 1
jal waittillidle
pop ra
j ra

skipharvest:

lbns occupied HYDROHASH hydroname 0 Occupied Maximum
bgtz occupied ra

lbn r0 HYDROHASH hydroname RatioPollutant Maximum
bgtz r0 ra
lbn ratiowater HYDROHASH hydroname RatioWater Maximum
blt ratiowater 0.9 ra

lbn temperature HYDROHASH hydroname Temperature Maximum
blt temperature tooCold ra
bgt temperature tooHot ra

lbn pressure HYDROHASH hydroname Pressure Maximum
blt pressure 10 ra

push ra
s larre Setting seedstation
jal waittillidle
s larre Activate 1
jal waittillidle
s larre Setting stationidx
jal waittillidle
s larre Activate 1
jal waittillidle
pop ra

j ra

#

waittillidle:
yield
l r0 larre Idle
beqz r0 waittillidle
j ra

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.