This commit is contained in:
2024-10-12 01:59:32 +02:00
parent a4e9b7d2b2
commit 674758f48b

View File

@@ -52,24 +52,24 @@ findNextPort:
sgt r6 MachinePort 5
breqz r6 2
move MachinePort 1
bdns dr5 iteratePort
bdns dr5 findNextPort
j ra
waitReagentArrive:
#check if we need more
#brlt StackerContent qteVal 2
s db Setting 0
move oldQte qteVal
move oldReagent reagentHash
waitReagentArriveLoop:
yield
push ra
jal readReagent
pop ra
sne eq1 oldQte qteVal
sne eq2 oldReagent reagentHash
or eq1 eq1 eq2
beqz eq1 waitReagentArriveLoop
#check if we need more
#brlt StackerContent qteVal 2
s db Setting 0
move oldQte qteVal
move oldReagent reagentHash
waitReagentArriveLoop:
yield
push ra
jal readReagent
pop ra
sne eq1 oldQte qteVal
sne eq2 oldReagent reagentHash
or eq1 eq1 eq2
beqz eq1 waitReagentArriveLoop
j ra
readReagent: