Advertisement
Guest User

Untitled

a guest
Sep 10th, 2022
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. svshape = (
  2. (0b00000011001, 0b10000111111),
  3. (0b10100011001, 0b10100111111),
  4. (0b11000011001, 0b11100111111),
  5. )
  6. svshape2 = (
  7. (0b10000011001, 0b11100111111),
  8. )
  9.  
  10. X = set()
  11. Y = set()
  12. for opcode in range(2**11):
  13. for (value, mask) in svshape:
  14. if ((value & mask) == (opcode & mask)):
  15. X.add(opcode)
  16. for (value, mask) in svshape2:
  17. if ((value & mask) == (opcode & mask)):
  18. Y.add(opcode)
  19.  
  20. print(X)
  21. print(Y)
  22. print(X & Y)
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement