source/page02/initial.asm
changeset 41 9ef17625274f
parent 40 ba7bd14b7d7b
child 43 486c42a314bc
--- a/source/page02/initial.asm	Thu May 15 05:38:01 2014 -0400
+++ b/source/page02/initial.asm	Tue May 20 02:59:10 2014 -0400
@@ -2961,58 +2961,52 @@
 		call	ATan2
 		rst		8
 		jp		OP6ToOP1
-; End of function RToP
-
-Page02_3F51:
-		ld		hl, p02loc_4FD1
+
+InitContextA:
+		ld		hl, {+}
 		jp		ldHLind_AWord
-p02loc_4FD1:
-		.dw		Page0Call_3F6F
-		.dw		Page0Call_3A0B
-		.dw		Page0Call_3A11
-		.dw		Page0Call_3A17
-		.dw		Page0Call_3A1D
-		.dw		Page0Call_3A23
-		.dw		Page0Call_3A29
-		.dw		Page0Call_3A2F
-		.dw		Page0Call_3A35
-		.dw		Page0Call_3A3B
-		.dw		Page0Call_3A41
-		.dw		Page0Call_3A47
-		.dw		Page0Call_3A4D
-		.dw		Page0Call_3A53
-		.dw		Page0Call_3A59
-		.dw		Page0Call_3A5F
-		.dw		Page0Call_3A65
-		.dw		Page0Call_3A6B
-		.dw		Page0Call_3A71
-		.dw		Page0Call_3A77
-		.dw		Page0Call_3A7D
-		.dw		Page0Call_3A83
-		.dw		Page0Call_3A89
-		.dw		Page0Call_3A8F
++:		.dw		j_InitHomescreenContext
+		.dw		j_InitLinkIOContext
+		.dw		j_InitMatrixEditorContext
+		.dw		j_InitStatEditorContext
+		.dw		j_InitGraphContext
+		.dw		j_InitModeContext
+		.dw		j_InitProgramEditorContext
+		.dw		j_InitProgramCreateContext
+		.dw		j_InitWindowContext
+		.dw		j_InitYEqualsContext
+		.dw		j_InitTableContext
+		.dw		j_InitTableSetContext
+		.dw		j_InitAboutContext
+		.dw		j_InitMemMgmtContext
+		.dw		j_InitResetMemContext
+		.dw		j_InitResetDefaultContext
+		.dw		j_InitProgramInputContext
+		.dw		j_InitZoomContext
+		.dw		j_InitErrorContext
+		.dw		j_InitTVMContext
+		.dw		j_InitSolverContext
+		.dw		j_InitStatPlotContext
+		.dw		j_InitInfStatEditorContext
+		.dw		j_InitFormatContext
 		.dw		j_ExecuteApp
-		.dw		Page0Call_3A9B
-		.dw		Page0Call_3AA1
-
-Page02_3F63:
+		.dw		j_InitGroupContext
+		.dw		j_InitUngroupContext
+
+SetVertSplitRedisplayFlags:
 		push	af
 		call	Bit_VertSplit
-		jr		z, p02loc_5018
+		jr		z, {+}
 		ld		a, (mcxCurApp)
-		cp		4Ah ; 'J'
-		jr		z, p02loc_5026
-		cp		44h ; 'D'
-		jr		z, p02loc_5026
-
-p02loc_5018:
-		bit		plotDisp, (iy+plotFlags)
-		jr		nz, p02loc_5026
-		set		6, (iy+1Dh)
-		set		7, (iy+1Dh)
-
-p02loc_5026:
-		pop		af
+		cp		kTable
+		jr		z, {++}
+		cp		kGraph
+		jr		z, {++}
++:		bit		plotDisp, (iy+plotFlags)
+		jr		nz, {++}
+		set		NEED_BUFCPY, (iy+VERTFLAG2)
+		set		NEED_RETABLE, (iy+VERTFLAG2)
+++:		pop		af
 		ret
 ; ---------------------------------------------------------------------------