In the user guide, there are some examples, please check out the programming section.
To properly use those four commands, you need to understand zerobit, which is being updated by all the operations, for example, 1-1 = 0. that will set zerobit to true.