-
Notifications
You must be signed in to change notification settings - Fork 0
WriteBit
StackZ edited this page Jun 17, 2021
·
1 revision
UniversalEdit.WriteBit(Offset, BitIndex, BitSet);
This function expects 3 parameters.
- Offset: The offset to where to write to the current file.
- BitIndex: The Bit Index to where to set the state ( 0 - 7 ).
- BitSet: If the bit should be set (true) or not (false).
-- The line below will set the 5th bit to true at offset 0x50.
UniversalEdit.WriteBit(0x50, 4, true); -- Do NOTE, that the bit indexes start at 0, so if you are writing to the last bit which would be `8` you need to write to `7`.