TKCT_INTERNAL	EQU	0000H           
TKCT_EXTERNAL	EQU	0001H           
TKCT_SWAPTSD	EQU	0002H           
TKCTE_FIRST	EQU	0004H           
TKCTE_FLAT	EQU	0008H           
TKCTE_R2STACK	EQU	0010H           
TKCTE_R3STACK	EQU	0020H           
TKCTE_RESERVED	EQU	0FFC0H           
TKCTI_RESERVED	EQU	0FFFCH           
tkthrd_s STRUC
        ti_ldrrei       db      (size ldrrei_s) dup(?) 
        ti_penvdata     dd      ?       
        ti_pcmdline     dd      ?       
        ti_fs           dw      ?       
        ti_cbdata       dw      ?       
        ti_hobenv       dw      ?       
tkthrd_s ENDS

ti_cbbuf        equ     <ti_pcmdline>
ti_cbheap       equ     <ti_ldrrei.ei_heapsize>
ti_cbstack      equ     <ti_ldrrei.ei_stacksize>
ti_loadtype     equ     <ti_ldrrei.ei_loadtype>
ti_pbuf         equ     <ti_penvdata>
ti_seldata      equ     <ti_ldrrei.ei_ds>
ti_ustack       equ     <ti_ldrrei.ei_stackaddr>
ti_ustart       equ     <ti_ldrrei.ei_startaddr>
ti_cbstackmax   equ     <ti_pcmdline>
ti_cbstackinit  equ     <ti_penvdata>

