// State.DF

structure STU:
	[ cw		word
	dty		bit 2
	ipa		bit 2
	fNoMod		bit
	fSeen		bit
	sver		bit 2
	sgrp		bit 8
	simDest 	word
	aSdm	word
	];

structure STM:
	[ cw	word
	lncode	word
	type	word
	reltbl	word
	lnmod	word
	fp 	word
	stmid	word
	blank	word 10
	aStu	word
	];

structure BBS:
	[ fInstalled	word
	aCfa	@CFA
	pArrayF	word
	pArrayMax	word
	pgnMacScrBin	word
	cwStm	word
	] 

manifest
	[
	otyStm = 100;
	lStmHdr = (offset STM.aStu)/16;
	lStuHdr = (offset STU.aSdm)/16;
	ipaAb = 0;
	ipaH = 1;
	ipaA = 2;
	simNil = 0;
	dtyA = 0;
	dtyB = 1;
	dtyRgb = 2;
	dtyMixed = 3;
	sgrpInit = 3;
	ipaNil = -1; 
	dtyNil = -1
	cwStuStat = lStuHdr+1
	cwStuMin = cwStuStat
	lrgPa = 1 lshift (size STU.ipa)
	cwFill = -2
	lbbs = (size BBS)/16
	];