It is very messy and not optimized at all (368 Cycles. 8 Nodes. 35 Instructions.) but it gets the job done. What should I look at if I wanted to optimize for a lower cycle count?
What I am doing in this is having Node 1 funnel the input down for out.S and increment right for out.L while checking for 0s by spitting out -999 instead
I am then able to simply add the input, checking for negatives from adding a -999.
Rather than using BAK, I am using Nodes 3 and 6 as temporary storage for my math in Nodes 4 and 5.