hex/logics.fjΒΆ
βββ- Logical Macros:
MacrosΒΆ
hexΒΆ
hex.xor/2β both dst,src are hexeshex.xor/3βdst[:n] ^= src[:n]hex.exact_xorβ d3,d2,d1,d0 arebit-addresses; src is hex.hex.xor_zero/2β both dst,src are hexeshex.xor_zero/3βdst[:n] ^= src[:n]hex.double_xorβ dst1,dst2,src are hexeshex.address_and_variable_xorβ var,src arehex[:n], address is an address.hex.double_exact_xorβ t3,t2,t1,t0,d3,d2,d1,d0 arebit-addresses; src is hex.hex.address_and_variable_double_xorβ var1,var2,src arehex[:n], address1,address2 are addresses.hex.quadrupled_exact_xorβ r3,r2,r1,r0,q3,q2,q1,q0,t3,t2,t1,t0,d3,d2,d1,d0 arebit-addresses; src is hex.hex.not/1βhex = !hex (15-hex)hex.not/2βx[:n] = !x[:n]hex.or/2β both dst,src are hexes.hex.or/3βdst[:n] |= src[:n]hex.and/2β both dst,src are hexes.hex.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.