alias sensor d0 alias solar d1 alias filter d3 alias co2vent d4 alias light d5 alias filteringo2 r15 alias o2frac r14 alias pressure r13 alias pumpingco2 r12 define targetkpa 100 define GROWLIGHTHASH -1758710260 start: bdns filter nofilter l filteringo2 filter On l o2frac sensor RatioOxygen mul r1 filteringo2 0.01 sub o2frac o2frac r1 #add some hysteresis sgt r1 o2frac 0.2 # turn on the filter if the oxygen ratio is >20% s filter On r1 nofilter: bdns co2vent overVent l pressure sensor Pressure l pumpingco2 co2vent On sub pressure pressure pumpingco2 # add some hysteresis slt r1 pressure targetkpa s co2vent On r1 overVent: bdns solar overLight #bdns light overLight l r0 solar Vertical s db Setting r0 slt r0 r0 90 sb GROWLIGHTHASH On r0 overLight: 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.