mirror of
https://github.com/creeperlv/SVM.git
synced 2026-01-11 12:59:54 +00:00
Working on the assembler.
This commit is contained in:
@@ -120,6 +120,7 @@ namespace SVM.Assembler.Core
|
||||
{
|
||||
return false;
|
||||
}
|
||||
Console.WriteLine($"Definition of: {pi}");
|
||||
instDefinition.PrimaryInstruction = pi;
|
||||
foreach (XmlNode item in node.ChildNodes)
|
||||
{
|
||||
@@ -163,6 +164,11 @@ namespace SVM.Assembler.Core
|
||||
}
|
||||
}
|
||||
definition.InstructionDefinitions.Add(pi, instDefinition);
|
||||
foreach (var item in instDefinition.Aliases)
|
||||
{
|
||||
|
||||
definition.InstructionDefinitionAliases.Add(item, instDefinition);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
static bool ParseDefinitions(XmlNode node, ref ISADefinition definition)
|
||||
|
||||
Reference in New Issue
Block a user