From 7aacaaa4cb83bddb8a906b1f741a33034f8c79ef Mon Sep 17 00:00:00 2001 From: kjkszpj361 Date: Mon, 25 Jun 2018 19:43:47 +0300 Subject: [PATCH] Update documentation.frt --- documentation.frt | 53 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/documentation.frt b/documentation.frt index c8ea719..1c6e4c0 100644 --- a/documentation.frt +++ b/documentation.frt @@ -12,3 +12,56 @@ Drop the topmost element of the stack ( a b -- b a ) Swap two topmost elements of the stack " doc-word + +' rot g" +( a b c -- b c a ) +Shuffles top 3 elements of the stack +" doc-word + +' IMMEDIATE g" +Marks the last word as immediate +" doc-word + +' interpret g" +Forthress interpreter/compiler. Uses in_fd internally to know what to interpret. +" doc-word + +' interpret-fd g" +(fd -- ) +Interpret everything read from file descriptor fd. +" doc-word + +' ; g" +End the current word definition +" doc-word + +' create g" +( flags name -- ) +Create an entry in the dictionary name is the new name. Only immediate flag is implemented ATM. +" doc-word + +' c, g" +( c -- ) +Add a single byte to the word being defined. +" doc-word + +' , g" + ( x -- ) + Add x to the word being defined. + " doc-word + + ' c@ g" + ( addr -- char ) + Read one byte starting at addr. + " doc-word + + ' c! g" + ( char addr -- ) + Store one byte by address. + " doc-word + +' ! g" +( val addr -- ) +Store value by address. +" doc-word +