devAIcon	== spr3pic	;image data of the 3 possible
devBIcon	== spr4pic	;disk icons
devCIcon	== spr5pic

nameDrvA	== $7f40	;these buffers at the back
nameDrvB	== $7f40+18	;of the background screen
nameDrvC	== $7f40+(2*18)	;trashed on printer driver
nameTrash	== $7f40+(3*18)	;loading
		;rest of space to $8000 in use

cache		== a2L	;flag - status of disk header cache
trashGood	== a2H	;flag	 - trash can status
lastFileIndex	== a3L	;index to last file drawn from queue
copyType	== a3H	;flag
ptrToBufName	== a4	;ptr to filename in dir buffer
highest		== a5L	;number of entries in dir buffer
ontop		== a5H	;entry at top of filePad
selected	== a6L	;currently selected entry
numSelected	== a6H	;number of files selected
linkPtr		== a7L	;flag
viewType	== a7H	;view by variable - where filetype
		;equals viewType except where
		;VIEW_ALL = $80
		;VIEW_TRASH = $40

	.if (0)
global variable space declared under the gateWay - to $020a is considered public. From $20e - $221 is considered open. Though this region is used by the gateWay, it is a general scratch area - for this reason, this region cannot be guareenteed from each a
ppearance of a gateWay document.
	.endif

temp		== $0200	;save var on GW_doc entry
tempEntries	== $0201	;as above
curLaunchDrive	== $0202	;gw doc launch drive
c_curDrive	== $0203	;copy of current drive
GWDrive		== $0204	;GW home drive
activePartion	== $0205	;current partition
usingDriver	== $0206	;flag = TRUE if using two drivers
				;on non REU system
printer		== $0207	;flag = TRUE if printer on disk
partSelOpt	== $0208	;flag = TRUE if partition select 
				;option active
setClkFlg	== $0209
boxUp		== $020a
padCardsWide	== $020b	;width of filePad in cards
BoxRight	== $020c	;right edge of filePad in pixels

open 		== $20e - $221

dateBuff	== $222
timeBuff	== $22c
allPurBuffer	== $236		;general purpose input buffer
				;used by all DB's that use DBGETFILES
selQueue	== $033c	;select queue - 144 flags where
				;TRUE = file is selected
copyDirHead	== $400
indexTab	== copyDirHead
partionNumber	== indexTab+2
blockCache	== $500		;copy of disk header block

borderColor	== $600		; default BLACK
scrnColor	== $601		; default DRK_GRAY|LGHT_GRAY
ptrColor	== $602		; default DRK_BLUE
defaultPattern	== $603		; default 50_GRAY

dfltA		== $606		;drivers for no ram systems
dfltB		== $607

controlPanel	== $608		;default 1
				;pointer to controlPanel
GW1		== $609		;VLIR pointers to attached
GW2		== $60a		;gateWay documents
GW3		== $60b		;NULL means no document
GW4		== $60c
GW5		== $60d
GW6		== $60e

				; default Macros
keyF1		== $60f	; SHORTCUT|'a	 - open A
keyF2		== $610	; SHORTCUT|'i	 - erase
keyF3		== $611	; SHORTCUT|'b	 - open B
keyF4		== $612	; SHORTCUT|'h	 - browse
keyF5		== $613	; SHORTCUT|'c	 - open C
keyF6		== $614	; SHORTCUT|'e	 - get info
keyF7		== $615	; SHORTCUT|'P	 - open Partition
keyF8		== $616	; SHORTCUT|'r	 - reset

jmpBase		= $617

GoMain		== jmpBase
DoDirectory	== jmpBase+(3*1)
GWSetDevice	== jmpBase+(3*2)
DoOpenPad	== jmpBase+(3*3)
DrawFPad	== jmpBase+(3*4)
LdSmallFont	== jmpBase+(3*5)
CalcStrWide	== jmpBase+(3*6)
UserGetFiles	== jmpBase+(3*7)
GetCurDskNm	== jmpBase+(3*8)
GetDskIcnPtr	== jmpBase+(3*9)
CLRPartBuf	== jmpBase+(3*10)
GetBufPtr	== jmpBase+(3*11)
StopTheClk	== jmpBase+(3*12)
ReStartClk	== jmpBase+(3*13)
ConstrainMse	== jmpBase+(3*14)
FreeMse		== jmpBase+(3*15)
MoveFilename	== jmpBase+(3*16)
SetNullPat	== jmpBase+(3*17)
SetDefltPat	== jmpBase+(3*18)
GetGWBlock	== jmpBase+(3*19)
PutGWBlock	== jmpBase+(3*20)
SetGWDisk	== jmpBase+(3*21)
GetFilePtr	== jmpBase+(3*22)
OpenTheDev	== jmpBase+(3*23)
RstrInterrupt	== jmpBase+(3*24)

;Constants:

;constants for the .info_gw file

OFF_ICON	= $04
OFF_VIEWTYPE	= $45
OFF_TRASH	= $44
OFF_BOXRIGHT	= $46
OFF_ONTOP	= $48
OFF_TEXT	= $a0

OFF_GH_SWAP	= $5f	;offset to 3 drive flag in file header
			;%10000000 indicates that appl.
			;can handle 3 drives & therefore
			;no need to auto-swap if launched
			;from drive C

VIEW_ALL	= %10000000	;additional viewmodes
VIEW_TRASH	= %01000000

;drive flag constants

NO_HRDWARE	= %10000000	;drive does not support hardware
				;commands
IS_PARALLEL	= %01000000	;device on parallel bus
PARTITION	= %00100000	;drive supports CMD partition
				;structure and commands
SLOW_RAM	= %00010000	;ram device - using banked or
				;IO paged ram.

;driveTypes

NO_DRIVE	= $00
CBM_1541	= $01
CBM_1571	= $02
CBM_1581	= $03

HD_1581		= $23
HARD_DRIVE	= $24
RL_1581		= $33
RAMLINK		= $34
