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:
@ -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>
|
||||
|
Reference in New Issue
Block a user