Diff for /gforth/cross.fs between versions 1.44 and 1.47

version 1.44, 1997/02/09 21:51:38 version 1.47, 1997/04/10 21:32:08
Line 100  also Forth definitions Line 100  also Forth definitions
 [IFDEF] asm-include asm-include [THEN]  [IFDEF] asm-include asm-include [THEN]
   
 previous  previous
   hex
   
 >CROSS  >CROSS
   
Line 245  VARIABLE VocTemp Line 246  VARIABLE VocTemp
 : <T  get-current VocTemp ! also Ghosts definitions ;  : <T  get-current VocTemp ! also Ghosts definitions ;
 : T>  previous VocTemp @ set-current ;  : T>  previous VocTemp @ set-current ;
   
   hex
 4711 Constant <fwd>             4712 Constant <res>  4711 Constant <fwd>             4712 Constant <res>
 4713 Constant <imm>             4714 Constant <do:>  4713 Constant <imm>             4714 Constant <do:>
   
Line 528  ghost (does>)   ghost noop Line 530  ghost (does>)   ghost noop
 ghost (.")      ghost (S")      ghost (ABORT")  2drop drop  ghost (.")      ghost (S")      ghost (ABORT")  2drop drop
 ghost '                                         drop  ghost '                                         drop
 ghost :docol    ghost :doesjump ghost :dodoes   2drop drop  ghost :docol    ghost :doesjump ghost :dodoes   2drop drop
   ghost over      ghost =         ghost drop      2drop drop
   
 \ compile                                              10may93jaw  \ compile                                              10may93jaw
   
Line 542  ghost :docol    ghost :doesjump ghost :d Line 545  ghost :docol    ghost :doesjump ghost :d
 \ generic threading modell  \ generic threading modell
 : docol,  ( -- ) compile :docol T 0 , H ;  : docol,  ( -- ) compile :docol T 0 , H ;
   
 : dodoes, ( -- ) compile :doesjump T 0 , H ;  : dodoes, ( -- ) T cfalign H compile :doesjump T 0 , H ;
   
 [IFUNDEF] (code)   [IFUNDEF] (code) 
 Defer (code)  Defer (code)
Line 552  Defer (end-code) Line 555  Defer (end-code)
 >TARGET  >TARGET
 : Code  : Code
     (THeader there resolve      (THeader there resolve
     there 2 T cells H + T a, 0 , H      [ has-prims 0= [IF] ITC [ELSE] true [THEN] ] [IF]
           there 2 T cells H + T a, 0 , H
       [THEN]
     depth (code) ;      depth (code) ;
   
 : Code:  : Code:
Line 647  Cond: MAXI Line 652  Cond: MAXI
   docol, depth T ] H ;    docol, depth T ] H ;
   
 : :noname ( -- colon-sys )  : :noname ( -- colon-sys )
   T align H there docol, depth T ] H ;    T cfalign H there docol, depth T ] H ;
   
 Cond: EXIT ( -- )  restrict?  compile ;S  ;Cond  Cond: EXIT ( -- )  restrict?  compile ;S  ;Cond
   
Line 668  Cond: [  restrict? state off ;Cond Line 673  Cond: [  restrict? state off ;Cond
   
 >TARGET  >TARGET
 Cond: DOES> restrict?  Cond: DOES> restrict?
         compile (does>) dodoes, tdoes @ ?dup IF  @ T here H resolve THEN          compile (does>) dodoes, tdoes @ ?dup IF  @ T here H resolve THEN
         ;Cond          ;Cond
 : DOES> dodoes, T here H !does depth T ] H ;  : DOES> dodoes, T here H !does depth T ] H ;
   
Line 779  Build:  ( d -- ) T , , H ; Line 784  Build:  ( d -- ) T , , H ;
 DO: ( ghost -- d ) T dup cell+ @ swap @ H ;DO  DO: ( ghost -- d ) T dup cell+ @ swap @ H ;DO
 Builder 2Constant  Builder 2Constant
   
 Build: T 0 , H ;  Build: T , H ;
 by (Constant)  by (Constant)
 Builder Value  Builder Value
   
 Build: T 0 A, H ;  Build: T A, H ;
 by (Constant)  by (Constant)
 Builder AValue  Builder AValue
   
Line 864  Cond: AGAIN     restrict? sys? compile b Line 869  Cond: AGAIN     restrict? sys? compile b
 Cond: UNTIL     restrict? sys? compile ?branch <resolve ;Cond  Cond: UNTIL     restrict? sys? compile ?branch <resolve ;Cond
 Cond: REPEAT    restrict? over 0= ?struc compile AGAIN compile THEN ;Cond  Cond: REPEAT    restrict? over 0= ?struc compile AGAIN compile THEN ;Cond
   
   Cond: CASE      restrict? 0 ;Cond
   Cond: OF        restrict? 1+ >r compile over compile = compile IF compile drop
                   r> ;Cond
   Cond: ENDOF     restrict? >r compile ELSE r> ;Cond
   Cond: ENDCASE   restrict? compile drop 0 ?DO  compile THEN  LOOP ;Cond
   
 \ Structural Conditionals                              12dec92py  \ Structural Conditionals                              12dec92py
   
 Cond: DO        restrict? compile (do)   T here H ;Cond  Cond: DO        restrict? compile (do)   T here H ;Cond
Line 1031  mach-file count included Line 1042  mach-file count included
 : undef-words  ['] defined? IS skip? ;  : undef-words  ['] defined? IS skip? ;
   
 : \  postpone \ ;  immediate  : \  postpone \ ;  immediate
   : \G T-\G ; immediate
 : (  postpone ( ;  immediate  : (  postpone ( ;  immediate
 : include bl word count included ;  : include bl word count included ;
 : .( [char] ) parse type ;  : .( [char] ) parse type ;

Removed from v.1.44  
changed lines
  Added in v.1.47


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