[gforth] / gforth / prims2x.fs  

gforth: gforth/prims2x.fs

Diff for /gforth/prims2x.fs between version 1.1 and 1.2

version 1.1, Sat May 7 14:56:04 1994 UTC version 1.2, Wed May 18 17:29:59 1994 UTC
Line 204 
Line 204 
  here swap read-whole-file   here swap read-whole-file
  dup endinput !   dup endinput !
  here - allot   here - allot
    align
  primitives2something ;   primitives2something ;
   
 \ types  \ types
Line 220 
Line 221 
 \ n1 is the offset of the accessed item, n2, n3 are effect-*-size  \ n1 is the offset of the accessed item, n2, n3 are effect-*-size
  drop swap - 1- dup   drop swap - 1- dup
  if   if
    ." sp[" . ." ]"     ." sp[" 0 .r ." ]"
  else   else
    drop ." TOS"     drop ." TOS"
  endif ;   endif ;
Line 229 
Line 230 
 \ n1 is the offset of the accessed item, n2, n3 are effect-*-size  \ n1 is the offset of the accessed item, n2, n3 are effect-*-size
  nip swap - 1- dup   nip swap - 1- dup
  if   if
    ." fp[" . ." ]"     ." fp[" 0 .r ." ]"
  else   else
    drop ." FTOS"     drop ." FTOS"
  endif ;   endif ;
Line 489 
Line 490 
  effect-out-size 2@   effect-out-size 2@
  rot swap - ( d-in d-out f-diff )   rot swap - ( d-in d-out f-diff )
  rot rot - ( f-diff d-diff )   rot rot - ( f-diff d-diff )
  ." sp += " . ." ;" cr   ?dup IF  ." sp += " 0 .r ." ;" cr  THEN
  ." fp += " . ." ;" cr ;   ?dup IF  ." fp += " 0 .r ." ;" cr  THEN ;
   
 : store ( item -- )  : store ( item -- )
 \ f is true if the item should be stored  \ f is true if the item should be stored
Line 511 
Line 512 
  compute-offsets \ for everything else   compute-offsets \ for everything else
  flush-tos   flush-tos
  fetches   fetches
  stack-pointer-updates   stack-pointer-updates cr
  ." NAME(" [char] " emit forth-name 2@ type [char] " emit ." )" cr \ debugging   ." NAME(" [char] " emit forth-name 2@ type [char] " emit ." )" cr \ debugging
  ." {" cr   ." {" cr
  c-code 2@ type   c-code 2@ type


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help