User Tools

Site Tools


tutorials:forth

This is an old revision of the document!


FORTH-10 is a Forth language interpreter included in the Panda TOPS-20 distribution. The anonymous programmer describes the implementation as “NOT totally standard”. The interpreter can be started with the following command on TWENEX:

@FORTH

MIDAS assembly language source is available in file TOPS20:<UTILITIES>FORTH.MID.

Primitive Dictionary

DUP  SWAP  ROLL  PICK  DROP  OVER  ROT  -DUP  ?DUP  LEVEL  DEPTH  FLOAT  +  -
*  /  ^  F+  F-  F*  F/  FIX  MOD  /MOD  0=  0=_  0<  0<=  0>  0>=  EXCHANGE
JSYS  =  =_  <  <=  >  >=  FLUSH  TRACE  @  !  +!  -!  FILL  '  '#  ]  QUIT
<#  #  HOLD  #N  SIGN  #S  #>  HOME  CR  CLEAR  SPACE  SPACES  EMIT  TYPE
[TYPE]  KEY  ?TERMINAL  EXPECT  [EXPECT]  C@  C!  C>  C<  .  .R  F.  ."  :"
(")  ["]  VLIST  (  ABS  MINUS  +-  1+  1-  MAX  MIN  SINE  COSINE  ROOT  LN
<-,,  SW,,AP  ,,->  AND  OR  NOT  XOR  EXECUTE  FORGET  :  ;  <BUILDS  DOES>
,  ALLOT  LOAD  [LOAD]  UNLOAD  DECIMAL  OCTAL  BINARY  IF  ELSE  THEN  DO
LOOP  +LOOP  I  J  IJ..N  RUNT  REPEAT  UNTIL  CMOVE  [CMOVE]  HERE  LEAVE
ERROR  [NUMBER]  WHILE  BEGIN  END

Start-Up File

tutorials/forth.1641455892.txt.gz · Last modified: 2022/01/06 07:58 by papa