Working on improving ISA Linker.

This commit is contained in:
2025-07-21 01:47:31 +08:00
parent b164fc1798
commit 49d6d463bd
11 changed files with 228 additions and 24 deletions

46
src/SVM.Assembler/ISA.xml Normal file
View File

@@ -0,0 +1,46 @@
<ISARoot>
<Enums>
</Enums>
<InstructionDefinition PrimaryInstruction="BMath">
<aliases>
<alias name="bmath"/>
<alias name="b.math"/>
<alias name="math.b"/>
</aliases>
<Parameters>
<InstructionParameter>
<AllowedIds>
<Text content="String"/>
</AllowedIds>
<ExpectedValue Type="Byte" Pos="1" Converter="InternalEnum:bOp" />
</InstructionParameter>
<InstructionParameter>
<AllowedIds>
<Text content="String"/>
</AllowedIds>
<ExpectedValue Type="Byte" Pos="2" Converter="InternalEnum:NativeType" />
</InstructionParameter>
<InstructionParameter>
<AllowedIds>
<Text content="String"/>
<Text content="Register"/>
</AllowedIds>
<ExpectedValue Type="Byte" Pos="3" Converter="Register" />
</InstructionParameter>
<InstructionParameter>
<AllowedIds>
<Text content="String"/>
<Text content="Register"/>
</AllowedIds>
<ExpectedValue Type="Byte" Pos="4" Converter="Register" />
</InstructionParameter>
<InstructionParameter>
<AllowedIds>
<Text content="String"/>
<Text content="Register"/>
</AllowedIds>
<ExpectedValue Type="Byte" Pos="5" Converter="Register" />
</InstructionParameter>
</Parameters>
</InstructionDefinition>
</ISARoot>