source/page03/initial.asm
changeset 41 9ef17625274f
parent 40 ba7bd14b7d7b
child 42 adad2f097dcb
--- a/source/page03/initial.asm	Thu May 15 05:38:01 2014 -0400
+++ b/source/page03/initial.asm	Tue May 20 02:59:10 2014 -0400
@@ -1102,7 +1102,7 @@
 dispVarVal:
 		jr		nc, Page03_3741
 		call	releaseBuffer
-		jp		Page0Call_24F9
+		jp		ErrMemory_NoGoTo
 ; ---------------------------------------------------------------------------
 
 Page03_3741:
@@ -1126,7 +1126,7 @@
 		call	j_MinToEdit
 		jr		nc, p03loc_463F
 		call	releaseBuffer
-		jp		Page0Call_24F9
+		jp		ErrMemory_NoGoTo
 ; ---------------------------------------------------------------------------
 
 p03loc_463F:
@@ -1159,7 +1159,7 @@
 
 createNumEditBuf:
 		call	releaseBuffer
-		ld		hl, Page0Call_24F9
+		ld		hl, ErrMemory_NoGoTo
 		call	pushErrorHandleR
 		ld		hl, 14h
 		call	CreateEqu
@@ -1196,13 +1196,13 @@
 		call	p03sub_4B7F
 		ld		a, (mcxCurApp)
 		cp		48h ; 'H'
-		jp		z, Page03_3A35
+		jp		z, InitWindowContext
 		cp		51h ; 'Q'
-		jp		z, Page03_3A6B
+		jp		z, InitZoomContext
 		cp		4Bh ; 'K'
-		jp		z, Page03_3A47
+		jp		z, InitTableSetContext
 		cp		53h ; 'S'
-		jp		z, Page03_3A77
+		jp		z, InitTVMContext
 
 p03loc_46B4:
 		cp		5
@@ -2319,7 +2319,7 @@
 p03loc_4CBD:
 		call	j_CloseEditEqu
 		call	releaseBuffer
-		jp		Page0Call_24F9
+		jp		ErrMemory_NoGoTo
 ; ---------------------------------------------------------------------------
 
 Page03_380D:
@@ -2548,7 +2548,7 @@
 		ld		(editTail), hl
 		ld		(editBtm), hl
 		call	CpHLDE
-		jp		c, Page0Call_24F9
+		jp		c, ErrMemory_NoGoTo
 		ld		de, ioPrompt
 		call	MovFrOP1
 		ld		hl, ioPrompt
@@ -4653,7 +4653,7 @@
 		.db		0
 ; ---------------------------------------------------------------------------
 
-Page03_3A4D:
+InitAboutContext:
 		ld		hl, p03loc_569D
 		call	AppInit
 		call	j_CleanAll
@@ -4692,7 +4692,7 @@
 		jp		JForceCmdNoChar
 p03loc_56BA:
 		cp		27h ; '''
-		jp		z, Page03_3A4D
+		jp		z, InitAboutContext
 		cp		9
 		jp		z, JForceCmdNoChar
 		cp		5Ah ; 'Z'
@@ -4705,14 +4705,14 @@
 		ret
 ; ---------------------------------------------------------------------------
 
-Page03_3A77:
+InitTVMContext:
 		res		1, (iy+19h)
 		set		grfSplitOverride, (iy+sGrFlags)
 		call	RESETWINTOP
 		bit		prgmEdit, (iy+prgmFlags)
 		jr		z, p03loc_56F0
 		call	j_POPCX
-		call	cxPPutAway
+		call	call_cxPutAway
 		ld		a, 53h ; 'S'
 		ld		(mcxCurApp), a
 
@@ -4729,11 +4729,11 @@
 		ret
 ; ---------------------------------------------------------------------------
 
-Page03_3A35:
+InitWindowContext:
 		bit		prgmEdit, (iy+prgmFlags)
 		jr		z, JForceWindowSettings
 		call	j_POPCX
-		call	cxPPutAway
+		call	call_cxPutAway
 		ld		a, 48h ; 'H'
 		ld		(mcxCurApp), a
 
@@ -4797,7 +4797,7 @@
 
 ; ---------------------------------------------------------------------------
 
-Page03_3A6B:
+InitZoomContext:
 		ld		hl, p03loc_5814
 		call	AppInit
 		call	page0_176F
@@ -4815,7 +4815,7 @@
 		ret
 ; ---------------------------------------------------------------------------
 
-Page03_3A47:
+InitTableSetContext:
 		bit		prgmEdit, (iy+prgmFlags)
 		jp		nz, Page0Call_35F7
 		call	InitNumVec
@@ -6420,7 +6420,7 @@
 		call	j_COPYRNG
 		call	Bit_VertSplit
 		jr		z, p03loc_6019
-		bit		7, (iy+1Dh)
+		bit		NEED_RETABLE, (iy+VERTFLAG2)
 		call	nz, j_DSPGRTBL
 		res		2, (iy+1Fh)
 
@@ -9234,7 +9234,7 @@
 p03loc_70AE:
 		call	p03sub_748F
 
-Page03_3A89:
+InitInfStatEditorContext:
 		ld		a, (keyExtend)
 		call	p03sub_7CBB
 		jr		z, p03loc_70BF
@@ -9244,7 +9244,7 @@
 p03loc_70BF:
 		ld		(unk_8D0A), a
 		ld		hl, p03loc_7650
-		call	page0_7C1
+		call	AppInitEnoughMem50
 		set		grfSplitOverride, (iy+sGrFlags)
 
 p03loc_70CC:
@@ -9854,7 +9854,7 @@
 		call	p03sub_4B7F
 
 p03loc_74A3:
-		call	page0_740
+		call	ResetPromptEditFlag
 		call	p03sub_7474
 		res		grfSplitOverride, (iy+sGrFlags)
 ; End of function p03sub_748F