NeoLoch Home Page
Home Inquisitor Tester Learning Lab Consulting Shipping Policy Contact us Support
Coming soon! 9060 Blade.
COMF Command:
Status Flags Effected:
COMF f,d
The COMF command will invert the contents of register f. The result of the compliment is either stored in the working register (d=0) or in the register specified by f (d=1).

Code Example 1: Assume we have a register labeled TEMP with the value 10101010. The following commands will compliment the value in TEMP and store the result in the working register.
W = "01010101"

The COMF command is very powerful and can, in some cases, replace a lot of code. One example where I've used the command for is to convert data from a seven segment data lookup table for common anode displays to common cathode. With COMF, this process is accomplished with a single command and without haveing to modify the data lookup table.

This, of course, only works if the same conection scheme is used on the port that is controlling displayed data on the LED display.

Secured by PayPal
Official PayPal Seal

All contents of this website are copyrighted 2010-2017 NeoLoch, LLC