.macro CODE
	.text
.endm

.macro SECTION name,type,model
	\type
.endm

ATARIST	equ	1
AMIGA	equ	0

*
* this is the import/export offsets
*
flen		equ	0
fname		equ	flen+4
buff1		equ	fname+4
buff2		equ	buff1+4
outlen		equ	buff2+4
outptr		equ	outlen+4
inlen		equ	outptr+4
inptr		equ	inlen+4
toptype		equ	inptr+4
cwptr		equ	toptype+4
objptr		equ	cwptr+4
grpptr		equ	objptr+4
gleft		equ	grpptr+4
markcol1	equ	gleft+4
markcol2	equ	markcol1+4
markoff1	equ	markcol2+4
markoff2	equ	markoff1+4
tpath		equ	markoff2+4
spclnum		equ	tpath+4
spclname	equ	spclnum+4
copybuf		equ	spclname+4
cpylen		equ	copybuf+4
objcount	equ	cpylen+4

m_alloc		equ	objcount+4
m_realloc	equ	m_alloc+4
m_grow		equ	m_realloc+4
m_shrink	equ	m_grow+4
m_delete	equ	m_shrink+4

mulu1632	equ	m_delete+4
mulu3232	equ	mulu1632+4
divu1648	equ	mulu3232+4
divu3248	equ	divu1648+4
divu3264	equ	divu3248+4

muls1632	equ	divu3264+4
muls3232	equ	muls1632+4
divs1648	equ	muls3232+4
divs3248	equ	divs1648+4
divs3264	equ	divs3248+4

fopenr		equ	divs3264+4
fopenw		equ	fopenr+4
fread		equ	fopenw+4
fwrite		equ	fread+4
fclose		equ	fwrite+4
fsize		equ	fclose+4

f_openr		equ	fsize+4
f_closer	equ	f_openr+4
f_get		equ	f_closer+4
f_getw		equ	f_get+4
f_geti		equ	f_getw+4
f_getl		equ	f_geti+4
f_getr		equ	f_getl+4
f_skip		equ	f_getr+4
f_openw		equ	f_skip+4
f_closew	equ	f_openw+4
f_put		equ	f_closew+4
f_putw		equ	f_put+4
f_putl		equ	f_putw+4
f_putr		equ	f_putl+4

t_open		equ	f_putr+4
t_close		equ	t_open+4
t_abort		equ	t_close+4
t_put		equ	t_abort+4
t_putw		equ	t_put+4
t_putl		equ	t_putw+4
t_putr		equ	t_putl+4

o_open		equ	t_putr+4
o_close		equ	o_open+4
o_abort		equ	o_close+4
o_malloc	equ	o_abort+4
o_obj		equ	o_malloc+4
o_put		equ	o_obj+4
o_putw		equ	o_put+4
o_putl		equ	o_putw+4
o_putr		equ	o_putl+4

p_open		equ	o_putr+4
p_close		equ	p_open+4
p_abort		equ	p_close+4

setrange	equ	p_abort+4
dorange		equ	setrange+4
doflag		equ	dorange+4
cmdlength	equ	doflag+4

findtagname	equ	cmdlength+4
findfontname	equ	findtagname+4
findcolorname	equ	findfontname+4
newtag		equ	findcolorname+4
newcolor	equ	newtag+4

o_begingroup	equ	newcolor+4
o_endgroup	equ	o_begingroup+4

fseek		equ	o_endgroup+4
