def ixor(frame): value2 = frame.stack.pop() value1 = frame.stack.pop() jassert_int(value2) jassert_int(value1) result = value1 ^ value2 result = cut_to_int(result) jassert_int(result) frame.stack.append(result)
def lor(frame): value2 = frame.stack.pop() value1 = frame.stack.pop() jassert_long(value2) jassert_long(value1) result = value1[1] | value2[1] result = ("long", cut_to_int(result)) jassert_long(result) frame.stack.append(result)
def op_0x80(frame): # ior value2 = frame.stack.pop() value1 = frame.stack.pop() jassert_int(value2) jassert_int(value1) result = value1 | value2 result = cut_to_int(result) jassert_int(result) frame.stack.append(result)
def op_0x7f(frame): # land value2 = frame.stack.pop() value1 = frame.stack.pop() jassert_long(value2) jassert_long(value1) result = value1[1] & value2[1] result = ("long", cut_to_int(result)) jassert_long(result) frame.stack.append(result)
def op_0x7e(frame): # iand value2 = frame.stack.pop() value1 = frame.stack.pop() jassert_int(value2) jassert_int(value1) result = value1 & value2 result = cut_to_int(result) jassert_int(result) frame.stack.append(result)
def ishr(frame): value2 = frame.stack.pop() value1 = frame.stack.pop() jassert_int(value2) jassert_int(value1) value2 &= 0b11111 result = value1 >> value2 result = cut_to_int(result) jassert_int(result) frame.stack.append(result)
def op_0x78(frame): # ishl value2 = frame.stack.pop() value1 = frame.stack.pop() jassert_int(value2) jassert_int(value1) value2 &= 0b11111 result = value1 << value2 result = cut_to_int(result) jassert_int(result) frame.stack.append(result)