Simplified device-detection

This commit is contained in:
Snorre Selmer
2022-10-24 16:19:36 +02:00
committed by GitHub
parent 1b81704ea6
commit f0c9e8ceb9
+2 -3
View File
@@ -12,13 +12,12 @@ define ITEMCLASS 19 # 10=ores, 19=ingots, 33=wrekage
define INPUTSLOT 0 # sorter input-slot
start:
jal sort
bdseal dr3 sort
add SorterCounter SorterCounter 1
bgt SorterCounter 5 reset
j start
sort:
bdns dr3 ra
s dr3 Mode 2 # set sorter to IC mode
ls SlotOccupied dr3 INPUTSLOT Occupied # check if anything to sort
beqz SlotOccupied ra
@@ -30,4 +29,4 @@ j ra
reset:
yield
move SorterCounter 0
j start
j start