updated readme for new version

This commit is contained in:
hellerve
2015-06-16 10:58:26 +02:00
parent 9b55ee0f54
commit 74e9c43403
7 changed files with 92 additions and 99 deletions

View File

@@ -29,41 +29,40 @@ concise as possible.
Instruction set
---------------
Up until now, all the operations are executed on integers(hence the
I\* prefix).
Up until now, all the operations are executed on integers.
*Operations overview*:
* ENTRY - Specifies an entry point for the routine by its index.
* IADD - Adds the two items to each other that are on top of the stack
* ADD - Adds the two items to each other that are on top of the stack
and stores the result on top of the stack.
* ISUB - Subtracts the two items from each other that are on top of the
* SUB - Subtracts the two items from each other that are on top of the
stack and stores the result on top of the stack.
* IMULT - Multiplies the two items to each other that are on top of the
* MULT - Multiplies the two items to each other that are on top of the
stack and stores the result on top of the stack.
* IDIV - Performs a division operation to the two items that are on top
* DIV - Performs a division operation to the two items that are on top
of the stack and stores the result on top of the stack.
* IMOD - Performs a modulo operation to the two items that are on top
* MOD - Performs a modulo operation to the two items that are on top
of the stack and stores the result on top of the stack.
* ILT - Checks whether the item on top of the stack is greater than the
* LT - Checks whether the item on top of the stack is greater than the
item below it and stores a boolean on top of the stack.
* IEQ - Checks whether the item on top of the stack is equal to the
* EQ - Checks whether the item on top of the stack is equal to the
item below it and stores a boolean on top of the stack.
* IGT - Checks whether the item on top of the stack is smaller than the
* GT - Checks whether the item on top of the stack is smaller than the
item below it and stores a boolean on top of the stack.
* ILEQ - Checks whether the item on top of the stack is smaller than or
* LEQ - Checks whether the item on top of the stack is smaller than or
equal to the item below it and stores a boolean on top of the stack.
* IGEQ - Checks whether the item on top of the stack is greater than or
* GEQ - Checks whether the item on top of the stack is greater than or
equal to the item below it and stores a boolean on top of the stack.
* BR - Jumps to the instruction that is provided as an argument.
@@ -74,7 +73,7 @@ value on top of the stack is TRUE.
* BRF - Jumps to the instruction that is provided as an argument if the
value on top of the stack is FALSE.
* ICONST - Puts the argument provided to the operation on top of the
* CONST - Puts the argument provided to the operation on top of the
stack.
* LOAD - Loads an element from any position on the stack on top of the
@@ -101,7 +100,7 @@ top of the stack.
* FETCH - Fetches a value.
* IINC -Increments the value on top of the stack by one(equal to ++).
* INC -Increments the value on top of the stack by one(equal to ++).
* IDEC -Decrements the value on top of the stack by one(equal to --).
* DEC -Decrements the value on top of the stack by one(equal to --).