[swfinterp] Implement equals opcode
This commit is contained in:
parent
3cbcff8a2d
commit
eb5376044c
2 changed files with 15 additions and 0 deletions
|
@ -629,6 +629,11 @@ class SWFInterpreter(object):
|
|||
value1 = stack.pop()
|
||||
res = value1 % value2
|
||||
stack.append(res)
|
||||
elif opcode == 171: # equals
|
||||
value2 = stack.pop()
|
||||
value1 = stack.pop()
|
||||
result = value1 == value2
|
||||
stack.append(result)
|
||||
elif opcode == 175: # greaterequals
|
||||
value2 = stack.pop()
|
||||
value1 = stack.pop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue