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

Refactored register operands to separate 8-bit registers into dedicated Register8Operand class

This commit is contained in:
bird_egop
2025-04-16 01:10:33 +03:00
parent 46592d4877
commit e06ea2beb3
12 changed files with 148 additions and 53 deletions

View File

@ -16,6 +16,17 @@ public static class OperandFactory
return new RegisterOperand(register, size);
}
/// <summary>
/// Creates an 8-bit register operand using RegisterIndex8 enum
/// </summary>
/// <param name="register8">The 8-bit register</param>
/// <returns>A register operand for 8-bit registers</returns>
public static Register8Operand CreateRegisterOperand8(RegisterIndex8 register8)
{
// Create a new Register8Operand with the 8-bit register
return new Register8Operand(register8);
}
/// <summary>
/// Creates an immediate value operand
/// </summary>