Fix flag.
authorbrandonlw
Thu, 15 May 2014 05:23:44 -0400
changeset 39 4651e87022c7
parent 38 a4c5f839b738
child 40 ba7bd14b7d7b
Fix flag.
source/page00/system.asm
source/page03/initial.asm
source/page06/initial.asm
source/page07/initial.asm
source/page78/initial.asm
source/page79/initial.asm
source/ti83plus.inc
--- a/source/page00/system.asm	Thu May 15 05:17:30 2014 -0400
+++ b/source/page00/system.asm	Thu May 15 05:23:44 2014 -0400
@@ -219,7 +219,7 @@
 		jr		c, Mon_SwitchToStandardContext
 		cp		kEval
 		jr		nc, Mon_SwitchToGraphContextThenPressKey
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		nz, jpSendKPress
 		cp		echoStart2
 		jr		c, Mon_SwitchToGraphContextThenPressKey
@@ -356,7 +356,7 @@
 		cp		47h ; 'G'
 		ld		a, b
 		jr		z, page0_68E
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		z, page0_68E
 		cp		57h ; 'W'
 		jr		z, page0_69E
--- a/source/page03/initial.asm	Thu May 15 05:17:30 2014 -0400
+++ b/source/page03/initial.asm	Thu May 15 05:23:44 2014 -0400
@@ -4709,7 +4709,7 @@
 		res		1, (iy+19h)
 		set		grfSplitOverride, (iy+sGrFlags)
 		call	RESETWINTOP
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		z, p03loc_56F0
 		call	j_POPCX
 		call	cxPPutAway
@@ -4730,7 +4730,7 @@
 ; ---------------------------------------------------------------------------
 
 Page03_3A35:
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		z, JForceWindowSettings
 		call	j_POPCX
 		call	cxPPutAway
@@ -4816,7 +4816,7 @@
 ; ---------------------------------------------------------------------------
 
 Page03_3A47:
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jp		nz, Page0Call_35F7
 		call	InitNumVec
 		set		grfSplitOverride, (iy+sGrFlags)
--- a/source/page06/initial.asm	Thu May 15 05:17:30 2014 -0400
+++ b/source/page06/initial.asm	Thu May 15 05:23:44 2014 -0400
@@ -10,7 +10,7 @@
 		ld		de, OP3
 		call	Mov8B
 		call	Mov8B
-		set		0, (iy+9)
+		set		prgmEdit, (iy+prgmFlags)
 
 Page06_30F9:
 		set		grfSplitOverride, (iy+sGrFlags)
@@ -143,7 +143,7 @@
 		set		grfSplitOverride, (iy+sGrFlags)
 		ld		hl, p06loc_4172
 		call	AppInit
-		set		0, (iy+9)
+		set		prgmEdit, (iy+prgmFlags)
 		call	j_ClrScrn
 		ld		hl, p06loc_4000
 		ld		a, 56h ; 'V'
@@ -216,7 +216,7 @@
 		jp		c, jpromptcursor
 		cp		7
 		jr		nz, p06loc_41BB
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jp		z, cursorUp
 		ld		b, 6
 
@@ -231,7 +231,7 @@
 p06loc_41BB:
 		cp		8
 		jr		nz, p06loc_41D0
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jp		z, CursorDown
 		ld		b, 6
 
@@ -371,12 +371,12 @@
 p06loc_4296:
 p06sub_4296:
 		res		grfSplitOverride, (iy+sGrFlags)
-		res		0, (iy+9)
+		res		prgmEdit, (iy+prgmFlags)
 		res		promptEdit, (iy+promptFlags)
 		ret
 p06loc_42A3:
 		res		grfSplitOverride, (iy+sGrFlags)
-		res		0, (iy+9)
+		res		prgmEdit, (iy+prgmFlags)
 		call	CanAlphIns
 		bit		editOpen, (iy+editFlags)
 		ret		z
@@ -2078,7 +2078,7 @@
 ; ---------------------------------------------------------------------------
 
 p06loc_4B3E:
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		nz, p06loc_4B5A
 		ld		a, (mcxCurApp)
 		cp		43h ; 'C'
@@ -8912,7 +8912,7 @@
 		ld		hl, p06loc_75AD
 		call	AppInit
 		set		grfSplitOverride, (iy+sGrFlags)
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		call	nz, SaveScreen
 		call	p06sub_75C4
 		call	p06sub_75D2
@@ -8966,7 +8966,7 @@
 
 		res		saIndic, (iy+newIndicFlags)
 		push	af
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		nz, p06loc_74BD
 		bit		grfSplit, (iy+sGrFlags)
 		jr		z, p06loc_74BD
@@ -8991,7 +8991,7 @@
 RetScreenErr:
 		res		saIndic, (iy+newIndicFlags)
 		push	af
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		nz, p06loc_74E7
 		bit		grfSplit, (iy+sGrFlags)
 		jr		z, p06loc_74E7
@@ -9180,7 +9180,7 @@
 		ld		hl, p06loc_7628
 		call	AppInit
 		set		grfSplitOverride, (iy+sGrFlags)
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		call	nz, SaveScreen
 		call	p06sub_75C4
 		call	p06sub_75D2
@@ -9264,7 +9264,7 @@
 		call	AppInit
 		call	p06sub_75BA
 		call	p06sub_75DF
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		call	nz, SaveScreen
 		call	j_ClrScrn
 		ld		hl, p06loc_7E34
@@ -9321,7 +9321,7 @@
 		ld		a, b
 		cp		5
 		jp		nz, p06loc_7757
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		z, p06loc_7722
 		sub		a
 		ld		(OP1+1), a
@@ -9459,7 +9459,7 @@
 p06loc_7795:
 		cp		9
 		jr		nz, p06loc_77A7
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jp		z, JForceCmdNoChar
 
 p06loc_77A0:
@@ -9487,7 +9487,7 @@
 p06loc_77C8:
 		cp		0ACh ; '�'
 		jr		nz, p06loc_77DA
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		nz, p06loc_77DA
 		ld		a, (mcxCurApp)
 		cp		45h ; 'E'
@@ -9496,13 +9496,13 @@
 p06loc_77DA:
 		cp		5Ah ; 'Z'
 		jr		nz, p06loc_77E5
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jp		nz, p06loc_7710
 
 p06loc_77E5:
 		cp		5Ah ; 'Z'
 		ret		c
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jp		z, JForceCmd
 		jp		p06loc_77A0
 
@@ -9541,7 +9541,7 @@
 ; ---------------------------------------------------------------------------
 
 p06loc_7828:
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		nz, p06loc_7843
 		ld		l, (ix+9)
 		ld		h, (ix+0Ah)
--- a/source/page07/initial.asm	Thu May 15 05:17:30 2014 -0400
+++ b/source/page07/initial.asm	Thu May 15 05:23:44 2014 -0400
@@ -6187,7 +6187,7 @@
 
 p07loc_5BFA:
 		ld		hl, (editSym)
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		z, p07loc_5C05
 		ld		(hl), 5
 
@@ -6227,7 +6227,7 @@
 		push	af
 		push	hl
 		ld		hl, (editSym)
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		z, p07loc_5C41
 		ld		(hl), 5
 
--- a/source/page78/initial.asm	Thu May 15 05:17:30 2014 -0400
+++ b/source/page78/initial.asm	Thu May 15 05:23:44 2014 -0400
@@ -9754,7 +9754,7 @@
 		jp		nz, p78loc_77A6
 		bit		cmdExec, (iy+cmdFlags)
 		ret		nz
-		res		0, (iy+9)
+		res		prgmEdit, (iy+prgmFlags)
 		call	j_resetStacks
 		call	j_CleanAll
 		call	j_DeleteTempPrograms
@@ -10295,7 +10295,7 @@
 		call	FINDPROGSYM
 		call	j_SetEmptyEditPtr
 		res		cmdExec, (iy+cmdFlags)
-		res		0, (iy+9)
+		res		prgmEdit, (iy+prgmFlags)
 
 p78loc_7B21:
 		set		cmdVirgin, (iy+cmdFlags)
--- a/source/page79/initial.asm	Thu May 15 05:17:30 2014 -0400
+++ b/source/page79/initial.asm	Thu May 15 05:23:44 2014 -0400
@@ -2512,7 +2512,7 @@
 
 ZIfMatrixMenu:
 		; Page79_2D21+1p ...
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		z, p79loc_5065
 		ld		a, (mcxCurApp)
 		cp		57h ; 'W'
@@ -2582,7 +2582,7 @@
 		inc		a
 
 p79loc_50A3:
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		z, p79loc_50C3
 		cp		3
 		jr		z, p79loc_50C1
@@ -4098,7 +4098,7 @@
 		ld		b, a
 		cp		5Ah ; 'Z'
 		jr		nz, p79loc_58E9
-		bit		0, (iy+9)
+		bit		prgmEdit, (iy+prgmFlags)
 		jr		z, p79loc_5903
 
 p79loc_58E9:
@@ -8769,7 +8769,7 @@
 		call	p79sub_723B
 		res		indicOnly, (iy+indicFlags)
 		res		noCompletionByte, (iy+groupFlags)
-		res		0, (iy+9)
+		res		prgmEdit, (iy+prgmFlags)
 		pop		hl
 		call	Page0Call_2CF7
 
--- a/source/ti83plus.inc	Thu May 15 05:17:30 2014 -0400
+++ b/source/ti83plus.inc	Thu May 15 05:23:44 2014 -0400
@@ -2461,8 +2461,11 @@
 ;----------------------------------------------------------------------
 web_err_mask		equ 60h
 ;----------------------------------------------------------------------
-onFlags 			equ 9h	;on key flags
-parseInput			equ 1		;1=parse input when done
+prgmFlags			equ 9h		;program editor flags
+prgmEdit			equ 0		;1=in program editor
+
+onFlags 			equ 9h		;on key flags
+parseInput			equ 1		;1=parse input when done, also known as prgmEval
 clrScrnOnPowerOff	equ 2		;1=clear screen on power off
 onRunning			equ 3		;1=calculator is running
 onInterrupt			equ 4		;1=on key interrupt request