Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
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)
Esempio n. 4
0
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)
Esempio n. 5
0
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)
Esempio n. 6
0
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)
Esempio n. 7
0
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)