More cleanup.
--- a/source/page00/interrupt.asm Fri May 09 06:00:08 2014 -0400
+++ b/source/page00/interrupt.asm Fri May 09 06:05:59 2014 -0400
@@ -438,7 +438,7 @@
ret
GetCSC:
- ld hl, 843Fh
+ ld hl, kbdScanCode
di
ld a, (hl)
ld (hl), 0
@@ -446,30 +446,27 @@
ei
ret
-page0_399:
-Page0Call_399:
+CanAlphIns_UnlessAlphaLock:
bit shiftALock, (iy+shiftFlags)
ret nz
- jr page0_3A8
-
+ jr {+}
CanAlphIns:
res textInsMode, (iy+textFlags)
-page0_3A4:
+CancelAlpha:
res shiftALock, (iy+shiftFlags)
-page0_3A8:
- bit shiftKeepAlph, (iy+shiftFlags)
++: bit shiftKeepAlph, (iy+shiftFlags)
ret nz
res shiftAlpha, (iy+shiftFlags)
ret
+#ifndef DEVIATE_FROM_ORIGINAL_FILE
+;Not referenced anywhere that I can see.
set shiftKeepAlph, (iy+shiftFlags)
- jr page0_3BC
-
-page0_3B8:
+ jr {+}
+#endif
Page0Call_3B8:
set shiftALock, (iy+shiftFlags)
-page0_3BC:
- set shiftAlpha, (iy+shiftFlags)
++: set shiftAlpha, (iy+shiftFlags)
res shiftLwrAlph, (iy+shiftFlags)
ret
@@ -1003,7 +1000,7 @@
page0_762:
pop hl
page0_763:
- jp page0_3A4
+ jp CancelAlpha
cxRedisp:
ld hl, (unk_8593)
--- a/source/page03/initial.asm Fri May 09 06:00:08 2014 -0400
+++ b/source/page03/initial.asm Fri May 09 06:05:59 2014 -0400
@@ -9326,7 +9326,7 @@
ld a, (hl)
cp 5Eh ; '^'
jr z, p03loc_7174
- call page0_3A4
+ call CancelAlpha
ret
; ---------------------------------------------------------------------------
@@ -9337,7 +9337,7 @@
p03loc_7174:
ld de, nameBuff
call page0_118B
- call page0_3A4
+ call CancelAlpha
call Page03_37A7
ld bc, 2
jr p03loc_7191
--- a/source/page05/initial.asm Fri May 09 06:00:08 2014 -0400
+++ b/source/page05/initial.asm Fri May 09 06:05:59 2014 -0400
@@ -2219,7 +2219,7 @@
ld hl, matrixDimensions
cp (hl)
jp nz, p05loc_4F76
- call page0_3B8
+ call Page0Call_3B8
jp p05loc_4F79
; ---------------------------------------------------------------------------
@@ -2391,7 +2391,7 @@
p05sub_4D56:
; p05sub_4B4A+175p ...
- call page0_3B8
+ call Page0Call_3B8
set curLock, (iy+curFlags)
ret
; End of function p05sub_4D56
--- a/source/page06/initial.asm Fri May 09 06:00:08 2014 -0400
+++ b/source/page06/initial.asm Fri May 09 06:05:59 2014 -0400
@@ -192,7 +192,7 @@
p06loc_417F:
cp 5
jr nz, p06loc_41A3
- call page0_3A4
+ call CancelAlpha
bit textInsMode, (iy+textFlags)
jr nz, p06loc_419E
@@ -2224,7 +2224,7 @@
p06loc_4C33:
res 7, (iy+1Fh)
- call page0_3A4
+ call CancelAlpha
p06loc_4C3A:
jp p06loc_49BE
@@ -2239,7 +2239,7 @@
; ---------------------------------------------------------------------------
p06loc_4C4B:
- call page0_399
+ call CanAlphIns_UnlessAlphaLock
bit shiftAlpha, (iy+shiftFlags)
jp nz, p06loc_4C64
bit saIndic, (iy+newIndicFlags)
--- a/source/page07/initial.asm Fri May 09 06:00:08 2014 -0400
+++ b/source/page07/initial.asm Fri May 09 06:05:59 2014 -0400
@@ -5857,7 +5857,7 @@
call j_EraseEOL
call CanAlphIns
pop af
- call c, page0_3B8
+ call c, Page0Call_3B8
res 1, (iy+13h)
res curLock, (iy+curFlags)
p07loc_59F5:
@@ -6393,7 +6393,7 @@
CATALOGCHK:
call p07sub_5A3B
- call page0_3B8
+ call Page0Call_3B8
set promptEdit, (iy+promptFlags)
ret
@@ -6506,7 +6506,7 @@
res saIndic, (iy+newIndicFlags)
call p07sub_5DE7
set curLock, (iy+curFlags)
- call page0_3B8
+ call Page0Call_3B8
p07loc_5DE5:
scf
--- a/source/page79/initial.asm Fri May 09 06:00:08 2014 -0400
+++ b/source/page79/initial.asm Fri May 09 06:05:59 2014 -0400
@@ -2414,7 +2414,7 @@
set 6, (iy+1Dh)
set 7, (iy+1Dh)
call p79sub_6925
- call page0_3A4
+ call CancelAlpha
call p79sub_5087
jr p79loc_5015
; END OF FUNCTION CHUNK FOR p79sub_5695
@@ -2434,7 +2434,7 @@
call j_POPCX
set grfSplitOverride, (iy+sGrFlags)
pop af
- call page0_3A4
+ call CancelAlpha
call p79sub_5087
jr p79loc_5007
; ---------------------------------------------------------------------------
@@ -2447,7 +2447,7 @@
p79loc_4FFD:
pop af
- call page0_3A4
+ call CancelAlpha
call p79sub_5087
; START OF FUNCTION CHUNK FOR LoadMenuNumL
@@ -2557,7 +2557,7 @@
ld (unk_984B), a
ld (unk_984C), a
pop af
- call page0_3A4
+ call CancelAlpha
call p79sub_50C6
jp p79loc_5004
; End of function LoadMenuNumL