version 1.1, 2001/05/01 10:20:55
|
version 1.4, 2003/08/25 14:17:55
|
Line 1
|
Line 1
|
\ mini.inst is generated automatically from mini-inst.vmg and mini-super.vmg |
\ mini.inst is generated automatically from mini-inst.vmg and mini-super.vmg |
\ example .vmg file |
\ example .vmg file |
|
|
\ Copyright (C) 2001 Free Software Foundation, Inc. |
\ Copyright (C) 2001,2002,2003 Free Software Foundation, Inc. |
|
|
\ This file is part of Gforth. |
\ This file is part of Gforth. |
|
|
Line 38
|
Line 38
|
\E s" Inst *" single data-stack type-prefix target |
\E s" Inst *" single data-stack type-prefix target |
|
|
\ simple VM instructions: |
\ simple VM instructions: |
add ( i1 i2 -- i ) |
add ( i1 i2 -- i ) |
i = i1+i2; |
i = i1+i2; |
|
|
sub ( i1 i2 -- i ) |
sub ( i1 i2 -- i ) |
Line 78 SET_IP(target);
|
Line 78 SET_IP(target);
|
zbranch ( #target i -- ) |
zbranch ( #target i -- ) |
if (i==0) { |
if (i==0) { |
SET_IP(target); |
SET_IP(target); |
TAIL; |
INST_TAIL; |
} |
} |
|
|
\ The stack is organized as follows: |
\ The stack is organized as follows: |