Download Doc/Bit.txt from hschumann2/TempleOS-Source-Code: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/datasets/hschumann2/TempleOS-Source-Code/resolve/main/Doc/Bit.txt
- Command line
-
hf download hf://datasets/hschumann2/TempleOS-Source-Code/Doc/Bit.txt
-
curl -L -o Bit.txt https://huggingface.co/datasets/hschumann2/TempleOS-Source-Code/resolve/main/Doc/Bit.txt
530 Bytes
| These take a pointer to a bit field. | |
| Bt: Bit Test | |
| Bts: Bit Test and Set to one | |
| Btr: Bit Test and Rst to zero | |
| Btc: Bit Test and Compliment (toggle) | |
| BEqu: Set bit to value. | |
| Bit operations are "atomic", no interrupt between the reading and writing the | |
| bit, important when multitasking. For multicore use "locked" forms. | |
| These don't take a pointer, but the actual field. | |
| Bsf: Bit Scan Fwd (Pos of first low one bit or -1) | |
| Bsr: Bit Scan Rev (Pos of first high one bit or -1) | |
| BCnt: Bit Cnt (Cnt of set bits) | |