When writing a loop with JMP Y-- the last iteration of the loop will be with Y = 0. The JMP only falls through when Y was already zero before it was decremented (hence it's "JMP Y--" not "JMP --Y"). So in your program, if X = 0 then you will get one cycle with the output set (and if X=1 you will get 2 cycles etc).
Statistics: Posted by arg001 — Wed Feb 26, 2025 9:19 am