version 1.3, 2006/01/27 10:43:52
|
version 1.5, 2007/07/07 21:46:05
|
Line 1
|
Line 1
|
\ stack cache setup |
\ stack cache setup |
|
|
\ Copyright (C) 2003,2004,2005 Free Software Foundation, Inc. |
\ Copyright (C) 2003,2004,2005,2006 Free Software Foundation, Inc. |
|
|
\ This file is part of Gforth. |
\ This file is part of Gforth. |
|
|
Line 28
|
Line 28
|
\E register spg Cell |
\E register spg Cell |
\E register sph Cell |
\E register sph Cell |
|
|
|
\E register fpTOS Float |
|
|
\E create IPregs IPTOS , |
\E create IPregs IPTOS , |
\E create regs sph , spg , spf , spe , spd , spc , spb , spTOS , |
\E create regs sph , spg , spf , spe , spd , spc , spb , spTOS , |
\ \E create regs spTOS , |
\ \E create regs spTOS , |
|
\E create fpregs fpTOS , |
|
|
\E IPregs 1 0 stack-state IPss1 |
\E IPregs 1 0 stack-state IPss1 |
\E regs 8 cells + 0 -1 stack-state ss0 |
\E regs 8 cells + 0 -1 stack-state ss0 |
Line 44
|
Line 47
|
\E regs 0 cells + 8 7 stack-state ss8 |
\E regs 0 cells + 8 7 stack-state ss8 |
\ \E regs 1 cells + 0 -1 stack-state ss0 |
\ \E regs 1 cells + 0 -1 stack-state ss0 |
\ \E regs 1 0 stack-state ss1 |
\ \E regs 1 0 stack-state ss1 |
|
\E fpregs 0 cells + 1 0 stack-state fpss1 |
|
|
\ the first of these is the default state (for now) |
\ the first of these is the default state (for now) |
\E state S1 |
\E state S1 |
Line 83
|
Line 87
|
\E IPss1 inst-stream S7 set-ss |
\E IPss1 inst-stream S7 set-ss |
\E IPss1 inst-stream S8 set-ss |
\E IPss1 inst-stream S8 set-ss |
|
|
|
\E fpss1 fp-stack S0 set-ss |
|
\E fpss1 fp-stack S1 set-ss |
|
\E fpss1 fp-stack S2 set-ss |
|
\E fpss1 fp-stack S3 set-ss |
|
\E fpss1 fp-stack S4 set-ss |
|
\E fpss1 fp-stack S5 set-ss |
|
\E fpss1 fp-stack S6 set-ss |
|
\E fpss1 fp-stack S7 set-ss |
|
\E fpss1 fp-stack S8 set-ss |
|
|
\E data-stack to cache-stack |
\E data-stack to cache-stack |
\E here 9 cache-states 2! s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 , s8 , |
\E here 9 cache-states 2! s0 , s1 , s2 , s3 , s4 , s5 , s6 , s7 , s8 , |
\ \E here 2 cache-states 2! s0 , s1 , |
\ \E here 2 cache-states 2! s0 , s1 , |