X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=07-interpreter%2Finstructions.html;fp=07-interpreter%2Finstructions.html;h=5abe5934691dc9d7401c408e8f0b4c1ec79a27af;hb=400eea877fad13741f408c6c23f254a51d3f1837;hp=0000000000000000000000000000000000000000;hpb=ee8194796a73cdf220172b88acf1a81afa3a379e;p=ou-summer-of-code-2017.git diff --git a/07-interpreter/instructions.html b/07-interpreter/instructions.html new file mode 100644 index 0000000..5abe593 --- /dev/null +++ b/07-interpreter/instructions.html @@ -0,0 +1,46 @@ +
Instruction | +Description | +
---|---|
inc r |
+increment contents of register r |
+
dec r |
+decrement contents of register r |
+
set r i |
+set contents of register r to literal value i |
+
cpy r s |
+set contents of register r into register s |
+
sto r m |
+store contents of register r into memory location m |
+
ld r m |
+load contents of memory location m into register r |
+
jmp i |
+jump to instruction i places forward |
+
jpz r i |
+jump to instruction i places forward ifregister r contains zero, otherwise continue to next instruction |
+