This is a draft cheat sheet. It is a work in progress and is not finished yet.
Variables
|
load int const x
on stack |
|
load int variable-slot 2 |
|
store variable 2 |
|
decrement Int variable 1 |
|
increment Int variable 1 |
Advanced Variables
|
push byte 10 on stack |
|
|
|
Create new array |
|
store array in var 1 |
iastore
Stack: [x,y,....]
|
save int x
in array at position y
|
|
|
Arithmetic
|
add top 2 stack elements |
|
multiply top 2 stack elements |
|
divide top 2 stack elem |
Advanced Variables
|
push byte 10 on stack |
|
|
|
Create new array |
|
store array in var 1 |
iastore
Stack: [x,y,....]
|
save int x
in array at position y
|
|
|
Control flow
|
Jumpi if less equal |
|
jump if equal |
|
jump if less theb |
|
call function 2 |
|
return int |
|
|
|
|
|