alias sorter d0 alias autochef d1 alias inputhash r15 alias unwanted r14 s db Setting -1 start: yield #lr r0 autochef Required HASH("ItemRice") #s db Setting r0 #j start s sorter Mode 2 ls inputhash sorter 0 PrefabHash beqz inputhash start jal doiwant s sorter Output unwanted j start doiwant: move unwanted 0 bne inputhash HASH("ItemRice") over1 lr r0 autochef Contents HASH("Rice") sge unwanted r0 9 j ra over1: bne inputhash HASH("ItemPotato") over2 lr r0 autochef Contents HASH("Potato") sge unwanted r0 3 j ra over2: s db Setting inputhash lr r0 autochef Required inputhash #s db Setting r0 slez unwanted r0 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.