source/page79/initial.asm
author brandonlw
Thu, 15 May 2014 05:23:44 -0400
changeset 39 4651e87022c7
parent 38 a4c5f839b738
child 41 9ef17625274f
permissions -rw-r--r--
Fix flag.

Random:
		ld		de, seed1
		call	p79sub_4074
		ld		de, seed1
		call	MovFrOP1
		ld		hl, p79loc_40F3
		ld		de, seed2
		call	p79sub_4077
		ld		de, seed2
		call	MovFrOP1
		ld		hl, seed1
		call	Mov9ToOP2
		call	InvSub
		call	OP2Set1
		call	cpop1op2
		jr		nc, p79loc_4037
		ld		hl, p79loc_40EA
		call	Mov9ToOP2
		ld		hl, 8489h
		dec		(hl)
		rst		30h

p79loc_4037:
		ld		hl, p79loc_410B
		jp		page0_D19
; ---------------------------------------------------------------------------

StoRand:
		call	CkOP1Real
		jp		nz, ErrDataType
		call	OP1ToOP6
		ld		hl, 8479h
		ld		a, 88h ; '�'
		cp		(hl)
		jr		nc, p79loc_404F
		ld		(hl), a

p79loc_404F:
		call	ClrOP1S
		call	Trunc
		call	CkOP1FP0
		jr		z, p79loc_406E
		ld		de, seed2
		call	MovFrOP1
		ld		de, seed2
		call	p79sub_4074
		ld		de, seed1
		call	MovFrOP1
		jr		p79loc_4071
; ---------------------------------------------------------------------------

p79loc_406E:
		call	RandInit

p79loc_4071:
		jp		OP6ToOP1


p79sub_4074:
		ld		hl, p79loc_40DB

p79sub_4077:
		push	de
		call	p79sub_40CD
		pop		hl
		push	de
		push	hl
		rst		20h
		call	fpdiv
		call	OP2ToOP5
		call	Trunc
		call	OP1ToOP4
		call	OP5ToOP2
		call	FPMult
		pop		hl
		call	Mov9ToOP2
		call	InvSub
		pop		hl
		call	p79sub_40CD
		push	de
		call	FPMult
		call	OP1ToOP5
		call	OP4ToOP1
		pop		hl
		call	p79sub_40CD
		push	de
		call	FPMult
		call	OP5ToOP2
		call	InvSub
		pop		hl
		call	CkOP1FP0
		jr		z, p79loc_40BE
		call	CkOP1Pos
		ret		z

p79loc_40BE:
		jp		page0_BEC
; End of function p79sub_4077


; =============== S U B	R O U T	I N E =======================================


RandInit:

		ld		hl, p79loc_4114
		ld		de, seed1
		ld		bc, 12h
		ldir
		ret

; =============== S U B	R O U T	I N E =======================================
p79sub_40CD:
		ld		de, OP2
		ld		bc, 5
		ldir
		ex		de, hl
		ld		b, 4
		jp		ClrLp
; End of function p79sub_40CD

p79loc_40DB:
		.db		0
		.db		84h	; �
		.db		53h	; S
		.db		66h	; f
		.db		80h	; �
		.db		0
		.db		84h	; �
		.db		40h	; @
		.db		01h
		.db		40h	; @
		.db		0
		.db		84h	; �
		.db		12h
		.db		21h	; !
		.db		10h
p79loc_40EA:
		.db		0
		.db		89h	; 	
		.db		21h	; !
		.db		47h	; G
		.db		48h	; H
		.db		35h	; 5
		.db		63h	; c
		.db		00h
		.db		00h
p79loc_40F3:
		.db		0
		.db		84h	; �
		.db		52h	; R
		.db		77h	; w
		.db		40h	; @
		.db		0
		.db		84h	; �
		.db		40h	; @
		.db		69h	; i
		.db		20h
		.db		0
		.db		83h	; �
		.db		37h	; 7
		.db		91h	; �
		.db		00h
		.db		0
		.db		89h	; 	
		.db		21h	; !
		.db		47h	; G
		.db		48h	; H
		.db		33h	; 3
		.db		99h	; �
		.db		00h
		.db		00h
p79loc_410B:
		.db		0
		.db		76h	; v
		.db		46h	; F
		.db		56h	; V
		.db		61h	; a
		.db		30h	; 0
		.db		59h	; Y
		.db		55h	; U
		.db		50h	; P
p79loc_4114:
		.db		0
		.db		84h	; �
		.db		12h
		.db		34h	; 4
		.db		50h	; P
		.db		00h
		.db		00h
		.db		00h
		.db		00h
		.db		0
		.db		84h	; �
		.db		67h	; g
		.db		89h	; 	
		.db		00h
		.db		00h
		.db		00h
		.db		00h
		.db		00h

; =============== S U B	R O U T	I N E =======================================


resetStacks:
		ld		hl, (OPBase)
		ld		(OPS), hl
		ld		hl, (fpBase)
		ld		(FPS), hl
		ld		hl, (onSP)
		ld		(errSP), hl
		ret
; End of function resetStacks

; ---------------------------------------------------------------------------

Factorial:
		call	j_RndGuard
		call	OP3Set1
		call	CkOP1Pos
		jr		nz, p79loc_416A
		call	CkOP1FP0
		jp		z, OP1Set1
		call	OP1ToOP3

p79loc_414D:
		call	Minus1
		call	CkOP1FP0
		jp		z, OP3ToOP1
		call	CkOP1Pos
		jr		nz, p79loc_416A
		rst		8
		call	OP3ToOP1
		call	FPMult
		call	OP1ToOP3
		call	OP2ToOP1
		jr		p79loc_414D
; ---------------------------------------------------------------------------

p79loc_416A:
		ld		hl, page0_FC3
		call	Mov9ToOP2
		call	InvOP2S
		call	cpop1op2
		jp		nz, ErrDomain
		ld		hl, p79loc_4184
		rst		20h
		call	BCALL_4120
		call	FPMult
		ret
p79loc_4184:
		.db		0
		.db		80h	; �
		.db		17h
		.db		72h	; r
		.db		45h	; E
		.db		38h	; 8
		.db		50h	; P
		.db		90h	; �
		.db		56h	; V

; =============== S U B	R O U T	I N E =======================================


p79sub_418D:
		ld		a, 0
		ld		b, 16h
		ld		hl, y1LineType
		call	p79sub_419B
		ld		a, 6
		ld		b, 3
; End of function p79sub_418D


; =============== S U B	R O U T	I N E =======================================


p79sub_419B:
		ld		(hl), a
		inc		hl
		djnz	p79sub_419B
		ret
; End of function p79sub_419B

; ---------------------------------------------------------------------------

Page79_3EBB:
		call	SetFastSpeed
		call	NZIf83Plus
		jr		z, p79loc_41B7
		ld		b, 0
		rst		28h
; ---------------------------------------------------------------------------
		.dw		80BAh
; ---------------------------------------------------------------------------
		bit		0, b
		ld		a, 1Fh
		jr		z, p79loc_41B9
		ld		a, 1Ch
		jr		p79loc_41B9
; ---------------------------------------------------------------------------

p79loc_41B7:
		ld		a, 17h

p79loc_41B9:
		ld		(contrast), a
		call	j_LCD_DRIVERON
		set		onRunning, (iy+onFlags)
		call	ApdSetup
		set		apdAble, (iy+apdFlags)
		set		fmtReal, (iy+numMode)
		set		appTextSave, (iy+appFlags)
		ld		a, 0FFh
		ld		(fmtDigits), a
		call	p79sub_42B3
		call	GetScanCode
		jr		c, p79loc_41EA
		jr		z, p79loc_41EA
		cp		0Fh
		jr		nz, p79loc_41EA
		call	Page0Call_3EE5
		jr		p79loc_41F1
; ---------------------------------------------------------------------------

p79loc_41EA:
		xor		a
		call	Page0Call_3EE5
		call	Page0Call_2D45

p79loc_41F1:
		call	p79sub_44C6
		xor		a
		ld		(unk_92CA), a
		ld		(unk_92DB), a
		ld		(unk_92EC), a
		inc		a
		ld		(unk_92CF), a
		ld		(unk_92E0), a
		ld		(unk_92F1), a
		ld		a, 31h ; '1'
		ld		(unk_92D4), a
		ld		(unk_92E5), a
		ld		(unk_92F6), a
		call	p79sub_418D
		call	OP1Set0
		call	j_StoN
		ld		b, 0Ah

p79loc_421E:
		push	bc
		ld		a, b
		call	Page79_3363
		call	Create0Equ
		pop		af
		push	af
		cp		7
		jr		nc, p79loc_4242
		call	p79sub_698E
		call	Create0Equ
		pop		af
		push	af
		call	p79sub_6985
		call	Create0Equ
		pop		af
		push	af
		call	p79sub_69A9
		call	Create0Equ

p79loc_4242:
		pop		af
		push	af
		cp		4
		jr		nc, p79loc_424E
		call	serrort
		call	Create0Equ

p79loc_424E:
		pop		bc
		djnz	p79loc_421E
		ld		hl, 9320h
		set		0, (hl)
		ld		hl, 932Bh
		set		5, (hl)
		ld		a, 1
		ld		(unk_91D9), a
		call	OP1Set0
		call	j_StoAns
		ld		de, TblMin
		call	MovFrOP1
		ld		a, 10h
		ld		(OP1M), a
		call	MovFrOP1
		ld		de, fin_PY
		call	MovFrOP1
		call	MovFrOP1
		ld		hl, lastEntryStk
		ld		(lastEntryPTR), hl
		call	j_GRReset
		call	Page0Call_2D63
		call	Page0Call_346B
		call	RandInit

p79loc_428F:
		in		a, (4)
		and		8
		jr		z, p79loc_428F
		res		onInterrupt, (iy+onFlags)
		ld		a, 0Bh
		out		(3), a
		call	j_LCD_DRIVERON
		res		secondTimerEnabled, (iy+interruptFlags)
		set		batteriesGood, (iy+batteryFlags)
		ei
		ld		hl, 800h
		ld		(winTop), hl
		call	j_ClrScrn
		ret

; =============== S U B	R O U T	I N E =======================================


p79sub_42B3:
		ld		hl, userMem
		ld		(tempMem), hl
		ld		(fpBase), hl
		ld		(FPS), hl
		ld		(newDataPtr), hl
		ld		hl, symTable
		ld		(unk_982E), hl
		ld		(OPBase), hl
		ld		(OPS), hl
		ld		(progPtr), hl
		ld		hl, lcdTallP
		ld		(hl), 40h ; '@'
		inc		hl
		ld		(hl), 60h ; '`'
		inc		hl
		ld		(hl), 5Fh ; '_'
		inc		hl
		ld		(hl), 5Eh ; '^'
		ret
; End of function p79sub_42B3


; =============== S U B	R O U T	I N E =======================================


Page79_3ED9:
		call	PreviousContext_CloseAnyOpenMenu
		call	j_ClrScrn
		res		onInterrupt, (iy+onFlags)
		set		onRunning, (iy+onFlags)
		call	ApdSetup
		set		apdAble, (iy+apdFlags)
		set		fmtReal, (iy+numMode)
		set		appTextSave, (iy+appFlags)
		ret

CheckForNoBatteries:
		ld		a, 76h
		out		(4), a
		bit		batteriesGood, (iy+batteryFlags)
		ret		nz
;HACK: This is a hard-coded method of returning back to caller from page 0 routine.
		pop		hl
		pop		hl
#ifndef DEVIATE_FROM_ORIGINAL_FILE
;I don't know why we'd want to save this, doesn't appear to be checked anywhere.
		ld		(noBatterySP), sp
#endif
		call	lcd_busy
		ld		a, 2
		out		(10h), a
		res		secondTimerEnabled, (iy+interruptFlags)
		ld		hl, 0A55Ah ;special checksum value to indicate low battery condition (so don't reset RAM)
		ld		(RAMChecksum), hl
		ld		a, 1
		out		(3), a
		res		shift2nd, (iy+shiftFlags)
		res		onRunning, (iy+onFlags)
		res		checkNoBatteriesNextTime, (iy+batteryFlags2)
		ld		a, 36h
		out		(4), a
		xor		a
		out		(7), a
		ei
-:		halt
		jr		{-}

Page79_2D4B:
		call	j_ClrLCD
		call	j_HomeUp
		call	j_newline
		call	j_newline
		res		appTextSave, (iy+appFlags)
		bit		localizeHookActive, (iy+hookflags3)
		jr		z, p79loc_4359
		ld		a, 40h ; '@'
		call	j_call_character_hook
		set		appTextSave, (iy+appFlags)
		ret		z

p79loc_4359:
		ld		hl, p79loc_443C
		call	p79sub_43FE
		call	j_newline
		ld		hl, p79loc_444B
		call	p79sub_43FE
		call	j_newline
		ld		hl, p79loc_4473
		call	p79sub_43FE
		call	j_newline
		ld		hl, p79loc_447D
		call	p79sub_43FE
		call	j_newline
		ret
; ---------------------------------------------------------------------------

Page79_3EDF:
		call	IsEditEmpty
		jr		nz, p79loc_438C
		call	j_ClrWindow
		res		AnsScroll, (iy+ansFlags)
		jr		p79loc_4392
; ---------------------------------------------------------------------------

p79loc_438C:
		call	j_DispHead
		call	j_EraseEOW2

p79loc_4392:
		call	j_BufClear
		set		cmdVirgin, (iy+cmdFlags)
		res		appTextSave, (iy+appFlags)
		bit		localizeHookActive, (iy+hookflags3)
		jr		z, p79loc_43AA
		ld		a, 41h ; 'A'
		call	j_call_character_hook
		jr		z, p79loc_43D3

p79loc_43AA:
		ld		hl, p79loc_443C
		ld		de, 1
		call	p79sub_43FA
		ld		de, 2
		call	p79sub_43FA
		ld		de, 4
		call	p79sub_43FA
		ld		de, 5
		call	p79sub_43FA
		ld		de, 6
; START	OF FUNCTION CHUNK FOR p79sub_4516

p79loc_43C8:
		; p79sub_4516-11Ej
		ld		(curRow), de
		res		appTextSave, (iy+appFlags)
		call	p79sub_43FE

p79loc_43D3:
		set		appTextSave, (iy+appFlags)
		call	j_HomeUp
		call	j_CursorOn
		jp		page0_A26
; END OF FUNCTION CHUNK	FOR p79sub_4516
; ---------------------------------------------------------------------------

Page79_3ECD:
		ld		hl, p79loc_4417
		ld		a, 42h ; 'B'
		jr		p79loc_43EC
; ---------------------------------------------------------------------------

Page79_3EC7:
		ld		hl, p79loc_4423
		ld		a, 43h ; 'C'
; START	OF FUNCTION CHUNK FOR p79sub_4516

p79loc_43EC:
		bit		localizeHookActive, (iy+hookflags3)
		call	nz, j_call_character_hook
		jr		nz, p79loc_43C8
		ld		de, 205h
		jr		p79loc_43C8
; END OF FUNCTION CHUNK	FOR p79sub_4516

; =============== S U B	R O U T	I N E =======================================


p79sub_43FA:
		ld		(curRow), de
; End of function p79sub_43FA


; =============== S U B	R O U T	I N E =======================================


p79sub_43FE:
		push	bc
		push	af
		ld		a, (winTop+1)
		ld		b, a

p79loc_4404:
		ld		a, (hl)
		inc		hl
		or		a
		scf
		jr		z, p79loc_4413
		call	j_PutC
		ld		a, (curRow)
		cp		b
		jr		c, p79loc_4404

p79loc_4413:
		pop		bc
		ld		a, b
		pop		bc
		ret
; End of function p79sub_43FE

p79loc_4417:
aMemCleared:	.asc 'Mem cleared',0
p79loc_4423:
aRamCleared:	.asc 'RAM cleared',0
p79loc_442F:
aDefaultsSet:	.asc 'Defaults set',0
p79loc_443C:
aYourBatteries:	.asc 'Your batteries',0
p79loc_444B:
aAreLow_:	.asc 'are low.',0
aRecommend:	.asc 'Recommend',0
aChangeOf:	.asc 'change of',0
aBatteries_:	.asc 'batteries.',0
p79loc_4473:
aChangeIs:	.asc 'change is',0
p79loc_447D:
aRequired_:	.asc 'required.',0
; ---------------------------------------------------------------------------

Page79_3F57:
		cp		44h ; 'D'
		jr		z, p79loc_449B
		cp		52h ; 'R'
		ret		z

; =============== S U B	R O U T	I N E =======================================


p79sub_448E:
		res		3, (iy+15h)
		res		4, (iy+15h)
		res		0, (iy+1Eh)
		ret
; End of function p79sub_448E

; ---------------------------------------------------------------------------

p79loc_449B:
		call	CheckSplitFlag
		jr		z, p79sub_448E
		ld		b, a
		ld		a, (mcxCurApp)
		cp		44h ; 'D'
		ret		z
		call	p79sub_448E
		cp		43h ; 'C'
		jr		nz, p79loc_44B4
		set		3, (iy+15h)
		jr		p79loc_44C4
; ---------------------------------------------------------------------------

p79loc_44B4:
		cp		4Ah ; 'J'
		jr		nz, p79loc_44BC
		set		4, (iy+15h)

p79loc_44BC:
		cp		49h ; 'I'
		jr		nz, p79loc_44C4
		set		0, (iy+1Eh)

p79loc_44C4:
		ld		a, b
		ret

; =============== S U B	R O U T	I N E =======================================


p79sub_44C6:
		ld		a, 7
		ld		(unk_970E), a
		sub		a
		ld		(unk_970F), a
		ld		(unk_9710), a
		call	ZeroOP1
		ld		de, listName1

p79loc_44D8:
		ld		hl, OP1
		cp		6
		jr		nc, p79loc_44E6
		ld		(hl), a
		call	page0_118B
		inc		a
		jr		p79loc_44D8
; ---------------------------------------------------------------------------

p79loc_44E6:
		ex		de, hl
		ld		(hl), 71h ; 'q'
		call	ZeroOP1
		ld		a, 5Dh ; ']'
		ld		(OP1+1), a

p79loc_44F1:
		ld		a, (OP1M)
		cp		6
		ret		nc
		call	PushOP1
		rst		10h
		jr		c, p79loc_4507
		call	IsBZero
		jr		z, p79loc_450D
		call	Page0Call_321F
		jr		p79loc_450D
; ---------------------------------------------------------------------------

p79loc_4507:
		ld		hl, 0
		call	c, CreateRList

p79loc_450D:
		call	popOP1
		ld		hl, OP1M
		inc		(hl)
		jr		p79loc_44F1
; End of function p79sub_44C6


; =============== S U B	R O U T	I N E =======================================


p79sub_4516:




		call	RandInit
		call	forcecmd
		set		fmtReal, (iy+numMode)
		call	Page79_3ED9
		call	Page0Call_3EC1
		ld		hl, p79loc_442F
		ld		a, 44h ; 'D'
		jp		p79loc_43EC
; End of function p79sub_4516

; ---------------------------------------------------------------------------

Page79_3A59:
		ld		a, (keyExtend)
		cp		1
		jr		z, p79loc_45A7
		cp		2
		jp		z, p79loc_45E5
		cp		3
		jp		z, p79loc_45F3
		cp		4
		jr		z, p79loc_458C
		bit		localizeHookActive, (iy+hookflags3)
		jp		z, resetRam
		ld		hl, (localLanguage)
		push	hl
		bit		catalog2HookActive, (iy+hookflags2)
		push	af
		bit		tokenHookActive, (iy+hookflags3)
		push	af
		di
		ld		hl, ramStart
		ld		de, 8001h
		ld		bc, 1BC3h
		ld		(hl), 0
		ldir
		pop		af
		jr		z, p79loc_456D
		set		tokenHookActive, (iy+hookflags3)

p79loc_456D:
		pop		af
		jr		z, p79loc_4574
		set		catalog2HookActive, (iy+hookflags2)

p79loc_4574:
		set		localizeHookActive, (iy+hookflags3)
		pop		hl
		ld		(localLanguage), hl
		ld		hl, silentLinkHookPtr
		ld		de, 9BD1h
		ld		bc, p79loc_642F
		ld		(hl), 0
		ldir
		jp		page0_9DE
; ---------------------------------------------------------------------------

p79loc_458C:
		call	Chk_Batt_Low
		call	z, Page0Call_2E89
		call	j_ClrScrnFull
		ld		hl, 0
		ld		(curRow), hl
		ld		hl, aResettingAll___
		call	j_PutS
		call	Page0Call_2D33
		jp		page0_9F8
; ---------------------------------------------------------------------------

p79loc_45A7:
		call	Chk_Batt_Low
		call	z, Page0Call_2E89
		call	Page0Call_2D39
		ld		hl, aArcVarsCleared
		ld		a, 55h ; 'U'
		bit		localizeHookActive, (iy+hookflags3)
		call	nz, j_call_character_hook

p79loc_45BC:
		push	hl
		call	Page0Call_2D63
		call	forcecmd
		call	j_ClrScrn
		call	Page0Call_3EC1
		pop		hl
		ld		de, 5
		ld		(curRow), de
		res		appTextSave, (iy+appFlags)
		call	j_PutS
		set		appTextSave, (iy+appFlags)
		call	j_HomeUp
		call	j_CursorOn
		jp		page0_A26
; ---------------------------------------------------------------------------

p79loc_45E5:
		call	Chk_Batt_Low
		call	z, Page0Call_2E89
		call	Page0Call_2D3F
		ld		hl, aAppsCleared
		jr		p79loc_45BC
; ---------------------------------------------------------------------------

p79loc_45F3:
		call	Chk_Batt_Low
		call	z, Page0Call_2E89
		call	Page0Call_2D3F
		call	Page0Call_2D39
		ld		hl, aArcVarsAppsCleared
		jp		p79loc_45BC
; ---------------------------------------------------------------------------

Page79_3A5F:
		call	SetFastSpeed
		res		extraIndic, (iy+newIndicFlags)
		res		6, (iy+24h)
		res		7, (iy+24h)
		res		5, (iy+24h)
		xor		a
		ld		(unk_9C87), a
		push	iy
		ld		iy, flags
		res		indicRun, (iy+indicFlags)
		ld		a, 20h ; ' '
		ld		(iy+0Ah), a
		ld		a, 0FFh
		ld		(fmtDigits), a
		res		trigDeg, (iy+trigFlags)
		res		grfSplit, (iy+sGrFlags)
		res		vertSplit, (iy+sGrFlags)
		ld		a, (iy+4)
		and		80h ; '�'
		ld		(iy+4),	a
		res		grfExpr, (iy+traceFlags)
		res		statDiagnosticsOn, (iy+statFlags2)
		pop		iy
		ld		a, 10h
		ld		b, 4

p79loc_4652:
		push	af
		ld		(iy+2),	a
		ld		a, 4
		call	j_AllEq
		pop		af
		sla	a
		jr		nc, p79loc_4652
		set		grfFuncM, (iy+grfModeFlags)
		ld		b, 0
		call	j_SetAllPlots
		call	p79sub_418D
		call	j_GRReset
		call	j_SetNorm_Vals
		call	Page0Call_2D63
		call	p79sub_4516
		ret
; ---------------------------------------------------------------------------

ITSOLVER:
		call	j_RclX
		call	OP1ToOP6
		ld		hl, Xmin
		rst		20h
		ld		hl, Xmax
		call	Mov9ToOP2
		jr		p79loc_46A6
; ---------------------------------------------------------------------------

GRITSOLVER:
		call	CpyTo2FPS1
		call	CpyO1ToFPS1
		call	j_RclX
		call	OP1ToOP6
		call	XName
		call	CpyTo3FPST
		call	CpyO1ToFPST
		call	OP2ToOP1
		call	BCALL_4120

p79loc_46A6:
		call	p79sub_4E86
		call	j_SAVEPARSE
		call	p79sub_4D75
		push	hl
		jr		p79loc_46DA
; ---------------------------------------------------------------------------

ITSOLVERB:
		call	p79sub_4E86
		call	PopRealO3
		call	j_SAVEPARSE
		call	p79sub_4D75
		push	hl
		call	OP3ToOP1
		rst		10h
		ex		de, hl
		call	p79sub_4D82
		jr		p79loc_46DA
; ---------------------------------------------------------------------------

ITSOLVERNB:
		call	p79sub_4E86
		call	j_SAVEPARSE
		call	p79sub_4D75
		push	hl
		call	page0_FDE
		rst		8
		call	InvOP1S

p79loc_46DA:
		call	CPYO1TOES10
		call	CPYO2TOES9
		call	cpop1op2
		ld		a, 91h ; '�'
		jp		nc, p79loc_4C1B
		pop		af
		ld		(OP3), a
		ld		hl, p79loc_4E7A
		call	pushErrorHandleR
		ld		a, (OP3)
		push	af
		call	CPYTO1ES14
		call	j_SAVEDATA
		call	CPYTO1ES14
		call	page0_16F4
		ld		(unk_9306), de
		call	OP6ToOP1
		call	CkOP1Real
		jr		z, p79loc_4735
		rst		10h
		ex		de, hl
		pop		af
		set		3, a
		push	af
		call	p79sub_4D82
		call	CPYO1TOES5
		call	CPYO2TOES6
		call	cpop1op2
		push	af
		call	CPYTO2ES6
		pop		af
		jp		z, p79loc_4C26
		jr		nc, p79loc_4764
		call	CPYTO1ES5
		call	CPYO1TOES6
		call	CPYO2TOES5
		jr		p79loc_4764
; ---------------------------------------------------------------------------

p79loc_4735:
		call	CPYO1TOES6
		call	CPYO1TOES5
		call	CPYTO2ES9
		call	cpop1op2
		jr		nz, p79loc_4748
		call	p79sub_4E5B
		jr		p79loc_4764
; ---------------------------------------------------------------------------

p79loc_4748:
		call	CPYTO2ES6
		ld		hl, p79loc_4D6C
		rst		20h
		call	CkOP2FP0
		jr		z, p79loc_475B
		call	FPMult
		call	ClrOP1S
		rst		30h

p79loc_475B:
		call	CPYTO2ES9
		call	Min
		call	CPYO1TOES5

p79loc_4764:
		call	CPYTO1ES6
		call	p79sub_4DF9
		call	CPYTO1ES5
		call	p79sub_4DF9
		call	CPYTO1ES6
		call	p79sub_4D0B
		jr		nc, p79loc_478E
		call	p79sub_4E5B
		call	p79sub_4D0B
		jr		nc, p79loc_478E
		call	CPYTO1ES10
		call	p79sub_4D0B
		jr		c, p79loc_4795
		call	CPYTO2ES10
		call	CPYO2TOES6

p79loc_478E:
		call	CPYO1TOES4
		pop		af
		set		1, a
		push	af

p79loc_4795:
		call	CPYTO1ES5
		call	p79sub_4D0B
		jr		nc, p79loc_47BA
		call	CPYTO1ES9
		call	p79sub_4D0B
		jr		nc, p79loc_47B4
		pop		af
		bit		1, a
		jp		z, p79loc_4C26
		push	af
		call	CPYTO1ES5
		call	CPYO1TOES9
		jr		p79loc_47CC
; ---------------------------------------------------------------------------

p79loc_47B4:
		call	CPYTO2ES9
		call	CPYO2TOES5

p79loc_47BA:
		call	CPYO1TOES3
		pop		af
		set		2, a
		push	af
		bit		1, a
		jp		nz, p79loc_483D
		call	CPYTO1ES6
		call	CPYO1TOES10

p79loc_47CC:
		call	p79sub_4CC6
		jr		c, p79loc_4800
		call	p79sub_4D0B
		jr		nc, p79loc_47ED
		pop		af
		push	af
		call	p79sub_47DD
		jr		p79loc_47CC

; =============== S U B	R O U T	I N E =======================================


p79sub_47DD:
		bit		1, a
		push	af
		call	CPYTO1ES1
		pop		af
		push	af
		call	z, CPYO1TOES6
		pop		af
		call	nz, CPYO1TOES5
		ret
; End of function p79sub_47DD

; ---------------------------------------------------------------------------

p79loc_47ED:
		pop		af
		push	af
		bit		1, a
		push	af
		call	z, CPYO1TOES4
		pop		af
		call	nz, CPYO1TOES3
		pop		af
		push	af
		call	p79sub_47DD
		jr		p79loc_483D
; ---------------------------------------------------------------------------

p79loc_4800:
		pop		af
		push	af
		bit		1, a
		jr		z, p79loc_4820
		call	CPYTO1ES4
		call	CPYO1TOES3
		call	CPYTO2ES6
		call	CPYO2TOES5
		call	p79sub_4D96
		call	p79sub_4D08
		jp		c, p79loc_4C26
		call	CPYO1TOES4
		jr		p79loc_4840
; ---------------------------------------------------------------------------

p79loc_4820:
		call	CPYTO1ES3
		call	CPYO1TOES4
		call	CPYTO2ES5
		call	p79sub_4D96
		call	CPYO1TOES5
		call	p79sub_4D0B
		jp		c, p79loc_4C26
		call	CPYO1TOES3
		call	CPYTO2ES4
		jr		p79loc_4843
; ---------------------------------------------------------------------------

p79loc_483D:
		call	CPYTO1ES4

p79loc_4840:
		call	CPYTO2ES3

p79loc_4843:
		call	CkOP1FP0
		jr		z, p79loc_4853
		call	CkOP2FP0
		jr		nz, p79loc_4856
		call	CPYTO1ES5
		call	CPYO1TOES6

p79loc_4853:
		jp		p79loc_4C96
; ---------------------------------------------------------------------------

p79loc_4856:
		call	cpop1op2
		jp		nz, p79loc_4956
		call	CPYTO1ES6
		call	CPYO1TOES7

p79loc_4862:
		call	p79sub_4CC6
		jr		c, p79loc_487C
		call	p79sub_4D08
		jr		c, p79loc_4862
		call	CPYTO2ES3
		call	OP1ToOP3
		call	cpop1op2
		jr		z, p79loc_4862
		call	OP2ToOP1
		jr		p79loc_4882
; ---------------------------------------------------------------------------

p79loc_487C:
		call	CPYTO1ES7
		call	p79sub_4D08

p79loc_4882:
		call	CPYO1TOES4
		call	CPYTO2ES3
		call	cpop1op2
		jp		nz, p79loc_4956

p79loc_488E:
		call	CPYTO1ES5
		call	CkOP1FP0
		call	z, OP1Set1
		call	CkOP1Pos
		jr		z, p79loc_48A2
		call	GETEXP
		call	nc, TimesPt5

p79loc_48A2:
		call	CPYTO2ES5
		call	ClrOP1S
		rst		30h
		call	p79sub_4DCA
		jr		c, p79loc_48F1
		call	CPYO1TOES1
		call	p79sub_4D0B
		jr		c, p79loc_48CA
		call	CPYO1TOES3
		call	CPYTO2ES1
		call	CPYO2TOES5
		call	CPYTO2ES4
		call	cpop1op2
		jr		z, p79loc_488E
		jp		p79loc_4956
; ---------------------------------------------------------------------------

p79loc_48CA:
		call	CPYTO1ES5
		call	CPYTO2ES1
		call	p79sub_4CC9
		jr		c, p79loc_48E5
		call	p79sub_4D0B
		jr		c, p79loc_48CA
		call	CPYO1TOES3
		call	CPYTO2ES1
		call	CPYO2TOES5
		jr		p79loc_48E8
; ---------------------------------------------------------------------------

p79loc_48E5:
		call	CPYTO1ES3

p79loc_48E8:
		call	CPYTO2ES4
		call	cpop1op2
		jp		nz, p79loc_4956

p79loc_48F1:
		call	CPYTO1ES6
		call	CkOP1FP0
		call	z, OP1Set2
		call	CkOP1Pos
		jr		nz, p79loc_4905
		call	GETEXP
		call	nc, TimesPt5

p79loc_4905:
		call	CPYTO2ES6
		call	ClrOP1S
		call	InvSub
		call	p79sub_4DCA
		jp		c, p79loc_494A
		call	CPYO1TOES1
		call	p79sub_4D0B
		jr		c, p79loc_492F
		call	CPYO1TOES4
		call	CPYTO2ES1
		call	CPYO2TOES6
		call	CPYTO2ES3
		call	cpop1op2
		jr		z, p79loc_48F1
		jr		p79loc_4956
; ---------------------------------------------------------------------------

p79loc_492F:
		call	CPYTO1ES1
		call	CPYTO2ES6
		call	p79sub_4CC9
		jr		c, p79loc_494A
		call	p79sub_4D0B
		jr		c, p79loc_492F
		call	CPYO1TOES4
		call	CPYTO2ES1
		call	CPYO2TOES6
		jr		p79loc_494D
; ---------------------------------------------------------------------------

p79loc_494A:
		call	CPYTO1ES4

p79loc_494D:
		call	CPYTO2ES3
		call	cpop1op2
		jp		z, ErrSignChange

p79loc_4956:
		pop		af
		push	af
		bit		3, a
		jp		nz, p79loc_4A2C
		call	p79sub_4CB3
		jp		nz, p79loc_4A2C
		call	AbsO1O2Cp
		jr		nc, p79loc_497D
		call	p79sub_4DB6
		call	CPYO1TOES5
		call	CPYO2TOES6
		call	CPYTO1ES4
		call	CPYTO2ES3
		call	CPYO1TOES3
		call	CPYO2TOES4

p79loc_497D:
		call	p79sub_4DA9
		ld		hl, 0A07h
		push	hl

p79loc_4984:
		call	CPYTO2ES5
		call	FPSub
		call	Times2
		call	CPYTO2ES5

p79loc_4990:
		rst		30h
		call	CPYO1TOES1
		call	p79sub_4DCA
		jr		nc, p79loc_49A2

p79loc_4999:
		pop		hl

p79loc_499A:
		dec		l
		jp		z, p79loc_4A2C
		ld		h, 0Ah
		jr		p79loc_49DC
; ---------------------------------------------------------------------------

p79loc_49A2:
		call	CPYTO1ES1
		call	p79sub_4D0B
		jr		nc, p79loc_49BF
		call	p79sub_4DB6
		call	cpop1op2
		push	af
		call	CPYTO1ES1
		pop		af
		push	af
		call	c, CPYO1TOES10
		pop		af
		call	nc, CPYO1TOES9
		jr		p79loc_4999
; ---------------------------------------------------------------------------

p79loc_49BF:
		call	CPYO1TOES2
		call	CPYTO2ES4
		call	CkOP1Pos
		ld		b, a
		call	ckop2pos
		xor		b
		jr		nz, p79loc_4A1C
		call	AbsO1O2Cp
		jr		c, p79loc_4A03
		jr		z, p79loc_4A03
		pop		hl
		ld		a, h
		cp		0Ah
		jr		nz, p79loc_49F6

p79loc_49DC:
		push	hl
		call	CPYTO1EST
		call	CPYTO2ES8
		call	p79sub_4DC3
		call	CPYTO2ES1
		call	CPYO1TOES1
		call	InvSub
		call	FDIV10
		call	CPYO1TOES7
		pop		hl

p79loc_49F6:
		dec		h
		jr		z, p79loc_499A
		push	hl
		call	CPYTO1ES7
		call	CPYTO2ES1
		jp		p79loc_4990
; ---------------------------------------------------------------------------

p79loc_4A03:
		call	p79sub_4DA9
		call	CPYTO1ES2
		call	CPYO1TOES4
		call	CPYTO1ES1
		call	CPYO1TOES6
		pop		hl
		ld		a, h
		cp		0Ah
		jr		nz, p79loc_49F6
		push	hl
		jp		p79loc_4984
; ---------------------------------------------------------------------------

p79loc_4A1C:
		pop		bc
		call	CPYTO1ES4
		call	CPYO1TOES3
		call	CPYTO1ES6
		call	CPYO1TOES5
		call	p79sub_4DBD

p79loc_4A2C:
		pop		af
		ld		hl, 0
		push	hl
		push	hl
		set		1, a
		res		2, a
		push	af
		call	p79sub_4CB3
		jr		nz, p79loc_4A65
		call	p79sub_4E11
		call	CPYTO1ES9
		call	p79sub_4E92
		call	Min
		call	p79sub_4E34
		jr		nc, p79loc_4A65
		call	CPYTO1ES10
		call	p79sub_4E92
		call	OP1ExOP2
		call	InvOP1S
		call	Max
		call	p79sub_4E34
		jr		nc, p79loc_4A65
		pop		af
		xor		2
		push	af

p79loc_4A65:
		call	CPYTO2ES3
		call	CPYTO1ES5
		call	p79sub_4DAF
		call	CPYTO2ES6
		call	InvSub
		call	ClrOP1S
		call	CPYO1TOES2
		call	CPYTO1ES3
		call	CPYTO2ES4
		call	ClrOP1S
		call	ClrOP2S
		call	Max
		call	CPYO1TOES1

p79loc_4A8C:
		call	p79sub_4E11
		pop		af
		pop		hl
		push	hl
		push	af
		ld		de, 15h
		or		a
		sbc		hl, de
		jr		c, p79loc_4AAE
		call	p79sub_4DB6
		call	cpop1op2
		push	af
		call	CPYTO1ES5
		pop		af
		push	af
		call	c, CPYO1TOES9
		pop		af
		call	nc, CPYO1TOES10

p79loc_4AAE:
		call	p79sub_4CB3
		push	af
		call	p79sub_4DB6
		call	InvSub
		call	TimesPt5
		call	CPYO1TOES7
		pop		af
		jr		z, p79loc_4AD6
		pop		af
		set		1, a
		push	af
		call	CkOP1Pos
		push	af
		call	p79sub_4DB6
		pop		af
		call	nz, OP1ExOP2
		call	CPYO2TOES9
		call	CPYO1TOES10

p79loc_4AD6:
		call	CPYTO1ES4
		call	CkOP1FP0
		jp		z, p79loc_4C94
		call	p79sub_4DE3
		call	OP1ToOP4
		call	CPYTO2ES7
		call	AbsO1O2Cp
		jp		nc, p79loc_4C81
		pop		af
		pop		de
		push	de
		push	af
		ld		hl, 1F3h
		or		a
		sbc		hl, de
		jp		c, p79loc_4C19
		call	CPYTO1ES4
		call	CPYTO2ES8
		call	InvSub
		call	OP1ToOP6
		call	CPYTO1ES6
		call	CPYTO2EST
		ld		hl, p79loc_4BBD
		call	pushErrorHandleR
		call	FPSub
		call	CPYTO2ES4
		call	FPMult
		call	popErrorHandleR
		call	CkOP1Pos
		jr		z, p79loc_4B2F
		call	InvOP1S
		ld		a, (OP6)
		xor		80h ; '�'
		ld		(OP6), a

p79loc_4B2F:
		call	OP1ToOP5
		call	p79sub_4DA9
		pop		bc
		pop		de
		pop		af
		inc		a
		push	af
		push	de
		push	bc
		cp		4
		jr		c, p79loc_4B65
		bit		1, b
		jr		z, p79loc_4B55
		call	CPYTO1ES7
		call	OP2Set8
		call	FPMult
		call	CPYTO2ES2
		call	AbsO1O2Cp
		jr		nc, p79loc_4BC0

p79loc_4B55:
		pop		bc
		pop		hl
		pop		af
		xor		a
		push	af
		push	hl
		push	bc
		call	CPYTO1ES7
		call	ClrOP1S
		call	CPYO1TOES2

p79loc_4B65:
		call	OP6ToOP1
		call	OP4ToOP2
		call	FPMult
		call	OP5ToOP2
		call	AbsO1O2Cp
		jr		c, p79loc_4B84
		call	OP4ToOP1
		call	CPYTO2ES7
		ld		a, (OP2)
		ld		(OP1), a
		jr		p79loc_4BDE
; ---------------------------------------------------------------------------

p79loc_4B84:
		pop		af
		push	af
		bit		1, a
		jr		z, p79loc_4B8F
		call	CPYTO1ES7
		jr		p79loc_4BA2
; ---------------------------------------------------------------------------

p79loc_4B8F:
		call	CPYTO2ES6
		ld		a, (OP6)
		and		80h ; '�'
		push	af
		call	z, CPYTO1ES9
		pop		af
		call	nz, CPYTO1ES10
		call	FPSub

p79loc_4BA2:
		call	OP6ToOP2
		ld		hl, p79loc_4BC0
		call	pushErrorHandleR
		call	FPMult
		call	popErrorHandleR
		call	OP5ToOP2
		call	cpop1op2
		jr		c, p79loc_4BC0
		jr		nz, p79loc_4BCC
		jr		p79loc_4BC0
p79loc_4BBD:
		call	p79sub_4DA9

p79loc_4BC0:
		call	CPYTO1ES6
		call	CPYTO2ES5
		rst		30h
		call	TimesPt5
		jr		p79loc_4BE2
; ---------------------------------------------------------------------------

p79loc_4BCC:
		call	OP5ToOP1
		call	OP6ToOP2
		ld		hl, p79loc_4BC0
		call	pushErrorHandleR
		call	fpdiv
		call	popErrorHandleR

p79loc_4BDE:
		call	CPYTO2ES6
		rst		30h

p79loc_4BE2:
		call	CPYO1TOES6
		pop		af
		push	af
		bit		2, a
		jr		nz, p79loc_4BF7
		call	CPYTO1ES3
		call	CPYO1TOES11
		call	CPYTO1ES5
		call	CPYO1TOES12

p79loc_4BF7:
		call	CPYTO1ES6
		call	p79sub_4D0B
		pop		de
		pop		hl
		inc		hl
		push	hl
		push	de
		jr		nc, p79loc_4C56
		ld		bc, 1F3h
		or		a
		sbc		hl, bc
		jr		c, p79loc_4C2A
		call	CPYTO1ES5
		call	CkValidNum
		ld		de, (unk_9306)
		call	MovFrOP1

p79loc_4C19:
		ld		a, 99h ; '�'
; START	OF FUNCTION CHUNK FOR p79sub_4D82

p79loc_4C1B:
		push	af
		call	CPYTO1ES13
		call	j_GETPARSE
		pop		af
		jp		JError
; END OF FUNCTION CHUNK	FOR p79sub_4D82
; ---------------------------------------------------------------------------

p79loc_4C26:
		ld		a, 9Ah ; '�'
		jr		p79loc_4C1B
; ---------------------------------------------------------------------------

p79loc_4C2A:
		pop		af
		set		2, a
		push	af
		call	p79sub_4E27
		call	p79sub_4DB6
		call	FPSub
		call	OP1ToOP4
		call	p79sub_4DE3
		call	OP4ToOP2
		call	AbsO1O2Cp
		jp		c, p79loc_4BC0
		call	CPYTO1ES5
		call	CkValidNum
		ld		de, (unk_9306)
		call	MovFrOP1

p79loc_4C53:
		jp		ErrSignChange
; ---------------------------------------------------------------------------

p79loc_4C56:
		call	CPYO1TOES4
		pop		af
		bit		2, a
		res		2, a
		push	af
		jr		z, p79loc_4C75
		call	CPYTO2ES4
		call	CPYTO1ES11
		call	p79sub_4CB9
		jr		z, p79loc_4C75
		call	CPYO1TOES3
		call	CPYTO1ES12
		call	CPYO1TOES5

p79loc_4C75:
		call	p79sub_4CB3
		jp		nz, p79loc_4A8C
		call	p79sub_4E27
		jp		p79loc_4A8C
; ---------------------------------------------------------------------------

p79loc_4C81:
		call	p79sub_4CB3
		jr		z, p79loc_4C53
		call	CPYTO1ES1
		call	CPYTO2ES4
		call	AbsO1O2Cp
		ld		a, 97h ; '�'
		jp		c, p79loc_4C1B

p79loc_4C94:
		pop		af
		pop		af

p79loc_4C96:
		pop		af
		call	popErrorHandleR
		res		2, (iy+7)
		call	CPYTO1ES14
		call	j_RESTOREDATA
		call	CPYTO1ES13
		call	j_GETPARSE
		call	CPYTO1ES6
		ld		de, 90h	; '�'
		jp		DeallocFPS1

; =============== S U B	R O U T	I N E =======================================


p79sub_4CB3:
		call	CPYTO1ES3
		call	CPYTO2ES4
; End of function p79sub_4CB3


; =============== S U B	R O U T	I N E =======================================


p79sub_4CB9:
		ld		a, (OP1)
		and		80h ; '�'
		ld		b, a
		ld		a, (OP2)
		and		80h ; '�'
		xor		b
		ret
; End of function p79sub_4CB9


; =============== S U B	R O U T	I N E =======================================


p79sub_4CC6:

		call	p79sub_4DB6
; End of function p79sub_4CC6


; =============== S U B	R O U T	I N E =======================================


p79sub_4CC9:
		call	OP1ToOP4
		call	InvSub
		call	TimesPt5
		call	OP1ToOP5
		call	ClrOP1S
		ld		a, (OP4M)
		or		a
		jr		nz, p79loc_4CE9
		ld		hl, p79loc_4D5A
		call	Mov9OP2Cp
		ret		c
		jr		nz, p79loc_4CE9

p79loc_4CE7:
		scf
		ret
; ---------------------------------------------------------------------------

p79loc_4CE9:
		call	OP4ToOP1
		ld		hl, p79loc_4D63
		call	page0_D19
		rst		8
		call	OP5ToOP1
		call	AbsO1O2Cp
		ret		c
		jr		z, p79loc_4CE7
		call	OP5ToOP1
		call	OP4ToOP2
		rst		30h
		call	CPYO1TOES1
		xor		a
		ret
; End of function p79sub_4CC9


; =============== S U B	R O U T	I N E =======================================


p79sub_4D08:
		call	CPYO1TOES6
; End of function p79sub_4D08


; =============== S U B	R O U T	I N E =======================================


p79sub_4D0B:
		call	CkValidNum
		ld		de, (unk_9306)
		call	MovFrOP1
		call	CPYTO1ES15
		ld		hl, (pTempCnt)
		push	hl
		ld		hl, p79loc_4D40
		call	pushErrorHandleR
		call	j_PARSEOFF
		call	page0_1717
		call	popErrorHandleR
		pop		hl
		ld		(pTempCnt), hl
		call	markTableDirty
		ld		a, (OP1)
		call	CHKERRBREAK
		and		1Fh
		call	SETesTOfps
		ret		z
		scf
		ret
p79loc_4D40:
		pop		de
		res		2, (iy+7)
		cp		87h ; '�'
		jr		z, p79loc_4D4E
		cp		86h ; '�'
		jp		nc, JErrorNo

p79loc_4D4E:
		set		2, (iy+7)
		call	j_FixTempCnt
		call	SETesTOfps
		scf
		ret
p79loc_4D5A:
		.db		0
		.db		1Dh
		.db		10h
		.db		00h
		.db		00h
		.db		00h
		.db		00h
		.db		00h
		.db		00h
p79loc_4D63:
		.db		0
		.db		73h	; s
		.db		10h
		.db		00h
		.db		00h
		.db		00h
		.db		00h
		.db		00h
		.db		00h
p79loc_4D6C:
		.db		0
		.db		79h	; y
		.db		10h
		.db		00h
		.db		00h
		.db		00h
		.db		00h
		.db		00h
		.db		00h

; =============== S U B	R O U T	I N E =======================================


p79sub_4D75:
		ld		hl, 75h	; 'u'
		call	AllocFPS1
		ld		(ES), hl
		ld		hl, 0
		ret
; End of function p79sub_4D75


; =============== S U B	R O U T	I N E =======================================


p79sub_4D82:



		ld		a, (hl)
		cp		2

p79loc_4D85:
		ld		a, 8Ch ; '�'
		jp		nz, p79loc_4C1B
		inc		hl
		ld		a, (hl)
		or		a
		jr		nz, p79loc_4D85
		inc		hl
		rst		20h
		inc		de
		inc		de
		jp		mov9B2
; End of function p79sub_4D82


; =============== S U B	R O U T	I N E =======================================


p79sub_4D96:
		ld		hl, p79loc_4D63
		rst		20h
		call	CkOP2FP0
		jp		z, InvOP1S
		call	FPMult
		call	ClrOP1S
		jp		InvSub
; End of function p79sub_4D96


; =============== S U B	R O U T	I N E =======================================


p79sub_4DA9:

		call	CPYTO1ES6
		call	CPYTO2ES4
; End of function p79sub_4DA9


; =============== S U B	R O U T	I N E =======================================


p79sub_4DAF:
		call	CPYO2TOES8
		call	CPYO1TOEST
		ret
; End of function p79sub_4DAF


; =============== S U B	R O U T	I N E =======================================


p79sub_4DB6:
		call	CPYTO1ES6
		call	CPYTO2ES5
		ret
; End of function p79sub_4DB6


; =============== S U B	R O U T	I N E =======================================


p79sub_4DBD:
		call	CPYTO2ES2
		call	CPYTO1ES1
; End of function p79sub_4.dbD


; =============== S U B	R O U T	I N E =======================================


p79sub_4DC3:
		call	CPYO1TOES6
		call	CPYO2TOES4
		ret
; End of function p79sub_4DC3


; =============== S U B	R O U T	I N E =======================================


p79sub_4DCA:
		call	OP1ToOP3
		call	CPYTO2ES10
		call	cpop1op2
		ret		c
		call	BCALL_4120
		call	CPYTO1ES9
		call	cpop1op2
		ret		c
		call	OP3ToOP1
		xor		a
		ret
; End of function p79sub_4DCA


; =============== S U B	R O U T	I N E =======================================


p79sub_4DE3:
		call	CPYTO1ES6
		call	CkOP1FP0
		jr		z, p79loc_4DF4
		ld		hl, p79loc_4D63
		call	page0_D19
		jp		ClrOP1S
; ---------------------------------------------------------------------------

p79loc_4DF4:
		ld		hl, p79loc_4D5A
		rst		20h
		ret
; End of function p79sub_4DE3


; =============== S U B	R O U T	I N E =======================================


p79sub_4DF9:
		call	OP1ToOP3
		call	CPYTO2ES10
		call	p79sub_4E08
		call	BCALL_4120
		call	CPYTO1ES9
; End of function p79sub_4DF9


; =============== S U B	R O U T	I N E =======================================


p79sub_4E08:
		call	cpop1op2
		ret		nc
		ld		a, 91h ; '�'
		jp		p79loc_4C1B
; End of function p79sub_4E08


; =============== S U B	R O U T	I N E =======================================


p79sub_4E11:

		call	CPYTO1ES3
		call	CPYTO2ES4
		call	AbsO1O2Cp
		ret		nc
		call	p79sub_4DA9
		call	CPYTO1ES5
		call	CPYTO2ES3
		call	p79sub_4DC3
; End of function p79sub_4E11


; =============== S U B	R O U T	I N E =======================================


p79sub_4E27:
		call	CPYTO1EST
		call	CPYO1TOES5
		call	CPYTO1ES8
		call	CPYO1TOES3
		ret
; End of function p79sub_4E27


; =============== S U B	R O U T	I N E =======================================


p79sub_4E34:
		rst		18h
		call	p79sub_4D0B
		push	af
		ld		de, 0FFF7h
		add		hl, de
		ld		(ES), hl
		pop		af

p79loc_4E41:
		push	af
		call	c, FPOPREAL
		pop		af
		ret		c
		call	CPYTO2ES4
		call	p79sub_4CB9
		scf
		jr		z, p79loc_4E41
		call	CPYO1TOES3
		call	PopRealO1
		call	CPYO1TOES5
		xor		a
		ret
; End of function p79sub_4E34


; =============== S U B	R O U T	I N E =======================================

p79sub_4E5B:
		call	CPYTO2ES6
		ld		hl, p79loc_4D6C
		rst		20h
		call	CkOP2FP0
		jr		z, p79loc_4E6D
		call	FPMult
		call	ClrOP1S

p79loc_4E6D:
		call	InvSub
		call	CPYTO2ES10
		call	Max
		call	CPYO1TOES6
		ret
; End of function p79sub_4E5B

p79loc_4E7A:
		call	SETesTOfps
		call	CPYTO1ES14
		call	j_RESTOREDATA
		jp		JErrorNo

; =============== S U B	R O U T	I N E =======================================


p79sub_4E86:

		bit		2, (iy+7)
		jp		nz, Page0Call_2501
		set		2, (iy+7)
		ret
; End of function p79sub_4E86


; =============== S U B	R O U T	I N E =======================================


p79sub_4E92:
		call	OP2Set1
		ld		a, 8Ah ; '�'
		ld		(OP2+1), a
		ret
; End of function p79sub_4E92

; ---------------------------------------------------------------------------

PULLDOWNCHK:
		cp		3Eh ; '>'
		jr		nz, p79loc_4EA1

p79loc_4E9F:
		or		a
		ret
; ---------------------------------------------------------------------------

p79loc_4EA1:
		call	p79sub_4F6F
		jp		c, p79loc_4F76
		ld		b, a
		ld		a, (MenuCurrent)
		cp		45h ; 'E'
		ld		a, b
		jr		z, p79loc_4E9F
		call	p79sub_4EE9
		jp		nz, MenCatRet

MenuCatCommon:
		cp		40h ; '@'
		jp		c, p79loc_52AC
		cp		5Ah ; 'Z'
		call	c, Page79_2D21
		cp		40h ; '@'
		jr		z, p79loc_4ED2
		cp		5Ah ; 'Z'
		jr		z, p79loc_4ECC
		cp		5Ah ; 'Z'
		jr		nc, p79loc_4ED2

p79loc_4ECC:
		call	p79sub_4F43
		jp		z, p79loc_58A3

p79loc_4ED2:
		jp		p79loc_585B
; ---------------------------------------------------------------------------

Page79_2EFB:
		ld		b, a
		ld		a, (MenuCurrent)
		cp		45h ; 'E'
		ld		a, b
		ret
; ---------------------------------------------------------------------------

Page79_31FB:
		ld		a, (MenuCurrent)
		cp		0Dh
		ret
; ---------------------------------------------------------------------------

ZIfCatalog:
		ld		a, 45h ; 'E'
		ld		(MenuCurrent), a
		ret

; =============== S U B	R O U T	I N E =======================================


p79sub_4EE9:

		ld		b, a
		ld		a, (MenuCurrent)
		or		a
		jr		nz, p79loc_4EF1
		xor		a

p79loc_4EF1:
		ld		a, b
		ret
; End of function p79sub_4EE9


; =============== S U B	R O U T	I N E =======================================


p79sub_4EF3:
		; LoadMenuNumL-4Ap ...
		ld		b, a
		ld		a, (MenuCurrent)
		cp		13h
		ld		a, b
		ret
; End of function p79sub_4EF3


; =============== S U B	R O U T	I N E =======================================


p79sub_4EFB:
		ld		b, a
		ld		a, (MenuCurrent)
; End of function p79sub_4EFB


; =============== S U B	R O U T	I N E =======================================


p79sub_4EFF:
		cp		40h ; '@'
		jr		z, p79loc_4F41
		cp		29h ; ')'
		jr		p79loc_4F41
; End of function p79sub_4EFF


; =============== S U B	R O U T	I N E =======================================


p79sub_4F07:
		ld		b, a
		ld		a, (MenuCurrent)
; End of function p79sub_4F07


; =============== S U B	R O U T	I N E =======================================


p79sub_4F0B:
		cp		20h ; ' '
		jr		p79loc_4F41
; End of function p79sub_4F0B


; =============== S U B	R O U T	I N E =======================================


p79sub_4F0F:
		; MenCatRet+20p
		ld		b, a
		ld		a, (MenuCurrent)
		cp		41h ; 'A'
		jr		z, p79loc_4F41
		cp		43h ; 'C'
		jr		z, p79loc_4F41
		cp		36h ; '6'
		jr		z, p79loc_4F41
		cp		35h ; '5'
		jr		z, p79loc_4F41
		cp		34h ; '4'
		jr		z, p79loc_4F41
		cp		33h ; '3'
		jr		z, p79loc_4F41
		cp		42h ; 'B'
		jr		z, p79loc_4F41
		cp		37h ; '7'
		jr		z, p79loc_4F41
		cp		38h ; '8'
		jr		z, p79loc_4F41
		cp		32h ; '2'
		jr		z, p79loc_4F41
		cp		31h ; '1'
		jr		z, p79loc_4F41
		cp		30h ; '0'

p79loc_4F41:
		ld		a, b
		ret
; End of function p79sub_4F0F


; =============== S U B	R O U T	I N E =======================================


p79sub_4F43:
		; p79sub_5695:p79loc_583Ep
		ld		b, a
		ld		a, (mcxCurApp)
		cp		41h ; 'A'
		ld		a, b
		ret		nz

p79loc_4F4B:
		ld		a, (sndRecState)
		cp		1
		jr		z, p79loc_4F5B
		cp		2
		jr		z, p79loc_4F5B
		cp		3
		jr		z, p79loc_4F5B
		sub		a

p79loc_4F5B:
		or		a
		ld		a, b
		ret
; End of function p79sub_4F43


; =============== S U B	R O U T	I N E =======================================


p79sub_4F5E:
		ld		b, a
		ld		a, (mcxCurApp)
		cp		41h ; 'A'
		ld		a, b
		ret		nz
		ld		a, (sndRecState)
		cp		11h
		jr		z, p79loc_4F5B
		jr		p79loc_4F4B
; End of function p79sub_4F5E


; =============== S U B	R O U T	I N E =======================================


p79sub_4F6F:
		cp		3Dh ; '='
		ret		nc
		cp		2Bh ; '+'
		ccf
		ret
; End of function p79sub_4F6F

; ---------------------------------------------------------------------------

p79loc_4F76:
		res		0, (iy+26h)
		call	Page79_2F07
		jp		z, p79loc_5024
		call	p79sub_4F5E
		jp		z, p79loc_58A3
		call	p79sub_60BA
		jr		nz, p79loc_4F96
		ld		hl, p79loc_6844
		ld		b, 6

p79loc_4F90:
		cp		(hl)
		jr		z, p79loc_4FA3
		inc		hl
		djnz	p79loc_4F90

p79loc_4F96:
		call	p79sub_4EE9
		jr		z, p79loc_4FC6
		call	p79sub_4EF3
		jr		z, p79loc_4FA3
		call	p79sub_4F0F

p79loc_4FA3:
		jp		z, p79loc_5024
		bit		saIndic, (iy+newIndicFlags)
		jr		z, p79loc_4FB3
		call	j_restoreTR
		res		saIndic, (iy+newIndicFlags)
; START	OF FUNCTION CHUNK FOR p79sub_5695

p79loc_4FB3:
		; p79sub_5695+197j
		set		6, (iy+1Dh)
		set		7, (iy+1Dh)
		call	p79sub_6925
		call	CancelAlpha
		call	p79sub_5087
		jr		p79loc_5015
; END OF FUNCTION CHUNK	FOR p79sub_5695
; ---------------------------------------------------------------------------

p79loc_4FC6:
		set		6, (iy+1Dh)
		set		7, (iy+1Dh)
		push	af
		xor		a
		ld		(unk_984B), a
		ld		(progToEdit), a
		call	ZIfMatrixMenu
		jr		c, p79loc_4FF2
		res		saIndic, (iy+newIndicFlags)
		call	SaveSavedFlags
		call	j_POPCX
		set		grfSplitOverride, (iy+sGrFlags)
		pop		af
		call	CancelAlpha
		call	p79sub_5087
		jr		p79loc_5007
; ---------------------------------------------------------------------------

p79loc_4FF2:
		call	j_ZifRclHandler
		jr		z, p79loc_4FFD
		call	IsExternalApp
		call	z, cxPutAway2

p79loc_4FFD:
		pop		af
		call	CancelAlpha
		call	p79sub_5087
; START	OF FUNCTION CHUNK FOR LoadMenuNumL

p79loc_5004:
		call	j_saveShadow2

p79loc_5007:
		sub		a
		ld		(winTop), a
		call	BackUpGraphSettings
		call	notalphnum
		res		saIndic, (iy+newIndicFlags)

p79loc_5015:
		; LoadMenuNumL+Aj
		call	BCALL_5062
		set		curLock, (iy+curFlags)
		call	p79sub_52B8
		call	p79sub_4EF3
		jr		z, p79loc_5026

p79loc_5024:

		scf
		ret
; ---------------------------------------------------------------------------

p79loc_5026:
		ld		a, 0AAh	; '�'
		ld		(indicBusy), a

p79loc_502B:
		; LoadMenuNumL-23j ...
		call	j_getkey
		call	IsOnInterruptSet
		jr		z, p79loc_503B
		call	p79sub_5C15
		call	j_rstrpartial
		jr		p79loc_504D
; ---------------------------------------------------------------------------

p79loc_503B:
		cp		9
		jp		z, p79loc_502B
		cp		40h ; '@'
		jr		c, p79loc_5048
		cp		5Ah ; 'Z'
		jr		c, p79loc_502B

p79loc_5048:
		call	MenCatRet
		jr		c, p79loc_502B

p79loc_504D:
		ld		a, 0F0h	; '�'
		ld		(indicBusy), a
		ret
; END OF FUNCTION CHUNK	FOR LoadMenuNumL

; =============== S U B	R O U T	I N E =======================================


ZIfMatrixMenu:
		; Page79_2D21+1p ...
		bit		prgmEdit, (iy+prgmFlags)
		jr		z, p79loc_5065
		ld		a, (mcxCurApp)
		cp		57h ; 'W'
		ret		z
		cp		4Bh ; 'K'
		ret		z
		cp		45h ; 'E'
		ret		z

p79loc_5065:
		scf
		ret
; End of function ZIfMatrixMenu


; =============== S U B	R O U T	I N E =======================================


LoadMenuNum:
		ld		l, 0
; End of function LoadMenuNum


; =============== S U B	R O U T	I N E =======================================


LoadMenuNumL:




		ld		h, 0
		call	p79sub_4EE9
		jr		z, p79loc_5075
		call	p79sub_50C6
		jr		p79loc_5015
; ---------------------------------------------------------------------------

p79loc_5075:
		push	af
		xor		a
		ld		(unk_984B), a
		ld		(unk_984C), a
		pop		af
		call	CancelAlpha
		call	p79sub_50C6
		jp		p79loc_5004
; End of function LoadMenuNumL


; =============== S U B	R O U T	I N E =======================================


p79sub_5087:

		sub		2Ah ; '*'
		cp		11h
		jr		nz, p79loc_50A3
		bit		grfFuncM, (iy+grfModeFlags)
		jr		nz, p79loc_50A3
		add		a, 28h ; '('
		bit		grfParamM, (iy+grfModeFlags)
		jr		nz, p79loc_50A3
		inc		a
		bit		grfPolarM, (iy+grfModeFlags)
		jr		nz, p79loc_50A3
		inc		a

p79loc_50A3:
		bit		prgmEdit, (iy+prgmFlags)
		jr		z, p79loc_50C3
		cp		3
		jr		z, p79loc_50C1
		cp		6
		jr		z, p79loc_50C1
		cp		5
		jr		z, p79loc_50C1
		cp		7
		jr		z, p79loc_50C1
		cp		8
		jr		z, p79loc_50C1
		cp		4
		jr		nz, p79loc_50C3

p79loc_50C1:
		add		a, 27h ; '''

p79loc_50C3:
		ld		hl, 0
; End of function p79sub_5087


; =============== S U B	R O U T	I N E =======================================


p79sub_50C6:
		; LoadMenuNumL+18p
		bit		6, (iy+36h)
		jr		z, p79loc_50D4
		ld		b, a
		ld		a, 4
		call	Page0Call_2D15
		ret		nz
		ld		a, b

p79loc_50D4:
		res		5, (iy+16h)
		ld		(unk_85DF), hl
		ld		(MenuCurrent), a
		call	p79sub_51FC
		ld		a, (hl)
		ld		(unk_85E1), a
; End of function p79sub_50C6


; =============== S U B	R O U T	I N E =======================================


p79sub_50E5:
		ld		a, (unk_85DF)
		cp		(hl)
		jr		nc, p79loc_5103
		ld		b, a
		ld		a, (MenuCurrent)
		cp		13h
		jr		nz, p79loc_50FB
		call	CpyTo1FPST
		ld		a, (OP1)
		jr		p79loc_5100
; ---------------------------------------------------------------------------

p79loc_50FB:
		inc		b

p79loc_50FC:
		inc		hl
		djnz	p79loc_50FC
		ld		a, (hl)

p79loc_5100:
		ld		(unk_85E2), a

p79loc_5103:
		sub		a
		ld		(unk_85DF+1), a
		res		5, (iy+11h)
		ld		a, (unk_85E2)
		or		a
		ret		nz
		ld		a, (MenuCurrent)
		cp		31h ; '1'
		ret		z
		cp		40h ; '@'
		ret		z
		cp		10h
		jr		nz, p79loc_5122
		call	p79sub_5D61
		jr		p79loc_5153
; ---------------------------------------------------------------------------

p79loc_5122:
		cp		2
		jr		nz, p79loc_5145
		call	p79sub_5E80
		set		5, (iy+11h)
		set		0, (iy+26h)
		call	OP1ToOP4
		call	p79sub_5E8D
		call	p79sub_5EB0
		call	j_FindAppUp
		ld		a, c
		ld		hl, 85E2h
		inc		(hl)
		add		a, (hl)
		ld		(hl), a
		ret
; ---------------------------------------------------------------------------

p79loc_5145:
		cp		28h ; '('
		jr		nz, p79loc_5150
		ld		a, 17h
		call	p79sub_5D87
		jr		p79loc_5153
; ---------------------------------------------------------------------------

p79loc_5150:
		call	p79sub_5D96

p79loc_5153:
		ret		c
		set		5, (iy+11h)
		call	OP1ToOP4
		call	p79sub_5E8D
		call	p79sub_5EB0
		ld		hl, (progPtr)

p79loc_5164:
		ld		a, (hl)
		and		1Fh
		dec		hl
		dec		hl
		dec		hl
		dec		hl
		dec		hl
		dec		hl
		dec		hl
		cp		9
		jr		z, p79loc_51C0
		cp		15h
		jr		z, p79loc_51C0
		cp		17h
		jr		nz, p79loc_5183
		call	CkOP1Real
		cp		17h
		jr		nz, p79loc_51C0
		jr		p79loc_5196
; ---------------------------------------------------------------------------

p79loc_5183:
		call	page0_17BE
		jr		nz, p79loc_519E
		cp		6
		jr		nz, p79loc_5191
		call	p79sub_5FB3
		jr		z, p79loc_51C0

p79loc_5191:
		call	page0_17BB
		jr		nz, p79loc_51C0

p79loc_5196:
		ld		a, (hl)

p79loc_5197:
		call	Page0Call_2D93
		jr		c, p79loc_51C0
		jr		p79loc_51B4
; ---------------------------------------------------------------------------

p79loc_519E:
		call	CkOP1Real
		call	IS_A_LSTorCLST
		jr		nz, p79loc_51C0
		ld		a, (hl)
		cp		5Dh ; ']'
		jr		nz, p79loc_51C0
		dec		hl
		ld		a, (hl)
		inc		hl
		cp		6
		jr		c, p79loc_51B4
		jr		p79loc_5197
; ---------------------------------------------------------------------------

p79loc_51B4:
		push	hl
		ld		hl, 85E2h
		inc		(hl)
		jr		nz, p79loc_51BF
		dec		(hl)
		pop		hl
		jr		p79loc_51D2
; ---------------------------------------------------------------------------

p79loc_51BF:
		pop		hl

p79loc_51C0:
		inc		hl
		ld		a, (hl)
		inc		a
		ld		e, a
		ld		d, 0
		or		a
		sbc		hl, de
		ld		de, (unk_982E)
		call	CpHLDE
		jr		nz, p79loc_5164

p79loc_51D2:
		call	p79sub_5E77
		ret
; End of function p79sub_50E5


; =============== S U B	R O U T	I N E =======================================


Page79_2D21:
		push	af
		call	ZIfMatrixMenu
		jr		c, p79loc_51FA
		res		saIndic, (iy+newIndicFlags)
		bit		grfSplit, (iy+sGrFlags)
		jr		z, p79loc_51F1
		ld		a, 4
		ld		(winTop), a
		call	j_ClrLCDFull
		call	j_GrBufCpy

p79loc_51F1:
		call	SaveSavedFlags
		call	j_rstrpartial
		call	j_POPCX

p79loc_51FA:
		pop		af
		ret
; End of function Page79_2D21


; =============== S U B	R O U T	I N E =======================================


p79sub_51FC:
		; dispMenuTitle:p79loc_5361p ...
		ld		a, 0
		bit		6, (iy+36h)
		call	nz, Page0Call_2D15
		ret		nz
		ld		a, (MenuCurrent)
		ld		hl, p79loc_6179-2
		sla	a
		ld		d, 0
		ld		e, a
		add		hl, de
		call	ldHLind
		ret
; End of function p79sub_51FC


; =============== S U B	R O U T	I N E =======================================


BCALL_5062:
		; MenCatRet+9Bp
		ld		a, (MenuCurrent)
		cp		20h ; ' '
		ld		a, 1
		jr		nz, p79loc_5220
		inc		a

p79loc_5220:
		ld		(unk_984A), a
		call	j_ClrLCDFull
		sub		a
		jr		p79sub_5257
; End of function BCALL_5062


; =============== S U B	R O U T	I N E =======================================


BCALL_505F:



		ld		hl, 984Ah
		ld		a, (curRow)
		sub		(hl)
		ld		b, a
		ld		a, (unk_85DF+1)
		sub		b
		jr		c, p79loc_524C
; End of function BCALL_505F


; =============== S U B	R O U T	I N E =======================================


p79sub_5237:
		ld		c, a
		push	bc
		call	p79sub_5399
		ld		a, (unk_984A)
		dec		a
		ld		(curRow), a
		pop		bc
		bit		5, (iy+11h)
		jr		nz, p79loc_52AE
		jr		p79loc_5279
; End of function p79sub_5237

; ---------------------------------------------------------------------------
; START	OF FUNCTION CHUNK FOR BCALL_505F

p79loc_524C:
		call	j_ClrLCDFull
		pop		hl
		pop		af
		ld		a, 6
		push	af
		push	hl
		ld		a, 1
; END OF FUNCTION CHUNK	FOR BCALL_505F

; =============== S U B	R O U T	I N E =======================================


p79sub_5257:
		ld		c, a
		push	bc
		ld		hl, 0
		ld		(curRow), hl
		call	j_EraseEOL
		call	Page79_2F07
		jr		nz, p79loc_526C
		call	j_dispErrorScreen
		jr		p79loc_526F
; ---------------------------------------------------------------------------

p79loc_526C:
		call	dispMenuTitle

p79loc_526F:
		call	p79sub_5399
		pop		bc
; End of function p79sub_5257


; =============== S U B	R O U T	I N E =======================================


p79sub_5273:
		bit		5, (iy+11h)
		jr		nz, p79loc_52B3

p79loc_5279:
		ld		a, (unk_85E2)
		or		a
		jr		z, p79loc_5294
		ld		a, c
		sla	a
		ld		e, a
		ld		d, 0
		add		hl, de
		call	p79sub_53B5
		ld		a, (unk_984A)
		jr		p79loc_5290
; ---------------------------------------------------------------------------

p79loc_528E:
		ld		a, 1

p79loc_5290:
		ld		(curRow), a
		ret
; ---------------------------------------------------------------------------

p79loc_5294:
		ld		a, (MenuCurrent)
		cp		40h ; '@'
		jr		z, p79loc_529F
		cp		31h ; '1'
		jr		nz, p79loc_528E

p79loc_529F:
		sub		a
		ld		(MenuCurrent), a
		call	p79sub_5C15
		call	j_rstrpartial
		pop		hl
		ld		a, 2

p79loc_52AC:
		or		a
		ret
; ---------------------------------------------------------------------------

p79loc_52AE:
		call	p79sub_5E4C
		jr		p79loc_528E
; ---------------------------------------------------------------------------

p79loc_52B3:
		call	p79sub_5DF7
		jr		p79loc_528E
; End of function p79sub_5273


; =============== S U B	R O U T	I N E =======================================


p79sub_52B8:
		; p79sub_5695+210p
		ld		a, (MenuCurrent)
		cp		23h ; '#'
		jr		c, p79loc_52DF
		cp		28h ; '('
		jr		nc, p79loc_52DF
		ld		hl, (curRow)
		push	hl
		ld		hl, 4
		sub		23h ; '#'
		cp		4
		jr		nz, p79loc_52D2
		ld		l, 3

p79loc_52D2:
		ld		(curRow), hl
		add		a, 16h

p79loc_52D7:
		call	Page0Call_3BAF
		pop		hl
		ld		(curRow), hl
		ret
; ---------------------------------------------------------------------------

p79loc_52DF:
		cp		38h ; '8'
		ret		nz
		ld		hl, (curRow)
		push	hl
		ld		hl, 4
		ld		(curRow), hl
		ld		a, 1Bh
		jr		p79loc_52D7
; End of function p79sub_52B8


; =============== S U B	R O U T	I N E =======================================


dispMenuTitle:
		ld		a, (MenuCurrent)
		cp		13h
		jr		nz, p79loc_531D
		ld		hl, (unk_9311)
		rst		20h
		push	hl
		pop		ix
		call	Page0Call_2413
		jp		c, ErrDataType
		ld		hl, OP2
		call	Page0Call_2D81
		xor		a
		ld		(OP3+5), a
		ld		hl, OP2
		set		textInverse, (iy+textFlags)
		call	j_PutS
		res		textInverse, (iy+textFlags)
		ret
; ---------------------------------------------------------------------------

p79loc_531D:
		ld		a, (MenuCurrent)
		cp		20h ; ' '
		jr		nz, p79loc_5361
		ld		hl, aRamFree
		ld		a, 3
		bit		localizeHookActive, (iy+hookflags3)
		call	nz, j_call_character_hook
		call	j_putsm
		ld		a, 0Bh
		ld		(curRow+1), a
		call	MemChk
		call	j_DispHL
		ld		hl, 1
		ld		(curRow), hl
		ld		hl, aArcFree
		ld		a, 4
		bit		localizeHookActive, (iy+hookflags3)
		call	nz, j_call_character_hook
		call	j_putsm
		ld		a, 0Ah
		ld		(curRow+1), a
		call	j_ArcChk
		ld		a, 7
		call	Page0Call_3C75
		ret
; ---------------------------------------------------------------------------

p79loc_5361:
		call	p79sub_51FC
		ld		b, (hl)

p79loc_5365:
		inc		hl
		djnz	p79loc_5365
		inc		hl
		ld		c, 0

p79loc_536B:
		ld		a, (unk_85DF)
		cp		c
		jr		nz, p79loc_5375
		set		textInverse, (iy+textFlags)

p79loc_5375:
		push	hl
		ld		a, 2
		bit		6, (iy+36h)
		call	nz, Page0Call_2D15
		jr		nz, p79loc_5385
		ld		a, (hl)
		call	Page0Call_3BAF

p79loc_5385:
		res		textInverse, (iy+textFlags)
		pop		hl
		inc		c
		ld		a, (unk_85E1)
		cp		c
		ret		z
		ret		c
		ld		a, 20h ; ' '
		call	j_PutC
		inc		hl
		jr		p79loc_536B
; End of function dispMenuTitle


; =============== S U B	R O U T	I N E =======================================


p79sub_5399:
		; p79sub_5257:p79loc_526Fp ...
		call	p79sub_51FC
		ld		a, (unk_85DF)
		or		a
		ld		b, a
		ld		a, (hl)
		ld		c, a
		jr		z, p79loc_53AB
		push	hl

p79loc_53A6:
		inc		hl
		add		a, (hl)
		djnz	p79loc_53A6
		pop		hl

p79loc_53AB:
		sla	a
		sub		c
		add		a, (hl)
		inc		hl
		ld		e, a
		ld		d, 0
		add		hl, de
		ret
; End of function p79sub_5399


; =============== S U B	R O U T	I N E =======================================


p79sub_53B5:
		ld		a, (unk_984A)

p79loc_53B8:
		ld		(curRow), a
		call	p79sub_53D9
		ld		d, (hl)
		inc		hl
		ld		e, (hl)
		inc		hl
		push	hl
		push	bc
		call	p79sub_545D
		pop		bc
		pop		hl
		inc		c
		ld		a, (unk_85E2)
		cp		c
		ret		z
		ret		c
		ld		a, (curRow)
		cp		7
		ret		z
		inc		a
		jr		p79loc_53B8
; End of function p79sub_53B5


; =============== S U B	R O U T	I N E =======================================


p79sub_53D9:
		sub		a
		ld		(curRow+1), a
		ld		a, (unk_85DF+1)
		cp		c
		jr		nz, p79loc_53E7
; End of function p79sub_53D9


; =============== S U B	R O U T	I N E =======================================


p79sub_53E3:
		set		textInverse, (iy+textFlags)

p79loc_53E7:
		ld		b, 31h ; '1'
		ld		a, c
		ld		e, a
		cp		9
		jr		c, p79loc_542C
		jr		nz, p79loc_53FD
		ld		a, 30h ; '0'
		jr		p79loc_542D
; ---------------------------------------------------------------------------

p79loc_53F5:
		ld		a, 20h ; ' '
		jr		p79loc_542D
; ---------------------------------------------------------------------------

p79loc_53F9:
		ld		a, 5Bh ; '['
		jr		p79loc_542D
; ---------------------------------------------------------------------------

p79loc_53FD:
		ld		a, (MenuCurrent)
		cp		3
		jr		z, p79loc_53F5
		cp		28h ; '('
		jr		z, p79loc_53F5
		cp		2
		jr		z, p79loc_53F5
		cp		10h
		jr		nz, p79loc_5418
		ld		a, (unk_85DF)
		or		a
		jr		z, p79loc_53F5
		jr		p79loc_5423
; ---------------------------------------------------------------------------

p79loc_5418:
		cp		2Ah ; '*'
		jr		nz, p79loc_5423
		ld		a, (unk_85DF)
		cp		2
		jr		z, p79loc_53F5

p79loc_5423:
		ld		a, e
		ld		b, 37h ; '7'
		cp		24h ; '$'
		jr		z, p79loc_53F9
		jr		nc, p79loc_53F5

p79loc_542C:
		add		a, b

p79loc_542D:
		call	j_PutC
		push	bc
		ld		a, (unk_984A)
		ld		b, a
		ld		a, (curRow)
		cp		b
		pop		bc
		jr		nz, p79loc_5444
		ld		a, e
		or		a
		jr		z, p79loc_5453
		ld		a, 1Eh
		jr		p79loc_5455
; ---------------------------------------------------------------------------

p79loc_5444:
		cp		7
		jr		nz, p79loc_5453
		ld		a, (unk_85E2)
		dec		a
		cp		e
		ld		a, 1Fh
		jr		z, p79loc_5453
		jr		nc, p79loc_5455

p79loc_5453:
		ld		a, 3Ah ; ':'

p79loc_5455:
		call	j_PutC
		res		textInverse, (iy+textFlags)
		ret
; End of function p79sub_53E3


; =============== S U B	R O U T	I N E =======================================


p79sub_545D:
		ld		a, d
		cp		1Fh
		jr		nz, p79loc_548D
		push	ix
		pop		hl
		rst		20h
		call	Mov9ToOP2
		push	hl
		pop		ix
		call	Page0Call_2413
		jp		c, ErrDataType
		ld		hl, OP2
		call	Page0Call_2D81
		xor		a
		ld		(OP3+3), a
		ld		hl, OP2
		call	j_PutS
		ld		a, (curRow+1)
		or		a
		jr		nz, p79loc_54D6
		ld		hl, curRow
		dec		(hl)
		ret
; ---------------------------------------------------------------------------

p79loc_548D:
		cp		82h ; '�'
		jr		nz, p79loc_5499
		ld		a, e
		sub		3Dh ; '='
		call	Page0Call_3BAF
		jr		p79loc_54D6
; ---------------------------------------------------------------------------

p79loc_5499:
		push	de
		call	p79sub_68DD
		pop		de
		push	de
		ld		a, 1
		bit		6, (iy+36h)
		call	nz, Page0Call_2D15
		jr		nz, p79loc_54B7
		ld		a, d
		cp		0FDh ; '�'
		jr		nz, p79loc_54B1
		ld		d, 0

p79loc_54B1:
		call	j_KeyToString
		call	j_putpsb

p79loc_54B7:
		pop		de
		call	p79sub_54DF
		jr		c, p79loc_54C1
		call	Page0Call_329D
		ret
; ---------------------------------------------------------------------------

p79loc_54C1:
		ld		a, d
		cp		0FFh
		jr		z, p79loc_54D6
		cp		0FCh ; '�'
		jr		z, p79loc_54D6
		ld		a, e
		cp		55h ; 'U'
		jr		nz, p79loc_54D6
		call	j_EraseEOL
		call	Page0Call_314D
		ret
; ---------------------------------------------------------------------------

p79loc_54D6:
		ld		a, (curRow+1)
		cp		0Fh
		call	c, j_EraseEOL
		ret
; End of function p79sub_545D


; =============== S U B	R O U T	I N E =======================================


p79sub_54DF:
		; p79sub_68DD:p79loc_6908p
		ld		a, d
		cp		0FCh ; '�'
		jr		nz, p79loc_54EF
		ld		a, e
		cp		41h ; 'A'
		jr		nc, p79loc_5507
		sub		3Ch ; '<'
		ret		c
		add		a, 5
		ret
; ---------------------------------------------------------------------------

p79loc_54EF:
		cp		0FEh ; '�'
		ld		a, e
		jr		nz, p79loc_54FC
		cp		82h ; '�'
		jr		nc, p79loc_5507
		sub		7Dh ; '}'
		ret		c
		ret
; ---------------------------------------------------------------------------

p79loc_54FC:
		cp		42h ; 'B'
		jr		nz, p79loc_5507
		ld		a, d
		cp		0Ah
		jr		nc, p79loc_5507
		or		a
		ret
; ---------------------------------------------------------------------------

p79loc_5507:
		scf
		ret
; End of function p79sub_54DF


; =============== S U B	R O U T	I N E =======================================


MenCatRet:
		; LoadMenuNumL:p79loc_5048p



		ld		b, a
		ld		a, 1
		bit		4, (iy+36h)
		call	nz, Page0Call_3123
		ld		a, b
		cp		9
		jp		nz, p79loc_554C
		call	Page79_2F07
		jp		z, p79loc_5830
		call	p79sub_4EFB
		jr		z, p79loc_552E
		call	p79sub_4F07
		jr		z, p79loc_552E
		call	p79sub_4F0F
		jr		nz, p79loc_5533

p79loc_552E:
		; MenCatRet+1Ej
		ld		a, 40h ; '@'
		jp		p79loc_5830
; ---------------------------------------------------------------------------

p79loc_5533:
		ld		a, (unk_984B)
		ld		b, a
		call	p79sub_4EFF
		jr		z, p79loc_5541
		call	p79sub_4F0B
		jr		nz, p79loc_5546

p79loc_5541:
		ld		l, 0
		jp		LoadMenuNumL
; ---------------------------------------------------------------------------

p79loc_5546:
		call	p79sub_58B7
		jp		p79loc_58A3
; ---------------------------------------------------------------------------

p79loc_554C:
		cp		1
		jr		nz, p79loc_5574
		ld		a, (MenuCurrent)
		cp		10h
		jr		z, p79loc_5562
		cp		2Ah ; '*'
		jr		z, p79loc_5562
		bit		5, (iy+11h)
		jp		nz, p79loc_55DE

p79loc_5562:
		; MenCatRet+50j
		ld		hl, 85DFh
		ld		a, (unk_85E1)
		dec		a
		jp		z, p79loc_58A3
		inc		(hl)
		cp		(hl)
		jr		nc, p79loc_5572
		sub		a
		ld		(hl), a

p79loc_5572:
		jr		p79loc_559B
; ---------------------------------------------------------------------------

p79loc_5574:
		cp		2
		jr		nz, p79loc_55AA
		ld		a, (MenuCurrent)
		cp		10h
		jr		z, p79loc_558A
		cp		2Ah ; '*'
		jr		z, p79loc_558A
		bit		5, (iy+11h)
		jp		nz, p79loc_5681

p79loc_558A:
		; MenCatRet+78j
		ld		hl, 85DFh
		ld		a, (hl)
		or		a
		jr		nz, p79loc_559A
		ld		a, (unk_85E1)
		cp		1
		jp		z, p79loc_58A3
		ld		(hl), a

p79loc_559A:
		dec		(hl)

p79loc_559B:
		call	p79sub_51FC
		call	p79sub_50E5
		call	p79sub_58AA
		call	BCALL_5062
		jp		p79loc_58A3
; ---------------------------------------------------------------------------

p79loc_55AA:
		cp		8
		jp		nz, p79loc_5640
		ld		a, (unk_85E2)
		ld		hl, 85E0h
		sub		(hl)
		ld		hl, curRow
		add		a, (hl)
		cp		9
		jr		c, p79loc_55CD
		ld		a, (unk_85DF+1)
		ld		hl, curRow
		sub		(hl)
		add		a, 7
		ld		(unk_85DF+1), a
		jp		p79loc_5660
; ---------------------------------------------------------------------------

p79loc_55CD:
		ld		a, 6

p79loc_55CF:
		ld		(curOffset), a

p79loc_55D2:
		call	p79sub_5695
		ld		hl, curOffset
		dec		(hl)
		jr		nz, p79loc_55D2
		jp		p79loc_58A3
; ---------------------------------------------------------------------------

p79loc_55DE:
		ld		hl, 85DFh
		ld		a, (unk_85E1)
		dec		a
		jp		z, p79loc_58A3
		inc		(hl)
		cp		(hl)
		jr		nc, p79loc_55EE
		sub		a
		ld		(hl), a

p79loc_55EE:
		; MenCatRet+189j
		call	p79sub_55FD
		push	af
		xor		a
		ld		(unk_85F2), a
		pop		af
		call	p79sub_562F
		jp		p79loc_58A3
; End of function MenCatRet


; =============== S U B	R O U T	I N E =======================================


p79sub_55FD:
		; MenCatRet+15Ap ...
		call	p79sub_51FC
		ld		a, (unk_85DF+1)
		push	af
		call	p79sub_50E5
		pop		af
		ld		hl, 85E2h
		cp		(hl)
		jr		c, p79loc_5613
		ld		a, (hl)
		or		a
		jr		z, p79loc_5613
		dec		a

p79loc_5613:
		ld		(unk_85DF+1), a
		sub		6
		jr		nc, p79loc_561B
		xor		a

p79loc_561B:
		push	af
		ld		a, (kbdKey)
		cp		4
		jr		nz, p79loc_562A
		ld		a, (unk_85E2)
		cp		8
		jr		c, p79loc_562D

p79loc_562A:
		call	j_ClrLCDFull

p79loc_562D:
		pop		af
		ret
; End of function p79sub_55FD


; =============== S U B	R O U T	I N E =======================================


p79sub_562F:
		; MenCatRet+16Cp
		call	p79sub_5257
		ld		a, (unk_85DF+1)
		inc		a
		cp		8
		jr		c, p79loc_563C
		ld		a, 7

p79loc_563C:
		ld		(curRow), a
		ret
; End of function p79sub_562F

; ---------------------------------------------------------------------------
; START	OF FUNCTION CHUNK FOR MenCatRet

p79loc_5640:
		cp		7
		jp		nz, p79loc_5724
		ld		a, (MenuCurrent)
		cp		6
		jr		z, p79loc_5659
		ld		a, (unk_85DF+1)
		ld		hl, curRow
		sub		(hl)
		add		a, 1
		sub		7
		jr		nc, p79loc_565C

p79loc_5659:
		xor		a
		jr		p79loc_566C
; ---------------------------------------------------------------------------

p79loc_565C:
		ld		hl, 984Ah
		add		a, (hl)

p79loc_5660:
		ld		(unk_85DF+1), a
		call	p79sub_55FD
		xor		a
		ld		(unk_85F2), a
		jr		p79loc_5672
; ---------------------------------------------------------------------------

p79loc_566C:
		; p79sub_5695+161j
		ld		(unk_85DF+1), a
		call	p79sub_55FD

p79loc_5672:
		ld		a, (unk_85DF+1)
		call	p79sub_562F
		ld		a, (unk_984A)
		ld		(curRow), a
		jp		p79loc_58A3
; ---------------------------------------------------------------------------

p79loc_5681:
		ld		hl, 85DFh
		ld		a, (hl)
		or		a
		jr		nz, p79loc_5691
		ld		a, (unk_85E1)
		cp		1
		jp		z, p79loc_58A3
		ld		(hl), a

p79loc_5691:
		dec		(hl)
		jp		p79loc_55EE
; END OF FUNCTION CHUNK	FOR MenCatRet

; =============== S U B	R O U T	I N E =======================================


p79sub_5695:
		; p79sub_5695+154p





		ld		hl, 85E0h
		ld		a, (unk_85E2)
		or		a
		jp		z, p79loc_57D8
		dec		a
		cp		(hl)
		jp		z, p79loc_58A3
		jp		c, p79loc_58A3
		call	p79sub_5D0D
		push	af
		jr		nz, p79loc_56B7
		inc		(hl)
		ld		a, (curRow)
		cp		6
		jr		nc, p79loc_5718
		jr		p79loc_56FD
; ---------------------------------------------------------------------------

p79loc_56B7:
		inc		(hl)
		jr		nz, p79loc_56BF
		dec		(hl)
		pop		af
		jp		p79loc_58A3
; ---------------------------------------------------------------------------

p79loc_56BF:
		ld		a, (curRow)
		cp		7
		jr		c, p79loc_56FD
		bit		5, (iy+11h)
		jr		z, p79loc_5718
		pop		af
		call	p79sub_5EE0
		jr		c, p79loc_56FA
		ld		a, (unk_85DF+1)
		dec		a
		ld		c, a
		call	p79sub_53D9
		call	p79sub_697A
		ld		a, (winTop)
		push	af
		ld		a, 1
		ld		(winTop), a
		call	j_scrollUp
		call	p79sub_5EC5
		ld		a, (unk_85DF+1)
		ld		c, a
		call	p79sub_5EFB
		call	p79sub_6966
		pop		af
		ld		(winTop), a

p79loc_56FA:
		jp		p79loc_58A3
; ---------------------------------------------------------------------------

p79loc_56FD:
		inc		a
		ld		c, (hl)
		dec		c
		call	p79sub_53D9
		ld		hl, 85E0h
		ld		c, (hl)
		ld		hl, curRow
		pop		af
		jr		nz, p79loc_570E
		inc		(hl)

p79loc_570E:
		inc		(hl)
		call	p79sub_53D9
		call	p79sub_5EC5
		jp		p79loc_58A3
; ---------------------------------------------------------------------------

p79loc_5718:
		pop		hl

p79loc_5719:
		push	af
		call	BCALL_505F
		pop		af
		ld		(curRow), a
		jp		p79loc_57D8
; ---------------------------------------------------------------------------

p79loc_5724:
		cp		3
		jp		nz, p79loc_57DB
		ld		hl, 85E0h
		ld		a, (hl)
		or		a
		jr		nz, p79loc_5770
		bit		0, (iy+1Dh)
		jp		nz, p79loc_58A3
		ld		a, (unk_85E2)
		cp		8
		jp		c, p79loc_55CF
		xor		a
		ld		(unk_85F2), a
		ld		a, (unk_85E2)
		dec		a
		ld		(unk_85DF+1), a
		sub		7
		ld		hl, 984Ah
		add		a, (hl)
		ld		c, a
		push	bc
		call	p79sub_5399
		ld		a, (unk_984A)
		dec		a
		ld		(curRow), a
		pop		bc
		call	p79sub_5273
		ld		hl, 7
		ld		(curRow), hl
		ld		a, (unk_85DF+1)
		ld		c, a
		call	p79sub_53E3
		jp		p79loc_58A3
; ---------------------------------------------------------------------------

p79loc_5770:
		dec		(hl)
		call	p79sub_5D0D
		ld		a, (curRow)
		jr		nz, p79loc_577E
		cp		3
		jp		c, p79loc_5719

p79loc_577E:
		ld		hl, 984Ah
		cp		(hl)
		jr		z, p79loc_5786
		jr		nc, p79loc_57BC

p79loc_5786:
		bit		5, (iy+11h)
		jr		z, p79loc_5719
		call	p79sub_5EED
		jr		c, p79loc_57B9
		ld		a, (unk_85DF+1)
		inc		a
		ld		c, a
		call	p79sub_53D9
		call	p79sub_697A
		ld		a, (winTop)
		push	af
		ld		a, 1
		ld		(winTop), a
		call	j_scrollDown
		call	p79sub_5ED2
		ld		a, (unk_85DF+1)
		ld		c, a
		call	p79sub_5EFB
		call	p79sub_6951
		pop		af
		ld		(winTop), a

p79loc_57B9:
		jp		p79loc_58A3
; ---------------------------------------------------------------------------

p79loc_57BC:
		ld		hl, 85E0h
		ld		c, (hl)
		inc		c
		call	p79sub_53D9
		ld		hl, 85E0h
		ld		c, (hl)
		call	p79sub_5D0D
		ld		hl, curRow
		jr		nz, p79loc_57D1
		dec		(hl)

p79loc_57D1:
		dec		(hl)
		call	p79sub_53D9
		call	p79sub_5ED2

p79loc_57D8:
		jp		p79loc_58A3
; ---------------------------------------------------------------------------

p79loc_57DB:
		cp		4
		jr		nz, p79loc_57F9
		ld		hl, 85E0h
		ld		a, (unk_85E2)
		dec		a
		sub		(hl)
		jr		z, p79loc_57EF
		call	p79sub_5695
		jp		p79loc_58A3
; ---------------------------------------------------------------------------

p79loc_57EF:
		bit		0, (iy+1Dh)
		jp		nz, p79loc_58A3
		jp		p79loc_566C
; ---------------------------------------------------------------------------

p79loc_57F9:
		cp		5Ah ; 'Z'
		jr		nz, p79loc_580B
		call	Page79_2F07
		jp		z, p79loc_5024
		call	p79sub_4EF3
		jp		z, p79loc_5024
		jr		p79loc_581C
; ---------------------------------------------------------------------------

p79loc_580B:
		bit		5, (iy+11h)
		jp		nz, p79loc_5F41
		cp		5
		jr		nz, p79loc_5868
		ld		a, (unk_85DF+1)
		call	GetMenuKeypress

p79loc_581C:
		; p79sub_5695+1F7j ...
		call	p79sub_4EF3
		jr		nz, p79loc_5825
		call	p79sub_58B7
		ret
; ---------------------------------------------------------------------------

p79loc_5825:
		push	af
		ld		a, c
		cp		82h ; '�'
		jr		nz, p79loc_582F
		pop		af
		jp		p79loc_4FB3
; ---------------------------------------------------------------------------

p79loc_582F:
		pop		af

p79loc_5830:
		; MenCatRet+27j ...
		cp		5Ah ; 'Z'
		jr		z, p79loc_583E
		cp		40h ; '@'
		jr		c, p79loc_5844
		jr		z, p79loc_5844
		cp		5Ah ; 'Z'
		jr		nc, p79loc_5844

p79loc_583E:
		call	p79sub_4F43
		jp		z, p79loc_58A3

p79loc_5844:
		; p79sub_5695+1A3j ...
		cp		17h
		jr		nz, p79loc_584C
		res		5, (iy+16h)

p79loc_584C:
		call	j_zifrclkapp
		jp		z, p79loc_58A3

MenuSwitchContext:
		call	p79sub_58B7
		cp		0FFh
		jr		nz, p79loc_585B
		ld		a, 0FEh	; '�'

p79loc_585B:
		; p79sub_5695+1C2j
		call	p79sub_60BA
		jr		nz, p79loc_5866
		cp		40h ; '@'
		ret		z
		cp		5Ah ; 'Z'
		ret
; ---------------------------------------------------------------------------

p79loc_5866:
		or		a
		ret
; ---------------------------------------------------------------------------

p79loc_5868:
		ld		b, 8Fh ; '�'
		cp		8Fh ; '�'
		jr		c, p79loc_5872
		cp		98h ; '�'
		jr		c, p79loc_5888

p79loc_5872:
		ld		b, 85h ; '�'
		cp		8Eh ; '�'
		jr		z, p79loc_5888
		ld		b, 90h ; '�'
		cp		9Ah ; '�'
		jr		c, MenuEdKey
		cp		0B4h ; '�'
		jr		c, p79loc_5888
		ld		b, 0A8h	; '�'
		cp		0CCh ; '�'
		jr		nz, MenuEdKey

p79loc_5888:
		; p79sub_5695+1E1j ...
		sub		b
		call	GetMenuKeypress
		jr		c, p79loc_581C
		jr		p79loc_58A3
; ---------------------------------------------------------------------------

MenuEdKey:
		; p79sub_5695+1F1j ...
		cp		5Ah ; 'Z'
		jr		z, p79loc_5830
		cp		40h ; '@'
		jr		c, p79loc_58A3
		jr		z, p79loc_5830
		call	Page79_2F07
		jr		z, p79loc_58A3
		cp		5Ah ; 'Z'
		jr		c, p79loc_5830

p79loc_58A3:
		scf
		push	af
		call	p79sub_52B8
		pop		af
		ret
; End of function p79sub_5695


; =============== S U B	R O U T	I N E =======================================


p79sub_58AA:
		bit		saIndic, (iy+newIndicFlags)
		ret		z
		call	j_restoreTR
		res		saIndic, (iy+newIndicFlags)
		ret
; End of function p79sub_58AA


; =============== S U B	R O U T	I N E =======================================


p79sub_58B7:
		; p79sub_5695+18Cp ...
		bit		6, (iy+36h)
		jr		z, p79loc_58C5
		ld		b, a
		ld		a, 3
		call	Page0Call_2D15
		ret		nz
		ld		a, b

p79loc_58C5:
		ld		hl, MenuCurrent
		ld		(hl), 0
		res		saIndic, (iy+newIndicFlags)
		push	af
		bit		5, (iy+16h)
		jr		z, p79loc_58DE
		res		5, (iy+16h)
		call	p79sub_5C15
		pop		af
		ret
; ---------------------------------------------------------------------------

p79loc_58DE:
		ld		b, a
		cp		5Ah ; 'Z'
		jr		nz, p79loc_58E9
		bit		prgmEdit, (iy+prgmFlags)
		jr		z, p79loc_5903

p79loc_58E9:
		cp		40h ; '@'
		jr		c, p79loc_5954
		cp		5Ah ; 'Z'
		jr		nc, p79loc_5954
		ld		a, (mcxCurApp)
		cp		b
		jr		nz, p79loc_5903
		cp		40h ; '@'
		jr		z, p79loc_5954
		cp		49h ; 'I'
		jr		z, p79loc_5954
		cp		4Dh ; 'M'
		jr		z, p79loc_5954

p79loc_5903:
		call	p79sub_60BA
		jr		z, p79loc_5954
		call	CheckSplitFlag
		jr		nz, p79loc_5918
		call	p79sub_60C2
		call	z, p79sub_6853
		call	j_rstrpartial
		jr		p79loc_593F
; ---------------------------------------------------------------------------

p79loc_5918:
		pop		af
		push	af
		cp		5Ah ; 'Z'
		jr		z, p79loc_5922
		cp		44h ; 'D'
		jr		nz, p79loc_592B

p79loc_5922:
		call	j_ClrLCDFull
		call	j_GrBufCpy
		jp		p79loc_5BB3
; ---------------------------------------------------------------------------

p79loc_592B:
		call	j_rstrpartial
		pop		af
		push	af
		cp		48h ; 'H'
		jr		z, p79loc_5942
		call	CompareContext
		jr		nz, p79loc_5942
		call	p79sub_60C2
		call	z, p79sub_6853

p79loc_593F:
		jp		p79loc_5BCE
; ---------------------------------------------------------------------------

p79loc_5942:
		ld		a, 4
		ld		(winTop), a
		call	j_ClrLCDFull
		call	j_GrBufCpy
		res		plotDisp, (iy+plotFlags)
		jp		p79loc_5A3B
; ---------------------------------------------------------------------------

p79loc_5954:
		ld		a, (mcxCurApp)
		cp		48h ; 'H'
		jr		nz, p79loc_5982
		bit		editOpen, (iy+editFlags)
		jr		nz, p79loc_5982
		pop		af
		push	af
		cp		5Ah ; 'Z'
		jp		nc, p79loc_5BCE
		ld		a, (mcxCurApp)
		jr		p79loc_5982
; ---------------------------------------------------------------------------
		pop		af
		push	af
		cp		28h ; '('
		jp		z, p79loc_5A3B
		cp		5Ah ; 'Z'
		jp		nc, p79loc_5BCE
		call	j_ClrLCDFull
		call	Page0Call_2FCD
		jp		p79loc_5A3B
; ---------------------------------------------------------------------------

p79loc_5982:
		cp		45h ; 'E'
		jr		z, p79loc_598A
		cp		57h ; 'W'
		jr		nz, p79loc_59A4

p79loc_598A:
		pop		af
		push	af
		cp		28h ; '('
		jp		z, p79loc_5A3B
		cp		29h ; ')'
		jp		z, p79loc_5A3B
		cp		5Ah ; 'Z'
		jp		nc, p79loc_5A3B
		call	j_ClrLCDFull
		call	Page0Call_2FCD
		jp		p79loc_5A3B
; ---------------------------------------------------------------------------

p79loc_59A4:
		cp		4Ch ; 'L'
		jr		nz, p79loc_59B7
		pop		af
		push	af
		cp		29h ; ')'
		jp		z, p79loc_5A3B
		cp		5Ah ; 'Z'
		jp		nc, p79loc_5A3B
		ld		a, (mcxCurApp)

p79loc_59B7:
		cp		55h ; 'U'
		jr		nz, p79loc_59DB
		pop		af
		push	af
		cp		28h ; '('
		jp		z, p79loc_5B28
		call	Page0Call_3141
		jr		nz, p79loc_59DB
		cp		29h ; ')'
		jp		z, p79loc_5A3B
		cp		5Ah ; 'Z'
		jr		nc, p79loc_5A3B
		call	j_rstrShadow2
		call	Page0Call_313B
		jr		p79loc_5A3B
; ---------------------------------------------------------------------------
		ld		a, (mcxCurApp)

p79loc_59DB:
		; p79sub_58B7+10Ej
		cp		4Bh ; 'K'
		jr		nz, p79loc_59EB
		call	Page0Call_2FD9
		jr		nz, p79loc_59EB
		pop		af
		push	af
		cp		29h ; ')'
		jp		z, p79loc_5A3B

p79loc_59EB:
		; p79sub_58B7+12Bj
		cp		56h ; 'V'
		jr		nz, p79loc_5A16
		pop		af
		push	af
		cp		28h ; '('
		jp		z, p79loc_5B28
		ld		b, a
		ld		a, (unk_85E3)
		bit		6, a
		ld		a, b
		jr		z, p79loc_5A16
		cp		29h ; ')'
		jp		z, p79loc_5A3B
		cp		5Ah ; 'Z'
		jr		nc, p79loc_5A3B
		call	p79sub_5BD3
		jp		nc, p79loc_5B70
		call	j_rstrShadow2
		call	Page0Call_3477
		jr		p79loc_5A3B
; ---------------------------------------------------------------------------

p79loc_5A16:
		; p79sub_58B7+146j
		cp		53h ; 'S'
		jr		nz, p79loc_5A3E
		pop		af
		push	af
		cp		28h ; '('
		jp		z, p79loc_5B28
		call	Page0Call_2FD9
		jr		nz, p79loc_5A3E
		cp		29h ; ')'
		jp		z, p79loc_5A3B
		cp		5Ah ; 'Z'
		jr		nc, p79loc_5A3B
		call	p79sub_5BD3
		jp		nc, p79loc_5B70
		call	j_rstrShadow2
		call	j_SolveRedisp

p79loc_5A3B:
		jp		p79loc_5BCE
; ---------------------------------------------------------------------------

p79loc_5A3E:
		; p79sub_58B7+16Dj
		cp		52h ; 'R'
		jr		nz, p79loc_5A5E
		pop		af
		push	af
		cp		0D6h ; '�'
		jr		nz, p79loc_5A5B
		ld		a, (basic_prog)
		cp		5
		jr		nz, p79loc_5A5B
		ld		a, (basic_prog+1)
		cp		41h ; 'A'
		jr		nz, p79loc_5A5B

p79loc_5A56:
		call	j_rstrpartial
		jr		p79loc_5A3B
; ---------------------------------------------------------------------------

p79loc_5A5B:
		; p79sub_58B7+196j ...
		ld		a, (mcxCurApp)

p79loc_5A5E:
		call	CheckSplitFlag
		jr		z, p79loc_5A8B
		call	j_ClrLCDFull
		call	p79sub_5C15
		call	j_GrRedisp
		ld		a, (mcxCurApp)
		cp		44h ; 'D'
		jp		nz, p79loc_5B28
		ld		a, (unk_85E5)
		cp		2Fh ; '/'
		jp		z, p79loc_5BB3
		pop		af
		push	af
		cp		28h ; '('
		jp		z, p79loc_5B9A
		cp		7Fh ; ''
		jp		c, p79loc_5BB3
		jp		p79loc_5B44
; ---------------------------------------------------------------------------

p79loc_5A8B:
		cp		44h ; 'D'
		jr		nz, p79loc_5AFC
		pop		af
		push	af
		cp		0FFh
		jr		z, p79loc_5A99
		cp		28h ; '('
		jr		nz, p79loc_5AB7

p79loc_5A99:
		res		allowCursor, (iy+plotFlags)
		bit		editOpen, (iy+editFlags)
		jr		z, p79loc_5AAE

p79loc_5AA3:
		call	p79sub_6853
		cp		0FFh
		jp		nz, p79loc_5B9A
		jp		p79loc_5B96
; ---------------------------------------------------------------------------

p79loc_5AAE:
		ld		a, (unk_85E5)
		cp		2Fh ; '/'
		jr		nz, p79loc_5AA3
		pop		af
		push	af

p79loc_5AB7:
		ld		hl, p79loc_684A
		ld		b, 9

p79loc_5ABC:
		cp		(hl)
		jp		z, p79loc_5A56
		inc		hl
		djnz	p79loc_5ABC
		cp		29h ; ')'
		jr		z, p79loc_5ACB
		cp		7Fh ; ''
		jr		c, p79loc_5AEA

p79loc_5ACB:
		bit		promptEdit, (iy+promptFlags)
		jr		nz, p79loc_5AEA
		bit		2, (iy+17h)
		jr		nz, p79loc_5AEA
		bit		allowCursor, (iy+plotFlags)
		jr		nz, p79loc_5AEA
		ld		a, (unk_85E5)
		cp		2Fh ; '/'
		jr		z, p79loc_5AEA
		call	p79sub_6853
		jp		p79loc_5BCE
; ---------------------------------------------------------------------------

p79loc_5AEA:
		; p79sub_58B7+218j ...
		call	j_ClrLCDFull
		call	p79sub_5C15
		call	j_GrRedisp
		ld		a, (textShadAlph)
		ld		(unk_8A02), a
		jp		p79loc_5BD1
; ---------------------------------------------------------------------------

p79loc_5AFC:
		cp		50h ; 'P'
		jr		z, p79loc_5B28
		pop		af
		push	af
		cp		7Fh ; ''
		jr		nc, p79loc_5B25
		cp		75h ; 'u'
		jr		nc, p79loc_5B1F
		ld		a, (mcxCurApp)
		cp		46h ; 'F'
		jr		z, p79loc_5B28
		cp		47h ; 'G'
		jr		z, p79loc_5B28
		pop		af
		push	af
		cp		5Ah ; 'Z'
		jr		c, p79loc_5B25
		cp		69h ; 'i'
		jr		nc, p79loc_5B25

p79loc_5B1F:
		call	j_rstrpartial
		jp		p79loc_5BCE
; ---------------------------------------------------------------------------

p79loc_5B25:
		; p79sub_58B7+262j ...
		ld		a, (mcxCurApp)

p79loc_5B28:
		; p79sub_58B7+13Cj ...
		call	IsExternalApp
		jr		nz, p79loc_5B38
		call	p79sub_5C15
		call	j_BCALL_4D6B
		call	cxRedisp
		pop		af
		ret
; ---------------------------------------------------------------------------

p79loc_5B38:
		cp		40h ; '@'
		jr		z, p79loc_5BB3
		cp		46h ; 'F'
		jr		z, p79loc_5BB3
		cp		50h ; 'P'
		jr		z, p79loc_5BB3

p79loc_5B44:
		cp		43h ; 'C'
		jr		nz, p79loc_5B6E
		pop		af
		push	af
		cp		28h ; '('
		jp		z, p79loc_5B28
		cp		0FCh ; '�'
		jr		nz, p79loc_5B5B
		ld		a, (keyExtend)
		call	p79sub_68A8
		jr		z, p79loc_5B6E

p79loc_5B5B:
		call	IsExternalApp
		jr		z, p79loc_5B6B
		call	p79sub_5BD3
		jr		nc, p79loc_5B70
		call	j_rstrShadow2
		call	SetMenuFlags

p79loc_5B6B:
		jp		p79loc_5BCE
; ---------------------------------------------------------------------------

p79loc_5B6E:
		; p79sub_58B7+2A2j
		pop		af
		push	af

p79loc_5B70:
		; p79sub_58B7+17Bj ...
		cp		29h ; ')'
		jr		z, p79loc_5BB3
		cp		0FFh
		jr		z, p79loc_5B96
		cp		0FEh ; '�'
		jr		z, p79loc_5BA7
		cp		0FCh ; '�'
		jr		nz, p79loc_5B88
		ld		a, (keyExtend)
		call	p79sub_68A8
		jr		z, p79loc_5B9A

p79loc_5B88:
		ld		a, (keyExtend)
		cp		0FDh ; '�'
		jr		nz, p79loc_5BA7
		ld		a, 0
		ld		(keyExtend), a
		jr		p79loc_5B9A
; ---------------------------------------------------------------------------

p79loc_5B96:
		; p79sub_58B7+2BFj
		pop		af
		ld		a, 0FEh	; '�'
		push	af

p79loc_5B9A:
		; p79sub_58B7+1F1j ...
		call	j_rstrpartial
		call	p79sub_5C15
		ld		a, 40h ; '@'
		call	newContext
		jr		p79loc_5BD1
; ---------------------------------------------------------------------------

p79loc_5BA7:
		; p79sub_58B7+2D6j
		ld		a, (mcxCurApp)
		cp		41h ; 'A'
		jr		nz, p79loc_5BB3
		call	p79sub_60CA
		jr		p79loc_5BCE
; ---------------------------------------------------------------------------

p79loc_5BB3:
		; p79sub_58B7+1C2j ...
		cp		59h ; 'Y'
		jr		nz, p79loc_5BBC
		call	p79sub_60CA
		jr		p79loc_5BCE
; ---------------------------------------------------------------------------

p79loc_5BBC:
		bit		5, (iy+36h)
		call	nz, Page0Call_36F3
		jr		nz, p79loc_5BCE
		call	j_rstrShadow2
		call	SetMenuFlags
		call	BCALL_5068

p79loc_5BCE:
		; p79sub_58B7+AEj	...
		call	p79sub_5C15

p79loc_5BD1:
		; p79sub_58B7+2EEj
		pop		af
		ret
; End of function p79sub_58B7


; =============== S U B	R O U T	I N E =======================================


p79sub_5BD3:
		; p79sub_58B7+178p ...
		ccf
		cp		29h ; ')'
		jr		z, p79loc_5BE1
		cp		0FFh
		ret		z
		ld		a, (keyExtend)
		cp		0FDh ; '�'
		ret		z

p79loc_5BE1:
		scf
		ret
; End of function p79sub_5BD3


; =============== S U B	R O U T	I N E =======================================


BackUpGraphSettings:
		ld		a, (iy+0Ch)
		ld		(unk_85E4), a
		ld		a, (iy+0Dh)
		ld		(unk_85E3), a
		ld		a, (curGStyle)
		ld		(unk_85E5), a
		ld		a, (iy+3)
		ld		(unk_85E6), a
		ret
; End of function BackUpGraphSettings


; =============== S U B	R O U T	I N E =======================================


notalphnum:
		res		appTextSave, (iy+appFlags)
		res		appCurGraphic, (iy+appFlags)
		res		appAutoScroll, (iy+appFlags)
		sub		a
		ld		(curGStyle), a
		res		graphCursor, (iy+graphFlags)
		res		curOn, (iy+curFlags)
		ret
; End of function notalphnum


; =============== S U B	R O U T	I N E =======================================


p79sub_5C15:
		; p79sub_5273+30p	...
		ld		a, (unk_85E5)
		ld		(curGStyle), a
		ld		a, (unk_85E6)
		ld		(iy+3),	a
; End of function p79sub_5C15


; =============== S U B	R O U T	I N E =======================================


SaveSavedFlags:
		; Page79_2D21:p79loc_51F1p ...
		ld		a, (unk_85E3)
		ld		(iy+0Dh), a
		ld		a, (unk_85E4)
		ld		(iy+0Ch), a
		ret
; End of function SaveSavedFlags

; =============== S U B	R O U T	I N E =======================================
BCALL_5068:
		bit		3, (iy+15h)
		jr		nz, p79loc_5C54
		bit		0, (iy+1Eh)
		jr		nz, p79loc_5C98
		bit		4, (iy+15h)
		ret		z
		jp		p79loc_5CD1
; End of function BCALL_5068


; =============== S U B	R O U T	I N E =======================================


SetMenuFlags:
		; p79sub_58B7+311p
		ld		a, (mcxCurApp)
		cp		42h ; 'B'
		jr		nz, p79loc_5C50
		call	j_dspmattable
		call	Page0Call_3291
		ret
; ---------------------------------------------------------------------------

p79loc_5C50:
		cp		43h ; 'C'
		jr		nz, p79loc_5C6C

p79loc_5C54:
		ld		hl, (curRow)
		push	hl
		call	Page0Call_322B
		call	j_dsplsts
		call	j_ZifRclHandler
		call	nz, Page0Call_323D
		call	Page0Call_3219
		call	Page0Call_3225
		jr		p79loc_5C71
; ---------------------------------------------------------------------------

p79loc_5C6C:
		cp		48h ; 'H'
		jr		nz, p79loc_5C76
		ret
; ---------------------------------------------------------------------------

p79loc_5C71:
		; SetMenuFlags+3Fj ...
		pop		hl
		ld		(curRow), hl
		ret
; ---------------------------------------------------------------------------

p79loc_5C76:
		cp		4Bh ; 'K'
		jr		nz, p79loc_5C83
		ld		hl, (curRow)
		push	hl
		call	Page0Call_2FCD
		jr		p79loc_5C71
; ---------------------------------------------------------------------------

p79loc_5C83:
		cp		53h ; 'S'
		jr		nz, p79loc_5C94
		call	j_ZifRclHandler
		ret		z
		ld		hl, (curRow)
		push	hl
		call	Page0Call_2FCD
		jr		p79loc_5C71
; ---------------------------------------------------------------------------

p79loc_5C94:
		cp		49h ; 'I'
		jr		nz, p79loc_5CA7

p79loc_5C98:
		ld		hl, (curRow)
		push	hl
		ld		hl, 0
		ld		(curRow), hl
		call	Page0Call_2FEB
		jr		p79loc_5C71
; ---------------------------------------------------------------------------

p79loc_5CA7:
		cp		55h ; 'U'
		jr		nz, p79loc_5CB4
		ld		hl, (curRow)
		push	hl
		call	Page0Call_313B
		jr		p79loc_5C71
; ---------------------------------------------------------------------------

p79loc_5CB4:
		cp		56h ; 'V'
		jr		nz, p79loc_5CC1
		ld		hl, (curRow)
		push	hl
		call	Page0Call_3477
		jr		p79loc_5C71
; ---------------------------------------------------------------------------

p79loc_5CC1:
		cp		4Ch ; 'L'
		jr		z, p79loc_5D09
		cp		4Ah ; 'J'
		jr		z, p79loc_5CD1
		bit		vertSplit, (iy+sGrFlags)
		ret		z
		cp		44h ; 'D'
		ret		nz

p79loc_5CD1:
		; SetMenuFlags+85j
		bit		vertSplit, (iy+sGrFlags)
		jr		z, p79loc_5CE5
		call	j_GrBufCpy
		ld		hl, (curRow)
		push	hl
		call	j_DispTblTop
		pop		hl
		ld		(curRow), hl

p79loc_5CE5:
		call	Page0Call_324F
		call	j_dispTblbody
		bit		vertSplit, (iy+sGrFlags)
		jr		z, p79loc_5CF8
		bit		editOpen, (iy+editFlags)
		call	z, j_dispTblBot

p79loc_5CF8:
		call	Page0Call_3195
		call	j_ZifRclHandler
		call	z, j_rstrCurRow
		bit		promptEdit, (iy+promptFlags)
		call	nz, j_rstrCurRow
		ret
; ---------------------------------------------------------------------------

p79loc_5D09:
		call	Page0Call_3E07
		ret
; End of function SetMenuFlags


; =============== S U B	R O U T	I N E =======================================


p79sub_5D0D:
		ld		a, (MenuCurrent)
		cp		6
		ret		nz
		ld		a, 2
		cp		(hl)
		ret		c
		sub		a
		ret
; End of function p79sub_5D0D


; =============== S U B	R O U T	I N E =======================================


GetMenuKeypress:
		; p79sub_5695+1F4p
		ld		hl, 85E2h
		cp		(hl)
		ret		nc
		push	af
		call	p79sub_5399
		pop		bc
		ld		a, b
		inc		hl
		or		a
		jr		z, p79loc_5D2C

p79loc_5D28:
		inc		hl
		inc		hl
		djnz	p79loc_5D28

p79loc_5D2C:
		ld		a, (hl)
		call	p79sub_4EF3
		jr		nz, p79loc_5D3E
		ld		hl, (unk_9311)
		ld		e, a
		ld		d, 0
		add		hl, de
		rst		20h
		ld		a, 8Eh ; '�'
		scf
		ret
; ---------------------------------------------------------------------------

p79loc_5D3E:
		ld		b, a
		dec		hl
		ld		a, (hl)
		ld		c, a
		cp		0FFh
		jr		nz, p79loc_5D4B
		ld		a, b
		ld		b, 0FFh
		jr		p79loc_5D5B
; ---------------------------------------------------------------------------

p79loc_5D4B:
		cp		0FEh ; '�'
		jr		nz, p79loc_5D54
		ld		a, b
		ld		b, 0FEh	; '�'
		jr		p79loc_5D5B
; ---------------------------------------------------------------------------

p79loc_5D54:
		cp		0FCh ; '�'
		jr		nz, p79loc_5D5B
		ld		a, b
		ld		b, 0FCh	; '�'

p79loc_5D5B:
		; GetMenuKeypress+39j ...
		ld		(keyExtend), a
		ld		a, b
		scf
		ret
; End of function GetMenuKeypress


; =============== S U B	R O U T	I N E =======================================


p79sub_5D61:
		call	p79sub_5EA1
		call	ChkFindSym
		ret		nc
		jr		p79sub_5D9B
; End of function p79sub_5D61


; =============== S U B	R O U T	I N E =======================================


p79sub_5D6A:
		call	j_FindAppUp
		ld		a, 14h
		ld		(OP1), a
		ret
; End of function p79sub_5D6A


; =============== S U B	R O U T	I N E =======================================


p79sub_5D73:
		; p79sub_5695:p79loc_6017p
		ld		hl, 85E7h
		call	p79sub_5DE9
		call	j_FindAppDn
		jr		nc, p79loc_5D81
		call	ZeroOP1

p79loc_5D81:
		ld		a, 14h
		ld		(OP1), a
		ret
; End of function p79sub_5D73


; =============== S U B	R O U T	I N E =======================================


p79sub_5D87:
		ld		a, 17h
		jr		p79sub_5D98
; End of function p79sub_5D87


; =============== S U B	R O U T	I N E =======================================


p79sub_5D8B:
		; p79sub_5695+A03p
		ld		a, (MenuCurrent)
		cp		10h
		jr		z, p79sub_5D61
		cp		28h ; '('
		jr		z, p79sub_5D87
; End of function p79sub_5D8B


; =============== S U B	R O U T	I N E =======================================


p79sub_5D96:
		; p79sub_5DF7:p79loc_5E1Dp
		ld		a, 5
; End of function p79sub_5D96


; =============== S U B	R O U T	I N E =======================================


p79sub_5D98:
		call	p79sub_5E94
; End of function p79sub_5D98


; =============== S U B	R O U T	I N E =======================================


p79sub_5D9B:
		call	p79sub_5DD2
		jr		z, p79sub_5D6A
		xor		a
		call	j_FindAlphaUp
		ret		c
		call	p79sub_5FB3
		jr		nz, p79loc_5DB1
		call	CkOP1Real
		cp		6
		jr		z, p79sub_5D9B

p79loc_5DB1:
		scf
		ccf
		ret
; End of function p79sub_5D9B


; =============== S U B	R O U T	I N E =======================================


p79sub_5DB4:
		call	p79sub_5DD2
		jr		z, p79sub_5D73
		xor		a
		call	j_FindAlphaDn
		ret		c
		call	p79sub_5FB3
		jr		nz, p79loc_5DB1
		call	CkOP1Real
		cp		6
		jr		z, p79sub_5DB4
		jr		p79loc_5DB1
; End of function p79sub_5.db4

; ---------------------------------------------------------------------------
		ld		a, (MenuCurrent)
		cp		10h
		ret

; =============== S U B	R O U T	I N E =======================================


p79sub_5DD2:
		ld		a, (MenuCurrent)
		cp		2
		ret
; End of function p79sub_5DD2


; =============== S U B	R O U T	I N E =======================================


p79sub_5DD8:
		ld		a, (MenuCurrent)
		cp		28h ; '('
		ret
; End of function p79sub_5DD8


; =============== S U B	R O U T	I N E =======================================


p79sub_5DDE:
		; p79sub_5695+8B1p
		ld		hl, 85E7h
		call	p79sub_5DD2
		ret		nz
		ld		a, (hl)
		cp		14h
		ret		nz
; End of function p79sub_5DDE


; =============== S U B	R O U T	I N E =======================================


p79sub_5DE9:
		push	hl
		ld		b, 8
		xor		a

p79loc_5DED:
		inc		hl
		cp		(hl)
		jr		nz, p79loc_5DF3
		djnz	p79loc_5DED

p79loc_5DF3:
		pop		hl
		ret
; End of function p79sub_5DE9

; ---------------------------------------------------------------------------
; START	OF FUNCTION CHUNK FOR p79sub_5DF7

p79loc_5DF5:
		pop		bc
		ret
; END OF FUNCTION CHUNK	FOR p79sub_5DF7

; =============== S U B	R O U T	I N E =======================================


p79sub_5DF7:


		push	bc
		ld		a, (MenuCurrent)
		cp		10h
		jr		nz, p79loc_5E04
		call	p79sub_5D61
		jr		p79loc_5E20
; ---------------------------------------------------------------------------

p79loc_5E04:
		call	p79sub_5DD8
		jr		nz, p79loc_5E10
		ld		a, 17h
		call	p79sub_5D98
		jr		p79loc_5E22
; ---------------------------------------------------------------------------

p79loc_5E10:
		call	p79sub_5DD2
		jr		nz, p79loc_5E1D
		call	j_RunIndicOn
		call	p79sub_5E80
		jr		p79loc_5E22
; ---------------------------------------------------------------------------

p79loc_5E1D:
		call	p79sub_5D96

p79loc_5E20:
		jr		c, p79loc_5DF5

p79loc_5E22:
		pop		bc
		push	bc
		ld		a, c
		or		a
		jr		z, p79loc_5E52
		ld		a, (unk_85F2)
		call	page0_17BE
		jr		z, p79loc_5E4F
		cp		1
		jr		z, p79loc_5E4F
		ld		a, 5
		ld		(unk_85F2), a
		ld		a, c

p79loc_5E3A:
		push	af
		call	p79sub_5D9B
		jr		c, p79loc_5E49
		pop		af
		dec		a
		jr		nz, p79loc_5E3A
		call	p79sub_5EBD
		jr		p79loc_5E52
; ---------------------------------------------------------------------------

p79loc_5E49:
		pop		af
		jr		p79loc_5E52
; End of function p79sub_5DF7


; =============== S U B	R O U T	I N E =======================================


p79sub_5E4C:
		push	bc
		jr		p79loc_5E52
; ---------------------------------------------------------------------------

p79loc_5E4F:
		call	p79sub_5EB5

p79loc_5E52:
		ld		a, (unk_85F2)
		or		a
		jr		nz, p79loc_5E5D
		ld		a, 5
		ld		(unk_85F2), a

p79loc_5E5D:
		call	j_newline
		call	p79sub_5E8D
		pop		bc
		inc		c
		push	bc
		dec		c
		call	p79sub_5EFB
		ld		a, (curRow)
		cp		7
		jr		nc, p79loc_5E76
		call	p79sub_5D9B
		jr		nc, p79loc_5E52

p79loc_5E76:
		pop		bc
; End of function p79sub_5E4C


; =============== S U B	R O U T	I N E =======================================


p79sub_5E77:
		ld		hl, OP4

p79loc_5E7A:
		ld		de, 85E7h

p79loc_5E7D:
		jp		mov9B2
; End of function p79sub_5E77


; =============== S U B	R O U T	I N E =======================================

p79sub_5E80:
		ld		a, 14h
		ld		(unk_85E7), a
		call	ZeroOP1
		ld		a, 14h
		ld		(OP1), a
; End of function p79sub_5E80


; =============== S U B	R O U T	I N E =======================================


p79sub_5E8D:
		ld		hl, OP1
		jr		p79loc_5E7A
; End of function p79sub_5E8D

; ---------------------------------------------------------------------------
		ld		a, 5

; =============== S U B	R O U T	I N E =======================================


p79sub_5E94:
		ld		(unk_85E7), a
		ld		a, 40h ; '@'
		ld		(ProgCurrent), a
; End of function p79sub_5E94


; =============== S U B	R O U T	I N E =======================================


p79sub_5E9C:
		ld		de, OP1
		jr		p79loc_5EAB
; End of function p79sub_5E9C


; =============== S U B	R O U T	I N E =======================================


p79sub_5EA1:
		ld		a, 0
		call	page0_1682
		jr		p79sub_5E8D
; End of function p79sub_5EA1


; =============== S U B	R O U T	I N E =======================================


p79sub_5EA8:
		ld		de, OP4

p79loc_5EAB:
		ld		hl, 85E7h
		jr		p79loc_5E7D
; End of function p79sub_5EA8


; =============== S U B	R O U T	I N E =======================================


p79sub_5EB0:
		ld		de, 85F2h
		jr		p79loc_5EAB
; End of function p79sub_5EB0


; =============== S U B	R O U T	I N E =======================================


p79sub_5EB5:
		; p79sub_5EE0+5p ...
		ld		de, OP1
		ld		hl, 85F2h
		jr		p79loc_5E7D
; End of function p79sub_5EB5


; =============== S U B	R O U T	I N E =======================================


p79sub_5EBD:
		ld		hl, OP1
		ld		de, 85F2h
		jr		p79loc_5E7D
; End of function p79sub_5EBD


; =============== S U B	R O U T	I N E =======================================


p79sub_5EC5:
		bit		5, (iy+11h)
		ret		z
		call	p79sub_5E9C
		call	p79sub_5D9B
		jr		p79loc_5EDD
; End of function p79sub_5EC5


; =============== S U B	R O U T	I N E =======================================


p79sub_5ED2:
		; p79sub_5695+140p
		bit		5, (iy+11h)
		ret		z
		call	p79sub_5E9C
		call	p79sub_5DB4

p79loc_5EDD:
		ret		c
		jr		p79sub_5E8D
; End of function p79sub_5ED2


; =============== S U B	R O U T	I N E =======================================


p79sub_5EE0:
		bit		5, (iy+11h)
		ret		z
		call	p79sub_5EB5
		call	p79sub_5D9B
		jr		p79loc_5EF8
; End of function p79sub_5EE0


; =============== S U B	R O U T	I N E =======================================


p79sub_5EED:
		bit		5, (iy+11h)
		ret		z
		call	p79sub_5EB5
		call	p79sub_5DB4

p79loc_5EF8:
		ret		c
		jr		p79sub_5EBD
; End of function p79sub_5EED


; =============== S U B	R O U T	I N E =======================================


p79sub_5EFB:
		; p79sub_5695+11Ap ...

		call	p79sub_53D9
		ld		a, (unk_85DF+1)
		cp		c
		jr		nz, p79loc_5F07
		call	p79sub_5EA8

p79loc_5F07:
		ld		a, (MenuCurrent)
		cp		10h
		jr		z, p79loc_5F1B
		call	p79sub_5DDE
		jp		nz, p79loc_6864
		ld		d, 82h ; '�'
		ld		e, 4Ch ; 'L'
		jp		p79sub_545D
; ---------------------------------------------------------------------------

p79loc_5F1B:
		ld		hl, ProgCurrent
		push	hl
		call	p79sub_6913
		pop		hl

RstrSomeFlags:
		ld		a, (hl)
		cp		31h ; '1'
		jp		z, dispListName
		cp		5Dh ; ']'
		jp		nz, dispListName
		inc		hl
		ld		a, (hl)
		cp		6
		dec		hl
		jp		nc, dispListName
		inc		a
		sla	a
		ld		e, a
		call	Page0Call_3147
		call	j_EraseEOL
		ret
; End of function p79sub_5EFB

; ---------------------------------------------------------------------------
; START	OF FUNCTION CHUNK FOR p79sub_5695

p79loc_5F41:
		cp		5
		jp		nz, p79loc_5FC6
		call	p79sub_5DDE
		jr		nz, p79loc_5F56

p79loc_5F4B:
		ld		a, 82h ; '�'
		ld		(keyExtend), a
		ld		c, a
		ld		a, 4Ch ; 'L'
		jp		p79loc_581C
; ---------------------------------------------------------------------------

p79loc_5F56:
		; p79sub_5695+A1Aj
		ld		de, progToEdit
		ld		hl, ProgCurrent
		call	Mov8B
		sub		a
		ld		(keyExtend), a
		ld		a, 58h ; 'X'
		bit		0, (iy+26h)
		jr		nz, p79loc_5FAE
		call	p79sub_5FBF
		jr		nz, p79loc_5F79
		ld		a, 1
		ld		(keyExtend), a
		ld		a, 59h ; 'Y'
		jr		p79loc_5FAE
; ---------------------------------------------------------------------------

p79loc_5F79:
		call	p79sub_5FB3
		ld		a, 46h ; 'F'
		jr		z, p79loc_5FAE
		ld		a, 0FDh	; '�'
		ld		(keyExtend), a
		ld		a, (MenuCurrent)
		cp		10h
		jr		nz, p79loc_5FAC
		ld		a, (unk_85E9)
		cp		6
		jr		nc, p79loc_5F9C
		add		a, 77h ; 'w'
		ld		(keyExtend), a
		ld		a, 0FEh	; '�'
		jr		p79loc_5FAE
; ---------------------------------------------------------------------------

p79loc_5F9C:
		ld		hl, 84C6h
		call	SHL16
		ld		hl, 84C6h
		call	SHL16
		ld		a, 29h ; ')'
		jr		p79loc_5FAE
; ---------------------------------------------------------------------------

p79loc_5FAC:
		ld		a, 28h ; '('

p79loc_5FAE:
		; p79sub_5695+8E2j ...
		call	p79sub_58B7
		or		a
		ret
; END OF FUNCTION CHUNK	FOR p79sub_5695

; =============== S U B	R O U T	I N E =======================================


p79sub_5FB3:
		ld		a, (MenuCurrent)
		cp		3

p79loc_5FB8:
		ret		nz
		ld		a, (unk_85DF)
		cp		1
		ret
; End of function p79sub_5FB3


; =============== S U B	R O U T	I N E =======================================


p79sub_5FBF:
		ld		a, (MenuCurrent)
		cp		28h ; '('
		jr		p79loc_5FB8
; End of function p79sub_5FBF

; ---------------------------------------------------------------------------
; START	OF FUNCTION CHUNK FOR p79sub_5695

p79loc_5FC6:
		ld		b, 8Fh ; '�'
		cp		8Fh ; '�'
		jr		c, p79loc_5FD1
		cp		98h ; '�'
		jp		c, p79loc_607B

p79loc_5FD1:
		ld		b, 85h ; '�'
		cp		8Eh ; '�'
		jp		z, p79loc_607B
		ld		b, 90h ; '�'
		cp		9Ah ; '�'
		jp		c, MenuEdKey
		cp		0B4h ; '�'
		jr		c, p79loc_5FEA
		ld		b, 0A8h	; '�'
		cp		0CCh ; '�'
		jp		nz, MenuEdKey

p79loc_5FEA:
		sub		9Ah ; '�'
		add		a, 41h ; 'A'
		cp		5Bh ; '['
		jr		c, p79loc_5FF4
		ld		a, 5Bh ; '['

p79loc_5FF4:
		ld		(unk_85F2), a
		ld		a, 1
		ld		(curRow), a
		call	p79sub_5DD2
		jr		nz, p79loc_6029
		call	p79sub_5E80
		ld		a, (unk_85F2)
		dec		a
		ld		(OP1+1), a
		ld		a, 0FFh
		ld		(OP1M), a
		call	p79sub_5D6A
		jr		c, p79loc_6017
		jr		p79loc_601D
; ---------------------------------------------------------------------------

p79loc_6017:
		call	p79sub_5D73
		jr		c, p79loc_6023
		dec		b

p79loc_601D:
		ld		hl, curRow
		ld		a, b
		add		a, (hl)
		ld		(hl), a

p79loc_6023:
		ld		hl, curRow
		inc		(hl)
		jr		p79loc_605B
; ---------------------------------------------------------------------------

p79loc_6029:
		call	p79sub_5D8B
		jr		c, p79loc_605B
		jr		p79loc_6039
; ---------------------------------------------------------------------------

p79loc_6030:
		call	p79sub_5D9B
		jr		c, p79loc_604E
		ld		hl, curRow
		inc		(hl)

p79loc_6039:
		ld		hl, 8479h
		ld		a, (MenuCurrent)
		cp		10h
		jr		nz, p79loc_6044
		inc		hl

p79loc_6044:
		ld		a, (unk_85F2)
		cp		(hl)
		jr		z, p79loc_605B
		jr		nc, p79loc_6030
		jr		p79loc_605B
; ---------------------------------------------------------------------------

p79loc_604E:
		call	p79sub_5FB3
		jr		nz, p79loc_605B
		call	CkOP1Real
		cp		6
		call	z, p79sub_5DB4

p79loc_605B:
		; p79sub_5695+997j ...
		call	p79sub_5EBD
		ld		a, (curRow)
		dec		a
		ld		(unk_85DF+1), a
		ld		a, (unk_984A)
		ld		(curRow), a
		call	j_EraseEOW2
		xor		a
		ld		(curRow), a
		ld		a, (unk_85DF+1)
		call	p79sub_5237
		jp		p79loc_58A3
; ---------------------------------------------------------------------------

p79loc_607B:
		; p79sub_5695+940j
		sub		b
		ld		hl, 85E2h
		cp		(hl)
		jp		nc, p79loc_58A3
		ld		(unk_85DF+1), a
		call	p79sub_5DD2
		jr		nz, p79loc_6094
		ld		hl, 85E0h
		xor		a
		cp		(hl)
		jp		z, p79loc_5F4B
		dec		(hl)

p79loc_6094:
		xor		a
		ld		(curRow), a
		call	p79sub_5D8B
		jr		p79loc_60A1
; ---------------------------------------------------------------------------

p79loc_609D:
		inc		(hl)
		call	p79sub_5D9B

p79loc_60A1:
		jr		c, p79loc_60AC
		ld		hl, curRow
		ld		a, (unk_85DF+1)
		cp		(hl)
		jr		nz, p79loc_609D

p79loc_60AC:
		call	p79sub_5E8D
		jp		p79loc_5F56
; END OF FUNCTION CHUNK	FOR p79sub_5695

; =============== S U B	R O U T	I N E =======================================


Page79_2F07:
		ld		b, a
		ld		a, (mcxCurApp)
		cp		52h ; 'R'
		ld		a, b
		ret
; End of function Page79_2F07


; =============== S U B	R O U T	I N E =======================================


p79sub_60BA:
		; p79sub_5695:p79loc_585Bp ...
		ld		b, a
		ld		a, (mcxCurApp)
		cp		50h ; 'P'
		ld		a, b
		ret
; End of function p79sub_60BA


; =============== S U B	R O U T	I N E =======================================


p79sub_60C2:
		ld		b, a
		ld		a, (mcxCurApp)
		cp		44h ; 'D'
		ld		a, b
		ret
; End of function p79sub_60C2


; =============== S U B	R O U T	I N E =======================================


p79sub_60CA:
		call	j_rstrShadow2
		ld		a, (sndRecState)
		cp		4
		ret		nz
		ld		hl, (curRow)
		push	hl
		ld		hl, 0
		ld		(curRow), hl
		ld		hl, aSelect
		ld		a, 5
		bit		localizeHookActive, (iy+hookflags3)
		call	nz, j_call_character_hook
		set		textInverse, (iy+textFlags)
		call	j_PutS
		res		textInverse, (iy+textFlags)
		pop		hl
		ld		(curRow), hl
		ret
; End of function p79sub_60CA

; ---------------------------------------------------------------------------

RstrOScreen:
		push	af
		push	bc
		push	de
		push	hl
		push	ix
		ld		b, 40h ; '@'
		ld		hl, saveSScreen
		ld		a, (iy+14h)
		push	af
		res		vertSplit, (iy+sGrFlags)
		call	j_RestoreDisp
		pop		af
		ld		(iy+14h), a

p79loc_6113:
		pop		ix
		pop		hl
		pop		de
		pop		bc
		pop		af
		ret
; ---------------------------------------------------------------------------

SaveOScreen:
		push	af
		push	bc
		push	de
		push	hl
		push	ix
		bit		saIndic, (iy+newIndicFlags)
		jr		z, p79loc_6133
		bit		shift2nd, (iy+shiftFlags)
		jr		z, p79loc_6133
		call	j_restoreTR
		res		saIndic, (iy+newIndicFlags)

p79loc_6133:
		ld		hl, saveSScreen
		call	SaveDisp
		jr		p79loc_6113

; =============== S U B	R O U T	I N E =======================================


SaveDisp:
		ld		b, 40h ; '@'
		di
		ld		a, 7
		call	lcd_busy
		out		(10h), a
		ld		a, 7Fh ; ''

p79loc_6147:
		push	bc
		inc		a
		ld		(curXRow), a
		call	SetYUp
		call	lcd_busy
		out		(10h), a
		ld		a, 20h ; ' '
		call	lcd_busy
		out		(10h), a
		ld		b, 0Ch
		call	lcd_busy
		in		a, (11h)

p79loc_6162:
		call	lcd_busy
		in		a, (11h)
		ld		(hl), a
		inc		hl
		djnz	p79loc_6162
		pop		bc
		ld		a, (curXRow)
		djnz	p79loc_6147
		ld		a, 5
		call	lcd_busy
		out		(10h), a
		ret
; End of function SaveDisp

p79loc_6179:
		.dw		p79loc_68BC
		.dw		p79loc_68CA
		.dw		p79loc_62A5
		.dw		p79loc_6201
		.dw		p79loc_6241
		.dw		p79loc_62F1
		.dw		p79loc_648B
		.dw		p79loc_6385
		.dw		p79loc_6321
		.dw		p79loc_6321
		.dw		p79loc_6521
		.dw		p79loc_6791
		.dw		p79loc_63E3
		.dw		p79loc_669C
		.dw		p79loc_63D0
		.dw		p79loc_6432
		.dw		p79loc_6461
		.dw		p79loc_6669
		.dw		p79loc_67FE
		.dw		p79loc_653C
		.dw		p79loc_6577
		.dw		p79loc_65A6
		.dw		p79loc_65BD
		.dw		p79loc_65D4
		.dw		p79loc_65EB
		.dw		p79loc_6660
		.dw		p79loc_66C7
		.dw		p79loc_66DE
		.dw		p79loc_66F9
		.dw		p79loc_6708
		.dw		p79loc_67C1
		.dw		p79loc_67A4
		.dw		p79loc_67F7
		.dw		p79loc_6669
		.dw		p79loc_67F0
		.dw		p79loc_67D4
		.dw		p79loc_67DB
		.dw		p79loc_67E2
		.dw		p79loc_67E9
		.dw		p79loc_681B
		.dw		p79loc_6822
		.dw		p79loc_62AE
		.dw		p79loc_6222
		.dw		p79loc_6274
		.dw		p79loc_62FE
		.dw		p79loc_64D6
		.dw		p79loc_633A
		.dw		p79loc_670F
		.dw		p79loc_673A
		.dw		p79loc_6741
		.dw		p79loc_6748
		.dw		p79loc_6770
		.dw		p79loc_6785
		.dw		p79loc_678C
		.dw		p79loc_6760
		.dw		p79loc_6769
		.dw		p79loc_6472
		.dw		p79loc_647D
		.dw		p79loc_6486
		.dw		p79loc_67A4
		.dw		p79loc_680F
		.dw		p79loc_6814
		.dw		p79loc_68C3
		.dw		p79loc_683D
		.dw		p79loc_6777
		.dw		p79loc_6753
		.dw		p79loc_677E
		.dw		p79loc_6814
p79loc_6201:
		.db		2
		.db		0Ah
		.db		4
		.db		5Eh	; ^
		.db		36h	; 6
		.db		0
		.db		5Fh	; _
		.db		0
		.db		5Ch	; \
		.db		0
		.db		5Dh	; ]
		.db		0
		.db		60h	; `
		.db		0
		.db		62h	; b
		.db		0
		.db		63h	; c
		.db		0
		.db		64h	; d
		.db		0
		.db		67h	; g
		.db		0
		.db		68h	; h
		.db		0
		.db		5Bh	; [
		.db		0
		.db		5Eh	; ^
		.db		0
		.db		66h	; f
		.db		0
		.db		65h	; e
		.db		0
		.db		51h	; Q
p79loc_6222:
		.db		2
		.db		0Ah
		.db		3
		.db		5Eh	; ^
		.db		36h	; 6
		.db		0
		.db		5Fh	; _
		.db		0
		.db		5Ch	; \
		.db		0
		.db		5Dh	; ]
		.db		0
		.db		60h	; `
		.db		0
		.db		62h	; b
		.db		0
		.db		63h	; c
		.db		0
		.db		64h	; d
		.db		0
		.db		67h	; g
		.db		0
		.db		68h	; h
		.db		0
		.db		5Bh	; [
		.db		0
		.db		5Eh	; ^
		.db		0
		.db		66h	; f
		.db		0
		.db		65h	; e
p79loc_6241:
		.db		3
		.db		0Bh
		.db		7
		.db		4
		.db		29h	; )
		.db		41h	; A
		.db		51h	; Q
		.db		0FDh	; �
		.db		6Bh	; k
		.db		0FDh	; �
		.db		6Ch	; l
		.db		0FDh	; �
		.db		72h	; r
		.db		0FDh	; �
		.db		71h	; q
		.db		0FDh	; �
		.db		74h	; t
		.db		0FFh
		.db		1
		.db		0FDh	; �
		.db		89h	; 	
		.db		0FFh
		.db		0
		.db		0FDh	; �
		.db		6Ah	; j
		.db		0FDh	; �
		.db		73h	; s
		.db		0FDh	; �
		.db		6Dh	; m
		.db		0FDh	; �
		.db		70h	; p
		.db		0FDh	; �
		.db		6Fh	; o
		.db		0FDh	; �
		.db		6Eh	; n
		.db		0FFh
		.db		2
		.db		0FFh
		.db		3
		.db		0FFh
		.db		62h	; b
		.db		0FFh
		.db		4
		.db		0FFh
		.db		8
		.db		0FFh
		.db		6
		.db		0FFh
		.db		7
		.db		0FFh
		.db		5
p79loc_6274:
		.db		3
		.db		0Ah
		.db		7
		.db		4
		.db		29h	; )
		.db		41h	; A
		.db		51h	; Q
		.db		0
		.db		6Bh	; k
		.db		0
		.db		6Ch	; l
		.db		0
		.db		72h	; r
		.db		0
		.db		71h	; q
		.db		0
		.db		74h	; t
		.db		0FEh	; �
		.db		1
		.db		0
		.db		89h	; 	
		.db		0FEh	; �
		.db		0
		.db		0
		.db		6Ah	; j
		.db		0
		.db		73h	; s
		.db		0
		.db		70h	; p
		.db		0
		.db		6Fh	; o
		.db		0
		.db		6Eh	; n
		.db		0FEh	; �
		.db		2
		.db		0FEh	; �
		.db		3
		.db		0FEh	; �
		.db		62h	; b
		.db		0FEh	; �
		.db		4
		.db		0FEh	; �
		.db		8
		.db		0FEh	; �
		.db		6
		.db		0FEh	; �
		.db		7
		.db		0FEh	; �
		.db		5
p79loc_62A5:
		.db		3
		.db		0
		.db		0
		.db		1
		.db		2Fh	; /
		.db		2Ch	; ,
		.db		3Ah	; :
		.db		0
		.db		47h	; G
p79loc_62AE:
		.db		3
		.db		12h
		.db		0Ch
		.db		0
		.db		26h	; &
		.db		32h	; 2
		.db		2Fh	; /
		.db		0
		.db		0CDh	; 
		.db		0
		.db		0CEh	; �
		.db		0
		.db		0CFh	; �
		.db		0
		.db		0D0h	; �
		.db		0
		.db		0D1h	; �
		.db		0
		.db		0D2h	; �
		.db		0
		.db		0D3h	; �
		.db		0
		.db		0D4h	; �
		.db		0
		.db		0D5h	; �
		.db		0
		.db		0D6h	; �
		.db		0
		.db		0D7h	; �
		.db		0
		.db		0D8h	; �
		.db		0
		.db		0D9h	; �
		.db		0
		.db		0DAh	; �
		.db		0
		.db		0DBh	; �
		.db		0
		.db		0DCh	; �
		.db		0FFh
		.db		0AAh	; 

		.db		0FFh
		.db		0B4h	; �
		.db		0
		.db		0DDh	; �
		.db		0
		.db		0DEh	; �
		.db		0
		.db		0DFh	; �
		.db		0
		.db		0E0h	; �
		.db		0
		.db		0E1h	; �
		.db		0
		.db		0E2h	; �
		.db		0
		.db		0E3h	; �
		.db		0
		.db		0E4h	; �
		.db		0
		.db		0C4h	; �
		.db		0FFh
		.db		0ABh	; 
		.db		0FEh	; �
		.db		64h	; d
		.db		0FEh	; �
		.db		63h	; c
p79loc_62F1:
		.db		1
		.db		5
		.db		49h	; I
		.db		0
		.db		55h	; U
		.db		1
		.db		55h	; U
		.db		2
		.db		55h	; U
		.db		0FFh
		.db		61h	; a
		.db		0FFh
		.db		60h	; `
p79loc_62FE:
		.db		3
		.db		5
		.db		6
		.db		3
		.db		40h	; @
		.db		58h	; X
		.db		34h	; 4
		.db		0FEh	; �
		.db		1Bh
		.db		0FEh	; �
		.db		1Ch
		.db		0
		.db		0F0h	; �
		.db		0FEh	; �
		.db		61h	; a
		.db		0FEh	; �
		.db		60h	; `
		.db		0FEh	; �
		.db		4Ch	; L
		.db		0FEh	; �
		.db		4Bh	; K
		.db		0FEh	; �
		.db		4Ah	; J
		.db		0FCh	; �
		.db		8Ah	; 

		.db		0FEh	; �
		.db		65h	; e
		.db		0FCh	; �
		.db		8Bh	; 
		.db		0FEh	; �
		.db		66h	; f
		.db		0FEh	; �
		.db		67h	; g
		.db		0FEh	; �
		.db		68h	; h
p79loc_6321:
		.db		2
		.db		6
		.db		4
		.db		54h	; T
		.db		33h	; 3
		.db		0FEh	; �
		.db		0Ah
		.db		0FEh	; �
		.db		0Bh
		.db		0FEh	; �
		.db		0Ch
		.db		0FEh	; �
		.db		0Dh
		.db		0FEh	; �
		.db		0Eh
		.db		0FEh	; �
		.db		0Fh
		.db		0FEh	; �
		.db		10h
		.db		0FEh	; �
		.db		11h
		.db		0FEh	; �
		.db		12h
		.db		0FEh	; �
		.db		13h
p79loc_633A:
		.db		4
		.db		0Ah
		.db		9
		.db		7
		.db		7
		.db		35h	; 5
		.db		3Bh	; ;
		.db		25h	; %
		.db		43h	; C
		.db		0
		.db		0C3h	; �
		.db		0FEh	; �
		.db		18h
		.db		0FEh	; �
		.db		16h
		.db		0FEh	; �
		.db		17h
		.db		0FEh	; �
		.db		15h
		.db		0
		.db		0F1h	; �
		.db		0
		.db		0F2h	; �
		.db		0
		.db		0C7h	; �
		.db		0
		.db		0C8h	; �
		.db		0
		.db		0C9h	; 	
		.db		0FEh	; �
		.db		9
		.db		0FEh	; �
		.db		1Dh
		.db		0FEh	; �
		.db		1Eh
		.db		0FEh	; �
		.db		1Fh
		.db		0FEh	; �
		.db		20h
		.db		0FEh	; �
		.db		34h	; 4
		.db		0FEh	; �
		.db		35h	; 5
		.db		0FCh	; �
		.db		32h	; 2
		.db		0FCh	; �
		.db		33h	; 3
		.db		0FCh	; �
		.db		2Fh	; /
		.db		0FCh	; �
		.db		30h	; 0
		.db		0FCh	; �
		.db		83h	; �
		.db		0FCh	; �
		.db		31h	; 1
		.db		0FEh	; �
		.db		9
		.db		0FCh	; �
		.db		37h	; 7
		.db		0FCh	; �
		.db		36h	; 6
		.db		0FEh	; �
		.db		21h	; !
		.db		0FEh	; �
		.db		22h	; "
		.db		0FEh	; �
		.db		23h	; #
		.db		0FEh	; �
		.db		24h	; $
		.db		0FCh	; �
		.db		34h	; 4
		.db		0FCh	; �
		.db		35h	; 5
		.db		0FCh	; �
		.db		91h	; �
p79loc_6385:
		.db		4
		.db		0Ah
		.db		9
		.db		7
		.db		7
		.db		35h	; 5
		.db		3Bh	; ;
		.db		25h	; %
		.db		43h	; C
		.db		0
		.db		0C3h	; �
		.db		0FEh	; �
		.db		18h
		.db		0FEh	; �
		.db		16h
		.db		0FEh	; �
		.db		17h
		.db		0FEh	; �
		.db		15h
		.db		0
		.db		0F1h	; �
		.db		0
		.db		0F2h	; �
		.db		0
		.db		0C7h	; �
		.db		0
		.db		0C8h	; �
		.db		0
		.db		54h	; T
		.db		0FEh	; �
		.db		9
		.db		0FEh	; �
		.db		1Dh
		.db		0FEh	; �
		.db		1Eh
		.db		0FEh	; �
		.db		1Fh
		.db		0FEh	; �
		.db		20h
		.db		0FEh	; �
		.db		34h	; 4
		.db		0FEh	; �
		.db		35h	; 5
		.db		0FCh	; �
		.db		32h	; 2
		.db		0FCh	; �
		.db		33h	; 3
		.db		0FCh	; �
		.db		2Fh	; /
		.db		0FCh	; �
		.db		30h	; 0
		.db		0FCh	; �
		.db		83h	; �
		.db		0FCh	; �
		.db		31h	; 1
		.db		0FEh	; �
		.db		9
		.db		0FCh	; �
		.db		37h	; 7
		.db		0FCh	; �
		.db		36h	; 6
		.db		0FEh	; �
		.db		21h	; !
		.db		0FEh	; �
		.db		22h	; "
		.db		0FEh	; �
		.db		23h	; #
		.db		0FEh	; �
		.db		24h	; $
		.db		0FCh	; �
		.db		34h	; 4
		.db		0FCh	; �
		.db		35h	; 5
		.db		0FCh	; �
		.db		91h	; �
p79loc_63D0:
		.db		1
		.db		8
		.db		1Dh
		.db		0FEh	; �
		.db		26h	; &
		.db		0FEh	; �
		.db		27h	; '
		.db		0FEh	; �
		.db		25h	; %
		.db		0FEh	; �
		.db		28h	; (
		.db		0FEh	; �
		.db		2Ah	; *
		.db		0FEh	; �
		.db		29h	; )
		.db		0FEh	; �
		.db		2Bh	; +
		.db		0FEh	; �
		.db		2Ch	; ,
p79loc_63E3:
		.db		3
		.db		0Ah
		.db		10h
		.db		0Ah
		.db		39h	; 9
		.db		35h	; 5
		.db		2Ch	; ,
		.db		0FEh	; �
		.db		7Dh	; }
		.db		0FEh	; �
		.db		7Eh	; ~
		.db		0FEh	; �
		.db		7Fh	; 
		.db		0FEh	; �
		.db		80h	; �
		.db		0FEh	; �
		.db		81h	; �
		.db		0FCh	; �
		.db		3Ch	; <
		.db		0FCh	; �
		.db		3Dh	; =
		.db		0FCh	; �
		.db		3Eh	; >
		.db		0FCh	; �
		.db		3Fh	; ?
		.db		0FCh	; �
		.db		40h	; @
		.db		0FEh	; �
		.db		3Ah	; :
		.db		0FEh	; �
		.db		3Bh	; ;
		.db		0FEh	; �
		.db		3Ch	; <
		.db		0FFh
		.db		3Dh	; =
		.db		0FEh	; �
		.db		3Eh	; >
		.db		0FEh	; �
		.db		3Fh	; ?
		.db		0FEh	; �
		.db		40h	; @
		.db		0FCh	; �
		.db		44h	; D
		.db		0FCh	; �
		.db		45h	; E
		.db		0FCh	; �
		.db		46h	; F
		.db		0FCh	; �
		.db		92h	; �
		.db		0FCh	; �
		.db		93h	; �
		.db		0FEh	; �
		.db		2Dh	; -
		.db		0FEh	; �
		.db		2Eh	; .
		.db		0FEh	; �
		.db		2Fh	; /
		.db		0FEh	; �
		.db		30h	; 0
		.db		0
		.db		42h	; B
		.db		1
		.db		42h	; B
		.db		2
		.db		42h	; B
		.db		3
		.db		42h	; B
		.db		4
		.db		42h	; B
		.db		5
		.db		42h	; B
		.db		6
		.db		42h	; B
		.db		7
		.db		42h	; B
		.db		8
p79loc_642F:
		.db		42h	; B
		.db		9
		.db		42h	; B
p79loc_6432:
		.db		3
		.db		0
		.db		0Ch
		.db		8
		.db		39h	; 9
		.db		3Dh	; =
		.db		35h	; 5
		.db		0FFh
		.db		31h	; 1
		.db		0FFh
		.db		32h	; 2
		.db		0FEh	; �
		.db		3Ch	; <
		.db		0FFh
		.db		3Dh	; =
		.db		0FEh	; �
		.db		33h	; 3
		.db		0FCh	; �
		.db		46h	; F
		.db		0FCh	; �
		.db		47h	; G
		.db		0FDh	; �
		.db		69h	; i
		.db		0FEh	; �
		.db		40h	; @
		.db		0FCh	; �
		.db		45h	; E
		.db		0FCh	; �
		.db		44h	; D
		.db		0
		.db		7Fh	; 
		.db		0FEh	; �
		.db		34h	; 4
		.db		0FEh	; �
		.db		35h	; 5
		.db		0FEh	; �
		.db		36h	; 6
		.db		0FEh	; �
		.db		37h	; 7
		.db		0FEh	; �
		.db		38h	; 8
		.db		0FEh	; �
		.db		39h	; 9
		.db		0FCh	; �
		.db		48h	; H
		.db		0FCh	; �
		.db		49h	; I
p79loc_6461:
		.db		1
		.db		7
		.db		24h	; $
		.db		0
		.db		75h	; u
		.db		0
		.db		79h	; y
		.db		0
		.db		7Dh	; }
		.db		0
		.db		7Eh	; ~
		.db		0
		.db		76h	; v
		.db		0
		.db		77h	; w
		.db		0
		.db		78h	; x
p79loc_6472:
		.db		1
		.db		4
		.db		24h	; $
		.db		0
		.db		75h	; u
		.db		0
		.db		77h	; w
		.db		0
		.db		7Ah	; z
		.db		0
		.db		7Bh	; {
p79loc_647D:
		.db		1
		.db		3
		.db		24h	; $
		.db		0
		.db		75h	; u
		.db		0
		.db		77h	; w
		.db		0
		.db		7Ch	; |
p79loc_6486:
		.db		1
		.db		1
		.db		24h	; $
		.db		0
		.db		75h	; u
p79loc_648B:
		.db		3
		.db		5
		.db		0Dh
		.db		10h
		.db		2Ch	; ,
		.db		23h	; #
		.db		50h	; P
		.db		0
		.db		43h	; C
		.db		0FFh
		.db		31h	; 1
		.db		0FFh
		.db		32h	; 2
		.db		0FFh
		.db		49h	; I
		.db		0FFh
		.db		0CBh	; 
		.db		0FFh
		.db		41h	; A
		.db		0FFh
		.db		42h	; B
		.db		0FFh
		.db		47h	; G
		.db		0FFh
		.db		14h
		.db		0FFh
		.db		48h	; H
		.db		0FFh
		.db		19h
		.db		0FFh
		.db		1Ah
		.db		0FFh
		.db		43h	; C
		.db		0FFh
		.db		45h	; E
		.db		0FFh
		.db		44h	; D
		.db		0FFh
		.db		46h	; F
		.db		0FFh
		.db		0CDh	; 

		.db		0FFh
		.db		0A5h	; �
		.db		0
		.db		56h	; V
		.db		1
		.db		56h	; V
		.db		2
		.db		56h	; V
		.db		3
		.db		56h	; V
		.db		4
		.db		56h	; V
		.db		5
		.db		56h	; V
		.db		6
		.db		56h	; V
		.db		7
		.db		56h	; V
		.db		8
		.db		56h	; V
		.db		9
		.db		56h	; V
		.db		0Ah
		.db		56h	; V
		.db		0Bh
		.db		56h	; V
		.db		0Ch
		.db		56h	; V
		.db		0Dh
		.db		56h	; V
		.db		0Eh
		.db		56h	; V
		.db		0FFh
		.db		0EDh	; 
p79loc_64D6:
		.db		3
		.db		5
		.db		0Dh
		.db		10h
		.db		2Ch	; ,
		.db		23h	; #
		.db		50h	; P
		.db		0
		.db		43h	; C
		.db		0FFh
		.db		31h	; 1
		.db		0FFh
		.db		32h	; 2
		.db		0FFh
		.db		49h	; I
		.db		0FFh
		.db		0CBh	; 
		.db		0FFh
		.db		41h	; A
		.db		0FFh
		.db		42h	; B
		.db		0FFh
		.db		47h	; G
		.db		0FFh
		.db		14h
		.db		0FFh
		.db		48h	; H
		.db		0FFh
		.db		19h
		.db		0FFh
		.db		1Ah
		.db		0FFh
		.db		43h	; C
		.db		0FFh
		.db		45h	; E
		.db		0FFh
		.db		44h	; D
		.db		0FFh
		.db		46h	; F
		.db		0FFh
		.db		0CDh	; 
		.db		0FFh
		.db		0A5h	; �
		.db		0FFh
		.db		0CEh	; �
		.db		0FFh
		.db		0CFh	; �
		.db		0FFh
		.db		0D0h	; �
		.db		0FFh
		.db		0D1h	; �
		.db		0FFh
		.db		0D2h	; �
		.db		0FFh
		.db		0D3h	; �
		.db		0FFh
		.db		0D6h	; �
		.db		0FFh
		.db		0D7h	; �
		.db		0FFh
		.db		0D9h	; �
		.db		0FFh
		.db		0D8h	; �
		.db		0FFh
		.db		0DAh	; �
		.db		0FFh
		.db		0DBh	; �
		.db		0FFh
		.db		0D4h	; �
		.db		0FFh
		.db		0D5h	; �
		.db		0FFh
		.db		0FAh	; �
		.db		0FFh
		.db		0EDh	; 
p79loc_6521:
		.db		2
		.db		7
		.db		4
		.db		5Ah	; Z
		.db		5Dh	; ]
		.db		82h	; �
		.db		3Eh	; >
		.db		82h	; �
		.db		3Fh	; ?
		.db		82h	; �
		.db		40h	; @
		.db		82h	; �
		.db		41h	; A
		.db		82h	; �
		.db		43h	; C
		.db		82h	; �
		.db		44h	; D
		.db		82h	; �
		.db		42h	; B
		.db		82h	; �
		.db		45h	; E
		.db		82h	; �
		.db		46h	; F
		.db		82h	; �
		.db		47h	; G
		.db		82h	; �
		.db		48h	; H
p79loc_653C:
		.db		3
		.db		0Bh
		.db		6
		.db		7
		.db		5Ch	; \
		.db		57h	; W
		.db		59h	; Y
		.db		0FEh	; �
		.db		82h	; �
		.db		0FEh	; �
		.db		83h	; �
		.db		0FEh	; �
		.db		84h	; �
		.db		0FEh	; �
		.db		85h	; �
		.db		0FEh	; �
		.db		86h	; �
		.db		0FEh	; �
		.db		87h	; �
		.db		0FCh	; �
		.db		85h	; �
		.db		0FEh	; �
		.db		93h	; �
		.db		0FEh	; �
		.db		92h	; �
		.db		0FEh	; �
		.db		0EBh	; 
		.db		0FEh	; �
		.db		0ECh	; 
		.db		0FEh	; �
		.db		88h	; �
		.db		0FEh	; �
		.db		89h	; 	
		.db		0FEh	; �
		.db		8Ah	; 
		.db		0FEh	; �
		.db		8Bh	; 
		.db		0FEh	; �
		.db		8Ch	; 
		.db		0FEh	; �
		.db		8Dh	; 
		.db		0FEh	; �
		.db		8Eh	; �
		.db		0FEh	; �
		.db		8Fh	; �
		.db		0FCh	; �
		.db		3Bh	; ;
		.db		0FEh	; �
		.db		90h	; �
		.db		0FEh	; �
		.db		91h	; �
		.db		0FEh	; �
		.db		0E9h	; 	
		.db		0FEh	; �
		.db		0F8h	; �
		.db		0FEh	; �
		.db		0E9h	; 	
		.db		0FEh	; �
		.db		0F8h	; �
p79loc_6577:
		.db		3
		.db		7
		.db		6
		.db		7
		.db		61h	; a
		.db		5Fh	; _
		.db		60h	; `
		.db		0FEh	; �
		.db		94h	; �
		.db		0FEh	; �
		.db		95h	; �
		.db		0FEh	; �
		.db		96h	; �
		.db		0FEh	; �
		.db		97h	; �
		.db		0FEh	; �
		.db		98h	; �
		.db		0FEh	; �
		.db		99h	; �
		.db		0FCh	; �
		.db		89h	; 	
		.db		0FEh	; �
		.db		9Ah	; �
		.db		0FEh	; �
		.db		9Bh	; �
		.db		0FEh	; �
		.db		9Ch	; �
		.db		0FEh	; �
		.db		9Dh	; �
		.db		0FEh	; �
		.db		9Eh	; �
		.db		0FEh	; �
		.db		9Fh	; �
		.db		0FEh	; �
		.db		0A0h	; �
		.db		0FEh	; �
		.db		0A1h	; �
		.db		0FCh	; �
		.db		82h	; �
		.db		0FEh	; �
		.db		0A2h	; �
		.db		0FEh	; �
		.db		0A3h	; �
		.db		0FEh	; �
		.db		0EAh	; 
		.db		0FEh	; �
		.db		0F9h	; �
p79loc_65A6:
		.db		1
		.db		0Ah
		.db		31h	; 1
p79loc_65A9:
		.db		0FCh	; �
		.db		0
		.db		0FCh	; �
		.db		1
		.db		0FCh	; �
		.db		2
		.db		0FCh	; �
		.db		1Fh
		.db		0FCh	; �
		.db		20h
		.db		0FCh	; �
		.db		21h	; !
		.db		0FCh	; �
		.db		25h	; %
		.db		0FCh	; �
		.db		26h	; &
		.db		0FCh	; �
		.db		27h	; '
		.db		0FCh	; �
		.db		28h	; (
p79loc_65BD:
		.db		1
		.db		0Ah
		.db		3Fh	; ?
p79loc_65C0:
		.db		0FEh	; �
		.db		0A7h	; �
		.db		0FEh	; �
		.db		0A8h	; �
		.db		0FEh	; �
		.db		0A9h	; 	
		.db		0FCh	; �
		.db		22h	; "
		.db		0FCh	; �
		.db		23h	; #
		.db		0FCh	; �
		.db		24h	; $
		.db		0FCh	; �
		.db		29h	; )
		.db		0FCh	; �
		.db		2Ah	; *
		.db		0FCh	; �
		.db		2Bh	; +
		.db		0FCh	; �
		.db		2Ch	; ,
p79loc_65D4:
		.db		1
		.db		0Ah
		.db		52h	; R
p79loc_65D7:
		.db		0FCh	; �
		.db		50h	; P
		.db		0FCh	; �
		.db		51h	; Q
		.db		0FCh	; �
		.db		52h	; R
		.db		0FCh	; �
		.db		53h	; S
		.db		0FCh	; �
		.db		54h	; T
		.db		0FCh	; �
		.db		55h	; U
		.db		0FCh	; �
		.db		56h	; V
		.db		0FCh	; �
		.db		57h	; W
		.db		0FCh	; �
		.db		58h	; X
		.db		0FCh	; �
		.db		59h	; Y
p79loc_65EB:
		.db		5
		.db		0Bh
		.db		5
		.db		9
		.db		13h
		.db		9
		.db		5Bh	; [
		.db		2Bh	; +
		.db		2Dh	; -
		.db		54h	; T
		.db		44h	; D
		.db		0FCh	; �
		.db		2Dh	; -
		.db		0FCh	; �
		.db		2Eh	; .
		.db		0FCh	; �
		.db		39h	; 9
		.db		0FCh	; �
		.db		3Ah	; :
		.db		0FCh	; �
		.db		38h	; 8
		.db		0FCh	; �
		.db		42h	; B
		.db		0FCh	; �
		.db		43h	; C
		.db		0FEh	; �
		.db		0BEh	; �
		.db		0FEh	; �
		.db		0C2h	; �
		.db		0FCh	; �
		.db		90h	; �
		.db		0FEh	; �
		.db		0EEh	; �
		.db		0FCh	; �
		.db		6Bh	; k
		.db		0FCh	; �
		.db		6Ch	; l
		.db		0FCh	; �
		.db		84h	; �
		.db		0FCh	; �
		.db		87h	; �
		.db		0FCh	; �
		.db		88h	; �
		.db		0FEh	; �
		.db		0BDh	; �
		.db		0FEh	; �
		.db		0B7h	; �
		.db		0FEh	; �
		.db		0B8h	; �
		.db		0FEh	; �
		.db		0B9h	; �
		.db		0FEh	; �
		.db		0BBh	; �
		.db		0FEh	; �
		.db		0BCh	; �
		.db		0FEh	; �
		.db		0BAh	; �
		.db		0FCh	; �
		.db		94h	; �
		.db		0FCh	; �
		.db		95h	; �
		.db		0FCh	; �
		.db		70h	; p
		.db		0FCh	; �
		.db		71h	; q
		.db		0FCh	; �
		.db		72h	; r
		.db		0FCh	; �
		.db		73h	; s
		.db		0FCh	; �
		.db		74h	; t
		.db		0FCh	; �
		.db		75h	; u
		.db		0FCh	; �
		.db		76h	; v
		.db		0FCh	; �
		.db		77h	; w
		.db		0FCh	; �
		.db		78h	; x
		.db		0FCh	; �
		.db		86h	; �
		.db		0FCh	; �
		.db		79h	; y
		.db		0FCh	; �
		.db		7Ah	; z
		.db		0FCh	; �
		.db		7Bh	; {
		.db		0FCh	; �
		.db		7Ch	; |
		.db		0FCh	; �
		.db		7Dh	; }
		.db		0FCh	; �
		.db		7Eh	; ~
		.db		0FCh	; �
		.db		7Fh	; 
		.db		0FCh	; �
		.db		80h	; �
		.db		0FCh	; �
		.db		81h	; �
		.db		0FEh	; �
		.db		0C3h	; �
		.db		0FEh	; �
		.db		0C4h	; �
		.db		0FEh	; �
		.db		0C5h	; �
		.db		0FEh	; �
		.db		0C6h	; �
		.db		0FEh	; �
		.db		0C7h	; �
		.db		0FEh	; �
		.db		0C8h	; �
		.db		0FEh	; �
		.db		0BFh	; �
		.db		0FEh	; �
		.db		0C0h	; �
		.db		0FEh	; �
		.db		0C1h	; �
p79loc_6660:
		.db		1
		.db		3
		.db		53h	; S
		.db		0FEh	; �
		.db		0C9h	; 	
		.db		0FEh	; �
		.db		0CAh	; 
		.db		0FEh	; �
		.db		0F1h	; �
p79loc_6669:
		.db		2
		.db		10h
		.db		7
		.db		23h	; #
		.db		5Ah	; Z
		.db		0
		.db		53h	; S
		.db		0FCh	; �
		.db		61h	; a
		.db		0FCh	; �
		.db		62h	; b
		.db		0FCh	; �
		.db		63h	; c
		.db		0FCh	; �
		.db		64h	; d
		.db		0FCh	; �
		.db		65h	; e
		.db		0FCh	; �
		.db		66h	; f
		.db		0FCh	; �
		.db		67h	; g
		.db		0FCh	; �
		.db		68h	; h
		.db		0FCh	; �
		.db		69h	; i
		.db		0FCh	; �
		.db		6Ah	; j
		.db		0FCh	; �
		.db		6Dh	; m
		.db		0FCh	; �
		.db		6Eh	; n
		.db		0FCh	; �
		.db		6Fh	; o
		.db		0FFh
		.db		0B2h	; �
		.db		0FFh
		.db		0B3h	; �
		.db		0FCh	; �
		.db		5Ah	; Z
		.db		0FCh	; �
		.db		5Bh	; [
		.db		0FCh	; �
		.db		5Ch	; \
		.db		0FCh	; �
		.db		5Dh	; ]
		.db		0FCh	; �
		.db		5Eh	; ^
		.db		0FCh	; �
		.db		5Fh	; _
		.db		0FCh	; �
		.db		60h	; `
p79loc_669C:
		.db		2
		.db		0Fh
		.db		4
		.db		28h	; (
		.db		29h	; )
		.db		0FCh	; �
		.db		8Ch	; 
		.db		0FEh	; �
		.db		0DCh	; �
		.db		0FEh	; �
		.db		0DDh	; �
		.db		0FCh	; �
		.db		8Dh	; 
		.db		0FEh	; �
		.db		0DEh	; �
		.db		0FCh	; �
		.db		8Eh	; �
		.db		0FEh	; �
		.db		0DFh	; �
		.db		0FCh	; �
		.db		8Fh	; �
		.db		0FEh	; �
		.db		0E0h	; �
		.db		0FEh	; �
		.db		0E1h	; �
		.db		0FEh	; �
		.db		0E2h	; �
		.db		0FEh	; �
		.db		0E3h	; �
		.db		0FEh	; �
		.db		0E4h	; �
		.db		0FEh	; �
		.db		0F2h	; �
		.db		0FEh	; �
		.db		0F3h	; �
		.db		0FFh
		.db		0F4h	; �
		.db		0FFh
		.db		0F5h	; �
		.db		0FFh
		.db		0F6h	; �
		.db		0FFh
		.db		0F7h	; �
p79loc_66C7:
		.db		1
		.db		0Ah
		.db		30h	; 0
		.db		0FCh	; �
		.db		3
		.db		0FCh	; �
		.db		4
		.db		0FCh	; �
		.db		5
		.db		0FCh	; �
		.db		6
		.db		0FCh	; �
		.db		7
		.db		0FCh	; �
		.db		8
		.db		0FCh	; �
		.db		9
		.db		0FCh	; �
		.db		0Ah
		.db		0FCh	; �
		.db		0Bh
		.db		0FCh	; �
		.db		0Ch
p79loc_66DE:
		.db		1
		.db		0Ch
		.db		3Eh	; >
		.db		0FCh	; �
		.db		0Dh
		.db		0FCh	; �
		.db		0Eh
		.db		0FCh	; �
		.db		0Fh
		.db		0FCh	; �
		.db		10h
		.db		0FCh	; �
		.db		11h
		.db		0FCh	; �
		.db		12h
		.db		0FCh	; �
		.db		13h
		.db		0FCh	; �
		.db		14h
		.db		0FCh	; �
		.db		15h
		.db		0FCh	; �
		.db		16h
		.db		0FCh	; �
		.db		17h
		.db		0FCh	; �
		.db		18h
p79loc_66F9:
		.db		1
		.db		6
		.db		42h	; B
		.db		0FCh	; �
		.db		19h
		.db		0FCh	; �
		.db		1Ah
		.db		0FCh	; �
		.db		1Bh
		.db		0FCh	; �
		.db		1Ch
		.db		0FCh	; �
		.db		1Dh
		.db		0FCh	; �
		.db		1Eh
p79loc_6708:
		.db		1
		.db		2
		.db		3Ch	; <
		.db		0FFh
		.db		5Eh	; ^
		.db		0FFh
		.db		5Fh	; _
p79loc_670F:
		.db		2
		.db		12h
		.db		1
		.db		48h	; H
		.db		46h	; F
		.db		0
		.db		10h
		.db		0
		.db		11h
		.db		6
		.db		1Fh
		.db		3
		.db		1Fh
		.db		0
		.db		12h
		.db		8
		.db		1Fh
		.db		7
		.db		1Fh
		.db		4
		.db		1Fh
		.db		1
		.db		1Fh
		.db		2
		.db		1Fh
		.db		5
		.db		1Fh
		.db		9
		.db		1Fh
		.db		0Bh
		.db		1Fh
		.db		0Ch
		.db		1Fh
		.db		0Dh
		.db		1Fh
		.db		0
		.db		1Bh
		.db		0
		.db		1Ch
		.db		0
		.db		13h
		.db		0
		.db		14h
p79loc_673A:
		.db		2
		.db		0
		.db		1
		.db		47h	; G
		.db		56h	; V
		.db		0
		.db		16h
p79loc_6741:
		.db		1
		.db		2
		.db		37h	; 7
		.db		0
		.db		16h
		.db		0
		.db		15h
p79loc_6748:
		.db		1
		.db		4
		.db		2Ah	; *
		.db		0
		.db		17h
		.db		0
		.db		18h
		.db		0
		.db		19h
		.db		0
		.db		15h
p79loc_6753:
		.db		1
		.db		5
		.db		2Ah	; *
		.db		0
		.db		17h
		.db		0
		.db		18h
		.db		0
		.db		20h
		.db		0
		.db		19h
		.db		0
		.db		15h
p79loc_6760:
		.db		1
		.db		3
		.db		2Ah	; *
		.db		0
		.db		18h
		.db		0
		.db		19h
		.db		0
		.db		15h
p79loc_6769:
		.db		1
		.db		2
		.db		22h	; "
		.db		0
		.db		1Ah
		.db		0
		.db		15h
p79loc_6770:
		.db		1
		.db		2
		.db		38h	; 8
		.db		0
		.db		19h
		.db		0
		.db		15h
p79loc_6777:
		.db		1
		.db		2
		.db		66h	; f
		.db		0
		.db		19h
		.db		0
		.db		15h
p79loc_677E:
		.db		1
		.db		2
		.db		67h	; g
		.db		0
		.db		19h
		.db		0
		.db		15h
p79loc_6785:
		.db		1
		.db		2
		.db		21h	; !
		.db		0
		.db		1Ah
		.db		0
		.db		15h
p79loc_678C:
		.db		1
		.db		1
		.db		55h	; U
		.db		0
		.db		15h
p79loc_6791:
		.db		1
		.db		8
		.db		36h	; 6
		.db		1
		.db		4Ch	; L
		.db		0
		.db		4Dh	; M
		.db		0FFh
		.db		0A4h	; �
		.db		0FFh
		.db		0CCh	; 
		.db		0FCh	; �
		.db		9Ah	; �
		.db		0FCh	; �
		.db		9Bh	; �
		.db		82h	; �
		.db		49h	; I
		.db		82h	; �
		.db		52h	; R
p79loc_67A4:
		.db		1
		.db		0Dh
		.db		27h	; '
		.db		0
		.db		1Fh
		.db		1
		.db		1Fh
		.db		2
		.db		1Fh
		.db		3
		.db		1Fh
		.db		4
		.db		1Fh
		.db		5
		.db		1Fh
		.db		6
		.db		1Fh
		.db		7
		.db		1Fh
		.db		8
		.db		1Fh
		.db		9
		.db		1Fh
		.db		0Bh
		.db		1Fh
		.db		0Ch
		.db		1Fh
		.db		0Dh
		.db		1Fh
p79loc_67C1:
		.db		3
		.db		2
		.db		3
		.db		1
		.db		45h	; E
		.db		1Fh
		.db		1Ch
		.db		82h	; �
		.db		4Dh	; M
		.db		82h	; �
		.db		4Bh	; K
		.db		82h	; �
		.db		4Eh	; N
		.db		82h	; �
		.db		4Fh	; O
		.db		82h	; �
		.db		50h	; P
		.db		82h	; �
		.db		51h	; Q
p79loc_67D4:
		.db		1
		.db		2
		.db		4Ch	; L
		.db		10h
		.db		40h	; @
		.db		1
		.db		4Eh	; N
p79loc_67DB:
		.db		1
		.db		2
		.db		4Bh	; K
		.db		10h
		.db		40h	; @
		.db		2
		.db		4Eh	; N
p79loc_67E2:
		.db		1
		.db		2
		.db		4Ah	; J
		.db		10h
		.db		40h	; @
		.db		3
		.db		4Eh	; N
p79loc_67E9:
		.db		1
		.db		2
		.db		4Eh	; N
		.db		10h
		.db		40h	; @
		.db		4
		.db		4Eh	; N
p79loc_67F0:
		.db		1
		.db		2
		.db		4Fh	; O
		.db		10h
		.db		40h	; @
		.db		0
		.db		4Eh	; N
p79loc_67F7:
		.db		1
		.db		2
		.db		4Dh	; M
		.db		10h
		.db		40h	; @
		.db		0
		.db		4Fh	; O
p79loc_67FE:
		.db		1
		.db		1
		.db		0
		.db		1Fh
		.db		12h
		.db		1Fh
		.db		24h	; $
		.db		1Fh
		.db		36h	; 6
		.db		1Fh
		.db		48h	; H
		.db		1Fh
		.db		5Ah	; Z
		.db		1Fh
		.db		6Ch	; l
		.db		1Fh
		.db		7Eh	; ~
p79loc_680F:
		.db		1
		.db		1
		.db		2Eh	; .
		.db		0
		.db		40h	; @
p79loc_6814:
		.db		1
		.db		2
		.db		2Eh	; .
		.db		0
		.db		40h	; @
		.db		0
		.db		0D6h	; �
p79loc_681B:
		.db		2
		.db		1
		.db		0
		.db		62h	; b
		.db		63h	; c
		.db		0
		.db		59h	; Y
p79loc_6822:
		.db		1
		.db		0Ch
		.db		62h	; b
		.db		0
		.db		10h
		.db		0
		.db		11h
		.db		6
		.db		1Fh
		.db		3
		.db		1Fh
		.db		8
		.db		1Fh
		.db		7
		.db		1Fh
		.db		4
		.db		1Fh
		.db		1
		.db		1Fh
		.db		2
		.db		1Fh
		.db		5
		.db		1Fh
		.db		9
		.db		1Fh
		.db		0Ch
		.db		1Fh
p79loc_683D:
		.db		2
		.db		0
		.db		1
		.db		47h	; G
		.db		64h	; d
		.db		0Eh
		.db		1Fh
p79loc_6844:
		.db		2Eh	; .
		.db		2Dh	; -
		.db		31h	; 1
		.db		36h	; 6
		.db		3Bh	; ;
		.db		30h	; 0
p79loc_684A:
		.db		5Eh	; ^
		.db		60h	; `
		.db		62h	; b
		.db		63h	; c
		.db		64h	; d
		.db		65h	; e
		.db		68h	; h
		.db		6Bh	; k
		.db		5Bh	; [

; =============== S U B	R O U T	I N E =======================================
p79sub_6853:
		set		monAbandon, (iy+monFlags)
		ret
; End of function p79sub_6853

; ---------------------------------------------------------------------------
; START	OF FUNCTION CHUNK FOR p79sub_5EFB

dispListName:
		ld		a, (MenuCurrent)
		cp		10h
		jr		z, p79loc_6860
		dec		hl

p79loc_6860:
		ld		b, 5
		jr		p79loc_686C
; ---------------------------------------------------------------------------

p79loc_6864:
		call	p79sub_6913
		ld		hl, 85E7h
		ld		b, 8

p79loc_686C:
		; p79sub_5EFB+979j
		inc		hl
		ld		a, (hl)
		or		a
		jr		z, p79loc_6876
		call	j_PutC
		djnz	p79loc_686C

p79loc_6876:
		call	j_EraseEOL
		ret
; END OF FUNCTION CHUNK	FOR p79sub_5EFB
; ---------------------------------------------------------------------------

PrevContext:
		call	ZIfMatrixMenu
		ret		c
		res		saIndic, (iy+newIndicFlags)
		call	SaveSavedFlags
		call	j_POPCX
		set		grfSplitOverride, (iy+sGrFlags)
		ret

; =============== S U B	R O U T	I N E =======================================


CompareContext:
		ld		bc, 12h
		ld		hl, p79loc_6896
		cpir
		ret
; End of function CompareContext

p79loc_6896:
		.db		5Ah	; Z
		.db		59h	; Y
		.db		41h	; A
		.db		42h	; B
		.db		45h	; E
		.db		46h	; F
		.db		47h	; G
		.db		4Bh	; K
		.db		4Ch	; L
		.db		4Dh	; M
		.db		4Eh	; N
		.db		4Fh	; O
		.db		52h	; R
		.db		53h	; S
		.db		55h	; U
		.db		57h	; W
		.db		54h	; T
		.db		56h	; V

; =============== S U B	R O U T	I N E =======================================


p79sub_68A8:
		; p79sub_58B7+2CCp
		ld		bc, 0Bh
		ld		hl, p79loc_68B1
		cpir
		ret
; End of function p79sub_68A8

p79loc_68B1:
		.db		44h	; D
		.db		45h	; E
		.db		4Bh	; K
		.db		4Ch	; L
		.db		8Ah	; 

		.db		8Bh	; 
		.db		96h	; �
		.db		97h	; �
		.db		9Ah	; �
		.db		9Bh	; �
		.db		0FCh	; �
p79loc_68BC:
		.db		1
		.db		2
		.db		20h
		.db		0
		.db		1Eh
		.db		0
		.db		1Dh
p79loc_68C3:
		.db		1
		.db		2
		.db		65h	; e
		.db		0
		.db		1Eh
		.db		0
		.db		1Dh
p79loc_68CA:
		.db		1
		.db		0
		.db		1Eh
		.db		0
		.db		3Ch	; <

; =============== S U B	R O U T	I N E =======================================


p79sub_68CF:
		ld		b, 0Ah

p79loc_68D1:
		ld		a, (hl)
		inc		hl
		cp		d
		jr		nz, p79loc_68D9
		ld		a, (hl)
		cp		e
		ret		z

p79loc_68D9:
		inc		hl
		djnz	p79loc_68D1
		ret
; End of function p79sub_68CF


; =============== S U B	R O U T	I N E =======================================


p79sub_68DD:
		ld		hl, p79loc_65C0
		call	p79sub_68CF
		jr		z, p79loc_68F5
		ld		hl, p79loc_65A9
		call	p79sub_68CF
		jr		z, p79loc_68F5
		ld		hl, p79loc_65D7
		call	p79sub_68CF
		jr		nz, p79loc_6908

p79loc_68F5:
		ld		a, e
		ld		(keyExtend), a
		ld		a, d
		call	j_ConvKeyToTok
		call	ZeroOP1
		ld		hl, 8479h
		ld		(hl), d
		inc		hl
		ld		(hl), e
		jr		p79loc_690F
; ---------------------------------------------------------------------------

p79loc_6908:
		call	p79sub_54DF
		ret		c
		call	Page0Call_328B

p79loc_690F:
		rst		10h
		ret		c
		jr		p79loc_6919

; =============== S U B	R O U T	I N E =======================================


p79sub_6913:
		; p79sub_5EFB:p79loc_6864p
		push	bc
		call	ChkFindSym
		pop		bc
		ret		c

p79loc_6919:
		call	HLMinus5
		ld		a, (hl)
		or		a
		ret		z
		ld		a, 2Ah ; '*'
		call	j_PutC
		ret
; End of function p79sub_6913


; =============== S U B	R O U T	I N E =======================================


p79sub_6925:
		call	p79sub_4EFB
		jr		z, p79loc_692E
		call	p79sub_4F07
		ret		nz

p79loc_692E:
		ld		a, (MenuCurrent)
		cp		b
		jr		nz, p79loc_6935
		xor		a

p79loc_6935:
		ld		(unk_984B), a
		ld		a, b
		ret
; End of function p79sub_6925

; ---------------------------------------------------------------------------

ForceFullScreen:
		call	Bit_VertSplit
		jr		nz, p79loc_6943
		call	page0_17D6
		ret		z

p79loc_6943:
		call	j_SetNorm_Vals
		res		grfSplit, (iy+sGrFlags)
		res		vertSplit, (iy+sGrFlags)
		jp		SetTblGraphDraw

; =============== S U B	R O U T	I N E =======================================


p79sub_6951:
		ld		a, (unk_85E2)
		ld		hl, 85E0h
		sub		(hl)
		cp		8
		ret		c
		ld		a, (winTop+1)
		dec		a
		ld		l, a
		ld		h, 1
		ld		a, 1Fh
		jr		p79loc_696B
; End of function p79sub_6951


; =============== S U B	R O U T	I N E =======================================


p79sub_6966:
		ld		hl, 101h
		ld		a, 1Eh

p79loc_696B:
		ld		de, (curRow)
		ld		(curRow), hl
		call	j_PutC
		ld		(curRow), de
		ret
; End of function p79sub_6966


; =============== S U B	R O U T	I N E =======================================


p79sub_697A:
		; p79sub_5695+104p
		ld		a, 1
		ld		(curRow+1), a
		ld		a, 3Ah ; ':'
		call	j_PutC
		ret
; End of function p79sub_697A


; =============== S U B	R O U T	I N E =======================================


p79sub_6985:
		call	p79sub_698E
		ld		hl, OP1M
		set		0, (hl)
		ret
; End of function p79sub_6985


; =============== S U B	R O U T	I N E =======================================


p79sub_698E:
		ld		hl, p79loc_5E20
		dec		a
		add		a, a
		jr		p79loc_6996
; ---------------------------------------------------------------------------

p79loc_6995:
		; p79sub_69A9+3j ...
		dec		a

p79loc_6996:
		add		a, l
		ld		(OP1M), a
		xor		a
		ld		(OP1+3), a
		ld		l, 3
		ld		(OP1), hl
		ret
; End of function p79sub_698E


; =============== S U B	R O U T	I N E =======================================


Page79_3363:
		ld		hl, 5E10h
		jr		p79loc_6995
; End of function Page79_3363


; =============== S U B	R O U T	I N E =======================================


p79sub_69A9:
		ld		hl, 5E40h
		jr		p79loc_6995
; End of function p79sub_69A9

; ---------------------------------------------------------------------------

sDone:
		ld		a, (curGX2)

Page79_385B:
		call	IsFuncMode
		jr		nz, Page79_3363
		call	IsParametricMode
		jr		nz, p79sub_698E
		call	IsRecursiveMode
		jr		z, p79sub_69A9

; =============== S U B	R O U T	I N E =======================================


serrort:
		ld		hl, 5E80h
		jr		p79loc_6995
; End of function serrort

; ---------------------------------------------------------------------------

p79loc_69C5:
		call	p79sub_6ECD

Page79_3AA1:
		xor		a
		ld		(ioFlag), a
		ld		(winTop), a
		ld		(varClass), a
		ld		(sndRecState), a
		set		grfSplitOverride, (iy+sGrFlags)
		call	j_DeselectAllVars
		ld		hl, p79loc_6EC0
		call	AppInit
		set		inGroup, (iy+groupFlags)
		res		4, (iy+26h)
		res		6, (iy+26h)

p79loc_69EE:
		res		inDelete, (iy+ioDelFlag)
		call	p79sub_7282
		call	FindGroupSym
		jp		c, p79loc_6D4E
		ex		de, hl
		ld		(arcPtr), hl
		ld		a, b
		ld		(arcPage), a
		ld		de, 1
		call	Page0Call_2CC7
		ld		a, (arcPage)
		ld		hl, (arcPtr)
		call	Page0Call_2CCD
		ld		e, a
		push	de
		ld		(arcPtr), hl
		ld		de, 1
		call	Page0Call_2CC7
		ld		a, (arcPage)
		ld		hl, (arcPtr)
		pop		de
		call	Page0Call_2CCD
		ld		d, a
		push	de
		ld		de, 1
		call	Page0Call_2CC7
		ld		a, (arcPage)
		ld		hl, (arcPtr)
		pop		de
		push	hl
		call	Page0Call_2CC7
		ld		a, (arcPage)
		ld		(arcPageEnd), a
		ld		hl, (arcPtr)
		ld		(arcPtrEnd), hl
		pop		hl
		or		a
		ld		a, b
		call	Page0Call_23F6
		jr		nc, p79loc_6A4F
		inc		a

p79loc_6A4F:
		ld		(arcPage), a
		call	Page0Call_2CCD
		ld		b, a
		ld		(arcPtr), hl
		ld		de, 1
		call	Page0Call_2CC7

p79loc_6A5F:
		call	Page0Call_2CC7
		djnz	p79loc_6A5F
		ld		de, 2
		call	Page0Call_2CC7
		ld		(arcPtr), hl
		call	j_ClrScrn
		ld		hl, 0
		ld		(curRow), hl
		ld		hl, aUngrouping
		ld		a, 66h ; 'f'
		bit		localizeHookActive, (iy+hookflags3)
		call	nz, j_call_character_hook
		call	j_PutS
		ld		hl, 1
		ld		(curRow), hl
		call	p79sub_7282
		ld		hl, 8479h
		ld		b, 8

p79loc_6A93:
		ld		a, (hl)
		or		a
		jr		z, p79loc_6A9D
		call	j_PutC
		inc		hl
		djnz	p79loc_6A93

p79loc_6A9D:
		call	j_newline

p79loc_6AA0:
		call	ZeroOP1
		ld		a, (arcPage)
		ld		hl, (arcPtr)
		ld		(unk_8395), a
		ld		(unk_8396), hl
		call	Page0Call_2CCD
		cp		0FFh
		jp		z, p79loc_6D4E
		res		7, a
		ld		(OP1), a
		or		a
		call	Page0Call_23F6
		jr		nc, p79loc_6AC9
		ld		a, (arcPage)
		inc		a
		ld		(arcPage), a

p79loc_6AC9:
		call	page0_17B0
		jr		z, p79loc_6AD7
		call	IS_A_LSTorCLST
		jr		z, p79loc_6AD7
		ld		b, 3
		jr		p79loc_6AF7
; ---------------------------------------------------------------------------

p79loc_6AD7:
		ld		a, (arcPage)
		call	Page0Call_2CCD
		ld		b, a
		call	CkOP1Real
		call	IS_A_LSTorCLST
		jr		nz, p79loc_6AE7
		dec		b

p79loc_6AE7:
		or		a
		inc		hl
		push	bc
		call	Page0Call_23FC
		jr		nc, p79loc_6AF6
		ld		a, (arcPage)
		inc		a
		ld		(arcPage), a

p79loc_6AF6:
		pop		bc

p79loc_6AF7:
		ld		de, 8479h

p79loc_6AFA:
		ld		a, (arcPage)
		call	Page0Call_2CCD
		ld		(de), a
		or		a
		inc		hl
		push	de
		push	bc
		call	Page0Call_23FC
		jr		nc, p79loc_6B11
		ld		a, (arcPage)
		inc		a
		ld		(arcPage), a

p79loc_6B11:
		pop		bc
		pop		de
		inc		de
		djnz	p79loc_6AFA
		ld		(unk_8390), hl
		ld		a, (OP1)
		cp		0Fh
		jp		z, p79loc_6D59
		cp		11h
		jp		z, p79loc_6D59
		cp		10h
		jp		z, p79loc_6D59
		call	ChkFindSym
		ld		(unk_83F1), hl
		jr		nc, p79loc_6B63

p79loc_6B33:
		call	Page0Call_2DC9
		ld		bc, (arcPtr)
		ld		hl, (unk_8390)
		or		a
		sbc		hl, bc
		call	EnoughMem
		jp		c, Page0Call_24F9
		ld		a, (arcPage)
		ld		hl, (arcPtr)
		call	Page0Call_23FA
		jr		nc, p79loc_6B52
		inc		a

p79loc_6B52:
		call	Page0Call_2CCD
		cp		4
		jp		c, p79loc_6C86
		call	OP1ToOP3
		call	OP1ToOP4
		jp		p79loc_7288
; ---------------------------------------------------------------------------

p79loc_6B63:
		ld		a, b
		or		a
		jr		z, p79loc_6B73
		call	OP1ToOP3
		call	OP1ToOP4
		ld		b, 43h ; 'C'
		xor		a
		jp		j_DisplayVarInfo
; ---------------------------------------------------------------------------

p79loc_6B73:
		ld		(unk_83F3), de
		ld		a, (arcPage)
		ld		hl, (arcPtr)
		call	Page0Call_23FA
		jr		nc, p79loc_6B83
		inc		a

p79loc_6B83:
		call	Page0Call_2CCD
		cp		4
		jr		c, p79loc_6B93
		call	OP1ToOP3
		call	OP1ToOP4
		jp		p79loc_7288
; ---------------------------------------------------------------------------

p79loc_6B93:
		call	OP1ToOP3
		call	OP1ToOP4
		xor		a
		ld		(sndRecState), a
		ld		hl, (unk_83F1)
		call	Page0Call_2DB7
		jr		nz, p79loc_6BAB
		call	page0_16F4
		jp		p79loc_6C74
; ---------------------------------------------------------------------------

p79loc_6BAB:
		bit		6, (iy+26h)
		jr		nz, p79loc_6BBF
		ld		a, 2
		ld		b, 42h ; 'B'
		jp		j_DisplayVarInfo
; ---------------------------------------------------------------------------

p79loc_6BB8:
		set		6, (iy+26h)

p79loc_6BBC:
		call	p79sub_7274

p79loc_6BBF:
		call	page0_16F4
		call	page0_18AE
		jr		nc, p79loc_6BCA
		call	SetTblGraphDraw

p79loc_6BCA:
		call	Page0Call_2DC9
		ld		de, (unk_83F3)
		ld		hl, (unk_83F1)
		ld		b, 0
		call	DelVar
		jp		p79loc_6B33
; ---------------------------------------------------------------------------

p79loc_6BDC:
		call	p79sub_7274
		ld		a, (unk_8395)
		ld		hl, (unk_8396)
		ld		(arcPage), a
		ld		(arcPtr), hl
		call	Page0Call_2CCD
		push	af
		ld		a, (arcPage)
		call	Page0Call_2CD3
		ld		a, (arcPage)
		push	af
		push	hl
		call	Page0Call_2CCD
		ld		e, a
		push	de
		ld		de, 1
		call	Page0Call_2CC7
		pop		de
		ld		a, (arcPage)
		call	Page0Call_2CCD
		ld		d, a
		pop		hl
		pop		af
		ld		(arcPage), a
		ld		(arcPtr), hl
		pop		af
		call	Page0Call_20F8
		jp		p79loc_6D33
; ---------------------------------------------------------------------------

p79loc_6C1C:
		call	p79sub_7274
		jp		p79loc_6D4E
; ---------------------------------------------------------------------------

p79loc_6C22:
		call	p79sub_7274
		call	j_moveDown
		ld		hl, (curRow)
		ld		(unk_8398), hl
		res		appTextSave, (iy+appFlags)
		call	j_saveShadow2
		ld		de, (unk_83F3)
		ld		hl, (unk_83F1)
		ld		a, (hl)
		ex		de, hl
		call	DataSize
		ld		(OP3), de
		call	PushRealO1
		jp		Page0Call_2DFF
; ---------------------------------------------------------------------------

Page79_2D0F:
		call	j_RclExit
		call	p79sub_7274
		ld		hl, (unk_8398)
		ld		(curRow), hl
		call	j_EraseEOW2
		set		4, (iy+26h)
		ld		hl, ioFlag
		set		5, (hl)
		ld		hl, (unk_83F1)
		res		7, (hl)
		call	OP1ToOP3
		call	page0_18AE
		jp		nc, p79loc_6B33
		call	page0_16F4

p79loc_6C74:
		call	p79sub_728E
		rst		10h
		ret		c
		ld		(unk_83F1), hl
		ld		(unk_83F3), de
		call	OP3ToOP1
		jp		p79loc_6BCA
; ---------------------------------------------------------------------------

p79loc_6C86:
		call	p79sub_728E
		ld		a, (arcPage)
		ld		hl, (arcPtr)
		push	af
		push	hl
		dec		hl
		dec		hl
		dec		hl
		call	Page0Call_2FC7
		res		4, (iy+26h)
		ld		(unk_83F1), de
		ex		de, hl
		ld		a, (hl)
		ld		(varType), a
		pop		hl
		pop		af
		ld		(arcPage), a
		ld		(arcPtr), hl
		call	Page0Call_2DE7
		ld		hl, ioFlag
		set		4, (hl)
		ld		hl, (unk_83F1)
		set		7, (hl)
		ld		a, (arcPage)
		ld		hl, (arcPtr)
		call	Page0Call_2CCD
		and		0E0h ; '�'
		ld		hl, (unk_83F1)
		ld		b, a
		ld		a, (hl)
		or		b
		ld		(hl), a
		bit		6, a
		call	nz, SetTblGraphDraw
		bit		5, a
		call	nz, SetTblGraphDraw
		ld		a, (arcPage)
		ld		hl, (arcPtr)
		call	Page0Call_2CD3
		ld		a, (arcPage)
		call	Page0Call_2CCD
		ld		e, a
		push	de
		ld		de, 1
		call	Page0Call_2CC7
		pop		de
		ld		a, (arcPage)
		call	Page0Call_2CCD
		ld		d, a
		dec		hl
		push	hl
		ld		a, (varType)
		call	Page0Call_20F8
		push	de
		pop		bc
		push	bc
		ex		de, hl
		call	EnoughMem
		jp		c, p79loc_6DB8
		push	de
		pop		bc
		or		1
		call	page0_1A99
		ld		(unk_83EF), de
		ld		a, (OP1+1)
		cp		5Eh ; '^'
		jr		nz, p79loc_6D1C
		ld		(newDataPtr), de

p79loc_6D1C:
		xor		a
		ld		(arcInfo), a
		ld		hl, (unk_83F1)
		call	Page0Call_2EDD
		pop		bc
		pop		hl
		ld		a, (arcPage)
		push	bc
		ld		(arcPtr), hl
		call	j_FlashToRam
		pop		de

p79loc_6D33:
		call	Page0Call_2CC7
		ld		a, (arcPage)
		ld		b, a
		ld		a, (arcPageEnd)
		sub		b
		jp		nz, p79loc_6AA0
		ld		hl, (arcPtrEnd)
		ld		bc, (arcPtr)
		or		a
		sbc		hl, bc
		jp		nz, p79loc_6AA0

p79loc_6D4E:
		res		inGroup, (iy+groupFlags)
		set		curLock, (iy+curFlags)
		jp		Page0Call_2CD9
; ---------------------------------------------------------------------------

p79loc_6D59:
		push	af
		call	SetTblGraphDraw
		ld		a, (arcPage)
		ld		hl, (arcPtr)
		ld		de, 9
		call	Page0Call_2CC7
		ld		(arcPage), a
		ld		(arcPtr), hl
		push	af
		push	hl
		call	Page0Call_2CCD
		ld		c, a
		call	Page0Call_2CDF
		ld		a, (arcPage)
		call	Page0Call_2CCD
		ld		b, a
		inc		bc
		inc		bc
		call	Page0Call_2CDF
		pop		hl
		pop		af
		ld		(arcPage), a
		pop		af
		push	bc
		push	hl
		call	Page0Call_2DC9
		call	Page0Call_2DE7
		pop		hl
		ld		(arcPtr), hl
		ld		hl, ioFlag
		set		4, (hl)
		ld		a, (varType)
		call	p79sub_71AB
		set		7, (hl)
		sub		0Fh
		call	Page0Call_2DF9
		ex		de, hl
		ld		hl, (arcPtr)
		ld		a, (arcPage)
		pop		bc
		push	bc
		call	j_FlashToRam
		pop		de
		jp		p79loc_6D33
; ---------------------------------------------------------------------------

p79loc_6DB8:
		ld		hl, (unk_83F1)
		call	page0_1F38
		jp		Page0Call_24F9
; ---------------------------------------------------------------------------

p79loc_6DC1:
		ld		a, (mcxCurApp)
		cp		5Ah ; 'Z'
		jp		z, p79loc_69C5
		call	p79sub_6ECD

Page79_3A9B:
		xor		a
		ld		(basic_prog), a
		ld		a, (basic_prog)
		res		curLock, (iy+curFlags)
		ld		hl, p79loc_6DE3
		ld		de, OP3
		call	Mov8B
		jp		Page0Call_30F9

p79loc_6DE3:
aGroup_79:		.asc 'GROUP',0
; ---------------------------------------------------------------------------

Page79_30C9:
		res		promptEdit, (iy+promptFlags)
		call	PushRealO1
		ld		hl, p79loc_6EAE
		call	AppInit
		call	j_DeselectAllVars
		xor		a
		ld		(varClass), a
		set		appTextSave, (iy+appFlags)
		set		curLock, (iy+curFlags)
		res		inDelete, (iy+ioDelFlag)
		set		grfSplitOverride, (iy+sGrFlags)
		call	RESETWINTOP

p79loc_6E10:
		ld		a, 29h ; ')'
		call	p79sub_6E19
		call	p79sub_6E2D
		ret

; =============== S U B	R O U T	I N E =======================================


p79sub_6E19:
		push	af
		call	j_ClrScrn

p79loc_6E1D:
		pop		af
		call	LoadMenuNum
		set		5, (iy+16h)
		ret
; End of function p79sub_6E19

; ---------------------------------------------------------------------------
		push	af
		jr		p79loc_6E1D

; =============== S U B	R O U T	I N E =======================================


p79sub_6E29:
		ld		a, 4
		jr		p79loc_6E2E
; End of function p79sub_6E29


; =============== S U B	R O U T	I N E =======================================


p79sub_6E2D:
		xor		a

p79loc_6E2E:
		ld		(sndRecState), a
		ret
; End of function p79sub_6E2D

p79loc_6E32:
		cp		9
		jp		z, JForceCmdNoChar
		cp		10h
		jr		z, p79loc_6E44
		cp		11h
		jr		nz, p79loc_6E4B
		call	j_DeselectAllVars
		jr		p79loc_6E47
; ---------------------------------------------------------------------------

p79loc_6E44:
		call	Page0Call_2CE5

p79loc_6E47:
		ld		a, 9
		jr		p79loc_6E55
; ---------------------------------------------------------------------------

p79loc_6E4B:
		cp		1Fh
		jr		nz, p79loc_6E10
		ld		a, (keyExtend)
		call	Page0Call_2CEB

p79loc_6E55:
		ld		(varClass), a
		ld		hl, p79loc_6EF3
		ld		(mcxMain), hl

p79loc_6E5E:
		ld		a, 5

p79loc_6E60:
		ld		(varType), a
		call	p79sub_6E29
		set		inGroup, (iy+groupFlags)
		ld		a, 0FFh
		ld		(varCurrent), a
		call	j_ClrScrn
		call	j_HomeUp
		xor		a
		ld		(ioFlag), a
		call	j_ClrWindow
		ld		hl, aSelect
		set		textInverse, (iy+textFlags)
		ld		a, 5
		bit		localizeHookActive, (iy+hookflags3)
		call	nz, j_call_character_hook
		call	j_PutS
		res		textInverse, (iy+textFlags)
		ld		hl, aDone_0
		ld		a, 67h ; 'g'
		bit		localizeHookActive, (iy+hookflags3)
		call	nz, j_call_character_hook
		call	j_PutS
		ld		a, 1
		call	Page0Call_2E5F
		ret
; ---------------------------------------------------------------------------
		call	Page0Call_2E53
		jp		JForceCmdNoChar
; ---------------------------------------------------------------------------
p79loc_6EAE:
		.dw		p79loc_6E32
		.dw		p79loc_6EF2
		.dw		p79loc_6ECD
		.dw		p79loc_6EF2
		.dw		p79loc_6EBB
		.dw		p79loc_6EF2
		.db		12h
p79loc_6EBB:
		set		curLock, (iy+curFlags)
		ret
p79loc_6EC0:
		.dw		p79loc_6EF3
		.dw		p79loc_6EF2
		.dw		p79loc_6ECD
		.dw		p79loc_6EF2
		.dw		p79loc_6EBB
		.dw		p79loc_6EF2
		.db		12h

; =============== S U B	R O U T	I N E =======================================


p79sub_6ECD:
p79loc_6ECD:
		res		curLock, (iy+curFlags)
		xor		a
		ld		(MenuCurrent), a
		ld		(unk_984B), a
		res		inGroup, (iy+groupFlags)
		res		noCompletionByte, (iy+groupFlags)
		res		6, (iy+26h)
		res		indicOnly, (iy+indicFlags)
		call	resetStacks
		call	j_DeselectAllVars
		res		grfSplitOverride, (iy+sGrFlags)
p79loc_6EF2:
		ret
p79loc_6EF3:
		cp		27h ; '''
		jp		z, p79loc_6DC1
		cp		17h
		jp		z, p79loc_6C22
		cp		19h
		jp		z, p79loc_6BDC
		cp		15h
		jp		z, p79loc_6C1C
		cp		18h
		jp		z, p79loc_6BBC
		cp		20h ; ' '
		jp		z, p79loc_6BB8
		cp		9
		jp		z, JForceCmdNoChar
		cp		1
		jr		nz, p79loc_6F22
		ld		a, (sndRecState)
		cp		4
		ret		nz
		jr		p79loc_6F60
; ---------------------------------------------------------------------------

p79loc_6F22:
		cp		2
		jr		nz, p79loc_6F3B
		ld		a, (sndRecState)
		cp		4
		jr		z, p79loc_6F60

p79loc_6F2D:
		cp		9
		ret		nz
		ld		a, (varClass)
		cp		9
		jp		nz, p79loc_6E5E
		jp		p79loc_6E60
; ---------------------------------------------------------------------------

p79loc_6F3B:
		cp		3
		jp		z, Page0Call_2E6B
		cp		4
		jp		z, Page0Call_2E71
		cp		5
		jp		z, Page0Call_2CF1
		cp		9
		jp		z, JForceCmdNoChar
		cp		1Fh
		jr		nz, p79loc_6F5B
		ld		a, (keyExtend)
		cp		0Eh
		jp		z, p79loc_6F78

p79loc_6F5B:
		ld		a, (sndRecState)
		jr		p79loc_6F2D
; ---------------------------------------------------------------------------

p79loc_6F60:
		ld		a, 9
		ld		(sndRecState), a
		xor		a
		ld		(winTop), a
		call	j_ClrScrn
		ld		a, 40h ; '@'
		ld		l, 1
		call	LoadMenuNumL
		set		5, (iy+16h)
		ret
; ---------------------------------------------------------------------------

p79loc_6F78:
		set		noCompletionByte, (iy+groupFlags)
		call	j_ArcChk
		ld		hl, 0
		ld		(unk_83F9), hl
		ld		(unk_83F7), hl
		call	p79sub_70D3
		push	bc
		ld		hl, 0FFFEh
		add		hl, de
		jp		nc, p79loc_70B3
		ld		hl, (unk_83F9)
		ld		(unk_83F7), hl
		call	CpyTo1FPST
		ld		hl, (unk_83F9)
		call	CMPPRGNAMLEN
		inc		a
		add		a, 6
		ld		c, a
		ld		b, 0
		add		hl, bc
		ld		(unk_83F5), bc
		inc		hl
		inc		hl
		inc		hl
		inc		hl
		inc		hl
		ld		(unk_83F9), hl
		ld		hl, (unk_839F)
		ld		a, h
		or		l
		jr		nz, p79loc_6FD5
		ld		hl, (unk_83A1)
		ld		de, (unk_83F9)
		ld		a, h
		ld		h, l
		ld		l, a
		or		a
		sbc		hl, de
		jr		nc, p79loc_6FD5
		ld		bc, (unk_83F9)
		call	Page0Call_2EB3
		jp		Page0Call_2559
; ---------------------------------------------------------------------------

p79loc_6FD5:
		ld		a, 8
		ld		(sndRecState), a
		call	j_ClrScrn
		ld		hl, 0
		ld		(curRow), hl
		ld		hl, (unk_83F7)
		ld		a, h
		or		l
		jp		z, p79loc_70C1
		set		checkBatteryLevelFirst, (iy+arcFlag)
		ld		bc, (unk_83F9)
		call	Page0Call_2EB3
		call	c, Page0Call_2ED7
		ld		(arcInfo), a
		ld		(unk_83EF), hl
		call	CpyTo1FPST
		pop		bc
		call	page0_1CC3
		ld		(unk_83F1), hl
		push	hl
		ld		hl, aCopying
		ld		a, 68h ; 'h'
		bit		localizeHookActive, (iy+hookflags3)
		call	nz, j_call_character_hook
		call	j_PutS
		call	j_newline
		ld		hl, aVariablesTo
		ld		a, 69h ; 'i'
		bit		localizeHookActive, (iy+hookflags3)
		call	nz, j_call_character_hook
		call	j_PutS
		call	j_newline
		ld		hl, aGroup
		ld		a, 6Ah ; 'j'
		bit		localizeHookActive, (iy+hookflags3)
		call	nz, j_call_character_hook
		call	j_PutS
		call	j_newline
		call	CpyTo1FPST
		ld		hl, 8479h
		ld		b, 8

p79loc_7048:
		ld		a, (hl)
		or		a
		jr		z, p79loc_7052
		call	j_PutC
		inc		hl
		djnz	p79loc_7048

p79loc_7052:
		ld		hl, 83F7h
		ld		(unk_83F3), hl
		ld		hl, (unk_83F9)
		dec		hl
		dec		hl
		dec		hl
		ld		(unk_83F9), hl
		set		writeSizeBytesOnly, (iy+groupFlags)
		call	Page0Call_2EAD
		res		writeSizeBytesOnly, (iy+groupFlags)
		ld		a, (arcInfo)
		ld		(arcPage), a
		ld		hl, (unk_83EF)
		ld		(arcPtr), hl
		ld		de, (unk_83F5)
		inc		de
		inc		de
		inc		de
		inc		de
		inc		de
		call	Page0Call_2CC7
		ld		a, (arcPage)
		ld		(arcInfo), a
		ld		hl, (arcPtr)
		ld		(unk_83EF), hl
		call	p79sub_723B
		res		indicOnly, (iy+indicFlags)
		res		noCompletionByte, (iy+groupFlags)
		res		prgmEdit, (iy+prgmFlags)
		pop		hl
		call	Page0Call_2CF7

p79loc_70A3:
		res		inGroup, (iy+groupFlags)
		call	j_moveDown
		call	j_DispDone
		ei
		xor		a
		ld		(varClass), a
		ret
; ---------------------------------------------------------------------------

p79loc_70B3:
		ld		a, 8
		ld		(sndRecState), a
		call	j_ClrScrn
		ld		hl, 0
		ld		(curRow), hl

p79loc_70C1:
		pop		hl
		ld		hl, aTooFewVars
		ld		a, 7Bh ; '{'
		bit		localizeHookActive, (iy+hookflags3)
		call	nz, j_call_character_hook
		call	j_PutS
		jr		p79loc_70A3

; =============== S U B	R O U T	I N E =======================================


p79sub_70D3:
		xor		a
		ld		d, a
		ld		e, a
		push	de
		ld		hl, symTable
		ld		b, 1

p79loc_70DC:
		push	bc
		ld		bc, (unk_982E)
		or		a
		sbc		hl, bc
		jp		c, p79loc_717B
		jp		z, p79loc_717B
		add		hl, bc
		bit		7, (hl)
		jp		z, p79loc_7171
		push	hl
		ld		a, (hl)
		and		1Fh
		cp		1
		jr		nz, p79loc_710C
		call	Page0Call_2407
		ld		a, (hl)
		cp		3
		jr		nz, p79loc_710A
		dec		hl
		dec		hl
		ld		a, (hl)
		cp		40h ; '@'
		jr		nz, p79loc_710A
		pop		hl
		jr		p79loc_7171
; ---------------------------------------------------------------------------

p79loc_710A:
		pop		hl
		push	hl

p79loc_710C:
		call	Page0Call_2406
		ld		c, (hl)
		inc		hl
		ld		a, (hl)
		inc		hl
		ld		b, (hl)
		pop		hl
		cp		62h ; 'b'
		jr		z, p79loc_7171
		cp		3Ah ; ':'
		jr		z, p79loc_7171
		cp		3Eh ; '>'
		jr		z, p79loc_7171
		cp		72h ; 'r'
		jr		z, p79loc_7171
		cp		3Fh ; '?'
		jr		z, p79loc_7171
		cp		40h ; '@'
		jr		z, p79loc_7171
		ld		e, a
		cp		5Eh ; '^'
		jr		z, p79loc_7137
		ld		a, c
		cp		2Ah ; '*'
		jr		z, p79loc_7171

p79loc_7137:
		call	IsBZero
		jr		nz, p79loc_7171
		ld		a, (hl)
		call	equ_or_newequ
		jr		z, p79loc_7155
		cp		4
		jr		z, p79loc_7152
		call	page0_17BE
		jr		nz, p79loc_715A
		ld		a, c

p79loc_714C:
		cp		41h ; 'A'
		jr		c, p79loc_7171
		jr		p79loc_715A
; ---------------------------------------------------------------------------

p79loc_7152:
		ld		a, e
		jr		p79loc_714C
; ---------------------------------------------------------------------------

p79loc_7155:
		call	Page0Call_2CFD
		jr		z, p79loc_7171

p79loc_715A:
		pop		bc
		pop		de
		inc		de
		push	de
		push	bc
		call	Page0Call_3885
		call	Page0Call_2EA7
		dec		hl
		dec		hl
		ld		a, (hl)
		inc		hl
		inc		hl
		pop		bc
		cp		b
		jr		c, p79loc_7172
		ld		b, a
		jr		p79loc_7172
; ---------------------------------------------------------------------------

p79loc_7171:
		pop		bc

p79loc_7172:
		call	Page0Call_387F
		or		a
		sbc		hl, de
		jp		p79loc_70DC
; ---------------------------------------------------------------------------

p79loc_717B:
		ld		a, 0Fh
		call	p79sub_71AB
		pop		bc
		bit		7, (hl)
		jr		z, p79loc_718B
		call	p79sub_71B3
		pop		de
		inc		de
		push	de

p79loc_718B:
		ld		a, 11h
		call	p79sub_71AB
		bit		7, (hl)
		jr		z, p79loc_719A
		call	p79sub_71B3
		pop		de
		inc		de
		push	de

p79loc_719A:
		ld		a, 10h
		call	p79sub_71AB
		bit		7, (hl)
		jr		z, p79loc_71A9
		call	p79sub_71B3
		pop		de
		inc		de
		push	de

p79loc_71A9:
		pop		de
		ret
; End of function p79sub_70D3


; =============== S U B	R O U T	I N E =======================================


p79sub_71AB:
		ld		hl, 8685h
		ld		e, a
		ld		d, 0
		add		hl, de
		ret
; End of function p79sub_71AB


; =============== S U B	R O U T	I N E =======================================


p79sub_71B3:
		push	bc
		sub		0Fh
		call	Page0Call_2DF9
		ld		(unk_83F3), hl
		ld		c, (hl)
		inc		hl
		ld		b, (hl)
		inc		bc
		inc		bc
		ld		(unk_83F7), bc
		ld		hl, 9
		ld		(unk_83F5), hl
		or		a
		adc	hl, bc
		ld		bc, (unk_83F9)
		adc	hl, bc
		ld		(unk_83F9), hl
		pop		bc
		ret
; End of function p79sub_71B3


; =============== S U B	R O U T	I N E =======================================


p79sub_71D9:
		ld		de, 0
		ld		(unk_83F9), de
		cp		0Fh
		jr		z, p79loc_720F
		cp		11h
		jr		z, p79loc_720F
		cp		10h
		jr		z, p79loc_720F
		call	Page0Call_3885

p79loc_71EF:
		ld		bc, (unk_83F9)
		ld		a, (arcInfo)
		ld		(arcPage), a
		ld		hl, (unk_83EF)
		ld		(arcPtr), hl
		call	Page0Call_2D03
		ld		a, (arcPage)
		ld		(arcInfo), a
		ld		hl, (arcPtr)
		ld		(unk_83EF), hl
		ret
; ---------------------------------------------------------------------------

p79loc_720F:
		ld		(unk_82DF), a
		xor		a
		ld		(unk_82DE), a
		ld		(unk_82DC), a
		ld		(unk_82DB), a
		ld		(unk_82DA), a
		ld		(unk_82D9), a
		ld		(unk_82D8), a
		ld		(unk_82D7), a
		ld		a, 3
		ld		(unk_82DD), a
		ld		a, (unk_82DF)
		call	p79sub_71B3
		ld		hl, 82DFh
		ld		(unk_83F1), hl
		jr		p79loc_71EF
; End of function p79sub_71D9


; =============== S U B	R O U T	I N E =======================================


p79sub_723B:
		ld		a, 0FFh
		ld		(varCurrent), a
		ld		a, 8
		ld		(sndRecState), a
		call	Page0Call_2D09
		ld		(OP1), a
		cp		1
		ld		a, 40h ; '@'
		jr		nz, p79loc_7258
		ld		a, 0FFh
		ld		(OP1M), a
		ld		a, 5Dh ; ']'

p79loc_7258:
		ld		(OP1+1), a

p79loc_725B:
		call	j_SrchVLstUp
		ret		c
		bit		7, (hl)
		jr		z, p79loc_725B
		set		indicOnly, (iy+indicFlags)
		push	hl
		call	Page0Call_2DC9
		pop		hl
		call	p79sub_71D9
		call	Page0Call_2F91
		jr		p79loc_725B
; End of function p79sub_723B


; =============== S U B	R O U T	I N E =======================================


p79sub_7274:

		call	j_rstrShadow2
		set		appTextSave, (iy+appFlags)
		ld		hl, ioErrState
		ld		a, (hl)
		ld		(hl), 0
		ret
; End of function p79sub_7274


; =============== S U B	R O U T	I N E =======================================


p79sub_7282:
		ld		hl, 85E7h
		jp		Mov9ToOP1
; End of function p79sub_7282

; ---------------------------------------------------------------------------

p79loc_7288:
		ld		b, 41h ; 'A'
		xor		a
		jp		j_DisplayVarInfo

; =============== S U B	R O U T	I N E =======================================


p79sub_728E:

		ld		a, (varType)
		call	page0_18AE
		jr		nc, locret_72A5
		rst		10h
		ret		c
		ld		(hl), 83h ; '�'
		ld		(chkDelPtr3), hl
		ld		(chkDelPtr1), de
		ld		h, a
		call	Page0Call_380D

locret_72A5:
		ret
; End of function p79sub_728E

; ---------------------------------------------------------------------------

UngroupVar:
		ld		de, 85E7h
		ld		hl, OP1
		ld		bc, 8
		ldir
		xor		a
		ld		(ioFlag), a
		ld		(winTop), a
		ld		(varClass), a
		ld		(sndRecState), a
		set		grfSplitOverride, (iy+sGrFlags)
		call	j_DeselectAllVars
		set		inGroup, (iy+groupFlags)
		res		4, (iy+26h)
		set		6, (iy+26h)
		jp		p79loc_69EE
; ---------------------------------------------------------------------------

GroupAllVars:
		call	FindGroupSym
		jr		c, p79loc_72DC
		call	DelVarArc

p79loc_72DC:
		res		promptEdit, (iy+promptFlags)
		call	PushRealO1
		xor		a
		ld		(varClass), a
		set		curLock, (iy+curFlags)
		res		inDelete, (iy+ioDelFlag)
		set		grfSplitOverride, (iy+sGrFlags)
		call	RESETWINTOP
		ld		a, 5
		ld		(varType), a
		ld		a, 0FFh
		ld		(varCurrent), a
		xor		a
		ld		(basic_prog), a
		ld		a, 9
		ld		(varClass), a
		set		inGroup, (iy+groupFlags)
		call	Page0Call_2CE5
		jp		p79loc_6F78
; ---------------------------------------------------------------------------

Page79_2D75:
		add		a, 9Ch ; '�'
		push	af
		sub		20h ; ' '
		add		a, a
		ld		b, a
		add		a, a
		add		a, b
		add		a, l
		ld		b, l
		ld		hl, p79loc_7354-1
		ld		e, a
		ld		d, 0
		add		hl, de
		push	hl
		push	bc
		ld		a, b
		cp		7
		jp		nc, ErrArgument
		call	p79sub_73AE

p79loc_7330:
		pop		bc
		pop		hl
		call	EOP1NotReal
		ld		e, (hl)
		dec		hl
		push	hl
		push	bc
		ld		d, 0
		ex		de, hl
		call	HLTimes9
		ld		de, cal_N
		add		hl, de
		ex		de, hl
		call	MovFrOP1
		pop		bc
		dec		b
		jr		z, p79loc_7351
		push	bc
		call	PopRealO1
		jr		p79loc_7330
; ---------------------------------------------------------------------------

p79loc_7351:
		pop		bc
		jr		p79loc_7376
p79loc_7354:
		.db		0
		.db		1
		.db		2
		.db		4
		.db		5
		.db		6
		.db		0
		.db		2
		.db		3
		.db		4
		.db		5
		.db		6
		.db		0
		.db		1
		.db		3
		.db		4
		.db		5
		.db		6
		.db		1
		.db		2
		.db		3
		.db		4
		.db		5
		.db		6
		.db		0
		.db		1
		.db		2
		.db		3
		.db		5
		.db		6
; ---------------------------------------------------------------------------

Page79_395D:
		push	af
		call	p79sub_73AE

p79loc_7376:
		pop		af
		push	af
		cp		21h ; '!'
		call	nz, p79sub_772C
		pop		af

Page79_38FD:
		sub		20h ; ' '
		jp		c, ErrArgument
		cp		0Dh
		jp		nc, ErrArgument
		add		a, a
		ld		e, a
		ld		d, 0
		ld		hl, p79loc_7394
		add		hl, de
		call	ldHLind
		jp		(hl)
p79loc_7394:
		.dw		p79loc_77C2
		.dw		p79loc_7AB4
		.dw		p79loc_7830
		.dw		p79loc_776F
		.dw		p79loc_77FC
		.dw		p79loc_7AED
		.dw		p79loc_7B79
		.dw		p79loc_7B8E
		.dw		p79loc_75F1
		.dw		p79loc_75E4
		.dw		p79loc_75AE
		.dw		p79loc_7CDA
		.dw		p79loc_7D2F

; =============== S U B	R O U T	I N E =======================================


p79sub_73AE:
		ld		hl, fin_N
		ld		de, cal_N
		ld		bc, 3Fh	; '?'
		ldir
		call	page0_172A
		ret		z
		ld		b, 7

p79loc_73BF:
		call	HLMINUS9
		set		6, (hl)
		djnz	p79loc_73BF
		ret
; End of function p79sub_73AE


; =============== S U B	R O U T	I N E =======================================


p79sub_73C7:
		call	p79sub_749B
		jr		nc, p79loc_73DD
		call	OP2Set1
		ld		hl, 8484h
		dec		(hl)
		call	InvOP2S
		call	cpop1op2
		jr		z, p79loc_73DD
		jr		nc, p79loc_73E7

p79loc_73DD:
		call	Plus1
		call	j_LnX
		ret
; ---------------------------------------------------------------------------
		call	errd_op1notpos

p79loc_73E7:
		rst		18h
		call	OP2Set2
		rst		30h
		rst		8
		call	PopRealO1
		call	fpdiv
		call	j_ATanH
		jp		Times2
; End of function p79sub_73C7


; =============== S U B	R O U T	I N E =======================================


p79sub_73F9:
		call	CkOP2FP0
		jp		z, OP2ToOP1
		rst		18h
		call	OP2ToOP1
		call	p79sub_749B
		jr		nz, p79loc_741E
		call	CkOP1Pos
		jp		z, PopRealO1
		call	CpyTo1FPST

p79loc_7411:
		call	Plus1
		rst		8
		call	PopRealO1
		call	InvOP1S
		jp		fpdiv
; ---------------------------------------------------------------------------

p79loc_741E:
		rst		8
		call	PopRealO1
		call	PushRealO2
		call	p79sub_73C7
		call	PopRealO2
		call	FPMult
		call	p79sub_749B
		push	af
		pop		af
		jr		nc, p79loc_7450
		call	j_SinHCosH
		rst		18h
		call	OP2ToOP1
		call	Plus1
		rst		8
		call	CpyTo1FPST
		call	fpdiv
		call	Plus1
		call	PopRealO2
		call	FPMult
		ret
; ---------------------------------------------------------------------------

p79loc_7450:
		call	j_EToX
		jp		Minus1
; End of function p79sub_73F9

p79loc_7456:
		.db		0
		.db		81h	; �
		.db		30h	; 0
		.db		60h	; `
		.db		00h
		.db		00h
		.db		00h
		.db		00h
		.db		00h
p79loc_745F:
		.db		0
		.db		82h	; �
		.db		36h	; 6
		.db		52h	; R
		.db		50h	; P
		.db		00h
		.db		00h
		.db		00h
		.db		00h

; =============== S U B	R O U T	I N E =======================================


p79sub_7468:
		call	CkOP2FP0
		jp		z, OP1Set1
		rst		18h
		call	OP2ToOP1
		call	p79sub_749B
		jr		nz, p79loc_7487
		rst		8
		call	PopRealO1
		call	ckop2pos
		push	af
		call	Plus1
		pop		af
		ret		z
		jp		fprecip
; ---------------------------------------------------------------------------

p79loc_7487:
		rst		8
		call	PopRealO1
		call	PushRealO2
		call	p79sub_73C7
		call	PopRealO2
		call	FPMult
		call	j_EToX
		ret
; End of function p79sub_7468


; =============== S U B	R O U T	I N E =======================================


p79sub_749B:
		call	p79sub_74A4
		push	af
		call	PopRealO1
		pop		af
		ret
; End of function p79sub_749B


; =============== S U B	R O U T	I N E =======================================


p79sub_74A4:
		rst		18h
		call	ClrOP1S

p79loc_74A8:
		call	OP2Set1
		jp		cpop1op2
; End of function p79sub_74A4

; ---------------------------------------------------------------------------
		ld		a, (OP1+8)
		call	ShRAcc
		cp		9
		ret		nz
		ld		d, 0Bh
		jp		Round
; ---------------------------------------------------------------------------
; START	OF FUNCTION CHUNK FOR p79sub_7BF5

p79loc_74BC:
		call	OP2Set1
		call	j_RndGuard
		call	page0_14E1
		ret		z
		ld		a, (OP1+1)
		cp		84h ; '�'
		jp		nc, ErrDomain
		call	cpop1op2
		jp		c, ErrDomain
		ret
; END OF FUNCTION CHUNK	FOR p79sub_7BF5

; =============== S U B	R O U T	I N E =======================================


p79sub_74D5:
		call	CkOP1FP0
		jp		z, OP2ToOP1
		rst		18h
		call	p79sub_73F9
		call	PopRealO2
		jp		fpdiv
; End of function p79sub_74D5


; =============== S U B	R O U T	I N E =======================================


p79sub_74E5:
		call	PUSHMCPLXO1
		call	p79sub_74D5

p79loc_74EB:
		rst		18h
		call	CpyTo1FPS2
		call	CpyTo2FPS1
		call	p79sub_7468
		call	PopRealO2
		jp		FPOPCPLX
; End of function p79sub_74E5


; =============== S U B	R O U T	I N E =======================================


p79sub_74FB:

		call	CkOP1FP0
		jr		nz, p79loc_7514
		call	OP2ToOP1
		rst		18h
		call	Minus1
		call	CpyTo2FPST
		call	FPMult
		call	TimesPt5
		rst		8
		jp		PopRealO1
; ---------------------------------------------------------------------------

p79loc_7514:
		call	PUSHMCPLXO1
		call	OP3ToOP1
		call	FPMult
		call	OP1ToOP3
		call	CpyTo1FPS1
		call	Plus1
		rst		8
		call	OP3ToOP1
		call	fpdiv
		call	OP1ToOP5
		call	OP4ToOP2
		call	FPSub
		call	CpyTo2FPS1
		call	fpdiv
		rst		8
		call	OP5ToOP1
		jp		FPOPCPLX
; End of function p79sub_74FB


; =============== S U B	R O U T	I N E =======================================


p79sub_7543:

		call	Plus1
		call	OP1ToOP5
		call	PopRealO2
		call	FPMult
		call	TimesPt5
		call	OP1ToOP6
		call	CpyTo2FPS2
		call	FPMult
		call	CpyTo2FPS1
		rst		30h
		call	OP1ToOP4
		call	FPSquare
		rst		18h
		call	OP5ToOP1
		call	Plus1
		call	CpyTo2FPS3
		call	FPMult
		call	OP2Set3
		call	fpdiv
		call	OP4ToOP2
		call	InvSub
		call	OP6ToOP2
		call	FPMult
		call	CpyTo2FPS1
		rst		30h
		call	CpyTo2FPS3
		call	FPMult
		call	PopRealO2
		call	FPSub
		call	CkOP1FP0
		jr		z, p79loc_75A8
		call	OP1ExOP4
		call	CpyTo2FPS2
		call	FPMult
		call	OP4ToOP2
		call	fpdiv

p79loc_75A8:
		call	FPOPCPLX
		jp		FPOPREAL
; End of function p79sub_7543

p79loc_75AE:
		call	PUSHMCPLXO1
		call	OP2ToOP1
		call	ErrD_OP1_LE_0
		call	OP1Set1
p79loc_75BA:
		rst		18h
		rst		8
		call	CpyTo1FPS1
		call	fpdiv
		rst		18h
		call	CpyTo1FPS3
		call	FDIV100
		call	CpyTo2FPS2
		call	fpdiv
		call	PopRealO2
		call	p79sub_73F9
		call	PopRealO2
		call	FPMult
		call	FPOPCPLX

; =============== S U B	R O U T	I N E =======================================


p79sub_75DE:
		; p79sub_760A+2Fp	...
		ld		hl, 8479h
		inc		(hl)
		inc		(hl)
		ret
; End of function p79sub_75DE

p79loc_75E4:
		rst		18h
		call	OP1Set1
		rst		18h
		call	OP2ToOP1
		call	ErrD_OP1_LE_0
		jr		p79loc_75BA
p79loc_75F1:
		call	PushRealO2
		call	p79sub_760A
		rst		18h
		call	CpyTo1FPS1
		call	p79sub_760A
		call	PopRealO2
		call	FPSub
		jp		FPOPREAL
; ---------------------------------------------------------------------------
; START	OF FUNCTION CHUNK FOR p79sub_760A

p79loc_7607:
		jp		ErrDomain
; END OF FUNCTION CHUNK	FOR p79sub_760A

; =============== S U B	R O U T	I N E =======================================


p79sub_760A:



		call	p79loc_74A8
		jr		z, p79loc_7607
		jr		c, p79loc_7607
		call	j_RndGuard
		ld		a, (OP1+1)
		cp		84h ; '�'
		jr		nc, p79loc_7607
		ld		b, 0
		cp		82h ; '�'
		jr		c, p79loc_7624
		inc		b
		jr		p79loc_7627
; ---------------------------------------------------------------------------

p79loc_7624:
		call	p79sub_75DE

p79loc_7627:
		bit		0, b
		push	af
		call	OP1ToOP4
		call	Trunc
		call	OP1ToOP5
		call	OP4ToOP2
		call	InvSub
		call	p79sub_75DE
		call	page0_14E1
		jr		nz, p79loc_7607
		ld		a, 32h ; '2'
		call	p79sub_7726
		jr		nc, p79loc_764F
		ld		hl, 64h	; 'd'
		call	j_SetXXXXOP2
		rst		30h

p79loc_764F:
		rst		18h
		call	OP4ToOP1
		call	FDIV100
		call	Trunc
		call	ErrD_OP1_LE_0
		call	OP1ToOP6
		call	p79sub_75DE
		call	OP5ToOP2
		call	InvSub
		call	ErrD_OP1_LE_0
		pop		af
		call	z, OP1ExOP6
		ld		a, 0Dh
		call	p79sub_7726
		jp		nc, ErrDomain
		call	OP1ToOP5
		call	j_ConvOP1
		cp		2
		jr		nz, p79loc_76BD
		call	CpyTo1FPST
		ld		hl, 76Ch
		call	j_SetXXXXOP2
		rst		30h
		call	OP1ToOP4
		call	OP2Set4
		call	fpdiv
		call	page0_14E1
		jr		nz, p79loc_76AD
		call	OP4ToOP1
		call	p79sub_771B
		jr		nz, p79loc_76A9
		call	OP2Set1
		call	p79sub_771B
		jr		z, p79loc_76AD

p79loc_76A9:
		ld		a, 1Dh
		jr		p79loc_76AF
; ---------------------------------------------------------------------------

p79loc_76AD:
		ld		a, 1Ch

p79loc_76AF:
		call	j_SetXXOP1
		call	OP6ToOP2
		call	cpop1op2
		jp		c, ErrDomain
		jr		p79loc_76CE
; ---------------------------------------------------------------------------

p79loc_76BD:
		ld		hl, p79loc_770F-1
		add		hl, de
		ld		a, (hl)
		call	j_SetXXOP1
		call	OP6ToOP2
		call	cpop1op2
		jp		c, ErrDomain

p79loc_76CE:
		call	OP5ToOP1
		ld		a, 3
		call	p79sub_7726
		push	af
		jr		c, p79loc_76DE
		call	FPSub
		jr		p79loc_76E4
; ---------------------------------------------------------------------------

p79loc_76DE:
		ld		a, 9
		call	j_SetXXOP2
		rst		30h

p79loc_76E4:
		ld		hl, p79loc_7456
		call	page0_D19
		ld		hl, page0_FC3
		call	page0_C20
		call	Trunc
		call	OP6ToOP2
		rst		30h
		call	OP1ToOP4
		call	PopRealO1
		pop		af
		call	c, Minus1
		ld		hl, p79loc_745F
		call	page0_D19
		call	Trunc
		call	OP4ToOP2
		rst		30h
		ret
; End of function p79sub_760A

p79loc_770F:
		.db		1Fh
		.db		1Ch
		.db		1Fh
		.db		1Eh
		.db		1Fh
		.db		1Eh
		.db		1Fh
		.db		1Fh
		.db		1Eh
		.db		1Fh
		.db		1Eh
		.db		1Fh

; =============== S U B	R O U T	I N E =======================================


p79sub_771B:
		ld		a, 82h ; '�'
		ld		(OP2+1), a
		call	fpdiv
		jp		page0_14E1
; End of function p79sub_771B


; =============== S U B	R O U T	I N E =======================================


p79sub_7726:
		call	j_SetXXOP2
		jp		cpop1op2
; End of function p79sub_7726


; =============== S U B	R O U T	I N E =======================================


p79sub_772C:
		ld		hl, cal_PY
		rst		20h
		rst		8
		ld		hl, 90CAh
		rst		20h
		call	fpdiv
		rst		18h
		ld		hl, cal_I
		rst		20h
		ld		hl, 90CAh
		call	page0_EC1
		call	FDIV100
		call	OP2Set1
		call	InvOP2S
		call	cpop1op2
		jp		c, ErrDomain
		jp		z, ErrDomain
		call	PopRealO2
		jp		p79sub_73F9
; End of function p79sub_772C


; =============== S U B	R O U T	I N E =======================================


p79sub_775B:
		call	OP1Set1
		bit		3, (iy+18h)
		ret		z
		rst		30h
		ret
; End of function p79sub_775B


; =============== S U B	R O U T	I N E =======================================


p79sub_7765:
		ld		hl, cal_PV
		rst		20h
		ld		hl, cal_FV
		jp		page0_C20
; End of function p79sub_7765

p79loc_776F:
		call	CkOP1FP0
		jr		nz, p79loc_7780
		call	p79sub_7765
		ld		hl, cal_PMT
		call	page0_EC1
		jp		InvOP1S
; ---------------------------------------------------------------------------

p79loc_7780:
		rst		18h
		call	p79sub_73C7
		rst		18h
		call	CpyTo1FPS1
		ld		hl, cal_PV
		call	page0_D19
		call	OP1ToOP4
		call	CpyTo2FPS1
		call	p79sub_775B
		ld		hl, cal_PMT
		call	page0_D19
		call	OP4ToOP2
		rst		30h
		call	OP1ToOP4
		call	p79sub_7765
		call	CpyTo2FPS1
		call	InvOP2S
		call	FPMult
		call	OP4ToOP2
		call	fpdiv
		call	p79sub_73C7
		call	PopRealO2
		call	fpdiv
		jp		FPOPREAL
p79loc_77C2:
		rst		8
		rst		18h
		call	p79sub_775B
		rst		18h
		call	CpyTo1FPS1
		ld		hl, cal_N
		call	Mov9ToOP2
		call	p79sub_74D5
		call	OP1ToOP4
		call	p79sub_7765
		call	OP4ToOP2
		call	fpdiv
		call	OP1ToOP4
		call	CpyTo1FPS1
		ld		hl, cal_PV
		call	page0_D19
		call	OP4ToOP2
		rst		30h
		call	InvOP1S
		call	PopRealO2
		call	fpdiv
		jp		FPOPREAL
p79loc_77FC:
		rst		18h
		ld		hl, cal_N
		call	Mov9ToOP2
		call	p79sub_74E5
		call	PushRealO2
		ld		hl, cal_PV
		call	page0_D19
		call	OP1ToOP4
		call	CpyTo2FPS1
		call	p79sub_775B
		ld		hl, cal_PMT
		call	page0_D19
		call	InvOP1S
		call	PopRealO2
		call	FPMult
		call	OP4ToOP2
		call	FPSub
		jp		FPOPREAL
p79loc_7830:
		rst		18h
		ld		hl, cal_N
		call	Mov9ToOP2
		call	InvOP2S
		call	p79sub_74E5
		call	PushRealO2
		ld		hl, cal_FV
		call	page0_D19
		rst		18h
		call	CpyTo2FPS2
		call	p79sub_775B
		ld		hl, cal_PMT
		call	page0_D19
		call	CpyTo2FPS1
		call	FPMult
		call	PopRealO2
		call	FPSub
		jp		FPOPCPLX

; =============== S U B	R O U T	I N E =======================================


p79sub_7862:
		ld		hl, cal_FV
		rst		20h
		ld		hl, cal_PV
		call	Mov9ToOP2
		call	CkOP1FP0
		jr		nz, p79loc_787B
		call	CkOP2FP0
		jr		z, p79loc_789F
		call	ckop2pos
		jr		p79loc_788C
; ---------------------------------------------------------------------------

p79loc_787B:
		call	CkOP1Pos
		ld		b, a
		call	CkOP2FP0
		ld		a, b
		jr		z, p79loc_788C
		call	ckop2pos
		add		a, b
		jr		nz, p79loc_78AD
		ld		a, b

p79loc_788C:
		ld		hl, cal_N
		rst		20h
		ld		hl, cal_PMT
		call	Mov9ToOP2
		ld		b, a
		call	CkOP1FP0
		jr		z, p79loc_789F
		call	CkOP2FP0

p79loc_789F:
		jp		z, ErrSignChange
		call	CkOP1Pos
		ld		c, a
		call	ckop2pos
		add		a, c
		add		a, b
		jr		z, p79loc_789F

p79loc_78AD:
		ld		hl, cal_N
		rst		20h
		ld		hl, cal_PMT
		call	Mov9ToOP2
		call	CkOP2FP0
		jr		nz, p79loc_78DC
		call	fprecip
		call	OP1ToOP4
		ld		hl, cal_PV
		rst		20h
		ld		hl, cal_FV
		call	page0_C20
		call	InvOP1S
		ld		hl, cal_PV
		call	page0_EC1
		call	OP4ToOP2
		call	p79sub_73F9
		ret
; ---------------------------------------------------------------------------

p79loc_78DC:
		call	OP2Set1
		call	cpop1op2
		jr		nz, p79loc_7912
		ld		hl, cal_PV
		rst		20h
		ld		hl, cal_PMT
		bit		3, (iy+18h)
		call	nz, page0_C20
		call	OP1ToOP3
		ld		hl, cal_PV
		rst		20h
		ld		hl, cal_FV
		call	page0_C20
		call	InvOP1S
		ld		hl, cal_PMT
		call	Mov9ToOP2
		call	FPSub
		call	BCALL_4120
		call	fpdiv
		ret
; ---------------------------------------------------------------------------

p79loc_7912:
		ld		hl, cal_PMT
		call	page0_D19
		rst		18h
		ld		hl, cal_PV
		rst		20h
		ld		hl, cal_FV
		call	page0_C20
		call	CpyTo2FPST
		rst		30h
		rst		18h
		ld		hl, cal_FV
		rst		20h
		ld		hl, cal_N
		call	page0_D19
		rst		18h
		ld		hl, cal_N
		rst		20h
		call	Plus1
		call	OP1ToOP5
		bit		3, (iy+18h)
		jr		z, p79loc_7949
		call	OP2Set2
		call	FPSub

p79loc_7949:
		call	TimesPt5
		call	CpyTo2FPS2
		call	InvOP2S
		call	FPMult
		call	CpyTo2FPST
		call	FPSub
		rst		18h
		ld		hl, cal_N
		rst		20h
		call	OP2Set2
		rst		30h
		bit		3, (iy+18h)
		jr		z, p79loc_7970
		call	OP2Set3
		call	FPSub

p79loc_7970:
		ld		hl, OP2
		ld		a, 60h ; '`'
		call	page0_1256
		call	fpdiv
		call	OP5ToOP2
		call	FPMult
		call	CpyTo2FPS3
		call	FPMult
		call	OP1ToOP4
		call	OP5ToOP1
		call	TimesPt5
		call	OP1ToOP5
		call	CpyTo2FPS1
		call	FPMult
		call	OP4ToOP2
		rst		30h
		call	CpyTo2FPS2
		call	CpyO2ToFPS3
		call	CpyTo2FPST
		call	CpyO2ToFPS2
		call	CpyO1ToFPS1
		call	OP1Set1
		call	CpyO1ToFPST
		ld		hl, cal_N
		rst		20h
		call	p79sub_7543
		rst		18h
		ld		a, 20h ; ' '
		push	af
		call	OP3Set1

p79loc_79C0:
		call	OP2Set1
		call	InvOP2S
		call	CpyTo1FPST
		call	cpop1op2
		jr		c, p79loc_79D0
		jr		nz, p79loc_79DF

p79loc_79D0:
		call	PopRealO1
		call	InvOP1S
		call	OP1ToOP3
		call	OP2Set0
		call	PushRealO2

p79loc_79DF:
		pop		af
		push	af
		cp		20h ; ' '
		jr		nz, p79loc_79F3
		ld		hl, cal_N
		push	hl
		rst		20h
		call	InvOP1S
		pop		de
		call	MovFrOP1
		jr		p79loc_7A04
; ---------------------------------------------------------------------------

p79loc_79F3:
		ld		a, (OP3M)
		or		a
		jr		z, p79loc_7A00
		ld		a, (OP3+1)
		cp		74h ; 't'
		jr		nc, p79loc_7A04

p79loc_7A00:
		pop		af
		jp		FPOPREAL
; ---------------------------------------------------------------------------

p79loc_7A04:
		; p79sub_7862+19Cj
		pop		af
		dec		a
		jp		z, ErrIterations
		push	af
		ld		hl, cal_N
		call	Mov9ToOP2
		call	CpyTo1FPST
		call	p79sub_74E5
		call	PushRealO2
		rst		18h
		ld		hl, cal_FV
		call	page0_D19
		rst		18h
		call	CpyTo2FPS3
		call	p79sub_775B
		ld		hl, cal_PMT
		call	page0_D19
		call	CpyTo2FPS2
		call	FPMult
		call	PopRealO2
		call	FPSub
		ld		hl, cal_PV
		call	page0_C25
		call	PopRealO3
		call	CpyTo4FPST
		rst		18h
		call	CpyTo1FPS2
		ld		hl, cal_N
		call	Mov9ToOP2
		call	p79sub_74FB
		call	PushRealO2
		rst		18h
		call	CpyTo2FPS4
		call	p79sub_775B
		call	CpyTo2FPS1
		call	FPMult
		bit		3, (iy+18h)
		jr		z, p79loc_7A6C
		call	CpyTo2FPS3
		rst		30h

p79loc_7A6C:
		ld		hl, cal_PMT
		call	page0_D19
		call	OP1ToOP4
		ld		hl, cal_FV
		call	Mov9ToOP2
		call	PopRealO1
		call	FPMult
		call	OP4ToOP2
		call	InvSub
		call	OP1ToOP5
		call	CpyTo1FPS1
		call	CpyTo2FPS2
		call	fpdiv
		call	PopRealO2
		call	FPMult
		call	OP5ToOP2
		call	FPSub
		rst		8
		call	PopRealO1
		call	fpdiv
		call	OP1ToOP3
		call	FPOPREAL
		call	PopRealO2
		rst		30h
		rst		18h
		jp		p79loc_79C0
; End of function p79sub_7862

p79loc_7AB4:
		call	p79sub_7862
		rst		18h
		ld		hl, cal_PY
		rst		20h
		ld		hl, 90CAh
		call	page0_EC1
		rst		8
		call	PopRealO1
		call	p79sub_73F9
		ld		hl, 90CAh
		call	page0_D19
		jp		p79sub_75DE

; =============== S U B	R O U T	I N E =======================================


p79sub_7AD2:
		; p79sub_7AFD+18p
		call	PopRealO1
		call	ErrD_OP1NotPosInt
		ld		a, (OP1+1)
		cp		84h ; '�'
		jp		nc, ErrDomain
		call	j_ConvOP1
		ret
; End of function p79sub_7AD2


; =============== S U B	R O U T	I N E =======================================


p79sub_7AE4:
		call	InvOP1S
		ld		de, cal_I
		jp		MovFrOP1
; End of function p79sub_7AE4

p79loc_7AED:
		call	PopRealO3
		call	CpyTo2FPST
		call	PushRealO2
		call	p79sub_7AE4
		call	p79sub_7AFD
		ret

; =============== S U B	R O U T	I N E =======================================


p79sub_7AFD:
		ld		a, (OP3)
		ld		(OP5M), a
		call	CpyTo1FPS1
		call	CpyTo2FPST
		call	cpop1op2
		jr		c, p79loc_7B11
		jp		nz, ErrDomain

p79loc_7B11:
		call	p79sub_7AD2
		push	de
		call	p79sub_7AD2
		dec		de
		ld		(OP5), de
		ld		hl, cal_PV
		rst		20h
		ld		hl, 0
		push	hl
		jr		p79loc_7B53
; ---------------------------------------------------------------------------

p79loc_7B27:
		ld		de, 1
		call	CpHLDE
		jr		nz, p79loc_7B38
		call	OP1Set0
		bit		3, (iy+18h)
		jr		nz, p79loc_7B44

p79loc_7B38:
		call	OP4ToOP1
		ld		hl, cal_I
		call	page0_D19
		call	p79sub_7B72

p79loc_7B44:
		call	OP4ToOP2
		call	InvSub
		rst		8
		ld		hl, cal_PMT
		rst		20h
		call	p79sub_7B72
		rst		30h

p79loc_7B53:
		call	p79sub_7B72
		call	OP1ToOP4
		pop		hl
		push	hl
		ld		de, (OP5)
		call	CpHLDE
		call	z, OP1ToOP6
		pop		hl
		pop		de
		call	CpHLDE
		jp		z, OP4ToOP1
		push	de
		inc		hl
		push	hl
		jr		p79loc_7B27
; End of function p79sub_7AFD


; =============== S U B	R O U T	I N E =======================================


p79sub_7B72:
		ld		a, (OP5M)
		ld		d, a
		jp		Round
; End of function p79sub_7B72

p79loc_7B79:
		call	PopRealO3
		call	p79sub_7AE4

; =============== S U B	R O U T	I N E =======================================


p79sub_7B7F:
		call	CpyTo1FPS1
		call	ErrD_OP1_0
		call	p79sub_7AFD
		call	OP6ToOP2
		jp		FPSub
; End of function p79sub_7B7F

p79loc_7B8E:
		call	PopRealO3
		call	p79sub_7AE4
		call	POPMCPLXO1
		call	PUSHMCPLXO1
		call	PUSHMCPLXO1
		call	p79sub_7B7F
		rst		18h
		call	CpyTo1FPS1
		call	Plus1
		call	CpyTo2FPS2
		call	FPSub
		call	ErrD_OP1_LE_0
		rst		18h
		ld		hl, cal_PMT
		rst		20h
		call	p79sub_7B72
		call	PopRealO2
		call	FPMult
		call	PopRealO2
		call	FPSub
		jp		FPOPCPLX

; =============== S U B	R O U T	I N E =======================================


p79sub_7BC7:
		call	CkOP1FP0
		jp		z, OP1Set1
		call	PUSHMCPLXO1
		call	p79sub_73F9
		jp		p79loc_74EB
; End of function p79sub_7BC7


; =============== S U B	R O U T	I N E =======================================


p79sub_7BD6:
		ld		hl, (unk_90CA)
; End of function p79sub_7BD6


; =============== S U B	R O U T	I N E =======================================


p79sub_7BD9:
		ld		a, h
		bit		7, a
		jp		nz, OP1Set0
		or		l
		jr		z, p79loc_7BF1
		ld		de, (unk_90CC)
		inc		de
		call	CpHLDE
		jp		z, OP1Set0
		call	j_GETL1TOP1A
		ret
; ---------------------------------------------------------------------------

p79loc_7BF1:
		call	CPYTO1EST
		ret
; End of function p79sub_7BD9


; =============== S U B	R O U T	I N E =======================================


p79sub_7BF5:



		call	OP1Set1
		ld		a, (unk_84D6)
		or		a
		ret		z
		ld		hl, (unk_90CA)
		ld		a, h
		or		l
		ret		z
		call	j_GETL2TOP1A
		jp		p79loc_74BC
; End of function p79sub_7BF5


; =============== S U B	R O U T	I N E =======================================


p79sub_7C09:
		push	af
		rst		18h
		call	OP1Set0
		rst		18h
		rst		18h
		rst		18h
		call	OP1Set1
		ld		hl, 0
		ld		(unk_90CA), hl

p79loc_7C1A:
		rst		18h
		rst		8
		call	CpyTo1FPS4
		call	p79sub_7BC7
		call	PUSHMCPLXO1
		call	OP1ToOP3
		call	CpyTo1FPS6
		call	CkOP1FP0
		push	af
		call	z, PushRealO2
		pop		af
		call	nz, PushRealO3
		ld		hl, (unk_90CA)
		ld		a, h
		or		l
		jr		nz, p79loc_7C45
		call	CkOP1FP0
		call	nz, CpyO1ToFPST
		jr		p79loc_7C5D
; ---------------------------------------------------------------------------

p79loc_7C45:
		ld		de, 1
		call	CpHLDE
		jr		nz, p79loc_7C5D
		call	OP2Set0
		call	CkOP1FP0
		jr		z, p79loc_7C65
		call	OP1Set1
		call	CpyO1ToFPST
		jr		p79loc_7C65
; ---------------------------------------------------------------------------

p79loc_7C5D:
		ld		hl, (unk_90CA)
		dec		hl
		call	p79sub_7BD9
		rst		8

p79loc_7C65:
		call	p79sub_7BD6
		call	FPSub
		call	OP1ToOP5
		call	CpyTo2FPS1
		call	FPMult
		call	OP1ToOP4
		call	PopRealO1
		call	OP5ToOP2
		call	FPMult
		call	CpyTo2FPS5
		rst		30h
		call	CpyO1ToFPS5
		pop		af
		push	af
		cp		1
		jr		z, p79loc_7CB6
		call	OP4ToOP1
		call	CpyTo2FPS2
		call	FPMult
		call	OP1ToOP3
		call	CpyTo2FPS4
		rst		30h
		call	CpyO1ToFPS4
		pop		af
		push	af
		cp		2
		jr		z, p79loc_7CB6
		call	OP3ToOP1
		call	CpyTo2FPS2
		call	FPMult
		call	CpyTo2FPS3
		rst		30h
		call	CpyO1ToFPS3

p79loc_7CB6:
		ld		de, (unk_90CA)
		ld		hl, (unk_90CC)
		pop		bc
		or		a
		sbc		hl, de
		ret		c
		push	bc
		call	p79sub_7BF5
		rst		8
		ld		hl, (unk_90CA)
		inc		hl
		ld		(unk_90CA), hl
		call	FPOPCPLX
		call	PopRealO1
		call	FPSub
		jp		p79loc_7C1A
; End of function p79sub_7C09

p79loc_7CDA:
		call	CPYTO1ES1
		call	FDIV100
		ld		a, 1
		call	p79sub_7C09
		ld		hl, 5
		call	DeallocFPS
		call	PopRealO1
		call	PopRealO2
		call	CkOP2FP0
		jp		nz, fpdiv
		ret

; =============== S U B	R O U T	I N E =======================================


p79sub_7CF8:
		call	CPYTO1EST
		ld		hl, (unk_90CC)
		inc		hl
		ld		(OP6), hl
		xor		a
		push	af
		jr		p79loc_7D0C
; ---------------------------------------------------------------------------

p79loc_7D06:
		ld		(OP6), hl
		call	j_GETL1TOOP1

p79loc_7D0C:
		call	CkOP1FP0
		jr		z, p79loc_7D22
		pop		af
		jr		nz, p79loc_7D19
		ld		a, (OP1)
		or		1

p79loc_7D19:
		push	af
		ld		hl, OP1
		xor		(hl)
		bit		7, a
		jr		nz, p79loc_7D2D

p79loc_7D22:
		ld		hl, (OP6)
		dec		hl
		ld		a, h
		or		l
		jp		z, ErrSignChange
		jr		p79loc_7D06
; ---------------------------------------------------------------------------

p79loc_7D2D:
		pop		af
		ret
; End of function p79sub_7CF8

p79loc_7D2F:
		call	p79sub_7CF8
		call	OP1Set1
		xor		a
		push	af
		rst		18h

p79loc_7D38:
		rst		18h
		ld		a, 20h ; ' '
		push	af
		call	OP1Set0
		ld		a, 3
		call	p79sub_7C09
		call	FPOPCPLX
		call	CpyTo2FPS3
		call	CpyTo1FPS2
		call	FPSub
		call	TimesPt5
		call	OP1ToOP4
		call	CpyTo2FPS3
		call	CpyTo1FPS1
		call	FPSub
		ld		hl, OP2
		ld		a, 60h ; '`'
		call	page0_1256
		call	fpdiv
		call	OP4ToOP2
		call	FPSub
		call	CpyO1ToFPS1
		call	CpyTo1FPS3
		call	CpyO1ToFPS4
		call	OP4ToOP1
		call	CpyO1ToFPS2
		call	CpyTo1FPST
		call	InvOP1S
		call	CpyTo2FPS5
		call	CpyO2ToFPST
		call	p79sub_7543
		rst		18h
		call	OP2Set1
		call	InvOP2S
		call	cpop1op2
		jp		c, p79loc_7E72
		jp		z, p79loc_7E72
p79loc_7D9E:
		call	PopRealO1
		ld		a, 2
		call	p79sub_7C09
		call	CpyTo2FPS6
		call	PopRealO1
		call	CkOP2FP0
		jr		z, p79loc_7DB7
		call	CpyTo2FPS5
		call	fpdiv

p79loc_7DB7:
		call	PopRealO3
		call	OP1ToOP6
		call	OP1ToOP4
		call	CpyTo1FPS4
		call	CpyTo2FPST
		call	p79sub_74FB
		call	CpyTo1FPS6
		call	CkOP1FP0
		jr		z, p79loc_7DEA
		call	OP2ToOP4
		call	CpyTo1FPS3
		call	OP6ToOP2
		call	fpdiv
		call	OP4ToOP2
		call	FPMult
		rst		8
		call	CpyTo1FPS6
		call	FPMult

p79loc_7DEA:
		call	OP1ToOP4
		call	OP1Set1
		call	CpyTo2FPS4
		call	CkOP2FP0
		call	z, OP2Set1
		rst		30h
		call	OP1ToOP3
		call	CpyTo1FPS2
		call	CpyTo2FPS5
		rst		30h
		call	BCALL_4120
		call	fpdiv
		call	OP4ToOP2
		call	InvSub
		call	OP1ToOP4
		call	CpyTo1FPS3
		call	CpyTo2FPS4
		call	CkOP2FP0
		jr		z, p79loc_7E24
		call	CpyTo2FPS4
		call	fpdiv

p79loc_7E24:
		call	OP4ToOP2
		rst		30h
		call	CpyTo2FPS3
		call	OP2ToOP3
		call	PopRealO6
		ld		de, 1Bh
		call	DeallocFPS1
		call	CkOP1FP0
		jr		z, p79loc_7E4F
		rst		8
		call	OP3ToOP1
		call	fpdiv
		call	CpyO1ToFPS3
		call	CpyTo2FPST
		rst		30h
		call	CpyO1ToFPST
		jr		p79loc_7E58
; ---------------------------------------------------------------------------

p79loc_7E4F:
		call	OP1Set1
		call	InvOP1S
		call	CpyO1ToFPST

p79loc_7E58:
		pop		bc
		pop		af
		push	af
		push	bc
		cp		2
		jr		z, p79loc_7EB3
		call	CpyTo1FPST
		call	OP2Set1
		call	InvOP2S
		call	cpop1op2
		jp		c, p79loc_7E72
		jp		nz, p79loc_7E99

p79loc_7E72:
		pop		bc
		pop		af
		or		a
		jr		nz, p79loc_7E85
		inc		a
		push	af
		call	OP1Set0
		ld		de, 1Bh
		call	DeallocFPS1
		jp		p79loc_7D38
; ---------------------------------------------------------------------------

p79loc_7E85:
		inc		a
		push	af
		push	bc
		call	CpyTo1FPST
		call	InvOP1S
		call	CpyO1ToFPS3
		call	OP1Set0
		call	CpyO1ToFPST
		jr		p79loc_7EC4
; ---------------------------------------------------------------------------

p79loc_7E99:
		call	CpyTo1FPST
		call	Plus1
		call	j_LnX
		call	OP6ToOP2
		call	FPMult
		ld		hl, p79loc_7EDB
		call	Mov9ToOP2
		call	cpop1op2
		jr		nc, p79loc_7E72

p79loc_7EB3:
		call	CpyTo1FPS3
		call	CkOP1FP0
		jp		z, p79loc_7ECD
		ld		a, (OP1+1)
		cp		74h ; 't'
		jp		c, p79loc_7ECD

p79loc_7EC4:
		pop		af
		dec		a
		push	af
		jp		nz, p79loc_7D9E
		jp		ErrIterations
; ---------------------------------------------------------------------------

p79loc_7ECD:
		pop		af
		pop		af
		call	PopRealO1
		ld		de, 24h	; '$'
		call	DeallocFPS1
		jp		p79sub_75DE
p79loc_7EDB:
		.db		0
		.db		82h	; �
		.db		23h	; #
		.db		02h
		.db		58h	; X
		.db		50h	; P
		.db		92h	; �
		.db		99h	; �
		.db		40h	; @