1
0
mirror of https://github.com/cahirwpz/libnix.git synced 2025-12-08 14:58:56 +00:00
Files
amiga-libnix2/sources/stack/stkchk_d0.c
2014-01-05 20:02:29 +01:00

23 lines
278 B
C

#include "bases.h"
asm(
" .text;"
" .even;"
" .globl ___stkchk_d0;"
" .globl ___stkchk_0;"
"__stkchk_d0:;"
" negl d0;"
" addl sp,d0;"
" cmpl "A4(___stk_limit)",d0;"
" jcs L0;"
" rts;"
"___stkchk_0:;"
" cmpl "A4(___stk_limit)",sp;"
" jcs L0;"
" rts;"
"L0: jra ___stkovf;"
);