Set all known flags -- I'm amazed this actually worked.
--- a/source/page00/boot.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page00/boot.asm Thu May 08 02:47:08 2014 -0400
@@ -165,7 +165,7 @@
interruptFromFirstHardwareTimer:
res 7, (iy+33h)
res 2, (iy+18h)
- bit 0, (iy+16h)
+ bit secondTimerEnabled, (iy+interruptFlags)
jr z, page0_C4
bit 7, (iy+0Fh)
call nz, Page0Call_3F8D
@@ -177,17 +177,17 @@
jr z, page0_CF
ld (unk_9C86), a
page0_CF:
- bit 0, (iy+12h)
+ bit indicRun, (iy+indicFlags)
call nz, page0_1BF
- bit 2, (iy+12h)
+ bit indicOnly, (iy+indicFlags)
jr nz, page0_11F
call kdbScan
- bit 2, (iy+0Ch)
+ bit curAble, (iy+curFlags)
call nz, j_curBlink
call sub_254
- bit 4, (iy+33h)
+ bit bPLinkOn, (iy+hookflags1)
jr z, page0_11F
- bit 3, (iy+33h)
+ bit ignoreBPLink, (iy+hookflags1)
jr nz, page0_11F
call NZIf83Plus
jr z, page0_105
@@ -206,7 +206,7 @@
out (8), a
ld a, 0
out (8), a
- set 0, (iy+3Eh)
+ set silentLinkActive, (iy+silentLinkFlags)
call j_call_linkactivity_hook
page0_11F:
ld a, 9
--- a/source/page00/interrupt.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page00/interrupt.asm Thu May 08 02:47:08 2014 -0400
@@ -1,5 +1,5 @@
interruptFromLinkActivity:
- res 3, (iy+12h)
+ res shift2nd, (iy+shiftFlags)
push hl
sub a
push af
@@ -11,26 +11,26 @@
interruptFromSecondHardwareTimer:
ld a, 4
- bit 0, (iy+16h)
+ bit secondTimerEnabled, (iy+interruptFlags)
jp z, intReturn_AtoPort3First
ld a, (iy+16h)
xor 2
ld (iy+16h), a
bit 1, (iy+16h)
jp nz, page0_170
- set 2, (iy+16h)
+ set batteriesGood, (iy+batteryFlags)
in a, (2)
bit 0, a
page0_155:
jr nz, page0_15B
page0_157:
- res 2, (iy+16h)
+ res batteriesGood, (iy+batteryFlags)
page0_15B:
ld a, 76h ; 'v'
out (4), a
page0_15F:
res 2, (iy+18h)
- res 0, (iy+16h)
+ res secondTimerEnabled, (iy+interruptFlags)
page0_167:
set 7, (iy+33h)
ld a, 9
@@ -50,11 +50,11 @@
jp intReturnEnableSecondHardwareTimer
page0_189:
- bit 4, (iy+9)
+ bit onInterrupt, (iy+onFlags)
ret
page0_18E:
- bit 0, (iy+7)
+ bit numOP1, (iy+ParsFlag2)
ret
page0_193:
@@ -63,15 +63,15 @@
ret
page0_198:
- bit 5, (iy+2)
+ bit grfPolarM, (iy+grfModeFlags)
ret
page0_19D:
- bit 7, (iy+2)
+ bit grfRecurM, (iy+grfModeFlags)
ret
page0_1A2:
- bit 6, (iy+2)
+ bit grfParamM, (iy+grfModeFlags)
ret
page0_1A7:
@@ -253,8 +253,8 @@
call TurnOffLCD
call j_SaveOScreen
page0_279:
- res 3, (iy+8)
- set 4, (iy+8)
+ res apdRunning, (iy+apdFlags)
+ set apdWarmStart, (iy+apdFlags)
jp page0_8AC
HandleLinkKeyActivity:
@@ -330,7 +330,7 @@
call sub_37F
or a
jr z, page0_2F3
- set 4, (iy+0)
+ set kbdKeyPress, (iy+kbdFlags)
page0_2F3:
ld (hl), a
ld a, 32h ; '2'
@@ -443,7 +443,7 @@
sub_37F:
ld (kbdScanCode), a
- set 3, (iy+0)
+ set kbdSCR, (iy+kbdFlags)
or a
ret z
ld (kbdGetKy), a
@@ -454,39 +454,39 @@
di
ld a, (hl)
ld (hl), 0
- res 3, (iy+0)
+ res kbdSCR, (iy+kbdFlags)
ei
ret
page0_399:
Page0Call_399:
- bit 6, (iy+12h)
+ bit shiftALock, (iy+shiftFlags)
ret nz
jr page0_3A8
CanAlphIns:
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
page0_3A4:
- res 6, (iy+12h)
+ res shiftALock, (iy+shiftFlags)
page0_3A8:
- bit 7, (iy+12h)
+ bit shiftKeepAlph, (iy+shiftFlags)
ret nz
- res 4, (iy+12h)
+ res shiftAlpha, (iy+shiftFlags)
ret
- set 7, (iy+12h)
+ set shiftKeepAlph, (iy+shiftFlags)
jr page0_3BC
page0_3B8:
Page0Call_3B8:
- set 6, (iy+12h)
+ set shiftALock, (iy+shiftFlags)
page0_3BC:
- set 4, (iy+12h)
- res 5, (iy+12h)
+ set shiftAlpha, (iy+shiftFlags)
+ res shiftLwrAlph, (iy+shiftFlags)
ret
coorMon:
- res 5, (iy+14h)
+ res g_style_active, (iy+sGrFlags)
call j_CursorOff
call j_COORDISP
Mon:
@@ -499,7 +499,7 @@
res 5, (iy+1Fh)
ld hl, 403h
call pushErrorHandleR
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
ld a, (mcxCurApp)
cp 52h ; 'R'
jr nz, page0_3FD
@@ -511,7 +511,7 @@
call j_SendAck
page0_400:
call popErrorHandleR
- res 2, (iy+12h)
+ res indicOnly, (iy+indicFlags)
ei
page0_408:
xor a
@@ -524,8 +524,8 @@
ld (kbdKey), a
bit 0, (iy+2)
jr z, page0_433
- res 2, (iy+0Ch)
- bit 3, (iy+0Ch)
+ res curAble, (iy+curFlags)
+ bit curOn, (iy+curFlags)
call z, j_BLINKGCUR
ld a, (kbdKey)
jr page0_436
@@ -536,11 +536,11 @@
call j_RunIndicOn
or a
jr nz, page0_44D
- bit 0, (iy+0Dh)
+ bit appWantIntrpt, (iy+appFlags)
jr nz, page0_448
page0_442:
- res 4, (iy+9)
+ res onInterrupt, (iy+onFlags)
jr page0_4B2
page0_448:
@@ -569,7 +569,7 @@
page0_470:
res 1, (iy+28h)
res 2, (iy+28h)
- bit 5, (iy+34h)
+ bit rawKeyHookActive, (iy+hookflags2)
jr z, page0_491
call j_call_rawkey_hook
bit 1, (iy+28h)
@@ -617,7 +617,7 @@
ld e, a
call j_TokToKey
call cxMain
- res 4, (iy+9)
+ res onInterrupt, (iy+onFlags)
jr page0_4AE
page0_4D0:
@@ -693,16 +693,16 @@
ld a, 7Fh ; ''
page0_53E:
call cxMain
- res 4, (iy+9)
+ res onInterrupt, (iy+onFlags)
pop af
jp z, page0_4B5
page0_549:
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr z, page0_58E
ld de, (rclQueue)
page0_553:
ld hl, (editCursor)
- bit 2, (iy+33h)
+ bit useRclQueueEnd, (iy+hookflags1)
jr z, page0_560
ld hl, (rclQueueEnd)
ex de, hl
@@ -718,7 +718,7 @@
inc hl
ld e, (hl)
page0_571:
- bit 2, (iy+33h)
+ bit useRclQueueEnd, (iy+hookflags1)
jr z, page0_57B
inc hl
ld (rclQueue), hl
@@ -728,14 +728,14 @@
jr sendKPress
page0_580:
- res 7, (iy+0Eh)
+ res enableQueue, (iy+rclFlag)
ld hl, 89F5h
ld a, (promptIns)
res 4, (hl)
or (hl)
ld (hl), a
page0_58E:
- res 2, (iy+33h)
+ res useRclQueueEnd, (iy+hookflags1)
jp Mon
page0_595:
@@ -840,7 +840,7 @@
ret
newContext0:
- res 7, (iy+28h)
+ res appRetKeyOff, (iy+APIFlg)
ld hl, 859Ah
cp (hl)
jr nz, page0_64E
@@ -881,7 +881,7 @@
pop af
push hl
push af
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
call cxPutAway2
pop af
push af
@@ -964,7 +964,7 @@
ld a, b
cp 52h ; 'R'
jr z, page0_717
- set 0, (iy+11h)
+ set promptEdit, (iy+promptFlags)
page0_717:
pop af
page0_718:
@@ -993,11 +993,11 @@
sub_73D:
call cxPPutAway
page0_740:
- res 0, (iy+11h)
+ res promptEdit, (iy+promptFlags)
ret
cxPutAway2:
- bit 5, (iy+25h)
+ bit nocxPutAway, (iy+contextFlags)
ret nz
push hl
ld hl, (mcxPPutAway)
@@ -1006,7 +1006,7 @@
jr page0_762
cxPPutAway:
- bit 5, (iy+25h)
+ bit nocxPutAway, (iy+contextFlags)
ret nz
push hl
ld hl, (mcxPutAway)
@@ -1139,7 +1139,7 @@
cp 41h ; 'A'
page0_81D:
jp nz, page0_A9B
- bit 3, (iy+9)
+ bit onRunning, (iy+onFlags)
ret nz
pop hl
sub a
@@ -1172,11 +1172,11 @@
cp 41h ; 'A'
page0_853:
jp nz, page0_952
- bit 3, (iy+12h)
+ bit shift2nd, (iy+shiftFlags)
jp z, page0_8E4
- bit 5, (iy+33h)
+ bit enableKeyEcho, (iy+hookflags1)
jr nz, page0_869
- bit 7, (iy+28h)
+ bit appRetKeyOff, (iy+APIFlg)
jr z, PowerOff
page0_869:
@@ -1191,22 +1191,22 @@
pop af
out (3), a
call TurnOffLCD
- bit 2, (iy+24h)
+ bit resetOnPowerOn, (iy+selfTestFlag)
jr z, page0_887
- bit 2, (iy+8)
+ bit apdAble, (iy+apdFlags)
jr z, page0_8C6
page0_887:
call page0_BB1
call page0_B76
call j_hideCursor
- set 4, (iy+1)
+ set monAbandon, (iy+monFlags)
ld hl, 9D8Dh
set 0, (hl)
call forcecmd
ld hl, 9D8Dh
res 0, (hl)
- res 4, (iy+1)
- bit 1, (iy+33h)
+ res monAbandon, (iy+monFlags)
+ bit alt_Off, (iy+hookflags1)
call nz, Page0Call_3E7F
page0_8AC:
call Page0Call_3E85
@@ -1220,14 +1220,14 @@
call calculateRAMChecksum
ld (unk_85BE), hl
page0_8C6:
- res 4, (iy+33h)
- res 5, (iy+33h)
+ res bPLinkOn, (iy+hookflags1)
+ res enableKeyEcho, (iy+hookflags1)
ld a, 36h ; '6'
out (4), a
ld a, 11h
out (3), a
- res 3, (iy+12h)
- res 3, (iy+9)
+ res shift2nd, (iy+shiftFlags)
+ res onRunning, (iy+onFlags)
ex af, af'
exx
ei
@@ -1239,16 +1239,16 @@
page0_8E4:
res 7, (iy+0Fh)
call ApdSetup
- bit 3, (iy+9)
+ bit onRunning, (iy+onFlags)
jr nz, page0_94D
page0_8F1:
- set 3, (iy+9)
+ set onRunning, (iy+onFlags)
ld hl, 89F8h
bit 4, (hl)
res 4, (hl)
jr nz, page0_92C
- res 1, (iy+12h)
- bit 2, (iy+24h)
+ res indicInUse, (iy+indicFlags)
+ bit resetOnPowerOn, (iy+selfTestFlag)
jr z, page0_90D
bit 2, (hl)
jp z, badRAMChecksum_doRAMReset
@@ -1266,7 +1266,7 @@
jp Mon
page0_92C:
- bit 0, (iy+33h)
+ bit alt_On, (iy+hookflags1)
call nz, Page0Call_3EA3
ld a, 8
push af
@@ -1286,7 +1286,7 @@
reti
page0_94D:
- set 4, (iy+9)
+ set onInterrupt, (iy+onFlags)
ret
page0_952:
@@ -1342,7 +1342,7 @@
call page0_B76
ld a, 0Bh
out (3), a
- res 4, (iy+8)
+ res apdWarmStart, (iy+apdFlags)
call forcecmd
jp page0_8F1
@@ -1416,7 +1416,7 @@
forcecmd:
call CanAlphIns
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
call j_Disp
res 6, (iy+0Ch)
ld a, 40h ; '@'
@@ -1536,10 +1536,9 @@
set 5, (iy+18h)
in a, (2)
bit 0, a
- jr nz, batteriesGood
+ jr nz, {+}
res 5, (iy+18h)
-batteriesGood:
- ld a, 76h ; 'v'
++: ld a, 76h ; 'v'
out (4), a
ld a, 0Ah
call slowDelayA
@@ -1567,16 +1566,16 @@
call Page0Call_3EE5
call page0_B76
call forcecmd
- res 4, (iy+8)
+ res apdWarmStart, (iy+apdFlags)
bit 6, (iy+0Ch)
call nz, Page0Call_3E9D
ld a, 0Bh
out (3), a
call j_LCD_DRIVERON
- set 3, (iy+9)
+ set onRunning, (iy+onFlags)
call Chk_Batt_Low_2
call z, sub_AEF
- bit 0, (iy+33h)
+ bit alt_On, (iy+hookflags1)
call nz, Page0Call_3EA3
ei
jp Mon
--- a/source/page00/math_var.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page00/math_var.asm Thu May 08 02:47:08 2014 -0400
@@ -1552,7 +1552,7 @@
; ---------------------------------------------------------------------------
page0_1280:
- bit 5, (iy+0Ah)
+ bit fmtReal, (iy+numMode)
jp nz, ErrNon_Real
; =============== S U B R O U T I N E =======================================
@@ -2960,7 +2960,7 @@
page0_176F:
call CheckSplitFlag
ret z
- bit 2, (iy+14h)
+ bit grfSChanged, (iy+sGrFlags)
jr z, page0_1799
REGCLRCHNG:
@@ -2969,12 +2969,12 @@
ld hl, (mcxErrorEP)
push hl
call j_loadnoeentry
- res 1, (iy+2)
+ res plotLoc, (iy+plotFlags)
call j_Regraph
pop hl
ld (mcxErrorEP), hl
call j_RunIndicOff
- res 2, (iy+14h)
+ res grfSChanged, (iy+sGrFlags)
ret
; ---------------------------------------------------------------------------
@@ -3046,14 +3046,14 @@
CheckSplitFlag:
- bit 3, (iy+14h)
+ bit grfSplitOverride, (iy+sGrFlags)
jr z, page0_17D6
cp a
ret
; ---------------------------------------------------------------------------
page0_17D6:
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
ret
; End of function CheckSplitFlag
@@ -3062,7 +3062,7 @@
page0_17DB:
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
ret
; End of function page0_17DB
@@ -3078,7 +3078,7 @@
call page0_16F4
page0_17E9:
- bit 6, (iy+9)
+ bit statsValid, (iy+statFlags)
ret z
call page0_16C4
ret nz
@@ -3289,7 +3289,7 @@
; ---------------------------------------------------------------------------
Bit_VertSplit:
- bit 1, (iy+14h)
+ bit vertSplit, (iy+sGrFlags)
ret
; ---------------------------------------------------------------------------
@@ -6202,10 +6202,10 @@
page0_2573:
ld a, 80h ; ''
out (8), a
- res 0, (iy+3Eh)
+ res silentLinkActive, (iy+silentLinkFlags)
page0_257B:
- res 2, (iy+12h)
+ res indicOnly, (iy+indicFlags)
res 4, (iy+24h)
ld sp, (errSP)
ld hl, (OPBase)
--- a/source/page01/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page01/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -3160,8 +3160,8 @@
push de
push hl
push ix
- res 2, (iy+2)
- bit 1, (iy+0Dh)
+ res plotDisp, (iy+plotFlags)
+ bit appTextSave, (iy+appFlags)
jr z, p01loc_5609
call getcurloc
ld (hl), a
@@ -3212,7 +3212,7 @@
p01loc_564F:
inc b
sla a
- bit 3, (iy+5)
+ bit textInverse, (iy+textFlags)
jr z, p01loc_568D
xor 3Eh ; '>'
@@ -3226,7 +3226,7 @@
out (10h), a
call p01sub_55CC
or 1
- bit 0, (iy+8)
+ bit preClrForMode, (iy+newDispF)
jr z, p01loc_5676
and 3Eh ; '>'
@@ -3246,7 +3246,7 @@
; ---------------------------------------------------------------------------
p01loc_568D:
- bit 0, (iy+8)
+ bit preClrForMode, (iy+newDispF)
jr nz, p01loc_565A
p01loc_5693:
@@ -3291,7 +3291,7 @@
p01loc_56C0:
call PutMap
- res 0, (iy+8)
+ res preClrForMode, (iy+newDispF)
ld hl, curCol
inc (hl)
ld a, (hl)
@@ -3927,14 +3927,14 @@
inc a
cp (ix+1)
jr c, p01loc_5A3B
- bit 2, (iy+0Dh)
+ bit appAutoScroll, (iy+appFlags)
jr z, p01loc_5A3B
- set 2, (iy+5)
+ set textScrolled, (iy+textFlags)
call j_SCREENUP
ld a, e
call ClearRow
ei
- bit 1, (iy+0Dh)
+ bit appTextSave, (iy+appFlags)
jr z, p01loc_5A3C
ld a, (ix+0)
call p01sub_60FB
@@ -3984,7 +3984,7 @@
ld hl, winTop
cp (hl)
jp p, p01loc_5A5E
- bit 2, (iy+0Dh)
+ bit appAutoScroll, (iy+appFlags)
jr z, p01loc_5A5E
call scrollDown
jr p01loc_5A5F
@@ -4026,7 +4026,7 @@
ld a, e
call ClearRow
ei
- bit 1, (iy+0Dh)
+ bit appTextSave, (iy+appFlags)
jp z, p01loc_56A1
ld a, (ix+0)
call p01sub_60FB
@@ -4120,7 +4120,7 @@
push hl
push ix
call RunIndicOff
- set 2, (iy+5)
+ set textScrolled, (iy+textFlags)
ld ix, winTop
ld a, (ix+1)
sub (ix+0)
@@ -4144,7 +4144,7 @@
call ClearRow
ei
call RunIndicOn
- bit 1, (iy+0Dh)
+ bit appTextSave, (iy+appFlags)
jr z, p01loc_5B53
ld a, (ix+1)
call p01sub_60FB
@@ -4232,7 +4232,7 @@
call CheckSplitFlag
jr z, p01loc_5BAA
ld b, 0A0h ; '�'
- bit 2, (iy+2)
+ bit plotDisp, (iy+plotFlags)
jr z, p01loc_5BAA
pop af
ld a, 98h ; '�'
@@ -4320,7 +4320,7 @@
call ClrLCD
p01loc_5BF6:
- bit 1, (iy+0Dh)
+ bit appTextSave, (iy+appFlags)
ret z
ClrTxtShd:
@@ -4355,7 +4355,7 @@
p01loc_5C28:
ei
- bit 1, (iy+0Dh)
+ bit appTextSave, (iy+appFlags)
ret z
ld a, (winTop)
ld b, a
@@ -4484,7 +4484,7 @@
VPutMapRec:
call p01sub_5CCC
res 6, (iy+32h)
- res 2, (iy+32h)
+ res fracDrawLFont, (iy+fontFlags)
ret
; =============== S U B R O U T I N E =======================================
@@ -4498,10 +4498,10 @@
ld a, b
di
push hl
- res 2, (iy+32h)
+ res fracDrawLFont, (iy+fontFlags)
cp 8
jr z, p01loc_5D19
- res 2, (iy+32h)
+ res fracDrawLFont, (iy+fontFlags)
jr p01loc_5D19
; ---------------------------------------------------------------------------
@@ -4511,7 +4511,7 @@
add hl, hl
add hl, hl
add hl, hl
- bit 2, (iy+32h)
+ bit fracDrawLFont, (iy+fontFlags)
jr z, p01loc_5CF2
call Page0Call_3C03
ret
@@ -4575,7 +4575,7 @@
ld a, e
pop de
add a, e
- bit 4, (iy+14h)
+ bit write_on_graph, (iy+sGrFlags)
jr z, p01loc_5D6C
call Bit_VertSplit
jr z, p01loc_5D6C
@@ -4626,15 +4626,15 @@
pop de
ld a, (customHeight)
ld b, a
- bit 7, (iy+32h)
+ bit customFont, (iy+fontFlags)
jr nz, p01loc_5DC0
ld b, 7
bit 6, (iy+32h)
jr nz, p01loc_5DC0
- bit 2, (iy+32h)
+ bit fracDrawLFont, (iy+fontFlags)
jr nz, p01loc_5DBF
ld b, 6
- bit 1, (iy+5)
+ bit textEraseBelow, (iy+textFlags)
jr z, p01loc_5DC0
p01loc_5DBF:
@@ -4653,7 +4653,7 @@
push bc
ld b, c
ld a, (hl)
- bit 7, (iy+14h)
+ bit textWrite, (iy+sGrFlags)
call z, sOK
jr p01loc_5DDA
; ---------------------------------------------------------------------------
@@ -4672,7 +4672,7 @@
p01loc_5DE2:
djnz p01loc_5DE1
- bit 7, (iy+14h)
+ bit textWrite, (iy+sGrFlags)
jr z, p01loc_5DF4
ld (hl), a
push de
@@ -4716,7 +4716,7 @@
p01loc_5E11:
push bc
ld b, c
- bit 7, (iy+14h)
+ bit textWrite, (iy+sGrFlags)
jr z, p01loc_5E1E
ld a, (hl)
inc hl
@@ -4754,7 +4754,7 @@
p01loc_5E43:
djnz p01loc_5E3B
- bit 7, (iy+14h)
+ bit textWrite, (iy+sGrFlags)
jr z, p01loc_5E57
ld (hl), e
dec hl
@@ -4807,7 +4807,7 @@
p01sub_5E81:
; p01sub_5CCC+16Cp
- bit 3, (iy+5)
+ bit textInverse, (iy+textFlags)
jr z, p01loc_5E8E
ld b, a
ld a, 0FFh
@@ -4934,7 +4934,7 @@
pop de
pop af
res 6, (iy+32h)
- res 2, (iy+32h)
+ res fracDrawLFont, (iy+fontFlags)
or a
ret
; ---------------------------------------------------------------------------
@@ -4946,7 +4946,7 @@
p01loc_5F15:
bit 4, (iy+24h)
jr z, p01loc_5F1F
- set 2, (iy+32h)
+ set fracDrawLFont, (iy+fontFlags)
p01loc_5F1F:
ld a, (hl)
@@ -4954,7 +4954,7 @@
call VPutMap
jr c, p01loc_5F05
djnz p01loc_5EC6
- res 2, (iy+32h)
+ res fracDrawLFont, (iy+fontFlags)
jr p01loc_5EBC
; ---------------------------------------------------------------------------
@@ -5008,7 +5008,7 @@
ld (indicCounter), a
call page0_1BF
ei
- set 0, (iy+12h)
+ set indicRun, (iy+indicFlags)
jp p01loc_56A3
; End of function RunIndicOn
@@ -5021,7 +5021,7 @@
push bc
push de
push hl
- res 0, (iy+12h)
+ res indicRun, (iy+indicFlags)
ld b, 8
call p01sub_60C2
ld d, a
@@ -5198,14 +5198,14 @@
; ---------------------------------------------------------------------------
saveTR:
- bit 1, (iy+12h)
+ bit indicInUse, (iy+indicFlags)
ret nz
push af
push bc
push de
push hl
push ix
- set 1, (iy+12h)
+ set indicInUse, (iy+indicFlags)
ld b, 8
ld ix, indicMem
call p01sub_60C2
@@ -5238,7 +5238,7 @@
; ---------------------------------------------------------------------------
restoreTR:
- bit 1, (iy+12h)
+ bit indicInUse, (iy+indicFlags)
ret z
push af
push bc
@@ -5255,7 +5255,7 @@
call lcd_busy
out (11h), a
djnz p01loc_60E7
- res 1, (iy+12h)
+ res indicInUse, (iy+indicFlags)
ei
jp p01loc_56A1
@@ -5403,7 +5403,7 @@
inc hl
ld d, (hl)
ex de, hl
- bit 0, (iy+35h)
+ bit tokenHookActive, (iy+hookflags3)
jr z, p01loc_61D8
ld a, (hl)
ld (localTokStr), a
@@ -5568,7 +5568,7 @@
putcCheckScrolL:
push af
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
call GETTOKSTRING
ld a, (mcxCurApp)
cp 49h ; 'I'
@@ -5597,7 +5597,7 @@
p01loc_62B2:
pop af
call PutPS
- bit 2, (iy+5)
+ bit textScrolled, (iy+textFlags)
ret z
call j_DispEOW
ret
@@ -5825,7 +5825,7 @@
+: .asc '=?',0
DispDone:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p01loc_63DC
ld a, 0Dh
call j_call_character_hook
@@ -5915,7 +5915,7 @@
call p01sub_65B0
ld hl, aProd
ld a, 7Dh ; '}'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p01sub_65B0
rst 28h
@@ -6003,7 +6003,7 @@
p01loc_656F:
ld hl, aHelpEducation_
ld a, 70h ; 'p'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p01sub_65B0
ret
@@ -6182,7 +6182,7 @@
ld hl, aTi83PlusSilver
ld a, 7Ch ; '|'
p01loc_665E:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ret
KeyToString:
@@ -6237,7 +6237,7 @@
ld a, e
jr nz, p01loc_66CA
ld hl, Condition8Table
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
ld a, 8
call nz, j_call_character_hook
jr p01loc_670D
@@ -6302,7 +6302,7 @@
add hl, hl
ld de, MenuItems2Table
add hl, de
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p01loc_6708
ld e, a
ld a, 9
@@ -6346,7 +6346,7 @@
ret
p01loc_6730:
inc hl
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p01loc_6708
ld e, a
ld a, 0Ah
@@ -6751,7 +6751,7 @@
add hl, de
call ldHLind
push bc
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p01loc_6AE3
ld a, 7
call j_call_character_hook
--- a/source/page02/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page02/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -2603,7 +2603,7 @@
jr z, p02loc_4D58
call page0_19D
jr z, p02loc_4D58
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr z, p02loc_4D58
ld a, 1
@@ -2632,7 +2632,7 @@
p02loc_4D7D:
bit 0, (iy+2)
jr z, p02loc_4D89
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr nz, p02loc_4D95
p02loc_4D89:
@@ -2689,7 +2689,7 @@
ld b, a
cp 8
jp nz, p02loc_4D16
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
ld hl, un1
call p02sub_4E95
call p02sub_4E95
@@ -3006,7 +3006,7 @@
jr z, p02loc_5026
p02loc_5018:
- bit 2, (iy+2)
+ bit plotDisp, (iy+plotFlags)
jr nz, p02loc_5026
set 6, (iy+1Dh)
set 7, (iy+1Dh)
@@ -5840,7 +5840,7 @@
jr nz, p02loc_5F0E
pop af
jp nz, p02loc_5C81
- bit 2, (iy+0)
+ bit trigDeg, (iy+trigFlags)
ret z
jp RToD
; ---------------------------------------------------------------------------
@@ -5850,7 +5850,7 @@
jr nz, p02loc_5F1E
pop af
jp nz, p02loc_5C81
- bit 2, (iy+0)
+ bit trigDeg, (iy+trigFlags)
ret nz
jp DToR
; ---------------------------------------------------------------------------
@@ -7229,7 +7229,7 @@
jr nz, p02loc_663A
call page0_172A
jp z, p02loc_66D3
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jp nz, p02loc_692D
p02loc_663A:
@@ -7858,7 +7858,7 @@
PolarDerivative:
call Page02_38C1
- bit 2, (iy+0)
+ bit trigDeg, (iy+trigFlags)
ld hl, p02loc_6A15
call nz, page0_D19
rst 18h
@@ -9468,7 +9468,7 @@
ld a, 4
p02loc_725A:
- bit 2, (iy+0)
+ bit trigDeg, (iy+trigFlags)
jr nz, p02loc_7262
or 80h ; '�'
@@ -10487,7 +10487,7 @@
pop af
and 20h ; ' '
jr nz, p02loc_7813
- bit 2, (iy+0)
+ bit trigDeg, (iy+trigFlags)
call nz, page0_CF6
p02loc_7813:
@@ -10796,13 +10796,13 @@
p02loc_799E:
call Bit_VertSplit
jr nz, p02loc_79A8
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
ret nz
p02loc_79A8:
- set 0, (iy+14h)
- res 1, (iy+14h)
- set 2, (iy+14h)
+ set grfSplit, (iy+sGrFlags)
+ res vertSplit, (iy+sGrFlags)
+ set grfSChanged, (iy+sGrFlags)
call Page0Call_3831
call RESETWINTOP
call REGCLRCHNG
@@ -10811,44 +10811,44 @@
p02loc_79C1:
call Bit_VertSplit
jr nz, p02loc_79CB
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
ret z
p02loc_79CB:
- res 1, (iy+14h)
- res 0, (iy+14h)
+ res vertSplit, (iy+sGrFlags)
+ res grfSplit, (iy+sGrFlags)
call Page0Call_3831
call RESETWINTOP
call p02sub_79E4
call Page0Call_3837
ret
p02loc_79E0:
- res 4, (iy+13h)
+ res autoFill, (iy+tblFlags)
p02sub_79E4:
set reTable, (iy+tblFlags)
ret
p02loc_79E9:
- bit 4, (iy+13h)
+ bit autoFill, (iy+tblFlags)
call z, Page0Call_383D
- set 4, (iy+13h)
+ set autoFill, (iy+tblFlags)
jr p02sub_79E4
p02loc_79F6:
- res 5, (iy+13h)
+ res autoCalc, (iy+tblFlags)
jr p02sub_79E4
p02loc_79FC:
- set 5, (iy+13h)
+ set autoCalc, (iy+tblFlags)
jr p02sub_79E4
p02loc_7A02:
- res 0, (iy+0Ah)
+ res fmtExponent, (iy+fmtFlags)
p02loc_7A06:
- res 1, (iy+0Ah)
+ res fmtEng, (iy+fmtFlags)
ret
p02loc_7A0B:
- set 0, (iy+0Ah)
+ set fmtExponent, (iy+fmtFlags)
jr p02loc_7A06
p02loc_7A11:
- set 0, (iy+0Ah)
- set 1, (iy+0Ah)
+ set fmtExponent, (iy+fmtFlags)
+ set fmtEng, (iy+fmtFlags)
ret
p02loc_7A1A:
ld a, 0FFh
@@ -10867,16 +10867,16 @@
call j_SetSeqM
ret
p02loc_7A30:
- set 3, (iy+4)
+ set grfPolar, (iy+grfDBFlags)
ret
p02loc_7A35:
- res 3, (iy+4)
+ res grfPolar, (iy+grfDBFlags)
ret
p02loc_7A3A:
- res 4, (iy+4)
+ res grfNoCoord, (iy+grfDBFlags)
ret
p02loc_7A3F:
- set 4, (iy+4)
+ set grfNoCoord, (iy+grfDBFlags)
ret
p02loc_7A44:
ld b, 1
@@ -10908,14 +10908,14 @@
p02loc_7A6D:
jp SetTblGraphDraw
p02loc_7A70:
- bit 2, (iy+0)
+ bit trigDeg, (iy+trigFlags)
ret z
- res 2, (iy+0)
+ res trigDeg, (iy+trigFlags)
jr p02loc_7A6D
p02loc_7A7B:
- bit 2, (iy+0)
+ bit trigDeg, (iy+trigFlags)
ret nz
- set 2, (iy+0)
+ set trigDeg, (iy+trigFlags)
jr p02loc_7A6D
p02loc_7A86:
ld a, (iy+4)
@@ -10957,10 +10957,10 @@
res 2, a
jr p02loc_7A66
p02loc_7AC8:
- set 6, (iy+4)
+ set grfLabel, (iy+grfDBFlags)
ret
p02loc_7ACD:
- res 6, (iy+4)
+ res grfLabel, (iy+grfDBFlags)
ret
YONOFF:
push af
@@ -11116,7 +11116,7 @@
jr nz, p02loc_7BC5
bit 3, (hl)
ret nz
- set 1, (iy+17h)
+ set smarter_test, (iy+smartFlags)
jr p02loc_7BC5
; ---------------------------------------------------------------------------
@@ -11126,13 +11126,13 @@
set 5, (hl)
call page0_19D
jr nz, p02loc_7BC5
- bit 1, (iy+17h)
+ bit smarter_test, (iy+smartFlags)
jr nz, p02loc_7BC5
ld a, (hl)
and 0E0h ; '�'
or 0Bh
ld (hl), a
- set 0, (iy+17h)
+ set smartGraph, (iy+smartFlags)
p02loc_7BC5:
; EQSELUNSEL+13j ...
--- a/source/page03/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page03/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -8,7 +8,7 @@
ld (curRow), hl
ld hl, aBaseCode1_19
call j_PutS
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p03loc_401F
ld a, 79h ; 'y'
call j_call_character_hook
@@ -36,9 +36,9 @@
cp 5
jp nz, JForceCmdNoChar
call j_ClrScrn
- res 4, (iy+33h)
- set 2, (iy+24h)
- res 2, (iy+8)
+ res bPLinkOn, (iy+hookflags1)
+ set resetOnPowerOn, (iy+selfTestFlag)
+ res apdAble, (iy+apdFlags)
ld hl, 0
ld (curGStyle), hl
rst 28h
@@ -256,7 +256,7 @@
p03loc_41AB:
xor a
ld (unk_9CAF), a
- res 4, (iy+9)
+ res onInterrupt, (iy+onFlags)
ld de, 8181h
call p03sub_424B
ld d, 0FFh
@@ -295,7 +295,7 @@
p03loc_41FE:
; p03sub_409E+14Aj ...
- res 4, (iy+9)
+ res onInterrupt, (iy+onFlags)
call j_ClrScrn
ld a, (contrast)
call p03sub_41A1
@@ -858,15 +858,15 @@
; ---------------------------------------------------------------------------
p03loc_44AB:
- bit 2, (iy+0Dh)
+ bit appAutoScroll, (iy+appFlags)
jr z, p03loc_449E
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
ld de, (curRow)
push de
call j_wputc
pop hl
ld (curRow), hl
- set 2, (iy+0Dh)
+ set appAutoScroll, (iy+appFlags)
ret
; End of function p03sub_4492
@@ -875,11 +875,11 @@
p03sub_44C6:
- bit 2, (iy+0Dh)
+ bit appAutoScroll, (iy+appFlags)
jp z, p03loc_4587
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
call p03loc_4587
- set 2, (iy+0Dh)
+ set appAutoScroll, (iy+appFlags)
ret
; End of function p03sub_44C6
@@ -916,7 +916,7 @@
cp (hl)
jr nz, p03loc_451A
ld a, 1
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_4510
call Page0Call_362D
jr nz, p03loc_4513
@@ -939,7 +939,7 @@
cp 53h ; 'S'
jr z, p03loc_453E
ld a, 2
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_4534
call Page0Call_362D
jr nz, p03loc_4537
@@ -959,7 +959,7 @@
p03loc_4540:
call j_PutC
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_454F
ld a, 3
call Page0Call_362D
@@ -968,7 +968,7 @@
p03loc_454F:
ld l, (ix+1)
ld h, (ix+2)
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p03loc_4565
push bc
ld b, (ix+0)
@@ -1085,7 +1085,7 @@
; ---------------------------------------------------------------------------
p03loc_4602:
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_460F
ld a, 5
call Page0Call_362D
@@ -1175,7 +1175,7 @@
pop af
ret
; ---------------------------------------------------------------------------
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_4690
ld b, a
push ix
@@ -1218,7 +1218,7 @@
call ParseAndStoreSysVar
call DisplayEditSysVar
ld a, 1
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_46D9
call Page0Call_362D
jr nz, p03loc_46DC
@@ -1274,9 +1274,9 @@
p03sub_4727:
call ParseAndStoreSysVar
- bit 4, (iy+1)
+ bit monAbandon, (iy+monFlags)
call z, DisplayEditSysVar
- res 4, (iy+1)
+ res monAbandon, (iy+monFlags)
ld ix, (unk_9700)
ret
; End of function p03sub_4727
@@ -1364,7 +1364,7 @@
call ParseAndStoreSysVar
call DisplayEditSysVar
ld a, 2
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_47B7
call Page0Call_362D
jr nz, p03loc_47BA
@@ -1433,7 +1433,7 @@
; ---------------------------------------------------------------------------
p03loc_4814:
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, CallCommon
cp 8Ah ; '�'
ret z
@@ -1459,7 +1459,7 @@
p03loc_482E:
cp 0Dh
jp nz, p03loc_4858
- set 5, (iy+0Ch)
+ set cmdVirgin, (iy+cmdFlags)
set 5, (iy+5)
call Page0Call_366F
call CanAlphIns
@@ -1467,7 +1467,7 @@
call Page03_37A7
call GETLASTENTRY
call j_RCLENTRYTOEDIT
- res 5, (iy+0Ch)
+ res cmdVirgin, (iy+cmdFlags)
call j_BufToTop
call j_fdispEOL
ret
@@ -1476,7 +1476,7 @@
p03loc_4858:
cp 2
jr nz, p03loc_489E
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call j_BufLeft
jp z, p03sub_48F5
; End of function CallCommon
@@ -1489,7 +1489,7 @@
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
call IsAtTop
jp z, p03loc_48FE
ld hl, (editTail)
@@ -1527,7 +1527,7 @@
p03loc_489E:
cp 1
jr nz, p03loc_48FA
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call j_BUFPEEK
ret z
call j_GetTokLen
@@ -1619,7 +1619,7 @@
p03loc_4917:
cp 21h ; '!'
jr nz, p03loc_4929
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call j_BufLeft
jr z, p03sub_48F5
call CommonKeys
@@ -1635,7 +1635,7 @@
call p03sub_48F5
Leftmore:
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call j_BufDelete
ret z
set 5, (iy+5)
@@ -1665,7 +1665,7 @@
p03loc_4960:
call Page0Call_366F
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, p03loc_4972
bit 1, (iy+2Ah)
jr nz, p03loc_4972
@@ -1763,7 +1763,7 @@
finsDisp:
push de
- bit 4, (iy+5)
+ bit textInsMode, (iy+textFlags)
jr nz, p03loc_49F1
call j_BufReplace
pop de
@@ -1925,7 +1925,7 @@
closeeditbufnor:
; ParseAndStoreSysVar+Ap ...
call CanAlphIns
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
ret z
call j_CloseEditEqu
ret
@@ -1950,7 +1950,7 @@
; ParseAndStoreSysVar+8j
set 6, (iy+5)
call closeeditbufnor
- bit 4, (iy+1)
+ bit monAbandon, (iy+monFlags)
jr nz, p03sub_4AE9
call page0_166E
call j_ParseInp
@@ -1969,7 +1969,7 @@
; ---------------------------------------------------------------------------
p03loc_4AD8:
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_4AE5
ld a, 6
call Page0Call_362D
@@ -1990,7 +1990,7 @@
jr releaseBuffer
p03loc_4AEE:
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
; =============== S U B R O U T I N E =======================================
@@ -2016,7 +2016,7 @@
ld ix, (unk_9700)
call p03sub_473A
jp nz, p03loc_445F
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_4B16
ld a, 9
call Page0Call_362D
@@ -2133,7 +2133,7 @@
call pushErrorHandleR
call ParseAndStoreSysVar
call popErrorHandleR
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
ret
; End of function p03sub_4B7F
@@ -2165,7 +2165,7 @@
jr c, p03loc_4BCC
add hl, de
ld a, 8
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_4BC6
call Page0Call_362D
jr nz, p03loc_4BC7
@@ -2292,7 +2292,7 @@
call j_SolveRedisp
jr p03loc_4C21
; ---------------------------------------------------------------------------
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
numRedisp:
jp j_rstrShadow
@@ -2306,7 +2306,7 @@
call j_SetMenuFlags
numError02:
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr nz, p03loc_4CAA
call page0_166E
call j_setupEditEqu
@@ -2372,9 +2372,9 @@
and 1Fh
cp 3
jp z, SetTblGraphDraw
- bit 1, (iy+17h)
+ bit smarter_test, (iy+smartFlags)
jp nz, SetTblGraphDraw
- set 0, (iy+17h)
+ set smartGraph, (iy+smartFlags)
jp SetTblGraphDrawPreserveSmartTest
; ---------------------------------------------------------------------------
@@ -2454,7 +2454,7 @@
Load_SFont:
push bc
- bit 5, (iy+35h)
+ bit fontHookActive, (iy+hookflags3)
jr z, p03loc_4D7B
ld b, a
ld a, 0
@@ -2463,7 +2463,7 @@
jr z, p03loc_4D97
p03loc_4D7B:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p03loc_4D8A
ld b, a
ld a, 75h ; 'u'
@@ -2484,7 +2484,7 @@
; ---------------------------------------------------------------------------
SFont_Len:
- bit 5, (iy+35h)
+ bit fontHookActive, (iy+hookflags3)
jr z, p03loc_4DA7
ld b, a
ld a, 2
@@ -2493,7 +2493,7 @@
ret z
p03loc_4DA7:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p03loc_4DB5
ld b, a
ld a, 77h ; 'w'
@@ -2585,14 +2585,14 @@
call j_rclToQueue
jp c, ErrMemory
call popErrorHandleR
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
ld hl, (editCursor)
ld de, (rclQueue)
call j_finishoutput
- set 2, (iy+0Dh)
+ set appAutoScroll, (iy+appFlags)
pop hl
ld (curRow), hl
- res 5, (iy+0)
+ res donePrgm, (iy+doneFlags)
ei
ret
p03loc_4E65:
@@ -2605,7 +2605,7 @@
p03sub_4E6C:
ld a, 0
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_4E78
p03loc_4E74:
call Page0Call_362D
@@ -4663,7 +4663,7 @@
ld hl, p03loc_569D
call AppInit
call j_CleanAll
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
p03loc_5681:
sub a
@@ -4673,9 +4673,9 @@
jr p03loc_568D
p03loc_568D:
- res 2, (iy+0Ch)
- res 3, (iy+0Ch)
- set 4, (iy+0Ch)
+ res curAble, (iy+curFlags)
+ res curOn, (iy+curFlags)
+ set curLock, (iy+curFlags)
ret
p03loc_569A:
jp p03loc_5681
@@ -4688,8 +4688,8 @@
.dw p03loc_569A
.db 0Ah
p03loc_56AA:
- res 4, (iy+0Ch)
- res 3, (iy+14h)
+ res curLock, (iy+curFlags)
+ res grfSplitOverride, (iy+sGrFlags)
xor a
ld (varClass), a
p03loc_56B6:
@@ -4713,7 +4713,7 @@
Page03_3A77:
res 1, (iy+19h)
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
call RESETWINTOP
bit 0, (iy+9)
jr z, p03loc_56F0
@@ -4747,7 +4747,7 @@
call page0_176F
ld hl, p03loc_5814
call AppInit
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_5732
ld a, 4
call Page0Call_362D
@@ -4756,7 +4756,7 @@
p03loc_5732:
ld hl, p03loc_595D
ld a, 11h
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld de, OP3
call Mov8B
@@ -4772,7 +4772,7 @@
p03sub_5751:
- bit 2, (iy+35h)
+ bit windowHookActive, (iy+hookflags3)
jr z, p03loc_575E
ld a, 7
call Page0Call_362D
@@ -4809,7 +4809,7 @@
call page0_176F
ld hl, p03loc_5970
ld a, 12h
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld de, OP3
call Mov8B
@@ -4825,10 +4825,10 @@
bit 0, (iy+9)
jp nz, Page0Call_35F7
call InitNumVec
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
ld hl, p03loc_5964
ld a, 13h
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld de, OP3
call Mov8B
@@ -5441,7 +5441,7 @@
CLine:
- bit 5, (iy+14h)
+ bit g_style_active, (iy+sGrFlags)
jr z, p03loc_5A41
p03loc_5A41:
@@ -5454,7 +5454,7 @@
p03loc_5A49:
ld a, 2
- bit 7, (iy+35h)
+ bit drawingHookActive, (iy+hookflags3)
call nz, Page0Call_3483
jr z, p03loc_5A57
pop af
@@ -5773,7 +5773,7 @@
p03sub_5C38:
- bit 5, (iy+14h)
+ bit g_style_active, (iy+sGrFlags)
ret z
ld a, (unk_9775)
cp 2
@@ -6915,7 +6915,7 @@
jr z, p03loc_638D
p03loc_6373:
- res 1, (iy+2)
+ res plotLoc, (iy+plotFlags)
call CpyTo3FPS1
call CpyTo4FPST
call CpyO1ToFPS1
@@ -7054,9 +7054,9 @@
call p03sub_65F5
jr c, p03loc_63F9
cp 3
- set 6, (iy+14h)
+ set cmp_mod_box, (iy+sGrFlags)
jr c, p03loc_6485
- res 6, (iy+14h)
+ res cmp_mod_box, (iy+sGrFlags)
jp z, p03sub_614B
cp 4
jr z, p03loc_6481
@@ -7100,7 +7100,7 @@
; ---------------------------------------------------------------------------
p03loc_6481:
- res 6, (iy+14h)
+ res cmp_mod_box, (iy+sGrFlags)
p03loc_6485:
push de
@@ -7529,9 +7529,9 @@
ld a, b
cp 2
jp c, p03loc_6897
- set 6, (iy+14h)
+ set cmp_mod_box, (iy+sGrFlags)
jr z, p03loc_671A
- res 6, (iy+14h)
+ res cmp_mod_box, (iy+sGrFlags)
cp 4
jr z, p03loc_671A
jp nc, p03loc_68C5
@@ -7724,8 +7724,8 @@
SPLOTCOORD:
push af
- set 1, (iy+5)
- bit 0, (iy+18h)
+ set textEraseBelow, (iy+textFlags)
+ bit grfExpr, (iy+traceFlags)
jr nz, p03loc_6847
ld hl, 0
ld (penCol), hl
@@ -7761,7 +7761,7 @@
; ---------------------------------------------------------------------------
p03loc_6847:
- bit 4, (iy+4)
+ bit grfNoCoord, (iy+grfDBFlags)
jr z, p03loc_684F
pop af
ret
@@ -8640,10 +8640,10 @@
jr nz, p03loc_6D25
inc hl
ld a, (hl)
- res 0, (iy+18h)
+ res grfExpr, (iy+traceFlags)
bit 0, a
jr z, p03loc_6D25
- set 0, (iy+18h)
+ set grfExpr, (iy+traceFlags)
p03loc_6D25:
inc hl
@@ -8842,7 +8842,7 @@
p03sub_6E2F:
- bit 4, (iy+3Ch)
+ bit useFastCirc, (iy+plotFlag3)
jr z, p03loc_6E39
call j_DrawCirc2
ret
@@ -8855,7 +8855,7 @@
rst 18h
ld a, 60h ; '`'
ld (OP1M), a
- bit 2, (iy+0)
+ bit trigDeg, (iy+trigFlags)
call z, DToR
rst 18h
set 5, (iy+3)
@@ -9251,7 +9251,7 @@
ld (unk_8D0A), a
ld hl, p03loc_7650
call page0_7C1
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
p03loc_70CC:
call p03sub_71FC
@@ -9261,7 +9261,7 @@
ld d, (hl)
ex de, hl
ld a, 74h ; 't'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld de, OP3
call Mov8B
@@ -9408,8 +9408,8 @@
res 4, (iy+1Ch)
p03loc_71DF:
- set 6, (iy+0Dh)
- res 1, (iy+0Dh)
+ set appCurWord, (iy+appFlags)
+ res appTextSave, (iy+appFlags)
call CanAlphIns
bit 4, (iy+1Ch)
ret z
@@ -9553,8 +9553,8 @@
; ---------------------------------------------------------------------------
ld a, (unk_89F5)
push af
- set 3, (iy+5)
- set 0, (iy+8)
+ set textInverse, (iy+textFlags)
+ set preClrForMode, (iy+newDispF)
call p03sub_4D49
pop af
ld (unk_89F5), a
@@ -9566,7 +9566,7 @@
call j_PutC
ld hl, p03loc_7A64
ld a, 71h ; 'q'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p03sub_4D49
ret c
@@ -9732,7 +9732,7 @@
; ---------------------------------------------------------------------------
p03loc_73D7:
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, p03loc_73E0
cp 8Ah ; '�'
ret z
@@ -9807,7 +9807,7 @@
p03loc_7457:
call popErrorHandleR
- bit 4, (iy+1)
+ bit monAbandon, (iy+monFlags)
ret nz
ld hl, 92C5h
bit 2, (hl)
@@ -9815,7 +9815,7 @@
res 2, (hl)
jp p03loc_73B7
p03loc_746C:
- bit 4, (iy+1)
+ bit monAbandon, (iy+monFlags)
ret nz
jp JError
@@ -9833,13 +9833,13 @@
p03sub_747A:
- set 4, (iy+1)
+ set monAbandon, (iy+monFlags)
ld hl, p03loc_748A
call pushErrorHandleR
call Page0Call_3435
call popErrorHandleR
p03loc_748A:
- res 4, (iy+1)
+ res monAbandon, (iy+monFlags)
ret
; End of function p03sub_747A
@@ -9862,7 +9862,7 @@
p03loc_74A3:
call page0_740
call p03sub_7474
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
; End of function p03sub_748F
@@ -9881,8 +9881,8 @@
p03sub_74B9:
- res 6, (iy+0Dh)
- set 1, (iy+0Dh)
+ res appCurWord, (iy+appFlags)
+ set appTextSave, (iy+appFlags)
ret
; End of function p03sub_74B9
@@ -9958,7 +9958,7 @@
ld a, (ix+5)
ld (curRow+1), a
jr nc, p03loc_756F
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p03loc_755C
ld h, (ix+0Dh)
ld l, (ix+0Eh)
@@ -9972,7 +9972,7 @@
p03loc_7561:
ld b, a
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
ld a, 20h ; ' '
p03loc_7568:
@@ -9988,15 +9988,15 @@
and (ix+0Ch)
cp (ix+0Bh)
jr nz, p03loc_7584
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
jr p03loc_7588
; ---------------------------------------------------------------------------
p03loc_7584:
- set 0, (iy+8)
+ set preClrForMode, (iy+newDispF)
p03loc_7588:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p03loc_759B
ld h, (ix+0Dh)
ld l, (ix+0Eh)
@@ -10050,7 +10050,7 @@
call pushErrorHandleR
call p03sub_7C6C
call PopRealO1
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
call p03sub_7474
call p03sub_74B9
call j_ClrScrnFull
@@ -10088,14 +10088,14 @@
p03loc_7621:
bit 7, (iy+9)
call nz, Page0Call_344D
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
call nz, j_GrBufCpy
set 6, (iy+1Ch)
ld a, 40h ; '@'
call newContext
ret
p03loc_7639:
- res 6, (iy+9)
+ res statsValid, (iy+statFlags)
res 7, (iy+9)
res 7, a
jp JError
@@ -11725,7 +11725,7 @@
p03sub_7D48:
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
ld a, (unk_97A1)
ld b, a
ld ix, (unk_979F)
--- a/source/page04/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page04/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -56,7 +56,7 @@
ILine:
push af
ld a, 1
- bit 7, (iy+35h)
+ bit drawingHookActive, (iy+hookflags3)
call nz, Page0Call_3483
jr z, p04loc_4038
pop af
@@ -307,7 +307,7 @@
; CPoint+1Dp ...
push af
ld a, 0
- bit 7, (iy+35h)
+ bit drawingHookActive, (iy+hookflags3)
call nz, Page0Call_3483
jr z, p04loc_4166
pop af
@@ -319,7 +319,7 @@
p04loc_4166:
push bc
- bit 5, (iy+14h)
+ bit g_style_active, (iy+sGrFlags)
jp z, p04loc_41F3
ld a, (unk_9775)
cp 1
@@ -453,7 +453,7 @@
ld c, a
push de
push hl
- bit 2, (iy+2Bh)
+ bit fullScrnDraw, (iy+apiFlg4)
jr z, p04loc_420A
call IBoundsFull
jr p04loc_420D
@@ -481,7 +481,7 @@
ld hl, plotSScreen
add hl, de
push hl
- bit 0, (iy+3Ch)
+ bit bufferOnly, (iy+plotFlag3)
jr nz, p04loc_4251
di
ld a, (curXRow)
@@ -495,7 +495,7 @@
call j_sOK
pop hl
push hl
- bit 1, (iy+2)
+ bit plotLoc, (iy+plotFlags)
jr nz, p04loc_4252
p04loc_4251:
@@ -527,7 +527,7 @@
p04loc_4260:
bit 3, (iy+3Ch)
jr nz, p04loc_426C
- bit 0, (iy+3Ch)
+ bit bufferOnly, (iy+plotFlag3)
jr z, p04loc_4270
p04loc_426C:
@@ -552,7 +552,7 @@
ld a, h
pop hl
ei
- bit 1, (iy+2)
+ bit plotLoc, (iy+plotFlags)
jr nz, p04loc_428F
p04loc_428E:
@@ -1089,20 +1089,20 @@
Page04_3A1D:
ld b, a
ld a, 0
- bit 3, (iy+35h)
+ bit graphHookActive, (iy+hookflags3)
call nz, Page0Call_330F
push bc
- res 4, (iy+14h)
+ res write_on_graph, (iy+sGrFlags)
ld hl, p04loc_4516
call AppInit
- res 1, (iy+2)
- res 3, (iy+1Fh)
+ res plotLoc, (iy+plotFlags)
+ res splitOverride, (iy+graphFlags2)
pop af
ld hl, p04loc_4523
ld bc, 9
cpir
jr z, TraceOff
- bit 0, (iy+3)
+ bit graphDraw, (iy+graphFlags)
jr z, p04loc_44E1
or a
jr z, TraceOff
@@ -1151,7 +1151,7 @@
ld l, 10h
p04loc_4503:
- bit 1, (iy+14h)
+ bit vertSplit, (iy+sGrFlags)
jr z, p04loc_450B
ld l, 1Ah
@@ -1191,13 +1191,13 @@
; End of function DoNothing3
; ---------------------------------------------------------------------------
- bit 2, (iy+2)
+ bit plotDisp, (iy+plotFlags)
jr nz, p04loc_4533
p04loc_4533:
call GrBufCpy
call LABCOOR
- bit 0, (iy+11h)
+ bit promptEdit, (iy+promptFlags)
jr z, p04loc_4541
pop af
ret
@@ -1210,7 +1210,7 @@
p04loc_4543:
GrRedisp:
- bit 0, (iy+11h)
+ bit promptEdit, (iy+promptFlags)
jr nz, p04loc_4555
bit 2, (iy+17h)
jr nz, p04loc_4555
@@ -1222,7 +1222,7 @@
p04loc_4555:
call GRBUFCPY_V
call LABCOOR
- bit 0, (iy+11h)
+ bit promptEdit, (iy+promptFlags)
ret z
call j_rstrCurRow
bit 2, (iy+17h)
@@ -1259,8 +1259,8 @@
p04sub_4596:
- res 0, (iy+11h)
- set 5, (iy+0Dh)
+ res promptEdit, (iy+promptFlags)
+ set appCurGraphic, (iy+appFlags)
ld hl, noErrorEntry
ld (mcxErrorEP), hl
ret
@@ -1288,12 +1288,12 @@
ld b, a
ld a, 6
- bit 3, (iy+35h)
+ bit graphHookActive, (iy+hookflags3)
call nz, Page0Call_330F
ret nz
ld a, b
- res 5, (iy+14h)
- bit 0, (iy+11h)
+ res g_style_active, (iy+sGrFlags)
+ bit promptEdit, (iy+promptFlags)
jp z, p04loc_46FA
p04loc_45BC:
@@ -1324,7 +1324,7 @@
p04loc_45E8:
call zero_basic_prog
- res 3, (iy+17h)
+ res smarter_mask, (iy+smartFlags)
call j_parseEditBuf
call page0_1851
scf
@@ -1350,7 +1350,7 @@
p04loc_461F:
cp 52h ; 'R'
jr c, p04sub_465B
- bit 3, (iy+17h)
+ bit smarter_mask, (iy+smartFlags)
jr nz, p04sub_465B
rst 18h
set 5, (iy+17h)
@@ -1394,7 +1394,7 @@
ld hl, 0
call page0_19D
jr z, p04loc_468B
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr nz, p04loc_4686
rst 18h
call p04sub_501E
@@ -1456,7 +1456,7 @@
; ---------------------------------------------------------------------------
call p04sub_46DE
rst 18h
- set 3, (iy+17h)
+ set smarter_mask, (iy+smartFlags)
jp p04loc_45F9
; =============== S U B R O U T I N E =======================================
@@ -1490,7 +1490,7 @@
jp c, GRDECODA
ld b, a
ld a, 1
- bit 3, (iy+35h)
+ bit graphHookActive, (iy+hookflags3)
call nz, Page0Call_330F
ret nz
bit 0, (iy+2)
@@ -1552,14 +1552,14 @@
push de
push bc
call p04sub_47AB
- set 7, (iy+14h)
+ set textWrite, (iy+sGrFlags)
pop bc
pop de
ld (penCol), bc
p04loc_478B:
call p04sub_47AB
- res 7, (iy+14h)
+ res textWrite, (iy+sGrFlags)
ld a, (penCol)
pop bc
ld b, a
@@ -1588,9 +1588,9 @@
call j_GetTokLen
inc hl
ld b, a
- set 4, (iy+14h)
+ set write_on_graph, (iy+sGrFlags)
call j_vputsnG
- res 4, (iy+14h)
+ res write_on_graph, (iy+sGrFlags)
ret
; End of function p04sub_47AB
@@ -1600,14 +1600,14 @@
GRDECODA:
ld b, a
ld a, 7
- bit 3, (iy+35h)
+ bit graphHookActive, (iy+hookflags3)
call nz, Page0Call_330F
ret nz
ld a, b
res 0, (iy+27h)
res 1, (iy+27h)
res 2, (iy+27h)
- res 5, (iy+14h)
+ res g_style_active, (iy+sGrFlags)
cp 5
jr c, p04loc_47E6
cp 0Eh
@@ -1618,7 +1618,7 @@
p04loc_47E6:
ld d, a
ld a, 2
- bit 3, (iy+35h)
+ bit graphHookActive, (iy+hookflags3)
call nz, Page0Call_330F
ret nz
ld a, (curGStyle)
@@ -1807,7 +1807,7 @@
or a
jr z, p04loc_48F4
call j_SPLOTCOORD
- bit 4, (iy+4)
+ bit grfNoCoord, (iy+grfDBFlags)
jr nz, p04loc_48FE
ld a, (curGStyle)
cp 7Fh ; ''
@@ -1863,11 +1863,11 @@
jr z, p04loc_4934
p04loc_4948:
- bit 0, (iy+11h)
+ bit promptEdit, (iy+promptFlags)
ret nz
cp 4Fh ; 'O'
jr z, p04loc_4956
- bit 4, (iy+4)
+ bit grfNoCoord, (iy+grfDBFlags)
ret nz
p04loc_4956:
@@ -1879,7 +1879,7 @@
bit 3, (iy+2)
jr z, p04loc_4983
call CLRGRAPHXY
- bit 3, (iy+4)
+ bit grfPolar, (iy+grfDBFlags)
jr z, p04loc_497A
call p04sub_7685
jp FINISHSPEC
@@ -1892,13 +1892,13 @@
; ---------------------------------------------------------------------------
p04loc_4983:
- bit 3, (iy+4)
+ bit grfPolar, (iy+grfDBFlags)
jp nz, p04sub_7685
jp p04loc_767A
; ---------------------------------------------------------------------------
p04loc_498D:
- bit 3, (iy+4)
+ bit grfPolar, (iy+grfDBFlags)
jp z, p04loc_4A06
bit 6, (iy+3)
jp nz, p04loc_4A06
@@ -2025,7 +2025,7 @@
p04loc_4A76:
call p04sub_5CA7
jp nz, LABCOOR
- bit 2, (iy+3)
+ bit graphCursor, (iy+graphFlags)
push af
ld hl, (curGY)
push hl
@@ -2059,7 +2059,7 @@
call GRLABELS
pop af
ret z
- set 2, (iy+3)
+ set graphCursor, (iy+graphFlags)
ld a, 4Dh ; 'M'
ld (curGStyle), a
ret
@@ -2068,10 +2068,10 @@
p04loc_4ACC:
ld hl, p04loc_7A20
call setPenX
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
call Page04_3345
call p04sub_7A03
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
jr p04loc_4ABD
; ---------------------------------------------------------------------------
@@ -2101,7 +2101,7 @@
; ---------------------------------------------------------------------------
p04loc_4B09:
- bit 2, (iy+3)
+ bit graphCursor, (iy+graphFlags)
push af
ld hl, (pTempCnt)
push hl
@@ -2305,7 +2305,7 @@
ld a, 67h ; 'g'
ld (curGStyle), a
ld hl, (curGY)
- bit 2, (iy+3)
+ bit graphCursor, (iy+graphFlags)
jr nz, p04loc_4C6C
set 7, l
@@ -2334,7 +2334,7 @@
p04loc_4C9B:
ld hl, (curGY)
- bit 2, (iy+3)
+ bit graphCursor, (iy+graphFlags)
jr nz, p04loc_4CA6
set 7, l
@@ -2572,7 +2572,7 @@
ld a, (curGStyle)
call SetTblGraphDraw
call Regraph
- bit 0, (iy+3)
+ bit graphDraw, (iy+graphFlags)
jr z, p04loc_4DD3
jp p04loc_5470
; ---------------------------------------------------------------------------
@@ -2792,7 +2792,7 @@
p04loc_4F43:
; ForceGraphKeypress+97Aj ...
- bit 0, (iy+3)
+ bit graphDraw, (iy+graphFlags)
push af
call nz, Regraph
pop af
@@ -2802,14 +2802,14 @@
p04loc_4F52:
; ForceGraphKeypress+99Cj
- bit 0, (iy+3)
+ bit graphDraw, (iy+graphFlags)
push af
call nz, Regraph
pop af
push af
call z, GRBUFCPY_V
pop af
- bit 0, (iy+3)
+ bit graphDraw, (iy+graphFlags)
jr nz, p04loc_4F33
cp 75h ; 'u'
jp nz, p04loc_502C
@@ -2822,7 +2822,7 @@
p04sub_4F71:
- res 3, (iy+0Ch)
+ res curOn, (iy+curFlags)
call GrBufCpy
call GRLABELS
@@ -2841,9 +2841,9 @@
ld (editSym), hl
call j_SetEmptyEditPtr
call CanAlphIns
- res 4, (iy+0Ch)
- set 0, (iy+11h)
- res 5, (iy+0Dh)
+ res curLock, (iy+curFlags)
+ set promptEdit, (iy+promptFlags)
+ res appCurGraphic, (iy+appFlags)
ld hl, p04loc_4572
ld (mcxErrorEP), hl
ret
@@ -2885,7 +2885,7 @@
p04sub_4FEC:
ld hl, (winBtm)
dec l
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr z, p04loc_4FF8
ld l, 3
@@ -3023,7 +3023,7 @@
jr z, p04loc_50D9
res 2, (iy+17h)
call j_RclN
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr z, p04loc_50CA
ld hl, nMin
rst 20h
@@ -3068,7 +3068,7 @@
jr z, p04loc_511C
call page0_19D
jr z, p04loc_5119
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
ret nz
ld hl, 8D21h
rst 20h
@@ -3109,7 +3109,7 @@
ld a, (curGStyle)
cp 4Fh ; 'O'
jr nz, p04loc_5150
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr z, p04loc_517F
jr p04loc_5173
; ---------------------------------------------------------------------------
@@ -3128,7 +3128,7 @@
call p04sub_501E
p04loc_516D:
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr z, p04loc_517C
p04loc_5173:
@@ -3173,7 +3173,7 @@
p04sub_51AA:
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
call nz, FPOPREAL
ld hl, 8D21h
rst 20h
@@ -3189,7 +3189,7 @@
call Page04_38E5
call PopRealO1
call j_SEQSET
- res 1, (iy+0Fh)
+ res webVert, (iy+seqFlags)
set 5, (iy+0Fh)
call RECURNNAME
rst 10h
@@ -3353,7 +3353,7 @@
ld (curGY2+1), a
call page0_19D
jr z, p04loc_52E5
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr z, p04loc_52E5
ld hl, nMin
rst 20h
@@ -3456,7 +3456,7 @@
res 4, (iy+17h)
pop hl
ld (pTempCnt), hl
- bit 4, (iy+4)
+ bit grfNoCoord, (iy+grfDBFlags)
jr z, p04loc_53AE
call j_CursorOff
jp p04loc_48B5
@@ -3484,7 +3484,7 @@
set 2, (iy+27h)
call page0_19D
jr z, p04loc_541F
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr z, p04loc_53F0
ld hl, 8D21h
rst 20h
@@ -3719,7 +3719,7 @@
; ---------------------------------------------------------------------------
p04loc_5516:
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr z, p04loc_5525
ld hl, 8D21h
call page0_186A
@@ -3901,29 +3901,29 @@
p04loc_5658:
bit 7, (iy+19h)
jp nz, p04loc_5340
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jp nz, p04loc_5758
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
call VALCUR
call RCL_SEQ_X
call CkOP1Real
cp 0Eh
jr nz, p04loc_5680
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
ld hl, OP1
set 5, (hl)
p04loc_5680:
call p04sub_5467
call p04sub_5C0A
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
call p04sub_5729
call CkOP1Real
cp 0Eh
jr nz, p04loc_569D
ld hl, OP1
set 5, (hl)
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
p04loc_569D:
jp TRCYFUNC
@@ -3960,7 +3960,7 @@
p04loc_56B9:
call p04loc_5C4D
call p04loc_5BFB
- bit 3, (iy+4)
+ bit grfPolar, (iy+grfDBFlags)
jr z, p04loc_56C9
res 6, (iy+3)
@@ -4006,7 +4006,7 @@
add hl, bc
ld a, (hl)
push af
- bit 0, (iy+3)
+ bit graphDraw, (iy+graphFlags)
call z, GRBUFCPY_V
pop af
@@ -4114,7 +4114,7 @@
bit 1, a
jr nz, p04loc_5779
call j_CursorOff
- set 1, (iy+0Fh)
+ set webVert, (iy+seqFlags)
call OP1Set0
call YPIXSET
call p04sub_5729
@@ -4135,7 +4135,7 @@
p04loc_5790:
res 5, (iy+0Fh)
- res 1, (iy+0Fh)
+ res webVert, (iy+seqFlags)
call p04sub_5729
rst 8
call CpyTo1FPST
@@ -4153,7 +4153,7 @@
p04loc_57B3:
bit 1, a
jr nz, p04loc_581D
- set 1, (iy+0Fh)
+ set webVert, (iy+seqFlags)
call p04sub_5729
call OP1ToOP4
rst 8
@@ -4201,7 +4201,7 @@
; ---------------------------------------------------------------------------
p04loc_581D:
- res 1, (iy+0Fh)
+ res webVert, (iy+seqFlags)
call p04sub_5848
ld a, (iy+17h)
push af
@@ -4506,7 +4506,7 @@
p04loc_5A28:
ld a, (curInc+1)
- set 3, (iy+17h)
+ set smarter_mask, (iy+smartFlags)
res 7, (iy+17h)
p04loc_5A33:
@@ -4526,11 +4526,11 @@
rst 20h
call CpyO1ToFPS1
call NEDXT_Y_STYLE
- set 5, (iy+14h)
- bit 3, (iy+17h)
+ set g_style_active, (iy+sGrFlags)
+ bit smarter_mask, (iy+smartFlags)
call z, PLOTPT
- res 3, (iy+17h)
- res 5, (iy+14h)
+ res smarter_mask, (iy+smartFlags)
+ res g_style_active, (iy+sGrFlags)
call page0_189
jr nz, p04loc_5AAD
call Page04_3393
@@ -4567,9 +4567,9 @@
p04loc_5AAD:
; p04sub_58BE+1B3j
- res 0, (iy+3)
+ res graphDraw, (iy+graphFlags)
res 1, (iy+3)
- res 1, (iy+17h)
+ res smarter_test, (iy+smartFlags)
pop hl
pop af
ld (pTempCnt), hl
@@ -4619,7 +4619,7 @@
jr nz, p04loc_5B22
call page0_19D
jr z, p04loc_5B1F
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr z, p04loc_5B12
call ErrD_OP1NotPosInt
ld hl, nMin
@@ -4658,7 +4658,7 @@
jr c, p04loc_5B4E
call page0_19D
jr z, p04loc_5B45
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr nz, p04loc_5B4E
p04loc_5B45:
@@ -4729,12 +4729,12 @@
GRLABELS:
- bit 0, (iy+3)
+ bit graphDraw, (iy+graphFlags)
ret nz
push af
- bit 5, (iy+4)
+ bit grfNoAxis, (iy+grfDBFlags)
jr nz, p04loc_5BB4
- bit 6, (iy+4)
+ bit grfLabel, (iy+grfDBFlags)
call nz, p04sub_775A
p04loc_5BB4:
@@ -4794,7 +4794,7 @@
set 7, (iy+3)
p04loc_5C04:
- res 2, (iy+3)
+ res graphCursor, (iy+graphFlags)
jr p04loc_5BF7
; End of function YPIXSET
@@ -4849,7 +4849,7 @@
set 6, (iy+3)
p04loc_5C57:
- res 2, (iy+3)
+ res graphCursor, (iy+graphFlags)
jr p04loc_5C49
; End of function XPIXSET
@@ -4880,7 +4880,7 @@
VALCUR:
; ForceGraphKeypress+76Fp ...
- set 2, (iy+3)
+ set graphCursor, (iy+graphFlags)
res 6, (iy+3)
res 7, (iy+3)
ret
@@ -4937,15 +4937,15 @@
call j_closeEditBuf
call p04sub_4596
call j_CursorOff
- res 4, (iy+1)
- res 4, (iy+14h)
+ res monAbandon, (iy+monFlags)
+ res write_on_graph, (iy+sGrFlags)
res 2, (iy+17h)
set 7, (iy+1Dh)
jr RSTGFLAGS
; ---------------------------------------------------------------------------
p04loc_5CCC:
GRPPutAway:
- bit 0, (iy+11h)
+ bit promptEdit, (iy+promptFlags)
call nz, j_saveShadow2
bit 2, (iy+17h)
call nz, j_saveShadow2
@@ -4981,7 +4981,7 @@
res 0, (iy+2)
xor a
ld (curGStyle), a
- res 2, (iy+3)
+ res graphCursor, (iy+graphFlags)
pop af
ret
; End of function p04sub_5CEA
@@ -5187,10 +5187,10 @@
p04sub_5E5D:
- res 5, (iy+2)
- res 6, (iy+2)
- res 4, (iy+2)
- res 7, (iy+2)
+ res grfPolarM, (iy+grfModeFlags)
+ res grfParamM, (iy+grfModeFlags)
+ res grfFuncM, (iy+grfModeFlags)
+ res grfRecurM, (iy+grfModeFlags)
ret
; End of function p04sub_5E5D
@@ -5205,7 +5205,7 @@
p04sub_5E72:
call p04sub_5E5D
- set 4, (iy+2)
+ set grfFuncM, (iy+grfModeFlags)
p04loc_5E79:
jp SetTblGraphDraw
@@ -5217,7 +5217,7 @@
call page0_19D
ret nz
call p04sub_5E5D
- set 7, (iy+2)
+ set grfRecurM, (iy+grfModeFlags)
jr p04loc_5E79
; ---------------------------------------------------------------------------
@@ -5225,7 +5225,7 @@
call page0_198
ret nz
call p04sub_5E5D
- set 5, (iy+2)
+ set grfPolarM, (iy+grfModeFlags)
jr p04loc_5E79
; ---------------------------------------------------------------------------
@@ -5233,7 +5233,7 @@
call page0_1A2
ret nz
call p04sub_5E5D
- set 6, (iy+2)
+ set grfParamM, (iy+grfModeFlags)
jr p04loc_5E79
; =============== S U B R O U T I N E =======================================
@@ -5243,7 +5243,7 @@
call COPYRNG
call int
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
ld a, (lcdTallP)
sub 2
push af
@@ -5443,7 +5443,7 @@
p04loc_5FD5:
call SetGraphDraw
- set 1, (iy+17h)
+ set smarter_test, (iy+smartFlags)
set 2, (iy+11h)
call Regraph
res 2, (iy+11h)
@@ -5473,7 +5473,7 @@
call popErrorHandleR
call page0_19D
ret z
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
ret z
; End of function ZmFit
@@ -5559,13 +5559,13 @@
call COPYRNG
ld a, 5Ah ; 'Z'
call j_SetXXOP1
- bit 2, (iy+0)
+ bit trigDeg, (iy+trigFlags)
call z, DToR
ld de, Xscl
call MovFrOP1
ld hl, p04loc_609E
rst 20h
- bit 2, (iy+0)
+ bit trigDeg, (iy+trigFlags)
call z, DToR
call SetXMinMax
call OP1Set1
@@ -5673,7 +5673,7 @@
call OP1Set0
ld a, 75h ; 'u'
ld (OP1M), a
- bit 2, (iy+0)
+ bit trigDeg, (iy+trigFlags)
call z, DToR
pop de
call MovFrOP1
@@ -5707,13 +5707,13 @@
GRBUFCPY_V:
- set 2, (iy+2)
+ set plotDisp, (iy+plotFlags)
call Bit_VertSplit
jr z, GrBufCpy
bit 7, (iy+1Dh)
call nz, j_DSPGRTBL
res 2, (iy+1Fh)
- set 2, (iy+2)
+ set plotDisp, (iy+plotFlags)
res 7, (iy+1Dh)
bit 6, (iy+1Dh)
ret z
@@ -5728,7 +5728,7 @@
ld hl, plotSScreen
BufCpy:
- set 2, (iy+2)
+ set plotDisp, (iy+plotFlags)
ld b, 20h ; ' '
call CheckSplitFlag
jr nz, p04loc_61BB
@@ -5745,7 +5745,7 @@
jr z, p04loc_61D3
ld a, b
sub 7
- bit 1, (iy+14h)
+ bit vertSplit, (iy+sGrFlags)
jr z, p04loc_61D2
sub 7
@@ -5768,9 +5768,9 @@
push de
call j_SetNorm_Vals
ld b, 2Fh ; '/'
- set 1, (iy+2)
+ set plotLoc, (iy+plotFlags)
call VerticalLine
- res 1, (iy+2)
+ res plotLoc, (iy+plotFlags)
call j_SetYOffset
pop de
ret
@@ -5929,14 +5929,14 @@
dec hl
ld a, (hl)
pop hl
- bit 2, (iy+0Fh)
+ bit sequv, (iy+seqFlags)
jr z, p04loc_62CB
cp 82h ; '�'
jr p04loc_62D7
; ---------------------------------------------------------------------------
p04loc_62CB:
- bit 3, (iy+0Fh)
+ bit seqvw, (iy+seqFlags)
jr z, p04loc_62D5
cp 80h ; '�'
jr p04loc_62D7
@@ -6087,7 +6087,7 @@
p04loc_6399:
call SetTblGraphDraw
- set 1, (iy+17h)
+ set smarter_test, (iy+smartFlags)
jr p04loc_634F
; ---------------------------------------------------------------------------
@@ -6238,7 +6238,7 @@
p04sub_6431:
- set 1, (iy+2)
+ set plotLoc, (iy+plotFlags)
ld a, (curGY)
ld (curGY2), a
call HorizontalLine
@@ -6250,7 +6250,7 @@
p04sub_6440:
- set 1, (iy+2)
+ set plotLoc, (iy+plotFlags)
ld a, (curGY+1)
ld (curGY2+1), a
call p04sub_4017
@@ -6263,7 +6263,7 @@
p04sub_644F:
ld de, (curGY2)
- set 1, (iy+2)
+ set plotLoc, (iy+plotFlags)
ld h, 1
ld bc, (curGY)
jr p04loc_648C
@@ -6274,7 +6274,7 @@
p04sub_645F:
- set 1, (iy+2)
+ set plotLoc, (iy+plotFlags)
ld h, 1
ld de, (curGY)
ld bc, (curGY2)
@@ -6308,19 +6308,19 @@
call ILine
p04loc_648F:
- res 1, (iy+2)
+ res plotLoc, (iy+plotFlags)
ret
; End of function p04sub_645F
; ---------------------------------------------------------------------------
BLINKGCUR:
- bit 2, (iy+3)
+ bit graphCursor, (iy+graphFlags)
ret z
bit 0, (iy+2)
jr nz, p04loc_64AB
ld a, 5
- bit 3, (iy+35h)
+ bit graphHookActive, (iy+hookflags3)
call nz, Page0Call_330F
ret nz
jr p04loc_64B5
@@ -6342,7 +6342,7 @@
bit 0, (iy+2)
jr nz, p04loc_64CF
ld a, 4
- bit 3, (iy+35h)
+ bit graphHookActive, (iy+hookflags3)
call nz, Page0Call_330F
ret nz
jr p04loc_64D9
@@ -6388,7 +6388,7 @@
; ---------------------------------------------------------------------------
p04loc_650E:
- bit 2, (iy+3)
+ bit graphCursor, (iy+graphFlags)
jr z, p04loc_6518
cp 81h ; '�'
jr z, p04loc_64E0
@@ -6409,7 +6409,7 @@
call p04sub_666E
p04loc_6536:
- bit 2, (iy+3)
+ bit graphCursor, (iy+graphFlags)
ret z
ld a, (curGStyle)
cp 1Dh
@@ -6497,7 +6497,7 @@
ld bc, (curGY)
p04loc_65AB:
- set 1, (iy+2)
+ set plotLoc, (iy+plotFlags)
; End of function p04sub_6580
@@ -6544,7 +6544,7 @@
jr nz, p04loc_65B5
p04loc_65D8:
- res 1, (iy+2)
+ res plotLoc, (iy+plotFlags)
ret
; End of function p04sub_65AF
@@ -6569,7 +6569,7 @@
p04loc_65F1:
ld bc, (curGY)
- res 1, (iy+2)
+ res plotLoc, (iy+plotFlags)
ld d, 1
call p04sub_65AF
scf
@@ -6583,9 +6583,9 @@
p04loc_6602:
ld hl, p04loc_6669
- set 1, (iy+2)
+ set plotLoc, (iy+plotFlags)
call p04sub_65AF
- res 1, (iy+2)
+ res plotLoc, (iy+plotFlags)
ret
; End of function p04sub_6600
@@ -6961,7 +6961,7 @@
ld (unk_966D), a
res 6, (iy+18h)
res 7, (iy+0)
- res 2, (iy+14h)
+ res grfSChanged, (iy+sGrFlags)
bit 0, (iy+2)
jr nz, p04loc_67C6
ld hl, 8D1Eh
@@ -7004,7 +7004,7 @@
res 5, (iy+3)
call p04sub_756C
jr nz, p04loc_686D
- set 2, (iy+2)
+ set plotDisp, (iy+plotFlags)
pop bc
ld a, 1
call p04sub_7564
@@ -7024,7 +7024,7 @@
call j_ClrLCD
call Bit_VertSplit
call nz, j_DSPGRTBL
- set 2, (iy+2)
+ set plotDisp, (iy+plotFlags)
ld a, 2
call p04sub_7564
call z, Axes
@@ -7076,7 +7076,7 @@
call p04sub_7087
p04loc_68B8:
- set 1, (iy+17h)
+ set smarter_test, (iy+smartFlags)
xor a
ld (curPlotNumber), a
ld a, 9
@@ -7104,7 +7104,7 @@
; ---------------------------------------------------------------------------
p04loc_68E8:
- bit 1, (iy+4)
+ bit grfSimul, (iy+grfDBFlags)
jp nz, p04loc_6A00
rst 18h
@@ -7139,9 +7139,9 @@
res 5, (iy+3)
p04loc_692D:
- set 5, (iy+14h)
+ set g_style_active, (iy+sGrFlags)
call YRES
- res 5, (iy+14h)
+ res g_style_active, (iy+sGrFlags)
call p04sub_6FCD
call p04sub_755F
call nz, p04sub_75B3
@@ -7166,9 +7166,9 @@
; ---------------------------------------------------------------------------
p04loc_6962:
- res 0, (iy+3)
- res 1, (iy+17h)
- res 0, (iy+17h)
+ res graphDraw, (iy+graphFlags)
+ res smarter_test, (iy+smartFlags)
+ res smartGraph, (iy+smartFlags)
call p04sub_756C
jr nz, p04loc_698F
res 6, (iy+1Dh)
@@ -7176,7 +7176,7 @@
p04loc_6977:
call p04sub_755F
call nz, GrBufCpy
- res 5, (iy+14h)
+ res g_style_active, (iy+sGrFlags)
ld hl, (EQS)
ld (FPS), hl
ld a, 1
@@ -7336,9 +7336,9 @@
rst 8
ld hl, (inputDat)
rst 20h
- set 5, (iy+14h)
+ set g_style_active, (iy+sGrFlags)
call PLOTPT
- res 5, (iy+14h)
+ res g_style_active, (iy+sGrFlags)
call p04sub_7087
jp p04loc_6A10
; ---------------------------------------------------------------------------
@@ -7358,7 +7358,7 @@
; ---------------------------------------------------------------------------
p04loc_6AB7:
- bit 1, (iy+4)
+ bit grfSimul, (iy+grfDBFlags)
jp nz, p04loc_6B5E
p04loc_6ABE:
@@ -7423,9 +7423,9 @@
p04loc_6B33:
call CpyO1ToFPS1
- set 5, (iy+14h)
+ set g_style_active, (iy+sGrFlags)
call PLOTPT
- res 5, (iy+14h)
+ res g_style_active, (iy+sGrFlags)
call OP1Set1
call p04sub_755F
call nz, p04sub_75B3
@@ -7509,9 +7509,9 @@
inc hl
inc hl
call mov9B2
- set 5, (iy+14h)
+ set g_style_active, (iy+sGrFlags)
call PLOTPT
- res 5, (iy+14h)
+ res g_style_active, (iy+sGrFlags)
call OP1Set1
call p04sub_755F
call nz, p04sub_75B3
@@ -7535,7 +7535,7 @@
; ---------------------------------------------------------------------------
p04loc_6C27:
- bit 1, (iy+4)
+ bit grfSimul, (iy+grfDBFlags)
jr nz, p04loc_6C98
p04loc_6C2D:
@@ -7573,9 +7573,9 @@
res 5, (iy+3)
p04loc_6C72:
- set 5, (iy+14h)
+ set g_style_active, (iy+sGrFlags)
call p04sub_7180
- res 5, (iy+14h)
+ res g_style_active, (iy+sGrFlags)
call OP1Set1
call p04sub_755F
call nz, p04sub_75B3
@@ -7652,9 +7652,9 @@
inc hl
inc hl
call mov9B2
- set 5, (iy+14h)
+ set g_style_active, (iy+sGrFlags)
call PLOTPT
- res 5, (iy+14h)
+ res g_style_active, (iy+sGrFlags)
call p04sub_7087
jp p04loc_6CA2
; END OF FUNCTION CHUNK FOR Regraph
@@ -7767,7 +7767,7 @@
p04loc_6DCA:
call p04sub_756C
jr nz, p04loc_6DE9
- bit 5, (iy+4)
+ bit grfNoAxis, (iy+grfDBFlags)
jr nz, p04loc_6DE9
ld a, 0Bh
call j_RclSysTok
@@ -7850,13 +7850,13 @@
call Page04_38E5
jr z, p04loc_6E82
ld a, 3
- bit 2, (iy+0Fh)
+ bit sequv, (iy+seqFlags)
jr nz, p04loc_6E73
add a, a
- bit 3, (iy+0Fh)
+ bit seqvw, (iy+seqFlags)
jr nz, p04loc_6E73
dec a
- bit 4, (iy+0Fh)
+ bit sequw, (iy+seqFlags)
jr z, p04loc_6E7E
p04loc_6E73:
@@ -7876,7 +7876,7 @@
jp z, p04loc_6962
p04loc_6E85:
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jp nz, p04loc_6D2B
call p04sub_501E
call j_SEQSET
@@ -8040,13 +8040,13 @@
inc hl
inc hl
call mov9B2
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr nz, p04loc_6F9C
- set 5, (iy+14h)
+ set g_style_active, (iy+sGrFlags)
p04loc_6F9C:
call PLOTPT
- res 5, (iy+14h)
+ res g_style_active, (iy+sGrFlags)
ret
; End of function p04sub_6F5D
@@ -8240,7 +8240,7 @@
push af
call page0_19D
jr z, p04loc_707C
- bit 0, (iy+0Fh)
+ bit webMode, (iy+seqFlags)
jr z, p04loc_707C
call page0_172A
jr nz, p04loc_7075
@@ -8389,7 +8389,7 @@
; ---------------------------------------------------------------------------
p04loc_7114:
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
ld a, 20h ; ' '
ld (OP1), a
ld (OP2), a
@@ -8545,7 +8545,7 @@
ld a, 4
call p04sub_7564
ret nz
- bit 5, (iy+14h)
+ bit g_style_active, (iy+sGrFlags)
jr z, p04loc_71E4
ld a, (unk_9775)
cp 4
@@ -8586,7 +8586,7 @@
; START OF FUNCTION CHUNK FOR PLOTPT
p04loc_71E4:
- bit 0, (iy+4)
+ bit grfDot, (iy+grfDBFlags)
jp nz, DarkPnt
p04loc_71EB:
@@ -8854,7 +8854,7 @@
ld hl, Yscl
call p04sub_753F
ld (unk_84A5), a
- bit 5, (iy+4)
+ bit grfNoAxis, (iy+grfDBFlags)
jp nz, p04loc_73DD
call OP4Set0
ld de, OP4
@@ -9016,11 +9016,11 @@
jr nz, p04loc_746A
ld (curGY2+1), a
ld bc, (curGY2)
- bit 5, (iy+4)
+ bit grfNoAxis, (iy+grfDBFlags)
call z, PointOn
ld hl, (curInc)
push hl
- bit 2, (iy+4)
+ bit grfGrid, (iy+grfDBFlags)
call nz, p04sub_74A0
pop hl
inc hl
@@ -9251,7 +9251,7 @@
p04sub_7564:
- bit 6, (iy+35h)
+ bit regraphHookActive, (iy+hookflags3)
call nz, j_RunGraphingHook
ret
; End of function p04sub_7564
@@ -9531,7 +9531,7 @@
p04sub_7661:
call setPenT
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
call Page04_3345
ld a, 1
call j_VPutMap
@@ -9571,7 +9571,7 @@
p04loc_768B:
push af
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
call Page04_3345
ld a, h
call REALNAME
@@ -9598,7 +9598,7 @@
call p04sub_797A
p04loc_76A7:
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
ret
; End of function p04sub_76A4
@@ -9638,14 +9638,14 @@
add hl, de
call ldHLind
ld a, 5Dh ; ']'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
; =============== S U B R O U T I N E =======================================
p04sub_76E8:
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
call p04sub_7A03
ld a, 3Dh ; '='
; End of function p04sub_76E8
@@ -9669,7 +9669,7 @@
p04loc_7706:
call DispOP1A
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
ret
; End of function p04sub_76F1
@@ -9689,12 +9689,12 @@
p04loc_7720:
ld a, 30h ; '0'
call p04loc_75CB
- set 7, (iy+14h)
+ set textWrite, (iy+sGrFlags)
ld a, 20h ; ' '
call j_VPutMap
p04loc_772E:
- res 7, (iy+14h)
+ res textWrite, (iy+sGrFlags)
ld hl, 8B5Ah
ld a, 70h ; 'p'
@@ -9707,14 +9707,14 @@
ld d, 4
call Round
pop af
- set 7, (iy+14h)
- set 1, (iy+5)
+ set textWrite, (iy+sGrFlags)
+ set textEraseBelow, (iy+textFlags)
call j_VPutMap
ld a, 3Dh ; '='
call j_VPutMap
ld hl, OP1
call p04sub_76A4
- res 7, (iy+14h)
+ res textWrite, (iy+sGrFlags)
ret
; End of function p04sub_7737
@@ -9752,7 +9752,7 @@
ld (penCol+1), a
p04loc_7785:
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
call Page04_3345
pop bc
@@ -9815,7 +9815,7 @@
TAN_EQU_DISP:
set 6, (iy+1Dh)
res 3, (iy+11h)
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
ld a, 1
call p04loc_75CB
ld a, 79h ; 'y'
@@ -9846,8 +9846,8 @@
ret nz
ld a, b
push af
- set 1, (iy+5)
- bit 0, (iy+18h)
+ set textEraseBelow, (iy+textFlags)
+ bit grfExpr, (iy+traceFlags)
jr nz, p04loc_784F
set 6, (iy+1Dh)
ld a, (curPlotNumber)
@@ -9879,7 +9879,7 @@
p04loc_784F:
pop af
- bit 4, (iy+4)
+ bit grfNoCoord, (iy+grfDBFlags)
ret nz
push af
set 6, (iy+1Dh)
@@ -9903,7 +9903,7 @@
call j_VPutMap
p04loc_7875:
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
ret
; End of function PUTEQUNO
@@ -9916,7 +9916,7 @@
PutAns:
call setPenX
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
call Page04_3345
call p04sub_7A03
call j_RclAns
@@ -9932,7 +9932,7 @@
p04loc_7898:
ld hl, p04loc_7A8D
ld a, 5Ah ; 'Z'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p04loc_78F8
; ---------------------------------------------------------------------------
@@ -9940,7 +9940,7 @@
p04loc_78A6:
ld hl, p04loc_7A44
ld a, 5Fh ; '_'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p04loc_78F8
; ---------------------------------------------------------------------------
@@ -9948,7 +9948,7 @@
p04loc_78B4:
ld hl, p04loc_7A51
ld a, 5Eh ; '^'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p04loc_78F8
; ---------------------------------------------------------------------------
@@ -9956,7 +9956,7 @@
p04loc_78C2:
ld hl, p04loc_7A99
ld a, 59h ; 'Y'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p04loc_78F8
; ---------------------------------------------------------------------------
@@ -9964,7 +9964,7 @@
p04loc_78D0:
ld hl, p04loc_7A73
ld a, 5Ch ; '\'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p04loc_78F8
; ---------------------------------------------------------------------------
@@ -9972,7 +9972,7 @@
p04loc_78DE:
ld hl, p04loc_7A80
ld a, 5Bh ; '['
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p04loc_78F8
; ---------------------------------------------------------------------------
@@ -9980,7 +9980,7 @@
p04loc_78EC:
ld hl, p04loc_7AA6
ld a, 58h ; 'X'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
p04loc_78F8:
@@ -10009,7 +10009,7 @@
; ---------------------------------------------------------------------------
p04loc_7925:
- bit 4, (iy+4)
+ bit grfNoCoord, (iy+grfDBFlags)
jr z, p04loc_7974
call setPenX
jr p04loc_7933
@@ -10024,7 +10024,7 @@
p04loc_7933:
; LABCOOR+3068j ...
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
call Page04_3345
call p04sub_7A03
ret
@@ -10037,7 +10037,7 @@
p04sub_793E:
ld hl, p04loc_7A27
ld a, 62h ; 'b'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p04loc_7974
; End of function p04sub_793E
@@ -10049,7 +10049,7 @@
p04sub_794C:
ld hl, p04loc_7A2F
ld a, 61h ; 'a'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p04loc_7974
; End of function p04sub_794C
@@ -10061,7 +10061,7 @@
p04sub_795A:
ld hl, p04loc_7A37
ld a, 60h ; '`'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p04loc_7974
; End of function p04sub_795A
@@ -10073,7 +10073,7 @@
p04sub_7968:
ld hl, p04loc_7AAD
ld a, 57h ; 'W'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
; End of function p04sub_7968
@@ -10143,9 +10143,9 @@
call CpyTo1FPS1
ld hl, aTmax+1
ld a, 63h ; 'c'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
call p04sub_7A03
ld a, 3Ch ; '<'
call p04sub_76F1
@@ -10161,7 +10161,7 @@
call p04loc_75CB
p04loc_79DC:
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
ld a, 6Eh ; 'n'
call j_VPutMap
ld a, 3Dh ; '='
@@ -10171,7 +10171,7 @@
call setPenT
ld hl, aTmin+1
ld a, 64h ; 'd'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p04sub_76E8
ret
@@ -10246,8 +10246,8 @@
PDspGrph:
- res 1, (iy+2)
- bit 0, (iy+3)
+ res plotLoc, (iy+plotFlags)
+ bit graphDraw, (iy+graphFlags)
call nz, Regraph
bit 6, (iy+0Ch)
jr z, p04loc_7ADA
@@ -10259,7 +10259,7 @@
jr nz, p04loc_7ADA
p04loc_7AD4:
- bit 2, (iy+2)
+ bit plotDisp, (iy+plotFlags)
jr nz, p04loc_7ADD
p04loc_7ADA:
@@ -10388,7 +10388,7 @@
p04loc_7B88:
ld bc, (curGY)
- res 1, (iy+2)
+ res plotLoc, (iy+plotFlags)
ld d, a
call p04sub_65AF
ret
@@ -10548,7 +10548,7 @@
call PopRealO1
p04loc_7C8C:
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
jp TraceOff
; ---------------------------------------------------------------------------
@@ -10833,7 +10833,7 @@
jr nz, p04loc_7EF0
bit 1, a
call nz, Mov9ToOP2
- set 5, (iy+14h)
+ set g_style_active, (iy+sGrFlags)
pop hl
pop af
ld (unk_966C), a
@@ -10843,7 +10843,7 @@
ld a, 3
call CPoint
res 7, (iy+1Eh)
- res 5, (iy+14h)
+ res g_style_active, (iy+sGrFlags)
p04loc_7EF0:
call p04sub_7F07
--- a/source/page05/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page05/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -6,7 +6,7 @@
push af
ld hl, Page05Context1
call page0_7C1
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
pop af
call Page05_328B
call p05sub_407A
@@ -21,7 +21,7 @@
p05loc_4028:
ld a, 0Ah
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p05loc_4035
ld a, 49h ; 'I'
call j_call_character_hook
@@ -122,7 +122,7 @@
ld a, 0Dh
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p05loc_40BA
ld a, 4Ah ; 'J'
call j_call_character_hook
@@ -263,7 +263,7 @@
call p05sub_46C7
p05loc_4199:
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
sub a
ld (curRow), a
ld hl, SecondarycxMain
@@ -341,7 +341,7 @@
; ---------------------------------------------------------------------------
p05loc_4214:
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
ld hl, (editTail)
ld de, (editBtm)
call CpHLDE
@@ -375,7 +375,7 @@
ld hl, (curRow)
push hl
ld a, 0Ch
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p05loc_4255
ld a, 4Bh ; 'K'
call j_call_character_hook
@@ -455,7 +455,7 @@
ld (mcxMain), hl
ld hl, p05_loc_589B
ld (mcxPutAway), hl
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
ret
; End of function p05sub_42C3
@@ -484,14 +484,14 @@
p05sub_42E8:
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
jr p05loc_42EE
p05loc_42EE:
; p05sub_4435:p05loc_443Bp
call p05sub_42F9
call p05sub_4721
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
ret
; End of function p05sub_42E8
@@ -556,7 +556,7 @@
ThirdcxMain:
cp 5
jr nz, p05loc_4359
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
ld a, 7
ld (curRow), a
ld hl, p05loc_44B3
@@ -693,7 +693,7 @@
ret c
p05loc_43FB:
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
push af
ld a, 7
ld (curRow), a
@@ -918,7 +918,7 @@
; ---------------------------------------------------------------------------
p05loc_4535:
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, p05loc_453E
cp 8Ah ; '�'
ret z
@@ -1100,7 +1100,7 @@
p05sub_462B:
ld hl, aMatrix
ld a, 32h ; '2'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
sub a
ld (curRow), a
@@ -1162,7 +1162,7 @@
p05sub_4692:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p05loc_469F
ld a, 4Ch ; 'L'
call j_call_character_hook
@@ -1264,7 +1264,7 @@
p05loc_4714:
call p05sub_58A7
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
ret
; End of function p05sub_4702
@@ -1288,7 +1288,7 @@
p05loc_472F:
res 1, (iy+0Eh)
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
call p05sub_475E
ld a, (OP1)
sub 0Ch
@@ -1579,7 +1579,7 @@
p05sub_4882:
ld a, 1
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
ret z
add a, 4
ret
@@ -1820,7 +1820,7 @@
p05loc_49E7:
; Page05_3435+85j ...
- bit 4, (iy+1)
+ bit monAbandon, (iy+monFlags)
jp z, ErrSyntax
ret
; ---------------------------------------------------------------------------
@@ -2044,7 +2044,7 @@
p05sub_4B30:
; Page05_3435+17Ej ...
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
call CanAlphIns
p05loc_4B37:
@@ -2082,7 +2082,7 @@
call j_BufClear
ld hl, nameBuff
call ZeroOP
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
ret
; ---------------------------------------------------------------------------
@@ -2098,7 +2098,7 @@
ld (mcxMain), hl
ld hl, p05_loc_5893
ld (mcxPutAway), hl
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
call CanAlphIns
jp p05loc_4CB9
; ---------------------------------------------------------------------------
@@ -2179,7 +2179,7 @@
call p05sub_54BB
call j_EraseEOL
call p05sub_551B
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
ld hl, Page05_342F
ld (mcxMain), hl
ld hl, p05loc_5868
@@ -2392,7 +2392,7 @@
p05sub_4D56:
; p05sub_4B4A+175p ...
call page0_3B8
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
ret
; End of function p05sub_4D56
@@ -2492,7 +2492,7 @@
cp 5
jr nz, p05loc_4E28
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
ld a, 7
ld (curRow), a
call p05sub_55AC
@@ -2566,7 +2566,7 @@
ret nz
ld hl, (unk_9704)
ld de, 0FFF9h
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr z, p05loc_4E68
ld de, 0FFFEh
@@ -2591,7 +2591,7 @@
p05loc_4E84:
ld (unk_96FE), hl
ld a, 7
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr z, p05loc_4E91
ld a, 2
@@ -2665,7 +2665,7 @@
ret nz
ld hl, (unk_96FE)
ld de, 0FFF8h
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr z, p05loc_4EEB
ld de, 0FFFDh
@@ -2992,7 +2992,7 @@
; ---------------------------------------------------------------------------
p05loc_50D5:
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
ld a, 7
ld (curRow), a
call p05sub_55AC
@@ -3092,7 +3092,7 @@
; ---------------------------------------------------------------------------
p05loc_5158:
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, p05loc_5161
cp 8Ah ; '�'
ret z
@@ -3108,7 +3108,7 @@
Page05_3225:
; p05sub_4DDF:p05loc_5008p ...
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
; End of function Page05_3225
@@ -3125,7 +3125,7 @@
call p05sub_5427
p05loc_5180:
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
ret
; ---------------------------------------------------------------------------
@@ -3139,7 +3139,7 @@
ld a, (unk_9710)
ld b, a
call j_DisplstName
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
ret
; End of function p05sub_516D
@@ -3211,7 +3211,7 @@
ld a, 1
ld h, a
xor a
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr z, p05loc_51D3
ld a, 4
@@ -3231,7 +3231,7 @@
call page0_118B
ld hl, 0
xor a
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr z, p05loc_51EE
ld a, 4
@@ -3259,9 +3259,9 @@
Page05_3231:
- bit 3, (iy+5)
+ bit textInverse, (iy+textFlags)
jr nz, p05loc_5217
- set 0, (iy+8)
+ set preClrForMode, (iy+newDispF)
p05loc_5217:
ld a, 4Ch ; 'L'
@@ -3382,7 +3382,7 @@
ld (unk_96FC), a
sub a
ld (unk_970A), a
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr nz, p05loc_52DD
ld a, (unk_9301)
cp 1
@@ -3415,7 +3415,7 @@
inc a
ld (unk_96FC), a
push af
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr nz, p05loc_5317
ld a, (unk_9301)
cp 2
@@ -3446,7 +3446,7 @@
ld (unk_96FC), a
pop hl
ld (unk_96FE), hl
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr nz, p05loc_534F
ld a, (unk_9301)
cp 3
@@ -3552,7 +3552,7 @@
; p05sub_538B+1Cj
call p05sub_42F9
ld hl, a______
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
call j_VPutS
ret
; End of function p05sub_53C0
@@ -3885,7 +3885,7 @@
p05sub_551B:
ld hl, aName
ld a, 10h
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
jr p05loc_5519
@@ -4394,7 +4394,7 @@
; End of function p05sub_578B
; ---------------------------------------------------------------------------
- bit 6, (iy+9)
+ bit statsValid, (iy+statFlags)
ret z
call j_DelRes
ret
@@ -4420,11 +4420,11 @@
p05sub_57B8:
ld hl, p05loc_5847
call pushErrorHandleR
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jp z, p05loc_58A1
call IsEditEmpty
jp z, p05loc_58A1
- bit 4, (iy+1)
+ bit monAbandon, (iy+monFlags)
jp nz, p05loc_58A1
call p05sub_47C2
jp p05loc_588E
@@ -4434,11 +4434,11 @@
call settblrefs
ld hl, p05loc_5839
call pushErrorHandleR
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jp z, p05loc_5833
call IsEditEmpty
jp z, p05loc_5833
- bit 4, (iy+1)
+ bit monAbandon, (iy+monFlags)
jr nz, p05loc_5833
call p05sub_6B56
call p05sub_5CF2
@@ -4450,7 +4450,7 @@
call settblrefs
ld hl, p05loc_5839
call pushErrorHandleR
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr z, p05loc_5833
ld hl, (editSym)
ld a, (hl)
@@ -4494,9 +4494,9 @@
p05loc_584C:
ld hl, p05loc_5847
call pushErrorHandleR
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr z, p05loc_58A1
- bit 4, (iy+1)
+ bit monAbandon, (iy+monFlags)
jr nz, p05loc_58A1
call IsEditEmpty
jr z, p05loc_58A1
@@ -4513,11 +4513,11 @@
p05loc_5874:
ld hl, p05loc_5847
call pushErrorHandleR
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr z, p05loc_58A1
call IsEditEmpty
jr z, p05loc_58A1
- bit 4, (iy+1)
+ bit monAbandon, (iy+monFlags)
jr nz, p05loc_58A1
call p05sub_56A9
@@ -4526,8 +4526,8 @@
jr p05loc_58A4
; ---------------------------------------------------------------------------
p05_loc_5893:
- res 1, (iy+15h)
- res 1, (iy+12h)
+ res saIndic, (iy+newIndicFlags)
+ res indicInUse, (iy+indicFlags)
p05_loc_589B:
ld hl, p05sub_58A7
call pushErrorHandleR
@@ -4546,10 +4546,10 @@
p05sub_58A7:
; p05sub_57B8+92j
call page0_740
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
call j_resetStacks
call j_CleanAll
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
bit 3, (iy+15h)
ret z
bit 4, (iy+15h)
@@ -4645,7 +4645,7 @@
p05loc_593D:
cp 3
ret z
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, p05loc_5949
cp 8Ah ; '�'
ret z
@@ -4858,7 +4858,7 @@
push hl
ld hl, 0
ld (XOffset), hl
- set 1, (iy+2)
+ set plotLoc, (iy+plotFlags)
ld a, 9
call p05sub_543C
ld a, 37h ; '7'
@@ -4890,7 +4890,7 @@
push hl
ld hl, 0
ld (XOffset), hl
- set 1, (iy+2)
+ set plotLoc, (iy+plotFlags)
ld a, 9
ld b, 30h ; '0'
call p05loc_543E
@@ -5005,9 +5005,9 @@
call p05sub_620C
call Bit_VertSplit
jr z, p05loc_5B59
- set 3, (iy+1Fh)
+ set splitOverride, (iy+graphFlags2)
call j_PDspGrph
- res 3, (iy+1Fh)
+ res splitOverride, (iy+graphFlags2)
jr p05loc_5B62
; ---------------------------------------------------------------------------
@@ -5023,9 +5023,9 @@
p05loc_5B62:
- res 2, (iy+0Ch)
- res 3, (iy+0Ch)
- set 4, (iy+0Ch)
+ res curAble, (iy+curFlags)
+ res curOn, (iy+curFlags)
+ set curLock, (iy+curFlags)
ret
; END OF FUNCTION CHUNK FOR p05sub_487A
@@ -5045,7 +5045,7 @@
call p05sub_6FCD
set 6, (iy+15h)
call j_SaveScreen
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
call p05sub_6DEC
call p05sub_5C38
call Bit_VertSplit
@@ -5054,7 +5054,7 @@
set 7, (iy+1Dh)
call j_ClrScrn
call j_PDspGrph
- res 1, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
ret
; ---------------------------------------------------------------------------
@@ -5075,10 +5075,10 @@
; ---------------------------------------------------------------------------
DSPGRTBL:
- res 1, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
call p05sub_5BA7
jr z, p05loc_5BC3
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr nz, p05loc_5BC3
call j_ClrScrn
@@ -5115,7 +5115,7 @@
set 2, (iy+1Fh)
ld hl, p05loc_5C21
call pushErrorHandleR
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
call p05sub_5C38
call p05sub_61AD
call popErrorHandleR
@@ -5124,8 +5124,8 @@
ld (winLeftEdge), a
pop hl
ld (curRow), hl
- set 1, (iy+0Dh)
- set 2, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
+ set appAutoScroll, (iy+appFlags)
res 7, (iy+1Dh)
ret
; End of function p05sub_5BE9
@@ -5136,8 +5136,8 @@
ld (winLeftEdge), a
pop hl
ld (curRow), hl
- set 1, (iy+0Dh)
- set 2, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
+ set appAutoScroll, (iy+appFlags)
jp JErrorNo
; =============== S U B R O U T I N E =======================================
@@ -5719,7 +5719,7 @@
p05sub_5EE1:
; dispTblBot+8Cp ...
- bit 6, (iy+2)
+ bit grfParamM, (iy+grfModeFlags)
ret
; End of function p05sub_5EE1
@@ -5821,7 +5821,7 @@
call pushErrorHandleR
call p05sub_603D
call PushRealO2
- bit 7, (iy+2)
+ bit grfRecurM, (iy+grfModeFlags)
jr z, p05loc_5F87
call ErrD_OP1NotPosInt
call OP1ToOP3
@@ -5905,7 +5905,7 @@
p05loc_600C:
call p05sub_6FD8
- bit 1, (iy+8)
+ bit allowProgTokens, (iy+newDispF)
call nz, j_RetScreenErr
jp JErrorNo
; ---------------------------------------------------------------------------
@@ -5934,10 +5934,10 @@
p05sub_602F:
- res 0, (iy+3)
+ res graphDraw, (iy+graphFlags)
bit 7, (iy+13h)
ret z
- set 0, (iy+3)
+ set graphDraw, (iy+graphFlags)
ret
; End of function p05sub_602F
@@ -5947,7 +5947,7 @@
p05sub_603D:
res 7, (iy+13h)
- bit 0, (iy+3)
+ bit graphDraw, (iy+graphFlags)
ret z
set 7, (iy+13h)
ret
@@ -6076,7 +6076,7 @@
call p05sub_6834
jp c, p05loc_616A
jp z, p05loc_616A
- bit 7, (iy+2)
+ bit grfRecurM, (iy+grfModeFlags)
jr z, p05loc_60D6
call ErrD_OP1NotPosInt
call OP1ToOP3
@@ -6246,7 +6246,7 @@
; ---------------------------------------------------------------------------
p05loc_61F2:
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
ret nz
ld hl, 800h
ld (curRow), hl
@@ -6343,7 +6343,7 @@
Page05_3195:
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
p05loc_6254:
; p05sub_68F5:p05loc_6903p ...
@@ -6358,7 +6358,7 @@
p05loc_6266:
; Page05_3195+73j ...
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
pop hl
pop bc
ret
@@ -6388,7 +6388,7 @@
push hl
call p05sub_62DB
ld de, (unk_92AC)
- bit 3, (iy+5)
+ bit textInverse, (iy+textFlags)
jr nz, p05loc_62BC
call p05sub_664E
jr p05loc_62BC
@@ -6396,7 +6396,7 @@
p05loc_62A6:
; Page05_3195+3Ej
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr z, p05loc_62C5
ld hl, (curRow)
push hl
@@ -6419,7 +6419,7 @@
call p05sub_62DB
call p05sub_65A8
jr z, p05loc_6266
- bit 3, (iy+5)
+ bit textInverse, (iy+textFlags)
jr nz, p05loc_62D6
call p05sub_664E
@@ -6609,7 +6609,7 @@
; dispTblBot+80j
ld hl, aError
ld a, 48h ; 'H'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p05loc_63C2
; ---------------------------------------------------------------------------
@@ -6655,7 +6655,7 @@
p05loc_6408:
call p05sub_6FB2
ret nz
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
call p05sub_635B
call j_EraseEOL
call p05sub_6891
@@ -6708,7 +6708,7 @@
; dispTblBot+11Cj
ld hl, aError
ld a, 48h ; 'H'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p05loc_645F
; ---------------------------------------------------------------------------
@@ -6804,7 +6804,7 @@
ret z
p05loc_64E4:
- set 0, (iy+8)
+ set preClrForMode, (iy+newDispF)
jp p05sub_665C
; ---------------------------------------------------------------------------
@@ -6882,7 +6882,7 @@
call Bit_VertSplit
jr z, p05loc_654B
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr z, p05loc_654B
call OP1Set0
ld a, 3
@@ -7032,7 +7032,7 @@
; ---------------------------------------------------------------------------
p05loc_65EB:
- bit 7, (iy+2)
+ bit grfRecurM, (iy+grfModeFlags)
jr z, p05loc_662D
push af
call Page0Call_38E5
@@ -7055,13 +7055,13 @@
or a
jr z, p05loc_662C
ld a, 3
- bit 2, (iy+0Fh)
+ bit sequv, (iy+seqFlags)
jr nz, p05loc_6623
add a, a
- bit 3, (iy+0Fh)
+ bit seqvw, (iy+seqFlags)
jr nz, p05loc_6623
dec a
- bit 4, (iy+0Fh)
+ bit sequw, (iy+seqFlags)
jr z, p05loc_662C
p05loc_6623:
@@ -7117,7 +7117,7 @@
ret nz
p05loc_6657:
- set 0, (iy+8)
+ set preClrForMode, (iy+newDispF)
ret
; End of function p05sub_664E
@@ -7303,7 +7303,7 @@
call Bit_VertSplit
jr nz, p05loc_6782
ld b, 7
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr z, p05loc_6729
ld b, 2
@@ -7388,7 +7388,7 @@
p05loc_6782:
ld b, 7
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr z, p05loc_678C
ld b, 2
@@ -7453,7 +7453,7 @@
p05sub_67C8:
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
ld de, (curRow)
push de
ld a, (hl)
@@ -7529,7 +7529,7 @@
p05sub_6814:
res 1, (iy+0Eh)
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
call j_VPutS
ret
; End of function p05sub_6814
@@ -7625,7 +7625,7 @@
p05sub_6876:
call p05sub_6FB2
jr nz, p05loc_688A
- bit 4, (iy+13h)
+ bit autoFill, (iy+tblFlags)
ret
; End of function p05sub_6876
@@ -7637,7 +7637,7 @@
; p05sub_5CF2:p05loc_5D01p ...
call p05sub_6FB2
jr nz, p05loc_688A
- bit 5, (iy+13h)
+ bit autoCalc, (iy+tblFlags)
ret
; ---------------------------------------------------------------------------
@@ -7683,7 +7683,7 @@
ld a, (unk_91DB+1)
p05loc_689F:
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr z, p05loc_68A8
cp 2
ret
@@ -7714,7 +7714,7 @@
call AppInit
call p05sub_635B
call j_RecallEd
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
call p05sub_6830
jr c, p05loc_68D9
jr z, p05loc_68D9
@@ -8086,7 +8086,7 @@
; ---------------------------------------------------------------------------
p05loc_6B25:
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, p05loc_6B2E
cp 8Ah ; '�'
ret z
@@ -8146,7 +8146,7 @@
bit 5, (iy+5)
ret z
call EOP1NotReal
- bit 7, (iy+2)
+ bit grfRecurM, (iy+grfModeFlags)
call nz, ErrD_OP1NotPosInt
call p05sub_6077
call p05sub_607D
@@ -8293,7 +8293,7 @@
ld hl, Page05Table3
call AppInit
call p05sub_635B
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
call p05sub_65A8
ld a, (unk_8479+1)
ld (unk_9813), a
@@ -8456,7 +8456,7 @@
ret z
cp 2
jp nz, p05loc_6D43
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call j_BufLeft
jp nz, j_CommonKeys
res 6, (iy+5)
@@ -8482,7 +8482,7 @@
; ---------------------------------------------------------------------------
p05loc_6D5D:
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, p05loc_6D66
cp 8Ah ; '�'
ret z
@@ -8558,7 +8558,7 @@
p05sub_6DB5:
; p05sub_65A8+8p ...
- bit 7, (iy+2)
+ bit grfRecurM, (iy+grfModeFlags)
ret z
ld a, (iy+0Fh)
and 1Ch
@@ -8669,9 +8669,9 @@
ld a, (curPlotNumber)
or a
ret nz
- bit 1, (iy+8)
+ bit allowProgTokens, (iy+newDispF)
jr z, p05loc_6E5D
- res 1, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
p05loc_6E5D:
call p05sub_620C
@@ -8710,7 +8710,7 @@
djnz p05loc_6E89
p05loc_6E9F:
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
jp settblrefs
; =============== S U B R O U T I N E =======================================
@@ -8810,7 +8810,7 @@
call settblrefs
call p05sub_6FD8
call p05sub_5BE9
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
call page0_19D
jr z, p05loc_6F83
call PopRealO1
@@ -8988,7 +8988,7 @@
ld (unk_92FC), a
ld hl, p05loc_7239
call AppInit
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
p05loc_7046:
call p05sub_7113
@@ -9003,7 +9003,7 @@
jr nz, p05loc_7069
ld hl, 0A04h
ld a, 2Ch ; ','
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p05loc_7075
; ---------------------------------------------------------------------------
@@ -9011,7 +9011,7 @@
p05loc_7069:
ld hl, 604h
ld a, 2Dh ; '-'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
p05loc_7075:
@@ -9026,7 +9026,7 @@
call BCALL_4FA2
jr nc, p05loc_709B
ld a, 2Eh ; '.'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld a, 1
jr p05sub_70AC
@@ -9035,7 +9035,7 @@
p05loc_709B:
ld hl, 505h
ld a, 2Fh ; '/'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld (curRow), hl
ld a, 2
@@ -9066,7 +9066,7 @@
p05loc_70C2:
ld hl, aIdlist
ld a, 3Dh ; '='
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
jr p05loc_70DD
@@ -9150,7 +9150,7 @@
ld (curRow), hl
ld hl, p05loc_795E
ld a, 21h ; '!'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call putsm
call p05sub_76BF
@@ -9164,17 +9164,17 @@
dec (hl)
ld hl, p05loc_7919
ld a, 22h ; '"'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p05sub_76BC
ld hl, p05loc_7924
ld a, 23h ; '#'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p05sub_76BC
ld hl, p05loc_7951
ld a, 24h ; '$'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p05sub_76BC
ld hl, p05loc_76DF
@@ -9185,19 +9185,19 @@
p05loc_717D:
ld hl, p05loc_7912
ld a, 25h ; '%'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p05sub_76BC
call BCALL_4FA2
jr nc, p05loc_71B6
ld hl, p05loc_792F
ld a, 26h ; '&'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p05sub_76BC
ld hl, p05loc_7951
ld a, 24h ; '$'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p05sub_76BC
ld hl, p05loc_777F
@@ -9210,12 +9210,12 @@
jr nz, p05loc_71DF
ld hl, p05loc_7939
ld a, 27h ; '''
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p05sub_76BC
ld hl, p05loc_7951
ld a, 24h ; '$'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p05sub_76BC
ld hl, p05loc_780B
@@ -9226,7 +9226,7 @@
p05loc_71DF:
ld hl, p05loc_7939
ld a, 27h ; '''
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p05sub_76BC
ld hl, p05loc_780B
@@ -9259,18 +9259,18 @@
; ---------------------------------------------------------------------------
ret
p05loc_7205:
- res 1, (iy+15h)
- res 3, (iy+14h)
+ res saIndic, (iy+newIndicFlags)
+ res grfSplitOverride, (iy+sGrFlags)
jr p05sub_722B
p05loc_720F:
- res 3, (iy+14h)
- set 4, (iy+1)
+ res grfSplitOverride, (iy+sGrFlags)
+ set monAbandon, (iy+monFlags)
ld hl, p05loc_7223
call pushErrorHandleR
call Page05_3435
call popErrorHandleR
p05loc_7223:
- res 4, (iy+1)
+ res monAbandon, (iy+monFlags)
res 6, (iy+5)
; =============== S U B R O U T I N E =======================================
@@ -9381,7 +9381,7 @@
p05sub_72B7:
- set 1, (iy+17h)
+ set smarter_test, (iy+smartFlags)
jp SetGraphDraw
; End of function p05sub_72B7
@@ -9464,7 +9464,7 @@
; START OF FUNCTION CHUNK FOR p05sub_735E
p05loc_7331:
- res 6, (iy+0Dh)
+ res appCurWord, (iy+appFlags)
call j_CATALOGCHK
ld hl, 84CCh
ld (editTail), hl
@@ -9541,7 +9541,7 @@
ldir
call p05sub_7429
call p05sub_7466
- bit 4, (iy+1)
+ bit monAbandon, (iy+monFlags)
ret nz
call dispListNameY
call BCALL_4F9F
@@ -9594,7 +9594,7 @@
p05loc_73FF:
ld hl, p05loc_7239
call AppInit
- set 6, (iy+0Dh)
+ set appCurWord, (iy+appFlags)
call CanAlphIns
jp p05sub_72F9
; End of function p05sub_735E
@@ -9634,7 +9634,7 @@
p05sub_7429:
ld a, 30h ; '0'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p05loc_7436
call j_call_character_hook
jr z, p05loc_7458
@@ -9762,7 +9762,7 @@
ld h, (ix+5)
ld (curRow), hl
jr nc, p05loc_74F1
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p05loc_74DE
ld a, 28h ; '('
call j_call_character_hook
@@ -9774,7 +9774,7 @@
p05loc_74E1:
and 0Fh
ld b, a
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
ld a, 20h ; ' '
p05loc_74EA:
@@ -9785,13 +9785,13 @@
p05loc_74F1:
call p05sub_7550
- bit 3, (iy+5)
+ bit textInverse, (iy+textFlags)
jr nz, p05loc_74FE
- set 0, (iy+8)
+ set preClrForMode, (iy+newDispF)
p05loc_74FE:
ld a, 2Ah ; '*'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call putsm
@@ -9806,9 +9806,9 @@
ld h, (ix+4)
ld l, (ix+5)
ld (penCol), hl
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
jr nc, p05loc_753F
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p05loc_752C
ld a, 29h ; ')'
call j_call_character_hook
@@ -9820,7 +9820,7 @@
p05loc_7531:
ld b, a
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
p05loc_7536:
ld a, 20h ; ' '
@@ -9832,7 +9832,7 @@
p05loc_753F:
call p05sub_7550
ld a, 2Bh ; '+'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p05sub_76C7
jr p05loc_750A
@@ -9846,7 +9846,7 @@
; p05sub_74B8:p05loc_753Fp
call p05sub_756B
jr nz, p05loc_7559
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
p05loc_7559:
ld e, (ix+7)
@@ -9944,7 +9944,7 @@
pop ix
ld hl, p05loc_795B
ld a, 1Dh
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld a, (ix+10h)
and 0Fh
@@ -9952,7 +9952,7 @@
jr z, p05loc_75DE
ld hl, p05loc_7957
ld a, 1Eh
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
p05loc_75DE:
@@ -9995,7 +9995,7 @@
call p05sub_76C7
ld hl, p05loc_790D
ld a, 1Fh
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p05sub_76C7
jr p05loc_765C
@@ -10023,7 +10023,7 @@
cp 5
jr nz, p05loc_7689
ld a, 20h ; ' '
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
p05loc_7677:
@@ -10059,9 +10059,9 @@
call ldHLind
p05loc_76A9:
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
call p05sub_76C7
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
ret
; End of function p05sub_76A6
@@ -10759,22 +10759,22 @@
pop af
out (3), a
pop af
- bit 3, (iy+0Ch)
+ bit curOn, (iy+curFlags)
jp z, showCursor
jr hideCursor
; ---------------------------------------------------------------------------
CursorOff:
- res 2, (iy+0Ch)
- bit 5, (iy+0Dh)
+ res curAble, (iy+curFlags)
+ bit appCurGraphic, (iy+appFlags)
jr z, hideCursor
push af
- bit 4, (iy+1)
+ bit monAbandon, (iy+monFlags)
jr nz, p05loc_79CA
- res 1, (iy+15h)
- res 1, (iy+12h)
+ res saIndic, (iy+newIndicFlags)
+ res indicInUse, (iy+indicFlags)
ld a, 3
- bit 3, (iy+35h)
+ bit graphHookActive, (iy+hookflags3)
call nz, Page0Call_330F
jr nz, p05loc_79CA
call j_GrBufCpy
@@ -10782,24 +10782,24 @@
p05loc_79CA:
pop af
- res 3, (iy+0Ch)
+ res curOn, (iy+curFlags)
hideCursor:
push af
ld a, 32h ; '2'
ld (curTime), a
pop af
- bit 3, (iy+0Ch)
+ bit curOn, (iy+curFlags)
ret z
push af
- bit 5, (iy+0Dh)
+ bit appCurGraphic, (iy+appFlags)
jr z, p05loc_79E7
call j_BLINKGCUR
jr p05loc_7A1E
; ---------------------------------------------------------------------------
p05loc_79E7:
- bit 6, (iy+0Dh)
+ bit appCurWord, (iy+appFlags)
jr z, p05loc_79F7
push ix
or a
@@ -10810,7 +10810,7 @@
p05loc_79F7:
ld a, (curUnder)
- bit 7, (iy+34h)
+ bit cursorHookActive, (iy+hookflags2)
jr z, p05loc_7A08
ld b, a
ld a, 24h ; '$'
@@ -10832,7 +10832,7 @@
call j_PutMap
p05loc_7A1E:
- res 3, (iy+0Ch)
+ res curOn, (iy+curFlags)
pop af
ret
@@ -10875,28 +10875,28 @@
; ---------------------------------------------------------------------------
CursorOn:
- bit 4, (iy+0Ch)
+ bit curLock, (iy+curFlags)
ret nz
- bit 5, (iy+0Dh)
+ bit appCurGraphic, (iy+appFlags)
call nz, j_NBCURSOR
- set 2, (iy+0Ch)
+ set curAble, (iy+curFlags)
showCursor:
- bit 2, (iy+0Ch)
+ bit curAble, (iy+curFlags)
ret z
push af
push de
push hl
ld a, 32h ; '2'
ld (curTime), a
- bit 5, (iy+0Dh)
+ bit appCurGraphic, (iy+appFlags)
jr z, p05loc_7A78
call j_BLINKGCUR
jr p05loc_7AC1
; ---------------------------------------------------------------------------
p05loc_7A78:
- bit 6, (iy+0Dh)
+ bit appCurWord, (iy+appFlags)
jr z, p05loc_7A8C
push ix
ld ix, (unk_97A3)
@@ -10907,9 +10907,9 @@
; ---------------------------------------------------------------------------
p05loc_7A8C:
- bit 3, (iy+0Ch)
+ bit curOn, (iy+curFlags)
jr nz, p05loc_7ACA
- bit 7, (iy+34h)
+ bit cursorHookActive, (iy+hookflags2)
jr z, p05loc_7AA0
ld a, 22h ; '"'
call j_cursorhook
@@ -10921,7 +10921,7 @@
p05loc_7AA6:
ld hl, 81A0h
- bit 4, (iy+5)
+ bit textInsMode, (iy+textFlags)
jr z, p05loc_7AB2
ld hl, 81A8h
@@ -10943,7 +10943,7 @@
ld (curUnder), a
p05loc_7ACA:
- bit 7, (iy+34h)
+ bit cursorHookActive, (iy+hookflags2)
jr z, p05loc_7AD7
ld a, 23h ; '#'
call j_cursorhook
@@ -10954,7 +10954,7 @@
jr nz, p05loc_7AA6
call j_isEditFull
jr nz, p05loc_7AF6
- bit 4, (iy+5)
+ bit textInsMode, (iy+textFlags)
jr nz, p05loc_7AF2
call IsAtBtm
jr z, p05loc_7AF2
@@ -10969,7 +10969,7 @@
p05loc_7AF6:
ld a, 0E0h ; '�'
- bit 4, (iy+5)
+ bit textInsMode, (iy+textFlags)
jr z, p05loc_7B00
add a, 4
@@ -11002,7 +11002,7 @@
p05loc_7B21:
- set 3, (iy+0Ch)
+ set curOn, (iy+curFlags)
pop hl
pop de
pop af
--- a/source/page06/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page06/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -5,7 +5,7 @@
Page06_3A2F:
ld hl, aProgram
ld a, 56h ; 'V'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld de, OP3
call Mov8B
@@ -13,7 +13,7 @@
set 0, (iy+9)
Page06_30F9:
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
ld hl, p06loc_403E
call AppInit
call j_ClrScrn
@@ -53,7 +53,7 @@
call BufClear
ld hl, nameBuff
call ZeroOP
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
ret
; ---------------------------------------------------------------------------
@@ -134,20 +134,20 @@
ld de, progToEdit
ld hl, 849Ah
call Mov8B
- set 0, (iy+11h)
+ set promptEdit, (iy+promptFlags)
ld a, 46h ; 'F'
ld (mcxCurApp), a
Page06_3A29:
res 6, (iy+0Ch)
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
ld hl, p06loc_4172
call AppInit
set 0, (iy+9)
call j_ClrScrn
ld hl, p06loc_4000
ld a, 56h ; 'V'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld de, OP3
call Mov8B
@@ -172,14 +172,14 @@
call j_PutPS
call j_HomeUp
call page0_1A7
- bit 0, (iy+11h)
+ bit promptEdit, (iy+promptFlags)
jr nz, p06loc_416B
call cursorToOffset
ret
; ---------------------------------------------------------------------------
p06loc_416B:
- res 0, (iy+11h)
+ res promptEdit, (iy+promptFlags)
jp DispEOW
p06loc_4172:
.dw p06loc_417F
@@ -193,7 +193,7 @@
cp 5
jr nz, p06loc_41A3
call page0_3A4
- bit 4, (iy+5)
+ bit textInsMode, (iy+textFlags)
jr nz, p06loc_419E
p06loc_418C:
@@ -262,7 +262,7 @@
jr nz, p06loc_41F7
p06loc_41ED:
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call BufDelete
jp DispEOW
; ---------------------------------------------------------------------------
@@ -275,8 +275,8 @@
call GETLASTENTRY
ld a, 5
call rclToQueue
- set 4, (iy+5)
- set 7, (iy+0Eh)
+ set textInsMode, (iy+textFlags)
+ set enableQueue, (iy+rclFlag)
ret
; ---------------------------------------------------------------------------
@@ -318,7 +318,7 @@
call page0_1808
jp z, j_initNamePrompt2
call InsDisp
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
ret z
ld hl, (rclQueue)
ld de, (editCursor)
@@ -370,15 +370,15 @@
p06loc_4296:
p06sub_4296:
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
res 0, (iy+9)
- res 0, (iy+11h)
+ res promptEdit, (iy+promptFlags)
ret
p06loc_42A3:
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
res 0, (iy+9)
call CanAlphIns
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
ret z
ld hl, (editSym)
ld (hl), 5
@@ -897,7 +897,7 @@
JcursorFirst:
; Page06_2FF1+120j
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
p06loc_44D9:
; Page06_2FF1-2817j
@@ -914,7 +914,7 @@
JcursorLast:
; Page06_2FF1+125j
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
p06loc_44EF:
; Page06_2FF1-2805j
@@ -932,7 +932,7 @@
CursorLeft:
; Page06_2FF1:p06loc_44D9p ...
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
; End of function CursorLeft
@@ -946,14 +946,14 @@
call BufLeft
jr z, p06loc_4585
push af
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
bit 1, (iy+2Ah)
jr z, p06loc_452E
ld a, (unk_8198)
push af
call j_BCALL_4CF9
pop af
- bit 2, (iy+5)
+ bit textScrolled, (iy+textFlags)
push af
ld hl, 8198h
cp (hl)
@@ -965,7 +965,7 @@
p06loc_452E:
call j_putbPAT
- bit 2, (iy+5)
+ bit textScrolled, (iy+textFlags)
call nz, p06sub_473C
p06loc_4538:
@@ -979,7 +979,7 @@
cursorRight:
; Page06_2FF1:p06loc_44EFp ...
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
; End of function cursorRight
@@ -992,7 +992,7 @@
push hl
call BufRight
jr z, p06loc_4585
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
set 6, (iy+2Ah)
call PutTokString
bit 1, (iy+2Ah)
@@ -1015,7 +1015,7 @@
ld hl, (curRow)
push hl
res 6, (iy+2Ah)
- bit 2, (iy+5)
+ bit textScrolled, (iy+textFlags)
call nz, p06sub_4589
pop hl
ld (curRow), hl
@@ -1059,7 +1059,7 @@
cursorUp:
xor a
push af
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
ld de, (editTop)
ld bc, (curRow)
inc b
@@ -1070,7 +1070,7 @@
ld a, (curRow)
cp c
jr nz, p06loc_45D0
- bit 2, (iy+5)
+ bit textScrolled, (iy+textFlags)
jr nz, p06loc_45D0
pop af
push af
@@ -1118,7 +1118,7 @@
xor a
push af
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
ld de, (editBtm)
ld bc, (curRow)
@@ -1128,7 +1128,7 @@
ld a, (curRow)
cp c
jr nz, p06loc_461B
- bit 2, (iy+5)
+ bit textScrolled, (iy+textFlags)
jr nz, p06loc_461B
pop af
push af
@@ -1236,7 +1236,7 @@
pop de
push af
push de
- bit 4, (iy+5)
+ bit textInsMode, (iy+textFlags)
jr nz, p06loc_46D2
call BUFPEEK
jr c, p06loc_4693
@@ -1331,7 +1331,7 @@
p06loc_4703:
ld a, (appFlagsAddr)
push af
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
p06loc_470B:
call page0_191D
@@ -1373,7 +1373,7 @@
ld de, (editTop)
ld a, (appFlagsAddr)
push af
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
p06loc_474F:
call CpHLDE
@@ -1440,7 +1440,7 @@
ld hl, (editTail)
ld a, (appFlagsAddr)
push af
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
p06loc_47AE:
call BUFPEEK1
@@ -1529,7 +1529,7 @@
p06sub_4815:
; SetEmptyEditPtrp
call j_EditProg
- set 2, (iy+1)
+ set editOpen, (iy+editFlags)
ld hl, (iMathPtr1)
inc hl
inc hl
@@ -1583,7 +1583,7 @@
CloseEditEqu:
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
ret z
call BufToBtm
ld hl, (editCursor)
@@ -1597,7 +1597,7 @@
inc hl
ld (hl), d
call j_CloseProg
- res 2, (iy+1)
+ res editOpen, (iy+editFlags)
ret
; End of function CloseEditEqu
@@ -1655,7 +1655,7 @@
jr nz, p06loc_48AE
p06loc_48A3:
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call BufDelete
call j_DispEOL
ret
@@ -1832,7 +1832,7 @@
.db 84h ; ä
GetKeyRetOff:
- set 7, (iy+28h)
+ set appRetKeyOff, (iy+APIFlg)
getkey:
res 3, (iy+28h)
@@ -1845,7 +1845,7 @@
in a, (2)
and 80h ; '�'
jr z, p06loc_49BE
- bit 0, (iy+3Eh)
+ bit silentLinkActive, (iy+silentLinkFlags)
jr z, p06loc_49BA
in a, (9)
and 99h ; '�'
@@ -1856,16 +1856,16 @@
; ---------------------------------------------------------------------------
p06loc_49B6:
- res 0, (iy+3Eh)
+ res silentLinkActive, (iy+silentLinkFlags)
p06loc_49BA:
ld a, 80h ; '�'
out (8), a
p06loc_49BE:
- set 3, (iy+33h)
+ set ignoreBPLink, (iy+hookflags1)
ld a, 1Ah
- bit 0, (iy+34h)
+ bit getCSCHookActive, (iy+hookflags2)
jr z, p06loc_49CE
call j_getkeyhook
ret z
@@ -1873,7 +1873,7 @@
p06loc_49CE:
call p06sub_4C89
call j_showCursor
- set 3, (iy+8)
+ set apdRunning, (iy+apdFlags)
p06loc_49D8:
@@ -1884,7 +1884,7 @@
ld a, 0FFh
p06loc_49E7:
- bit 0, (iy+34h)
+ bit getCSCHookActive, (iy+hookflags2)
jr z, p06loc_49F4
ld b, a
ld a, 1Bh
@@ -1910,7 +1910,7 @@
p06loc_4A10:
res 7, (iy+33h)
- set 0, (iy+16h)
+ set secondTimerEnabled, (iy+interruptFlags)
p06loc_4A18:
call HandleLinkKeyActivity
@@ -1924,7 +1924,7 @@
ld a, (unk_9CAF)
or a
jr nz, p06loc_4A59
- bit 0, (iy+3Eh)
+ bit silentLinkActive, (iy+silentLinkFlags)
jr nz, p06loc_4A47
p06loc_4A39:
@@ -1988,7 +1988,7 @@
ld hl, bpSave
bit 3, (hl)
ret nz
- res 3, (iy+33h)
+ res ignoreBPLink, (iy+hookflags1)
ret
; ---------------------------------------------------------------------------
@@ -1997,7 +1997,7 @@
xor a
ld (unk_9CB1), a
ld (unk_9CB0), a
- bit 5, (iy+33h)
+ bit enableKeyEcho, (iy+hookflags1)
jr z, p06loc_4ABB
ld a, (mcxMain)
cp 41h ; 'A'
@@ -2013,31 +2013,31 @@
p06loc_4ABC:
cp 0FFh
jr nz, p06loc_4ACF
- res 3, (iy+12h)
+ res shift2nd, (iy+shiftFlags)
ld a, 3Fh ; '?'
- bit 7, (iy+28h)
+ bit appRetKeyOff, (iy+APIFlg)
jr nz, p06loc_4A95
jp PowerOff
; ---------------------------------------------------------------------------
p06loc_4ACF:
set 0, (iy+1Dh)
- bit 4, (iy+0)
+ bit kbdKeyPress, (iy+kbdFlags)
jr z, p06loc_4AEC
res 0, (iy+1Dh)
- res 3, (iy+8)
- res 4, (iy+0)
+ res apdRunning, (iy+apdFlags)
+ res kbdKeyPress, (iy+kbdFlags)
res 2, (iy+25h)
call ApdSetup
p06loc_4AEC:
- bit 3, (iy+12h)
+ bit shift2nd, (iy+shiftFlags)
jr nz, p06loc_4B61
- bit 4, (iy+12h)
+ bit shiftAlpha, (iy+shiftFlags)
jp nz, p06loc_4C1D
cp 36h ; '6'
jr nz, p06loc_4B08
- set 3, (iy+12h)
+ set shift2nd, (iy+shiftFlags)
set 6, (iy+1Fh)
jp p06loc_49BE
; ---------------------------------------------------------------------------
@@ -2046,8 +2046,8 @@
cp 30h ; '0'
jr nz, p06loc_4B1B
set 7, (iy+1Fh)
- set 4, (iy+12h)
- res 5, (iy+12h)
+ set shiftAlpha, (iy+shiftFlags)
+ res shiftLwrAlph, (iy+shiftFlags)
jp p06loc_49BE
; ---------------------------------------------------------------------------
@@ -2104,12 +2104,12 @@
; ---------------------------------------------------------------------------
p06loc_4B61:
- res 3, (iy+12h)
- bit 1, (iy+15h)
+ res shift2nd, (iy+shiftFlags)
+ bit saIndic, (iy+newIndicFlags)
jr z, p06loc_4B74
push af
call j_restoreTR
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
pop af
p06loc_4B74:
@@ -2117,8 +2117,8 @@
jr z, p06loc_4B88
cp 30h ; '0'
jr nz, p06loc_4B8E
- set 6, (iy+12h)
- set 4, (iy+12h)
+ set shiftALock, (iy+shiftFlags)
+ set shiftAlpha, (iy+shiftFlags)
set 7, (iy+1Fh)
p06loc_4B88:
@@ -2160,7 +2160,7 @@
ld (hl), b
p06loc_4BB8:
- set 3, (iy+8)
+ set apdRunning, (iy+apdFlags)
call j_saveTR
ld hl, (curRow)
push hl
@@ -2171,8 +2171,8 @@
push hl
ld a, (unk_89F2)
push af
- set 3, (iy+5)
- res 1, (iy+0Dh)
+ set textInverse, (iy+textFlags)
+ res appTextSave, (iy+appFlags)
ld a, (contrast)
ld e, a
ld d, 0
@@ -2192,7 +2192,7 @@
p06loc_4BFB:
call HandleLinkKeyActivity
- bit 3, (iy+0)
+ bit kbdSCR, (iy+kbdFlags)
jr z, p06loc_4BFB
call GetCSC
ld b, 0Ah
@@ -2214,11 +2214,11 @@
p06loc_4C1D:
cp 30h ; '0'
jr nz, p06loc_4C3D
- bit 3, (iy+24h)
+ bit lwrCaseActive, (iy+appLwrCaseFlag)
jr z, p06loc_4C33
- bit 5, (iy+12h)
+ bit shiftLwrAlph, (iy+shiftFlags)
jr nz, p06loc_4C33
- set 5, (iy+12h)
+ set shiftLwrAlph, (iy+shiftFlags)
jr p06loc_4C3A
; ---------------------------------------------------------------------------
@@ -2234,24 +2234,24 @@
cp 36h ; '6'
jr nz, p06loc_4C4B
set 6, (iy+1Fh)
- set 3, (iy+12h)
+ set shift2nd, (iy+shiftFlags)
jr p06loc_4C3A
; ---------------------------------------------------------------------------
p06loc_4C4B:
call page0_399
- bit 4, (iy+12h)
+ bit shiftAlpha, (iy+shiftFlags)
jp nz, p06loc_4C64
- bit 1, (iy+15h)
+ bit saIndic, (iy+newIndicFlags)
jr z, p06loc_4C64
push af
call j_restoreTR
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
pop af
p06loc_4C64:
add a, 70h ; 'p'
- bit 5, (iy+12h)
+ bit shiftLwrAlph, (iy+shiftFlags)
jr z, p06loc_4C1A
add a, 38h ; '8'
ld l, a
@@ -2275,37 +2275,37 @@
p06sub_4C89:
- bit 0, (iy+15h)
+ bit extraIndic, (iy+newIndicFlags)
ret nz
- bit 2, (iy+0Ch)
+ bit curAble, (iy+curFlags)
jr z, p06loc_4CAD
- bit 5, (iy+0Dh)
+ bit appCurGraphic, (iy+appFlags)
jr nz, p06loc_4CAD
- bit 6, (iy+0Dh)
+ bit appCurWord, (iy+appFlags)
jr nz, p06loc_4CAD
canIndic:
- bit 1, (iy+15h)
+ bit saIndic, (iy+newIndicFlags)
ret z
call j_restoreTR
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
ret
; ---------------------------------------------------------------------------
p06loc_4CAD:
- bit 1, (iy+15h)
+ bit saIndic, (iy+newIndicFlags)
jr z, p06loc_4CC0
call p06sub_4CFC
jr nz, p06loc_4CCB
call j_restoreTR
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
ret
; ---------------------------------------------------------------------------
p06loc_4CC0:
call p06sub_4CFC
ret z
- set 1, (iy+15h)
+ set saIndic, (iy+newIndicFlags)
call j_saveTR
p06loc_4CCB:
@@ -2318,7 +2318,7 @@
push hl
ld a, (unk_89F2)
push af
- res 1, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
call p06sub_4CFC
di
call j_PutMap
@@ -3140,7 +3140,7 @@
; ---------------------------------------------------------------------------
formMatrix:
- bit 3, (iy+1)
+ bit AnsScroll, (iy+ansFlags)
ret z
bit 2, (iy+0Eh)
jr z, p06loc_52E1
@@ -3503,7 +3503,7 @@
call p06sub_5C5B
ld hl, winBtm
inc (hl)
- set 2, (iy+0Dh)
+ set appAutoScroll, (iy+appFlags)
pop hl
ld (curRow), hl
ld sp, ix
@@ -3521,7 +3521,7 @@
call p06sub_5BC4
ld hl, winBtm
dec (hl)
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
ld hl, (chkDelPtr1)
ld a, (hl)
inc hl
@@ -3540,10 +3540,10 @@
FormEReal:
- set 0, (iy+0Ch)
+ set fmtEdit, (iy+fmtEditFlags)
call p06sub_558C
call FormReal
- res 0, (iy+0Ch)
+ res fmtEdit, (iy+fmtEditFlags)
ret
; End of function FormEReal
@@ -3557,17 +3557,17 @@
cp 53h ; 'S'
ld a, b
ret nz
- res 0, (iy+0Ch)
+ res fmtEdit, (iy+fmtEditFlags)
ret
; End of function p06sub_558C
; ---------------------------------------------------------------------------
formERealTOK:
- set 0, (iy+0Ch)
+ set fmtEdit, (iy+fmtEditFlags)
call FormReal
call FORMTOTOK
- res 0, (iy+0Ch)
+ res fmtEdit, (iy+fmtEditFlags)
ret
; =============== S U B R O U T I N E =======================================
@@ -4135,7 +4135,7 @@
call z, OP1Set0
call OP1ToOP5
sub a
- bit 0, (iy+0Ch)
+ bit fmtEdit, (iy+fmtEditFlags)
jr nz, p06loc_5920
ld a, (unk_89FA)
@@ -4193,9 +4193,9 @@
; FormReal+104j ...
ld a, (ix+0FEh)
ld (ix+0FDh), a
- bit 0, (iy+0Ch)
+ bit fmtEdit, (iy+fmtEditFlags)
jr nz, p06loc_5987
- bit 1, (iy+0Ah)
+ bit fmtEng, (iy+fmtFlags)
call nz, OP5ToOP1
p06loc_5987:
@@ -4272,7 +4272,7 @@
ld (ix+0FBh), a
ld l, a
ld (ix+0FBh), l
- bit 0, (iy+0Ch)
+ bit fmtEdit, (iy+fmtEditFlags)
jr z, p06loc_5A03
cp 0Fh
jr nc, p06loc_5974
@@ -4309,7 +4309,7 @@
cp l
jr c, p06loc_5A37
ld (ix+0FDh), l
- bit 0, (iy+0Ch)
+ bit fmtEdit, (iy+fmtEditFlags)
jr nz, p06loc_5A6C
p06loc_5A37:
@@ -4450,7 +4450,7 @@
jr z, p06loc_5B04
cp 30h ; '0'
jr nz, p06loc_5B04
- bit 0, (iy+0Ch)
+ bit fmtEdit, (iy+fmtEditFlags)
ret nz
ld a, (fmtDigits)
cp 0FFh
@@ -4784,7 +4784,7 @@
p06sub_5C7E:
- set 3, (iy+1)
+ set AnsScroll, (iy+ansFlags)
call j_newline
call j_whomeup
ld (winLeft), hl
@@ -4832,7 +4832,7 @@
call j_newline
djnz p06loc_5CB9
call j_whomeup
- set 3, (iy+1)
+ set AnsScroll, (iy+ansFlags)
ld (winLeft), hl
ld a, (curRow)
sub c
@@ -4889,7 +4889,7 @@
bit 7, (iy+9)
call nz, RESETWINTOP
res 7, (iy+9)
- res 3, (iy+1)
+ res AnsScroll, (iy+ansFlags)
bit 7, (iy+5)
ret z
ld hl, (fmtMatSym)
@@ -4903,7 +4903,7 @@
OP1toEdit:
call BufClear
- set 0, (iy+0Ch)
+ set fmtEdit, (iy+fmtEditFlags)
call p06sub_558C
ld hl, (editCursor)
ld (rclQueue), hl
@@ -4927,7 +4927,7 @@
scf
p06loc_5D60:
- res 0, (iy+0Ch)
+ res fmtEdit, (iy+fmtEditFlags)
ret c
ld hl, (rclQueue)
ld (editCursor), hl
@@ -4936,7 +4936,7 @@
MinToEdit:
call BufClear
- set 0, (iy+0Ch)
+ set fmtEdit, (iy+fmtEditFlags)
ld hl, (editCursor)
ld (rclQueue), hl
ld a, (unk_89FA)
@@ -4964,7 +4964,7 @@
p06loc_5DAE:
ld a, 9
call bufQueueChar
- res 0, (iy+0Ch)
+ res fmtEdit, (iy+fmtEditFlags)
ret c
ld hl, (rclQueue)
ld (editCursor), hl
@@ -4990,9 +4990,9 @@
ex de, hl
call BufClear
ex de, hl
- set 0, (iy+0Ch)
+ set fmtEdit, (iy+fmtEditFlags)
call rclToQueue
- res 0, (iy+0Ch)
+ res fmtEdit, (iy+fmtEditFlags)
ret c
ld hl, (rclQueue)
ld (editCursor), hl
@@ -5430,7 +5430,7 @@
push bc
call p06sub_6041
ld a, 0E0h ; '�'
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
call j_VPutMap
p06loc_6008:
@@ -5457,7 +5457,7 @@
cp 71h ; 'q'
jp nz, p06loc_602C
ld hl, a_____
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
call j_VPutS
jr p06loc_603E
; ---------------------------------------------------------------------------
@@ -5529,7 +5529,7 @@
; ---------------------------------------------------------------------------
Page06_3A7D:
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
set 0, (iy+19h)
call RESETWINTOP
ld a, 54h ; 'T'
@@ -5624,10 +5624,10 @@
call Mov8B
ld hl, OP1
ld a, 31h ; '1'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_GetK
- set 2, (iy+0Dh)
+ set appAutoScroll, (iy+appFlags)
set 2, (iy+19h)
call j_newline
call p06sub_6192
@@ -5675,7 +5675,7 @@
ld hl, p06loc_6AB0
call p06sub_6A94
ld a, 19h
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
ret
@@ -5707,7 +5707,7 @@
jr nz, p06loc_61E2
p06loc_61CE:
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
set 0, (iy+19h)
call p06sub_618B
call CloseEditEqu
@@ -5766,7 +5766,7 @@
jr nz, p06loc_623D
p06loc_6226:
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call BufDelete
; =============== S U B R O U T I N E =======================================
@@ -6043,7 +6043,7 @@
; ---------------------------------------------------------------------------
p06loc_6407:
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, p06loc_6410
cp 8Ah ; '�'
ret z
@@ -6054,7 +6054,7 @@
call j_ProcessBufKeys
ret
p06loc_641A:
- res 4, (iy+9)
+ res onInterrupt, (iy+onFlags)
push af
call p06sub_65AF
call p06sub_65B6
@@ -6085,7 +6085,7 @@
jp JErrorNo
p06loc_6452:
call j_rstrShadow2
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
ret nz
; =============== S U B R O U T I N E =======================================
@@ -6154,7 +6154,7 @@
call CloseEditEqu
call page0_166E
call j_ParseInp
- bit 0, (iy+7)
+ bit numOP1, (iy+ParsFlag2)
ret z
call PushOP1
call ZeroOP1
@@ -6518,7 +6518,7 @@
ld hl, p06loc_6AB7
call p06sub_6A94
ld a, 17h
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p06loc_669C
; ---------------------------------------------------------------------------
@@ -6530,7 +6530,7 @@
call p06sub_6A94
push af
ld a, 18h
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
pop af
jr p06loc_66A7
@@ -6762,7 +6762,7 @@
ld hl, p06loc_6ABD
call p06sub_6A94
ld a, 18h
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
ld a, 3Dh ; '='
@@ -6801,7 +6801,7 @@
ex de, hl
push bc
ld a, 18h
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ex de, hl
pop bc
@@ -7061,18 +7061,18 @@
ret
+: bit 2, (iy+19h)
jr z, p06loc_698B
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
ld hl, (curRow)
push hl
call p06sub_7200
pop hl
ld (curRow), hl
- set 2, (iy+0Dh)
+ set appAutoScroll, (iy+appFlags)
ret
; ---------------------------------------------------------------------------
p06loc_698B:
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr z, p06sub_6A0F
ld hl, (editCursor)
ld de, (editTop)
@@ -7202,7 +7202,7 @@
p06loc_6A5A:
p06sub_6A5A:
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
res 1, (iy+19h)
bit 2, (iy+19h)
jr nz, p06loc_6A79
@@ -7282,7 +7282,7 @@
call page0_17DB
xor a
ld (currLastEntry), a
- bit 4, (iy+35h)
+ bit yEquHookActive, (iy+hookflags3)
jr z, p06loc_6AE9
ld a, 0
call Page0Call_2FDF
@@ -7388,7 +7388,7 @@
p06loc_6BA2:
ld b, a
ld a, 6
- bit 4, (iy+35h)
+ bit yEquHookActive, (iy+hookflags3)
call nz, Page0Call_2FDF
ret nz
ld a, b
@@ -7450,7 +7450,7 @@
call closeEquField
p06loc_6C0C:
- set 2, (iy+0Dh)
+ set appAutoScroll, (iy+appFlags)
call j_newline
p06loc_6C13:
@@ -7490,7 +7490,7 @@
Page06_2FEB:
ld a, 3
- bit 4, (iy+35h)
+ bit yEquHookActive, (iy+hookflags3)
call nz, Page0Call_2FDF
ret nz
ld hl, 6
@@ -7502,7 +7502,7 @@
ld (penCol), hl
ld hl, aPlot1
ld a, 1Ah
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld a, (unk_92D9)
call p06sub_6CB2
@@ -7515,7 +7515,7 @@
ld (penCol), hl
ld hl, aPlot2
ld a, 1Bh
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld a, (unk_92EA)
call p06sub_6CB2
@@ -7528,7 +7528,7 @@
ld (penCol), hl
ld hl, aPlot3
ld a, 1Ch
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld a, (unk_92FB)
; End of function Page06_2FEB
@@ -7541,13 +7541,13 @@
; Page06_2FEB+45p
bit 0, a
jr z, p06loc_6CBA
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
p06loc_6CBA:
- set 1, (iy+5)
+ set textEraseBelow, (iy+textFlags)
call j_VPutS
- res 3, (iy+5)
- res 1, (iy+5)
+ res textInverse, (iy+textFlags)
+ res textEraseBelow, (iy+textFlags)
ret
; End of function p06sub_6CB2
@@ -7558,7 +7558,7 @@
call page0_19D
jr nz, p06loc_6CDD
ld a, 4
- bit 4, (iy+35h)
+ bit yEquHookActive, (iy+hookflags3)
call nz, Page0Call_2FDF
ret nz
call Page0Call_367B
@@ -7625,7 +7625,7 @@
call DispTail
call closeEquField
call zero_basic_prog
- set 2, (iy+0Dh)
+ set appAutoScroll, (iy+appFlags)
ld ix, (unk_9700)
ld de, 3
add ix, de
@@ -7783,7 +7783,7 @@
jr nz, p06loc_6E4F
p06loc_6E3A:
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call BufDelete
push af
call nz, SetTblGraphDrawPreserveSmartTest
@@ -7852,7 +7852,7 @@
; ---------------------------------------------------------------------------
p06loc_6EB0:
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, p06loc_6EB9
cp 8Ah ; '�'
ret z
@@ -7867,7 +7867,7 @@
cp 0Dh
jp nz, p06loc_6EF7
call SetTblGraphDrawPreserveSmartTest
- set 5, (iy+0Ch)
+ set cmdVirgin, (iy+cmdFlags)
call CanAlphIns
p06loc_6ECD:
@@ -7880,7 +7880,7 @@
p06loc_6ED7:
call GETLASTENTRY
call RCLENTRYTOEDIT
- res 5, (iy+0Ch)
+ res cmdVirgin, (iy+cmdFlags)
call BufToTop
ld a, (mcxCurApp)
cp 54h ; 'T'
@@ -7898,7 +7898,7 @@
p06loc_6EF7:
cp 5Ah ; 'Z'
ret c
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, p06loc_6F09
bit 1, (iy+2Ah)
jr nz, p06loc_6F09
@@ -7922,7 +7922,7 @@
p06loc_6F24:
jp j_saveShadow
p06loc_6F27:
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
ret z
ld hl, (editSym)
ld a, (hl)
@@ -8000,7 +8000,7 @@
; Page06_2FF1:p06loc_6DC3p
call EditEqu
ld a, 9
- bit 4, (iy+35h)
+ bit yEquHookActive, (iy+hookflags3)
call nz, Page0Call_2FDF
call z, Page0Call_37AD
call j_setNumWindow
@@ -8037,7 +8037,7 @@
jr nz, p06loc_6FA1
p06loc_6F9D:
- set 1, (iy+17h)
+ set smarter_test, (iy+smartFlags)
p06loc_6FA1:
; AutoSelect+Fj
@@ -8046,7 +8046,7 @@
cp c
ret z
ld a, 5
- bit 4, (iy+35h)
+ bit yEquHookActive, (iy+hookflags3)
call nz, Page0Call_2FDF
ret nz
call p06sub_70D8
@@ -8079,7 +8079,7 @@
ld h, a
ld (curRow), hl
ld a, 7
- bit 4, (iy+35h)
+ bit yEquHookActive, (iy+hookflags3)
call nz, Page0Call_2FDF
jr nz, p06loc_6FF6
ld a, c
@@ -8342,7 +8342,7 @@
push af
p06loc_7136:
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
ld hl, (curRow)
push hl
call p06sub_7200
@@ -8392,7 +8392,7 @@
p06loc_7188:
pop hl
ld (curRow), hl
- set 2, (iy+0Dh)
+ set appAutoScroll, (iy+appFlags)
call page0_19D
ret z
call j_setNumWindow
@@ -8404,7 +8404,7 @@
; ---------------------------------------------------------------------------
dispNumEOS:
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
ld a, (unk_9813)
push af
push af
@@ -8482,7 +8482,7 @@
DispForward:
ld a, (iy+0Dh)
push af
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
ex de, hl
p06loc_7210:
@@ -8589,7 +8589,7 @@
; p06sub_72AFp ...
ld b, a
ld a, 2
- bit 4, (iy+35h)
+ bit yEquHookActive, (iy+hookflags3)
call nz, Page0Call_2FDF
ld a, b
ret nz
@@ -8646,7 +8646,7 @@
call p06sub_6F4F
rst 10h
ld a, 8
- bit 4, (iy+35h)
+ bit yEquHookActive, (iy+hookflags3)
call nz, Page0Call_2FDF
jr nz, p06loc_72EC
ld a, 7Fh ; ''
@@ -8768,11 +8768,11 @@
cp 0FFh
ret z
ld a, 1
- bit 4, (iy+35h)
+ bit yEquHookActive, (iy+hookflags3)
call nz, Page0Call_2FDF
ret nz
set 7, (iy+18h)
- set 4, (iy+5)
+ set textInsMode, (iy+textFlags)
res 0, (iy+13h)
p06loc_7371:
@@ -8795,7 +8795,7 @@
call page0_1A2
call nz, p06loc_6D8E
call p06loc_7337
- set 4, (iy+5)
+ set textInsMode, (iy+textFlags)
jr p06loc_7371
; ---------------------------------------------------------------------------
@@ -8820,7 +8820,7 @@
call page0_1A2
call nz, p06sub_6BC1
call p06loc_7337
- set 4, (iy+5)
+ set textInsMode, (iy+textFlags)
jr p06loc_7371
; ---------------------------------------------------------------------------
@@ -8834,7 +8834,7 @@
call SetTblGraphDrawPreserveSmartTest
bit 3, (hl)
jr nz, p06loc_73E3
- set 1, (iy+17h)
+ set smarter_test, (iy+smartFlags)
p06loc_73E3:
ld a, (unk_9813)
@@ -8875,7 +8875,7 @@
ret nz
res 7, (iy+18h)
set 0, (iy+13h)
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
; =============== S U B R O U T I N E =======================================
@@ -8911,7 +8911,7 @@
Page06_3A23:
ld hl, p06loc_75AD
call AppInit
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
bit 0, (iy+9)
call nz, SaveScreen
call p06sub_75C4
@@ -8929,7 +8929,7 @@
call p06sub_777A
Page06_2FCD:
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
ld a, (unk_97A1)
ld b, a
ld de, 0Fh
@@ -8953,8 +8953,8 @@
ld (unk_85E4), a
ld a, (iy+0Dh)
ld (unk_85E3), a
- res 5, (iy+0Dh)
- res 1, (iy+0Dh)
+ res appCurGraphic, (iy+appFlags)
+ res appTextSave, (iy+appFlags)
ret
; End of function SaveScreen
@@ -8964,11 +8964,11 @@
RETSCREEN:
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
push af
bit 0, (iy+9)
jr nz, p06loc_74BD
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr z, p06loc_74BD
ld a, 4
ld (winTop), a
@@ -8989,11 +8989,11 @@
; ---------------------------------------------------------------------------
RetScreenErr:
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
push af
bit 0, (iy+9)
jr nz, p06loc_74E7
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr z, p06loc_74E7
ld a, 4
ld (winTop), a
@@ -9007,9 +9007,9 @@
p06loc_74EC:
p06sub_74EC:
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
call j_ClrScrnFull
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
ld a, (mcxCurApp)
cp 4Bh ; 'K'
jp z, p06loc_7570
@@ -9017,7 +9017,7 @@
jr z, p06loc_751B
bit 4, (iy+1Ah)
jr nz, p06loc_7527
- set 2, (iy+14h)
+ set grfSChanged, (iy+sGrFlags)
call SetYOffset
set 6, (iy+1Dh)
set 7, (iy+1Dh)
@@ -9033,11 +9033,11 @@
call SetTblGraphDraw
p06loc_7527:
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr z, p06loc_753D
bit 6, (iy+16h)
ret nz
- set 2, (iy+14h)
+ set grfSChanged, (iy+sGrFlags)
ld a, 1
ld (CurTableRow), a
jr p06loc_7542
@@ -9051,7 +9051,7 @@
set 2, (iy+15h)
Page06_3831:
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
jr nz, p06loc_7556
call Bit_VertSplit
jr nz, p06loc_756D
@@ -9074,7 +9074,7 @@
; ---------------------------------------------------------------------------
p06loc_7570:
- bit 4, (iy+13h)
+ bit autoFill, (iy+tblFlags)
jr z, p06loc_7586
bit 6, (iy+16h)
jr nz, p06loc_758C
@@ -9091,7 +9091,7 @@
jr nz, p06sub_759E
p06loc_758C:
- bit 5, (iy+13h)
+ bit autoCalc, (iy+tblFlags)
jr nz, p06loc_7599
bit 6, (iy+11h)
ret z
@@ -9132,7 +9132,7 @@
; =============== S U B R O U T I N E =======================================
p06sub_75BA:
res 6, (iy+16h)
- bit 4, (iy+13h)
+ bit autoFill, (iy+tblFlags)
jr p06loc_75CC
; End of function p06sub_75BA
@@ -9142,7 +9142,7 @@
p06sub_75C4:
res 6, (iy+16h)
- bit 0, (iy+14h)
+ bit grfSplit, (iy+sGrFlags)
p06loc_75CC:
ret z
@@ -9168,7 +9168,7 @@
p06sub_75DF:
res 6, (iy+11h)
- bit 5, (iy+13h)
+ bit autoCalc, (iy+tblFlags)
ret z
set 6, (iy+11h)
ret
@@ -9179,7 +9179,7 @@
Page06_3A8F:
ld hl, p06loc_7628
call AppInit
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
bit 0, (iy+9)
call nz, SaveScreen
call p06sub_75C4
@@ -9209,7 +9209,7 @@
p06sub_7618:
ld hl, p06loc_7AC1
ld a, 0Ch
- bit 7, (iy+2)
+ bit grfRecurM, (iy+grfModeFlags)
ret z
ld hl, p06loc_7B75
ld a, 11h
@@ -9287,12 +9287,12 @@
ld (curRow+1), a
ld hl, p06loc_7E45
ld a, 15h
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p06sub_78EF
ld hl, p06loc_7E4D
ld a, 16h
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jp p06sub_7D1E
; End of function Page06_35FD
@@ -9517,7 +9517,7 @@
ld h, (ix+5)
ld (curRow), hl
jr nc, p06loc_7828
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p06loc_7815
ld a, 0
ld h, (ix+0Dh)
@@ -9531,7 +9531,7 @@
p06loc_7818:
and 0Fh
ld b, a
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
ld a, 20h ; ' '
p06loc_7821:
@@ -9549,15 +9549,15 @@
and (ix+0Ch)
cp (ix+0Bh)
jr nz, p06loc_7843
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
jr p06loc_7847
; ---------------------------------------------------------------------------
p06loc_7843:
- set 0, (iy+8)
+ set preClrForMode, (iy+newDispF)
p06loc_7847:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p06loc_785A
ld a, 1
ld h, (ix+0Dh)
@@ -9633,7 +9633,7 @@
call nz, Page06_366F
bit 7, (ix+6)
ret z
- set 1, (iy+17h)
+ set smarter_test, (iy+smartFlags)
jp SetGraphDraw
; END OF FUNCTION CHUNK FOR p06sub_7728
@@ -9663,7 +9663,7 @@
ld hl, OP1
ld a, 5
call rclToQueue
- set 7, (iy+0Eh)
+ set enableQueue, (iy+rclFlag)
ret
; End of function p06sub_78DB
@@ -10608,7 +10608,7 @@
ld (curRow+1), a
ld hl, p06loc_7E40
ld a, 2
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
; =============== S U B R O U T I N E =======================================
--- a/source/page07/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page07/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -1297,7 +1297,7 @@
; ---------------------------------------------------------------------------
Page07_3BC7:
- bit 5, (iy+35h)
+ bit fontHookActive, (iy+hookflags3)
jr z, p07loc_452C
ld b, a
ld a, 1
@@ -1306,7 +1306,7 @@
ret z
p07loc_452C:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p07loc_453A
ld b, a
ld a, 76h ; 'v'
@@ -1324,14 +1324,14 @@
; ---------------------------------------------------------------------------
Page07_3C03:
- bit 5, (iy+35h)
+ bit fontHookActive, (iy+hookflags3)
jr z, p07loc_4555
ld a, 3
call j_FontHook
jr z, p07loc_4566
p07loc_4555:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p07loc_4562
ld a, 78h ; 'x'
call j_call_character_hook
@@ -4529,9 +4529,9 @@
dec hl
call page0_B86
jr nz, p07loc_52BF
- bit 1, (iy+26h)
+ bit inGroup, (iy+groupFlags)
jr nz, p07loc_52BF
- bit 0, (iy+0)
+ bit inDelete, (iy+ioDelFlag)
ret nz
p07loc_52BF:
@@ -4547,7 +4547,7 @@
dec hl
p07loc_52C6:
- bit 1, (iy+26h)
+ bit inGroup, (iy+groupFlags)
jr z, p07loc_52D0
ld a, b
or a
@@ -5065,8 +5065,8 @@
; ---------------------------------------------------------------------------
DeleteTempPrograms:
- bit 6, (iy+33h)
- res 6, (iy+33h)
+ bit noTempDelete, (iy+hookflags1)
+ res noTempDelete, (iy+hookflags1)
ret nz
call OP1ToOP4
call ZeroOP1
@@ -5837,10 +5837,10 @@
p07sub_59BB:
ld hl, aName
ld a, 10h
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ex de, hl
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
scf
p07loc_59CD:
@@ -5859,13 +5859,13 @@
pop af
call c, page0_3B8
res 1, (iy+13h)
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
p07loc_59F5:
ret
; End of function p07sub_59BB
p07loc_59F6:
- bit 4, (iy+28h)
+ bit appRunning, (iy+APIFlg)
jp nz, page0_7A2
ret
@@ -5924,7 +5924,7 @@
bit 1, (iy+13h)
res 1, (iy+11h)
res 5, (iy+1Eh)
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
push af
push hl
call p07sub_5ABB
@@ -6043,7 +6043,7 @@
p07loc_5B0B:
res 1, (iy+13h)
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
ld hl, (editTop)
ld de, (editCursor)
call CpHLDE
@@ -6066,7 +6066,7 @@
call j_BufClear
ld hl, nameBuff
call ZeroOP
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
ret
; End of function p07sub_5AD8
@@ -6111,7 +6111,7 @@
p07loc_5B86:
set 1, (iy+13h)
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
call CanAlphIns
ld a, b
@@ -6174,7 +6174,7 @@
ld hl, aRcl
push af
ld a, 0Eh
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
pop af
ex de, hl
@@ -6267,8 +6267,8 @@
p07loc_5C6C:
call j_rclToQueue
- set 4, (iy+5)
- set 7, (iy+0Eh)
+ set textInsMode, (iy+textFlags)
+ set enableQueue, (iy+rclFlag)
set 5, (iy+5)
res 6, (iy+5)
ret
@@ -6394,7 +6394,7 @@
CATALOGCHK:
call p07sub_5A3B
call page0_3B8
- set 0, (iy+11h)
+ set promptEdit, (iy+promptFlags)
ret
; =============== S U B R O U T I N E =======================================
@@ -6403,7 +6403,7 @@
p07sub_5D21:
ld hl, aName_0
ld a, 0Fh
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld a, 1
ld (curRow), a
@@ -6460,7 +6460,7 @@
push af
call j_ZIfMatrixMenu
jr c, p07loc_5D96
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
call j_SaveSavedFlags
call POPCX
pop af
@@ -6492,7 +6492,7 @@
ld a, 7
bit 3, (iy+36h)
call nz, j_RunCatalog1Hook
- bit 6, (iy+34h)
+ bit catalog2HookActive, (iy+hookflags2)
jr z, p07loc_5DC8
call j_RunCatalog2Hook
ret z
@@ -6503,9 +6503,9 @@
call j_ZIfCatalog
sub a
ld (winTop), a
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
call p07sub_5DE7
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
call page0_3B8
p07loc_5DE5:
@@ -6527,7 +6527,7 @@
ld de, 0
ld (winTop), a
ld (curRow), de
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
p07loc_5E04:
call p07sub_5FA1
@@ -6543,7 +6543,7 @@
ld (curRow), hl
ld hl, p07loc_5D46
ld a, 33h ; '3'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ld de, OP3
call Mov8B
@@ -6564,7 +6564,7 @@
bit 3, (iy+36h)
call nz, j_RunCatalog1Hook
jr nz, p07loc_5E4B
- bit 6, (iy+34h)
+ bit catalog2HookActive, (iy+hookflags2)
jr z, p07loc_5E4B
ld a, 1
ld (curRow+1), a
@@ -6595,7 +6595,7 @@
bit 4, (iy+36h)
call nz, Page0Call_3123
ret nz
- bit 6, (iy+34h)
+ bit catalog2HookActive, (iy+hookflags2)
jr z, p07loc_5E6A
ld a, 8
call j_RunCatalog2Hook
@@ -6650,7 +6650,7 @@
res 4, (iy+29h)
ld hl, p07loc_639E
ld a, 2
- bit 6, (iy+34h)
+ bit catalog2HookActive, (iy+hookflags2)
jr z, p07loc_5EB4
call j_RunCatalog2Hook
@@ -6659,7 +6659,7 @@
call p07sub_5FA4
ld hl, p07loc_63AA
ld a, 3
- bit 6, (iy+34h)
+ bit catalog2HookActive, (iy+hookflags2)
jr z, p07loc_5EC8
call j_RunCatalog2Hook
@@ -6742,7 +6742,7 @@
bit 3, (iy+36h)
call nz, j_RunCatalog1Hook
jr nz, p07loc_5F4B
- bit 6, (iy+34h)
+ bit catalog2HookActive, (iy+hookflags2)
jr z, p07loc_5F48
call j_RunCatalog2Hook
jr z, p07loc_5F4B
@@ -6768,8 +6768,8 @@
; ---------------------------------------------------------------------------
p07loc_5F5E:
- res 4, (iy+0Dh)
- set 3, (iy+0Dh)
+ res appLockMenus, (iy+appFlags)
+ set appMenus, (iy+appFlags)
ld hl, (curRow)
push hl
call p07loc_5FAA
@@ -6791,7 +6791,7 @@
call nz, j_RunCatalog1Hook
ret nz
ld a, 1
- bit 6, (iy+34h)
+ bit catalog2HookActive, (iy+hookflags2)
call nz, j_RunCatalog2Hook
ret nz
ld d, (hl)
@@ -6885,7 +6885,7 @@
bit 3, (iy+36h)
call nz, j_RunCatalog1Hook
jr nz, p07loc_601A
- bit 6, (iy+34h)
+ bit catalog2HookActive, (iy+hookflags2)
call nz, j_RunCatalog2Hook
p07loc_601A:
@@ -6936,7 +6936,7 @@
bit 3, (iy+36h)
call nz, j_RunCatalog1Hook
jr nz, p07loc_6065
- bit 6, (iy+34h)
+ bit catalog2HookActive, (iy+hookflags2)
call nz, j_RunCatalog2Hook
p07loc_6065:
@@ -6956,7 +6956,7 @@
call nz, j_RunCatalog1Hook
jr nz, p07loc_6083
ld a, 5
- bit 6, (iy+34h)
+ bit catalog2HookActive, (iy+hookflags2)
call nz, j_RunCatalog2Hook
p07loc_6083:
@@ -7042,9 +7042,9 @@
; ---------------------------------------------------------------------------
QUAD:
- res 1, (iy+12h)
+ res indicInUse, (iy+indicFlags)
call CanAlphIns
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
xor a
ld (curRow), a
ld a, 0Fh
@@ -7760,10 +7760,10 @@
call p07sub_643A
Page07_3A53:
- set 1, (iy+0Dh)
- set 4, (iy+0Ch)
- set 0, (iy+0)
- set 3, (iy+14h)
+ set appTextSave, (iy+appFlags)
+ set curLock, (iy+curFlags)
+ set inDelete, (iy+ioDelFlag)
+ set grfSplitOverride, (iy+sGrFlags)
call RESETWINTOP
ld hl, p07loc_6428
call AppInit
@@ -7825,14 +7825,14 @@
.dw p07loc_6456
.db 12h
p07loc_6435:
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
ret
; =============== S U B R O U T I N E =======================================
p07loc_643A:
p07sub_643A:
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
xor a
ld (MenuCurrent), a
ld (unk_984B), a
@@ -7841,7 +7841,7 @@
call Page0Call_2E65
res 3, (iy+25h)
p07loc_6452:
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
p07loc_6456:
ret
p07loc_6457:
@@ -8000,7 +8000,7 @@
ld (curRow), hl
ld hl, aRamFree
ld a, 3
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_putsm
ld a, 0Bh
@@ -8011,7 +8011,7 @@
ld (curRow), hl
ld hl, aArcFree
ld a, 4
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_putsm
ld a, 0Ah
@@ -8062,7 +8062,7 @@
Page07_2ECB:
res 2, (iy+25h)
- res 0, (iy+24h)
+ res checkBatteryLevelFirst, (iy+arcFlag)
call p07sub_662E
jp c, Page0Call_2559
jr p07loc_6624
@@ -8070,7 +8070,7 @@
Page07_2ED1:
res 2, (iy+25h)
- res 0, (iy+24h)
+ res checkBatteryLevelFirst, (iy+arcFlag)
ld (unk_83F3), de
ld (unk_83F1), hl
call page0_1B6B
@@ -8161,7 +8161,7 @@
push bc
push de
call p07sub_669E
- bit 0, (iy+24h)
+ bit checkBatteryLevelFirst, (iy+arcFlag)
jr z, p07loc_668D
call Chk_Batt_Low
call z, Page0Call_2E89
@@ -8253,7 +8253,7 @@
Arc_Unarc:
- set 0, (iy+24h)
+ set checkBatteryLevelFirst, (iy+arcFlag)
Arc_Unarc2:
call Page07_2EE9
@@ -9207,10 +9207,10 @@
Page07_3A71:
set 6, (iy+1Dh)
set 7, (iy+1Dh)
- res 4, (iy+3Ch)
+ res useFastCirc, (iy+plotFlag3)
ld hl, p07loc_6D9B
call AppInit
- set 4, (iy+1)
+ set monAbandon, (iy+monFlags)
call MemChk
ld de, 64h ; 'd'
call CpHLDE
@@ -9262,7 +9262,7 @@
ld hl, (curRow)
push hl
ld a, 7Ah ; 'z'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr nz, p07loc_6D8F
ld hl, 4
@@ -9309,7 +9309,7 @@
p07loc_6DB5:
cp 0D6h ; '�'
ret nz
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
call page0_193
jp z, p07loc_6E65
call OP1ToOP3
@@ -9335,7 +9335,7 @@
jr c, p07loc_6E65
cp 5
jr nz, p07loc_6E00
- res 4, (iy+1)
+ res monAbandon, (iy+monFlags)
ld hl, 9653h
ld de, progToEdit
call Mov8B
@@ -9381,7 +9381,7 @@
jr nz, p07loc_6E5A
ld a, 49h ; 'I'
ld (mcxCurApp), a
- res 4, (iy+1)
+ res monAbandon, (iy+monFlags)
call Page0Call_2FE5
jp Mon
; ---------------------------------------------------------------------------
@@ -9402,7 +9402,7 @@
set 7, (iy+0Ch)
p07loc_6E72:
- res 4, (iy+1)
+ res monAbandon, (iy+monFlags)
call POPCX
ld a, (mcxCurApp)
cp 43h ; 'C'
@@ -9478,14 +9478,14 @@
; ---------------------------------------------------------------------------
dispErrorScreen:
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
ld hl, (curRow)
push hl
ld hl, 0
ld (curRow), hl
ld hl, aErr_0
ld a, 0Bh
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
ld a, (errNo)
@@ -9505,7 +9505,7 @@
add hl, de
call ldHLind
ld a, 0Ch
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
p07loc_6F2B:
@@ -9763,7 +9763,7 @@
ld hl, p07loc_72D4
call pushErrorHandleR
call p07sub_72F0
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
ld hl, OP1
res 5, (hl)
call popErrorHandleR
@@ -9857,7 +9857,7 @@
call p07sub_7380
call popErrorHandleR
pop hl
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
res 3, (iy+3)
ld (pTempCnt), hl
ret
@@ -9869,7 +9869,7 @@
call FPOPCPLX
pop de
pop af
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
jp j_ENDDRAW
p07loc_72D4:
or 80h ; '�'
@@ -9883,7 +9883,7 @@
call CpyTo1FPST
ld hl, OP1
set 5, (hl)
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
jp p07loc_71F0
; =============== S U B R O U T I N E =======================================
@@ -9984,7 +9984,7 @@
call CpyTo1FPST
ld hl, aDf
ld a, 6Ch ; 'l'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p07loc_73C0
; End of function p07sub_7358
@@ -10013,7 +10013,7 @@
p07loc_7398:
ld hl, aArea
ld a, 6Eh ; 'n'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p07loc_73C0
; End of function p07sub_7380
@@ -10025,7 +10025,7 @@
p07sub_73A6:
ld hl, aUp
ld a, 6Dh ; 'm'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p07loc_73C0
; End of function p07sub_73A6
@@ -10037,20 +10037,20 @@
p07sub_73B4:
ld hl, aLow
ld a, 6Fh ; 'o'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
p07loc_73C0:
- set 7, (iy+14h)
- set 1, (iy+5)
+ set textWrite, (iy+sGrFlags)
+ set textEraseBelow, (iy+textFlags)
call Page0Call_3345
call j_VPutS
ld a, 7
call j_DispOP1A
p07loc_73D3:
- res 1, (iy+5)
- res 7, (iy+14h)
+ res textEraseBelow, (iy+textFlags)
+ res textWrite, (iy+sGrFlags)
ret
; End of function p07sub_73B4
@@ -10237,7 +10237,7 @@
p07loc_74AA:
cp 4
jr nz, p07loc_74BC
- bit 1, (iy+26h)
+ bit inGroup, (iy+groupFlags)
jr z, p07loc_74B6
scf
ret
@@ -10271,7 +10271,7 @@
p07loc_74CE:
cp 15h
jr nz, p07loc_74DB
- bit 1, (iy+26h)
+ bit inGroup, (iy+groupFlags)
jr nz, p07loc_74E7
ld a, 17h
ret
@@ -10280,7 +10280,7 @@
p07loc_74DB:
cp 17h
jr nz, p07loc_74EE
- bit 0, (iy+0)
+ bit inDelete, (iy+ioDelFlag)
ld a, 0
jr nz, p07loc_74EC
@@ -10381,7 +10381,7 @@
cp 0Fh
jr c, p07loc_7568
jr nz, p07loc_755D
- bit 1, (iy+26h)
+ bit inGroup, (iy+groupFlags)
jr nz, p07loc_759D
jr p07loc_75A4
; ---------------------------------------------------------------------------
@@ -10478,7 +10478,7 @@
ret z
or a
jr nz, p07loc_75D7
- bit 0, (iy+0)
+ bit inDelete, (iy+ioDelFlag)
jr z, p07loc_75D0
pop af
jr p07loc_75A4
@@ -10595,7 +10595,7 @@
p07sub_7641:
ld c, a
- bit 0, (iy+0)
+ bit inDelete, (iy+ioDelFlag)
jr nz, p07loc_764F
ld a, (sndRecState)
cp 2
@@ -10615,7 +10615,7 @@
; ---------------------------------------------------------------------------
DelRes:
- res 6, (iy+9)
+ res statsValid, (iy+statFlags)
ld a, 0Eh
ld hl, statVars
ld b, 35h ; '5'
@@ -10795,7 +10795,7 @@
call p07sub_77F6
p07loc_7755:
- bit 0, (iy+0)
+ bit inDelete, (iy+ioDelFlag)
jr z, p07loc_778B
ld a, 0Bh
ld (curRow+1), a
@@ -10952,7 +10952,7 @@
; START OF FUNCTION CHUNK FOR Page07_2DED
p07loc_7807:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p07loc_7815
ld b, a
ld a, 3Ah ; ':'
@@ -10980,7 +10980,7 @@
ld a, 9
p07loc_782F:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p07loc_783C
ld b, a
ld a, 3Bh ; ';'
@@ -11152,7 +11152,7 @@
p07loc_795E:
cp 3
jr c, p07loc_796C
- bit 6, (iy+3Dh)
+ bit keyDefaultsF, (iy+dbKeyFlags)
jr z, p07loc_796C
ld a, 8Bh ; '�'
jr p07loc_7956
@@ -11213,7 +11213,7 @@
p07loc_79B0:
pop af
- bit 3, (iy+24h)
+ bit lwrCaseActive, (iy+appLwrCaseFlag)
ret z
ld b, a
ld a, (iy+3Dh)
@@ -11611,7 +11611,7 @@
; ---------------------------------------------------------------------------
p07loc_7B42:
- bit 6, (iy+3Dh)
+ bit keyDefaultsF, (iy+dbKeyFlags)
jr nz, p07loc_7B40
ld b, 14h
ld hl, p07loc_7B65
@@ -11820,8 +11820,8 @@
LoadMenuB:
push bc
- res 2, (iy+12h)
- res 1, (iy+0Dh)
+ res indicOnly, (iy+indicFlags)
+ res appTextSave, (iy+appFlags)
call j_saveShadow2
pop af
push af
@@ -11961,7 +11961,7 @@
p07loc_7D0A:
push bc
- bit 0, (iy+3Eh)
+ bit silentLinkActive, (iy+silentLinkFlags)
jr nz, p07loc_7D1C
in a, (0)
and 3
@@ -11978,7 +11978,7 @@
p07loc_7D22:
call page0_AC9
- res 2, (iy+12h)
+ res indicOnly, (iy+indicFlags)
call GetCSC
p07loc_7D2C:
--- a/source/page78/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page78/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -117,7 +117,7 @@
call CKENDLIN
call nz, p78sub_4217
call j_ExecutePrgm
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
ret
; =============== S U B R O U T I N E =======================================
@@ -732,7 +732,7 @@
ld (cleanTmp), hl
call GetStringInput
pop hl
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
ld a, 4
ld (OP1), a
call p78sub_44E4
@@ -941,7 +941,7 @@
push af
bit 0, (iy+1Bh)
jr nz, p78loc_45C0
- set 2, (iy+1Bh)
+ set IDis82h, (iy+linkFlags)
p78loc_45C0:
ld a, (OP1+1)
@@ -949,8 +949,8 @@
jr nz, p78loc_45D7
bit 0, (iy+1Bh)
jr nz, p78loc_4619
- set 1, (iy+1Bh)
- res 2, (iy+1Bh)
+ set IDis95h, (iy+linkFlags)
+ res IDis82h, (iy+linkFlags)
jr p78loc_4619
; ---------------------------------------------------------------------------
@@ -963,8 +963,8 @@
call p78sub_4213
ld hl, p78loc_45FC
call pushErrorHandleR
- set 3, (iy+33h)
- res 0, (iy+16h)
+ set ignoreBPLink, (iy+hookflags1)
+ res secondTimerEnabled, (iy+interruptFlags)
di
ld a, 15h
ld (sndRecState), a
@@ -979,7 +979,7 @@
call popErrorHandleR
p78loc_460A:
di
- res 2, (iy+12h)
+ res indicOnly, (iy+indicFlags)
ld a, 5
call lcd_busy
out (10h), a
@@ -1049,7 +1049,7 @@
call j_PutToMat
p78loc_4685:
- res 3, (iy+33h)
+ res ignoreBPLink, (iy+hookflags1)
jp p78loc_4FEF
; ---------------------------------------------------------------------------
@@ -1303,7 +1303,7 @@
.dw p78loc_49A9
p78loc_480A:
call SetGraphDraw
- set 1, (iy+17h)
+ set smarter_test, (iy+smartFlags)
; =============== S U B R O U T I N E =======================================
@@ -1312,9 +1312,9 @@
- bit 2, (iy+2)
+ bit plotDisp, (iy+plotFlags)
ret z
- bit 0, (iy+3)
+ bit graphDraw, (iy+graphFlags)
ret z
jr p78loc_485F
p78loc_481D:
@@ -1520,7 +1520,7 @@
call STEQARG
p78loc_4945:
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
ret
; End of function p78sub_4938
@@ -1600,7 +1600,7 @@
p78sub_49B8:
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
call PopRealO1
call markTableDirty
ret
@@ -1664,12 +1664,12 @@
p78loc_4A11:
push af
- bit 0, (iy+3)
+ bit graphDraw, (iy+graphFlags)
call z, j_GrBufCpy
- set 5, (iy+0Dh)
+ set appCurGraphic, (iy+appFlags)
pop af
call j_GRDECODA
- res 5, (iy+0Dh)
+ res appCurGraphic, (iy+appFlags)
bit 0, (iy+2)
jp z, p78loc_4FEF
ld a, (curGStyle)
@@ -1681,8 +1681,8 @@
push af
p78loc_4A36:
- set 5, (iy+0Dh)
- bit 1, (iy+8)
+ set appCurGraphic, (iy+appFlags)
+ bit allowProgTokens, (iy+newDispF)
jr z, p78loc_4A45
ld a, 0AAh ; '�'
ld (indicBusy), a
@@ -1818,7 +1818,7 @@
; ---------------------------------------------------------------------------
p78loc_4B52:
- res 5, (iy+0Dh)
+ res appCurGraphic, (iy+appFlags)
sub a
ld (kbdGetKy), a
ld a, 0F0h ; '�'
@@ -2125,7 +2125,7 @@
cp 1Fh
jp z, ErrUndefined
rst 18h
- bit 0, (iy+3)
+ bit graphDraw, (iy+graphFlags)
call nz, j_Regraph
call PopRealO1
call page0_189
@@ -2339,7 +2339,7 @@
call popErrorHandleR
jp p78loc_4FEF
p78loc_4ED4:
- res 6, (iy+9)
+ res statsValid, (iy+statFlags)
jp JErrorNo
p78loc_4EDB:
cp 2
@@ -2516,7 +2516,7 @@
p78loc_4FEF:
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
ret
; END OF FUNCTION CHUNK FOR p78sub_52FE
@@ -2720,7 +2720,7 @@
pop af
ld (hl), a
call SetGraphDraw
- set 1, (iy+17h)
+ set smarter_test, (iy+smartFlags)
call FPOPREAL
jr p78loc_5160
; ---------------------------------------------------------------------------
@@ -2761,9 +2761,9 @@
p78loc_5153:
jr nz, p78loc_519F
- set 3, (iy+33h)
+ set ignoreBPLink, (iy+hookflags1)
call j_SendVarCmd
- res 3, (iy+33h)
+ res ignoreBPLink, (iy+hookflags1)
p78loc_5160:
jp p78loc_50B0
@@ -2793,13 +2793,13 @@
; ---------------------------------------------------------------------------
jr p78loc_5160
p78loc_5188:
- res 4, (iy+3Ch)
+ res useFastCirc, (iy+plotFlag3)
cp 4
jr nz, p78loc_519D
call CkOP1Real
cp 0Dh
jr nz, p78loc_519F
- set 4, (iy+3Ch)
+ set useFastCirc, (iy+plotFlag3)
jr p78loc_51A3
; ---------------------------------------------------------------------------
@@ -3175,10 +3175,10 @@
call CKENDLINERR
call Bit_VertSplit
ret nz
- res 0, (iy+14h)
- set 1, (iy+14h)
+ res grfSplit, (iy+sGrFlags)
+ set vertSplit, (iy+sGrFlags)
set 2, (iy+15h)
- set 2, (iy+14h)
+ set grfSChanged, (iy+sGrFlags)
call j_SetYOffset
set 6, (iy+1Dh)
set 7, (iy+1Dh)
@@ -3547,46 +3547,46 @@
jr p78loc_5669
p78loc_5655:
call CKENDLINERR
- bit 5, (iy+0Ah)
+ bit fmtReal, (iy+numMode)
ret nz
- set 5, (iy+0Ah)
- res 7, (iy+0Ah)
+ set fmtReal, (iy+numMode)
+ res fmtPolar, (iy+numMode)
p78loc_5665:
- res 6, (iy+0Ah)
+ res fmtRect, (iy+numMode)
p78loc_5669:
jp SetTblGraphDraw
p78loc_566C:
call CKENDLINERR
- bit 7, (iy+0Ah)
+ bit fmtPolar, (iy+numMode)
ret nz
- set 7, (iy+0Ah)
- res 5, (iy+0Ah)
+ set fmtPolar, (iy+numMode)
+ res fmtReal, (iy+numMode)
jr p78loc_5665
p78loc_567E:
call CKENDLINERR
- bit 6, (iy+0Ah)
+ bit fmtRect, (iy+numMode)
ret nz
- set 6, (iy+0Ah)
- res 5, (iy+0Ah)
- res 7, (iy+0Ah)
+ set fmtRect, (iy+numMode)
+ res fmtReal, (iy+numMode)
+ res fmtPolar, (iy+numMode)
jr p78loc_5669
p78loc_5694:
call CKENDLINERR
- res 0, (iy+18h)
+ res grfExpr, (iy+traceFlags)
ret
p78loc_569C:
call CKENDLINERR
- set 0, (iy+18h)
+ set grfExpr, (iy+traceFlags)
ret
p78loc_56A4:
call CKENDLINERR
- set 0, (iy+1Ah)
+ set statDiagnosticsOn, (iy+statFlags2)
ret
p78loc_56AC:
call CKENDLINERR
- res 0, (iy+1Ah)
+ res statDiagnosticsOn, (iy+statFlags2)
ret
p78loc_56B4:
call p78sub_56C2
@@ -3633,7 +3633,7 @@
jr nz, p78loc_56FA
cp 16h
jp z, Page0Call_24B5
- bit 1, (iy+8)
+ bit allowProgTokens, (iy+newDispF)
jp nz, ErrInvalid
p78loc_56FA:
@@ -3928,7 +3928,7 @@
PLOTPARS:
ld a, 8
- bit 6, (iy+35h)
+ bit regraphHookActive, (iy+hookflags3)
call nz, j_RunGraphingHook
ret nz
ld hl, 0
@@ -3953,7 +3953,7 @@
jp z, ErrInvalid
jr p78loc_58F8
p78loc_58E7:
- res 5, (iy+14h)
+ res g_style_active, (iy+sGrFlags)
and 7Fh ; ''
cp 8
jr nc, p78loc_5902
@@ -3964,7 +3964,7 @@
p78loc_58F8:
ld hl, OP1
set 5, (hl)
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
ret
; ---------------------------------------------------------------------------
@@ -4032,7 +4032,7 @@
xor a
ld (EST), a
call InitPFlgs
- res 3, (iy+1Fh)
+ res splitOverride, (iy+graphFlags2)
PARSEOFF:
call p78sub_5AC8
@@ -4054,7 +4054,7 @@
p78loc_595E:
res 3, (iy+1Ah)
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
ld a, 0
call PUSHOPER
ld hl, 1
@@ -4376,7 +4376,7 @@
p78loc_5B77:
; ParseInpGraphReset+215j ...
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
jp p78loc_5971
; ---------------------------------------------------------------------------
@@ -4410,7 +4410,7 @@
p78loc_5BAF:
; ParseInpGraphReset+29Bj ...
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
jp p78loc_684A
; ---------------------------------------------------------------------------
@@ -5075,7 +5075,7 @@
; START OF FUNCTION CHUNK FOR ParseInpGraphReset
p78loc_5F4A:
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
call CkOP1Real
jr z, p78loc_5F74
cp 4
@@ -5127,11 +5127,11 @@
pop hl
call CKENDLIN
jp nz, ErrSyntax
- bit 1, (iy+8)
+ bit allowProgTokens, (iy+newDispF)
jr nz, p78loc_5FAC
- set 1, (iy+8)
+ set allowProgTokens, (iy+newDispF)
call ParseInpGraph
- res 1, (iy+8)
+ res allowProgTokens, (iy+newDispF)
jr p78loc_5FAF
; ---------------------------------------------------------------------------
@@ -5232,7 +5232,7 @@
GETSTATPTR:
- bit 6, (iy+9)
+ bit statsValid, (iy+statFlags)
jr z, p78loc_604A
CMP_STATPTR:
@@ -5399,7 +5399,7 @@
call StoOther
bit 5, (iy+7)
ret nz
- bit 2, (iy+2)
+ bit plotDisp, (iy+plotFlags)
ret nz
bit 1, (iy+3)
ret nz
@@ -6517,7 +6517,7 @@
jr nz, p78loc_672F
call Bit_VertSplit
jr z, p78loc_6784
- bit 3, (iy+1Fh)
+ bit splitOverride, (iy+graphFlags2)
jr z, p78loc_6784
jr p78loc_673B
; ---------------------------------------------------------------------------
@@ -6634,7 +6634,7 @@
jp z, ErrSyntax
ld hl, 1
call p78sub_6984
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
jr p78loc_684A
; ---------------------------------------------------------------------------
@@ -6719,7 +6719,7 @@
call PUSHOPER
p78loc_685A:
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
jr p78loc_684A
; ---------------------------------------------------------------------------
@@ -6844,7 +6844,7 @@
call PushOP1
p78loc_68D0:
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
pop af
jp PUSHOPER
; ---------------------------------------------------------------------------
@@ -7131,7 +7131,7 @@
jp nz, ErrDimension
bit 7, (iy+6)
jp z, ErrSyntax
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
ld a, 7
jr p78loc_6A82
; ---------------------------------------------------------------------------
@@ -7150,7 +7150,7 @@
ld a, 7
p78loc_6A7E:
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
p78loc_6A82:
ld hl, 1
@@ -7229,7 +7229,7 @@
rlc d
call nz, CKENDLINERR
call p78sub_6B2B
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
ld hl, 1
ld (numArguments), hl
jp POPOPER
@@ -7702,7 +7702,7 @@
p78sub_6D98:
; ParseInpGraphReset+27Dp ...
- bit 1, (iy+8)
+ bit allowProgTokens, (iy+newDispF)
jp z, ErrInvalid
ret
; End of function p78sub_6D98
@@ -9736,12 +9736,12 @@
Page78_2E47:
ld a, 3
- bit 4, (iy+34h)
+ bit homescreenHookActive, (iy+hookflags2)
call nz, Page0Call_2D51
ret nz
bit 2, (iy+29h)
call nz, j_AppSetup
- res 3, (iy+33h)
+ res ignoreBPLink, (iy+hookflags1)
ld a, (iy+3Ch)
and 0F4h ; '�'
ld (iy+3Ch), a
@@ -9772,13 +9772,13 @@
call j_DeleteTempPrograms
call p78sub_7D37
p78loc_7716:
- res 5, (iy+25h)
- res 1, (iy+8)
+ res nocxPutAway, (iy+contextFlags)
+ res allowProgTokens, (iy+newDispF)
res 6, (iy+15h)
res 2, (iy+1Fh)
res 7, (iy+9)
call RESETWINTOP
- res 4, (iy+1)
+ res monAbandon, (iy+monFlags)
call p78sub_7EF2
ld hl, 800h
call CheckSplitFlag
@@ -9828,12 +9828,12 @@
; ---------------------------------------------------------------------------
p78loc_77A6:
- res 4, (iy+1)
+ res monAbandon, (iy+monFlags)
res 7, (iy+0Ch)
call RESETWINTOP
call j_ClrWindow
call Page78_3E9D
- res 5, (iy+0Ch)
+ res cmdVirgin, (iy+cmdFlags)
ld hl, basic_prog
rst 20h
call CkOP1Real
@@ -9927,7 +9927,7 @@
p78loc_7852:
ld b, a
ld a, 1
- bit 4, (iy+34h)
+ bit homescreenHookActive, (iy+hookflags2)
call nz, Page0Call_2D51
ret nz
ld a, b
@@ -10036,21 +10036,21 @@
sub a
ld (kbdGetKy), a
set 6, (iy+0Ch)
- set 5, (iy+0)
+ set donePrgm, (iy+doneFlags)
call p78loc_7B21
ei
ld a, 2
- bit 4, (iy+34h)
+ bit homescreenHookActive, (iy+hookflags2)
call nz, Page0Call_2D51
call z, ParseInpLastEnt
res 6, (iy+0Ch)
call j_CleanAll
call j_DeleteTempPrograms
ld a, 0
- bit 4, (iy+34h)
+ bit homescreenHookActive, (iy+hookflags2)
call nz, Page0Call_2D51
jr nz, p78loc_7961
- bit 2, (iy+2)
+ bit plotDisp, (iy+plotFlags)
jr z, p78loc_7949
call Page78_3E9D
ld a, 44h ; 'D'
@@ -10069,7 +10069,7 @@
p78loc_7953:
bit 7, (iy+9)
jp nz, Page78_344D
- bit 5, (iy+0)
+ bit donePrgm, (iy+doneFlags)
call nz, j_DispDone
p78loc_7961:
@@ -10087,7 +10087,7 @@
call RESETWINTOP
p78loc_797B:
- bit 3, (iy+1)
+ bit AnsScroll, (iy+ansFlags)
jr z, p78loc_79A1
cp 2
jr nz, p78loc_7989
@@ -10150,7 +10150,7 @@
jr nz, p78loc_79E3
p78loc_79D8:
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call j_BufDelete
call j_DispEOW
ret
@@ -10162,7 +10162,7 @@
call IsEditEmpty
jr nz, p78loc_79F5
call j_ClrWindow
- res 3, (iy+1)
+ res AnsScroll, (iy+ansFlags)
jr p78loc_79FB
; ---------------------------------------------------------------------------
@@ -10172,7 +10172,7 @@
p78loc_79FB:
call j_BufClear
- set 5, (iy+0Ch)
+ set cmdVirgin, (iy+cmdFlags)
jp CanAlphIns
; ---------------------------------------------------------------------------
@@ -10182,13 +10182,13 @@
cp 0Dh
jp nz, p78loc_7A3B
call j_DispHead
- res 3, (iy+1)
- set 5, (iy+0Ch)
+ res AnsScroll, (iy+ansFlags)
+ set cmdVirgin, (iy+cmdFlags)
call CanAlphIns
call GETLASTENTRY
call j_RCLENTRYTOEDIT
jr c, p78loc_7A32
- res 5, (iy+0Ch)
+ res cmdVirgin, (iy+cmdFlags)
call j_BufToTop
call j_DispTail
jp j_EraseEOW
@@ -10203,15 +10203,15 @@
p78loc_7A3B:
cp 5Ah ; 'Z'
ret c
- res 3, (iy+1)
- bit 5, (iy+0Ch)
+ res AnsScroll, (iy+ansFlags)
+ bit cmdVirgin, (iy+cmdFlags)
jr z, p78loc_7A55
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, p78loc_7A51
call Page0Call_30B7
p78loc_7A51:
- res 5, (iy+0Ch)
+ res cmdVirgin, (iy+cmdFlags)
p78loc_7A55:
call page0_1808
@@ -10219,7 +10219,7 @@
jp j_InsDisp
p78loc_7A5E:
call j_saveCmdShadow
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr z, p78loc_7A77
ld hl, (editCursor)
ld de, (editTop)
@@ -10244,12 +10244,12 @@
ld (numLastEntries+1), a
ret
p78loc_7A99:
- res 5, (iy+0Dh)
+ res appCurGraphic, (iy+appFlags)
call RESETWINTOP
call p78sub_7EF2
call j_ClrWindow
call Page78_3E9D
- res 5, (iy+0Ch)
+ res cmdVirgin, (iy+cmdFlags)
call page0_1664
call FINDPROGSYM
call j_rclVarToEditPtR
@@ -10268,7 +10268,7 @@
p78loc_7ACC:
call j_scrollUp
- bit 3, (iy+1)
+ bit AnsScroll, (iy+ansFlags)
call nz, j_formScrollUp
dec (hl)
djnz p78loc_7ACC
@@ -10310,8 +10310,8 @@
res 0, (iy+9)
p78loc_7B21:
- set 5, (iy+0Ch)
- res 4, (iy+5)
+ set cmdVirgin, (iy+cmdFlags)
+ res textInsMode, (iy+textFlags)
ret
; End of function Page78_3E9D
@@ -10319,7 +10319,7 @@
Page78_344D:
call Page78_3E9D
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
call j_ClrScrn
call p78sub_7D57
ld a, (unk_8A36)
@@ -10365,7 +10365,7 @@
ld hl, p78loc_7BF4
add hl, de
ld a, (hl)
- bit 0, (iy+1Ah)
+ bit statDiagnosticsOn, (iy+statFlags2)
jr nz, p78loc_7B98
call page0_1725
jr nz, p78loc_7B98
@@ -10411,9 +10411,9 @@
inc a
push af
call p78sub_7CE0
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
call j_newline
- set 2, (iy+0Dh)
+ set appAutoScroll, (iy+appFlags)
call Page0Call_3CCF
jr nc, p78loc_7BD1
pop af
@@ -10655,7 +10655,7 @@
call j_PutC
call Page0Call_3279
call p78sub_7D37
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
pop af
call Rcl_StatVar
xor a
@@ -10761,7 +10761,7 @@
ret z
call CanAlphIns
call j_newline
- bit 1, (iy+9)
+ bit parseInput, (iy+onFlags)
jr z, p78loc_7DC3
call j_CloseEditEqu
call p78sub_7EEC
@@ -10850,7 +10850,7 @@
jr nz, p78loc_7E2B
p78loc_7E20:
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call j_BufDelete
call j_DispEOW
ret
@@ -10870,9 +10870,9 @@
; ---------------------------------------------------------------------------
p78loc_7E3F:
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
call j_DispHead
- bit 2, (iy+5)
+ bit textScrolled, (iy+textFlags)
jr nz, p78loc_7E34
call j_EraseEOW2
@@ -10884,7 +10884,7 @@
p78loc_7E55:
cp 0Ch
jp z, j_RCLREGEQ_CALL
- bit 7, (iy+0Eh)
+ bit enableQueue, (iy+rclFlag)
jr nz, p78loc_7E63
cp 8Ah ; '�'
ret z
@@ -11013,7 +11013,7 @@
GetStringInput:
- res 1, (iy+9)
+ res parseInput, (iy+onFlags)
jr p78loc_7F04
; End of function GetStringInput
@@ -11022,7 +11022,7 @@
GetStringInput2:
- set 1, (iy+9)
+ set parseInput, (iy+onFlags)
p78loc_7F04:
ld a, (unk_9653)
@@ -11031,7 +11031,7 @@
ld a, 50h ; 'P'
call newContext
call Mon
- set 5, (iy+0)
+ set donePrgm, (iy+doneFlags)
call PushOP1
call j_EraseEOW2
set 1, (iy+29h)
@@ -11048,8 +11048,8 @@
Page78_3837:
call j_ClrWindow
- res 2, (iy+2)
- set 5, (iy+0)
+ res plotDisp, (iy+plotFlags)
+ set donePrgm, (iy+doneFlags)
ret
; End of function Page78_3837
@@ -11058,13 +11058,13 @@
Disp:
- set 2, (iy+0Dh)
- bit 2, (iy+2)
+ set appAutoScroll, (iy+appFlags)
+ bit plotDisp, (iy+plotFlags)
ret z
sub a
ld (curGStyle), a
res 0, (iy+2)
- res 5, (iy+0Dh)
+ res appCurGraphic, (iy+appFlags)
call j_saveShadow2
call j_rstrShadow2
set 6, (iy+1Dh)
@@ -11077,7 +11077,7 @@
p78sub_7F5E:
- set 5, (iy+0)
+ set donePrgm, (iy+doneFlags)
call Disp
call j_formDisp
call j_disarmScroll
@@ -11103,10 +11103,10 @@
; WaitEnterKeyValue+42j
sub a
ld (kbdGetKy), a
- bit 1, (iy+15h)
+ bit saIndic, (iy+newIndicFlags)
jr z, p78loc_7F8E
call j_restoreTR
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
p78loc_7F8E:
ld a, 0F0h ; '�'
@@ -11119,7 +11119,7 @@
WaitEnterKeyValue:
- set 5, (iy+0)
+ set donePrgm, (iy+doneFlags)
call Disp
call j_formDisp
ld a, 0AAh ; '�'
--- a/source/page79/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page79/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -307,11 +307,11 @@
p79loc_41B9:
ld (contrast), a
call j_LCD_DRIVERON
- set 3, (iy+9)
+ set onRunning, (iy+onFlags)
call ApdSetup
- set 2, (iy+8)
- set 5, (iy+0Ah)
- set 1, (iy+0Dh)
+ set apdAble, (iy+apdFlags)
+ set fmtReal, (iy+numMode)
+ set appTextSave, (iy+appFlags)
ld a, 0FFh
ld (fmtDigits), a
call p79sub_42B3
@@ -406,12 +406,12 @@
in a, (4)
and 8
jr z, p79loc_428F
- res 4, (iy+9)
+ res onInterrupt, (iy+onFlags)
ld a, 0Bh
out (3), a
call j_LCD_DRIVERON
- res 0, (iy+16h)
- set 2, (iy+16h)
+ res secondTimerEnabled, (iy+interruptFlags)
+ set batteriesGood, (iy+batteryFlags)
ei
ld hl, 800h
ld (winTop), hl
@@ -450,12 +450,12 @@
Page79_3ED9:
call page0_B76
call j_ClrScrn
- res 4, (iy+9)
- set 3, (iy+9)
+ res onInterrupt, (iy+onFlags)
+ set onRunning, (iy+onFlags)
call ApdSetup
- set 2, (iy+8)
- set 5, (iy+0Ah)
- set 1, (iy+0Dh)
+ set apdAble, (iy+apdFlags)
+ set fmtReal, (iy+numMode)
+ set appTextSave, (iy+appFlags)
ret
; End of function Page79_3ED9
@@ -464,7 +464,7 @@
Page79_3F8D:
ld a, 76h ; 'v'
out (4), a
- bit 2, (iy+16h)
+ bit batteriesGood, (iy+batteryFlags)
ret nz
pop hl
pop hl
@@ -472,13 +472,13 @@
call lcd_busy
ld a, 2
out (10h), a
- res 0, (iy+16h)
+ res secondTimerEnabled, (iy+interruptFlags)
ld hl, 0A55Ah
ld (unk_85BE), hl
ld a, 1
out (3), a
- res 3, (iy+12h)
- res 3, (iy+9)
+ res shift2nd, (iy+shiftFlags)
+ res onRunning, (iy+onFlags)
res 7, (iy+0Fh)
ld a, 36h ; '6'
out (4), a
@@ -496,12 +496,12 @@
call j_HomeUp
call j_newline
call j_newline
- res 1, (iy+0Dh)
- bit 1, (iy+35h)
+ res appTextSave, (iy+appFlags)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p79loc_4359
ld a, 40h ; '@'
call j_call_character_hook
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
ret z
p79loc_4359:
@@ -524,7 +524,7 @@
call IsEditEmpty
jr nz, p79loc_438C
call j_ClrWindow
- res 3, (iy+1)
+ res AnsScroll, (iy+ansFlags)
jr p79loc_4392
; ---------------------------------------------------------------------------
@@ -534,9 +534,9 @@
p79loc_4392:
call j_BufClear
- set 5, (iy+0Ch)
- res 1, (iy+0Dh)
- bit 1, (iy+35h)
+ set cmdVirgin, (iy+cmdFlags)
+ res appTextSave, (iy+appFlags)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p79loc_43AA
ld a, 41h ; 'A'
call j_call_character_hook
@@ -558,11 +558,11 @@
p79loc_43C8:
; p79sub_4516-11Ej
ld (curRow), de
- res 1, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
call p79sub_43FE
p79loc_43D3:
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
call j_HomeUp
call j_CursorOn
jp page0_A26
@@ -581,7 +581,7 @@
; START OF FUNCTION CHUNK FOR p79sub_4516
p79loc_43EC:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr nz, p79loc_43C8
ld de, 205h
@@ -752,7 +752,7 @@
call RandInit
call forcecmd
- set 5, (iy+0Ah)
+ set fmtReal, (iy+numMode)
call Page79_3ED9
call Page0Call_3EC1
ld hl, p79loc_442F
@@ -772,13 +772,13 @@
jp z, p79loc_45F3
cp 4
jr z, p79loc_458C
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jp z, resetRam
ld hl, (localLanguage)
push hl
- bit 6, (iy+34h)
- push af
- bit 0, (iy+35h)
+ bit catalog2HookActive, (iy+hookflags2)
+ push af
+ bit tokenHookActive, (iy+hookflags3)
push af
di
ld hl, ramStart
@@ -788,15 +788,15 @@
ldir
pop af
jr z, p79loc_456D
- set 0, (iy+35h)
+ set tokenHookActive, (iy+hookflags3)
p79loc_456D:
pop af
jr z, p79loc_4574
- set 6, (iy+34h)
+ set catalog2HookActive, (iy+hookflags2)
p79loc_4574:
- set 1, (iy+35h)
+ set localizeHookActive, (iy+hookflags3)
pop hl
ld (localLanguage), hl
ld hl, silentLinkHookPtr
@@ -825,7 +825,7 @@
call Page0Call_2D39
ld hl, aArcVarsCleared
ld a, 55h ; 'U'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
p79loc_45BC:
@@ -837,9 +837,9 @@
pop hl
ld de, 5
ld (curRow), de
- res 1, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
call j_PutS
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
call j_HomeUp
call j_CursorOn
jp page0_A26
@@ -864,7 +864,7 @@
Page79_3A5F:
call page0_BB1
- res 0, (iy+15h)
+ res extraIndic, (iy+newIndicFlags)
res 6, (iy+24h)
res 7, (iy+24h)
res 5, (iy+24h)
@@ -872,19 +872,19 @@
ld (unk_9C87), a
push iy
ld iy, flags
- res 0, (iy+12h)
+ res indicRun, (iy+indicFlags)
ld a, 20h ; ' '
ld (iy+0Ah), a
ld a, 0FFh
ld (fmtDigits), a
- res 2, (iy+0)
- res 0, (iy+14h)
- res 1, (iy+14h)
+ res trigDeg, (iy+trigFlags)
+ res grfSplit, (iy+sGrFlags)
+ res vertSplit, (iy+sGrFlags)
ld a, (iy+4)
and 80h ; '�'
ld (iy+4), a
- res 0, (iy+18h)
- res 0, (iy+1Ah)
+ res grfExpr, (iy+traceFlags)
+ res statDiagnosticsOn, (iy+statFlags2)
pop iy
ld a, 10h
ld b, 4
@@ -897,7 +897,7 @@
pop af
sla a
jr nc, p79loc_4652
- set 4, (iy+2)
+ set grfFuncM, (iy+grfModeFlags)
ld b, 0
call j_SetAllPlots
call p79sub_418D
@@ -2405,10 +2405,10 @@
p79loc_4FA3:
jp z, p79loc_5024
- bit 1, (iy+15h)
+ bit saIndic, (iy+newIndicFlags)
jr z, p79loc_4FB3
call j_restoreTR
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
; START OF FUNCTION CHUNK FOR p79sub_5695
p79loc_4FB3:
@@ -2431,10 +2431,10 @@
ld (progToEdit), a
call ZIfMatrixMenu
jr c, p79loc_4FF2
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
call SaveSavedFlags
call j_POPCX
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
pop af
call page0_3A4
call p79sub_5087
@@ -2461,12 +2461,12 @@
ld (winTop), a
call BackUpGraphSettings
call notalphnum
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
p79loc_5015:
; LoadMenuNumL+Aj
call BCALL_5062
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
call p79sub_52B8
call p79sub_4EF3
jr z, p79loc_5026
@@ -2573,13 +2573,13 @@
sub 2Ah ; '*'
cp 11h
jr nz, p79loc_50A3
- bit 4, (iy+2)
+ bit grfFuncM, (iy+grfModeFlags)
jr nz, p79loc_50A3
add a, 28h ; '('
- bit 6, (iy+2)
+ bit grfParamM, (iy+grfModeFlags)
jr nz, p79loc_50A3
inc a
- bit 5, (iy+2)
+ bit grfPolarM, (iy+grfModeFlags)
jr nz, p79loc_50A3
inc a
@@ -2808,8 +2808,8 @@
push af
call ZIfMatrixMenu
jr c, p79loc_51FA
- res 1, (iy+15h)
- bit 0, (iy+14h)
+ res saIndic, (iy+newIndicFlags)
+ bit grfSplit, (iy+sGrFlags)
jr z, p79loc_51F1
ld a, 4
ld (winTop), a
@@ -3055,9 +3055,9 @@
xor a
ld (unk_8493), a
ld hl, OP2
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
call j_PutS
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
ret
; ---------------------------------------------------------------------------
@@ -3067,7 +3067,7 @@
jr nz, p79loc_5361
ld hl, aRamFree
ld a, 3
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_putsm
ld a, 0Bh
@@ -3078,7 +3078,7 @@
ld (curRow), hl
ld hl, aArcFree
ld a, 4
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_putsm
ld a, 0Ah
@@ -3103,7 +3103,7 @@
ld a, (unk_85DF)
cp c
jr nz, p79loc_5375
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
p79loc_5375:
push hl
@@ -3115,7 +3115,7 @@
call Page0Call_3BAF
p79loc_5385:
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
pop hl
inc c
ld a, (unk_85E1)
@@ -3208,7 +3208,7 @@
p79sub_53E3:
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
p79loc_53E7:
ld b, 31h ; '1'
@@ -3295,7 +3295,7 @@
p79loc_5455:
call j_PutC
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
ret
; End of function p79sub_53E3
@@ -4062,10 +4062,10 @@
p79sub_58AA:
- bit 1, (iy+15h)
+ bit saIndic, (iy+newIndicFlags)
ret z
call j_restoreTR
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
ret
; End of function p79sub_58AA
@@ -4086,7 +4086,7 @@
p79loc_58C5:
ld hl, MenuCurrent
ld (hl), 0
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
push af
bit 5, (iy+16h)
jr z, p79loc_58DE
@@ -4163,7 +4163,7 @@
ld (winTop), a
call j_ClrLCDFull
call j_GrBufCpy
- res 2, (iy+2)
+ res plotDisp, (iy+plotFlags)
jp p79loc_5A3B
; ---------------------------------------------------------------------------
@@ -4171,7 +4171,7 @@
ld a, (mcxCurApp)
cp 48h ; 'H'
jr nz, p79loc_5982
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr nz, p79loc_5982
pop af
push af
@@ -4356,7 +4356,7 @@
p79loc_5A99:
res 0, (iy+2)
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
jr z, p79loc_5AAE
p79loc_5AA3:
@@ -4388,7 +4388,7 @@
jr c, p79loc_5AEA
p79loc_5ACB:
- bit 0, (iy+11h)
+ bit promptEdit, (iy+promptFlags)
jr nz, p79loc_5AEA
bit 2, (iy+17h)
jr nz, p79loc_5AEA
@@ -4604,13 +4604,13 @@
notalphnum:
- res 1, (iy+0Dh)
- res 5, (iy+0Dh)
- res 2, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
+ res appCurGraphic, (iy+appFlags)
+ res appAutoScroll, (iy+appFlags)
sub a
ld (curGStyle), a
- res 2, (iy+3)
- res 3, (iy+0Ch)
+ res graphCursor, (iy+graphFlags)
+ res curOn, (iy+curFlags)
ret
; End of function notalphnum
@@ -4749,14 +4749,14 @@
jr z, p79loc_5D09
cp 4Ah ; 'J'
jr z, p79loc_5CD1
- bit 1, (iy+14h)
+ bit vertSplit, (iy+sGrFlags)
ret z
cp 44h ; 'D'
ret nz
p79loc_5CD1:
; SetMenuFlags+85j
- bit 1, (iy+14h)
+ bit vertSplit, (iy+sGrFlags)
jr z, p79loc_5CE5
call j_GrBufCpy
ld hl, (curRow)
@@ -4768,16 +4768,16 @@
p79loc_5CE5:
call Page0Call_324F
call j_dispTblbody
- bit 1, (iy+14h)
+ bit vertSplit, (iy+sGrFlags)
jr z, p79loc_5CF8
- bit 2, (iy+1)
+ bit editOpen, (iy+editFlags)
call z, j_dispTblBot
p79loc_5CF8:
call Page0Call_3195
call j_ZifRclHandler
call z, j_rstrCurRow
- bit 0, (iy+11h)
+ bit promptEdit, (iy+promptFlags)
call nz, j_rstrCurRow
ret
; ---------------------------------------------------------------------------
@@ -5671,11 +5671,11 @@
ld (curRow), hl
ld hl, aSelect
ld a, 5
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
call j_PutS
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
pop hl
ld (curRow), hl
ret
@@ -5693,7 +5693,7 @@
ld hl, saveSScreen
ld a, (iy+14h)
push af
- res 1, (iy+14h)
+ res vertSplit, (iy+sGrFlags)
call j_RestoreDisp
pop af
ld (iy+14h), a
@@ -5713,12 +5713,12 @@
push de
push hl
push ix
- bit 1, (iy+15h)
+ bit saIndic, (iy+newIndicFlags)
jr z, p79loc_6133
- bit 3, (iy+12h)
+ bit shift2nd, (iy+shiftFlags)
jr z, p79loc_6133
call j_restoreTR
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
p79loc_6133:
ld hl, saveSScreen
@@ -7525,7 +7525,7 @@
; =============== S U B R O U T I N E =======================================
p79sub_6853:
- set 4, (iy+1)
+ set monAbandon, (iy+monFlags)
ret
; End of function p79sub_6853
@@ -7566,10 +7566,10 @@
PrevContext:
call ZIfMatrixMenu
ret c
- res 1, (iy+15h)
+ res saIndic, (iy+newIndicFlags)
call SaveSavedFlags
call j_POPCX
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
ret
; =============== S U B R O U T I N E =======================================
@@ -7760,8 +7760,8 @@
p79loc_6943:
call j_SetNorm_Vals
- res 0, (iy+14h)
- res 1, (iy+14h)
+ res grfSplit, (iy+sGrFlags)
+ res vertSplit, (iy+sGrFlags)
jp SetTblGraphDraw
; =============== S U B R O U T I N E =======================================
@@ -7896,16 +7896,16 @@
ld (winTop), a
ld (varClass), a
ld (sndRecState), a
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
call j_DeselectAllVars
ld hl, p79loc_6EC0
call AppInit
- set 1, (iy+26h)
+ set inGroup, (iy+groupFlags)
res 4, (iy+26h)
res 6, (iy+26h)
p79loc_69EE:
- res 0, (iy+0)
+ res inDelete, (iy+ioDelFlag)
call p79sub_7282
call FindGroupSym
jp c, p79loc_6D4E
@@ -7966,7 +7966,7 @@
ld (curRow), hl
ld hl, aUngrouping
ld a, 66h ; 'f'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
ld hl, 1
@@ -8202,7 +8202,7 @@
call j_moveDown
ld hl, (curRow)
ld (unk_8398), hl
- res 1, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
call j_saveShadow2
ld de, (unk_83F3)
ld hl, (unk_83F1)
@@ -8337,8 +8337,8 @@
jp nz, p79loc_6AA0
p79loc_6D4E:
- res 1, (iy+26h)
- set 4, (iy+0Ch)
+ res inGroup, (iy+groupFlags)
+ set curLock, (iy+curFlags)
jp Page0Call_2CD9
; ---------------------------------------------------------------------------
@@ -8405,7 +8405,7 @@
xor a
ld (basic_prog), a
ld a, (basic_prog)
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
ld hl, p79loc_6DE3
ld de, OP3
call Mov8B
@@ -8416,17 +8416,17 @@
; ---------------------------------------------------------------------------
Page79_30C9:
- res 0, (iy+11h)
+ res promptEdit, (iy+promptFlags)
call PushRealO1
ld hl, p79loc_6EAE
call AppInit
call j_DeselectAllVars
xor a
ld (varClass), a
- set 1, (iy+0Dh)
- set 4, (iy+0Ch)
- res 0, (iy+0)
- set 3, (iy+14h)
+ set appTextSave, (iy+appFlags)
+ set curLock, (iy+curFlags)
+ res inDelete, (iy+ioDelFlag)
+ set grfSplitOverride, (iy+sGrFlags)
call RESETWINTOP
p79loc_6E10:
@@ -8509,7 +8509,7 @@
p79loc_6E60:
ld (varType), a
call p79sub_6E29
- set 1, (iy+26h)
+ set inGroup, (iy+groupFlags)
ld a, 0FFh
ld (varCurrent), a
call j_ClrScrn
@@ -8518,15 +8518,15 @@
ld (ioFlag), a
call j_ClrWindow
ld hl, aSelect
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
ld a, 5
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
ld hl, aDone_0
ld a, 67h ; 'g'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
ld a, 1
@@ -8545,7 +8545,7 @@
.dw p79loc_6EF2
.db 12h
p79loc_6EBB:
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
ret
p79loc_6EC0:
.dw p79loc_6EF3
@@ -8561,17 +8561,17 @@
p79sub_6ECD:
p79loc_6ECD:
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
xor a
ld (MenuCurrent), a
ld (unk_984B), a
- res 1, (iy+26h)
- res 2, (iy+26h)
+ res inGroup, (iy+groupFlags)
+ res noCompletionByte, (iy+groupFlags)
res 6, (iy+26h)
- res 2, (iy+12h)
+ res indicOnly, (iy+indicFlags)
call resetStacks
call j_DeselectAllVars
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
p79loc_6EF2:
ret
p79loc_6EF3:
@@ -8647,7 +8647,7 @@
; ---------------------------------------------------------------------------
p79loc_6F78:
- set 2, (iy+26h)
+ set noCompletionByte, (iy+groupFlags)
call j_ArcChk
ld hl, 0
ld (unk_83F9), hl
@@ -8701,7 +8701,7 @@
ld a, h
or l
jp z, p79loc_70C1
- set 0, (iy+24h)
+ set checkBatteryLevelFirst, (iy+arcFlag)
ld bc, (unk_83F9)
call Page0Call_2EB3
call c, Page0Call_2ED7
@@ -8714,19 +8714,19 @@
push hl
ld hl, aCopying
ld a, 68h ; 'h'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
call j_newline
ld hl, aVariablesTo
ld a, 69h ; 'i'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
call j_newline
ld hl, aGroup
ld a, 6Ah ; 'j'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
call j_newline
@@ -8750,9 +8750,9 @@
dec hl
dec hl
ld (unk_83F9), hl
- set 5, (iy+26h)
+ set writeSizeBytesOnly, (iy+groupFlags)
call Page0Call_2EAD
- res 5, (iy+26h)
+ res writeSizeBytesOnly, (iy+groupFlags)
ld a, (arcInfo)
ld (arcPage), a
ld hl, (unk_83EF)
@@ -8769,14 +8769,14 @@
ld hl, (arcPtr)
ld (unk_83EF), hl
call p79sub_723B
- res 2, (iy+12h)
- res 2, (iy+26h)
+ res indicOnly, (iy+indicFlags)
+ res noCompletionByte, (iy+groupFlags)
res 0, (iy+9)
pop hl
call Page0Call_2CF7
p79loc_70A3:
- res 1, (iy+26h)
+ res inGroup, (iy+groupFlags)
call j_moveDown
call j_DispDone
ei
@@ -8796,7 +8796,7 @@
pop hl
ld hl, aTooFewVars
ld a, 7Bh ; '{'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
jr p79loc_70A3
@@ -9076,7 +9076,7 @@
ret c
bit 7, (hl)
jr z, p79loc_725B
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
push hl
call Page0Call_2DC9
pop hl
@@ -9092,7 +9092,7 @@
p79sub_7274:
call j_rstrShadow2
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
ld hl, ioErrState
ld a, (hl)
ld (hl), 0
@@ -9147,9 +9147,9 @@
ld (winTop), a
ld (varClass), a
ld (sndRecState), a
- set 3, (iy+14h)
+ set grfSplitOverride, (iy+sGrFlags)
call j_DeselectAllVars
- set 1, (iy+26h)
+ set inGroup, (iy+groupFlags)
res 4, (iy+26h)
set 6, (iy+26h)
jp p79loc_69EE
@@ -9161,13 +9161,13 @@
call DelVarArc
p79loc_72DC:
- res 0, (iy+11h)
+ res promptEdit, (iy+promptFlags)
call PushRealO1
xor a
ld (varClass), a
- set 4, (iy+0Ch)
- res 0, (iy+0)
- set 3, (iy+14h)
+ set curLock, (iy+curFlags)
+ res inDelete, (iy+ioDelFlag)
+ set grfSplitOverride, (iy+sGrFlags)
call RESETWINTOP
ld a, 5
ld (varType), a
@@ -9177,7 +9177,7 @@
ld (basic_prog), a
ld a, 9
ld (varClass), a
- set 1, (iy+26h)
+ set inGroup, (iy+groupFlags)
call Page0Call_2CE5
jp p79loc_6F78
; ---------------------------------------------------------------------------
--- a/source/page7A/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page7A/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -2471,7 +2471,7 @@
p7Asub_5186:
- set 6, (iy+9)
+ set statsValid, (iy+statFlags)
set 7, (iy+9)
ld (unk_8A36), a
ret
@@ -4427,7 +4427,7 @@
call pushErrorHandleR
call p7Asub_5E0E
call popErrorHandleR
- set 0, (iy+7)
+ set numOP1, (iy+ParsFlag2)
ld hl, OP1
res 5, (hl)
@@ -4473,7 +4473,7 @@
and 7Fh ; ''
cp 4
jp nz, JErrorNo
- res 0, (iy+7)
+ res numOP1, (iy+ParsFlag2)
ld hl, OP1
set 5, (hl)
jr p7Aloc_5DB2
@@ -4815,8 +4815,8 @@
cp a
call p7Asub_5D47
call j_setPenX
- set 7, (iy+14h)
- set 1, (iy+5)
+ set textWrite, (iy+sGrFlags)
+ set textEraseBelow, (iy+textFlags)
ld a, 0D9h ; '�'
call j_VPutMap
ld a, 12h
@@ -5735,7 +5735,7 @@
p7Asub_6703:
- set 6, (iy+9)
+ set statsValid, (iy+statFlags)
ret
; End of function p7Asub_6703
@@ -7739,7 +7739,7 @@
ret nz
res 3, (iy+16h)
res 4, (iy+16h)
- res 6, (iy+14h)
+ res cmp_mod_box, (iy+sGrFlags)
call ORDSTAT
call ZeroOP1
ld a, 26h ; '&'
@@ -7990,7 +7990,7 @@
push bc
call CpyO1ToFPS5
pop bc
- bit 6, (iy+14h)
+ bit cmp_mod_box, (iy+sGrFlags)
ret z
push bc
call CpyTo1FPS1
@@ -8689,7 +8689,7 @@
INITSTATANS2:
push bc
ld hl, p7Aloc_7E49-2
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p7Aloc_7AED
ld b, a
ld a, 47h ; 'G'
@@ -9135,7 +9135,7 @@
ld hl, p7Aloc_7DAD
jr nz, p7Aloc_7E26
ld a, 45h ; 'E'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
jr p7Aloc_7E32
; ---------------------------------------------------------------------------
@@ -9143,7 +9143,7 @@
p7Aloc_7E26:
ld hl, p7Aloc_7DCB
ld a, 46h ; 'F'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
p7Aloc_7E32:
--- a/source/page7B/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page7B/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -11,17 +11,17 @@
.db 0Ah
AppGetCbl:
- set 1, (iy+1Bh)
- res 2, (iy+1Bh)
+ set IDis95h, (iy+linkFlags)
+ res IDis82h, (iy+linkFlags)
ld a, (OP1+1)
cp 5Dh ; ']'
jr z, p7Bloc_5117
- res 1, (iy+1Bh)
- set 2, (iy+1Bh)
+ res IDis95h, (iy+linkFlags)
+ set IDis82h, (iy+linkFlags)
p7Bloc_5117:
di
- res 0, (iy+16h)
+ res secondTimerEnabled, (iy+interruptFlags)
ld a, 15h
ld (sndRecState), a
call j_GETVARCMD
@@ -147,10 +147,10 @@
p7Bsub_51E6:
- set 1, (iy+0Dh)
- res 2, (iy+0Dh)
- res 4, (iy+5)
- res 3, (iy+5)
+ set appTextSave, (iy+appFlags)
+ res appAutoScroll, (iy+appFlags)
+ res textInsMode, (iy+textFlags)
+ res textInverse, (iy+textFlags)
xor a
ld (winLeft), a
ld a, 8
@@ -378,12 +378,12 @@
; ---------------------------------------------------------------------------
p7Bloc_5300:
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
p7Bloc_5304:
bit 0, (iy+2Eh)
call z, j_putpsb
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
pop af
bit 0, (iy+2Eh)
jr z, p7Bloc_5319
@@ -616,10 +616,10 @@
p7Bloc_53F3:
push hl
- res 6, (iy+0Dh)
+ res appCurWord, (iy+appFlags)
cp 2
jr nz, p7Bloc_5402
- set 6, (iy+0Dh)
+ set appCurWord, (iy+appFlags)
jr p7Bloc_5429
; ---------------------------------------------------------------------------
@@ -640,21 +640,21 @@
jr z, p7Bloc_5425
pop hl
push hl
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
call p7Bsub_525E
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
jr p7Bloc_542C
; ---------------------------------------------------------------------------
p7Bloc_5425:
- set 6, (iy+0Dh)
+ set appCurWord, (iy+appFlags)
p7Bloc_5429:
call j_CursorOn
p7Bloc_542C:
call j_getkey
- res 4, (iy+9)
+ res onInterrupt, (iy+onFlags)
call j_CursorOff
pop hl
bit 5, (iy+2Dh)
@@ -1050,7 +1050,7 @@
jr nc, p7Bloc_562B
ld b, (hl)
ld a, 20h ; ' '
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
p7Bloc_5624:
call j_PutC
@@ -1065,12 +1065,12 @@
call p7Bsub_5338
cp b
jr nz, p7Bloc_563E
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
jr p7Bloc_5642
; ---------------------------------------------------------------------------
p7Bloc_563E:
- set 0, (iy+8)
+ set preClrForMode, (iy+newDispF)
p7Bloc_5642:
pop hl
@@ -1079,7 +1079,7 @@
p7Bloc_5646:
pop bc
ld (curRow), bc
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
res 0, (iy+2Eh)
pop hl
pop de
@@ -1109,7 +1109,7 @@
add a, e
res 1, (iy+28h)
res 2, (iy+28h)
- bit 0, (iy+28h)
+ bit appAllowContext, (iy+APIFlg)
ret nz
call isContextKey
ret nz
@@ -1441,12 +1441,12 @@
p7Bsub_5816:
res 6, (iy+2Bh)
- res 1, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
push hl
ld hl, 800h
ld (winTop), hl
call j_CursorOff
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
ld hl, mcxMain
ld de, 817Ch
ld bc, 0Eh
@@ -1588,7 +1588,7 @@
jr z, p7Bloc_58FF
cp 2
jr nz, p7Bloc_5984
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call j_BufLeft
jr z, p7Bloc_5969
@@ -1600,7 +1600,7 @@
call BCALL_4CF3
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
call IsAtTop
jp z, p7Bloc_597E
ld hl, (editTail)
@@ -1645,7 +1645,7 @@
p7Bloc_5984:
cp 21h ; '!'
jr nz, p7Bloc_5996
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call j_BufLeft
jr z, p7Bloc_5969
call p7Bsub_5935
@@ -1654,7 +1654,7 @@
p7Bloc_5996:
cp 1
jp nz, p7Bloc_5A23
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call j_BUFPEEK
jp z, p7Bloc_5A29
call p7Bsub_5C3D
@@ -1750,7 +1750,7 @@
ld hl, (penCol)
ld (unk_819B), hl
res 1, (iy+2Ah)
- res 7, (iy+34h)
+ res cursorHookActive, (iy+hookflags2)
ld hl, appBackUpScreen
call j_SaveDisp
call j_saveShadow2
@@ -1772,7 +1772,7 @@
; ---------------------------------------------------------------------------
ReleaseSedit:
- res 7, (iy+34h)
+ res cursorHookActive, (iy+hookflags2)
res 6, (iy+2Bh)
call j_closeeditbufnor
call j_releaseBuffer
@@ -1877,7 +1877,7 @@
call p7Bsub_5AB4
ld a, (appFlagsAddr)
push af
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
p7Bloc_5AF3:
ld de, (editTop)
@@ -2300,7 +2300,7 @@
p7Bloc_5D14:
inc b
inc b
- bit 4, (iy+5)
+ bit textInsMode, (iy+textFlags)
jr z, p7Bloc_5D25
ld a, (unk_81A0)
cp 3
@@ -2647,7 +2647,7 @@
BCALL_4CFC:
xor a
push af
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
ld de, (editTop)
ld bc, (penCol)
inc c
@@ -2658,7 +2658,7 @@
ld a, (penCol+1)
cp b
jr nz, p7Bloc_5EF1
- bit 2, (iy+5)
+ bit textScrolled, (iy+textFlags)
jr nz, p7Bloc_5EF1
pop af
push af
@@ -2707,7 +2707,7 @@
BCALL_4CFF:
xor a
push af
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
ld de, (editBtm)
ld bc, (penCol)
@@ -2717,7 +2717,7 @@
ld a, (penCol+1)
cp b
jr nz, p7Bloc_5F3C
- bit 2, (iy+5)
+ bit textScrolled, (iy+textFlags)
jr nz, p7Bloc_5F3C
pop af
push af
@@ -2801,7 +2801,7 @@
ld de, (editTop)
ld a, (appFlagsAddr)
push af
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
p7Bloc_5FA0:
call CpHLDE
@@ -2843,7 +2843,7 @@
ld hl, (editTail)
ld a, (appFlagsAddr)
push af
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
p7Bloc_5FD9:
call j_BUFPEEK1
@@ -2910,12 +2910,12 @@
pop af
ld (penCol), a
pop de
- res 2, (iy+5)
+ res textScrolled, (iy+textFlags)
call j_SGetTokString
pop af
res 6, (iy+2Ah)
call BCALL_4D0E
- bit 2, (iy+5)
+ bit textScrolled, (iy+textFlags)
ret z
call BCALL_4D05
ret
@@ -3018,9 +3018,9 @@
ld hl, SmallEditRowCount
cp (hl)
jr c, p7Bloc_60D6
- bit 2, (iy+0Dh)
+ bit appAutoScroll, (iy+appFlags)
jr z, p7Bloc_60D6
- set 2, (iy+5)
+ set textScrolled, (iy+textFlags)
call BCALL_4D17
ld a, e
call p7Bsub_6199
@@ -3088,7 +3088,7 @@
ld a, (de)
sub 1
jr nc, p7Bloc_612E
- bit 2, (iy+0Dh)
+ bit appAutoScroll, (iy+appFlags)
jr z, p7Bloc_6137
call BCALL_4D1D
ld a, (SmallEditColumnRight)
@@ -3132,7 +3132,7 @@
push hl
push ix
call j_RunIndicOff
- set 2, (iy+5)
+ set textScrolled, (iy+textFlags)
ld a, (SmallEditRowCount)
dec a
jr nz, p7Bloc_615C
@@ -3292,7 +3292,7 @@
ld de, (editTail)
ld a, (iy+0Dh)
push af
- res 2, (iy+0Dh)
+ res appAutoScroll, (iy+appFlags)
ex de, hl
p7Bloc_6221:
@@ -3489,7 +3489,7 @@
jr nz, p7Bloc_639F
p7Bloc_634D:
- res 4, (iy+5)
+ res textInsMode, (iy+textFlags)
call j_BufDelete
call j_BUFPEEK
jr z, p7Bloc_6386
@@ -3762,12 +3762,12 @@
push hl
call p7Bsub_6503
pop hl
- bit 1, (iy+2)
+ bit plotLoc, (iy+plotFlags)
jr nz, p7Bloc_64E7
ld (penCol), hl
- set 7, (iy+14h)
+ set textWrite, (iy+sGrFlags)
call p7Bsub_6503
- res 7, (iy+14h)
+ res textWrite, (iy+sGrFlags)
p7Bloc_64E7:
pop af
@@ -3789,10 +3789,10 @@
p7Bsub_6503:
- set 7, (iy+32h)
+ set customFont, (iy+fontFlags)
ld hl, 8661h
call j_VPutMapRec
- res 7, (iy+32h)
+ res customFont, (iy+fontFlags)
ret
; End of function p7Bsub_6503
@@ -3814,9 +3814,9 @@
ld b, 1
p7Bloc_6518:
- bit 2, (iy+2Bh)
- push af
- set 2, (iy+2Bh)
+ bit fullScrnDraw, (iy+apiFlg4)
+ push af
+ set fullScrnDraw, (iy+apiFlg4)
ld a, 3Fh ; '?'
sub h
ld h, l
@@ -3844,7 +3844,7 @@
call j_ILine
pop af
ret nz
- res 2, (iy+2Bh)
+ res fullScrnDraw, (iy+apiFlg4)
ret
; End of function DrawRectBorder
@@ -3979,7 +3979,7 @@
p7Bloc_6605:
; ClearRect+D4j
ld a, (de)
- bit 1, (iy+2)
+ bit plotLoc, (iy+plotFlags)
jr nz, p7Bloc_660D
ld (hl), a
@@ -4315,7 +4315,7 @@
call BCALL_4D9E
p7Bloc_67DC:
- bit 1, (iy+2)
+ bit plotLoc, (iy+plotFlags)
jr nz, p7Bloc_67F3
ld hl, curY
bit 3, (iy+2Ah)
@@ -4410,7 +4410,7 @@
; ---------------------------------------------------------------------------
p7Bloc_6864:
- bit 0, (iy+3Ch)
+ bit bufferOnly, (iy+plotFlag3)
jr nz, p7Bloc_6874
call p7Bsub_6682
jr nz, p7Bloc_6874
@@ -4470,7 +4470,7 @@
ld hl, curY
bit 3, (iy+2Ah)
jr nz, p7Bloc_68C8
- bit 0, (iy+3Ch)
+ bit bufferOnly, (iy+plotFlag3)
jr z, p7Bloc_68BE
ld hl, (unk_8661)
ld a, (hl)
@@ -4497,7 +4497,7 @@
out (10h), a
call lcd_busy
ld a, c
- bit 0, (iy+3Ch)
+ bit bufferOnly, (iy+plotFlag3)
ret nz
out (11h), a
ret
@@ -4507,7 +4507,7 @@
initalphabox:
push af
- res 1, (iy+2Bh)
+ res cellOverride, (iy+apiFlg4)
ld (unk_8156), a
ld (unk_8157), de
push bc
@@ -4519,7 +4519,7 @@
call initcellbox
ld a, 1
ld (unk_8162), a
- set 1, (iy+2)
+ set plotLoc, (iy+plotFlags)
ret
; ---------------------------------------------------------------------------
@@ -4744,8 +4744,8 @@
in a, (6)
ld hl, cellCursorHook
call setCursorHook
- set 7, (iy+37h)
- res 4, (iy+0Ch)
+ set cursorHookActive, (iy+hookflags2Override)
+ res curLock, (iy+curFlags)
call j_CursorOn
ret
; End of function BCALL_4DE6
@@ -5295,7 +5295,7 @@
ld hl, (unk_812C)
ld (penCol), hl
pop bc
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
ld a, (unk_8135)
cp 0FEh ; '�'
ld a, c
@@ -5349,7 +5349,7 @@
ld b, (hl)
inc hl
call j_VPutSN
- res 2, (iy+32h)
+ res fracDrawLFont, (iy+fontFlags)
res 6, (iy+32h)
p7Bloc_6C9B:
@@ -5382,13 +5382,13 @@
; ---------------------------------------------------------------------------
p7Bloc_6CCA:
- set 2, (iy+32h)
+ set fracDrawLFont, (iy+fontFlags)
ld hl, 8136h
or a
jr z, p7Bloc_6C8E
push af
res 6, (iy+32h)
- res 2, (iy+32h)
+ res fracDrawLFont, (iy+fontFlags)
ld a, (hl)
add a, a
add a, a
@@ -5436,9 +5436,9 @@
p7Bsub_6D1A:
ld a, (unk_8137)
ld (customHeight), a
- set 7, (iy+32h)
+ set customFont, (iy+fontFlags)
call j_VPutMapRec
- res 7, (iy+32h)
+ res customFont, (iy+fontFlags)
ret
; End of function p7Bsub_6D1A
@@ -5447,7 +5447,7 @@
setcelloverride:
ld (unk_815D), hl
ld (unk_815F), a
- set 1, (iy+2Bh)
+ set cellOverride, (iy+apiFlg4)
ret
; =============== S U B R O U T I N E =======================================
@@ -5455,7 +5455,7 @@
BCALL_4DEF:
; BlinkCellNoLookUp+Ap ...
- bit 1, (iy+2Bh)
+ bit cellOverride, (iy+apiFlg4)
ret z
push bc
push hl
@@ -6010,11 +6010,11 @@
ld bc, 8
ldir
ld sp, (onSP)
- res 2, (iy+12h)
+ res indicOnly, (iy+indicFlags)
ld a, 40h ; '@'
ld (mcxCurApp), a
- res 4, (iy+1)
- res 5, (iy+25h)
+ res monAbandon, (iy+monFlags)
+ res nocxPutAway, (iy+contextFlags)
ld a, 58h ; 'X'
jp page0_5C2
; ---------------------------------------------------------------------------
@@ -6058,10 +6058,10 @@
ld a, 3Fh ; '?'
ld (de), a
inc de
- set 7, (iy+0Eh)
- set 2, (iy+33h)
+ set enableQueue, (iy+rclFlag)
+ set useRclQueueEnd, (iy+hookflags1)
ld (rclQueueEnd), de
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
call page0_165F
call FINDPROGSYM
call nc, DelVar
@@ -6072,7 +6072,7 @@
call j_HomeUp
call j_saveCmdShadow
ld a, 40h ; '@'
- set 6, (iy+33h)
+ set noTempDelete, (iy+hookflags1)
jp JForceCmd
; ---------------------------------------------------------------------------
res 7, a
@@ -6142,8 +6142,8 @@
ldir
AppSetup:
- res 0, (iy+3Ch)
- res 4, (iy+28h)
+ res bufferOnly, (iy+plotFlag3)
+ res appRunning, (iy+APIFlg)
ld (iy+5), 0
ld a, (iy+37h)
cpl
@@ -6856,7 +6856,7 @@
; AppMouseForceKey+11j
cp 9
jr nz, p7Bloc_7574
- res 3, (iy+12h)
+ res shift2nd, (iy+shiftFlags)
ld a, 0Ch
ei
ret
@@ -6878,7 +6878,7 @@
p7Bloc_7586:
; p7Bsub_75B7:p7Bloc_75D8j ...
ld a, 0Ah
- bit 3, (iy+12h)
+ bit shift2nd, (iy+shiftFlags)
jr nz, p7Bloc_7593
ld hl, (unk_8122)
or a
@@ -7079,7 +7079,7 @@
call page0_7C1
call p7Bsub_703B
call AppSetup
- set 4, (iy+28h)
+ set appRunning, (iy+APIFlg)
set 6, (iy+28h)
pop hl
ld (appBank_jump), hl
@@ -7102,12 +7102,12 @@
; ---------------------------------------------------------------------------
DisableApd:
- res 2, (iy+8)
+ res apdAble, (iy+apdFlags)
ret
; ---------------------------------------------------------------------------
EnableApd:
- set 2, (iy+8)
+ set apdAble, (iy+apdFlags)
ret
; ---------------------------------------------------------------------------
@@ -7154,7 +7154,7 @@
ClrCursorHook:
- res 7, (iy+34h)
+ res cursorHookActive, (iy+hookflags2)
ret
; End of function ClrCursorHook
@@ -7170,7 +7170,7 @@
pop af
DisableCatalog2Hook:
- res 6, (iy+34h)
+ res catalog2HookActive, (iy+hookflags2)
ret
; ---------------------------------------------------------------------------
@@ -7182,7 +7182,7 @@
pop af
DisableLinkHook:
- res 4, (iy+33h)
+ res bPLinkOn, (iy+hookflags1)
ret
; ---------------------------------------------------------------------------
@@ -7196,7 +7196,7 @@
ld a, b
ClrGetKeyHook:
- res 0, (iy+34h)
+ res getCSCHookActive, (iy+hookflags2)
ret
; ---------------------------------------------------------------------------
@@ -7207,7 +7207,7 @@
or 1
DisableLibraryHook:
- res 1, (iy+34h)
+ res libraryHookActive, (iy+hookflags2)
ret
; ---------------------------------------------------------------------------
@@ -7276,7 +7276,7 @@
pop af
ClrRawKeyHook:
- res 5, (iy+34h)
+ res rawKeyHookActive, (iy+hookflags2)
ret
; ---------------------------------------------------------------------------
@@ -7288,7 +7288,7 @@
jr z, p7Bloc_7763
ClearTokenHook:
- res 0, (iy+35h)
+ res tokenHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
@@ -7310,7 +7310,7 @@
ld hl, 109h
ld (localLanguage), hl
pop hl
- res 1, (iy+35h)
+ res localizeHookActive, (iy+hookflags3)
ret
; END OF FUNCTION CHUNK FOR p7Bsub_7871
; ---------------------------------------------------------------------------
@@ -7324,7 +7324,7 @@
cp a
ClrHomeScreenHook:
- res 4, (iy+34h)
+ res homescreenHookActive, (iy+hookflags2)
ret
; ---------------------------------------------------------------------------
@@ -7339,7 +7339,7 @@
cp a
DisableWindowHook:
- res 2, (iy+35h)
+ res windowHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
@@ -7355,7 +7355,7 @@
cp a
DisableGraphHook:
- res 3, (iy+35h)
+ res graphHookActive, (iy+hookflags3)
ret
; END OF FUNCTION CHUNK FOR p7Bsub_7871
; ---------------------------------------------------------------------------
@@ -7371,7 +7371,7 @@
cp a
DisableYEquHook:
- res 4, (iy+35h)
+ res yEquHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
@@ -7385,7 +7385,7 @@
pop af
ClrFontHook:
- res 5, (iy+35h)
+ res fontHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
@@ -7413,7 +7413,7 @@
cp a
DisableRegraphHook:
- res 6, (iy+35h)
+ res regraphHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
@@ -7472,7 +7472,7 @@
cp a
DisableGraphicsHook:
- res 7, (iy+35h)
+ res drawingHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
@@ -7556,28 +7556,28 @@
EnableLibraryHook:
ld (libraryHookPtr), hl
ld (unk_9B82), a
- set 1, (iy+34h)
+ set libraryHookActive, (iy+hookflags2)
ret
; ---------------------------------------------------------------------------
EnableCatalog2Hook:
ld (catalog2HookPtr), hl
ld (unk_9BC6), a
- set 6, (iy+34h)
+ set catalog2HookActive, (iy+hookflags2)
ret
; ---------------------------------------------------------------------------
SetGetcscHook:
ld (getKeyHookPtr), hl
ld (unk_9B8A), a
- set 0, (iy+34h)
+ set getCSCHookActive, (iy+hookflags2)
ret
; ---------------------------------------------------------------------------
EnableLinkActivityHook:
ld (linkActivityHook), hl
ld (unk_9B7A), a
- set 4, (iy+33h)
+ set bPLinkOn, (iy+hookflags1)
ret
; =============== S U B R O U T I N E =======================================
@@ -7586,7 +7586,7 @@
setCursorHook:
ld (cursorHookPtr), hl
ld (unk_9B7E), a
- set 7, (iy+34h)
+ set cursorHookActive, (iy+hookflags2)
ret
; End of function setCursorHook
@@ -7597,7 +7597,7 @@
SetGetKeyHook:
ld (rawKeyHookPtr), hl
ld (unk_9B86), a
- set 5, (iy+34h)
+ set rawKeyHookActive, (iy+hookflags2)
ret
; End of function SetGetKeyHook
@@ -7606,56 +7606,56 @@
SetTokenHook:
ld (tokenHookPtr), hl
ld (unk_9BCA), a
- set 0, (iy+35h)
+ set tokenHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
EnableLocalizeHook:
ld (localizeHookPtr), hl
ld (unk_9BCE), a
- set 1, (iy+35h)
+ set localizeHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
SetHomescreenHook:
ld (homescreenHookPtr), hl
ld (unk_9B8E), a
- set 4, (iy+34h)
+ set homescreenHookActive, (iy+hookflags2)
ret
; ---------------------------------------------------------------------------
SetWindowHook:
ld (windowHookPtr), hl
ld (unk_9B92), a
- set 2, (iy+35h)
+ set windowHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
SetGraphModeHook:
ld (graphHookPtr), hl
ld (unk_9B96), a
- set 3, (iy+35h)
+ set graphHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
SetYeditHook:
ld (yEqualsHookPtr), hl
ld (unk_9B9A), a
- set 4, (iy+35h)
+ set yEquHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
SetFontHook:
ld (fontHookPtr), hl
ld (unk_9B9E), a
- set 5, (iy+35h)
+ set fontHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
SetRegraphHook:
ld (regraphHookPtr), hl
ld (unk_9BA2), a
- set 6, (iy+35h)
+ set regraphHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
@@ -7683,7 +7683,7 @@
EnableGraphicsHook:
ld (graphicsHook), hl
ld (unk_9BA6), a
- set 7, (iy+35h)
+ set drawingHookActive, (iy+hookflags3)
ret
; ---------------------------------------------------------------------------
--- a/source/page7C/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page7C/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -631,7 +631,7 @@
ld a, (header)
cp 73h ; 's'
jr z, locret_432E
- set 3, (iy+1Bh)
+ set IDis83h, (iy+linkFlags)
locret_432E:
ret
@@ -648,7 +648,7 @@
Get3Bytes:
; Get4BytesCursor:p7Cloc_6319p
ld (header), a
- bit 1, (iy+1Bh)
+ bit IDis95h, (iy+linkFlags)
jr z, p7Cloc_433F
cp 95h ; '�'
jr p7Cloc_4380
@@ -708,7 +708,7 @@
Rec1stByte:
call j_showCursor
- set 3, (iy+8)
+ set apdRunning, (iy+apdFlags)
Rec1stByteNC:
call Page7C_2DCF
@@ -1005,7 +1005,7 @@
call p7Csub_6F33
ld hl, Page7C_2C79
call pushErrorHandleR
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
call Page7C_2D87
res 6, (iy+25h)
ld a, 10h
@@ -1048,7 +1048,7 @@
; ReceiveVar+2FBp
ld a, (unk_867F)
and 1Fh
- bit 2, (iy+1Bh)
+ bit IDis82h, (iy+linkFlags)
ret z
cp 0Bh
ret c
@@ -1075,12 +1075,12 @@
jr nz, p7Cloc_458F
p7Cloc_4585:
- set 2, (iy+1Bh)
+ set IDis82h, (iy+linkFlags)
jr p7Cloc_458F
; ---------------------------------------------------------------------------
p7Cloc_458B:
- set 3, (iy+1Bh)
+ set IDis83h, (iy+linkFlags)
p7Cloc_458F:
call GetSmallPacket
@@ -1109,14 +1109,14 @@
call Page7C_2DCF
p7Cloc_45C6:
- res 4, (iy+9)
+ res onInterrupt, (iy+onFlags)
ei
call j_getkey
ld (kbdKey), a
call j_PULLDOWNCHK
di
jr c, p7Cloc_45C6
- res 4, (iy+9)
+ res onInterrupt, (iy+onFlags)
cp 1Ah
jr nz, p7Cloc_45E2
jp p7Cloc_5852
@@ -1203,7 +1203,7 @@
; ---------------------------------------------------------------------------
p7Cloc_4674:
- bit 2, (iy+1Bh)
+ bit IDis82h, (iy+linkFlags)
jp nz, JErrorNo
p7Cloc_467B:
@@ -1366,7 +1366,7 @@
ld hl, 867Fh
rst 20h
- bit 1, (iy+1Bh)
+ bit IDis95h, (iy+linkFlags)
call nz, OP6ToOP1
call CkOP1Real
cp 15h
@@ -1472,14 +1472,14 @@
p7Cloc_485F:
- res 4, (iy+9)
+ res onInterrupt, (iy+onFlags)
ei
call j_getkey
ld (kbdKey), a
call j_PULLDOWNCHK
di
jr c, p7Cloc_485F
- res 4, (iy+9)
+ res onInterrupt, (iy+onFlags)
cp 19h
jr nz, p7Cloc_489E
call p7Csub_626B
@@ -1533,7 +1533,7 @@
call Page7C_2C4F
call p7Csub_4306
call popErrorHandleR
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
ld a, 2
jr p7Cloc_48AF
; ---------------------------------------------------------------------------
@@ -1653,7 +1653,7 @@
push bc
ld hl, link_var_error_handler
call pushErrorHandleR
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
ld bc, (OP2)
push bc
call page0_17B0
@@ -1719,7 +1719,7 @@
p7Cloc_4A00:
call p7Csub_7145
push af
- set 3, (iy+26h)
+ set noDataWrite, (iy+groupFlags)
call Page0Call_2EAD
pop af
ld hl, (unk_83F1)
@@ -1797,7 +1797,7 @@
call popErrorHandleR
p7Cloc_4A9D:
- res 2, (iy+1Bh)
+ res IDis82h, (iy+linkFlags)
Page7C_2CD9:
call Page7C_2DCF
@@ -1969,7 +1969,7 @@
call pushErrorHandleR
call p7Csub_6444
jp nz, JErrorNo
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
ld a, 13h
ld (unk_867F), a
ld hl, 13A5h
@@ -2156,7 +2156,7 @@
ld (varClass), a
ld hl, Page7C_2C79
call pushErrorHandleR
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
xor a
ld (ioFlag), a
call j_moveDown
@@ -2215,7 +2215,7 @@
p7Cloc_4D46:
ld hl, p7Cloc_62C4
call pushErrorHandleR
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
ld hl, (OP2EXT)
push hl
call Page7C_2DC9
@@ -2402,15 +2402,15 @@
jr nz, p7Cloc_4E5D
p7Cloc_4E62:
- set 1, (iy+24h)
- res 3, (iy+1Bh)
+ set comFailed, (iy+getSendFlg)
+ res IDis83h, (iy+linkFlags)
ld a, (iy+0Ch)
push af
- res 2, (iy+0Ch)
+ res curAble, (iy+curFlags)
ld hl, p7Cloc_4F85
call pushErrorHandleR
call OP1ToOP6
- bit 1, (iy+1Bh)
+ bit IDis95h, (iy+linkFlags)
jr z, p7Cloc_4E93
ld hl, 104h
ld (OP1), hl
@@ -2422,9 +2422,9 @@
; ---------------------------------------------------------------------------
p7Cloc_4E93:
- bit 2, (iy+1Bh)
+ bit IDis82h, (iy+linkFlags)
jr nz, p7Cloc_4E9D
- set 4, (iy+1Bh)
+ set IDis03h, (iy+linkFlags)
p7Cloc_4E9D:
ld de, 867Fh
@@ -2436,11 +2436,11 @@
ld a, 0B7h ; '�'
p7Cloc_4EAE:
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
ei
ld hl, 0Bh
call p7Csub_404C
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
call Get4BytesNC
cp 36h ; '6'
jr nz, p7Cloc_4ECA
@@ -2457,15 +2457,15 @@
ld a, (sndRecState)
cp 15h
jr nz, p7Cloc_4EFD
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
call ReceiveVar
- set 2, (iy+12h)
- bit 1, (iy+1Bh)
+ set indicOnly, (iy+indicFlags)
+ bit IDis95h, (iy+linkFlags)
jr z, p7Cloc_4EF3
call Convert85List
p7Cloc_4EF3:
- res 1, (iy+24h)
+ res comFailed, (iy+getSendFlg)
call popErrorHandleR
jp p7Cloc_4F85
; ---------------------------------------------------------------------------
@@ -2479,7 +2479,7 @@
call GetDataPacket
xor a
ld (OP2EXT), a
- bit 1, (iy+1Bh)
+ bit IDis95h, (iy+linkFlags)
jr z, p7Cloc_4EF3
ld hl, OP1
push hl
@@ -2492,15 +2492,15 @@
di
ld a, (iy+0Ch)
push af
- res 2, (iy+0Ch)
+ res curAble, (iy+curFlags)
ld hl, p7Cloc_4F85
call pushErrorHandleR
ld a, 0Bh
ld (sndRecState), a
ld a, 0C9h ; '�'
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
call Page7C_2D87
- set 2, (iy+1Bh)
+ set IDis82h, (iy+linkFlags)
call SendVariable
jr p7Cloc_4EF3
; ---------------------------------------------------------------------------
@@ -2536,7 +2536,7 @@
Page7C_2DCF:
di
- res 2, (iy+12h)
+ res indicOnly, (iy+indicFlags)
ld a, 5
call page0_AB9
@@ -2552,7 +2552,7 @@
pop af
bit 2, a
jr z, p7Cloc_4F8F
- set 2, (iy+0Ch)
+ set curAble, (iy+curFlags)
p7Cloc_4F8F:
jr p7Cloc_4F78
@@ -2560,7 +2560,7 @@
keyscnlnk:
di
- res 0, (iy+16h)
+ res secondTimerEnabled, (iy+interruptFlags)
call NZIf83Plus
jr nz, p7Cloc_4FA3
ld b, a
@@ -2596,10 +2596,10 @@
ld (sndRecState), a
ld a, (iy+0Ch)
push af
- res 2, (iy+0Ch)
+ res curAble, (iy+curFlags)
ld hl, link_handler
call pushErrorHandleR
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
in a, (2)
and 80h ; '�'
jr z, p7Cloc_5017
@@ -2678,14 +2678,14 @@
ld a, (header+1)
cp 2Bh ; '+'
jr nz, p7Cloc_506F
- set 5, (iy+33h)
+ set enableKeyEcho, (iy+hookflags1)
jr p7Cloc_50B2
; ---------------------------------------------------------------------------
p7Cloc_506F:
cp 2Ch ; ','
jr nz, p7Cloc_5079
- res 5, (iy+33h)
+ res enableKeyEcho, (iy+hookflags1)
jr p7Cloc_50B2
; ---------------------------------------------------------------------------
@@ -2696,15 +2696,15 @@
ld (unk_9B7A), a
ld hl, p7Cloc_6ABC
ld (linkActivityHook), hl
- set 3, (iy+33h)
- set 4, (iy+33h)
+ set ignoreBPLink, (iy+hookflags1)
+ set bPLinkOn, (iy+hookflags1)
jr p7Cloc_50B2
; ---------------------------------------------------------------------------
p7Cloc_5092:
cp 2Ah ; '*'
jr nz, p7Cloc_509C
- res 4, (iy+33h)
+ res bPLinkOn, (iy+hookflags1)
jr p7Cloc_50B2
; ---------------------------------------------------------------------------
@@ -2828,7 +2828,7 @@
set 6, (iy+25h)
call p7Csub_575D
call SendAck
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
call popErrorHandleR
res 6, (iy+25h)
xor a
@@ -2906,7 +2906,7 @@
call p7Csub_6530
ld hl, p7Cloc_59B8
call pushErrorHandleR
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
ld a, (unk_867F)
cp 26h ; '&'
jp nz, p7Cloc_5321
@@ -2979,7 +2979,7 @@
call p7Csub_6530
ld hl, p7Cloc_598A
call pushErrorHandleR
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
ld a, (unk_867F)
cp 27h ; '''
jp nz, p7Cloc_5321
@@ -3057,8 +3057,8 @@
; ---------------------------------------------------------------------------
p7Cloc_5306:
- bit 2, (iy+16h)
- set 2, (iy+16h)
+ bit batteriesGood, (iy+batteryFlags)
+ set batteriesGood, (iy+batteryFlags)
jp z, p7Cloc_5264
call SendAck
ld h, 5Ah ; 'Z'
@@ -3115,7 +3115,7 @@
jr nz, p7Cloc_535D
p7Cloc_5359:
- set 3, (iy+1Bh)
+ set IDis83h, (iy+linkFlags)
p7Cloc_535D:
pop af
@@ -3132,7 +3132,7 @@
jr nz, p7Cloc_537B
p7Cloc_5377:
- set 2, (iy+1Bh)
+ set IDis82h, (iy+linkFlags)
p7Cloc_537B:
call SendScreenContents
@@ -3204,7 +3204,7 @@
ld a, (header)
cp 83h ; '�'
jr nz, p7Cloc_5407
- set 3, (iy+1Bh)
+ set IDis83h, (iy+linkFlags)
p7Cloc_5407:
call GetSmallPacket
@@ -3492,7 +3492,7 @@
or a
sbc hl, bc
jp nz, JErrorNo
- res 1, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
ld hl, 0
ld (curRow), hl
@@ -3524,7 +3524,7 @@
ld (unk_8685), a
ld a, 8
ld (unk_8434), a
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
call p7Csub_533D
push af
ld a, (appInfo)
@@ -4001,9 +4001,9 @@
Page7C_2E89:
call FlashWriteDisable
call Page0Call_2D4B
- set 3, (iy+8)
+ set apdRunning, (iy+apdFlags)
call Page7C_2DCF
- res 2, (iy+0Ch)
+ res curAble, (iy+curFlags)
ei
call j_getkey
jp JForceCmdNoChar
@@ -4020,7 +4020,7 @@
; ReceiveVar+A1Ej
call p7Csub_594D
call popErrorHandleR
- set 3, (iy+8)
+ set apdRunning, (iy+apdFlags)
call Page7C_2DCF
ret
; END OF FUNCTION CHUNK FOR ReceiveVar
@@ -4058,7 +4058,7 @@
pop af
bit 2, a
jr z, p7Cloc_5973
- set 2, (iy+0Ch)
+ set curAble, (iy+curFlags)
p7Cloc_5973:
pop af
@@ -4067,7 +4067,7 @@
ld (sndRecState), a
pop af
ld (ioErrState), a
- set 3, (iy+8)
+ set apdRunning, (iy+apdFlags)
call Page7C_2DCF
call p7Csub_6F20
ret
@@ -4133,7 +4133,7 @@
SendVariable:
- set 1, (iy+24h)
+ set comFailed, (iy+getSendFlg)
push af
call p7Csub_6A79
jr nc, p7Cloc_59EF
@@ -4342,16 +4342,16 @@
call DeselectAllVars
p7Cloc_5AD0:
- set 3, (iy+33h)
+ set ignoreBPLink, (iy+hookflags1)
xor a
ld (varClass), a
call Page7C_2D87
ld hl, linkContext
call AppInit
- set 4, (iy+0Ch)
- res 0, (iy+0)
- res 1, (iy+26h)
- set 3, (iy+14h)
+ set curLock, (iy+curFlags)
+ res inDelete, (iy+ioDelFlag)
+ res inGroup, (iy+groupFlags)
+ set grfSplitOverride, (iy+sGrFlags)
xor a
ld (winTop), a
ld a, 30h ; '0'
@@ -4376,7 +4376,7 @@
; ---------------------------------------------------------------------------
Page7C_2CF1:
- bit 6, (iy+12h)
+ bit shiftALock, (iy+shiftFlags)
jr z, p7Cloc_5B2D
push af
ld a, (sndRecState)
@@ -4452,11 +4452,11 @@
; ---------------------------------------------------------------------------
p7Cloc_5B93:
- res 2, (iy+1Bh)
+ res IDis82h, (iy+linkFlags)
ld a, (sndRecState)
cp 17h
jr nz, p7Cloc_5BA2
- set 2, (iy+1Bh)
+ set IDis82h, (iy+linkFlags)
p7Cloc_5BA2:
ld a, 9
@@ -4623,7 +4623,7 @@
set 5, (hl)
call CpyO1ToFPST
call j_RclExit
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
call p7Cloc_6271
p7Cloc_5CA2:
@@ -4638,7 +4638,7 @@
p7Cloc_5CAD:
call j_RclExit
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
call CpyTo1FPST
jp Page0Call_2DFF
; ---------------------------------------------------------------------------
@@ -4646,10 +4646,10 @@
Page7C_2F49:
ld hl, (unk_9D8B)
ld (OP3), hl
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
jr c, p7Cloc_5CD4
call j_RclExit
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
call CpyTo4FPST
call Page0Call_2E05
ret
@@ -4740,7 +4740,7 @@
jr c, p7Cloc_5D78
call Page7C_2DB7
jp nz, p7Cloc_5CAD
- bit 1, (iy+26h)
+ bit inGroup, (iy+groupFlags)
jp z, p7Cloc_5C90
jp Page0Call_2D0F
; ---------------------------------------------------------------------------
@@ -4751,15 +4751,15 @@
ld hl, (OP3)
push hl
call j_RclExit
- set 4, (iy+0Ch)
- res 0, (iy+11h)
+ set curLock, (iy+curFlags)
+ res promptEdit, (iy+promptFlags)
pop hl
ld (ioData), hl
call p7Cloc_6271
call PopRealO2
ld a, (OP2)
ld (OP1), a
- bit 1, (iy+26h)
+ bit inGroup, (iy+groupFlags)
jp nz, Page0Call_2D0F
jp ReceiveVarData
; ---------------------------------------------------------------------------
@@ -5105,15 +5105,15 @@
ld a, 4
p7Cloc_5FD9:
- res 2, (iy+1Bh)
+ res IDis82h, (iy+linkFlags)
ld (sndRecState), a
- set 4, (iy+0Ch)
+ set curLock, (iy+curFlags)
call j_ClrWindow
ld hl, aSelect
- set 3, (iy+5)
+ set textInverse, (iy+textFlags)
ld a, 5
call p7Csub_6586
- res 3, (iy+5)
+ res textInverse, (iy+textFlags)
ld hl, aTransmit
ld a, 6
call p7Csub_6586
@@ -5176,14 +5176,14 @@
p7Cloc_6045:
ld hl, (fpBase)
ld (FPS), hl
- res 4, (iy+0Ch)
+ res curLock, (iy+curFlags)
xor a
ld (sndRecState), a
- res 2, (iy+1Bh)
+ res IDis82h, (iy+linkFlags)
call Page7C_2DCF
- res 3, (iy+14h)
+ res grfSplitOverride, (iy+sGrFlags)
call DeselectAllVars
- res 3, (iy+33h)
+ res ignoreBPLink, (iy+hookflags1)
ret
; ---------------------------------------------------------------------------
linkcxSizeWind:
@@ -5194,14 +5194,14 @@
cp 1
ret m
ld b, a
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
ld hl, curRow
p7Cloc_6079:
call j_scrollUp
dec (hl)
djnz p7Cloc_6079
- res 1, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
call j_saveShadow2
ret
; ---------------------------------------------------------------------------
@@ -5257,7 +5257,7 @@
p7Csub_60F8:
- bit 0, (iy+0)
+ bit inDelete, (iy+ioDelFlag)
jr z, p7Cloc_6100
xor a
ret
@@ -5288,7 +5288,7 @@
p7Cloc_6119:
call j_SrchVLstDn
jp c, p7Csub_61F5
- bit 0, (iy+0)
+ bit inDelete, (iy+ioDelFlag)
jr nz, p7Cloc_612A
call p7Csub_4B12
jr z, p7Cloc_6119
@@ -5315,7 +5315,7 @@
p7Csub_6144:
call p7Cloc_6206
- bit 0, (iy+0)
+ bit inDelete, (iy+ioDelFlag)
jr nz, p7Cloc_6153
ld a, (sndRecState)
cp 2
@@ -5340,7 +5340,7 @@
p7Cloc_6165:
call j_SrchVLstUp
jp c, p7Csub_61F5
- bit 0, (iy+0)
+ bit inDelete, (iy+ioDelFlag)
jr nz, p7Cloc_6176
call p7Csub_4B12
jr z, p7Cloc_6165
@@ -5386,7 +5386,7 @@
p7Cloc_619F:
push af
- bit 0, (iy+0)
+ bit inDelete, (iy+ioDelFlag)
jr nz, p7Cloc_61B1
ld a, (sndRecState)
cp 4
@@ -5598,7 +5598,7 @@
call j_rstrShadow2
p7Cloc_6271:
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
p7Cloc_6275:
ld hl, ioErrState
@@ -5824,16 +5824,16 @@
p7Csub_6393:
; Page7C_2C4F+89p ...
ld l, 82h ; '�'
- bit 2, (iy+1Bh)
+ bit IDis82h, (iy+linkFlags)
ret nz
ld l, 95h ; '�'
- bit 1, (iy+1Bh)
+ bit IDis95h, (iy+linkFlags)
ret nz
ld l, 83h ; '�'
- bit 3, (iy+1Bh)
+ bit IDis83h, (iy+linkFlags)
ret nz
ld l, 3
- bit 4, (iy+1Bh)
+ bit IDis03h, (iy+linkFlags)
ret nz
ld l, 73h ; 's'
ret
@@ -6142,15 +6142,15 @@
call Page0Call_2D21
p7Cloc_653D:
- bit 1, (iy+8)
+ bit allowProgTokens, (iy+newDispF)
call nz, j_TraceOff
call j_CursorOff
- set 4, (iy+1)
+ set monAbandon, (iy+monFlags)
call cxPutAway
ld a, (mcxCurApp)
cp 40h ; '@'
ret nz
- set 5, (iy+25h)
+ set nocxPutAway, (iy+contextFlags)
ret
; End of function p7Csub_6530
@@ -6195,7 +6195,7 @@
p7Csub_658D:
; ReceiveVar-12p ...
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
ret
; End of function p7Csub_658D
@@ -7009,7 +7009,7 @@
p7Csub_6A3D:
; SendVariable:p7Cloc_59EFp
scf
- bit 3, (iy+1Bh)
+ bit IDis83h, (iy+linkFlags)
ret z
p7Cloc_6A43:
@@ -7108,7 +7108,7 @@
ld (hl), a
call NZIf83Plus
jr nz, p7Cloc_6AAE
- bit 0, (iy+3Eh)
+ bit silentLinkActive, (iy+silentLinkFlags)
jr nz, p7Cloc_6ABA
in a, (20h)
and 1
@@ -7141,7 +7141,7 @@
call NZIf83Plus
call nz, CheckLinkLines
ret nz
- bit 2, (iy+12h)
+ bit indicOnly, (iy+indicFlags)
push af
ld hl, RejectCommandHandler
call pushErrorHandleR
@@ -7192,11 +7192,11 @@
jr p7Cloc_6AFF
RejectCommandHandler:
- res 4, (iy+33h)
+ res bPLinkOn, (iy+hookflags1)
p7Cloc_6B1F:
pop af
- res 2, (iy+12h)
+ res indicOnly, (iy+indicFlags)
ret z
; =============== S U B R O U T I N E =======================================
@@ -7204,7 +7204,7 @@
p7Csub_6B25:
; Send4BytePacketp ...
- set 2, (iy+12h)
+ set indicOnly, (iy+indicFlags)
ret
; End of function p7Csub_6B25
@@ -7221,7 +7221,7 @@
call popErrorHandleR
pop af
ret
-+: res 5, (iy+33h)
++: res enableKeyEcho, (iy+hookflags1)
pop af
ret
@@ -7797,7 +7797,7 @@
xor a
out (8), a
in a, (9)
- set 0, (iy+3Eh)
+ set silentLinkActive, (iy+silentLinkFlags)
xor a
ret
; End of function p7Csub_6E1A
@@ -8042,7 +8042,7 @@
ret nz
p7Cloc_6F2A:
- res 0, (iy+3Eh)
+ res silentLinkActive, (iy+silentLinkFlags)
ld a, 80h ; '�'
out (8), a
ret
@@ -8064,9 +8064,9 @@
p7Csub_6F37:
; SendAByte:p7Cloc_6D81p ...
- bit 0, (iy+3Eh)
+ bit silentLinkActive, (iy+silentLinkFlags)
ret nz
- set 0, (iy+3Eh)
+ set silentLinkActive, (iy+silentLinkFlags)
in a, (9)
xor a
out (8), a
@@ -8473,7 +8473,7 @@
ld (keyExtend), a
call Page7C_2DCF
call j_RunIndicOn
- res 2, (iy+0Ch)
+ res curAble, (iy+curFlags)
p7Cloc_7193:
ei
@@ -8530,7 +8530,7 @@
p7Cloc_71DD:
call j_rstrShadow2
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
ret
; =============== S U B R O U T I N E =======================================
@@ -8614,7 +8614,7 @@
; ---------------------------------------------------------------------------
p7Cloc_7237:
- res 1, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
call j_saveShadow2
di
call p7Csub_7E19
@@ -8622,7 +8622,7 @@
call p7Csub_7758
ei
call j_rstrShadow2
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
ret
; =============== S U B R O U T I N E =======================================
@@ -11410,7 +11410,7 @@
ld a, 4Fh ; 'O'
p7Cloc_7E47:
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call j_PutS
ret
@@ -11655,7 +11655,7 @@
; ---------------------------------------------------------------------------
p7Cloc_7F17:
- res 1, (iy+0Dh)
+ res appTextSave, (iy+appFlags)
call j_saveShadow2
di
call p7Csub_7E19
@@ -11663,7 +11663,7 @@
push af
ei
call j_rstrShadow2
- set 1, (iy+0Dh)
+ set appTextSave, (iy+appFlags)
pop af
ret
--- a/source/page7D/initial.asm Thu May 08 01:58:42 2014 -0400
+++ b/source/page7D/initial.asm Thu May 08 02:47:08 2014 -0400
@@ -2034,13 +2034,13 @@
jr z, p7Dloc_498B
ld hl, aHaveExpired_
ld a, 4Dh ; 'M'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p7Dsub_7045
call j_newline
ld hl, aDeleting___
ld a, 4Eh ; 'N'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p7Dsub_7045
call j_newline
@@ -5495,11 +5495,11 @@
p7Dsub_5980:
- set 2, (iy+16h)
+ set batteriesGood, (iy+batteryFlags)
in a, (2)
bit 0, a
ret nz
- res 2, (iy+16h)
+ res batteriesGood, (iy+batteryFlags)
ret
; End of function p7Dsub_5980
@@ -5795,7 +5795,7 @@
call j_HomeUp
ld hl, aIdlist
ld a, 3Dh ; '='
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p7Dsub_7045
call Page0Call_23DE
@@ -7354,7 +7354,7 @@
p7Dloc_61BC:
call j_ForceFullScreen
- res 1, (iy+5)
+ res textEraseBelow, (iy+textFlags)
push af
call j_ClrLCD
pop af
@@ -7386,7 +7386,7 @@
ld (penCol), hl
ld hl, MD5Buffer
call j_VPutS
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
jr z, p7Dloc_6201
ld a, 50h ; 'P'
call j_call_character_hook
@@ -7413,7 +7413,7 @@
jr z, p7Dloc_6237
ld hl, aExpiredOn-2
ld a, 51h ; 'Q'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p7Dsub_62B3
jr p7Dloc_6246
@@ -7422,7 +7422,7 @@
p7Dloc_6237:
ld hl, aExpirationDate-2
ld a, 52h ; 'R'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p7Dsub_62B3
@@ -7456,7 +7456,7 @@
jr nz, p7Dloc_629B
ld hl, aTrialsRemaining-2
ld a, 53h ; 'S'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p7Dsub_62B3
ld a, (OP1)
@@ -7471,7 +7471,7 @@
pop af
ld hl, aPressAnyKey___-2
ld a, 54h ; 'T'
- bit 1, (iy+35h)
+ bit localizeHookActive, (iy+hookflags3)
call nz, j_call_character_hook
call p7Dsub_62B3
ei
@@ -8775,12 +8775,12 @@
ld (arcInfo), a
ld de, (arcPtr)
ld (unk_83FB), de
- bit 3, (iy+26h)
- res 3, (iy+26h)
+ bit noDataWrite, (iy+groupFlags)
+ res noDataWrite, (iy+groupFlags)
jr nz, p7Dloc_69D1
ld a, (arcInfo)
ld hl, (unk_83F3)
- bit 5, (iy+26h)
+ bit writeSizeBytesOnly, (iy+groupFlags)
ld bc, 2
jr nz, p7Dloc_698F
ld bc, (unk_83F7)
@@ -8791,7 +8791,7 @@
call Page7D_2C43
jp c, Page0Call_2541
call p7Dsub_7666
- bit 5, (iy+26h)
+ bit writeSizeBytesOnly, (iy+groupFlags)
ld de, 2
jr nz, p7Dloc_69AC
ld de, (unk_83F7)
@@ -8801,7 +8801,7 @@
ld a, (arcPage)
ld (arcInfo), a
ld de, (arcPtr)
- bit 2, (iy+26h)
+ bit noCompletionByte, (iy+groupFlags)
jr nz, p7Dloc_69D1
ld de, (unk_8402)
ld b, 0FCh ; '�'
@@ -11669,7 +11669,7 @@
call j_RecAByteIO
ld l, a
call APP_POP_ERRORH
- bit 4, (iy+9)
+ bit onInterrupt, (iy+onFlags)
jr nz, p7Dloc_790F
xor a
ld a, l
@@ -11896,7 +11896,7 @@
jr z, p7Dloc_7A59
ld b, (ix+0F7h)
ld c, (ix+0F6h)
- bit 4, (iy+9)
+ bit onInterrupt, (iy+onFlags)
jr nz, p7Dloc_7A52
dec bc
ld a, b
@@ -11973,8 +11973,8 @@
p7Dsub_7A8D:
- bit 4, (iy+9)
- res 4, (iy+9)
+ bit onInterrupt, (iy+onFlags)
+ res onInterrupt, (iy+onFlags)
ret
; End of function p7Dsub_7A8D
@@ -11991,7 +11991,7 @@
call APP_PUSH_ERRORH
call j_SendAByte
call APP_POP_ERRORH
- bit 4, (iy+9)
+ bit onInterrupt, (iy+onFlags)
jr nz, p7Dloc_7AAF
xor a
jr p7Dloc_7AB1
@@ -12272,7 +12272,7 @@
p7Dsub_7BD4:
- bit 0, (iy+12h)
+ bit indicRun, (iy+indicFlags)
ret z
push af
push bc
@@ -12590,7 +12590,7 @@
.dw 8087h
; ---------------------------------------------------------------------------
call relockFlashBack
- set 3, (iy+26h)
+ set noDataWrite, (iy+groupFlags)
call Page7D_2EAD
pop af
ld hl, (unk_83F1)
--- a/source/ti83plus.inc Thu May 08 01:58:42 2014 -0400
+++ b/source/ti83plus.inc Thu May 08 02:47:08 2014 -0400
@@ -2567,7 +2567,7 @@
interruptFlags equ 16h
secondTimerEnabled equ 0 ;1 = second hardware timer enabled
batteryFlags equ 16h
-;batteriesGood equ 2 ;1 = batteries good, I think this being reset will force the calc to shut off, used in USB error handler
+batteriesGood equ 2 ;1 = batteries good, I think this being reset will force the calc to shut off, used in USB error handler
;----------------------------------------------------------------------
smartFlags equ 17h
smarter_mask equ 3
@@ -2700,11 +2700,11 @@
menuHookActive equ 6 ;1 = menu hook active
silentLinkHookActive equ 7 ;1 = silent link hook active
;----------------------------------------------------------------------
-;hookflags2Override equ 37h ;set corresponding bit to kill iy+35h hook when executing app
+hookflags2Override equ 37h ;set corresponding bit to kill iy+35h hook when executing app
;----------------------------------------------------------------------
-;hookflags3Override equ 38h ;set corresponding bit to kill iy+36h hook when executing app
+hookflags3Override equ 38h ;set corresponding bit to kill iy+36h hook when executing app
;----------------------------------------------------------------------
-;hookflags4Override equ 39h ;set corresponding bit to kill iy+37h hook when executing app
+hookflags4Override equ 39h ;set corresponding bit to kill iy+37h hook when executing app
;----------------------------------------------------------------------
;hookflags5 equ 3Ah
usbActivityHookActive equ 0 ;1 = USB activity hook active