Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SOpcode():
- public virtual static mask as Int32
- public static def me(offset as UInt32):
- ...
- class opBNE(SOpcode):
- public override static mask as Int32 = ...
- def forward_search(dopcodes):
- for opcode as SOpcode in dopcodes:
- if opcode.me(addr): # mask here is 0 and taken from base class SOpcode
- print "opcode detected"
- opBNEi = opBNE()
- ar as (object) = (opBNEi,)
- addr as UInt32 = forward_search(ar)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement