home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
text
/
jed
/
src
/
jed.lha
/
stksize.a
< prev
next >
Wrap
Text File
|
1992-10-11
|
367b
|
21 lines
; STKSIZE.A
;
; returns the size of available stack, doesn't take into
; account the stuff used by this routine.
section text,code
xdef _stksize
tc_SPLower EQU 58
ThisTask EQU 276
;Prototype LONG stksize(VOID);
_stksize:
move.l 4.w,a0 ; EXEC
move.l ThisTask(a0),a0 ; me
move.l sp,d0
sub.l tc_SPLower(a0),d0 ; available stack
rts