--- gforth/vmgen-ex2/mini-inst.vmg 2002/06/02 15:46:17 1.1 +++ gforth/vmgen-ex2/mini-inst.vmg 2007/12/31 19:02:25 1.6 @@ -1,13 +1,13 @@ \ mini.inst is generated automatically from mini-inst.vmg and mini-super.vmg \ example .vmg file -\ Copyright (C) 2001 Free Software Foundation, Inc. +\ Copyright (C) 2001,2002,2003,2007 Free Software Foundation, Inc. \ This file is part of Gforth. \ Gforth is free software; you can redistribute it and/or \ 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. \ This program is distributed in the hope that it will be useful, @@ -16,8 +16,7 @@ \ GNU General Public License for more details. \ You should have received a copy of the GNU General Public License -\ along with this program; if not, write to the Free Software -\ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. +\ along with this program. If not, see http://www.gnu.org/licenses/. \ WARNING: This file is processed by m4. Make sure your identifiers @@ -38,7 +37,7 @@ \E s" Inst *" single data-stack type-prefix target \ simple VM instructions: -add ( i1 i2 -- i ) +add ( i1 i2 -- i ) i = i1+i2; sub ( i1 i2 -- i ) @@ -78,7 +77,7 @@ SET_IP(target); zbranch ( #target i -- ) if (i==0) { SET_IP(target); - TAIL; + INST_TAIL; } \ The stack is organized as follows: