alias sensor d0 alias filter d1 alias led d2 define target 2000 start: s sensor On 1 yield l r0 sensor Pressure s sensor On 0 # save some power? slt r1 r0 target # is tank low ? s filter On r1 jal setDisplay sleep 5 j start setDisplay: bdns led ra s led Setting r0 mul r2 3 r1 add r2 r2 2 s led Color r2 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.