version	U12.1.00
uid	hexcvt.u1-1787877034-0
impl	error
global	2
	0,000005,hex,1
	1,000005,hexstring,3

proc hex
	local	0,001000,s
	local	1,000020,a
	local	2,000020,c
	local	3,000000,map
	local	4,000000,ior
	local	5,000000,find
	local	6,000000,ishift
	con	0,002000,1,0
	con	1,010000,16,060,061,062,063,064,065,066,067,070,071,141,142,143,144,145,146
	con	2,002000,1,1
	con	3,002000,1,4
	declend
	filen	hexcvt.icn
	line	27
	colm	11
	synt	any
	mark	L1
	pnull
	var	1
	int	0
	line	29
	colm	6
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	line	30
	colm	4
	synt	every
	mark0
	pnull
	var	2
	pnull
	var	3
	var	0
	line	30
	colm	19
	synt	any
	invoke	1
	line	30
	colm	15
	synt	any
	bang
	line	30
	colm	12
	synt	any
	asgn
	pop
	mark0
	pnull
	var	1
	mark	L5
	var	4
	pnull
	var	5
	var	2
	str	1
	line	31
	colm	23
	synt	any
	invoke	2
	int	2
	line	31
	colm	46
	synt	any
	minus
	var	6
	var	1
	int	3
	line	31
	colm	56
	synt	any
	invoke	2
	line	31
	colm	18
	synt	any
	invoke	2
	line	31
	colm	63
	synt	any
	esusp
	goto	L6
lab L5
	line	31
	colm	65
	synt	any
	pfail
lab L6
	line	31
	colm	12
	synt	any
	asgn
	unmark
lab L3
	efail
lab L4
	line	30
	colm	4
	synt	endevery
	unmark
lab L2
	mark	L7
	mark	L8
	var	1
	line	32
	colm	4
	synt	any
	pret
lab L8
	synt	any
	pfail
	unmark
lab L7
	pnull
	line	33
	colm	1
	synt	any
	pfail
	end
proc hexstring
	local	0,001000,i
	local	1,001000,n
	local	2,001000,lowercase
	local	3,000020,s
	local	4,000020,hexchars
	local	5,000020,sign
	local	6,000000,integer
	local	7,000000,runerr
	local	8,000000,iand
	local	9,000000,ishift
	local	10,000000,right
	con	0,002000,3,101
	con	1,010000,0
	con	2,002000,1,0
	con	3,010000,1,060
	con	4,010000,1,055
	con	5,010000,16,060,061,062,063,064,065,066,067,070,071,141,142,143,144,145,146
	con	6,010000,16,060,061,062,063,064,065,066,067,070,071,101,102,103,104,105,106
	con	7,002000,1,1
	con	8,002000,2,15
	con	9,002000,1,4
	con	10,002000,2,16
	declend
	line	35
	colm	11
	synt	any
	mark	L1
	pnull
	var	0
	mark	L2
	var	6
	var	0
	line	37
	colm	16
	synt	any
	invoke	1
	line	37
	colm	20
	synt	any
	esusp
	goto	L3
lab L2
	var	7
	int	0
	var	0
	line	37
	colm	28
	synt	any
	invoke	2
lab L3
	line	37
	colm	6
	synt	any
	asgn
	unmark
lab L1
	mark	L4
	pnull
	var	5
	str	1
	line	38
	colm	9
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	line	39
	colm	4
	synt	ifelse
	mark	L6
	pnull
	var	0
	int	2
	line	39
	colm	9
	synt	any
	numeq
	unmark
	pnull
	var	3
	str	3
	line	39
	colm	20
	synt	any
	asgn
	goto	L7
lab L6
	mark	L8
	line	41
	colm	7
	synt	if
	mark0
	pnull
	var	1
	line	41
	colm	10
	synt	any
	null
	pop
	pnull
	var	0
	int	2
	line	41
	colm	17
	synt	any
	numlt
	unmark
	mark	L9
	pnull
	var	5
	str	4
	line	42
	colm	15
	synt	any
	asgn
	unmark
lab L9
	pnull
	var	0
	pnull
	var	0
	line	43
	colm	15
	synt	any
	neg
	line	43
	colm	12
	synt	any
	asgn
	line	41
	colm	7
	synt	endif
	unmark
lab L8
	mark	L10
	pnull
	var	4
	line	45
	colm	19
	synt	ifelse
	mark	L11
	pnull
	var	2
	line	45
	colm	22
	synt	any
	nonnull
	unmark
	str	5
	goto	L12
lab L11
	str	6
lab L12
	line	45
	colm	19
	synt	endifelse
	line	45
	colm	16
	synt	any
	asgn
	unmark
lab L10
	mark	L13
	pnull
	var	3
	str	1
	line	46
	colm	9
	synt	any
	asgn
	unmark
lab L13
lab L14
	line	47
	colm	7
	synt	until
	mark	L15
	pnull
	var	0
	mark	L18
	int	2
	line	47
	colm	20
	synt	any
	esusp
	goto	L19
lab L18
	pnull
	int	7
	line	47
	colm	22
	synt	any
	neg
lab L19
	line	47
	colm	15
	synt	any
	numeq
	unmark
	efail
lab L15
	mark	L14
	mark	L20
	pnull
	var	3
	pnull
	pnull
	var	4
	pnull
	var	8
	var	0
	int	8
	line	48
	colm	28
	synt	any
	invoke	2
	int	7
	line	48
	colm	35
	synt	any
	plus
	line	48
	colm	23
	synt	any
	subsc
	var	3
	line	48
	colm	40
	synt	any
	cat
	line	48
	colm	12
	synt	any
	asgn
	unmark
lab L20
	pnull
	var	0
	var	9
	var	0
	pnull
	int	9
	line	49
	colm	24
	synt	any
	neg
	line	49
	colm	21
	synt	any
	invoke	2
	line	49
	colm	12
	synt	any
	asgn
lab L16
	unmark
	goto	L14
lab L17
	line	47
	colm	7
	synt	enduntil
lab L7
	line	39
	colm	4
	synt	endifelse
	unmark
lab L5
	mark	L21
	line	52
	colm	4
	synt	if
	mark0
	pnull
	pnull
	var	1
	line	52
	colm	7
	synt	any
	nonnull
	pnull
	var	3
	line	52
	colm	12
	synt	any
	size
	line	52
	colm	10
	synt	any
	numgt
	unmark
	pnull
	var	3
	var	10
	var	3
	var	1
	line	52
	colm	35
	synt	ifelse
	mark	L22
	pnull
	var	0
	int	2
	line	52
	colm	40
	synt	any
	numge
	unmark
	str	3
	goto	L23
lab L22
	pnull
	var	4
	int	10
	line	52
	colm	67
	synt	any
	subsc
lab L23
	line	52
	colm	35
	synt	endifelse
	line	52
	colm	30
	synt	any
	invoke	3
	line	52
	colm	22
	synt	any
	asgn
	line	52
	colm	4
	synt	endif
	unmark
lab L21
	mark	L24
	mark	L25
	pnull
	var	5
	var	3
	line	53
	colm	16
	synt	any
	cat
	line	53
	colm	4
	synt	any
	pret
lab L25
	synt	any
	pfail
	unmark
lab L24
	pnull
	line	54
	colm	1
	synt	any
	pfail
	end
