Advertisement
Guest User

Untitled

a guest
Aug 17th, 2022
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. @cached_property
  2. def insn(self):
  3.     for insn in DATABASE:
  4.         lopcode = (insn.opcode.value & insn.opcode.mask)
  5.         ropcode = (self & insn.opcode.mask)
  6.         if lopcode == ropcode:
  7.             return insn
  8.     raise ValueError(self)
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement