Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
451 B

#define FIXED_SEG
#include "traps.a"
#include "sysequ.a"
;------------------------------------------------------------------------
; _stackavail
;
; return the stack space available
;
; Entry: sp = stack pointer
;
; Exit: d0 = trashed with return value
;
; Note: All other registers must be preserved!
cProc _stackavail,PUBLIC
cBegin nogen
move.l sp, d0 ; a0 = sp
sub.l ApplLimit:w, d0 ; d0 = space left on stack
rts
cEnd nogen