mirror of
https://github.com/creeperlv/SVM.git
synced 2026-01-10 20:39:54 +00:00
Added definition of call and return in the ISA.
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
</Enums>
|
||||
<Registers>
|
||||
<Item Key="pc" Value="1"/>
|
||||
<Item Key="sp" Value="2"/>
|
||||
<Item Key="cf" Value="2"/>
|
||||
<Item Key="sp" Value="3"/>
|
||||
</Registers>
|
||||
<Definitions>
|
||||
<InstructionDefinition Id="BMath" PrimaryInstruction="BMath">
|
||||
@@ -111,6 +112,35 @@
|
||||
</InstructionParameter>
|
||||
</Parameters>
|
||||
</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">
|
||||
<Aliases>
|
||||
<Alias Name="load"/>
|
||||
|
||||
Reference in New Issue
Block a user