source/page78/initial.asm
changeset 38 a4c5f839b738
parent 36 2fca899545cf
child 39 4651e87022c7
--- a/source/page78/initial.asm	Thu May 15 01:54:30 2014 -0400
+++ b/source/page78/initial.asm	Thu May 15 05:17:30 2014 -0400
@@ -1670,7 +1670,7 @@
 		pop		af
 		call	j_GRDECODA
 		res		appCurGraphic, (iy+appFlags)
-		bit		0, (iy+2)
+		bit		allowCursor, (iy+plotFlags)
 		jp		z, p78loc_4FEF
 		ld		a, (curGStyle)
 		sub		51h ; 'Q'
@@ -4006,18 +4006,6 @@
 
 
 ParseInpGraphReset:
-		; PARSE_FORMULA+24p
-
-
-
-
-
-
-
-
-
-
-
 		call	p78sub_5AC8
 		pop		bc
 		call	PUSH2BOPER
@@ -5403,7 +5391,7 @@
 		ret		nz
 		bit		drawingGraph, (iy+graphFlags)
 		ret		nz
-		bit		0, (iy+2)
+		bit		allowCursor, (iy+plotFlags)
 		ret		nz
 		call	IsRecursiveMode
 		call	nz, SetTblGraphDraw
@@ -6043,7 +6031,7 @@
 		ret		nz
 		call	page0_172A
 		ret		nz
-		bit		0, (iy+2)
+		bit		allowCursor, (iy+plotFlags)
 		ret		nz
 		jp		SetTblGraphDraw
 ; ---------------------------------------------------------------------------
@@ -6475,7 +6463,7 @@
 
 p78sub_66D9:
 		; p78sub_6984+146p
-		bit		0, (iy+2)
+		bit		allowCursor, (iy+plotFlags)
 		jr		nz, p78loc_66E3
 		call	page0_172A
 		ret		z
@@ -6534,7 +6522,7 @@
 		or		h
 		jr		nz, p78loc_6758
 		ld		(unk_9810), de
-		bit		0, (iy+2)
+		bit		allowCursor, (iy+plotFlags)
 		jr		z, p78loc_675E
 		bit		5, (iy+3)
 		jr		z, p78loc_6784
@@ -6550,7 +6538,7 @@
 p78loc_675E:
 		call	page0_172A
 		jr		z, p78loc_6784
-		bit		0, (iy+2)
+		bit		allowCursor, (iy+plotFlags)
 		jr		nz, p78loc_6784
 		ld		hl, (unk_980E)
 		or		a
@@ -9764,7 +9752,7 @@
 p78loc_76FA:
 		bit		7, (iy+0Ch)
 		jp		nz, p78loc_77A6
-		bit		6, (iy+0Ch)
+		bit		cmdExec, (iy+cmdFlags)
 		ret		nz
 		res		0, (iy+9)
 		call	j_resetStacks
@@ -9821,7 +9809,7 @@
 		ld		hl, p78loc_7A99
 		ld		(mcxErrorEP), hl
 		call	j_RSTGFLAGS
-		res		6, (iy+0Ch)
+		res		cmdExec, (iy+cmdFlags)
 		call	j_CleanAll
 		call	j_DeleteTempPrograms
 		jr		p78loc_776B
@@ -10035,7 +10023,7 @@
 p78loc_7905:
 		sub		a
 		ld		(kbdGetKy), a
-		set		6, (iy+0Ch)
+		set		cmdExec, (iy+cmdFlags)
 		set		donePrgm, (iy+doneFlags)
 		call	p78loc_7B21
 		ei
@@ -10043,7 +10031,7 @@
 		bit		homescreenHookActive, (iy+hookflags2)
 		call	nz, Page0Call_2D51
 		call	z, ParseInpLastEnt
-		res		6, (iy+0Ch)
+		res		cmdExec, (iy+cmdFlags)
 		call	j_CleanAll
 		call	j_DeleteTempPrograms
 		ld		a, 0
@@ -10232,9 +10220,9 @@
 		call	j_disarmScroll
 		ret
 p78loc_7A7B:
-		bit		6, (iy+0Ch)
+		bit		cmdExec, (iy+cmdFlags)
 		call	z, j_CleanAll
-		bit		6, (iy+0Ch)
+		bit		cmdExec, (iy+cmdFlags)
 		call	z, j_DeleteTempPrograms
 		ld		a, (unk_89FA)
 		and		0E3h ; '�'
@@ -10306,7 +10294,7 @@
 		call	page0_165F
 		call	FINDPROGSYM
 		call	j_SetEmptyEditPtr
-		res		6, (iy+0Ch)
+		res		cmdExec, (iy+cmdFlags)
 		res		0, (iy+9)
 
 p78loc_7B21:
@@ -11063,7 +11051,7 @@
 		ret		z
 		sub		a
 		ld		(curGStyle), a
-		res		0, (iy+2)
+		res		allowCursor, (iy+plotFlags)
 		res		appCurGraphic, (iy+appFlags)
 		call	j_saveShadow2
 		call	j_rstrShadow2