anthony.v3a
Member
How would I search an array of 52 SINTs for an available space (0) then move a (1) into the first available space?
I attached two pictures of what I have. When I toggle either BMB(1 or 2)_eye I'd like for the FSC to find the first available place in the SPACE[52] array, up to 12 places, with a 0 then MOV a 1 to the space and so on when the next BMB(1 or 2)_eye is toggled.
Try using the unlatch OTU instruction (U)? (RES) will clear out the .POS memory but wont reset the .IN bit.
When I toggle either BMB(1 or 2)_eye I'd like for the FSC to find the first available place in the SPACE[52] array, up to 12 places, with a 0 then MOV a 1 to the space and so on when the next BMB(1 or 2)_eye is toggled.
How would I search an array of 52 SINTs for an available space (0) then move a (1) into the first available space?
This is not a true statement the (RES) instruction resets all bits of the instruction.