version 1.21, 2007/12/31 17:34:59
|
version 1.23, 2010/03/25 16:25:53
|
Line 6
|
Line 6
|
|
|
\ 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. |
|
|
|
here 0 , \ just a dummy, the real value of locals-list is patched into it in glocals.fs |
here 0 , \ just a dummy, the real value of locals-list is patched into it in glocals.fs |
AConstant locals-list \ acts like a variable that contains |
AConstant locals-list \ acts like a variable that contains |
Line 225 Avariable leave-sp leave-stack 3 cells
|
Line 224 Avariable leave-sp leave-stack 3 cells
|
leave-sp ! ; |
leave-sp ! ; |
|
|
: DONE ( compilation orig -- ; run-time -- ) \ gforth |
: DONE ( compilation orig -- ; run-time -- ) \ gforth |
\ !! the original done had ( addr -- ) |
\g resolves all LEAVEs up to the compilaton orig (from a BEGIN) |
drop >r drop |
drop >r drop |
begin |
begin |
leave> |
leave> |