> "Test condition, decrement, and branch". All in one instruction
The Z80 had that too - DJNZ (Decrement and Jump if Not Zero). Standard way of writing loops.
The Z80 had that too - DJNZ (Decrement and Jump if Not Zero). Standard way of writing loops.
“The BCT instruction subtracts 1 from the value of the contents of the target register specified in the first argument. If the value in the target register after the subtraction is zero, no branch occurs. Otherwise the program branches to the specified address.”