mirror of
https://github.com/creeperlv/SVM.git
synced 2026-01-11 12:59:54 +00:00
Added definition of call and return in the ISA.
This commit is contained in:
@@ -6,7 +6,8 @@
|
|||||||
</Enums>
|
</Enums>
|
||||||
<Registers>
|
<Registers>
|
||||||
<Item Key="pc" Value="1"/>
|
<Item Key="pc" Value="1"/>
|
||||||
<Item Key="sp" Value="2"/>
|
<Item Key="cf" Value="2"/>
|
||||||
|
<Item Key="sp" Value="3"/>
|
||||||
</Registers>
|
</Registers>
|
||||||
<Definitions>
|
<Definitions>
|
||||||
<InstructionDefinition Id="BMath" PrimaryInstruction="BMath">
|
<InstructionDefinition Id="BMath" PrimaryInstruction="BMath">
|
||||||
@@ -111,6 +112,35 @@
|
|||||||
</InstructionParameter>
|
</InstructionParameter>
|
||||||
</Parameters>
|
</Parameters>
|
||||||
</InstructionDefinition>
|
</InstructionDefinition>
|
||||||
|
<InstructionDefinition Id="call" PrimaryInstruction="Call" InstructionCount="2">
|
||||||
|
<Aliases>
|
||||||
|
<Alias Name="call"/>
|
||||||
|
<Alias Name="c"/>
|
||||||
|
</Aliases>
|
||||||
|
<Parameters>
|
||||||
|
<InstructionParameter>
|
||||||
|
<MatchingItems>
|
||||||
|
<Item Id="Number"/>
|
||||||
|
<Item Id="Word"/>
|
||||||
|
</MatchingItems>
|
||||||
|
<ExpectedValue Type="Int64" Pos="8" Converter="Integer64" />
|
||||||
|
</InstructionParameter>
|
||||||
|
</Parameters>
|
||||||
|
</InstructionDefinition>
|
||||||
|
<InstructionDefinition Id="return" PrimaryInstruction="Return" InstructionCount="1">
|
||||||
|
<Aliases>
|
||||||
|
<Alias Name="return"/>
|
||||||
|
</Aliases>
|
||||||
|
<Parameters>
|
||||||
|
<InstructionParameter>
|
||||||
|
<MatchingItems>
|
||||||
|
<Item Id="Number"/>
|
||||||
|
<Item Id="Word"/>
|
||||||
|
</MatchingItems>
|
||||||
|
<ExpectedValue Type="Int32" Pos="4" Converter="Integer32" />
|
||||||
|
</InstructionParameter>
|
||||||
|
</Parameters>
|
||||||
|
</InstructionDefinition>
|
||||||
<InstructionDefinition Id="load" PrimaryInstruction="Load" InstructionCount="1">
|
<InstructionDefinition Id="load" PrimaryInstruction="Load" InstructionCount="1">
|
||||||
<Aliases>
|
<Aliases>
|
||||||
<Alias Name="load"/>
|
<Alias Name="load"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user