# transfer gas from the furnace waste tank to the cold tank define MAXTEMP 500 define TARGETTEMP 450 define TARGETPRESSURE 10000 alias coldtank d0 alias wastetank d1 alias pump d3 alias chillervalve d4 alias coldtemp r15 alias coldpressure r14 alias volume r13 start: yield #s pump On 0 #j start l coldtemp coldtank Temperature l coldpressure coldtank Pressure sgt r1 coldtemp TARGETTEMP s chillervalve On r1 sub r1 coldtemp MAXTEMP sub r2 TARGETTEMP MAXTEMP div r1 r1 r2 mul volume r1 10 slt r1 coldtemp MAXTEMP slt r0 coldpressure TARGETPRESSURE and r0 r0 r1 s pump On r0 s pump Setting volume 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.