***********************************************************************
*
*
* Darts Globals -- Version 3.0
*
* Copyright (c)
* Apple Computer, Inc.  1986-1990
* All Rights Reserved.
*
* Developer Technical Support Apple II Sample Code
*
* This file contains the global variables used by the program.
*
***********************************************************************

	case on
	longi on
	longa on

	INCLUDE 'm16.locator'
	INCLUDE 'm16.memory'
	INCLUDE 'darts.equ'

********************

	EXPORT initGlobals
initGlobals	PROC

	_TLStartUp	;Start up Tool Locator & Memory Mgr.
	pha
	_MMStartUp
	pla
	sta userID

	stz score
	stz score+2
	stz gameType

	rts

	EXPORT userID
userID		;       
	DC.W 0

	EXPORT quitFlag
quitFlag		;       
	DC.W 0

	EXPORT event
event		;       
	DC.W 0	;wmWhat
	DC.L 0	;wmMessage
	DC.L 0	;wmWhen
	DC.L 0	;wmWhere
	DC.W 0	;wmModifiers
	DC.L 0	;wmTaskData
	DC.L $001FFFFF	;wmTaskMask
	DC.L 0	;wmLastClickTick
	DC.W 0	;wmClickCount
	DC.L 0	;wmTaskData2
	DC.L 0	;wmTaskData3
	DC.L 0	;wmTaskData4
	DC.L 0	;wmLastClickPt

	EXPORT scoreStrings
scoreStrings		;       
	DS.B 2*10
	EXPORT scoreStringArray
scoreStringArray		;       
	DC.L scoreStrings,scoreStrings+10

	EXPORT crickettTables
crickettTables		;       
	DS.B 4*26

	EXPORT score
score		;       
	DS.B 4

	EXPORT listEntries
listEntries		;       
	DS.B 4

	EXPORT scoreList
scoreList		;       
	DS.B 8

	EXPORT gameType
gameType		;       
	DC.W 0

	EXPORT weHaveAWinner
weHaveAWinner		;       
	DC.W 0

	EXPORT firstUpdateComplete
firstUpdateComplete		;       
	DC.W 0

	EXPORT theWindow
theWindow		;       
	DC.L 0

	EXPORT lastWindow
lastWindow		;       
	DC.L 0

	ENDP

	END
