Skip to content

title: "mod" description: TRSE built-in method (from IDE help)


mod

Systems: Z80, Z180, GBZ80, Z180, M6809
Parameters: i,b


Returns the modulo of parameter 1 with parameter 2.

Examples:

i:=mod(i+1,10); // is is kept between 0 and 9

k:=mod(k*2,j); // is is kept between 0 and j