alias rocket d0 alias miner d1 alias minebutton d2 alias dispfuel d3 alias dispstate d4 alias dispmode d5 alias fuel r15 alias color r14 alias shine r13 define HASHOREMINER -2027419821 define HASHICEMINER 74521920 start: l r2 rocket Mode s dispmode Color 6 s dispmode Setting r2 l r0 minebutton Setting beqz r0 overmine bdns miner batchmine s miner Activate 1 j overmine batchmine: sb HASHOREMINER Activate 1 sb HASHICEMINER Activate 1 overmine: l fuel rocket Fuel s dispfuel Color 3 s dispfuel Setting fuel l r0 rocket ReturnFuelCost move shine 1 move color 4 mul r1 1.2 r0 blt fuel r1 setcolor move color 3 mul r1 1.5 r0 blt fuel r1 setcolor l r0 rocket Mode move shine 1 move color 0.1 beq r0 1 setcolor beq r0 2 setcolor beq r0 3 setcolor move color 10 beq r0 5 setcolor move color 4 beq r0 7 setcolor l r0 rocket CollectableGoods bdns miner nominer2 l shine miner Activate j minecheck nominer2: lb r0 HASHOREMINER Activate Maximum lb r1 HASHOREMINER Activate Maximum max shine r0 r1 minecheck: move color 2 bnez r0 setcolor move color 1 move shine 1 setcolor: s dispstate On shine s dispstate Color color 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.