menu_top_normal
NeoLoch Home Page
Home Inquisitor Tester Learning Lab Consulting Shipping Policy Contact us Support ----------------------
News
Coming soon! 9060 Blade.
BSF Command:
Syntax:
Status Flags Effected:
BSF
BSF f,b
None

The BSF command will clear the bit specified by b in the register specified by f. BSF can be used to set a bit in any internal register and ports on the microcontroller, permitting the control of individual signal lines connected to the MCU.

Code Example 1: Assume we have a register labeled TEMP with a value of 0x00
BSF TEMP,0
BSF TEMP,5
BSF TEMP,7
Sets bit 0 of register TEMP = b'00000001'.
Sets bit 5 of register TEMP = b'00100001'.
Sets bit 7 of register TEMP = b'10100001'.









All contents of this website are copyrighted 2010-2018 NeoLoch