Documentation ¶
Index ¶
- func CheckedAdd(a, b uint8) (result uint8, overflow bool)
- func CheckedSub(a, b uint8) (result uint8, borrow bool)
- func Clear(index, byte uint8) uint8
- func Combine(high, low uint8) uint16
- func GetBitValue(index, byte uint8) uint8
- func High(value uint16) uint8
- func IsSet(index, byte uint8) bool
- func Low(value uint16) uint8
- func Reset(index, byte uint8) uint8
- func Set(index, byte uint8) uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckedAdd ¶
CheckedAdd adds two 8 bit unsigned values and detects if an overflow happened.
func CheckedSub ¶
CheckedSub subtracts two 8 bit unsigned values and detects if a borrow happened.
func Combine ¶
Combine combines two 8 bit values into a single 16 bit value. The high byte will be the most significant one.
func GetBitValue ¶
GetBitValue returns a byte set to the value of the bit at the specified index.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.