Diff for /gforth/see.fs between versions 1.7 and 1.8

version 1.7, 1995/10/07 17:38:19 version 1.8, 1995/11/02 14:20:53
Line 188  VARIABLE C-Pass Line 188  VARIABLE C-Pass
         cell+ ;          cell+ ;
   
 : c-lit  : c-lit
         Display? IF dup @ dup abs 0 <# #S rot sign #> 0 .string bl cemit THEN      Display? IF
         cell+ ;          dup @ dup abs 0 <# #S rot sign #> 0 .string bl cemit
       THEN
       cell+ ;
   
   : c-@local#
       Display? IF
           S" @local" 0 .string
           dup @ dup 1 cells / abs 0 <# #S rot sign #> 0 .string bl cemit
       THEN
       cell+ ;
   
 : c-flit  : c-flit
         Display? IF  dup f@ scratch represent 0=      Display? IF
                      IF    2drop  scratch 3 min 0 .string          dup f@ scratch represent 0=
                      ELSE   IF  '- cemit  THEN  1-          IF    2drop  scratch 3 min 0 .string
                             scratch over c@ cemit '. cemit 1 /string 0 .string          ELSE
                             'E cemit              IF  '- cemit  THEN  1-
                             dup abs 0 <# #S rot sign #> 0 .string bl cemit              scratch over c@ cemit '. cemit 1 /string 0 .string
                  THEN THEN              'E cemit
         float+ ;              dup abs 0 <# #S rot sign #> 0 .string bl cemit
           THEN THEN
       float+ ;
   
   : c-f@local#
       Display? IF
           S" f@local" 0 .string
           dup @ dup 1 floats / abs 0 <# #S rot sign #> 0 .string bl cemit
       THEN
       cell+ ;
   
   : c-laddr#
       Display? IF
           S" laddr# " 0 .string
           dup @ dup abs 0 <# #S rot sign #> 0 .string bl cemit
       THEN
       cell+ ;
   
   : c-lp+!#
       Display? IF
           S" lp+!# " 0 .string
           dup @ dup abs 0 <# #S rot sign #> 0 .string bl cemit
       THEN
       cell+ ;
   
 : c-s"  : c-s"
         count 2dup + aligned -rot          count 2dup + aligned -rot
Line 319  VARIABLE C-Pass Line 351  VARIABLE C-Pass
                                          IF WhileCode2 swap !                                           IF WhileCode2 swap !
                                          ELSE drop THEN                                           ELSE drop THEN
                                 level- nl                                  level- nl
                                 S" WHILE" .struc                                  S" WHILE " .struc
                                 level+                                  level+
                         ELSE    nl S" IF" .struc level+                          ELSE    nl S" IF " .struc level+
                         THEN                          THEN
                 THEN                  THEN
         THEN          THEN
         DebugBranch          DebugBranch
         cell+ ;          cell+ ;
   
   : c-?branch-lp+!#  c-?branch cell+ ;
   : c-branch-lp+!#   c-branch  cell+ ;
   
 : c-do  : c-do
         Display? IF nl S" DO" .struc level+ THEN ;          Display? IF nl S" DO" .struc level+ THEN ;
   
Line 346  VARIABLE C-Pass Line 381  VARIABLE C-Pass
         Display? IF level- nl S" LOOP " .struc nl THEN          Display? IF level- nl S" LOOP " .struc nl THEN
         DebugBranch cell+ cell+ ;          DebugBranch cell+ cell+ ;
   
   
 : c-+loop  : c-+loop
         Display? IF level- nl S" +LOOP " .struc nl THEN          Display? IF level- nl S" +LOOP " .struc nl THEN
         DebugBranch cell+ cell+ ;          DebugBranch cell+ cell+ ;
   
   : c-s+loop
           Display? IF level- nl S" S+LOOP " .struc nl THEN
           DebugBranch cell+ cell+ ;
   
   : c--loop
           Display? IF level- nl S" -LOOP " .struc nl THEN
           DebugBranch cell+ cell+ ;
   
   : c-next-lp+!#  c-next cell+ ;
   : c-loop-lp+!#  c-loop cell+ ;
   : c-+loop-lp+!#  c-+loop cell+ ;
   : c-s+loop-lp+!#  c-s+loop cell+ ;
   : c--loop-lp+!#  c--loop cell+ ;
   
 : c-leave  : c-leave
         Display? IF S" LEAVE " .struc THEN          Display? IF S" LEAVE " .struc THEN
         Debug? IF dup @ + THEN cell+ ;          Debug? IF dup @ + THEN cell+ ;
Line 382  VARIABLE C-Pass Line 430  VARIABLE C-Pass
   
   
 CREATE C-Table  CREATE C-Table
         ' lit A,         ' c-lit A,          ' lit A,            ' c-lit A,
         ' flit A,        ' c-flit A,          ' @local# A,        ' c-@local# A,
         ' (s") A,        ' c-s" A,          ' flit A,           ' c-flit A,
         ' (.") A,        ' c-." A,          ' f@local# A,       ' c-f@local# A,
         ' "lit A,        ' c-c" A,          ' laddr# A,         ' c-laddr# A,
         ' ?branch A,     ' c-?branch A,          ' lp+!# A,          ' c-lp+!# A,
         ' branch A,      ' c-branch A,          ' (s") A,           ' c-s" A,
         ' leave A,       ' c-leave A,          ' (.") A,           ' c-." A,
         ' ?leave A,      ' c-?leave A,          ' "lit A,           ' c-c" A,
         ' (do) A,        ' c-do A,          ' leave A,          ' c-leave A,
         ' (?do) A,       ' c-?do A,          ' ?leave A,         ' c-?leave A,
         ' (for) A,       ' c-for A,          ' (do) A,           ' c-do A,
         ' (loop) A,      ' c-loop A,          ' (?do) A,          ' c-?do A,
         ' (+loop) A,     ' c-+loop A,          ' (for) A,          ' c-for A,
         ' (next) A,      ' c-next A,          ' ?branch A,        ' c-?branch A,
         ' ;s A,          ' c-exit A,          ' branch A,         ' c-branch A,
         ' (does>) A,     ' c-does> A,          ' (loop) A,         ' c-loop A,
         ' (abort") A,    ' c-abort" A,          ' (+loop) A,        ' c-+loop A,
         ' (compile) A,   ' c-(compile) A,          ' (s+loop) A,       ' c-s+loop A,
           ' (-loop) A,        ' c--loop A,
           ' (next) A,         ' c-next A,
           ' ?branch-lp+!# A,  ' c-?branch-lp+!# A,
           ' branch-lp+!# A,   ' c-branch-lp+!# A,
           ' (loop)-lp+!# A,   ' c-loop-lp+!# A,
           ' (+loop)-lp+!# A,  ' c-+loop-lp+!# A,
           ' (s+loop)-lp+!# A, ' c-s+loop-lp+!# A,
           ' (-loop)-lp+!# A,  ' c--loop-lp+!# A,
           ' (next)-lp+!# A,   ' c-next-lp+!# A,
           ' ;s A,             ' c-exit A,
           ' (does>) A,        ' c-does> A,
           ' (abort") A,       ' c-abort" A,
           ' (compile) A,      ' c-(compile) A,
         0 ,          0 ,
   
 \ DOTABLE                                               15may93jaw  \ DOTABLE                                               15may93jaw
Line 465  DEFER dosee Line 526  DEFER dosee
 : docon  dup cell+ (name>) >body @ . ." Constant " .name cr ;  : docon  dup cell+ (name>) >body @ . ." Constant " .name cr ;
 : doval  dup cell+ (name>) >body @ . ." Value " .name cr ;  : doval  dup cell+ (name>) >body @ . ." Value " .name cr ;
 : dodef ." Defer " dup >r .name cr  : dodef ." Defer " dup >r .name cr
          here @ look 0= ABORT" SEE: No valid xt in defered word"      r@ cell+ (name>) >body @ look
          here @ look drop dosee cr      0= ABORT" SEE: No valid xt in deferred word"
         ." ' " .name r> ." IS " .name cr ;      dup dosee cr
       ." ' " .name r> ." IS " .name cr ;
 : dodoe ." Create " dup .name cr  : dodoe ." Create " dup .name cr
         S" DOES> " Com# .string XPos @ Level ! name>          S" DOES> " Com# .string XPos @ Level ! name>
         >does-code dup C-Pass @ DebugMode = IF ScanMode c-pass ! EXIT THEN          >does-code dup C-Pass @ DebugMode = IF ScanMode c-pass ! EXIT THEN

Removed from v.1.7  
changed lines
  Added in v.1.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>