1 /* tag: the main file which includes all the prim code headers
3 * Copyright (C) 2003 Patrick Mauritz, Stefan Reinauer
5 * see the file "COPYING" for further information about
6 * the copyright and warranty status of this work.
10 #include "sysinclude.h"
11 #include "kernel/stack.h"
12 #include "kernel/kernel.h"
16 * cross platform abstraction
22 * Code Field Address (CFA) definitions (DOCOL and the like)
27 /* include forth primitives needed to set up
28 * all the words described in IEEE1275-1994.
33 /* words[] is a function array of all native code functions used by
34 * the dictionary, i.e. CFAs and primitives.
35 * Any change here needs a matching change in the primitive word's
36 * name list that is kept for bootstrapping in kernel/bootstrap.c
38 * NOTE: THIS LIST SHALL NOT CHANGE (EXCEPT MANDATORY ADDITIONS AT
39 * THE END). ANY OTHER CHANGE WILL BREAK COMPATIBILITY TO OLDER
40 * BINARY DICTIONARIES.
42 static forth_word
* const words
[] = {
44 * CFAs and special words
82 depthwrite
, /* depth! */
84 rdepthwrite
, /* rdepth! */
89 mudivmod
, /* mu/mod */
125 execute
, /* execute */
127 herewrite
, /* here! */
128 dobranch
, /* dobranch */
129 docbranch
, /* do?branch */
130 unalignedwordread
, /* unaligned-w@ */
131 unalignedwordwrite
, /* unaligned-w! */
132 unalignedlongread
, /* unaligned-l@ */
133 unalignedlongwrite
, /* unaligned-l! */
143 sysdebug
, /* sys-debug */
144 do_include
, /* $include */
145 do_encode_file
, /* $encode-file */
146 do_debug_xt
, /* (debug */
147 do_debug_off
, /* (debug-off) */