| 442 | |
| 443 | @staticmethod |
| 444 | def set_p_value(il:LowLevelILFunction, value:ExpressionIndex) -> None: |
| 445 | il.append(il.set_reg(1, LLIL_TEMP(0), value)) |
| 446 | il.append(il.set_flag(c_flag, il.test_bit(1, il.reg(1, LLIL_TEMP(0)), il.const(1, 0x01)))) |
| 447 | il.append(il.set_flag(z_flag, il.test_bit(1, il.reg(1, LLIL_TEMP(0)), il.const(1, 0x02)))) |
| 448 | il.append(il.set_flag(i_flag, il.test_bit(1, il.reg(1, LLIL_TEMP(0)), il.const(1, 0x04)))) |
| 449 | il.append(il.set_flag(d_flag, il.test_bit(1, il.reg(1, LLIL_TEMP(0)), il.const(1, 0x08)))) |
| 450 | il.append(il.set_flag(b_flag, il.test_bit(1, il.reg(1, LLIL_TEMP(0)), il.const(1, 0x10)))) |
| 451 | il.append(il.set_flag(v_flag, il.test_bit(1, il.reg(1, LLIL_TEMP(0)), il.const(1, 0x40)))) |
| 452 | il.append(il.set_flag(s_flag, il.test_bit(1, il.reg(1, LLIL_TEMP(0)), il.const(1, 0x80)))) |
| 453 | return None |
| 454 | |
| 455 | @staticmethod |
| 456 | def rti(il:LowLevelILFunction) -> ExpressionIndex: |