PICO-8 Wiki
Register
Advertisement
band( first, second )
Calculates the bitwise and of two numbers.
first
The first number.

second
The second number.

Examples

--     0x7 = 0111 binary
-- and 0xd = 1101 binary
-- -------
--     0x5 = 0101 binary
print(band(0x7, 0xd))  -- 5

See also

Advertisement