Assume 1,(iy+3) is the "drawing graph now" flag.
--- a/source/page00/boot.asm Thu May 08 02:47:08 2014 -0400
+++ b/source/page00/boot.asm Thu May 08 02:59:25 2014 -0400
@@ -145,11 +145,11 @@
reti
SetTblGraphDraw:
- bit 1, (iy+3)
+ bit drawingGraph, (iy+graphFlags)
jr nz, SetGraphDraw
set smarter_test, (iy+smartFlags)
SetTblGraphDrawPreserveSmartTest:
- bit 1, (iy+3)
+ bit drawingGraph, (iy+graphFlags)
jr nz, SetGraphDraw
set reTable, (iy+tblFlags)
SetGraphDraw:
--- a/source/page00/math_var.asm Thu May 08 02:47:08 2014 -0400
+++ b/source/page00/math_var.asm Thu May 08 02:59:25 2014 -0400
@@ -2888,7 +2888,7 @@
; ---------------------------------------------------------------------------
page0_172A:
- bit 1, (iy+3)
+ bit drawingGraph, (iy+graphFlags)
ret
; =============== S U B R O U T I N E =======================================
--- a/source/page02/initial.asm Thu May 08 02:47:08 2014 -0400
+++ b/source/page02/initial.asm Thu May 08 02:59:25 2014 -0400
@@ -2582,7 +2582,7 @@
p02loc_4D23:
push af
call j_serrort
- bit 1, (iy+3)
+ bit drawingGraph, (iy+graphFlags)
jr z, p02loc_4D32
call FIND_E_UNDEF
set 6, (hl)
--- a/source/page04/initial.asm Thu May 08 02:47:08 2014 -0400
+++ b/source/page04/initial.asm Thu May 08 02:59:25 2014 -0400
@@ -4457,7 +4457,7 @@
res 5, (iy+3)
ld hl, 0
ld (curGY2), hl
- set 1, (iy+3)
+ set drawingGraph, (iy+graphFlags)
ld hl, (pTempCnt)
push hl
call p04sub_72C4
@@ -4568,7 +4568,7 @@
p04loc_5AAD:
; p04sub_58BE+1B3j
res graphDraw, (iy+graphFlags)
- res 1, (iy+3)
+ res drawingGraph, (iy+graphFlags)
res smarter_test, (iy+smartFlags)
pop hl
pop af
@@ -4954,7 +4954,7 @@
RSTGFLAGS:
res 2, (iy+11h)
- res 1, (iy+3)
+ res drawingGraph, (iy+graphFlags)
res 3, (iy+3)
; =============== S U B R O U T I N E =======================================
@@ -7048,7 +7048,7 @@
p04loc_686D:
ld hl, 0
ld (curGY2), hl
- set 1, (iy+3)
+ set drawingGraph, (iy+graphFlags)
ld hl, (pTempCnt)
push hl
call FNDSELEQ
@@ -7188,7 +7188,7 @@
ld (pTempCnt), hl
p04loc_6993:
- res 1, (iy+3)
+ res drawingGraph, (iy+graphFlags)
pop af
call TraceOff
call CentCursor
--- a/source/page05/initial.asm Thu May 08 02:47:08 2014 -0400
+++ b/source/page05/initial.asm Thu May 08 02:59:25 2014 -0400
@@ -5834,7 +5834,7 @@
call popErrorHandleR
ld hl, 1
ld (unk_980E), hl
- set 1, (iy+3)
+ set drawingGraph, (iy+graphFlags)
xor a
ld (EST), a
ld hl, p05loc_5FE0
@@ -5844,7 +5844,7 @@
ld (unk_9665), hl
call j_CPYO1TOES15
call popErrorHandleR
- res 1, (iy+3)
+ res drawingGraph, (iy+graphFlags)
ld hl, p05loc_5FDC
call pushErrorHandleR
call p05sub_6185
@@ -5885,7 +5885,7 @@
p05sub_5FEC:
- res 1, (iy+3)
+ res drawingGraph, (iy+graphFlags)
call p05sub_602F
ld (errNo), a
bit 7, a
@@ -6089,7 +6089,7 @@
call popErrorHandleR
ld hl, 1
ld (unk_980E), hl
- set 1, (iy+3)
+ set drawingGraph, (iy+graphFlags)
xor a
ld (EST), a
ld hl, p05loc_6179
@@ -6139,7 +6139,7 @@
p05loc_6145:
call popErrorHandleR
- res 1, (iy+3)
+ res drawingGraph, (iy+graphFlags)
ld hl, p05loc_6175
call pushErrorHandleR
call p05sub_6185
--- a/source/page07/initial.asm Thu May 08 02:47:08 2014 -0400
+++ b/source/page07/initial.asm Thu May 08 02:59:25 2014 -0400
@@ -4183,7 +4183,7 @@
push de
push hl
call Page0Call_241E
- bit 1, (iy+3)
+ bit drawingGraph, (iy+graphFlags)
jr z, p07loc_50DC
set 6, (hl)
jr p07loc_50DC
--- a/source/page78/initial.asm Thu May 08 02:47:08 2014 -0400
+++ b/source/page78/initial.asm Thu May 08 02:59:25 2014 -0400
@@ -5401,7 +5401,7 @@
ret nz
bit plotDisp, (iy+plotFlags)
ret nz
- bit 1, (iy+3)
+ bit drawingGraph, (iy+graphFlags)
ret nz
bit 0, (iy+2)
ret nz
--- a/source/ti83plus.inc Thu May 08 02:47:08 2014 -0400
+++ b/source/ti83plus.inc Thu May 08 02:59:25 2014 -0400
@@ -2419,6 +2419,7 @@
;----------------------------------------------------------------------
graphFlags equ 3h
graphDraw equ 0 ;0=graph is valid, 1=redraw graph(dirty)
+drawingGraph equ 1
graphCursor equ 2
;----------------------------------------------------------------------
grfDBFlags equ 4h
@@ -2602,9 +2603,9 @@
graphFlags2 equ 1Fh
splitOverride equ 3 ;0 = force full screen with ParseInp, or something
;----------------------------------------------------------------------
-asm_Flag1 equ 21h ;ASM CODING
-asm_Flag2 equ 22h ;ASM CODING
-asm_Flag3 equ 23h ;ASM CODING
+asm_Flag1 equ 21h ;ASSEMBLY CODING
+asm_Flag2 equ 22h ;ASSEMBLY CODING
+asm_Flag3 equ 23h ;ASSEMBLY CODING
;----------------------------------------------------------------------
arcFlag equ 24h
checkBatteryLevelFirst equ 0 ;1 = check battery levels in Arc_Unarc first and throw error if low