version	U12.1.00
uid	hexlib.u1-1784908833-0
impl	error
global	24
	0,000001,scale,0
	1,000001,scale2,0
	2,000001,scale4,0
	3,000001,scale5,0
	4,000001,numrows,0
	5,000001,numcols,0
	6,000001,drawsegs,0
	7,000001,drawlefts,0
	8,000001,drawrights,0
	9,000001,drawesegs,0
	10,000001,q,0
	11,000001,qq,0
	12,000001,wHexOutline,0
	13,000001,verbose,0
	14,000005,starthex,1
	15,000005,oddcol,2
	16,000005,evencol,2
	17,000005,parthex,2
	18,000005,reparthex,2
	19,000005,hex,2
	20,000005,rehex,2
	21,000005,hex_spot,3
	22,000005,hex_outline,4
	23,000005,hex_mouse,2

proc starthex
	local	0,001000,w
	local	1,000020,col
	local	2,000000,scale
	local	3,000000,numrows
	local	4,000000,numcols
	local	5,000000,verbose
	local	6,000000,write
	local	7,000000,scale2
	local	8,000000,scale4
	local	9,000000,scale5
	local	10,000000,oddcol
	local	11,000000,evencol
	con	0,002000,2,10
	con	1,010000,18,163,164,141,162,164,150,145,170,054,040,156,165,155,162,157,167,163,040
	con	2,010000,9,040,156,165,155,143,157,154,163,040
	con	3,002000,1,2
	con	4,002000,1,4
	con	5,002000,1,5
	con	6,002000,1,0
	con	7,002000,1,1
	declend
	filen	hexlib.icn
	line	28
	colm	11
	synt	any
	mark	L1
	pnull
	pnull
	var	2
	line	30
	colm	4
	synt	any
	null
	int	0
	line	30
	colm	13
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	pnull
	var	3
	line	31
	colm	4
	synt	any
	null
	int	0
	line	31
	colm	13
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	pnull
	var	4
	line	32
	colm	4
	synt	any
	null
	int	0
	line	32
	colm	13
	synt	any
	asgn
	unmark
lab L3
	mark	L4
	line	33
	colm	4
	synt	if
	mark0
	pnull
	var	5
	line	33
	colm	7
	synt	any
	nonnull
	unmark
	var	6
	str	1
	var	3
	str	2
	var	4
	line	33
	colm	26
	synt	any
	invoke	4
	line	33
	colm	4
	synt	endif
	unmark
lab L4
	mark	L5
	pnull
	var	7
	pnull
	int	3
	var	2
	line	34
	colm	16
	synt	any
	mult
	line	34
	colm	11
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	var	8
	pnull
	int	4
	var	2
	line	35
	colm	16
	synt	any
	mult
	line	35
	colm	11
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	var	9
	pnull
	int	5
	var	2
	line	36
	colm	16
	synt	any
	mult
	line	36
	colm	11
	synt	any
	asgn
	unmark
lab L7
	mark	L8
	line	37
	colm	4
	synt	if
	mark0
	pnull
	pnull
	var	4
	int	3
	line	37
	colm	16
	synt	any
	mod
	int	6
	line	37
	colm	21
	synt	any
	numeq
	unmark
	pnull
	var	4
	dup
	int	7
	line	37
	colm	38
	synt	any
	plus
	asgn
	line	37
	colm	4
	synt	endif
	unmark
lab L8
	mark	L9
	line	38
	colm	4
	synt	every
	mark0
	pnull
	var	1
	pnull
	int	6
	pnull
	var	4
	int	7
	line	38
	colm	29
	synt	any
	minus
	int	3
	line	38
	colm	19
	synt	any
	toby
	line	38
	colm	14
	synt	any
	asgn
	pop
	mark0
	var	10
	var	0
	pnull
	var	1
	var	8
	line	38
	colm	54
	synt	any
	mult
	line	38
	colm	46
	synt	any
	invoke	2
	unmark
lab L10
	efail
lab L11
	line	38
	colm	4
	synt	endevery
	unmark
lab L9
	mark	L12
	line	39
	colm	4
	synt	every
	mark0
	pnull
	var	1
	pnull
	int	7
	pnull
	var	4
	int	7
	line	39
	colm	29
	synt	any
	minus
	int	3
	line	39
	colm	19
	synt	any
	toby
	line	39
	colm	14
	synt	any
	asgn
	pop
	mark0
	var	11
	var	0
	pnull
	var	1
	var	8
	line	39
	colm	55
	synt	any
	mult
	line	39
	colm	47
	synt	any
	invoke	2
	unmark
lab L13
	efail
lab L14
	line	39
	colm	4
	synt	endevery
	unmark
lab L12
	pnull
	line	41
	colm	1
	synt	any
	pfail
	end
proc oddcol
	local	0,001000,w
	local	1,001000,x
	local	2,000020,i
	local	3,000020,i6
	local	4,000000,numrows
	local	5,000000,drawlefts
	local	6,000000,list
	local	7,000000,drawrights
	local	8,000000,drawsegs
	local	9,000000,q
	local	10,000000,qq
	local	11,000000,hex
	local	12,000000,scale4
	local	13,000000,DrawLine
	local	14,000000,DrawSegment
	local	15,000000,rehex
	con	0,002000,1,1
	con	1,002000,1,6
	con	2,002000,1,8
	con	3,002000,1,2
	con	4,002000,1,0
	declend
	line	43
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	mark	L4
	pnull
	var	2
	pnull
	var	4
	int	0
	line	46
	colm	19
	synt	any
	plus
	line	46
	colm	9
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	var	3
	pnull
	var	2
	int	1
	line	47
	colm	15
	synt	any
	mult
	line	47
	colm	10
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	var	5
	var	6
	pnull
	var	3
	int	0
	line	48
	colm	27
	synt	any
	plus
	line	48
	colm	24
	synt	any
	invoke	1
	line	48
	colm	17
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	var	7
	var	6
	pnull
	var	3
	int	0
	line	49
	colm	28
	synt	any
	plus
	line	49
	colm	25
	synt	any
	invoke	1
	line	49
	colm	18
	synt	any
	asgn
	unmark
lab L7
	mark	L8
	pnull
	var	8
	var	6
	pnull
	pnull
	var	2
	int	2
	line	50
	colm	25
	synt	any
	mult
	int	0
	line	50
	colm	27
	synt	any
	plus
	line	50
	colm	23
	synt	any
	invoke	1
	line	50
	colm	16
	synt	any
	asgn
	unmark
lab L8
	mark	L9
	pnull
	pnull
	var	5
	int	0
	line	51
	colm	16
	synt	any
	subsc
	pnull
	pnull
	var	7
	int	0
	line	51
	colm	33
	synt	any
	subsc
	pnull
	pnull
	var	8
	int	0
	line	51
	colm	48
	synt	any
	subsc
	var	0
	line	51
	colm	52
	synt	any
	asgn
	line	51
	colm	37
	synt	any
	asgn
	line	51
	colm	20
	synt	any
	asgn
	unmark
lab L9
	mark	L10
	pnull
	var	9
	pnull
	var	10
	int	3
	line	52
	colm	15
	synt	any
	asgn
	line	52
	colm	9
	synt	any
	asgn
	unmark
lab L10
	mark	L11
	line	53
	colm	7
	synt	every
	mark0
	pnull
	var	2
	pnull
	int	4
	var	4
	push1
	line	53
	colm	20
	synt	any
	toby
	line	53
	colm	15
	synt	any
	asgn
	pop
	mark0
	var	11
	var	1
	pnull
	var	2
	var	12
	line	53
	colm	43
	synt	any
	mult
	line	53
	colm	37
	synt	any
	invoke	2
	unmark
lab L12
	efail
lab L13
	line	53
	colm	7
	synt	endevery
	unmark
lab L11
	mark	L14
	var	13
	var	5
	invoke	-1
	unmark
lab L14
	mark	L15
	var	13
	var	7
	invoke	-1
	unmark
lab L15
	mark	L16
	var	14
	var	8
	invoke	-1
	unmark
lab L16
	mark	L17
	pnull
	line	57
	colm	7
	synt	any
	pret
lab L17
	synt	any
	pfail
	unmark
lab L2
	einit	L1
lab L3
	mark	L18
	pnull
	var	9
	int	3
	line	59
	colm	6
	synt	any
	asgn
	unmark
lab L18
	mark	L19
	pnull
	var	10
	int	3
	line	60
	colm	7
	synt	any
	asgn
	unmark
lab L19
	mark	L20
	line	61
	colm	4
	synt	every
	mark0
	pnull
	var	2
	pnull
	int	4
	var	4
	push1
	line	61
	colm	17
	synt	any
	toby
	line	61
	colm	12
	synt	any
	asgn
	pop
	mark0
	var	15
	var	1
	pnull
	var	2
	var	12
	line	61
	colm	42
	synt	any
	mult
	line	61
	colm	36
	synt	any
	invoke	2
	unmark
lab L21
	efail
lab L22
	line	61
	colm	4
	synt	endevery
	unmark
lab L20
	mark	L23
	var	13
	var	5
	invoke	-1
	unmark
lab L23
	mark	L24
	var	13
	var	7
	invoke	-1
	unmark
lab L24
	mark	L25
	var	14
	var	8
	invoke	-1
	unmark
lab L25
	pnull
	line	65
	colm	1
	synt	any
	pfail
	end
proc evencol
	local	0,001000,w
	local	1,001000,x
	local	2,000020,i
	local	3,000000,drawesegs
	local	4,000000,list
	local	5,000000,numrows
	local	6,000000,q
	local	7,000000,parthex
	local	8,000000,scale4
	local	9,000000,scale2
	local	10,000000,DrawSegment
	local	11,000000,reparthex
	con	0,002000,1,8
	con	1,002000,1,1
	con	2,002000,1,2
	con	3,002000,1,0
	declend
	line	67
	colm	11
	synt	any
lab L1
	init	L3
	mark	L2
	mark	L4
	pnull
	var	3
	var	4
	pnull
	pnull
	var	5
	int	0
	line	70
	colm	32
	synt	any
	mult
	int	1
	line	70
	colm	34
	synt	any
	plus
	line	70
	colm	24
	synt	any
	invoke	1
	line	70
	colm	17
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	pnull
	var	3
	int	1
	line	71
	colm	16
	synt	any
	subsc
	var	0
	line	71
	colm	20
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	var	6
	int	2
	line	72
	colm	9
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	line	73
	colm	7
	synt	every
	mark0
	pnull
	var	2
	pnull
	int	3
	pnull
	var	5
	int	1
	line	73
	colm	30
	synt	any
	minus
	push1
	line	73
	colm	20
	synt	any
	toby
	line	73
	colm	15
	synt	any
	asgn
	pop
	mark0
	var	7
	var	1
	pnull
	pnull
	var	2
	var	8
	line	73
	colm	49
	synt	any
	mult
	var	9
	line	73
	colm	58
	synt	any
	plus
	line	73
	colm	43
	synt	any
	invoke	2
	unmark
lab L8
	efail
lab L9
	line	73
	colm	7
	synt	endevery
	unmark
lab L7
	mark	L10
	var	10
	var	3
	invoke	-1
	unmark
lab L10
	mark	L11
	pnull
	line	75
	colm	7
	synt	any
	pret
lab L11
	synt	any
	pfail
	unmark
lab L2
	einit	L1
lab L3
	mark	L12
	pnull
	var	6
	int	2
	line	77
	colm	6
	synt	any
	asgn
	unmark
lab L12
	mark	L13
	line	78
	colm	4
	synt	every
	mark0
	pnull
	var	2
	pnull
	int	3
	pnull
	var	5
	int	1
	line	78
	colm	27
	synt	any
	minus
	push1
	line	78
	colm	17
	synt	any
	toby
	line	78
	colm	12
	synt	any
	asgn
	pop
	mark0
	var	11
	var	1
	pnull
	pnull
	var	2
	var	8
	line	78
	colm	48
	synt	any
	mult
	var	9
	line	78
	colm	57
	synt	any
	plus
	line	78
	colm	42
	synt	any
	invoke	2
	unmark
lab L14
	efail
lab L15
	line	78
	colm	4
	synt	endevery
	unmark
lab L13
	mark	L16
	var	10
	var	3
	invoke	-1
	unmark
lab L16
	pnull
	line	80
	colm	1
	synt	any
	pfail
	end
proc parthex
	local	0,001000,x
	local	1,001000,y
	local	2,000020,y4
	local	3,000000,scale4
	local	4,000000,drawesegs
	local	5,000000,q
	local	6,000000,reparthex
	con	0,002000,1,1
	con	1,002000,1,3
	con	2,002000,1,5
	con	3,002000,1,7
	declend
	line	82
	colm	11
	synt	any
	mark	L1
	pnull
	var	2
	pnull
	var	1
	var	3
	line	84
	colm	12
	synt	any
	plus
	line	84
	colm	7
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	pnull
	var	4
	pnull
	var	5
	int	0
	line	85
	colm	15
	synt	any
	plus
	line	85
	colm	13
	synt	any
	subsc
	var	2
	line	85
	colm	19
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	pnull
	var	4
	pnull
	var	5
	int	1
	line	86
	colm	15
	synt	any
	plus
	line	86
	colm	13
	synt	any
	subsc
	var	2
	line	86
	colm	19
	synt	any
	asgn
	unmark
lab L3
	mark	L4
	pnull
	pnull
	var	4
	pnull
	var	5
	int	2
	line	87
	colm	15
	synt	any
	plus
	line	87
	colm	13
	synt	any
	subsc
	var	1
	line	87
	colm	19
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	pnull
	var	4
	pnull
	var	5
	int	3
	line	88
	colm	15
	synt	any
	plus
	line	88
	colm	13
	synt	any
	subsc
	var	1
	line	88
	colm	19
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	var	6
	var	0
	var	1
	line	89
	colm	13
	synt	any
	invoke	2
	unmark
lab L6
	pnull
	line	90
	colm	1
	synt	any
	pfail
	end
proc reparthex
	local	0,001000,x
	local	1,001000,y
	local	2,000020,x1
	local	3,000020,x4
	local	4,000000,scale
	local	5,000000,scale4
	local	6,000000,drawesegs
	local	7,000000,q
	con	0,002000,1,2
	con	1,002000,1,4
	con	2,002000,1,6
	con	3,002000,1,8
	declend
	line	91
	colm	11
	synt	any
	mark	L1
	pnull
	var	2
	pnull
	var	0
	var	4
	line	93
	colm	12
	synt	any
	plus
	line	93
	colm	7
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	3
	pnull
	var	0
	var	5
	line	94
	colm	12
	synt	any
	plus
	line	94
	colm	7
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	pnull
	var	6
	var	7
	line	95
	colm	13
	synt	any
	subsc
	var	2
	line	95
	colm	19
	synt	any
	asgn
	unmark
lab L3
	mark	L4
	pnull
	pnull
	var	6
	pnull
	var	7
	int	0
	line	96
	colm	15
	synt	any
	plus
	line	96
	colm	13
	synt	any
	subsc
	var	3
	line	96
	colm	19
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	pnull
	var	6
	pnull
	var	7
	int	1
	line	97
	colm	15
	synt	any
	plus
	line	97
	colm	13
	synt	any
	subsc
	var	2
	line	97
	colm	19
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	pnull
	var	6
	pnull
	var	7
	int	2
	line	98
	colm	15
	synt	any
	plus
	line	98
	colm	13
	synt	any
	subsc
	var	3
	line	98
	colm	19
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	var	7
	dup
	int	3
	line	99
	colm	6
	synt	any
	plus
	asgn
	unmark
lab L7
	pnull
	line	100
	colm	1
	synt	any
	pfail
	end
proc hex
	local	0,001000,x
	local	1,001000,y
	local	2,000020,y2
	local	3,000020,y4
	local	4,000000,scale2
	local	5,000000,scale4
	local	6,000000,drawlefts
	local	7,000000,qq
	local	8,000000,drawrights
	local	9,000000,drawsegs
	local	10,000000,q
	local	11,000000,rehex
	con	0,002000,1,1
	con	1,002000,1,3
	con	2,002000,1,5
	con	3,002000,1,7
	declend
	line	101
	colm	11
	synt	any
	mark	L1
	pnull
	var	2
	pnull
	var	1
	var	4
	line	103
	colm	12
	synt	any
	plus
	line	103
	colm	7
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	3
	pnull
	var	1
	var	5
	line	104
	colm	12
	synt	any
	plus
	line	104
	colm	7
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	pnull
	var	6
	pnull
	var	7
	int	0
	line	105
	colm	16
	synt	any
	plus
	line	105
	colm	13
	synt	any
	subsc
	var	1
	line	105
	colm	20
	synt	any
	asgn
	unmark
lab L3
	mark	L4
	pnull
	pnull
	var	6
	pnull
	var	7
	int	1
	line	106
	colm	16
	synt	any
	plus
	line	106
	colm	13
	synt	any
	subsc
	var	2
	line	106
	colm	20
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	pnull
	var	6
	pnull
	var	7
	int	2
	line	107
	colm	16
	synt	any
	plus
	line	107
	colm	13
	synt	any
	subsc
	var	3
	line	107
	colm	20
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	pnull
	var	8
	pnull
	var	7
	int	0
	line	108
	colm	17
	synt	any
	plus
	line	108
	colm	14
	synt	any
	subsc
	var	1
	line	108
	colm	21
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	pnull
	var	8
	pnull
	var	7
	int	1
	line	109
	colm	17
	synt	any
	plus
	line	109
	colm	14
	synt	any
	subsc
	var	2
	line	109
	colm	21
	synt	any
	asgn
	unmark
lab L7
	mark	L8
	pnull
	pnull
	var	8
	pnull
	var	7
	int	2
	line	110
	colm	17
	synt	any
	plus
	line	110
	colm	14
	synt	any
	subsc
	var	3
	line	110
	colm	21
	synt	any
	asgn
	unmark
lab L8
	mark	L9
	pnull
	pnull
	var	9
	pnull
	var	10
	int	0
	line	111
	colm	14
	synt	any
	plus
	line	111
	colm	12
	synt	any
	subsc
	var	3
	line	111
	colm	18
	synt	any
	asgn
	unmark
lab L9
	mark	L10
	pnull
	pnull
	var	9
	pnull
	var	10
	int	1
	line	112
	colm	14
	synt	any
	plus
	line	112
	colm	12
	synt	any
	subsc
	var	3
	line	112
	colm	18
	synt	any
	asgn
	unmark
lab L10
	mark	L11
	pnull
	pnull
	var	9
	pnull
	var	10
	int	2
	line	113
	colm	14
	synt	any
	plus
	line	113
	colm	12
	synt	any
	subsc
	var	1
	line	113
	colm	18
	synt	any
	asgn
	unmark
lab L11
	mark	L12
	pnull
	pnull
	var	9
	pnull
	var	10
	int	3
	line	114
	colm	14
	synt	any
	plus
	line	114
	colm	12
	synt	any
	subsc
	var	1
	line	114
	colm	18
	synt	any
	asgn
	unmark
lab L12
	mark	L13
	var	11
	var	0
	var	1
	line	115
	colm	9
	synt	any
	invoke	2
	unmark
lab L13
	pnull
	line	116
	colm	1
	synt	any
	pfail
	end
proc rehex
	local	0,001000,x
	local	1,001000,y
	local	2,000020,x1
	local	3,000020,x4
	local	4,000000,scale
	local	5,000000,scale4
	local	6,000000,drawlefts
	local	7,000000,qq
	local	8,000000,drawrights
	local	9,000000,scale5
	local	10,000000,drawsegs
	local	11,000000,q
	con	0,002000,1,2
	con	1,002000,1,4
	con	2,002000,1,6
	con	3,002000,1,8
	declend
	line	117
	colm	11
	synt	any
	mark	L1
	pnull
	var	2
	pnull
	var	0
	var	4
	line	119
	colm	12
	synt	any
	plus
	line	119
	colm	7
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	3
	pnull
	var	0
	var	5
	line	120
	colm	12
	synt	any
	plus
	line	120
	colm	7
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	pnull
	var	6
	var	7
	line	121
	colm	13
	synt	any
	subsc
	var	2
	line	121
	colm	18
	synt	any
	asgn
	unmark
lab L3
	mark	L4
	pnull
	pnull
	var	6
	pnull
	var	7
	int	0
	line	122
	colm	16
	synt	any
	plus
	line	122
	colm	13
	synt	any
	subsc
	var	0
	line	122
	colm	20
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	pnull
	var	6
	pnull
	var	7
	int	1
	line	123
	colm	16
	synt	any
	plus
	line	123
	colm	13
	synt	any
	subsc
	var	2
	line	123
	colm	20
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	pnull
	var	8
	var	7
	line	124
	colm	14
	synt	any
	subsc
	var	3
	line	124
	colm	19
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	pnull
	var	8
	pnull
	var	7
	int	0
	line	125
	colm	17
	synt	any
	plus
	line	125
	colm	14
	synt	any
	subsc
	pnull
	var	0
	var	9
	line	125
	colm	25
	synt	any
	plus
	line	125
	colm	21
	synt	any
	asgn
	unmark
lab L7
	mark	L8
	pnull
	pnull
	var	8
	pnull
	var	7
	int	1
	line	126
	colm	17
	synt	any
	plus
	line	126
	colm	14
	synt	any
	subsc
	var	3
	line	126
	colm	21
	synt	any
	asgn
	unmark
lab L8
	mark	L9
	pnull
	pnull
	var	10
	var	11
	line	127
	colm	12
	synt	any
	subsc
	var	2
	line	127
	colm	16
	synt	any
	asgn
	unmark
lab L9
	mark	L10
	pnull
	pnull
	var	10
	pnull
	var	11
	int	0
	line	128
	colm	14
	synt	any
	plus
	line	128
	colm	12
	synt	any
	subsc
	var	3
	line	128
	colm	18
	synt	any
	asgn
	unmark
lab L10
	mark	L11
	pnull
	pnull
	var	10
	pnull
	var	11
	int	1
	line	129
	colm	14
	synt	any
	plus
	line	129
	colm	12
	synt	any
	subsc
	var	2
	line	129
	colm	18
	synt	any
	asgn
	unmark
lab L11
	mark	L12
	pnull
	pnull
	var	10
	pnull
	var	11
	int	2
	line	130
	colm	14
	synt	any
	plus
	line	130
	colm	12
	synt	any
	subsc
	var	3
	line	130
	colm	18
	synt	any
	asgn
	unmark
lab L12
	mark	L13
	pnull
	var	11
	dup
	int	3
	line	131
	colm	6
	synt	any
	plus
	asgn
	unmark
lab L13
	mark	L14
	pnull
	var	7
	dup
	int	2
	line	132
	colm	7
	synt	any
	plus
	asgn
	unmark
lab L14
	pnull
	line	133
	colm	1
	synt	any
	pfail
	end
proc hex_spot
	local	0,001000,w
	local	1,001000,row
	local	2,001000,col
	local	3,000020,x
	local	4,000020,y
	local	5,000020,x1
	local	6,000020,x4
	local	7,000020,x5
	local	8,000020,y2
	local	9,000020,y4
	local	10,000000,scale4
	local	11,000000,scale2
	local	12,000000,scale
	local	13,000000,scale5
	local	14,000000,FillPolygon
	local	15,000000,DrawLine
	local	16,000000,wHexOutline
	con	0,002000,1,1
	con	1,002000,1,2
	con	2,002000,1,0
	declend
	line	135
	colm	11
	synt	any
	mark	L1
	pnull
	var	3
	pnull
	pnull
	var	2
	int	0
	line	137
	colm	13
	synt	any
	minus
	var	10
	line	137
	colm	16
	synt	any
	mult
	line	137
	colm	6
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	4
	pnull
	pnull
	var	1
	int	0
	line	138
	colm	13
	synt	any
	minus
	var	10
	line	138
	colm	16
	synt	any
	mult
	line	138
	colm	6
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	line	139
	colm	4
	synt	if
	mark0
	pnull
	pnull
	var	2
	int	1
	line	139
	colm	11
	synt	any
	mod
	int	2
	line	139
	colm	15
	synt	any
	numeq
	unmark
	pnull
	var	4
	dup
	var	11
	line	139
	colm	26
	synt	any
	plus
	asgn
	line	139
	colm	4
	synt	endif
	unmark
lab L3
	mark	L4
	pnull
	var	5
	pnull
	var	3
	var	12
	line	140
	colm	12
	synt	any
	plus
	line	140
	colm	7
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	var	6
	pnull
	var	3
	var	10
	line	141
	colm	12
	synt	any
	plus
	line	141
	colm	7
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	var	7
	pnull
	var	3
	var	13
	line	142
	colm	12
	synt	any
	plus
	line	142
	colm	7
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	var	8
	pnull
	var	4
	var	11
	line	143
	colm	12
	synt	any
	plus
	line	143
	colm	7
	synt	any
	asgn
	unmark
lab L7
	mark	L8
	pnull
	var	9
	pnull
	var	4
	var	10
	line	144
	colm	12
	synt	any
	plus
	line	144
	colm	7
	synt	any
	asgn
	unmark
lab L8
	mark	L9
	var	14
	var	0
	var	5
	var	4
	var	3
	var	8
	var	5
	var	9
	var	6
	var	9
	var	7
	var	8
	var	6
	var	4
	line	145
	colm	15
	synt	any
	invoke	13
	unmark
lab L9
	mark	L10
	var	15
	var	16
	var	5
	var	4
	var	3
	var	8
	var	5
	var	9
	var	6
	var	9
	var	7
	var	8
	var	6
	var	4
	var	5
	var	4
	line	146
	colm	12
	synt	any
	invoke	15
	unmark
lab L10
	pnull
	line	147
	colm	1
	synt	any
	pfail
	end
proc hex_outline
	local	0,001000,w
	local	1,001000,row
	local	2,001000,col
	local	3,001000,width
	local	4,000020,x
	local	5,000020,y
	local	6,000020,x1
	local	7,000020,x4
	local	8,000020,x5
	local	9,000020,y2
	local	10,000020,y4
	local	11,000020,i
	local	12,000000,scale4
	local	13,000000,scale2
	local	14,000000,scale
	local	15,000000,scale5
	local	16,000000,DrawLine
	local	17,000000,wHexOutline
	con	0,002000,1,5
	con	1,002000,1,1
	con	2,002000,1,2
	con	3,002000,1,0
	declend
	line	149
	colm	11
	synt	any
	mark	L1
	pnull
	pnull
	var	3
	line	151
	colm	4
	synt	any
	null
	int	0
	line	151
	colm	11
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	4
	pnull
	pnull
	var	2
	int	1
	line	152
	colm	13
	synt	any
	minus
	var	12
	line	152
	colm	16
	synt	any
	mult
	line	152
	colm	6
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	var	5
	pnull
	pnull
	var	1
	int	1
	line	153
	colm	13
	synt	any
	minus
	var	12
	line	153
	colm	16
	synt	any
	mult
	line	153
	colm	6
	synt	any
	asgn
	unmark
lab L3
	mark	L4
	line	154
	colm	4
	synt	if
	mark0
	pnull
	pnull
	var	2
	int	2
	line	154
	colm	11
	synt	any
	mod
	int	3
	line	154
	colm	15
	synt	any
	numeq
	unmark
	pnull
	var	5
	dup
	var	13
	line	154
	colm	26
	synt	any
	plus
	asgn
	line	154
	colm	4
	synt	endif
	unmark
lab L4
	mark	L5
	pnull
	var	6
	pnull
	var	4
	var	14
	line	155
	colm	12
	synt	any
	plus
	line	155
	colm	7
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	var	7
	pnull
	var	4
	var	12
	line	156
	colm	12
	synt	any
	plus
	line	156
	colm	7
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	var	8
	pnull
	var	4
	var	15
	line	157
	colm	12
	synt	any
	plus
	line	157
	colm	7
	synt	any
	asgn
	unmark
lab L7
	mark	L8
	pnull
	var	9
	pnull
	var	5
	var	13
	line	158
	colm	12
	synt	any
	plus
	line	158
	colm	7
	synt	any
	asgn
	unmark
lab L8
	mark	L9
	pnull
	var	10
	pnull
	var	5
	var	12
	line	159
	colm	12
	synt	any
	plus
	line	159
	colm	7
	synt	any
	asgn
	unmark
lab L9
	mark	L10
	line	160
	colm	4
	synt	every
	mark0
	pnull
	var	11
	pnull
	int	1
	var	3
	push1
	line	160
	colm	17
	synt	any
	toby
	line	160
	colm	12
	synt	any
	asgn
	pop
	mark0
	var	16
	var	17
	pnull
	var	6
	var	11
	line	161
	colm	31
	synt	any
	plus
	pnull
	var	5
	var	11
	line	161
	colm	36
	synt	any
	plus
	pnull
	var	4
	var	11
	line	161
	colm	41
	synt	any
	plus
	var	9
	pnull
	var	6
	var	11
	line	161
	colm	51
	synt	any
	plus
	pnull
	var	10
	var	11
	line	161
	colm	57
	synt	any
	minus
	pnull
	var	7
	var	11
	line	161
	colm	63
	synt	any
	minus
	pnull
	var	10
	var	11
	line	161
	colm	69
	synt	any
	minus
	pnull
	var	8
	var	11
	line	161
	colm	75
	synt	any
	minus
	var	9
	pnull
	var	7
	var	11
	line	161
	colm	85
	synt	any
	minus
	pnull
	var	5
	var	11
	line	161
	colm	90
	synt	any
	plus
	pnull
	var	6
	var	11
	line	161
	colm	96
	synt	any
	plus
	pnull
	var	5
	var	11
	line	161
	colm	101
	synt	any
	plus
	line	161
	colm	15
	synt	any
	invoke	15
	unmark
lab L11
	efail
lab L12
	line	160
	colm	4
	synt	endevery
	unmark
lab L10
	mark	L13
	var	16
	var	17
	var	6
	var	5
	var	4
	var	9
	var	6
	var	10
	var	7
	var	10
	var	8
	var	9
	var	7
	var	5
	var	6
	var	5
	line	162
	colm	12
	synt	any
	invoke	15
	unmark
lab L13
	pnull
	line	163
	colm	1
	synt	any
	pfail
	end
proc hex_mouse
	local	0,001000,y
	local	1,001000,x
	local	2,000020,row
	local	3,000020,col
	local	4,000000,scale4
	local	5,000000,scale2
	local	6,000000,ishift
	con	0,002000,1,0
	con	1,002000,1,1
	con	2,002000,1,2
	con	3,002000,2,16
	declend
	line	165
	colm	11
	synt	any
	mark	L1
	line	167
	colm	4
	synt	if
	mark0
	pnull
	pnull
	var	1
	var	4
	line	167
	colm	9
	synt	any
	mod
	int	0
	line	167
	colm	18
	synt	any
	numeq
	unmark
	line	167
	colm	27
	synt	any
	pfail
	line	167
	colm	4
	synt	endif
	unmark
lab L1
	mark	L2
	pnull
	var	3
	pnull
	pnull
	var	1
	var	4
	line	168
	colm	13
	synt	any
	div
	int	1
	line	168
	colm	22
	synt	any
	plus
	line	168
	colm	8
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	line	169
	colm	4
	synt	ifelse
	mark	L4
	pnull
	pnull
	var	3
	int	2
	line	169
	colm	11
	synt	any
	mod
	int	0
	line	169
	colm	15
	synt	any
	numeq
	unmark
	pnull
	var	2
	pnull
	pnull
	pnull
	var	0
	var	5
	line	169
	colm	34
	synt	any
	minus
	var	4
	line	169
	colm	44
	synt	any
	div
	int	1
	line	169
	colm	53
	synt	any
	plus
	line	169
	colm	28
	synt	any
	asgn
	goto	L5
lab L4
	pnull
	var	2
	pnull
	pnull
	var	0
	var	4
	line	170
	colm	18
	synt	any
	div
	int	1
	line	170
	colm	27
	synt	any
	plus
	line	170
	colm	13
	synt	any
	asgn
lab L5
	line	169
	colm	4
	synt	endifelse
	unmark
lab L3
	mark	L6
	mark	L7
	pnull
	var	6
	var	3
	int	3
	line	171
	colm	17
	synt	any
	invoke	2
	var	2
	line	171
	colm	27
	synt	any
	plus
	line	171
	colm	4
	synt	any
	pret
lab L7
	synt	any
	pfail
	unmark
lab L6
	pnull
	line	172
	colm	1
	synt	any
	pfail
	end
