version 1.6, 2003/10/08 13:17:10
|
version 1.9, 2007/12/31 19:02:24
|
Line 1
|
Line 1
|
\ Gforth primitives |
\ Gforth primitives |
|
|
\ Copyright (C) 1995,1996,1997,1998,2000,2003 Free Software Foundation, Inc. |
\ Copyright (C) 1995,1996,1997,1998,2000,2003,2007 Free Software Foundation, Inc. |
|
|
\ This file is part of Gforth. |
\ This file is part of Gforth. |
|
|
\ Gforth is free software; you can redistribute it and/or |
\ Gforth is free software; you can redistribute it and/or |
\ modify it under the terms of the GNU General Public License |
\ modify it under the terms of the GNU General Public License |
\ as published by the Free Software Foundation; either version 2 |
\ as published by the Free Software Foundation, either version 3 |
\ of the License, or (at your option) any later version. |
\ of the License, or (at your option) any later version. |
|
|
\ This program is distributed in the hope that it will be useful, |
\ This program is distributed in the hope that it will be useful, |
Line 15
|
Line 15
|
\ GNU General Public License for more details. |
\ GNU General Public License for more details. |
|
|
\ You should have received a copy of the GNU General Public License |
\ You should have received a copy of the GNU General Public License |
\ along with this program; if not, write to the Free Software |
\ along with this program. If not, see http://www.gnu.org/licenses/. |
\ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. |
|
|
|
|
|
\ WARNING: This file is processed by m4. Make sure your identifiers |
\ WARNING: This file is processed by m4. Make sure your identifiers |
Line 148
|
Line 147
|
\E create regs sp2 , sp1 , spTOS , |
\E create regs sp2 , sp1 , spTOS , |
|
|
\E IPregs 1 0 stack-state IPss1 |
\E IPregs 1 0 stack-state IPss1 |
\E regs 0 -1 stack-state ss0 |
\E regs 3 cells + 0 -1 stack-state ss0 |
\E regs 2 cells + 1 0 stack-state ss1 |
\E regs 2 cells + 1 0 stack-state ss1 |
\E regs 1 cells + 2 1 stack-state ss2 |
\E regs 1 cells + 2 1 stack-state ss2 |
\E regs 0 cells + 3 2 stack-state ss3 |
\E regs 0 cells + 3 2 stack-state ss3 |
|
|
\E state S0 |
\ the first of these is the default state |
\E state S1 |
\E state S1 |
|
\E state S0 |
\E state S2 |
\E state S2 |
\E state S3 |
\E state S3 |
|
|
Line 171
|
Line 171
|
\E data-stack to cache-stack |
\E data-stack to cache-stack |
\E here 4 cache-states 2! s0 , s1 , s2 , s3 , |
\E here 4 cache-states 2! s0 , s1 , s2 , s3 , |
|
|
\E S1 to state-in-default |
\E S1 to state-default |
\E S1 to state-out-default |
\E state-default to state-in |
\E state-in-default to state-in |
\E state-default to state-out |
\E state-out-default to state-out |
|
|
|
+ ( n1 n2 -- n ) core plus |
+ ( n1 n2 -- n ) core plus |
n = n1+n2; |
n = n1+n2; |
Line 199 noop ( -- )
|
Line 198 noop ( -- )
|
\E prim-states drop |
\E prim-states drop |
\E prim-states over |
\E prim-states over |
|
|
\E S1 branch-states ?branch |
\E branch-states ?branch |
|
|
\E gen-transitions noop |
\E gen-transitions noop |
|
|