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

# this program manages a cooling buffer, piping cool gas into a destination, and then refilling the buffer from a hot gas supply that needs to be cooled.

alias hotgas d0 # sensor
alias coolinggas d1 # sensor
alias targetkelvin d2
alias outpump d3
alias inpump d4
alias readout d5

alias activesome r15
alias activecool r14
alias activelow r13
alias activegood r12

alias waitingsome r11
alias waitingcool r10

alias target r9
define targetpressure 500

s outpump On 0
s inpump On 0

start:

s hotgas On 1
s coolinggas On 1


l target targetkelvin Setting

l r1 hotgas Pressure
slez r1 r1
# waiting_pressure<=0

l r0 coolinggas Pressure
sgt r2 r0 5
or r1 r1 r2

sgtz activesome r0
and activesome activesome r1

slt activelow r0 targetpressure

l r0 coolinggas Temperature
slt activecool r0 target

and activegood activesome activecool

bdns readout skipdisplay
s readout Setting r0
skipdisplay:

# should the output pump be on?
s outpump On activegood

l r0 hotgas Pressure
sgtz waitingsome r0
l r0 hotgas Temperature
slt waitingcool r0 target

select r0 activegood 0 activelow
or r0 waitingcool r0
and r0 waitingsome r0

s inpump On r0

bgtz r0 live
bgtz activegood live

s hotgas On 0
s coolinggas On 0
sleep 10

live:

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.