]> khamidou — GitHub mirrors - miniforth.git/commitdiff
added a list of opcodes to hte readme
authorkhamidou <khamidou@gmail.com>
Wed, 23 Feb 2011 08:39:14 +0000 (09:39 +0100)
committerkhamidou <khamidou@gmail.com>
Wed, 23 Feb 2011 08:39:14 +0000 (09:39 +0100)
README

diff --git a/README b/README
index 6bd49623a111656465393554fb4d04ff15809313..e0d7a3516c8ef2bd0d819bc057a5ffcc6963c54b 100644 (file)
--- a/README
+++ b/README
@@ -6,4 +6,20 @@ source code.
 
 = format of binary files
 
+There is no real format. The assembler simply reads the
+files and spits binary code corresponding to the direct
+ives he has read.
 
+= the assembler opcodes
+
+PUSH: followed by a value. Pushes this value on the stack 
+POP: pop a value off the stack
+NOP: do nothing
+DPRINT: Debug PRINT; print the top of the stack
+INC: increment the value on top of the stack
+DEC: decrement the same value
+CALL: syn: call label; calls the label
+RET: return to the caller
+JMP: jump inconditionally to a label.
+
+To see those opcodes used, see the tests directory.