aboutsummaryrefslogtreecommitdiff
path: root/buzzard/help.th
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2019-10-30 20:04:56 +0100
committerDimitri Sokolyuk <demon@dim13.org>2019-10-30 20:04:56 +0100
commita76977af62010a392c16010c367185e61e856ffe (patch)
tree56cf4177d5bc0e3ead781d1c60818c13b1df0f3c /buzzard/help.th
parentc0165d167d7cb40d80028bcf7a4a6b160b5a7e83 (diff)
mv to docs
Diffstat (limited to 'buzzard/help.th')
-rw-r--r--buzzard/help.th54
1 files changed, 0 insertions, 54 deletions
diff --git a/buzzard/help.th b/buzzard/help.th
deleted file mode 100644
index 7afab27..0000000
--- a/buzzard/help.th
+++ /dev/null
@@ -1,54 +0,0 @@
-: help key ( flush the carriage return form the input buffer )
-
-" The following are the standard known words; words marked with (*) are
-immediate words, which cannot be used from command mode, but only in
-word definitions. Words marked by (**) declare new words, so are always
-followed by the new word.
-
- ! @ fetch, store
- + - * / mod standard arithmetic operations
- = < > <= >= standard comparison operations
-
- not boolean not of top of stack
- logical turn top of stack into 0 or 1
-
- dup over duplicate the top of stack or second of stack
- swap drop reverse top two elements or drop topmost
-
- inc dec increment/decrement the value at address from stack
- add add a value from 2nd of stack into address from top
-
- echo key output character from, or input to, top of stack
- . # print out number on top of stack without/with cr
- cr print a carriage return
-
-[more]" key
-" (**) var declare variable with initial value taken from stack
-(**) constant declare constant with initial value taken from stack
-(**) array declare an array with size taken from stack
-
-(*) if...else...then FORTH branching construct
-(*) do...loop FORTH looping construct
- i j loop values (not variables)
-
- print print the string pointed to on screen
-
-(*)(**) : declare a new THIRD word
-(*) <build does> declare a data types compile-time and run-time
-(*) ; terminate a word definition
-
-[more]" key
-" Advanced words:
- here current location in dictionary
- h pointer into dictionary
- r pointer to return stack
- fromr tor pop a value from or to the return stack
-
- , write the top of stack to dictionary
- ' store the address of the following word on the stack
- allot leave space on the dictionary
-
- :: compile a ':' header
- [ switch into command mode
- ] continue doing : definitions
-" ;