--- gforth/simp-see.fs 2001/03/28 09:06:57 1.1 +++ gforth/simp-see.fs 2003/03/09 15:16:52 1.4 @@ -1,6 +1,6 @@ \ simple-minded see (good for seeing what the compiler produces) -\ Copyright (C) 2001 Free Software Foundation, Inc. +\ Copyright (C) 2001,2003 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -20,13 +20,14 @@ require see.fs -: simple-see-range ( addr1 addr2 -- ) +: simple-see-range ( addr1 addr2 -- ) \ gforth swap u+do - cr i hex. i cell+ i @ .word drop + cr xpos off i hex. i cell+ i @ .word drop cell +loop ; -: simple-see ( "name" -- ) +: simple-see ( "name" -- ) \ gforth + \G a simple decompiler that's closer to @code{dump} than @code{see}. \ !! at the moment NEXT-HEAD is a little too optimistic (see \ comment in HEAD?) ' >body dup next-head simple-see-range ;