Add initial pass at constants and operands that reference labels

This commit is contained in:
Yoshi Askharoun
2024-02-11 11:51:59 -06:00
parent a0d5661a99
commit 03f8974ac1
7 changed files with 70 additions and 33 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ public record Instruction(string Mnemonic, IEnumerable<Operand> Operands) : Code
if (operands.Length != schema.Length)
throw new ArgumentException($"{opCode} requires {schema.Length} operands, got {operands.Length}");
var operandModels = new Operand[operands.Length];
var operandModels = new OperandLiteral[operands.Length];
for (int i = 0; i < schema.Length; i++)
{
var operandValue = operands[i];