version 1.5, 1994/10/24 19:16:01
|
version 1.14, 2007/12/31 18:40:24
|
Line 1
|
Line 1
|
include glocals.fs |
\ test gforth locals |
include debugging.fs |
|
|
\ Copyright (C) 1995,1996,1997,2000,2003 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 3 |
|
\ of the License, or (at your option) any later version. |
|
|
|
\ This program is distributed in the hope that it will be useful, |
|
\ but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
\ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
\ 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, see http://www.gnu.org/licenses/. |
|
|
|
|
|
require glocals.fs |
|
require debugs.fs |
|
|
: localsinfo \ !! only debugging |
: localsinfo \ !! only debugging |
." stack: " .s ." locals-size: " locals-size ? ." locals-list" |
." stack: " .s ." locals-size: " locals-size ? ." locals-list" |
Line 287 teststrcmp1
|
Line 307 teststrcmp1
|
|
|
1 2 3 4 puke . . . . cr |
1 2 3 4 puke . . . . cr |
|
|
|
\ just some other stuff |
|
|
|
: life1 { b0 b1 b23 old -- new } |
|
b23 invert old b1 b0 xor and old invert b1 and b0 and or and ; |
|
|
|
: life2 { b0 b1 b23 old -- new } |
|
b0 b1 or old b0 xor b1 xor b23 or invert and ; |
|
|
|
$5555 $3333 $0f0f $00ff life1 . |
|
$5555 $3333 $0f0f $00ff life2 . |
|
.s |
|
cr |
|
|
|
: test |
|
1 { a } ." after }" cr |
|
2 { b -- } ." after --" cr |
|
; |
|
test |
|
.s cr |
|
|
bye |
bye |