Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
BOO 0.42 KB | None | 0 0
  1. class SOpcode():
  2.     public virtual static mask as Int32
  3.     public static def me(offset as UInt32):
  4.         ...
  5.              
  6. class opBNE(SOpcode):
  7.     public override static mask as Int32 = ...
  8.  
  9. def forward_search(dopcodes):
  10.     for opcode as SOpcode in dopcodes:
  11.         if opcode.me(addr): # mask here is 0 and taken from base class SOpcode
  12.             print "opcode detected"
  13.  
  14. opBNEi = opBNE()
  15. ar as (object) = (opBNEi,)
  16. addr as UInt32 = forward_search(ar)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement