hex/logics.fjΒΆ
βββ- Logical Macros:
MacrosΒΆ
hexΒΆ
hex.xor/2β dst ^= srchex.xor/3β dst[:n] ^= src[:n]hex.exact_xorβ {d3,d2,d1,d0} ^= srchex.xor_zero/2β dst ^= srchex.xor_zero/3β dst[:n] ^= src[:n]hex.double_xorβ dst1 ^= srchex.address_and_variable_xorβ address(bit_address) ^= srchex.double_exact_xorβ {t3,t2,t1,t0} ^= srchex.address_and_variable_double_xorβ address1(bit_address) ^= srchex.quadrupled_exact_xorβ {q3,q2,q1,q0} ^= srchex.not/1β hex = !hex (15-hex)hex.not/2β x[:n] = !x[:n]hex.or/2β dst |= srchex.or/3β dst[:n] |= src[:n]hex.and/2β dst &= srchex.and/3β dst[:n] &= src[:n]
hex.orΒΆ
hex.or.initβ This is where the or βtruthβ tables are.
hex.andΒΆ
hex.and.initβ This is where the and βtruthβ tables are.