Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- svshape = (
- (0b00000011001, 0b10000111111),
- (0b10100011001, 0b10100111111),
- (0b11000011001, 0b11100111111),
- )
- svshape2 = (
- (0b10000011001, 0b11100111111),
- )
- X = set()
- Y = set()
- for opcode in range(2**11):
- for (value, mask) in svshape:
- if ((value & mask) == (opcode & mask)):
- X.add(opcode)
- for (value, mask) in svshape2:
- if ((value & mask) == (opcode & mask)):
- Y.add(opcode)
- print(X)
- print(Y)
- print(X & Y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement