0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-20 08:18:36 +03:00

Added support for far call instructions and PUSH imm16. Fixed invalid test cases in call_tests.csv and or_tests.csv

This commit is contained in:
bird_egop
2025-04-16 21:44:02 +03:00
parent 089fe4dfd4
commit fa1a7f582c
7 changed files with 304 additions and 4 deletions

View File

@ -209,4 +209,15 @@ public static class OperandFactory
{
return new FPURegisterOperand(registerIndex);
}
/// <summary>
/// Creates a far pointer operand from an existing memory operand
/// </summary>
/// <param name="memoryOperand">The memory operand to convert to a far pointer</param>
/// <returns>A far pointer operand with the same addressing mode as the given memory operand</returns>
public static FarPointerOperand CreateFarPointerOperand(MemoryOperand memoryOperand)
{
// Create a new FarPointerOperand with the same properties as the given memory operand
return FarPointerOperand.FromMemoryOperand(memoryOperand);
}
}