Programming Reference

Compare the contents of one register to the contents of another register. If the contents are equal, then jump to a label
somewhere else in the program.

Code Example

Meaning

M0?M5:label1

Compare the contents of register M0 to the contents of register M5. If equal, then jump to label1:

X0?X2:label2

Compare the contents of register X0 to the contents of register X2. If equal, then jump to label2:

 
Related Commands

Code Example Meaning
M0>M5?:label  If M0 is greater than M5, jump to label:
M0>=M5?:label  If M0 is greater than or equal to M5, jump to label:
M0<M5?:label  If M0 is less than M5, jump to label:
M0<=M5?:label  If M0 is less than or equal to M5, jump to label:
M0!=M5?:label  If M0 is not equal to M5, jump to label:

These commands are valid for both 4-bit registers ("Mi" format) and 8-bit registers ("Xi" format).