CoolFace
Datasetpublic

hschumann2/TempleOS-Source-Code

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes838downloads
Bit.txt17 linesDownload Raw Back to Doc
1 2 3These take a pointer to a bit field.4Bt:     Bit Test5Bts:    Bit Test and Set to one6Btr:    Bit Test and Rst to zero7Btc:    Bit Test and Compliment (toggle)8BEqu:   Set bit to value.9 10Bit operations are "atomic", no interrupt between the reading and writing the11bit, important when multitasking.  For multicore use "locked" forms.12 13These don't take a pointer, but the actual field.14Bsf:    Bit Scan Fwd (Pos of first low one bit or -1)15Bsr:    Bit Scan Rev (Pos of first high one bit or -1)16BCnt:   Bit Cnt (Cnt of set bits)17