--- a/source/page04/initial.asm Thu May 15 05:38:01 2014 -0400
+++ b/source/page04/initial.asm Tue May 20 02:59:10 2014 -0400
@@ -1086,7 +1086,7 @@
; ---------------------------------------------------------------------------
-Page04_3A1D:
+InitGraphContext:
ld b, a
ld a, 0
bit graphHookActive, (iy+hookflags3)
@@ -1848,7 +1848,7 @@
ret nz
p04loc_4956:
- set 6, (iy+1Dh)
+ set NEED_BUFCPY, (iy+VERTFLAG2)
call IsFunctionMode
jr z, p04loc_498D
bit allowCursor, (iy+plotFlags)
@@ -2832,8 +2832,8 @@
p04sub_4FB9:
call p04sub_4FEC
- set 6, (iy+1Dh)
- set 7, (iy+1Dh)
+ set NEED_BUFCPY, (iy+VERTFLAG2)
+ set NEED_RETABLE, (iy+VERTFLAG2)
bit 2, (iy+17h)
jr p04loc_4FCA
@@ -4916,7 +4916,7 @@
res monAbandon, (iy+monFlags)
res write_on_graph, (iy+sGrFlags)
res 2, (iy+17h)
- set 7, (iy+1Dh)
+ set NEED_RETABLE, (iy+VERTFLAG2)
jr RSTGFLAGS
; ---------------------------------------------------------------------------
p04loc_5CCC:
@@ -5413,7 +5413,7 @@
call COPYRNG
call Bit_VertSplit
jr z, p04loc_5FD5
- bit 7, (iy+1Dh)
+ bit NEED_RETABLE, (iy+VERTFLAG2)
call nz, j_DSPGRTBL
res 2, (iy+1Fh)
@@ -5686,12 +5686,12 @@
set plotDisp, (iy+plotFlags)
call Bit_VertSplit
jr z, GrBufCpy
- bit 7, (iy+1Dh)
+ bit NEED_RETABLE, (iy+VERTFLAG2)
call nz, j_DSPGRTBL
res 2, (iy+1Fh)
set plotDisp, (iy+plotFlags)
- res 7, (iy+1Dh)
- bit 6, (iy+1Dh)
+ res NEED_RETABLE, (iy+VERTFLAG2)
+ bit NEED_BUFCPY, (iy+VERTFLAG2)
ret z
; End of function GRBUFCPY_V
@@ -5730,7 +5730,7 @@
p04loc_61D3:
call RestoreDisp
- res 6, (iy+1Dh)
+ res NEED_BUFCPY, (iy+VERTFLAG2)
ei
; End of function GrBufCpy
@@ -7141,7 +7141,7 @@
res smartGraph, (iy+smartFlags)
call p04sub_756C
jr nz, p04loc_698F
- res 6, (iy+1Dh)
+ res NEED_BUFCPY, (iy+VERTFLAG2)
p04loc_6977:
call p04sub_755F
@@ -9693,7 +9693,7 @@
p04sub_775A:
- set 6, (iy+1Dh)
+ set NEED_BUFCPY, (iy+VERTFLAG2)
ld de, 7800h
call p04sub_7767
ld de, 7901h
@@ -9783,7 +9783,7 @@
TAN_EQU_DISP:
- set 6, (iy+1Dh)
+ set NEED_BUFCPY, (iy+VERTFLAG2)
res 3, (iy+11h)
set textEraseBelow, (iy+textFlags)
ld a, 1
@@ -9819,7 +9819,7 @@
set textEraseBelow, (iy+textFlags)
bit grfExpr, (iy+traceFlags)
jr nz, p04loc_784F
- set 6, (iy+1Dh)
+ set NEED_BUFCPY, (iy+VERTFLAG2)
ld a, (curPlotNumber)
or a
jr nz, p04loc_7867
@@ -9852,7 +9852,7 @@
bit grfNoCoord, (iy+grfDBFlags)
ret nz
push af
- set 6, (iy+1Dh)
+ set NEED_BUFCPY, (iy+VERTFLAG2)
ld hl, 5Ah ; 'Z'
call Bit_VertSplit
jr z, p04loc_7864
@@ -10064,7 +10064,7 @@
ld a, 9
DispOP1A:
- set 6, (iy+1Dh)
+ set NEED_BUFCPY, (iy+VERTFLAG2)
push af
call j_RnFx
pop af
@@ -10222,9 +10222,9 @@
jr z, p04loc_7ADA
call Bit_VertSplit
jr z, p04loc_7AD4
- bit 6, (iy+1Dh)
+ bit NEED_BUFCPY, (iy+VERTFLAG2)
jr nz, p04loc_7ADA
- bit 7, (iy+1Dh)
+ bit NEED_RETABLE, (iy+VERTFLAG2)
jr nz, p04loc_7ADA
p04loc_7AD4: