Writing bits

Blitz3D Forums/Blitz3D Programming/Writing bits

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Function GetBit(value,position)
	Return (value Shr (position - 1)) And 1
End Function 


value is the byte, position is 8 to 1, left to right