[gforth] / gforth / see.fs  

gforth: gforth/see.fs

Diff for /gforth/see.fs between version 1.72 and 1.73

version 1.72, Sun May 2 16:58:02 2010 UTC version 1.73, Sat Aug 28 09:48:53 2010 UTC
Line 254 
Line 254 
 : Scan? ( -- flag ) C-Pass @ 0= ;  : Scan? ( -- flag ) C-Pass @ 0= ;
 : Display? ( -- flag ) C-Pass @ 1 = ;  : Display? ( -- flag ) C-Pass @ 1 = ;
 : Debug? ( -- flag ) C-Pass @ 2 = ;  : Debug? ( -- flag ) C-Pass @ 2 = ;
   : ?.string  ( c-addr u n -- )   Display? if .string else 2drop drop then ;
   
 : back? ( addr target -- addr flag )  : back? ( addr target -- addr flag )
     over u< ;      over u< ;
Line 300 
Line 301 
 [THEN]  [THEN]
   
 : c-lit ( addr1 -- addr2 )  : c-lit ( addr1 -- addr2 )
     Display? IF  
         dup @ dup body> dup cfaligned over = swap in-dictionary? and if          dup @ dup body> dup cfaligned over = swap in-dictionary? and if
             ( addr1 addr1@ )              ( addr1 addr1@ )
             dup body> @ dovar: = if              dup body> @ dovar: = if
Line 312 
Line 312 
             over 3 cells + @ decompile-prim ['] ;S xt>threaded =              over 3 cells + @ decompile-prim ['] ;S xt>threaded =
             r> and if              r> and if
             over 2 cells + @ ['] !does >body = if  drop              over 2 cells + @ ['] !does >body = if  drop
                 S" DOES> " Com# .string 4 cells + EXIT endif                  S" DOES> " Com# ?.string 4 cells + EXIT endif
           endif
             [IFDEF] !;abi-code              [IFDEF] !;abi-code
                 over 2 cells + @ ['] !;abi-code >body = if  drop                  over 2 cells + @ ['] !;abi-code >body = if  drop
                     S" ;abi-code " Com# .string 4 cells + EXIT endif                  S" ;abi-code " Com# ?.string 4 cells +
             [THEN]                  c-stop on
                   EXIT
             endif              endif
           [THEN]
         endif          endif
       Display? if
         \ !! test for cfa here, and print "['] ..."          \ !! test for cfa here, and print "['] ..."
         dup abs 0 <# #S rot sign #> 0 .string bl cemit          dup abs 0 <# #S rot sign #> 0 .string bl cemit
     endif      else  drop  then
     cell+ ;      cell+ ;
   
 : c-lit+ ( addr1 -- addr2 )  : c-lit+ ( addr1 -- addr2 )


Generate output suitable for use with a patch program
Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help