Programming Reference

 If the content of a register is equal to some specific value then jump to a label somewhere else in the program.

Code Example

Meaning

M2?9:led_on

If M2 is equal to 9, then jump to label "led_on:"

X6?127:led_on

If X6 is equal to 127, then jump to label "led_on:"


Related Commands

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

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