# items that match the hash go to Output 1, # unless Output 1 is blocked alias target r15 alias inputhash r14 alias inputoccupied r13 alias polarity r12 start: alias sortersilica d0 alias sorternickel d1 alias sorteriron d2 alias sortercobalt d3 alias sortergold d4 alias sorteruranium d5 yield move target 1103972403 # silicon ore move polarity 0 alias sorter d0 jal dosort move target 1830218956 # nickel ore move polarity 0 alias sorter d1 jal dosort move target 1758427767 # iron ore move polarity 0 alias sorter d2 jal dosort move target -983091249 # cobalt ore move polarity 0 alias sorter d3 jal dosort move target -1348105509 # gold ore move polarity 0 alias sorter d4 jal dosort move target -1516581844 # uranium ore move polarity 0 alias sorter d5 jal dosort j start dosort: bdns sorter ra s sorter Mode 2 ls inputhash sorter 0 PrefabHash ls inputoccupied sorter 0 Occupied blez inputoccupied ra #no input, do nothing sne r0 target inputhash seq r0 r0 polarity s sorter Output 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.