version 1.2, 1998/12/08 22:02:59
|
version 1.4, 2004/01/05 22:25:02
|
Line 1
|
Line 1
|
\ mirror.fs mirrors ram in rom and copies back at startup |
\ mirror.fs mirrors ram in rom and copies back at startup |
|
|
\ Copyright (C) 1998 Free Software Foundation, Inc. |
\ Copyright (C) 1998,2000,2003 Free Software Foundation, Inc. |
|
|
\ This file is part of Gforth. |
\ This file is part of Gforth. |
|
|
Line 16
|
Line 16
|
|
|
\ 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, write to the Free Software |
\ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
\ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. |
|
|
0 [IF] |
0 [IF] |
|
|
Line 30 and code-fields...) into rom and copy it
|
Line 30 and code-fields...) into rom and copy it
|
\ save ram area |
\ save ram area |
|
|
>rom |
>rom |
unlock sramdp @ lock constant ram-start |
unlock ram-dictionary extent lock |
unlock ramdp @ sramdp @ - lock constant ram-len |
Constant ram-len |
variable ram-origin |
Constant ram-start |
|
Variable ram-origin |
ram-start ram-origin ram-len unlock tcmove lock |
ram-start ram-origin ram-len unlock tcmove lock |
ram-len allot align |
ram-len allot align |
>auto |
>auto |