CAlive will introduce the
/% : operator, which performs a divide and returns the divide value, and also separately stores the modulo remainder.
s32 a, b, c, remainder;
// Store the result of a/b to c, and store the remainder
c = a /% b : remainder;
// The above is the equivalent to this code:
c = a / b;
remainder = a % b;
--
Rick C. Hodgin