Diff for /gforth/Attic/m68k.h between versions 1.4 and 1.6

version 1.4, 1995/11/07 18:06:49 version 1.6, 1996/07/26 15:28:29
Line 27 Line 27
 */  */
   
 #ifdef DIRECT_THREADED  #ifdef DIRECT_THREADED
   #warning untested
 /* PFA gives the parameter field address corresponding to a cfa */  /* PFA gives the parameter field address corresponding to a cfa */
 #define PFA(cfa)        (((Cell *)cfa)+2)  #define PFA(cfa)        (((Cell *)cfa)+2)
 /* PFA1 is a special version for use just after a NEXT1 */  /* PFA1 is a special version for use just after a NEXT1 */
Line 40 Line 40
                                   _cfa[0] = 0x4ef9; /* jmp.l */ \                                    _cfa[0] = 0x4ef9; /* jmp.l */ \
                                   *(long *)(_cfa+1) = (long)(ca);})                                    *(long *)(_cfa+1) = (long)(ca);})
   
 /* this is the point where the does code starts if label points to the  /* this is the point where the does code for the word with the xt cfa
  * jump dodoes */     starts. */
 #define DOES_CODE(label)        ((Xt *)(((char *)CODE_ADDRESS(label))+DOES_HANDLER_SIZE))  #define DOES_CODE(cfa) \
        ({ short *_cfa=(short *)(cfa); \
           short *_ca;
           ((_cfa[0] == 0x4ef9 \
             && (_ca=CODE_ADDRESS(cfa), _ca[0] == 0x4ef9) \
             && *(long *)(_cfa+1) == &&docol) \
            ? ((unsigned)_ca)+DOES_HANDLER_SIZE \
            : 0); })
   
 /* this is a special version of DOES_CODE for use in dodoes */  /* this is a special version of DOES_CODE for use in dodoes */
 #define DOES_CODE1(label)       DOES_CODE(label)  #define DOES_CODE1(cfa) ((Xt *)(((char *)CODE_ADDRESS(cfa))+DOES_HANDLER_SIZE))
   
 /* this stores a call dodoes at addr */  /* this stores a call dodoes at addr */
 #define MAKE_DOES_HANDLER(addr) MAKE_CF(addr,symbols[DODOES])  #define MAKE_DOES_HANDLER(addr) MAKE_CF(addr,symbols[DODOES])

Removed from v.1.4  
changed lines
  Added in v.1.6


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