	load	'macros.dump'
	include 'driver.equ'
	include 'scrap.equ'
	include 'sssc.equ'

X_SSScrapData	PROC	EXPORT
	EXPORT	X_FormatMask
	EXPORT	X_StandardJust
	EXPORT	X_StandardVForm
	EXPORT	X_StandardDecimals
	EXPORT	X_StandardProtection
	EXPORT	X_CurrentCell
	EXPORT	X_CurrentRow
	EXPORT	X_CurrentColumn
	EXPORT	X_CurrentSize
	EXPORT	X_CurrentFormat
	EXPORT	X_AWFormulaTable
	EXPORT	X_DegString
	EXPORT	X_RadString
	EXPORT	X_PiString
	EXPORT	X_TrueString
	EXPORT	X_FalseString
	EXPORT	X_NotString
	EXPORT	X_IsBlankString
	EXPORT	X_ISNAString
	EXPORT	X_IsErrorString
	EXPORT	X_ExpFString
	EXPORT	X_LnString
	EXPORT	X_LogString
	EXPORT	X_CosString
	EXPORT	X_SinString
	EXPORT	X_TanString
	EXPORT	X_ACosString
	EXPORT	X_ASinString
	EXPORT	X_Atan2String
	EXPORT	X_AtanString
	EXPORT	X_ModString
	EXPORT	X_FvString
	EXPORT	X_PvString
	EXPORT	X_PmtString
	EXPORT	X_TermString
	EXPORT	X_RateString	; End of 3.0 functions
	EXPORT	X_RoundString
	EXPORT	X_AndString
	EXPORT	X_OrString
	EXPORT	X_SumString
	EXPORT	X_AvgString
	EXPORT	X_ChooseString
	EXPORT	X_CountString
	EXPORT	X_ErrorString
	EXPORT	X_IRRString
	EXPORT	X_IfString
	EXPORT	X_IntString
	EXPORT	X_LookupString
	EXPORT	X_MaxString
	EXPORT	X_MinString
	EXPORT	X_NAString
	EXPORT	X_NPVString
	EXPORT	X_SqrtString
	EXPORT	X_AbsString
	EXPORT	X_NotEqualString
	EXPORT	X_GEString
	EXPORT	X_LEString
	EXPORT	X_EqualString
	EXPORT	X_GTString
	EXPORT	X_LTString
	EXPORT	X_CommaString
	EXPORT	X_ExpString
	EXPORT	X_RightParenStr
	EXPORT	X_MinusString
	EXPORT	X_PlusString
	EXPORT	X_DivideString
	EXPORT	X_MultiplyString
	EXPORT	X_LeftParenStr
	EXPORT	X_DotsStr
	EXPORT	X_SSDecForm
	EXPORT	X_SSDecRec
	EXPORT	X_SSScratch
	EXPORT	X_NumberStr
	EXPORT	X_SSScrapContent


X_FormatMask	DC.L	-1	; Hack for scrap conversion
X_StandardJust	DS.B 2
X_StandardVForm	DS.B 2
X_StandardDecimals	DS.B 2
X_StandardProtection	DS.B 2

X_CurrentCell
X_CurrentRow	DS.B 2
X_CurrentColumn	DS.B 2
X_CurrentSize	DS.B 2
X_CurrentFormat	DS.B 4


X_AWFormulaTable
	DC.W	X_SSUnary,10	; @Deg
	DC.L	X_DegString
	DC.W	X_SSUnary,10	; @Rad
	DC.L	X_RadString
	DC.W	X_SSUnary,10	; @Pi
	DC.L	X_PiString
	DC.W	X_SSUnary,10	; @True
	DC.L	X_TrueString
	DC.W	X_SSUnary,10	; @False
	DC.L	X_FalseString
	DC.W	X_SSUnary,10	; @Not
	DC.L	X_NotString
	DC.W	X_SSUnary,10	; @IsBlank
	DC.L	X_IsBlankString
	DC.W	X_SSUnary,10	; @ISNA
	DC.L	X_ISNAString
	DC.W	X_SSUnary,10	; @IsError
	DC.L	X_IsErrorString
	DC.W	X_SSUnary,10	; @Exp
	DC.L	X_ExpFString
	DC.W	X_SSUnary,10	; @Ln
	DC.L	X_LnString
	DC.W	X_SSUnary,10	; @Log
	DC.L	X_LogString
	DC.W	X_SSUnary,10	; @Cos
	DC.L	X_CosString
	DC.W	X_SSUnary,10	; @Sin
	DC.L	X_SinString
	DC.W	X_SSUnary,10	; @Tan
	DC.L	X_TanString
	DC.W	X_SSUnary,10	; @ACos
	DC.L	X_ACosString
	DC.W	X_SSUnary,10	; @ASin
	DC.L	X_ASinString
	DC.W	X_SSUnary,10	; @Atan2
	DC.L	X_AtanString
	DC.W	X_SSUnary,10	; @Atan
	DC.L	X_AtanString
	DC.W	X_SSUnary,10	; @Mod
	DC.L	X_ModString
	DC.W	X_SSUnary,10	; @Fv
	DC.L	X_FvString
	DC.W	X_SSUnary,10	; @Pv
	DC.L	X_PvString
	DC.W	X_SSUnary,10	; @Pmt
	DC.L	X_PmtString
	DC.W	X_SSUnary,10	; @Term
	DC.L	X_TermString
	DC.W	X_SSUnary,10	; @Rate
	DC.L	X_RateString	; End of 3.0 functions

	DC.W	X_SSUnary,10	; @Round
	DC.L	X_RoundString
	DC.W	X_SSUnary,10	;@Or
	DC.L	X_OrString
	DC.W	X_SSUnary,10	;@Or
	DC.L	X_AndString
	DC.W	X_SSUnary,10	;@Sum
	DC.L	X_SumString
	DC.W	X_SSUnary,10	;@Avg
	DC.L	X_AvgString
	DC.W	X_SSUnary,10	;@Choose
	DC.L	X_ChooseString
	DC.W	X_SSUnary,10	;@Count
	DC.L	X_CountString
	DC.W	X_SSUnary,10	;@Error
	DC.L	X_ErrorString
	DC.W	X_SSUnary,10	;@IRR
	DC.L	X_IRRString
	DC.W	X_SSUnary,10	;@If
	DC.L	X_IfString
	DC.W	X_SSUnary,10	;@Int
	DC.L	X_IntString
	DC.W	X_SSUnary,10	;@Lookup
	DC.L	X_LookupString
	DC.W	X_SSUnary,10	;@Max
	DC.L	X_MaxString
	DC.W	X_SSUnary,10	;@Min
	DC.L	X_MinString
	DC.W	X_SSUnary,10	;@NA
	DC.L	X_NAString
	DC.W	X_SSUnary,10	;@NPV
	DC.L	X_NPVString
	DC.W	X_SSUnary,10	;@Sqrt
	DC.L	X_SqrtString
	DC.W	X_SSUnary,10	;@Abs
	DC.L	X_AbsString
	DC.W	X_SSUnary,10	;Not defined used for @Term
	DC.L	X_NPerString
;	DC.W	X_SSUnary,10	;Not defined
;	DC.L	X_ErrorString
	DC.W	X_SSBinary,3	;<>
	DC.L	X_NotEqualString
	DC.W	X_SSBinary,3	;>=
	DC.L	X_GEString
	DC.W	X_SSBinary,3	;<=
	DC.L	X_LEString
	DC.W	X_SSBinary,3	;=
	DC.L	X_EqualString
	DC.W	X_SSBinary,3	;>
	DC.L	X_GTString
	DC.W	X_SSBinary,3	;<
	DC.L	X_LTString
	DC.W	X_SSBinary,0	;,
	DC.L	X_CommaString
	DC.W	X_SSBinary,8	;^
	DC.L	X_ExpString
	DC.W	X_SSUnary,10	;)
	DC.L	X_RightParenStr
	DC.W	X_SSBinary,4	;-
	DC.L	X_MinusString
	DC.W	X_SSBinary,4	;+
	DC.L	X_PlusString
	DC.W	X_SSBinary,7	;/
	DC.L	X_DivideString
	DC.W	X_SSBinary,7	;*
	DC.L	X_MultiplyString
	DC.W	X_SSUnary,0		;(
	DC.L	X_LeftParenStr
	DC.W	X_SSUnary,9		;-
	DC.L	X_MinusString
	DC.W	X_SSUnary,9		;+
	DC.L	X_PlusString
	DC.W	X_SSBinary,0	;..
	DC.L	X_DotsStr
	DC.W	X_SSUnary,0
	DC.L	0
	DC.W	X_SSUnary,0
	DC.L	0

X_DegString	STR	'Degrees'
X_RadString	STR	'Radians'
X_PiString	    STR	'Pi'
X_TrueString    STR	'True'
X_FalseString   STR	'False'
X_NotString	    STR	'Not'
X_IsBlankString STR	'IsBlank'
X_ISNAString    STR	'ISNA'
X_IsErrorString STR	'IsError'
X_ExpFString    STR	'Exp'
X_LnString	  STR	'Ln'
X_LogString	  STR	'Log'
X_CosString	  STR	'Cos'
X_SinString	  STR	'Sin'
X_TanString	  STR	'Tan'
X_ACosString  STR	'ACos'
X_ASinString  STR	'ASin'
X_AtanString  STR	'Atan'
X_ModString	  STR	'Mod'
X_FvString	  STR	'-(FV'
X_PvString	  STR	'-(PV'
X_PmtString	  STR	'-(PMT'
X_TermString  STR	'(-TERM'
X_NPerString  STR	'TERM'
X_RateString  STR	'RATE'	; End of 3.0 functions
X_RoundString STR 'Round'
X_AndString	STR 'And'
X_OrString	STR 'Or'
X_SumString	STR 'Sum'
X_AvgString	STR 'Avg'
X_ChooseString	STR 'Choose'
X_CountString	STR 'Count'
X_ErrorString	STR 'Error'
X_IRRString	STR 'IRR'
X_IfString	STR 'If'
X_IntString	STR 'Int'
X_LookupString	STR 'Lookup'
X_MaxString	STR 'Max'
X_MinString	STR 'Min'
X_NAString	STR 'NA'
X_NPVString	STR 'NPV'
X_SqrtString	STR 'Sqrt'
X_AbsString	STR 'Abs'
X_NotEqualString	STR '<>'
X_GEString	STR '>='
X_LEString	STR '<='
X_EqualString	STR '='
X_GTString	STR '>'
X_LTString	STR '<'
X_CommaString	STR ','
X_ExpString	STR '^'
X_RightParenStr	STR ')'
X_MinusString	STR '-'
X_PlusString	STR '+'
X_DivideString	STR '/'
X_MultiplyString	STR '*'
X_LeftParenStr	STR '('
X_DotsStr	STR '..'



X_SSDecForm
	DC.W	X_SSFixed,X_AWDigits
X_SSDecRec
X_SSScratch
	DS.B 256
X_NumberStr	DS.B 64

X_SSScrapContent	DS.B 2




	ENDP
	END

