[gforth] / gforth / Attic / engine.c  

gforth: gforth/Attic/engine.c

Diff for /gforth/Attic/engine.c between version 1.4 and 1.5

version 1.4, Thu May 5 15:46:42 1994 UTC version 1.5, Sat May 7 14:55:47 1994 UTC
Line 86 
Line 86 
   
 static char* fileattr[6]={"r","rb","r+","r+b","w+","w+b"};  static char* fileattr[6]={"r","rb","r+","r+b","w+","w+b"};
   
 Label *engine(Xt *ip, Cell *sp, Cell *rp, Float *fp)  Label *engine(Xt *ip, Cell *sp, Cell *rp, Float *fp, Address lp)
 /* executes code at ip, if ip!=NULL  /* executes code at ip, if ip!=NULL
    returns array of machine code labels (for use in a loader), if ip==NULL     returns array of machine code labels (for use in a loader), if ip==NULL
    This is very preliminary, as the bootstrap architecture is not yet decided     This is very preliminary, as the bootstrap architecture is not yet decided
 */  */
 {  {
   Xt cfa;    Xt cfa;
   Address lp=NULL;  
   Address up=NULL;    Address up=NULL;
   static Label symbols[]= {    static Label symbols[]= {
     &&docol,      &&docol,
Line 174 
Line 173 
 #endif  #endif
 #ifdef USE_TOS  #ifdef USE_TOS
   *sp-- = TOS;    *sp-- = TOS;
   TOS = up+*(Cell*)PFA1(cfa);    TOS = (Cell)(up+*(Cell*)PFA1(cfa));
 #else  #else
   *--sp = up+*(Cell*)PFA1(cfa);    *--sp = (Cell)(up+*(Cell*)PFA1(cfa));
 #endif  #endif
   NEXT;    NEXT;
   


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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help