Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation.frt #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions documentation.frt
Original file line number Diff line number Diff line change
Expand Up @@ -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