forked from AbleOS/ableos
26 lines
495 B
Plaintext
26 lines
495 B
Plaintext
//Do not question.
|
|
|
|
$bit0 := fn(value: u8): bool {
|
|
return (value & 0x1) > 0
|
|
}
|
|
$bit1 := fn(value: u8): bool {
|
|
return (value & 0x2) > 0
|
|
}
|
|
$bit2 := fn(value: u8): bool {
|
|
return (value & 0x4) > 0
|
|
}
|
|
$bit3 := fn(value: u8): bool {
|
|
return (value & 0x8) > 0
|
|
}
|
|
$bit4 := fn(value: u8): bool {
|
|
return (value & 0x10) > 0
|
|
}
|
|
$bit5 := fn(value: u8): bool {
|
|
return (value & 0x20) > 0
|
|
}
|
|
$bit6 := fn(value: u8): bool {
|
|
return (value & 0x40) > 0
|
|
}
|
|
$bit7 := fn(value: u8): bool {
|
|
return (value & 0x80) > 0
|
|
} |