home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / ixemul-45.0-src.tgz / tar.out / contrib / ixemul / stack / stkchk_d0.c < prev    next >
C/C++ Source or Header  |  1996-09-28  |  252b  |  21 lines

  1. #include "a4.h"        /* for the A4 macro */
  2.  
  3. asm("
  4.     .text
  5.     .even
  6.     .globl    ___stkchk_d0
  7.     .globl    ___stkchk_0
  8.  
  9. ___stkchk_d0:
  10.     negl    d0
  11.     addl    sp,d0
  12.     cmpl    "A4(___stk_limit)",d0
  13.     jcs    ___stkovf
  14.     rts
  15.  
  16. ___stkchk_0:
  17.     cmpl    "A4(___stk_limit)",sp
  18.     jcs    ___stkovf
  19.     rts
  20. ");
  21.