source/page7D/initial.asm
changeset 4 59f60baeaf6a
child 6 e514aba854d4
equal deleted inserted replaced
3:ce97578b771e 4:59f60baeaf6a
       
     1 Page7D_2CAC:
       
     2 		push	af
       
     3 		ld	a, 1
       
     4 		nop
       
     5 		di
       
     6 		nop
       
     7 		nop
       
     8 		im	1
       
     9 		di
       
    10 		out	(14h), a
       
    11 		di
       
    12 		call	checkForFlashTrickery
       
    13 		pop	af
       
    14 		call	p7Dsub_6FAC
       
    15 		jp	c, relockFlashBack
       
    16 		push	af
       
    17 		call	p7Dsub_576D
       
    18 		pop	af
       
    19 		call	Page7D_2BE6
       
    20 		jp	relockFlashBack
       
    21 
       
    22 ; =============== S U B	R O U T	I N E =======================================
       
    23 
       
    24 
       
    25 DeleteApp:				; CODE XREF: seg001:6A61p
       
    26 		push	af
       
    27 		ld	a, 1
       
    28 		nop
       
    29 		di
       
    30 		nop
       
    31 		nop
       
    32 		im	1
       
    33 		di
       
    34 		out	(14h), a
       
    35 		di
       
    36 		call	checkForFlashTrickery
       
    37 		pop	af
       
    38 		call	p7Dsub_6FAC
       
    39 		jp	c, relockFlashBack
       
    40 		call	Page7D_2BE6
       
    41 		jp	relockFlashBack
       
    42 ; End of function DeleteApp
       
    43 
       
    44 
       
    45 ; =============== S U B	R O U T	I N E =======================================
       
    46 
       
    47 
       
    48 Page7D_2BE6:				; CODE XREF: seg001:401Cp
       
    49 					; DeleteApp+17p ...
       
    50 		ld	b, a
       
    51 		ld	hl, 4000h
       
    52 		rst	28h
       
    53 ; ---------------------------------------------------------------------------
       
    54 		.dw 8051h
       
    55 ; ---------------------------------------------------------------------------
       
    56 		cp	0FFh
       
    57 		ld	a, b
       
    58 		jr	z, locret_4077
       
    59 		call	FindAppNumPages
       
    60 		ld	b, c
       
    61 		push	af
       
    62 		ld	a, c
       
    63 		or	a
       
    64 		jr	z, p7Dloc_4078
       
    65 		res	6, (iy+24h)
       
    66 		res	7, (iy+24h)
       
    67 		xor	a
       
    68 		ld	(unk_9C87), a
       
    69 		pop	af
       
    70 
       
    71 p7Dloc_4061:				; CODE XREF: Page7D_2BE6+33j
       
    72 		set	0, (iy+25h)
       
    73 		push	af
       
    74 		push	bc
       
    75 		ld	de, 4000h
       
    76 		ld	b, 0
       
    77 		rst	28h
       
    78 ; ---------------------------------------------------------------------------
       
    79 		.dw 80C6h
       
    80 ; ---------------------------------------------------------------------------
       
    81 		pop	bc
       
    82 		pop	af
       
    83 		dec	a
       
    84 		djnz	p7Dloc_4061
       
    85 		ld	(appSearchPage+1), a
       
    86 
       
    87 locret_4077:				; CODE XREF: Page7D_2BE6+Aj
       
    88 		ret
       
    89 ; ---------------------------------------------------------------------------
       
    90 
       
    91 p7Dloc_4078:				; CODE XREF: Page7D_2BE6+13j
       
    92 		pop	af
       
    93 		ret
       
    94 ; End of function Page7D_2BE6
       
    95 
       
    96 
       
    97 ; =============== S U B	R O U T	I N E =======================================
       
    98 
       
    99 
       
   100 Page7D_2BB0:				; CODE XREF: p7Dsub_7240:p7Dloc_7549p
       
   101 					; p7Dsub_7CDA:p7Dloc_7D01p
       
   102 		push	hl
       
   103 		call	p7Dsub_4894
       
   104 		call	p7Dsub_457C
       
   105 		pop	hl
       
   106 		ret
       
   107 ; End of function Page7D_2BB0
       
   108 
       
   109 
       
   110 ; =============== S U B	R O U T	I N E =======================================
       
   111 
       
   112 
       
   113 p7Dsub_4083:				; CODE XREF: Page7D_2B62+86p
       
   114 					; p7Dsub_430E+2Ap
       
   115 		call	p7Dsub_7700
       
   116 		push	bc
       
   117 		push	hl
       
   118 		push	de
       
   119 		push	af
       
   120 
       
   121 p7Dloc_408A:				; CODE XREF: p7Dsub_4083+1Cj
       
   122 		pop	af
       
   123 		push	hl
       
   124 		push	bc
       
   125 		push	af
       
   126 		call	Page7D_2CD0
       
   127 		ld	b, a
       
   128 		pop	af
       
   129 		push	af
       
   130 		rst	28h
       
   131 ; ---------------------------------------------------------------------------
       
   132 		.dw 8021h
       
   133 ; ---------------------------------------------------------------------------
       
   134 		pop	af
       
   135 		pop	bc
       
   136 		pop	hl
       
   137 		inc	hl
       
   138 		push	af
       
   139 		dec	bc
       
   140 		ld	a, b
       
   141 		or	c
       
   142 		jr	nz, p7Dloc_408A
       
   143 		pop	af
       
   144 		pop	de
       
   145 		pop	hl
       
   146 		pop	bc
       
   147 		ret
       
   148 ; End of function p7Dsub_4083
       
   149 
       
   150 
       
   151 ; =============== S U B	R O U T	I N E =======================================
       
   152 
       
   153 
       
   154 p7Dsub_40A6:				; CODE XREF: seg001:5807p seg001:595Ep
       
   155 		call	p7Dsub_7700
       
   156 ; End of function p7Dsub_40A6
       
   157 
       
   158 
       
   159 p7Dloc_40A9:				; CODE XREF: seg001:58A2p
       
   160 		push	bc
       
   161 		push	hl
       
   162 		push	de
       
   163 		push	af
       
   164 
       
   165 p7Dloc_40AD:				; CODE XREF: seg001:40C5j
       
   166 		pop	af
       
   167 		push	hl
       
   168 		push	bc
       
   169 		push	af
       
   170 		rst	28h
       
   171 ; ---------------------------------------------------------------------------
       
   172 		.dw 8051h
       
   173 ; ---------------------------------------------------------------------------
       
   174 		ld	b, a
       
   175 		pop	af
       
   176 		push	af
       
   177 		ld	a, (OP2)
       
   178 		rst	28h
       
   179 ; ---------------------------------------------------------------------------
       
   180 		.dw 8021h
       
   181 ; ---------------------------------------------------------------------------
       
   182 		pop	af
       
   183 		pop	bc
       
   184 		pop	hl
       
   185 		inc	hl
       
   186 		push	af
       
   187 		dec	bc
       
   188 		ld	a, b
       
   189 		or	c
       
   190 		jr	nz, p7Dloc_40AD
       
   191 		pop	af
       
   192 		pop	de
       
   193 		pop	hl
       
   194 		pop	bc
       
   195 		ret
       
   196 
       
   197 ; =============== S U B	R O U T	I N E =======================================
       
   198 
       
   199 
       
   200 Page7D_2B62:				; CODE XREF: p7Dsub_430E+4p p7Dsub_519D+19p	...
       
   201 		ld	(unk_9C20), a
       
   202 		push	de
       
   203 		push	bc
       
   204 		push	hl
       
   205 		call	p7Dsub_4894
       
   206 		call	p7Dsub_4566
       
   207 		cp	0FFh
       
   208 		jr	nz, p7Dloc_40E5
       
   209 		ld	bc, 0
       
   210 		ld	(OP6), bc
       
   211 		jr	p7Dloc_4105
       
   212 ; ---------------------------------------------------------------------------
       
   213 
       
   214 p7Dloc_40E5:				; CODE XREF: Page7D_2B62+Ej
       
   215 		ld	bc, 1
       
   216 		ld	(OP6), bc
       
   217 		push	hl
       
   218 		call	p7Dsub_4574
       
   219 		add	hl, bc
       
   220 		call	p7Dsub_4574
       
   221 		add	hl, bc
       
   222 		pop	bc
       
   223 		sbc	hl, bc
       
   224 		push	hl
       
   225 		pop	bc
       
   226 		call	p7Dsub_4894
       
   227 		ld	de, 4000h
       
   228 		push	de
       
   229 		push	bc
       
   230 		call	p7Dsub_42DF
       
   231 
       
   232 p7Dloc_4105:				; CODE XREF: Page7D_2B62+17j
       
   233 		call	p7Dsub_4894
       
   234 		rst	28h
       
   235 ; ---------------------------------------------------------------------------
       
   236 		.dw 8060h
       
   237 ; ---------------------------------------------------------------------------
       
   238 		rst	28h
       
   239 ; ---------------------------------------------------------------------------
       
   240 		.dw 8057h
       
   241 ; ---------------------------------------------------------------------------
       
   242 		push	hl
       
   243 		push	hl
       
   244 		call	Page7D_2BEC
       
   245 		ex	de, hl
       
   246 		pop	hl
       
   247 		inc	de
       
   248 		inc	hl
       
   249 
       
   250 p7Dloc_4117:				; CODE XREF: Page7D_2B62+8Dj
       
   251 					; Page7D_2B62:p7Dloc_4178j
       
   252 		call	p7Dsub_4566
       
   253 		cp	0
       
   254 		jr	z, p7Dloc_415C
       
   255 		cp	0FFh
       
   256 		jp	z, p7Dloc_417B
       
   257 		push	hl
       
   258 		push	bc
       
   259 		push	hl
       
   260 		call	p7Dsub_521D
       
   261 		call	NZIf83Plus
       
   262 		jr	nz, p7Dloc_4131
       
   263 		call	p7Dsub_522B
       
   264 
       
   265 p7Dloc_4131:				; CODE XREF: Page7D_2B62+60j
       
   266 		push	hl
       
   267 		pop	bc
       
   268 		pop	hl
       
   269 		sbc	hl, bc
       
   270 		jr	nc, p7Dloc_417B
       
   271 		pop	bc
       
   272 		pop	hl
       
   273 		push	hl
       
   274 		ld	(arcInfo), de
       
   275 		call	p7Dsub_4574
       
   276 		pop	de
       
   277 		push	de
       
   278 		or	a
       
   279 		sbc	hl, de
       
   280 		ld	a, l
       
   281 		add	a, c
       
   282 		ld	c, a
       
   283 		jr	nc, p7Dloc_414D
       
   284 		inc	b
       
   285 
       
   286 p7Dloc_414D:				; CODE XREF: Page7D_2B62+7Ej
       
   287 		pop	hl
       
   288 		ld	de, (arcInfo)
       
   289 		call	p7Dsub_4083
       
   290 		add	hl, bc
       
   291 		ex	de, hl
       
   292 		add	hl, bc
       
   293 		ex	de, hl
       
   294 		jp	p7Dloc_4117
       
   295 ; ---------------------------------------------------------------------------
       
   296 
       
   297 p7Dloc_415C:				; CODE XREF: Page7D_2B62+50j
       
   298 		push	de
       
   299 		call	p7Dsub_4574
       
   300 		pop	de
       
   301 		add	hl, bc
       
   302 		call	p7Dsub_4566
       
   303 		cp	2
       
   304 		jr	nz, p7Dloc_4178
       
   305 		push	de
       
   306 		push	hl
       
   307 		call	p7Dsub_4574
       
   308 		pop	de
       
   309 		sbc	hl, de
       
   310 		adc	hl, bc
       
   311 		push	hl
       
   312 		pop	bc
       
   313 		ex	de, hl
       
   314 		pop	de
       
   315 		add	hl, bc
       
   316 
       
   317 p7Dloc_4178:				; CODE XREF: Page7D_2B62+9Bj
       
   318 		jp	p7Dloc_4117
       
   319 ; ---------------------------------------------------------------------------
       
   320 
       
   321 p7Dloc_417B:				; CODE XREF: Page7D_2B62+54j
       
   322 					; Page7D_2B62+6Aj
       
   323 		call	NZIf83Plus
       
   324 		jr	nz, p7Dloc_41DF
       
   325 		ld	a, (unk_9C20)
       
   326 		or	a
       
   327 		jr	z, p7Dloc_41DF
       
   328 		cp	1
       
   329 		jr	z, p7Dloc_41A4
       
   330 		cp	3
       
   331 		jr	z, p7Dloc_41B2
       
   332 		cp	4
       
   333 		jr	z, p7Dloc_41C0
       
   334 		cp	5
       
   335 		jr	z, p7Dloc_41D1
       
   336 		call	p7Dsub_427F
       
   337 		call	p7Dsub_4211
       
   338 		call	p7Dsub_425E
       
   339 		call	p7Dsub_4228
       
   340 		jr	p7Dloc_41E2
       
   341 ; ---------------------------------------------------------------------------
       
   342 
       
   343 p7Dloc_41A4:				; CODE XREF: Page7D_2B62+BCj
       
   344 		call	p7Dsub_4261
       
   345 		call	p7Dsub_4211
       
   346 		call	p7Dsub_427C
       
   347 		call	p7Dsub_4230
       
   348 		jr	p7Dloc_41E2
       
   349 ; ---------------------------------------------------------------------------
       
   350 
       
   351 p7Dloc_41B2:				; CODE XREF: Page7D_2B62+C0j
       
   352 		call	p7Dsub_4214
       
   353 		call	p7Dsub_425E
       
   354 		call	p7Dsub_427C
       
   355 		call	p7Dsub_4238
       
   356 		jr	p7Dloc_41E2
       
   357 ; ---------------------------------------------------------------------------
       
   358 
       
   359 p7Dloc_41C0:				; CODE XREF: Page7D_2B62+C4j
       
   360 		call	p7Dsub_4214
       
   361 		call	p7Dsub_42A2
       
   362 		call	p7Dsub_4269
       
   363 		call	p7Dsub_428F
       
   364 		call	p7Dsub_4238
       
   365 		jr	p7Dloc_41E2
       
   366 ; ---------------------------------------------------------------------------
       
   367 
       
   368 p7Dloc_41D1:				; CODE XREF: Page7D_2B62+C8j
       
   369 		call	p7Dsub_42A2
       
   370 		call	p7Dsub_425E
       
   371 		call	p7Dsub_428F
       
   372 		call	p7Dsub_4211
       
   373 		jr	p7Dloc_41E2
       
   374 ; ---------------------------------------------------------------------------
       
   375 
       
   376 p7Dloc_41DF:				; CODE XREF: Page7D_2B62+B2j
       
   377 					; Page7D_2B62+B8j
       
   378 		call	p7Dsub_427F
       
   379 
       
   380 p7Dloc_41E2:				; CODE XREF: Page7D_2B62+D6j
       
   381 					; Page7D_2B62+E4j ...
       
   382 		call	p7Dsub_4894
       
   383 		ex	de, hl
       
   384 		ld	b, 8Fh ; '�'
       
   385 		call	p7Dsub_456D
       
   386 		pop	hl
       
   387 		ex	de, hl
       
   388 		call	p7Dsub_4894
       
   389 		ex	de, hl
       
   390 		push	de
       
   391 		call	p7Dsub_457C
       
   392 		pop	de
       
   393 		ld	b, 0
       
   394 		call	p7Dsub_456D
       
   395 		ld	bc, (OP6)
       
   396 		ld	a, c
       
   397 		cp	1
       
   398 		jr	nz, p7Dloc_420D
       
   399 		call	p7Dsub_4894
       
   400 		ex	de, hl
       
   401 		pop	bc
       
   402 		pop	hl
       
   403 		call	p7Dsub_42AE
       
   404 
       
   405 p7Dloc_420D:				; CODE XREF: Page7D_2B62+136j
       
   406 		pop	hl
       
   407 		pop	bc
       
   408 		pop	de
       
   409 		ret
       
   410 ; End of function Page7D_2B62
       
   411 
       
   412 
       
   413 ; =============== S U B	R O U T	I N E =======================================
       
   414 
       
   415 
       
   416 p7Dsub_4211:				; CODE XREF: Page7D_2B62+CDp
       
   417 					; Page7D_2B62+DBp ...
       
   418 		call	p7Dsub_4243
       
   419 ; End of function p7Dsub_4211
       
   420 
       
   421 
       
   422 ; =============== S U B	R O U T	I N E =======================================
       
   423 
       
   424 
       
   425 p7Dsub_4214:				; CODE XREF: Page7D_2B62:p7Dloc_41B2p
       
   426 					; Page7D_2B62:p7Dloc_41C0p
       
   427 		call	p7Dsub_522B
       
   428 		ld	bc, 66h	; 'f'
       
   429 
       
   430 p7Dloc_421A:				; CODE XREF: p7Dsub_4261+6j p7Dsub_427F+6j ...
       
   431 		ld	de, tempSwapArea
       
   432 
       
   433 p7Dloc_421D:				; CODE XREF: p7Dsub_4269+9j p7Dsub_42A2+9j
       
   434 		call	Page7D_2BEC
       
   435 		ex	de, hl
       
   436 		call	p7Dsub_7700
       
   437 		call	p7Dsub_7666
       
   438 		ret
       
   439 ; End of function p7Dsub_4214
       
   440 
       
   441 
       
   442 ; =============== S U B	R O U T	I N E =======================================
       
   443 
       
   444 
       
   445 p7Dsub_4228:				; CODE XREF: Page7D_2B62+D3p
       
   446 		call	p7Dsub_521D
       
   447 		ld	bc, 0E8h ; '�'
       
   448 		jr	p7Dloc_423E
       
   449 ; End of function p7Dsub_4228
       
   450 
       
   451 
       
   452 ; =============== S U B	R O U T	I N E =======================================
       
   453 
       
   454 
       
   455 p7Dsub_4230:				; CODE XREF: Page7D_2B62+E1p
       
   456 		call	p7Dsub_5236
       
   457 		ld	bc, 0C8h ; '�'
       
   458 		jr	p7Dloc_423E
       
   459 ; End of function p7Dsub_4230
       
   460 
       
   461 
       
   462 ; =============== S U B	R O U T	I N E =======================================
       
   463 
       
   464 
       
   465 p7Dsub_4238:				; CODE XREF: Page7D_2B62+EFp
       
   466 					; Page7D_2B62+100p
       
   467 		call	p7Dsub_522B
       
   468 		ld	bc, 66h	; 'f'
       
   469 
       
   470 p7Dloc_423E:				; CODE XREF: p7Dsub_4228+6j p7Dsub_4230+6j
       
   471 		call	Page7D_2BEC
       
   472 		jr	p7Dloc_4249
       
   473 ; End of function p7Dsub_4238
       
   474 
       
   475 
       
   476 ; =============== S U B	R O U T	I N E =======================================
       
   477 
       
   478 
       
   479 p7Dsub_4243:				; CODE XREF: p7Dsub_4211p	Page7D_2B86+13p
       
   480 		call	p7Dsub_522B
       
   481 		ld	bc, 66h	; 'f'
       
   482 
       
   483 p7Dloc_4249:				; CODE XREF: p7Dsub_4238+9j p7Dsub_4274+6j ...
       
   484 		ld	de, tempSwapArea
       
   485 ; End of function p7Dsub_4243
       
   486 
       
   487 
       
   488 ; =============== S U B	R O U T	I N E =======================================
       
   489 
       
   490 
       
   491 p7Dsub_424C:				; CODE XREF: p7Dsub_4253+9j p7Dsub_42DF+12p	...
       
   492 		call	p7Dsub_7700
       
   493 		call	FlashToRam
       
   494 		ret
       
   495 ; End of function p7Dsub_424C
       
   496 
       
   497 
       
   498 ; =============== S U B	R O U T	I N E =======================================
       
   499 
       
   500 
       
   501 p7Dsub_4253:				; CODE XREF: Page7D_2B86+16p
       
   502 					; Page7D_2B86+1Ep
       
   503 		call	Page7D_2B80
       
   504 		ld	bc, 20h	; ' '
       
   505 		ld	de, 836Dh
       
   506 		jr	p7Dsub_424C
       
   507 ; End of function p7Dsub_4253
       
   508 
       
   509 
       
   510 ; =============== S U B	R O U T	I N E =======================================
       
   511 
       
   512 
       
   513 p7Dsub_425E:				; CODE XREF: Page7D_2B62+D0p
       
   514 					; Page7D_2B62+E9p ...
       
   515 		call	p7Dsub_4274
       
   516 ; End of function p7Dsub_425E
       
   517 
       
   518 
       
   519 ; =============== S U B	R O U T	I N E =======================================
       
   520 
       
   521 
       
   522 p7Dsub_4261:				; CODE XREF: Page7D_2B62:p7Dloc_41A4p
       
   523 		call	p7Dsub_5236
       
   524 		ld	bc, 0C8h ; '�'
       
   525 		jr	p7Dloc_421A
       
   526 ; End of function p7Dsub_4261
       
   527 
       
   528 
       
   529 ; =============== S U B	R O U T	I N E =======================================
       
   530 
       
   531 
       
   532 p7Dsub_4269:				; CODE XREF: Page7D_2B62+FAp
       
   533 		call	p7Dsub_5236
       
   534 		ld	bc, 0C8h ; '�'
       
   535 		ld	de, ramStart
       
   536 		jr	p7Dloc_421D
       
   537 ; End of function p7Dsub_4269
       
   538 
       
   539 
       
   540 ; =============== S U B	R O U T	I N E =======================================
       
   541 
       
   542 
       
   543 p7Dsub_4274:				; CODE XREF: p7Dsub_425Ep
       
   544 					; Page7D_2B86:p7Dloc_47D1p
       
   545 		call	p7Dsub_5236
       
   546 		ld	bc, 0C8h ; '�'
       
   547 		jr	p7Dloc_4249
       
   548 ; End of function p7Dsub_4274
       
   549 
       
   550 
       
   551 ; =============== S U B	R O U T	I N E =======================================
       
   552 
       
   553 
       
   554 p7Dsub_427C:				; CODE XREF: Page7D_2B62+DEp
       
   555 					; Page7D_2B62+ECp
       
   556 		call	p7Dsub_4287
       
   557 ; End of function p7Dsub_427C
       
   558 
       
   559 
       
   560 ; =============== S U B	R O U T	I N E =======================================
       
   561 
       
   562 
       
   563 p7Dsub_427F:				; CODE XREF: Page7D_2B62+CAp
       
   564 					; Page7D_2B62:p7Dloc_41DFp
       
   565 		call	p7Dsub_521D
       
   566 		ld	bc, 0E8h ; '�'
       
   567 		jr	p7Dloc_421A
       
   568 ; End of function p7Dsub_427F
       
   569 
       
   570 
       
   571 ; =============== S U B	R O U T	I N E =======================================
       
   572 
       
   573 
       
   574 p7Dsub_4287:				; CODE XREF: p7Dsub_427Cp
       
   575 					; Page7D_2B86:p7Dloc_47D9p
       
   576 		call	p7Dsub_521D
       
   577 		ld	bc, 0E8h ; '�'
       
   578 		jr	p7Dloc_4249
       
   579 ; End of function p7Dsub_4287
       
   580 
       
   581 
       
   582 ; =============== S U B	R O U T	I N E =======================================
       
   583 
       
   584 
       
   585 p7Dsub_428F:				; CODE XREF: Page7D_2B62+FDp
       
   586 					; Page7D_2B62+10Bp
       
   587 		call	p7Dsub_429A
       
   588 		call	p7Dsub_521D
       
   589 		ld	bc, 0C8h ; '�'
       
   590 		jr	p7Dloc_421A
       
   591 ; End of function p7Dsub_428F
       
   592 
       
   593 
       
   594 ; =============== S U B	R O U T	I N E =======================================
       
   595 
       
   596 
       
   597 p7Dsub_429A:				; CODE XREF: p7Dsub_428Fp
       
   598 		call	p7Dsub_521D
       
   599 		ld	bc, 0C8h ; '�'
       
   600 		jr	p7Dloc_4249
       
   601 ; End of function p7Dsub_429A
       
   602 
       
   603 
       
   604 ; =============== S U B	R O U T	I N E =======================================
       
   605 
       
   606 
       
   607 p7Dsub_42A2:				; CODE XREF: Page7D_2B62+F7p
       
   608 					; Page7D_2B62:p7Dloc_41D1p
       
   609 		call	p7Dsub_523C
       
   610 		ld	bc, 20h	; ' '
       
   611 		ld	de, 836Dh
       
   612 		jp	p7Dloc_421D
       
   613 ; End of function p7Dsub_42A2
       
   614 
       
   615 
       
   616 ; =============== S U B	R O U T	I N E =======================================
       
   617 
       
   618 
       
   619 p7Dsub_42AE:				; CODE XREF: Page7D_2B62+13Ep
       
   620 					; p7Dsub_42AE+23j	...
       
   621 		push	bc
       
   622 		push	hl
       
   623 		push	de
       
   624 		call	FindSwapSector
       
   625 		inc	a
       
   626 		ld	de, OP1
       
   627 		ld	bc, 1
       
   628 		call	FlashToRam
       
   629 		pop	de
       
   630 		push	de
       
   631 		ld	hl, OP1
       
   632 		call	p7Dsub_7700
       
   633 		call	p7Dsub_7663
       
   634 		pop	de
       
   635 		pop	hl
       
   636 		inc	hl
       
   637 		inc	de
       
   638 		pop	bc
       
   639 		dec	bc
       
   640 		ld	a, c
       
   641 		or	b
       
   642 		jr	nz, p7Dsub_42AE
       
   643 ; End of function p7Dsub_42AE
       
   644 
       
   645 
       
   646 ; =============== S U B	R O U T	I N E =======================================
       
   647 
       
   648 
       
   649 p7Dsub_42D3:				; CODE XREF: p7Dsub_42DF+3p seg001:57F5p
       
   650 		call	FindSwapSector
       
   651 		push	af
       
   652 		rst	28h
       
   653 ; ---------------------------------------------------------------------------
       
   654 		.dw 8084h
       
   655 ; ---------------------------------------------------------------------------
       
   656 		pop	af
       
   657 		call	Page7D_2C40
       
   658 		ret
       
   659 ; End of function p7Dsub_42D3
       
   660 
       
   661 
       
   662 ; =============== S U B	R O U T	I N E =======================================
       
   663 
       
   664 
       
   665 p7Dsub_42DF:				; CODE XREF: Page7D_2B62+36p
       
   666 					; p7Dsub_468A+19p
       
   667 		push	bc
       
   668 		push	hl
       
   669 		push	de
       
   670 		call	p7Dsub_42D3
       
   671 		pop	de
       
   672 		pop	hl
       
   673 		pop	bc
       
   674 
       
   675 p7Dloc_42E8:				; CODE XREF: p7Dsub_42DF+2Cj
       
   676 		push	bc
       
   677 		push	hl
       
   678 		push	de
       
   679 		ld	de, OP1
       
   680 		ld	bc, 1
       
   681 		call	p7Dsub_424C
       
   682 		pop	de
       
   683 		push	de
       
   684 		ld	hl, OP1
       
   685 		call	FindSwapSector
       
   686 		inc	a
       
   687 		ld	bc, 1
       
   688 		rst	28h
       
   689 ; ---------------------------------------------------------------------------
       
   690 		.dw 8087h
       
   691 ; ---------------------------------------------------------------------------
       
   692 		pop	de
       
   693 		pop	hl
       
   694 		inc	hl
       
   695 		inc	de
       
   696 		pop	bc
       
   697 		dec	bc
       
   698 		ld	a, c
       
   699 		or	b
       
   700 		jr	nz, p7Dloc_42E8
       
   701 		ret
       
   702 ; End of function p7Dsub_42DF
       
   703 
       
   704 
       
   705 ; =============== S U B	R O U T	I N E =======================================
       
   706 
       
   707 
       
   708 p7Dsub_430E:				; CODE XREF: p7Dsub_468A+33p p7Dsub_5083-Fp
       
   709 		push	bc
       
   710 		push	de
       
   711 		ld	a, 2
       
   712 		call	Page7D_2B62
       
   713 		rst	28h
       
   714 ; ---------------------------------------------------------------------------
       
   715 		.dw 802Dh
       
   716 ; ---------------------------------------------------------------------------
       
   717 		push	hl
       
   718 		rst	28h
       
   719 ; ---------------------------------------------------------------------------
       
   720 		.dw 8057h
       
   721 ; ---------------------------------------------------------------------------
       
   722 		ld	de, 1F18h
       
   723 		call	NZIf83Plus
       
   724 		jr	nz, p7Dloc_4327
       
   725 		ld	de, 1DEAh
       
   726 
       
   727 p7Dloc_4327:				; CODE XREF: p7Dsub_430E+14j
       
   728 		add	hl, de
       
   729 		pop	de
       
   730 		or	a
       
   731 		sbc	hl, de
       
   732 		jr	c, p7Dloc_433D
       
   733 		sbc	hl, bc
       
   734 		jr	c, p7Dloc_433D
       
   735 		rst	28h
       
   736 ; ---------------------------------------------------------------------------
       
   737 		.dw 802Dh
       
   738 ; ---------------------------------------------------------------------------
       
   739 		pop	de
       
   740 		ex	de, hl
       
   741 		pop	bc
       
   742 		call	p7Dsub_4083
       
   743 		xor	a
       
   744 		ret
       
   745 ; ---------------------------------------------------------------------------
       
   746 
       
   747 p7Dloc_433D:				; CODE XREF: p7Dsub_430E+1Ej p7Dsub_430E+22j
       
   748 		pop	de
       
   749 		pop	de
       
   750 		ret
       
   751 ; End of function p7Dsub_430E
       
   752 
       
   753 ; ---------------------------------------------------------------------------
       
   754 
       
   755 Page7D_2BCE:
       
   756 		push	hl
       
   757 		call	p7Dsub_4894
       
   758 		call	p7Dsub_4574
       
   759 		push	bc
       
   760 		push	hl
       
   761 		call	p7Dsub_4894
       
   762 		push	hl
       
   763 		pop	bc
       
   764 		pop	hl
       
   765 		sbc	hl, bc
       
   766 		push	hl
       
   767 		pop	bc
       
   768 		pop	hl
       
   769 		adc	hl, bc
       
   770 		push	hl
       
   771 		pop	bc
       
   772 		call	p7Dsub_4894
       
   773 		rst	28h
       
   774 ; ---------------------------------------------------------------------------
       
   775 		.dw 808Dh
       
   776 ; ---------------------------------------------------------------------------
       
   777 
       
   778 p7Dloc_435E:				; CODE XREF: seg001:4378j
       
   779 		push	hl
       
   780 		push	bc
       
   781 		ld	bc, 1
       
   782 		ld	de, tempSwapArea
       
   783 		call	p7Dsub_424C
       
   784 		ld	bc, 1
       
   785 		ld	hl, tempSwapArea
       
   786 		rst	28h
       
   787 ; ---------------------------------------------------------------------------
       
   788 		.dw 8090h
       
   789 ; ---------------------------------------------------------------------------
       
   790 		pop	bc
       
   791 		pop	hl
       
   792 		inc	hl
       
   793 		dec	bc
       
   794 		ld	a, b
       
   795 		or	c
       
   796 		jr	nz, p7Dloc_435E
       
   797 		rst	28h
       
   798 ; ---------------------------------------------------------------------------
       
   799 		.dw 8018h
       
   800 ; ---------------------------------------------------------------------------
       
   801 		call	p7Dsub_4894
       
   802 		call	p7Dsub_7700
       
   803 		call	p7Dsub_55CE
       
   804 		jp	nz, p7Dloc_43EC
       
   805 		ld	hl, tempSwapArea
       
   806 		push	af
       
   807 		push	bc
       
   808 		push	de
       
   809 		push	hl
       
   810 		call	p7Dsub_4894
       
   811 		inc	hl
       
   812 		call	p7Dsub_4566
       
   813 		and	0F0h ; '�'
       
   814 		ld	hl, 310h
       
   815 		cp	l
       
   816 		jr	nz, p7Dloc_43B9
       
   817 		call	p7Dsub_7700
       
   818 		call	p7Dsub_762A
       
   819 		call	p7Dsub_4442
       
   820 		jr	nz, p7Dloc_43DA
       
   821 		adc	hl, bc
       
   822 		call	p7Dsub_7700
       
   823 		ld	de, 830h
       
   824 		rst	28h
       
   825 ; ---------------------------------------------------------------------------
       
   826 		.dw 8030h
       
   827 ; ---------------------------------------------------------------------------
       
   828 		jr	nz, p7Dloc_43DA
       
   829 		jr	p7Dloc_43CF
       
   830 ; ---------------------------------------------------------------------------
       
   831 
       
   832 p7Dloc_43B9:				; CODE XREF: seg001:439Dj
       
   833 		ld	hl, 320h
       
   834 		cp	l
       
   835 		jr	nz, p7Dloc_43C4
       
   836 		rst	28h
       
   837 ; ---------------------------------------------------------------------------
       
   838 		.dw 80CCh
       
   839 ; ---------------------------------------------------------------------------
       
   840 		jr	p7Dloc_43DA
       
   841 ; ---------------------------------------------------------------------------
       
   842 
       
   843 p7Dloc_43C4:				; CODE XREF: seg001:43BDj
       
   844 		ld	de, 0A20h
       
   845 		rst	28h
       
   846 ; ---------------------------------------------------------------------------
       
   847 		.dw 8027h
       
   848 ; ---------------------------------------------------------------------------
       
   849 		jr	nz, p7Dloc_43DA
       
   850 		call	p7Dsub_4574
       
   851 
       
   852 p7Dloc_43CF:				; CODE XREF: seg001:43B7j
       
   853 		dec	hl
       
   854 		inc	bc
       
   855 		call	p7Dsub_7700
       
   856 		ld	de, ramStart
       
   857 		rst	28h
       
   858 ; ---------------------------------------------------------------------------
       
   859 		.dw 8054h
       
   860 ; ---------------------------------------------------------------------------
       
   861 
       
   862 p7Dloc_43DA:				; CODE XREF: seg001:43A8j seg001:43B5j ...
       
   863 		pop	hl
       
   864 		pop	de
       
   865 		pop	bc
       
   866 		pop	af
       
   867 		rst	28h
       
   868 ; ---------------------------------------------------------------------------
       
   869 ; START	OF FUNCTION CHUNK FOR p7Dsub_4442
       
   870 		.dw 801Bh
       
   871 ; ---------------------------------------------------------------------------
       
   872 		ld	de, OP1
       
   873 		ld	hl, 8291h
       
   874 		rst	28h
       
   875 ; ---------------------------------------------------------------------------
       
   876 		.dw 801Eh
       
   877 ; ---------------------------------------------------------------------------
       
   878 		jr	z, p7Dloc_43F4
       
   879 
       
   880 p7Dloc_43EC:				; CODE XREF: seg001:4386j
       
   881 		push	af
       
   882 		call	p7Dsub_4894
       
   883 		rst	28h
       
   884 ; ---------------------------------------------------------------------------
       
   885 		.dw 8060h
       
   886 ; ---------------------------------------------------------------------------
       
   887 		pop	af
       
   888 
       
   889 p7Dloc_43F4:				; CODE XREF: p7Dsub_4442-58j
       
   890 		pop	hl
       
   891 		ret
       
   892 ; END OF FUNCTION CHUNK	FOR p7Dsub_4442
       
   893 
       
   894 ; =============== S U B	R O U T	I N E =======================================
       
   895 
       
   896 
       
   897 p7Dsub_43F6:				; CODE XREF: seg001:7739p
       
   898 		push	af
       
   899 		call	p7Dsub_5525
       
   900 		jr	nz, P1orAret
       
   901 		push	af
       
   902 		inc	hl
       
   903 		rst	28h
       
   904 ; ---------------------------------------------------------------------------
       
   905 		.dw 805Ah
       
   906 ; ---------------------------------------------------------------------------
       
   907 		add	hl, bc
       
   908 		pop	af
       
   909 		push	af
       
   910 		rst	28h
       
   911 ; ---------------------------------------------------------------------------
       
   912 		.dw 8051h
       
   913 ; ---------------------------------------------------------------------------
       
   914 		ld	(unk_83E6), a
       
   915 		inc	hl
       
   916 		pop	af
       
   917 		rst	28h
       
   918 ; ---------------------------------------------------------------------------
       
   919 		.dw 8051h
       
   920 ; ---------------------------------------------------------------------------
       
   921 		ld	(unk_83E7), a
       
   922 		pop	af
       
   923 		rst	28h
       
   924 ; ---------------------------------------------------------------------------
       
   925 		.dw 809Fh
       
   926 ; ---------------------------------------------------------------------------
       
   927 		ld	hl, tempSwapArea
       
   928 		rst	28h
       
   929 ; ---------------------------------------------------------------------------
       
   930 		.dw 80A2h
       
   931 ; ---------------------------------------------------------------------------
       
   932 		rst	28h
       
   933 ; ---------------------------------------------------------------------------
       
   934 		.dw 80A5h
       
   935 ; ---------------------------------------------------------------------------
       
   936 		ld	de, MD5Buffer
       
   937 		ld	hl, OP1
       
   938 		rst	28h
       
   939 ; ---------------------------------------------------------------------------
       
   940 		.dw 801Eh
       
   941 ; ---------------------------------------------------------------------------
       
   942 		ret
       
   943 ; ---------------------------------------------------------------------------
       
   944 
       
   945 P1orAret:				; CODE XREF: p7Dsub_43F6+4j
       
   946 		pop	af
       
   947 		or	a
       
   948 		ret
       
   949 ; End of function p7Dsub_43F6
       
   950 
       
   951 ; ---------------------------------------------------------------------------
       
   952 
       
   953 p7Dloc_442C:				; CODE XREF: seg001:44C9p p7Dsub_5B4D+1Dp
       
   954 		push	hl
       
   955 		push	af
       
   956 		ld	c, a
       
   957 		ld	de, 400h
       
   958 		rst	28h
       
   959 ; ---------------------------------------------------------------------------
       
   960 		.dw 805Dh
       
   961 ; ---------------------------------------------------------------------------
       
   962 		jr	nz, locret_4441
       
   963 		inc	hl
       
   964 		ld	a, c
       
   965 		push	de
       
   966 		rst	28h
       
   967 ; ---------------------------------------------------------------------------
       
   968 		.dw 805Ah
       
   969 ; ---------------------------------------------------------------------------
       
   970 		pop	de
       
   971 		ex	de, hl
       
   972 		pop	af
       
   973 		pop	hl
       
   974 
       
   975 locret_4441:				; CODE XREF: seg001:4435j
       
   976 		ret
       
   977 
       
   978 ; =============== S U B	R O U T	I N E =======================================
       
   979 
       
   980 
       
   981 p7Dsub_4442:				; CODE XREF: seg001:43A5p p7Dsub_4490+2p	...
       
   982 
       
   983 ; FUNCTION CHUNK AT 43DF SIZE 00000017 BYTES
       
   984 
       
   985 		push	hl
       
   986 		push	bc
       
   987 		call	p7Dsub_70D1
       
   988 		ld	de, 800h
       
   989 		call	p7Dsub_777E
       
   990 		call	p7Dsub_4574
       
   991 		pop	bc
       
   992 		pop	de
       
   993 
       
   994 p7Dloc_4452:				; CODE XREF: p7Dsub_4442+45j
       
   995 		push	de
       
   996 		push	bc
       
   997 		push	bc
       
   998 		push	de
       
   999 		ld	de, 810h
       
  1000 		call	p7Dsub_7700
       
  1001 		rst	28h
       
  1002 ; ---------------------------------------------------------------------------
       
  1003 		.dw 8030h
       
  1004 ; ---------------------------------------------------------------------------
       
  1005 		pop	de
       
  1006 		ld	a, c
       
  1007 		pop	bc
       
  1008 		jr	nz, p7Dloc_4489
       
  1009 		cp	c
       
  1010 		push	hl
       
  1011 		ld	c, a
       
  1012 		ld	b, 0
       
  1013 		push	bc
       
  1014 		jr	nz, p7Dloc_4482
       
  1015 		ld	b, c
       
  1016 
       
  1017 p7Dloc_446D:				; CODE XREF: p7Dsub_4442+35j
       
  1018 		call	p7Dsub_7700
       
  1019 		call	p7Dsub_4C73
       
  1020 		jr	nz, p7Dloc_4482
       
  1021 		inc	de
       
  1022 		inc	hl
       
  1023 		djnz	p7Dloc_446D
       
  1024 		pop	bc
       
  1025 		pop	hl
       
  1026 		pop	bc
       
  1027 		pop	de
       
  1028 		ld	a, 0
       
  1029 		bit	7, a
       
  1030 		ret
       
  1031 ; ---------------------------------------------------------------------------
       
  1032 
       
  1033 p7Dloc_4482:				; CODE XREF: p7Dsub_4442+28j p7Dsub_4442+31j
       
  1034 		pop	bc
       
  1035 		pop	hl
       
  1036 		add	hl, bc
       
  1037 		pop	bc
       
  1038 		pop	de
       
  1039 		jr	p7Dloc_4452
       
  1040 ; ---------------------------------------------------------------------------
       
  1041 
       
  1042 p7Dloc_4489:				; CODE XREF: p7Dsub_4442+20j
       
  1043 		pop	bc
       
  1044 		pop	de
       
  1045 		ld	a, 0FFh
       
  1046 		bit	7, a
       
  1047 		ret
       
  1048 ; End of function p7Dsub_4442
       
  1049 
       
  1050 
       
  1051 ; =============== S U B	R O U T	I N E =======================================
       
  1052 
       
  1053 
       
  1054 p7Dsub_4490:				; CODE XREF: seg001:4722p
       
  1055 		push	hl
       
  1056 		push	bc
       
  1057 		call	p7Dsub_4442
       
  1058 		pop	bc
       
  1059 		pop	hl
       
  1060 		ret
       
  1061 ; End of function p7Dsub_4490
       
  1062 
       
  1063 
       
  1064 ; =============== S U B	R O U T	I N E =======================================
       
  1065 
       
  1066 
       
  1067 p7Dsub_4498:				; CODE XREF: seg001:45A1p
       
  1068 		call	p7Dsub_7700
       
  1069 		call	p7Dsub_4894
       
  1070 		call	p7Dsub_7700
       
  1071 		call	p7Dsub_4873
       
  1072 		call	p7Dsub_70D1
       
  1073 		jr	nz, p7Dloc_44B8
       
  1074 		call	p7Dsub_7700
       
  1075 		push	bc
       
  1076 		call	p7Dsub_4873
       
  1077 		push	bc
       
  1078 		pop	hl
       
  1079 		pop	bc
       
  1080 		or	a
       
  1081 		sbc	hl, bc
       
  1082 		jr	nc, p7Dloc_44BE
       
  1083 
       
  1084 p7Dloc_44B8:				; CODE XREF: p7Dsub_4498+Fj
       
  1085 		ld	a, 0
       
  1086 		bit	7, a
       
  1087 		jr	locret_44C2
       
  1088 ; ---------------------------------------------------------------------------
       
  1089 
       
  1090 p7Dloc_44BE:				; CODE XREF: p7Dsub_4498+1Ej
       
  1091 		ld	a, 0FFh
       
  1092 		bit	7, a
       
  1093 
       
  1094 locret_44C2:				; CODE XREF: p7Dsub_4498+24j
       
  1095 		ret
       
  1096 ; End of function p7Dsub_4498
       
  1097 
       
  1098 ; ---------------------------------------------------------------------------
       
  1099 
       
  1100 p7Dloc_44C3:				; CODE XREF: seg001:459Cp
       
  1101 		call	p7Dsub_4894
       
  1102 		call	p7Dsub_7700
       
  1103 		call	p7Dloc_442C
       
  1104 		push	de
       
  1105 		push	bc
       
  1106 		ld	de, 0A10h
       
  1107 		rst	28h
       
  1108 ; ---------------------------------------------------------------------------
       
  1109 		.dw 8027h
       
  1110 ; ---------------------------------------------------------------------------
       
  1111 		push	de
       
  1112 		call	p7Dsub_4574
       
  1113 		pop	de
       
  1114 		ld	a, c
       
  1115 		pop	bc
       
  1116 		cp	c
       
  1117 		jr	nz, p7Dloc_44F7
       
  1118 		ex	de, hl
       
  1119 		pop	hl
       
  1120 		ld	b, c
       
  1121 
       
  1122 p7Dloc_44E1:				; CODE XREF: seg001:44F5j
       
  1123 		ex	de, hl
       
  1124 		call	p7Dsub_4566
       
  1125 		ld	c, a
       
  1126 		ex	de, hl
       
  1127 		call	p7Dsub_4566
       
  1128 		cp	c
       
  1129 		jr	nz, locret_44F8
       
  1130 		dec	b
       
  1131 		ld	a, b
       
  1132 		cp	0
       
  1133 		jr	z, locret_44F8
       
  1134 		inc	hl
       
  1135 		inc	de
       
  1136 		jr	p7Dloc_44E1
       
  1137 ; ---------------------------------------------------------------------------
       
  1138 
       
  1139 p7Dloc_44F7:				; CODE XREF: seg001:44DCj
       
  1140 		pop	bc
       
  1141 
       
  1142 locret_44F8:				; CODE XREF: seg001:44EBj seg001:44F1j
       
  1143 		ret
       
  1144 ; ---------------------------------------------------------------------------
       
  1145 
       
  1146 Page7D_2BFE:
       
  1147 		push	af
       
  1148 		ld	a, 1
       
  1149 		nop
       
  1150 		di
       
  1151 		nop
       
  1152 		nop
       
  1153 		im	1
       
  1154 		di
       
  1155 		out	(14h), a
       
  1156 		di
       
  1157 		call	checkForFlashTrickery
       
  1158 		pop	af
       
  1159 		call	p7Dsub_7700
       
  1160 		call	p7Dsub_4894
       
  1161 		call	p7Dsub_4574
       
  1162 		call	p7Dsub_7700
       
  1163 		call	p7Dsub_50C5
       
  1164 		jr	nz, p7Dloc_4530
       
  1165 		ld	de, 320h
       
  1166 		rst	28h
       
  1167 ; ---------------------------------------------------------------------------
       
  1168 		.dw 8027h
       
  1169 ; ---------------------------------------------------------------------------
       
  1170 		jr	nz, p7Dloc_4529
       
  1171 		call	p7Dsub_7700
       
  1172 		rst	28h
       
  1173 ; ---------------------------------------------------------------------------
       
  1174 		.dw 802Ah
       
  1175 ; ---------------------------------------------------------------------------
       
  1176 
       
  1177 p7Dloc_4529:				; CODE XREF: seg001:4521j
       
  1178 		call	p7Dsub_4894
       
  1179 		call	p7Dsub_5083
       
  1180 		xor	a
       
  1181 
       
  1182 p7Dloc_4530:				; CODE XREF: seg001:4519j
       
  1183 		jp	relockFlashBack
       
  1184 
       
  1185 ; =============== S U B	R O U T	I N E =======================================
       
  1186 
       
  1187 
       
  1188 p7Dsub_4533:				; CODE XREF: seg001:4599p
       
  1189 		call	Page7D_2B80
       
  1190 		call	p7Dsub_4566
       
  1191 		ld	(unk_8439+1), a
       
  1192 		inc	hl
       
  1193 		call	p7Dsub_4566
       
  1194 		ld	(unk_843B), a
       
  1195 		call	NZIf83Plus
       
  1196 		ret	nz
       
  1197 		inc	hl
       
  1198 		call	p7Dsub_7700
       
  1199 		ld	bc, 0Bh
       
  1200 		ld	de, 9C9Eh
       
  1201 		call	FlashToRam
       
  1202 		ld	hl, 9CA8h
       
  1203 		ld	a, 0FEh	; '�'
       
  1204 		or	(hl)
       
  1205 		ld	(hl), a
       
  1206 		ret
       
  1207 ; End of function p7Dsub_4533
       
  1208 
       
  1209 
       
  1210 ; =============== S U B	R O U T	I N E =======================================
       
  1211 
       
  1212 
       
  1213 p7Dsub_455C:				; CODE XREF: p7Dsub_7D67+5Cp p7Dsub_7D67+8Ap
       
  1214 		call	p7Dsub_4565
       
  1215 		ld	e, a
       
  1216 		call	p7Dsub_4565
       
  1217 		ld	d, a
       
  1218 		ret
       
  1219 ; End of function p7Dsub_455C
       
  1220 
       
  1221 
       
  1222 ; =============== S U B	R O U T	I N E =======================================
       
  1223 
       
  1224 
       
  1225 p7Dsub_4565:				; CODE XREF: p7Dsub_455Cp	p7Dsub_455C+4p ...
       
  1226 		inc	hl
       
  1227 ; End of function p7Dsub_4565
       
  1228 
       
  1229 
       
  1230 ; =============== S U B	R O U T	I N E =======================================
       
  1231 
       
  1232 
       
  1233 p7Dsub_4566:				; CODE XREF: Page7D_2B62+9p
       
  1234 					; Page7D_2B62:p7Dloc_4117p ...
       
  1235 		call	p7Dsub_7700
       
  1236 		call	Page7D_2CD0
       
  1237 		ret
       
  1238 ; End of function p7Dsub_4566
       
  1239 
       
  1240 
       
  1241 ; =============== S U B	R O U T	I N E =======================================
       
  1242 
       
  1243 
       
  1244 p7Dsub_456D:				; CODE XREF: Page7D_2B62+11Cp
       
  1245 					; Page7D_2B62+12Cp ...
       
  1246 		call	p7Dsub_7700
       
  1247 		rst	28h
       
  1248 ; ---------------------------------------------------------------------------
       
  1249 		.dw 8021h
       
  1250 ; ---------------------------------------------------------------------------
       
  1251 		ret
       
  1252 ; End of function p7Dsub_456D
       
  1253 
       
  1254 
       
  1255 ; =============== S U B	R O U T	I N E =======================================
       
  1256 
       
  1257 
       
  1258 p7Dsub_4574:				; CODE XREF: Page7D_2B62+21p
       
  1259 					; Page7D_2B62+25p ...
       
  1260 		inc	hl
       
  1261 
       
  1262 p7Dloc_4575:				; CODE XREF: p7Dsub_4F95+47p seg001:5F60p
       
  1263 		call	p7Dsub_7700
       
  1264 		rst	28h
       
  1265 ; ---------------------------------------------------------------------------
       
  1266 		.dw 805Ah
       
  1267 ; ---------------------------------------------------------------------------
       
  1268 		ret
       
  1269 ; End of function p7Dsub_4574
       
  1270 
       
  1271 
       
  1272 ; =============== S U B	R O U T	I N E =======================================
       
  1273 
       
  1274 
       
  1275 p7Dsub_457C:				; CODE XREF: Page7D_2BB0+4p
       
  1276 					; Page7D_2B62+126p ...
       
  1277 		call	p7Dsub_7700
       
  1278 		rst	28h
       
  1279 ; ---------------------------------------------------------------------------
       
  1280 		.dw 8024h
       
  1281 ; ---------------------------------------------------------------------------
       
  1282 		ret
       
  1283 ; End of function p7Dsub_457C
       
  1284 
       
  1285 ; ---------------------------------------------------------------------------
       
  1286 
       
  1287 Page7D_2BD4:
       
  1288 		push	af
       
  1289 		ld	a, 1
       
  1290 		nop
       
  1291 		di
       
  1292 		nop
       
  1293 		nop
       
  1294 		im	1
       
  1295 		di
       
  1296 		out	(14h), a
       
  1297 		di
       
  1298 		call	checkForFlashTrickery
       
  1299 		pop	af
       
  1300 		push	bc
       
  1301 		push	de
       
  1302 		push	hl
       
  1303 		push	ix
       
  1304 		call	p7Dsub_4533
       
  1305 		call	p7Dloc_44C3
       
  1306 		jr	nz, p7Dloc_45D9
       
  1307 		call	p7Dsub_4498
       
  1308 		jr	nz, p7Dloc_45D9
       
  1309 		call	p7Dsub_50A8
       
  1310 
       
  1311 p7Dloc_45A9:
       
  1312 		call	p7Dsub_4C8B
       
  1313 		res	6, (iy+24h)
       
  1314 		xor	a
       
  1315 		ld	(unk_9C87), a
       
  1316 		call	p7Dsub_70D1
       
  1317 		ld	bc, 0
       
  1318 		jr	nz, p7Dloc_45BF
       
  1319 		rst	28h
       
  1320 ; ---------------------------------------------------------------------------
       
  1321 		.dw 802Ah
       
  1322 ; ---------------------------------------------------------------------------
       
  1323 
       
  1324 p7Dloc_45BF:				; CODE XREF: seg001:45BAj
       
  1325 		call	p7Dsub_468A
       
  1326 		call	p7Dsub_70D1
       
  1327 		call	p7Dsub_45E4
       
  1328 		ld	a, 0
       
  1329 		bit	7, a
       
  1330 
       
  1331 p7Dloc_45CC:				; CODE XREF: seg001:45E2j
       
  1332 		push	af
       
  1333 		call	p7Dsub_4926
       
  1334 		pop	af
       
  1335 		pop	ix
       
  1336 		pop	hl
       
  1337 		pop	de
       
  1338 		pop	bc
       
  1339 		jp	relockFlashBack
       
  1340 ; ---------------------------------------------------------------------------
       
  1341 
       
  1342 p7Dloc_45D9:				; CODE XREF: seg001:459Fj seg001:45A4j
       
  1343 		call	p7Dsub_4894
       
  1344 		rst	28h
       
  1345 ; ---------------------------------------------------------------------------
       
  1346 		.dw 8060h
       
  1347 ; ---------------------------------------------------------------------------
       
  1348 		ld	a, 0FFh
       
  1349 		or	a
       
  1350 		jr	p7Dloc_45CC
       
  1351 
       
  1352 ; =============== S U B	R O U T	I N E =======================================
       
  1353 
       
  1354 
       
  1355 p7Dsub_45E4:				; CODE XREF: seg001:45C5p seg001:4794p
       
  1356 		push	bc
       
  1357 		push	de
       
  1358 		ld	a, (unk_8439+1)
       
  1359 		ld	b, a
       
  1360 		call	Page7D_2B80
       
  1361 		ex	de, hl
       
  1362 		call	p7Dsub_456D
       
  1363 		ld	a, (unk_843B)
       
  1364 		ld	b, a
       
  1365 		call	p7Dsub_456D
       
  1366 		call	NZIf83Plus
       
  1367 		jr	nz, p7Dloc_4609
       
  1368 		call	p7Dsub_7700
       
  1369 		ld	bc, 0Bh
       
  1370 		ld	hl, 9C9Eh
       
  1371 		rst	28h
       
  1372 ; ---------------------------------------------------------------------------
       
  1373 		.dw 8087h
       
  1374 ; ---------------------------------------------------------------------------
       
  1375 
       
  1376 p7Dloc_4609:				; CODE XREF: p7Dsub_45E4+17j
       
  1377 		call	p7Dsub_70D1
       
  1378 		jr	nz, p7Dloc_464B
       
  1379 		call	p7Dsub_464E
       
  1380 		call	p7Dsub_4574
       
  1381 		add	hl, bc
       
  1382 		call	p7Dsub_70D1
       
  1383 		ld	de, 800h
       
  1384 		call	p7Dsub_777E
       
  1385 		call	p7Dsub_4574
       
  1386 
       
  1387 p7Dloc_4621:				; CODE XREF: p7Dsub_45E4+65j
       
  1388 		ld	de, 810h
       
  1389 		call	p7Dsub_7700
       
  1390 		rst	28h
       
  1391 ; ---------------------------------------------------------------------------
       
  1392 		.dw 8030h
       
  1393 ; ---------------------------------------------------------------------------
       
  1394 		jr	nz, p7Dloc_464B
       
  1395 		push	hl
       
  1396 		push	bc
       
  1397 		ld	b, c
       
  1398 		ld	(OP2), bc
       
  1399 		ld	b, 0
       
  1400 		call	p7Dsub_7700
       
  1401 		ld	de, 8484h
       
  1402 		rst	28h
       
  1403 ; ---------------------------------------------------------------------------
       
  1404 		.dw 8054h
       
  1405 ; ---------------------------------------------------------------------------
       
  1406 		rst	28h
       
  1407 ; ---------------------------------------------------------------------------
       
  1408 		.dw 8066h
       
  1409 ; ---------------------------------------------------------------------------
       
  1410 		jr	nz, p7Dloc_4646
       
  1411 		call	p7Dsub_464E
       
  1412 
       
  1413 p7Dloc_4646:				; CODE XREF: p7Dsub_45E4+5Dj
       
  1414 		pop	bc
       
  1415 		pop	hl
       
  1416 		add	hl, bc
       
  1417 		jr	p7Dloc_4621
       
  1418 ; ---------------------------------------------------------------------------
       
  1419 
       
  1420 p7Dloc_464B:				; CODE XREF: p7Dsub_45E4+28j p7Dsub_45E4+46j
       
  1421 		pop	de
       
  1422 		pop	bc
       
  1423 		ret
       
  1424 ; End of function p7Dsub_45E4
       
  1425 
       
  1426 
       
  1427 ; =============== S U B	R O U T	I N E =======================================
       
  1428 
       
  1429 
       
  1430 p7Dsub_464E:				; CODE XREF: p7Dsub_45E4+2Ap p7Dsub_45E4+5Fp
       
  1431 		push	af
       
  1432 		push	bc
       
  1433 		push	de
       
  1434 		push	hl
       
  1435 		push	ix
       
  1436 		rst	28h
       
  1437 ; ---------------------------------------------------------------------------
       
  1438 		.dw 8099h
       
  1439 ; ---------------------------------------------------------------------------
       
  1440 		ld	de, 700h
       
  1441 		call	p7Dsub_777E
       
  1442 		call	p7Dsub_4574
       
  1443 
       
  1444 p7Dloc_4660:				; CODE XREF: p7Dsub_464E+33j
       
  1445 		ld	de, 710h
       
  1446 		call	p7Dsub_705E
       
  1447 		jr	nz, p7Dloc_4683
       
  1448 		call	p7Dsub_4574
       
  1449 		push	bc
       
  1450 		push	hl
       
  1451 		call	p7Dsub_7700
       
  1452 		ld	de, 838Fh
       
  1453 		rst	28h
       
  1454 ; ---------------------------------------------------------------------------
       
  1455 		.dw 8054h
       
  1456 ; ---------------------------------------------------------------------------
       
  1457 		rst	28h
       
  1458 ; ---------------------------------------------------------------------------
       
  1459 		.dw 80A8h
       
  1460 ; ---------------------------------------------------------------------------
       
  1461 		jr	z, p7Dloc_467E
       
  1462 		call	p7Dsub_51C3
       
  1463 
       
  1464 p7Dloc_467E:				; CODE XREF: p7Dsub_464E+2Bj
       
  1465 		pop	hl
       
  1466 		pop	bc
       
  1467 		add	hl, bc
       
  1468 		jr	p7Dloc_4660
       
  1469 ; ---------------------------------------------------------------------------
       
  1470 
       
  1471 p7Dloc_4683:				; CODE XREF: p7Dsub_464E+18j
       
  1472 		pop	ix
       
  1473 		pop	hl
       
  1474 		pop	de
       
  1475 		pop	bc
       
  1476 		pop	af
       
  1477 		ret
       
  1478 ; End of function p7Dsub_464E
       
  1479 
       
  1480 
       
  1481 ; =============== S U B	R O U T	I N E =======================================
       
  1482 
       
  1483 
       
  1484 p7Dsub_468A:				; CODE XREF: seg001:p7Dloc_45BFp
       
  1485 					; seg001:477Cp
       
  1486 		call	p7Dsub_4894
       
  1487 		push	hl
       
  1488 		call	p7Dsub_4574
       
  1489 		add	hl, bc
       
  1490 		call	p7Dsub_4574
       
  1491 		add	hl, bc
       
  1492 		pop	bc
       
  1493 		push	bc
       
  1494 		or	a
       
  1495 		sbc	hl, bc
       
  1496 		push	hl
       
  1497 		pop	bc
       
  1498 		pop	hl
       
  1499 		push	bc
       
  1500 		push	hl
       
  1501 		ld	de, 4000h
       
  1502 		call	p7Dsub_42DF
       
  1503 		pop	hl
       
  1504 		push	hl
       
  1505 		rst	28h
       
  1506 ; ---------------------------------------------------------------------------
       
  1507 		.dw 8060h
       
  1508 ; ---------------------------------------------------------------------------
       
  1509 		pop	de
       
  1510 		pop	bc
       
  1511 		ld	hl, 4000h
       
  1512 		push	bc
       
  1513 		call	p7Dsub_42AE
       
  1514 		call	p7Dsub_4894
       
  1515 		pop	bc
       
  1516 		ex	de, hl
       
  1517 		ld	a, d
       
  1518 		xor	20h ; ' '
       
  1519 		ld	d, a
       
  1520 		call	p7Dsub_430E
       
  1521 		ret	z
       
  1522 ; End of function p7Dsub_468A
       
  1523 
       
  1524 ; START	OF FUNCTION CHUNK FOR p7Dsub_5083
       
  1525 
       
  1526 p7Dloc_46C1:				; CODE XREF: p7Dsub_5083-Cj
       
  1527 		call	relockFlashBack
       
  1528 		jp	JErrorNo
       
  1529 ; END OF FUNCTION CHUNK	FOR p7Dsub_5083
       
  1530 ; ---------------------------------------------------------------------------
       
  1531 
       
  1532 p7Dloc_46C7:				; CODE XREF: seg001:4728p seg001:4738p
       
  1533 		push	de
       
  1534 		push	bc
       
  1535 		call	p7Dsub_762A
       
  1536 		ld	(OP2), bc
       
  1537 		ld	de, 8484h
       
  1538 		call	p7Dsub_7700
       
  1539 		rst	28h
       
  1540 ; ---------------------------------------------------------------------------
       
  1541 		.dw 8054h
       
  1542 ; ---------------------------------------------------------------------------
       
  1543 		rst	28h
       
  1544 ; ---------------------------------------------------------------------------
       
  1545 		.dw 8066h
       
  1546 ; ---------------------------------------------------------------------------
       
  1547 		jr	nz, p7Dloc_4715
       
  1548 		push	hl
       
  1549 		ld	de, 100h
       
  1550 		call	p7Dsub_777E
       
  1551 		jr	nz, p7Dloc_4714
       
  1552 		call	p7Dsub_4574
       
  1553 		push	hl
       
  1554 		call	p7Dsub_4894
       
  1555 		ld	de, 100h
       
  1556 		call	p7Dsub_777E
       
  1557 		call	p7Dsub_4574
       
  1558 		pop	de
       
  1559 		ex	de, hl
       
  1560 		call	p7Dsub_7700
       
  1561 		call	p7Dsub_5CFF
       
  1562 		call	p7Dsub_5D1E
       
  1563 		ex	de, hl
       
  1564 		call	p7Dsub_7700
       
  1565 		call	p7Dsub_5CFF
       
  1566 		call	p7Dsub_5D43
       
  1567 		ex	de, hl
       
  1568 		or	a
       
  1569 		sbc	hl, bc
       
  1570 		ld	a, 0
       
  1571 		bit	7, a
       
  1572 
       
  1573 p7Dloc_4714:				; CODE XREF: seg001:46E5j
       
  1574 		pop	hl
       
  1575 
       
  1576 p7Dloc_4715:				; CODE XREF: seg001:46DCj
       
  1577 		pop	bc
       
  1578 		pop	de
       
  1579 		ret
       
  1580 ; ---------------------------------------------------------------------------
       
  1581 
       
  1582 Page7D_2C04:
       
  1583 		push	bc
       
  1584 		push	de
       
  1585 		push	hl
       
  1586 		call	p7Dsub_7634
       
  1587 		inc	hl
       
  1588 		rst	28h
       
  1589 ; ---------------------------------------------------------------------------
       
  1590 		.dw 805Ah
       
  1591 ; ---------------------------------------------------------------------------
       
  1592 		call	p7Dsub_4490
       
  1593 		jp	nz, p7Dloc_47A5
       
  1594 		call	p7Dloc_46C7
       
  1595 		jr	nz, p7Dloc_4746
       
  1596 		jp	nc, p7Dloc_47A5
       
  1597 		rst	28h
       
  1598 ; ---------------------------------------------------------------------------
       
  1599 		.dw 8066h
       
  1600 ; ---------------------------------------------------------------------------
       
  1601 		jr	nz, p7Dloc_4746
       
  1602 		call	p7Dsub_50A8
       
  1603 		call	p7Dloc_46C7
       
  1604 		rst	28h
       
  1605 ; ---------------------------------------------------------------------------
       
  1606 		.dw 8066h
       
  1607 ; ---------------------------------------------------------------------------
       
  1608 		call	p7Dsub_47E3
       
  1609 		rst	28h
       
  1610 ; ---------------------------------------------------------------------------
       
  1611 		.dw 802Ah
       
  1612 ; ---------------------------------------------------------------------------
       
  1613 		jr	p7Dloc_474C
       
  1614 ; ---------------------------------------------------------------------------
       
  1615 
       
  1616 p7Dloc_4746:				; CODE XREF: seg001:472Bj seg001:4733j
       
  1617 		call	p7Dsub_50A8
       
  1618 		call	p7Dsub_5124
       
  1619 
       
  1620 p7Dloc_474C:				; CODE XREF: seg001:4744j
       
  1621 		ld	de, 836Dh
       
  1622 		call	Page7D_2B80
       
  1623 		ld	bc, 20h	; ' '
       
  1624 		call	p7Dsub_7700
       
  1625 		rst	28h
       
  1626 ; ---------------------------------------------------------------------------
       
  1627 		.dw 8054h
       
  1628 ; ---------------------------------------------------------------------------
       
  1629 		call	p7Dsub_521D
       
  1630 		ld	bc, 0Dh
       
  1631 		sla	c
       
  1632 		call	p7Dsub_7700
       
  1633 		ld	de, tempSwapArea
       
  1634 		rst	28h
       
  1635 ; ---------------------------------------------------------------------------
       
  1636 		.dw 8054h
       
  1637 ; ---------------------------------------------------------------------------
       
  1638 		call	p7Dsub_762A
       
  1639 		ld	(appID), bc
       
  1640 		ld	de, 838Eh
       
  1641 		call	p7Dsub_7700
       
  1642 		rst	28h
       
  1643 ; ---------------------------------------------------------------------------
       
  1644 		.dw 8054h
       
  1645 ; ---------------------------------------------------------------------------
       
  1646 		call	p7Dsub_468A
       
  1647 		ld	bc, (appID)
       
  1648 		ld	b, 0
       
  1649 		ld	(OP2), bc
       
  1650 		ld	hl, 838Eh
       
  1651 		ld	de, 8484h
       
  1652 		ldir
       
  1653 		rst	28h
       
  1654 ; ---------------------------------------------------------------------------
       
  1655 		.dw 8066h
       
  1656 ; ---------------------------------------------------------------------------
       
  1657 		call	p7Dsub_45E4
       
  1658 		call	p7Dsub_4894
       
  1659 		rst	28h
       
  1660 ; ---------------------------------------------------------------------------
       
  1661 		.dw 8060h
       
  1662 ; ---------------------------------------------------------------------------
       
  1663 
       
  1664 p7Dloc_479D:
       
  1665 		call	p7Dsub_4926
       
  1666 		pop	hl
       
  1667 		pop	de
       
  1668 		pop	bc
       
  1669 		xor	a
       
  1670 		ret
       
  1671 ; ---------------------------------------------------------------------------
       
  1672 
       
  1673 p7Dloc_47A5:				; CODE XREF: seg001:4725j seg001:472Dj
       
  1674 		call	p7Dsub_4894
       
  1675 		rst	28h
       
  1676 ; ---------------------------------------------------------------------------
       
  1677 		.dw 8060h
       
  1678 ; ---------------------------------------------------------------------------
       
  1679 		call	p7Dsub_4926
       
  1680 		pop	hl
       
  1681 		pop	de
       
  1682 		pop	bc
       
  1683 		ld	a, 0FFh
       
  1684 		or	a
       
  1685 		ret
       
  1686 
       
  1687 ; =============== S U B	R O U T	I N E =======================================
       
  1688 
       
  1689 
       
  1690 p7Dsub_47B5:				; CODE XREF: p7Dsub_47E3+4p p7Dsub_5124+4p
       
  1691 		xor	a
       
  1692 ; End of function p7Dsub_47B5
       
  1693 
       
  1694 
       
  1695 ; =============== S U B	R O U T	I N E =======================================
       
  1696 
       
  1697 
       
  1698 Page7D_2B86:				; CODE XREF: p7Dsub_5185+12p p7Dsub_576D+3p
       
  1699 		push	af
       
  1700 		push	bc
       
  1701 		push	de
       
  1702 		push	hl
       
  1703 		push	ix
       
  1704 		call	NZIf83Plus
       
  1705 		jr	nz, p7Dloc_47D9
       
  1706 		cp	1
       
  1707 		jr	z, p7Dloc_47D1
       
  1708 		cp	3
       
  1709 		jr	nz, p7Dloc_47D9
       
  1710 		call	p7Dsub_4243
       
  1711 		call	p7Dsub_4253
       
  1712 		jr	p7Dloc_47DC
       
  1713 ; ---------------------------------------------------------------------------
       
  1714 
       
  1715 p7Dloc_47D1:				; CODE XREF: Page7D_2B86+Dj
       
  1716 		call	p7Dsub_4274
       
  1717 		call	p7Dsub_4253
       
  1718 		jr	p7Dloc_47DC
       
  1719 ; ---------------------------------------------------------------------------
       
  1720 
       
  1721 p7Dloc_47D9:				; CODE XREF: Page7D_2B86+9j
       
  1722 					; Page7D_2B86+11j
       
  1723 		call	p7Dsub_4287
       
  1724 
       
  1725 p7Dloc_47DC:				; CODE XREF: Page7D_2B86+19j
       
  1726 					; Page7D_2B86+21j
       
  1727 		pop	ix
       
  1728 		pop	hl
       
  1729 		pop	de
       
  1730 		pop	bc
       
  1731 		pop	af
       
  1732 		ret
       
  1733 ; End of function Page7D_2B86
       
  1734 
       
  1735 
       
  1736 ; =============== S U B	R O U T	I N E =======================================
       
  1737 
       
  1738 
       
  1739 p7Dsub_47E3:				; CODE XREF: seg001:473Ep
       
  1740 		push	hl
       
  1741 		push	bc
       
  1742 		push	de
       
  1743 		push	af
       
  1744 		call	p7Dsub_47B5
       
  1745 		ld	de, 700h
       
  1746 		call	p7Dsub_777E
       
  1747 		call	p7Dsub_4574
       
  1748 		push	hl
       
  1749 		call	p7Dsub_4894
       
  1750 		ld	de, 700h
       
  1751 		call	p7Dsub_777E
       
  1752 		call	p7Dsub_4574
       
  1753 		pop	de
       
  1754 		push	hl
       
  1755 		push	de
       
  1756 		call	p7Dsub_762A
       
  1757 		push	hl
       
  1758 		push	bc
       
  1759 		call	p7Dsub_484E
       
  1760 		inc	ix
       
  1761 		pop	bc
       
  1762 		pop	hl
       
  1763 		push	ix
       
  1764 		call	p7Dsub_4442
       
  1765 		add	hl, bc
       
  1766 		call	p7Dsub_7700
       
  1767 		ld	de, 810h
       
  1768 		rst	28h
       
  1769 ; ---------------------------------------------------------------------------
       
  1770 		.dw 8030h
       
  1771 ; ---------------------------------------------------------------------------
       
  1772 		jr	nz, p7Dloc_4825
       
  1773 		call	p7Dsub_484E
       
  1774 		jr	p7Dloc_483E
       
  1775 ; ---------------------------------------------------------------------------
       
  1776 
       
  1777 p7Dloc_4825:				; CODE XREF: p7Dsub_47E3+3Bj
       
  1778 		ld	hl, appID
       
  1779 		ld	a, 0FFh
       
  1780 		ld	b, 5
       
  1781 
       
  1782 p7Dloc_482C:				; CODE XREF: p7Dsub_47E3+4Bj
       
  1783 		ld	(hl), a
       
  1784 		inc	hl
       
  1785 		djnz	p7Dloc_482C
       
  1786 		ld	hl, OP6
       
  1787 		ld	(hl), 1
       
  1788 		rst	28h
       
  1789 ; ---------------------------------------------------------------------------
       
  1790 		.dw 8069h
       
  1791 ; ---------------------------------------------------------------------------
       
  1792 		call	p7Dsub_764E
       
  1793 		push	hl
       
  1794 		pop	ix
       
  1795 
       
  1796 p7Dloc_483E:				; CODE XREF: p7Dsub_47E3+40j
       
  1797 		push	ix
       
  1798 		pop	bc
       
  1799 		pop	ix
       
  1800 		pop	hl
       
  1801 		pop	de
       
  1802 		push	bc
       
  1803 		call	p7Dsub_4D5E
       
  1804 		inc	ix
       
  1805 		jp	p7Dloc_5156
       
  1806 ; End of function p7Dsub_47E3
       
  1807 
       
  1808 
       
  1809 ; =============== S U B	R O U T	I N E =======================================
       
  1810 
       
  1811 
       
  1812 p7Dsub_484E:				; CODE XREF: p7Dsub_47E3+25p p7Dsub_47E3+3Dp ...
       
  1813 		ld	d, c
       
  1814 		set	4, d
       
  1815 		ld	e, 7
       
  1816 		ld	(appID), de
       
  1817 		ld	de, 838Fh
       
  1818 		call	p7Dsub_7700
       
  1819 		rst	28h
       
  1820 ; ---------------------------------------------------------------------------
       
  1821 		.dw 8054h
       
  1822 ; ---------------------------------------------------------------------------
       
  1823 		ld	hl, OP6
       
  1824 		ld	(hl), 1
       
  1825 		rst	28h
       
  1826 ; ---------------------------------------------------------------------------
       
  1827 		.dw 8069h
       
  1828 ; ---------------------------------------------------------------------------
       
  1829 		jr	z, p7Dloc_486C
       
  1830 		dec	ix
       
  1831 
       
  1832 p7Dloc_486C:				; CODE XREF: p7Dsub_484E+1Aj
       
  1833 		call	p7Dsub_764E
       
  1834 		push	hl
       
  1835 		pop	ix
       
  1836 		ret
       
  1837 ; End of function p7Dsub_484E
       
  1838 
       
  1839 
       
  1840 ; =============== S U B	R O U T	I N E =======================================
       
  1841 
       
  1842 
       
  1843 p7Dsub_4873:				; CODE XREF: p7Dsub_4498+9p p7Dsub_4498+15p	...
       
  1844 		push	hl
       
  1845 		push	af
       
  1846 		push	de
       
  1847 		push	af
       
  1848 		ld	de, 100h
       
  1849 		rst	28h
       
  1850 ; ---------------------------------------------------------------------------
       
  1851 		.dw 805Dh
       
  1852 ; ---------------------------------------------------------------------------
       
  1853 		jr	nz, p7Dloc_488F
       
  1854 		pop	af
       
  1855 		inc	hl
       
  1856 		rst	28h
       
  1857 ; ---------------------------------------------------------------------------
       
  1858 		.dw 805Ah
       
  1859 ; ---------------------------------------------------------------------------
       
  1860 		call	p7Dsub_7700
       
  1861 		call	p7Dsub_5CFF
       
  1862 		call	p7Dsub_5D43
       
  1863 		jr	p7Dloc_4890
       
  1864 ; ---------------------------------------------------------------------------
       
  1865 
       
  1866 p7Dloc_488F:				; CODE XREF: p7Dsub_4873+Aj
       
  1867 		pop	af
       
  1868 
       
  1869 p7Dloc_4890:				; CODE XREF: p7Dsub_4873+1Aj
       
  1870 		pop	de
       
  1871 		pop	af
       
  1872 		pop	hl
       
  1873 		ret
       
  1874 ; End of function p7Dsub_4873
       
  1875 
       
  1876 
       
  1877 ; =============== S U B	R O U T	I N E =======================================
       
  1878 
       
  1879 
       
  1880 p7Dsub_4894:				; CODE XREF: Page7D_2BB0+1p
       
  1881 					; Page7D_2B62+6p ...
       
  1882 		rst	28h
       
  1883 ; ---------------------------------------------------------------------------
       
  1884 		.dw 8057h
       
  1885 ; End of function p7Dsub_4894
       
  1886 
       
  1887 
       
  1888 ; =============== S U B	R O U T	I N E =======================================
       
  1889 
       
  1890 
       
  1891 Page7D_2BEC:				; CODE XREF: Page7D_2B62+44p
       
  1892 					; p7Dsub_4214:p7Dloc_421Dp ...
       
  1893 		push	af
       
  1894 		ld	a, h
       
  1895 		xor	20h ; ' '
       
  1896 		ld	h, a
       
  1897 		pop	af
       
  1898 		ret
       
  1899 ; End of function Page7D_2BEC
       
  1900 
       
  1901 ; ---------------------------------------------------------------------------
       
  1902 
       
  1903 Page7D_2CA6:
       
  1904 		push	af
       
  1905 		ld	a, 1
       
  1906 		nop
       
  1907 		di
       
  1908 		nop
       
  1909 		nop
       
  1910 		im	1
       
  1911 		di
       
  1912 		out	(14h), a
       
  1913 		di
       
  1914 		call	checkForFlashTrickery
       
  1915 		pop	af
       
  1916 		call	p7Dsub_48B5
       
  1917 		jp	relockFlashBack
       
  1918 
       
  1919 ; =============== S U B	R O U T	I N E =======================================
       
  1920 
       
  1921 
       
  1922 p7Dsub_48B5:				; CODE XREF: seg001:48AFp p7Dsub_4A5A+4Fp ...
       
  1923 		call	Page7D_2B68
       
  1924 		call	p7Dsub_48BC
       
  1925 		ret
       
  1926 ; End of function p7Dsub_48B5
       
  1927 
       
  1928 
       
  1929 ; =============== S U B	R O U T	I N E =======================================
       
  1930 
       
  1931 
       
  1932 p7Dsub_48BC:				; CODE XREF: p7Dsub_48B5+3p
       
  1933 		push	ix
       
  1934 		push	hl
       
  1935 		push	de
       
  1936 		push	bc
       
  1937 		push	hl
       
  1938 		push	bc
       
  1939 		push	ix
       
  1940 		pop	hl
       
  1941 		ld	bc, 0C9h ; '�'
       
  1942 		or	a
       
  1943 		sbc	hl, bc
       
  1944 		jp	nc, Page0Call_2541
       
  1945 		add	hl, bc
       
  1946 		ld	bc, 0
       
  1947 		or	a
       
  1948 		sbc	hl, bc
       
  1949 		jp	m, Page0Call_2541
       
  1950 		pop	bc
       
  1951 		pop	hl
       
  1952 		jp	p7Dloc_48EB
       
  1953 ; End of function p7Dsub_48BC
       
  1954 
       
  1955 
       
  1956 ; =============== S U B	R O U T	I N E =======================================
       
  1957 
       
  1958 
       
  1959 p7Dsub_48DE:				; CODE XREF: p7Dsub_4AC9+44p seg001:4BABp ...
       
  1960 		push	ix
       
  1961 		push	hl
       
  1962 		push	de
       
  1963 		push	bc
       
  1964 		call	p7Dsub_521D
       
  1965 		ld	bc, 0Dh
       
  1966 		add	ix, bc
       
  1967 
       
  1968 p7Dloc_48EB:				; CODE XREF: p7Dsub_48BC+1Fj
       
  1969 		push	ix
       
  1970 		pop	bc
       
  1971 		sla	c
       
  1972 		add	hl, bc
       
  1973 		call	p7Dsub_4566
       
  1974 		cp	80h ; '�'
       
  1975 		scf
       
  1976 		jr	z, p7Dloc_4902
       
  1977 		cp	0
       
  1978 		jr	nz, p7Dloc_4902
       
  1979 		call	p7Dsub_4565
       
  1980 		cp	0
       
  1981 
       
  1982 p7Dloc_4902:				; CODE XREF: p7Dsub_48DE+19j p7Dsub_48DE+1Dj
       
  1983 		pop	bc
       
  1984 		pop	de
       
  1985 		pop	hl
       
  1986 		pop	ix
       
  1987 		ret
       
  1988 ; End of function p7Dsub_48DE
       
  1989 
       
  1990 ; ---------------------------------------------------------------------------
       
  1991 
       
  1992 Page7D_3E9A:
       
  1993 		push	af
       
  1994 		ld	a, 1
       
  1995 		nop
       
  1996 		di
       
  1997 		nop
       
  1998 		nop
       
  1999 		im	1
       
  2000 		di
       
  2001 		out	(14h), a
       
  2002 		di
       
  2003 		call	checkForFlashTrickery
       
  2004 		pop	af
       
  2005 		call	Page7D_2B56
       
  2006 		ld	a, b
       
  2007 		rst	28h
       
  2008 ; ---------------------------------------------------------------------------
       
  2009 		.dw 80CFh
       
  2010 ; ---------------------------------------------------------------------------
       
  2011 		call	p7Dsub_4926
       
  2012 		jp	relockFlashBack
       
  2013 
       
  2014 ; =============== S U B	R O U T	I N E =======================================
       
  2015 
       
  2016 
       
  2017 p7Dsub_4926:				; CODE XREF: seg001:45CDp
       
  2018 					; seg001:p7Dloc_479Dp ...
       
  2019 		push	af
       
  2020 		push	bc
       
  2021 		push	hl
       
  2022 		push	de
       
  2023 		push	ix
       
  2024 		ld	a, 0
       
  2025 		ld	(ioFlag), a
       
  2026 		call	p7Dsub_4AC9
       
  2027 		jr	nz, p7Dloc_4939
       
  2028 		call	p7Dloc_4B82
       
  2029 
       
  2030 p7Dloc_4939:				; CODE XREF: p7Dsub_4926+Ej
       
  2031 		call	p7Dsub_4A5A
       
  2032 		ld	a, (ioFlag)
       
  2033 		cp	0
       
  2034 		jr	z, p7Dloc_498B
       
  2035 		ld	hl, aHaveExpired_
       
  2036 		ld	a, 4Dh ; 'M'
       
  2037 		bit	1, (iy+35h)
       
  2038 		call	nz, Page0Call_3C45
       
  2039 		call	p7Dsub_7045
       
  2040 		call	Page0Call_3CD5
       
  2041 		ld	hl, aDeleting___
       
  2042 		ld	a, 4Eh ; 'N'
       
  2043 		bit	1, (iy+35h)
       
  2044 		call	nz, Page0Call_3C45
       
  2045 		call	p7Dsub_7045
       
  2046 		call	Page0Call_3CD5
       
  2047 		call	page0_B93
       
  2048 		ld	b, 5
       
  2049 
       
  2050 p7Dloc_496C:				; CODE XREF: p7Dsub_4926+54j
       
  2051 		ld	c, b
       
  2052 		ld	b, 0FFh
       
  2053 
       
  2054 p7Dloc_496F:				; CODE XREF: p7Dsub_4926+51j
       
  2055 		ld	a, 0FFh
       
  2056 
       
  2057 p7Dloc_4971:				; CODE XREF: p7Dsub_4926+4Fj
       
  2058 		call	page0_AC4
       
  2059 		dec	a
       
  2060 		jr	nz, p7Dloc_4971
       
  2061 		djnz	p7Dloc_496F
       
  2062 		ld	b, c
       
  2063 		djnz	p7Dloc_496C
       
  2064 		call	page0_BA2
       
  2065 		call	Page0Call_2E65
       
  2066 		ld	hl, 0
       
  2067 		ld	(curRow), hl
       
  2068 		call	Page0Call_3D05
       
  2069 
       
  2070 p7Dloc_498B:				; CODE XREF: p7Dsub_4926+1Bj
       
  2071 		pop	ix
       
  2072 		pop	de
       
  2073 		pop	hl
       
  2074 		pop	bc
       
  2075 		pop	af
       
  2076 		ret
       
  2077 ; End of function p7Dsub_4926
       
  2078 
       
  2079 
       
  2080 ; =============== S U B	R O U T	I N E =======================================
       
  2081 
       
  2082 
       
  2083 p7Dsub_4992:				; CODE XREF: p7Dsub_4AC9+52p
       
  2084 		push	af
       
  2085 		push	bc
       
  2086 		push	de
       
  2087 		push	hl
       
  2088 		call	p7Dsub_4565
       
  2089 		push	af
       
  2090 		and	0F0h ; '�'
       
  2091 		ld	c, a
       
  2092 		pop	af
       
  2093 		xor	c
       
  2094 		ld	(appID), a
       
  2095 		inc	hl
       
  2096 		ld	c, a
       
  2097 		ld	b, 0
       
  2098 		call	p7Dsub_7700
       
  2099 		ld	de, 838Eh
       
  2100 		rst	28h
       
  2101 ; ---------------------------------------------------------------------------
       
  2102 		.dw 8054h
       
  2103 ; ---------------------------------------------------------------------------
       
  2104 		call	p7Dsub_6021
       
  2105 		jr	c, p7Dloc_49B7
       
  2106 		call	Page7D_2BE6
       
  2107 
       
  2108 p7Dloc_49B7:				; CODE XREF: p7Dsub_4992+20j
       
  2109 		pop	hl
       
  2110 		pop	de
       
  2111 		pop	bc
       
  2112 		pop	af
       
  2113 		ret
       
  2114 ; End of function p7Dsub_4992
       
  2115 
       
  2116 ; ---------------------------------------------------------------------------
       
  2117 
       
  2118 p7Dloc_49BC:				; CODE XREF: seg001:49D1j
       
  2119 		push	bc
       
  2120 		push	af
       
  2121 		call	p7Dsub_4A21
       
  2122 		jr	nz, p7Dloc_49D5
       
  2123 		pop	af
       
  2124 		call	CopyFlashPage
       
  2125 		pop	bc
       
  2126 		push	af
       
  2127 		ld	a, 0
       
  2128 		dec	c
       
  2129 		or	c
       
  2130 		jr	z, p7Dloc_49D3
       
  2131 		pop	af
       
  2132 		inc	a
       
  2133 		jr	p7Dloc_49BC
       
  2134 ; ---------------------------------------------------------------------------
       
  2135 
       
  2136 p7Dloc_49D3:				; CODE XREF: seg001:49CDj
       
  2137 		pop	af
       
  2138 		ret
       
  2139 ; ---------------------------------------------------------------------------
       
  2140 
       
  2141 p7Dloc_49D5:				; CODE XREF: seg001:49C1j
       
  2142 		pop	bc
       
  2143 		pop	bc
       
  2144 		ret
       
  2145 
       
  2146 ; =============== S U B	R O U T	I N E =======================================
       
  2147 
       
  2148 
       
  2149 CopyFlashPage:				; CODE XREF: seg001:49C4p
       
  2150 		push	hl
       
  2151 		ld	hl, 4000h
       
  2152 		push	af
       
  2153 		call	Page7D_2CD0
       
  2154 		cp	0FFh
       
  2155 		jr	z, p7Dloc_4A1E
       
  2156 		pop	af
       
  2157 		push	af
       
  2158 		cp	7Eh ; '~'
       
  2159 		jr	z, p7Dloc_4A1E
       
  2160 		cp	7Fh ; ''
       
  2161 		jr	z, p7Dloc_4A1E
       
  2162 		ld	a, b
       
  2163 		cp	7Eh ; '~'
       
  2164 		jr	z, p7Dloc_4A1E
       
  2165 		cp	7Fh ; ''
       
  2166 		jr	z, p7Dloc_4A1E
       
  2167 		pop	af
       
  2168 
       
  2169 p7Dloc_49F8:				; CODE XREF: CopyFlashPage+44j
       
  2170 		push	bc
       
  2171 		ld	bc, 100h
       
  2172 		ld	de, ramStart
       
  2173 		push	hl
       
  2174 		push	de
       
  2175 		push	af
       
  2176 		call	FlashToRam
       
  2177 		pop	af
       
  2178 		pop	de
       
  2179 		pop	hl
       
  2180 		pop	bc
       
  2181 		push	af
       
  2182 		ld	a, b
       
  2183 		ld	bc, 100h
       
  2184 		ex	de, hl
       
  2185 		push	af
       
  2186 		call	p7Dsub_7666
       
  2187 		pop	af
       
  2188 		ex	de, hl
       
  2189 		ld	b, a
       
  2190 		ld	a, 80h ; '�'
       
  2191 		cp	h
       
  2192 		jr	z, p7Dloc_4A1E
       
  2193 		pop	af
       
  2194 		jr	p7Dloc_49F8
       
  2195 ; ---------------------------------------------------------------------------
       
  2196 
       
  2197 p7Dloc_4A1E:				; CODE XREF: CopyFlashPage+Aj
       
  2198 					; CopyFlashPage+10j ...
       
  2199 		pop	af
       
  2200 		pop	hl
       
  2201 		ret
       
  2202 ; End of function CopyFlashPage
       
  2203 
       
  2204 
       
  2205 ; =============== S U B	R O U T	I N E =======================================
       
  2206 
       
  2207 
       
  2208 p7Dsub_4A21:				; CODE XREF: seg001:49BEp
       
  2209 		push	hl
       
  2210 		ld	a, 8
       
  2211 		ld	hl, 4000h
       
  2212 
       
  2213 p7Dloc_4A27:				; CODE XREF: p7Dsub_4A21+13j
       
  2214 		push	af
       
  2215 		rst	28h
       
  2216 ; ---------------------------------------------------------------------------
       
  2217 		.dw 8051h
       
  2218 ; ---------------------------------------------------------------------------
       
  2219 		cp	0FEh ; '�'
       
  2220 		jr	z, p7Dloc_4A3C
       
  2221 		pop	af
       
  2222 		inc	a
       
  2223 		call	p7Dsub_75E1
       
  2224 		jr	nz, p7Dloc_4A27
       
  2225 		ld	a, 0FFh
       
  2226 		bit	7, a
       
  2227 		pop	hl
       
  2228 		ret
       
  2229 ; ---------------------------------------------------------------------------
       
  2230 
       
  2231 p7Dloc_4A3C:				; CODE XREF: p7Dsub_4A21+Cj
       
  2232 		pop	bc
       
  2233 		pop	hl
       
  2234 		ret
       
  2235 ; End of function p7Dsub_4A21
       
  2236 
       
  2237 
       
  2238 ; =============== S U B	R O U T	I N E =======================================
       
  2239 
       
  2240 
       
  2241 FindAppNumPages:			; CODE XREF: Page7D_2BE6+Cp
       
  2242 					; Page7D_2B56+1Cp ...
       
  2243 		push	hl
       
  2244 		push	af
       
  2245 		ld	hl, 4000h
       
  2246 		ld	de, 8080h
       
  2247 		or	a
       
  2248 		rst	28h
       
  2249 ; ---------------------------------------------------------------------------
       
  2250 		.dw 80ABh
       
  2251 ; ---------------------------------------------------------------------------
       
  2252 		ld	c, 0
       
  2253 		jr	nz, p7Dloc_4A57
       
  2254 		inc	hl
       
  2255 		inc	hl
       
  2256 		pop	af
       
  2257 		push	af
       
  2258 		rst	28h
       
  2259 ; ---------------------------------------------------------------------------
       
  2260 		.dw 8051h
       
  2261 ; ---------------------------------------------------------------------------
       
  2262 		ld	c, a
       
  2263 
       
  2264 p7Dloc_4A57:				; CODE XREF: FindAppNumPages+Ej
       
  2265 		pop	af
       
  2266 		pop	hl
       
  2267 		ret
       
  2268 ; End of function FindAppNumPages
       
  2269 
       
  2270 
       
  2271 ; =============== S U B	R O U T	I N E =======================================
       
  2272 
       
  2273 
       
  2274 p7Dsub_4A5A:				; CODE XREF: p7Dsub_4926:p7Dloc_4939p
       
  2275 		call	p7Dsub_7643
       
  2276 		ld	b, c
       
  2277 		call	p7Dsub_75EC
       
  2278 
       
  2279 p7Dloc_4A61:				; CODE XREF: p7Dsub_4A5A+1Fj
       
  2280 		push	af
       
  2281 		ld	hl, 4000h
       
  2282 		rst	28h
       
  2283 ; ---------------------------------------------------------------------------
       
  2284 		.dw 8051h
       
  2285 ; ---------------------------------------------------------------------------
       
  2286 		cp	0FFh
       
  2287 		jr	z, p7Dloc_4A77
       
  2288 		cp	0
       
  2289 		jr	z, p7Dloc_4A77
       
  2290 		cp	80h ; '�'
       
  2291 		jr	nz, p7Dloc_4A77
       
  2292 		pop	af
       
  2293 		jr	p7Dloc_4A80
       
  2294 ; ---------------------------------------------------------------------------
       
  2295 
       
  2296 p7Dloc_4A77:				; CODE XREF: p7Dsub_4A5A+10j p7Dsub_4A5A+14j ...
       
  2297 		pop	af
       
  2298 
       
  2299 p7Dloc_4A78:				; CODE XREF: p7Dsub_4A5A+6Dj
       
  2300 		dec	a
       
  2301 		djnz	p7Dloc_4A61
       
  2302 		ret
       
  2303 ; ---------------------------------------------------------------------------
       
  2304 
       
  2305 p7Dloc_4A7C:				; CODE XREF: p7Dsub_4A5A+2Cj
       
  2306 		pop	af
       
  2307 		pop	bc
       
  2308 		jr	p7Dloc_4A77
       
  2309 ; ---------------------------------------------------------------------------
       
  2310 
       
  2311 p7Dloc_4A80:				; CODE XREF: p7Dsub_4A5A+1Bj
       
  2312 		push	af
       
  2313 		push	bc
       
  2314 		push	af
       
  2315 		call	Page0Call_3E31
       
  2316 		jr	nz, p7Dloc_4A7C
       
  2317 		pop	af
       
  2318 		push	af
       
  2319 		call	p7Dsub_5E31
       
  2320 		rst	28h
       
  2321 ; ---------------------------------------------------------------------------
       
  2322 		.dw 80A8h
       
  2323 ; ---------------------------------------------------------------------------
       
  2324 		jr	nz, p7Dloc_4AC4
       
  2325 		pop	af
       
  2326 		push	af
       
  2327 		call	p7Dsub_52D9
       
  2328 		jr	c, p7Dloc_4AC4
       
  2329 		jr	z, p7Dloc_4AC4
       
  2330 		pop	af
       
  2331 		push	af
       
  2332 		ld	b, a
       
  2333 		call	p7Dsub_75EC
       
  2334 		sub	b
       
  2335 		ld	bc, 0
       
  2336 		ld	c, a
       
  2337 		push	bc
       
  2338 		pop	ix
       
  2339 		call	p7Dsub_48B5
       
  2340 		jr	c, p7Dloc_4AC4
       
  2341 		jr	nz, p7Dloc_4AC4
       
  2342 		ld	a, (ioFlag)
       
  2343 		cp	0
       
  2344 		jr	nz, p7Dloc_4ABF
       
  2345 		call	Page0Call_2C7F
       
  2346 		ld	a, 0FFh
       
  2347 		ld	(ioFlag), a
       
  2348 
       
  2349 p7Dloc_4ABF:				; CODE XREF: p7Dsub_4A5A+5Bj
       
  2350 		pop	af
       
  2351 		push	af
       
  2352 		call	Page7D_2BE6
       
  2353 
       
  2354 p7Dloc_4AC4:				; CODE XREF: p7Dsub_4A5A+36j p7Dsub_4A5A+3Dj ...
       
  2355 		pop	af
       
  2356 		pop	bc
       
  2357 		pop	af
       
  2358 		jr	p7Dloc_4A78
       
  2359 ; End of function p7Dsub_4A5A
       
  2360 
       
  2361 
       
  2362 ; =============== S U B	R O U T	I N E =======================================
       
  2363 
       
  2364 
       
  2365 p7Dsub_4AC9:				; CODE XREF: p7Dsub_4926+Bp
       
  2366 		call	p7Dsub_70D1
       
  2367 		jp	nz, p7Dloc_4B69
       
  2368 		ld	de, 700h
       
  2369 		call	p7Dsub_777E
       
  2370 		call	p7Dsub_4574
       
  2371 		ld	ix, 0
       
  2372 
       
  2373 p7Dloc_4ADC:				; CODE XREF: p7Dsub_4AC9+93j p7Dsub_4AC9+9Dj
       
  2374 		ld	de, 710h
       
  2375 		call	p7Dsub_705E
       
  2376 		jp	nz, p7Dloc_4B6E
       
  2377 		push	hl
       
  2378 		call	p7Dsub_4574
       
  2379 		ld	a, c
       
  2380 		ld	(appID+1), a
       
  2381 		ld	de, 838Fh
       
  2382 		call	p7Dsub_424C
       
  2383 		rst	28h
       
  2384 ; ---------------------------------------------------------------------------
       
  2385 		.dw 80A8h
       
  2386 ; ---------------------------------------------------------------------------
       
  2387 		pop	hl
       
  2388 		push	hl
       
  2389 		jr	z, p7Dloc_4B5F
       
  2390 		ld	de, 740h
       
  2391 		call	p7Dsub_705E
       
  2392 		jr	nz, p7Dloc_4B14
       
  2393 		call	p7Dsub_7700
       
  2394 		call	p7Dsub_50C5
       
  2395 		jr	z, p7Dloc_4B14
       
  2396 		call	p7Dsub_536F
       
  2397 		call	p7Dsub_48DE
       
  2398 		jr	c, p7Dloc_4B14
       
  2399 		jr	z, p7Dloc_4B20
       
  2400 
       
  2401 p7Dloc_4B14:				; CODE XREF: p7Dsub_4AC9+37j p7Dsub_4AC9+3Fj ...
       
  2402 		call	p7Dsub_540C
       
  2403 		jr	z, p7Dloc_4B5F
       
  2404 		pop	hl
       
  2405 		push	hl
       
  2406 		call	p7Dsub_4992
       
  2407 		jr	p7Dloc_4B5F
       
  2408 ; ---------------------------------------------------------------------------
       
  2409 
       
  2410 p7Dloc_4B20:				; CODE XREF: p7Dsub_4AC9+49j
       
  2411 		ld	a, (ioFlag)
       
  2412 		cp	0
       
  2413 		jr	nz, p7Dloc_4B3D
       
  2414 		pop	de
       
  2415 		push	de
       
  2416 		push	hl
       
  2417 		call	p7Dsub_4B73
       
  2418 		call	p7Dsub_6021
       
  2419 		jr	c, p7Dloc_4B51
       
  2420 		pop	hl
       
  2421 		pop	de
       
  2422 		push	de
       
  2423 		call	Page0Call_2C7F
       
  2424 		ld	a, 0FFh
       
  2425 		ld	(ioFlag), a
       
  2426 
       
  2427 p7Dloc_4B3D:				; CODE XREF: p7Dsub_4AC9+5Cj
       
  2428 		pop	de
       
  2429 		push	de
       
  2430 		push	hl
       
  2431 		call	p7Dsub_4B73
       
  2432 		call	p7Dsub_6021
       
  2433 		jr	c, p7Dloc_4B51
       
  2434 		call	Page0Call_2C8B
       
  2435 		call	Page0Call_3CD5
       
  2436 		call	Page7D_2BE6
       
  2437 
       
  2438 p7Dloc_4B51:				; CODE XREF: p7Dsub_4AC9+67j p7Dsub_4AC9+7Dj
       
  2439 		pop	hl
       
  2440 		pop	de
       
  2441 		ex	de, hl
       
  2442 		push	de
       
  2443 		call	p7Dsub_4574
       
  2444 		pop	de
       
  2445 		add	hl, bc
       
  2446 		inc	ix
       
  2447 		jp	p7Dloc_4ADC
       
  2448 ; ---------------------------------------------------------------------------
       
  2449 
       
  2450 p7Dloc_4B5F:				; CODE XREF: p7Dsub_4AC9+2Fj p7Dsub_4AC9+4Ej ...
       
  2451 		pop	hl
       
  2452 		call	p7Dsub_4574
       
  2453 		add	hl, bc
       
  2454 		inc	ix
       
  2455 		jp	p7Dloc_4ADC
       
  2456 ; ---------------------------------------------------------------------------
       
  2457 
       
  2458 p7Dloc_4B69:				; CODE XREF: p7Dsub_4AC9+3j
       
  2459 		ld	a, 0FFh
       
  2460 		bit	7, a
       
  2461 		ret
       
  2462 ; ---------------------------------------------------------------------------
       
  2463 
       
  2464 p7Dloc_4B6E:				; CODE XREF: p7Dsub_4AC9+19j
       
  2465 		ld	a, 0
       
  2466 		bit	7, a
       
  2467 		ret
       
  2468 ; End of function p7Dsub_4AC9
       
  2469 
       
  2470 
       
  2471 ; =============== S U B	R O U T	I N E =======================================
       
  2472 
       
  2473 
       
  2474 p7Dsub_4B73:				; CODE XREF: p7Dsub_4AC9+61p p7Dsub_4AC9+77p
       
  2475 		ex	de, hl
       
  2476 		call	p7Dsub_4574
       
  2477 		ld	a, c
       
  2478 		ld	(appID), a
       
  2479 		ld	de, 838Eh
       
  2480 		call	p7Dsub_424C
       
  2481 		ret
       
  2482 ; End of function p7Dsub_4B73
       
  2483 
       
  2484 ; ---------------------------------------------------------------------------
       
  2485 
       
  2486 p7Dloc_4B82:				; CODE XREF: p7Dsub_4926+10p
       
  2487 		call	p7Dsub_70D1
       
  2488 		ld	de, 800h
       
  2489 		call	p7Dsub_777E
       
  2490 		call	p7Dsub_4574
       
  2491 
       
  2492 p7Dloc_4B8E:				; CODE XREF: seg001:4C08j
       
  2493 		ld	de, 810h
       
  2494 		call	p7Dsub_705E
       
  2495 		jp	nz, locret_4C0B
       
  2496 		push	hl
       
  2497 		ld	de, 840h
       
  2498 		call	p7Dsub_705E
       
  2499 		jr	nz, p7Dloc_4BC9
       
  2500 		call	p7Dsub_7700
       
  2501 		call	p7Dsub_50C5
       
  2502 		jr	z, p7Dloc_4BE4
       
  2503 		call	p7Dsub_536F
       
  2504 		call	p7Dsub_48DE
       
  2505 		jr	c, p7Dloc_4BC9
       
  2506 		jr	nz, p7Dloc_4BE4
       
  2507 		ld	a, (ioFlag)
       
  2508 		cp	0
       
  2509 		jr	nz, p7Dloc_4BC9
       
  2510 		call	Page0Call_2C7F
       
  2511 		ld	a, 0FFh
       
  2512 		ld	(ioFlag), a
       
  2513 		pop	de
       
  2514 		push	de
       
  2515 		call	Page0Call_2C85
       
  2516 		call	Page0Call_3CD5
       
  2517 
       
  2518 p7Dloc_4BC9:				; CODE XREF: seg001:4B9Ej seg001:4BAEj ...
       
  2519 		pop	de
       
  2520 		ex	de, hl
       
  2521 		push	hl
       
  2522 		call	p7Dsub_4574
       
  2523 		ld	de, 8484h
       
  2524 		ld	(OP2), bc
       
  2525 		call	p7Dsub_7700
       
  2526 		rst	28h
       
  2527 ; ---------------------------------------------------------------------------
       
  2528 		.dw 8054h
       
  2529 ; ---------------------------------------------------------------------------
       
  2530 		rst	28h
       
  2531 ; ---------------------------------------------------------------------------
       
  2532 		.dw 8066h
       
  2533 ; ---------------------------------------------------------------------------
       
  2534 		jr	nz, p7Dloc_4BE4
       
  2535 		rst	28h
       
  2536 ; ---------------------------------------------------------------------------
       
  2537 		.dw 802Ah
       
  2538 ; ---------------------------------------------------------------------------
       
  2539 
       
  2540 p7Dloc_4BE4:				; CODE XREF: seg001:4BA6j seg001:4BB0j ...
       
  2541 		pop	de
       
  2542 		ex	de, hl
       
  2543 		push	hl
       
  2544 		call	p7Dsub_4574
       
  2545 		ld	de, 8484h
       
  2546 		ld	(OP2), bc
       
  2547 		call	p7Dsub_7700
       
  2548 		rst	28h
       
  2549 ; ---------------------------------------------------------------------------
       
  2550 		.dw 8054h
       
  2551 ; ---------------------------------------------------------------------------
       
  2552 		rst	28h
       
  2553 ; ---------------------------------------------------------------------------
       
  2554 		.dw 8066h
       
  2555 ; ---------------------------------------------------------------------------
       
  2556 		jr	nz, p7Dloc_4C01
       
  2557 		inc	ix
       
  2558 		call	p7Dsub_4C0C
       
  2559 
       
  2560 p7Dloc_4C01:				; CODE XREF: seg001:4BFAj
       
  2561 		pop	hl
       
  2562 		call	p7Dsub_4574
       
  2563 		add	hl, bc
       
  2564 		inc	ix
       
  2565 		jp	p7Dloc_4B8E
       
  2566 ; ---------------------------------------------------------------------------
       
  2567 
       
  2568 locret_4C0B:				; CODE XREF: seg001:4B94j
       
  2569 		ret
       
  2570 
       
  2571 ; =============== S U B	R O U T	I N E =======================================
       
  2572 
       
  2573 
       
  2574 p7Dsub_4C0C:				; CODE XREF: seg001:4BFEp
       
  2575 		ld	de, 700h
       
  2576 		call	p7Dsub_777E
       
  2577 		call	p7Dsub_4574
       
  2578 
       
  2579 p7Dloc_4C15:				; CODE XREF: p7Dsub_4C0C+62j
       
  2580 		ld	de, 710h
       
  2581 		call	p7Dsub_705E
       
  2582 		jr	nz, p7Dloc_4C70
       
  2583 		push	hl
       
  2584 		ld	de, 740h
       
  2585 		call	p7Dsub_705E
       
  2586 		jr	nz, p7Dloc_4C38
       
  2587 		call	p7Dsub_7700
       
  2588 		call	p7Dsub_50C5
       
  2589 		jr	z, p7Dloc_4C38
       
  2590 		call	p7Dsub_536F
       
  2591 		call	p7Dsub_48DE
       
  2592 		jr	c, p7Dloc_4C38
       
  2593 		jr	z, p7Dloc_4C3B
       
  2594 
       
  2595 p7Dloc_4C38:				; CODE XREF: p7Dsub_4C0C+18j p7Dsub_4C0C+20j ...
       
  2596 		pop	hl
       
  2597 		jr	p7Dloc_4C68
       
  2598 ; ---------------------------------------------------------------------------
       
  2599 
       
  2600 p7Dloc_4C3B:				; CODE XREF: p7Dsub_4C0C+2Aj
       
  2601 		ld	a, (ioFlag)
       
  2602 		cp	0
       
  2603 		jr	nz, p7Dloc_4C55
       
  2604 		pop	de
       
  2605 		push	de
       
  2606 		push	hl
       
  2607 		call	p7Dsub_6021
       
  2608 		jr	c, p7Dloc_4C66
       
  2609 		pop	hl
       
  2610 		pop	de
       
  2611 		push	de
       
  2612 		call	Page0Call_2C7F
       
  2613 		ld	a, 0FFh
       
  2614 		ld	(ioFlag), a
       
  2615 
       
  2616 p7Dloc_4C55:				; CODE XREF: p7Dsub_4C0C+34j
       
  2617 		pop	de
       
  2618 		push	de
       
  2619 		push	hl
       
  2620 		call	p7Dsub_6021
       
  2621 		jr	c, p7Dloc_4C66
       
  2622 		call	Page0Call_2C8B
       
  2623 		call	Page0Call_3CD5
       
  2624 		call	Page7D_2BE6
       
  2625 
       
  2626 p7Dloc_4C66:				; CODE XREF: p7Dsub_4C0C+3Cj p7Dsub_4C0C+4Fj
       
  2627 		pop	hl
       
  2628 		pop	de
       
  2629 
       
  2630 p7Dloc_4C68:				; CODE XREF: p7Dsub_4C0C+2Dj
       
  2631 		call	p7Dsub_4574
       
  2632 		add	hl, bc
       
  2633 		inc	ix
       
  2634 		jr	p7Dloc_4C15
       
  2635 ; ---------------------------------------------------------------------------
       
  2636 
       
  2637 p7Dloc_4C70:				; CODE XREF: p7Dsub_4C0C+Fj
       
  2638 		dec	ix
       
  2639 		ret
       
  2640 ; End of function p7Dsub_4C0C
       
  2641 
       
  2642 
       
  2643 ; =============== S U B	R O U T	I N E =======================================
       
  2644 
       
  2645 
       
  2646 p7Dsub_4C73:				; CODE XREF: p7Dsub_4442+2Ep p7Dsub_4F95+27p
       
  2647 		push	bc
       
  2648 		push	de
       
  2649 		push	hl
       
  2650 		push	af
       
  2651 		rst	28h
       
  2652 ; ---------------------------------------------------------------------------
       
  2653 		.dw 8051h
       
  2654 ; ---------------------------------------------------------------------------
       
  2655 		ld	(OP2), a
       
  2656 		ex	de, hl
       
  2657 		pop	af
       
  2658 		rst	28h
       
  2659 ; ---------------------------------------------------------------------------
       
  2660 		.dw 8051h
       
  2661 ; ---------------------------------------------------------------------------
       
  2662 		ld	bc, (OP2)
       
  2663 		cp	c
       
  2664 		pop	hl
       
  2665 		pop	de
       
  2666 		pop	bc
       
  2667 		ret
       
  2668 ; End of function p7Dsub_4C73
       
  2669 
       
  2670 
       
  2671 ; =============== S U B	R O U T	I N E =======================================
       
  2672 
       
  2673 
       
  2674 p7Dsub_4C8B:				; CODE XREF: seg001:p7Dloc_45A9p
       
  2675 		push	hl
       
  2676 		push	de
       
  2677 		push	bc
       
  2678 		push	af
       
  2679 		call	p7Dsub_4F62
       
  2680 		call	p7Dloc_4D38
       
  2681 		call	p7Dsub_4CAE
       
  2682 		call	p7Dsub_521D
       
  2683 		ld	bc, 0Dh
       
  2684 		sla	c
       
  2685 		call	p7Dsub_7700
       
  2686 		ld	de, tempSwapArea
       
  2687 		rst	28h
       
  2688 ; ---------------------------------------------------------------------------
       
  2689 		.dw 8054h
       
  2690 ; ---------------------------------------------------------------------------
       
  2691 		pop	af
       
  2692 		pop	bc
       
  2693 		pop	de
       
  2694 		pop	hl
       
  2695 		ret
       
  2696 ; End of function p7Dsub_4C8B
       
  2697 
       
  2698 
       
  2699 ; =============== S U B	R O U T	I N E =======================================
       
  2700 
       
  2701 
       
  2702 p7Dsub_4CAE:				; CODE XREF: p7Dsub_4C8B+Ap
       
  2703 		call	p7Dsub_70D1
       
  2704 		jr	nz, p7Dloc_4CF7
       
  2705 		ld	de, 800h
       
  2706 		call	p7Dsub_777E
       
  2707 		jr	nz, p7Dloc_4CF7
       
  2708 		call	p7Dsub_4574
       
  2709 		push	hl
       
  2710 		call	p7Dsub_4894
       
  2711 		ld	de, 800h
       
  2712 		call	p7Dsub_777E
       
  2713 		jp	nz, p7Dloc_4D36
       
  2714 		call	p7Dsub_4574
       
  2715 		pop	de
       
  2716 		ex	de, hl
       
  2717 		inc	ix
       
  2718 
       
  2719 p7Dloc_4CD2:				; CODE XREF: p7Dsub_4CAE+85j
       
  2720 		push	hl
       
  2721 
       
  2722 p7Dloc_4CD3:				; CODE XREF: p7Dsub_4CAE+47j
       
  2723 		call	p7Dsub_4F95
       
  2724 		jr	nz, p7Dloc_4CDD
       
  2725 		call	p7Dsub_4F10
       
  2726 		jr	p7Dloc_4D1D
       
  2727 ; ---------------------------------------------------------------------------
       
  2728 
       
  2729 p7Dloc_4CDD:				; CODE XREF: p7Dsub_4CAE+28j
       
  2730 		push	de
       
  2731 		push	ix
       
  2732 		ld	de, 810h
       
  2733 		call	p7Dsub_7700
       
  2734 		rst	28h
       
  2735 ; ---------------------------------------------------------------------------
       
  2736 		.dw 8030h
       
  2737 ; ---------------------------------------------------------------------------
       
  2738 		add	hl, bc
       
  2739 		call	p7Dsub_705E
       
  2740 		pop	ix
       
  2741 		pop	de
       
  2742 
       
  2743 p7Dloc_4CF0:
       
  2744 		call	nz, p7Dsub_4E44
       
  2745 		jr	nz, p7Dloc_4D1D
       
  2746 		jr	p7Dloc_4CD3
       
  2747 ; ---------------------------------------------------------------------------
       
  2748 
       
  2749 p7Dloc_4CF7:				; CODE XREF: p7Dsub_4CAE+3j p7Dsub_4CAE+Bj
       
  2750 		call	p7Dsub_4894
       
  2751 		ld	de, 800h
       
  2752 		call	p7Dsub_777E
       
  2753 		jr	nz, locret_4D35
       
  2754 		inc	ix
       
  2755 		call	p7Dsub_4574
       
  2756 
       
  2757 p7Dloc_4D07:				; CODE XREF: p7Dsub_4CAE+6Dj
       
  2758 		ld	de, 810h
       
  2759 		call	p7Dsub_705E
       
  2760 		jr	nz, locret_4D35
       
  2761 		push	hl
       
  2762 		ex	de, hl
       
  2763 		call	p7Dsub_4E44
       
  2764 		pop	hl
       
  2765 		call	p7Dsub_4574
       
  2766 		add	hl, bc
       
  2767 		inc	ix
       
  2768 		jr	p7Dloc_4D07
       
  2769 ; ---------------------------------------------------------------------------
       
  2770 
       
  2771 p7Dloc_4D1D:				; CODE XREF: p7Dsub_4CAE+2Dj p7Dsub_4CAE+45j
       
  2772 		pop	hl
       
  2773 		ex	de, hl
       
  2774 		push	de
       
  2775 		call	p7Dsub_7700
       
  2776 		ld	de, 810h
       
  2777 		rst	28h
       
  2778 ; ---------------------------------------------------------------------------
       
  2779 		.dw 8030h
       
  2780 ; ---------------------------------------------------------------------------
       
  2781 		add	hl, bc
       
  2782 		call	p7Dsub_705E
       
  2783 		pop	de
       
  2784 		inc	ix
       
  2785 		jr	nz, locret_4D35
       
  2786 		ex	de, hl
       
  2787 		jr	p7Dloc_4CD2
       
  2788 ; ---------------------------------------------------------------------------
       
  2789 
       
  2790 locret_4D35:				; CODE XREF: p7Dsub_4CAE+52j p7Dsub_4CAE+5Fj ...
       
  2791 		ret
       
  2792 ; ---------------------------------------------------------------------------
       
  2793 
       
  2794 p7Dloc_4D36:				; CODE XREF: p7Dsub_4CAE+1Aj
       
  2795 		pop	hl
       
  2796 		ret
       
  2797 ; End of function p7Dsub_4CAE
       
  2798 
       
  2799 ; ---------------------------------------------------------------------------
       
  2800 
       
  2801 p7Dloc_4D38:				; CODE XREF: p7Dsub_4C8B+7p
       
  2802 		call	p7Dsub_70D1
       
  2803 		jr	nz, p7Dloc_4D82
       
  2804 		ld	de, 700h
       
  2805 		call	p7Dsub_777E
       
  2806 		jr	nz, p7Dloc_4D82
       
  2807 		call	p7Dsub_4574
       
  2808 		push	hl
       
  2809 		call	p7Dsub_4894
       
  2810 		ld	de, 700h
       
  2811 		call	p7Dsub_777E
       
  2812 		jp	nz, p7Dloc_4DCB
       
  2813 		call	p7Dsub_4574
       
  2814 		pop	de
       
  2815 		ex	de, hl
       
  2816 		ld	ix, 0Dh
       
  2817 
       
  2818 ; =============== S U B	R O U T	I N E =======================================
       
  2819 
       
  2820 
       
  2821 p7Dsub_4D5E:				; CODE XREF: p7Dsub_47E3+63p
       
  2822 					; seg001:p7Dloc_4D80j
       
  2823 		push	hl
       
  2824 
       
  2825 p7Dloc_4D5F:				; CODE XREF: p7Dsub_4D5E+20j
       
  2826 		call	p7Dsub_4F6E
       
  2827 		call	z, p7Dsub_4EBD
       
  2828 		jr	z, p7Dloc_4DAF
       
  2829 		push	de
       
  2830 		push	ix
       
  2831 		ld	de, 710h
       
  2832 		ld	a, 7Eh ; '~'
       
  2833 		rst	28h
       
  2834 ; ---------------------------------------------------------------------------
       
  2835 		.dw 8030h
       
  2836 ; ---------------------------------------------------------------------------
       
  2837 		add	hl, bc
       
  2838 		call	p7Dsub_705E
       
  2839 		pop	ix
       
  2840 		pop	de
       
  2841 		call	nz, p7Dsub_4DCD
       
  2842 		jr	nz, p7Dloc_4DAF
       
  2843 		jr	p7Dloc_4D5F
       
  2844 ; End of function p7Dsub_4D5E
       
  2845 
       
  2846 ; ---------------------------------------------------------------------------
       
  2847 
       
  2848 p7Dloc_4D80:				; CODE XREF: p7Dsub_4DCD-7j
       
  2849 		jr	p7Dsub_4D5E
       
  2850 ; ---------------------------------------------------------------------------
       
  2851 
       
  2852 p7Dloc_4D82:				; CODE XREF: seg001:4D3Bj seg001:4D43j
       
  2853 		ld	ix, 0Ch
       
  2854 		call	p7Dsub_4894
       
  2855 		ld	de, 700h
       
  2856 		call	p7Dsub_777E
       
  2857 		jp	nz, locret_4DCA
       
  2858 		inc	ix
       
  2859 		call	p7Dsub_4574
       
  2860 
       
  2861 p7Dloc_4D97:				; CODE XREF: seg001:4DADj
       
  2862 		ld	de, 710h
       
  2863 		call	p7Dsub_705E
       
  2864 		jr	nz, p7Dloc_4DC8
       
  2865 		push	hl
       
  2866 		ex	de, hl
       
  2867 		call	p7Dsub_4DCD
       
  2868 		pop	hl
       
  2869 		call	p7Dsub_4574
       
  2870 		or	a
       
  2871 		adc	hl, bc
       
  2872 		inc	ix
       
  2873 		jr	p7Dloc_4D97
       
  2874 ; ---------------------------------------------------------------------------
       
  2875 ; START	OF FUNCTION CHUNK FOR p7Dsub_4DCD
       
  2876 
       
  2877 p7Dloc_4DAF:				; CODE XREF: p7Dsub_4D5E+7j p7Dsub_4D5E+1Ej
       
  2878 		pop	hl
       
  2879 		ex	de, hl
       
  2880 		push	de
       
  2881 		ld	a, 7Eh ; '~'
       
  2882 		ld	de, 710h
       
  2883 		rst	28h
       
  2884 ; ---------------------------------------------------------------------------
       
  2885 		.dw 8030h
       
  2886 ; ---------------------------------------------------------------------------
       
  2887 		or	a
       
  2888 		adc	hl, bc
       
  2889 		call	p7Dsub_705E
       
  2890 		pop	de
       
  2891 		jr	nz, locret_4DCA
       
  2892 		ex	de, hl
       
  2893 		inc	ix
       
  2894 		jr	p7Dloc_4D80
       
  2895 ; END OF FUNCTION CHUNK	FOR p7Dsub_4DCD
       
  2896 ; ---------------------------------------------------------------------------
       
  2897 
       
  2898 p7Dloc_4DC8:				; CODE XREF: seg001:4D9Dj
       
  2899 		dec	ix
       
  2900 ; START	OF FUNCTION CHUNK FOR p7Dsub_4DCD
       
  2901 
       
  2902 locret_4DCA:				; CODE XREF: seg001:4D8Fj p7Dsub_4DCD-Cj
       
  2903 		ret
       
  2904 ; END OF FUNCTION CHUNK	FOR p7Dsub_4DCD
       
  2905 ; ---------------------------------------------------------------------------
       
  2906 
       
  2907 p7Dloc_4DCB:				; CODE XREF: seg001:4D52j
       
  2908 		pop	hl
       
  2909 		ret
       
  2910 
       
  2911 ; =============== S U B	R O U T	I N E =======================================
       
  2912 
       
  2913 
       
  2914 p7Dsub_4DCD:				; CODE XREF: p7Dsub_4D5E+1Bp seg001:4DA1p ...
       
  2915 
       
  2916 ; FUNCTION CHUNK AT 4DAF SIZE 00000019 BYTES
       
  2917 ; FUNCTION CHUNK AT 4DCA SIZE 00000001 BYTES
       
  2918 
       
  2919 		push	bc
       
  2920 		push	hl
       
  2921 		push	de
       
  2922 		push	ix
       
  2923 
       
  2924 p7Dloc_4DD2:
       
  2925 		res	7, (iy+25h)
       
  2926 		ex	de, hl
       
  2927 		push	hl
       
  2928 		ld	a, 7Eh ; '~'
       
  2929 		ld	de, 740h
       
  2930 		rst	28h
       
  2931 ; ---------------------------------------------------------------------------
       
  2932 		.dw 8030h
       
  2933 ; ---------------------------------------------------------------------------
       
  2934 		jr	nz, p7Dloc_4DE6
       
  2935 		set	7, (iy+25h)
       
  2936 
       
  2937 p7Dloc_4DE6:				; CODE XREF: p7Dsub_4DCD+13j
       
  2938 		pop	hl
       
  2939 		ld	a, 7Eh ; '~'
       
  2940 		ld	de, 760h
       
  2941 		rst	28h
       
  2942 ; ---------------------------------------------------------------------------
       
  2943 		.dw 8030h
       
  2944 ; ---------------------------------------------------------------------------
       
  2945 		jr	z, p7Dloc_4E01
       
  2946 		bit	7, (iy+25h)
       
  2947 		jr	z, p7Dloc_4DFC
       
  2948 		ld	de, 0
       
  2949 		jr	p7Dloc_4E27
       
  2950 ; ---------------------------------------------------------------------------
       
  2951 
       
  2952 p7Dloc_4DFC:				; CODE XREF: p7Dsub_4DCD+28j
       
  2953 		ld	de, 80h	; '�'
       
  2954 		jr	p7Dloc_4E27
       
  2955 ; ---------------------------------------------------------------------------
       
  2956 
       
  2957 p7Dloc_4E01:				; CODE XREF: p7Dsub_4DCD+22j
       
  2958 		ld	a, c
       
  2959 		or	b
       
  2960 		ld	a, 0
       
  2961 		jr	z, p7Dloc_4E0A
       
  2962 		call	p7Dsub_4566
       
  2963 
       
  2964 p7Dloc_4E0A:				; CODE XREF: p7Dsub_4DCD+38j
       
  2965 		push	af
       
  2966 		ld	b, 9
       
  2967 		sub	b
       
  2968 		jr	c, p7Dloc_4E20
       
  2969 		pop	af
       
  2970 		ld	b, 8
       
  2971 		sub	b
       
  2972 		call	p7Dsub_4E9B
       
  2973 		ld	d, a
       
  2974 		ld	a, 8
       
  2975 		call	p7Dsub_4E9B
       
  2976 		ld	e, a
       
  2977 		jr	p7Dloc_4E27
       
  2978 ; ---------------------------------------------------------------------------
       
  2979 
       
  2980 p7Dloc_4E20:				; CODE XREF: p7Dsub_4DCD+41j
       
  2981 		ld	d, 0
       
  2982 		pop	af
       
  2983 		call	p7Dsub_4E9B
       
  2984 		ld	e, a
       
  2985 
       
  2986 p7Dloc_4E27:				; CODE XREF: p7Dsub_4DCD+2Dj p7Dsub_4DCD+32j ...
       
  2987 		ld	hl, tempSwapArea
       
  2988 		push	ix
       
  2989 		pop	bc
       
  2990 		sla	c
       
  2991 		ld	b, 0
       
  2992 		or	a
       
  2993 		adc	hl, bc
       
  2994 		ld	(hl), e
       
  2995 		inc	hl
       
  2996 		ld	(hl), d
       
  2997 		ld	a, 0FFh
       
  2998 		or	a
       
  2999 		res	7, (iy+25h)
       
  3000 		pop	ix
       
  3001 		pop	de
       
  3002 		pop	hl
       
  3003 		pop	bc
       
  3004 		ret
       
  3005 ; End of function p7Dsub_4DCD
       
  3006 
       
  3007 
       
  3008 ; =============== S U B	R O U T	I N E =======================================
       
  3009 
       
  3010 
       
  3011 p7Dsub_4E44:				; CODE XREF: p7Dsub_4CAE:p7Dloc_4CF0p
       
  3012 					; p7Dsub_4CAE+63p
       
  3013 		push	af
       
  3014 		push	bc
       
  3015 		push	hl
       
  3016 		push	de
       
  3017 		push	ix
       
  3018 		ex	de, hl
       
  3019 		ld	a, 7Eh ; '~'
       
  3020 		ld	de, 860h
       
  3021 		rst	28h
       
  3022 ; ---------------------------------------------------------------------------
       
  3023 		.dw 8030h
       
  3024 ; ---------------------------------------------------------------------------
       
  3025 		jr	z, p7Dloc_4E5A
       
  3026 		ld	de, 80h	; '�'
       
  3027 		jr	p7Dloc_4E80
       
  3028 ; ---------------------------------------------------------------------------
       
  3029 
       
  3030 p7Dloc_4E5A:				; CODE XREF: p7Dsub_4E44+Fj
       
  3031 		ld	a, c
       
  3032 		or	b
       
  3033 		ld	a, 0
       
  3034 		jr	z, p7Dloc_4E63
       
  3035 		call	p7Dsub_4566
       
  3036 
       
  3037 p7Dloc_4E63:				; CODE XREF: p7Dsub_4E44+1Aj
       
  3038 		push	af
       
  3039 		ld	b, 9
       
  3040 		sub	b
       
  3041 		jr	c, p7Dloc_4E79
       
  3042 		pop	af
       
  3043 		ld	b, 8
       
  3044 		sub	b
       
  3045 		call	p7Dsub_4E9B
       
  3046 		ld	d, a
       
  3047 		ld	a, 8
       
  3048 		call	p7Dsub_4E9B
       
  3049 		ld	e, a
       
  3050 		jr	p7Dloc_4E80
       
  3051 ; ---------------------------------------------------------------------------
       
  3052 
       
  3053 p7Dloc_4E79:				; CODE XREF: p7Dsub_4E44+23j
       
  3054 		ld	d, 0
       
  3055 		pop	af
       
  3056 		call	p7Dsub_4E9B
       
  3057 		ld	e, a
       
  3058 
       
  3059 p7Dloc_4E80:				; CODE XREF: p7Dsub_4E44+14j p7Dsub_4E44+33j
       
  3060 		ld	hl, tempSwapArea
       
  3061 		push	ix
       
  3062 		pop	bc
       
  3063 		sla	c
       
  3064 		ld	b, 0
       
  3065 		or	a
       
  3066 		adc	hl, bc
       
  3067 		ld	(hl), e
       
  3068 		inc	hl
       
  3069 		ld	(hl), d
       
  3070 		ld	a, 0FFh
       
  3071 		bit	7, a
       
  3072 		pop	ix
       
  3073 		pop	de
       
  3074 		pop	hl
       
  3075 		pop	bc
       
  3076 		pop	af
       
  3077 		ret
       
  3078 ; End of function p7Dsub_4E44
       
  3079 
       
  3080 
       
  3081 ; =============== S U B	R O U T	I N E =======================================
       
  3082 
       
  3083 
       
  3084 p7Dsub_4E9B:				; CODE XREF: p7Dsub_4DCD+47p p7Dsub_4DCD+4Dp ...
       
  3085 		push	bc
       
  3086 		ld	c, 11h
       
  3087 		sub	c
       
  3088 		jp	nc, p7Dloc_4EB9
       
  3089 		or	a
       
  3090 		adc	a, c
       
  3091 		cp	0
       
  3092 		jr	z, p7Dloc_4EB9
       
  3093 		cp	1
       
  3094 		jr	z, p7Dloc_4EBB
       
  3095 		ld	b, a
       
  3096 		dec	b
       
  3097 		ld	a, 2
       
  3098 
       
  3099 p7Dloc_4EB0:				; CODE XREF: p7Dsub_4E9B+17j
       
  3100 		sla	a
       
  3101 		djnz	p7Dloc_4EB0
       
  3102 		ld	b, 1
       
  3103 		sub	b
       
  3104 		jr	p7Dloc_4EBB
       
  3105 ; ---------------------------------------------------------------------------
       
  3106 
       
  3107 p7Dloc_4EB9:				; CODE XREF: p7Dsub_4E9B+4j p7Dsub_4E9B+Bj
       
  3108 		ld	a, 0
       
  3109 
       
  3110 p7Dloc_4EBB:				; CODE XREF: p7Dsub_4E9B+Fj p7Dsub_4E9B+1Cj
       
  3111 		pop	bc
       
  3112 		ret
       
  3113 ; End of function p7Dsub_4E9B
       
  3114 
       
  3115 
       
  3116 ; =============== S U B	R O U T	I N E =======================================
       
  3117 
       
  3118 
       
  3119 p7Dsub_4EBD:				; CODE XREF: p7Dsub_4D5E+4p
       
  3120 					; p7Dsub_4F10:p7Dloc_4F47p
       
  3121 		push	af
       
  3122 		push	hl
       
  3123 		push	de
       
  3124 		push	ix
       
  3125 		ld	de, 710h
       
  3126 		call	p7Dsub_4ECE
       
  3127 		pop	ix
       
  3128 		pop	de
       
  3129 		pop	hl
       
  3130 		pop	af
       
  3131 		ret
       
  3132 ; End of function p7Dsub_4EBD
       
  3133 
       
  3134 
       
  3135 ; =============== S U B	R O U T	I N E =======================================
       
  3136 
       
  3137 
       
  3138 p7Dsub_4ECE:				; CODE XREF: p7Dsub_4EBD+8p p7Dsub_4F10+8p
       
  3139 		call	p7Dsub_705E
       
  3140 		call	p7Dsub_4574
       
  3141 		ld	de, 838Fh
       
  3142 		call	p7Dsub_424C
       
  3143 		push	hl
       
  3144 		ld	hl, OP6
       
  3145 		ld	(hl), 1
       
  3146 		pop	hl
       
  3147 		rst	28h
       
  3148 ; ---------------------------------------------------------------------------
       
  3149 		.dw 8069h
       
  3150 ; ---------------------------------------------------------------------------
       
  3151 		jr	z, p7Dloc_4EE8
       
  3152 		dec	ix
       
  3153 
       
  3154 p7Dloc_4EE8:				; CODE XREF: p7Dsub_4ECE+16j
       
  3155 		call	p7Dsub_764E
       
  3156 		push	hl
       
  3157 		pop	ix
       
  3158 		push	ix
       
  3159 		pop	bc
       
  3160 		sla	c
       
  3161 		call	p7Dsub_521D
       
  3162 		or	a
       
  3163 		adc	hl, bc
       
  3164 		ld	a, 7Eh ; '~'
       
  3165 
       
  3166 p7Dloc_4EFB:
       
  3167 		ld	de, tempSwapArea
       
  3168 		ex	de, hl
       
  3169 		pop	bc
       
  3170 		push	bc
       
  3171 		sla	c
       
  3172 		ld	b, 0
       
  3173 		or	a
       
  3174 		adc	hl, bc
       
  3175 		ex	de, hl
       
  3176 		ld	bc, 2
       
  3177 		call	FlashToRam
       
  3178 		ret
       
  3179 ; End of function p7Dsub_4ECE
       
  3180 
       
  3181 
       
  3182 ; =============== S U B	R O U T	I N E =======================================
       
  3183 
       
  3184 
       
  3185 p7Dsub_4F10:				; CODE XREF: p7Dsub_4CAE+2Ap
       
  3186 		push	af
       
  3187 		push	hl
       
  3188 		push	de
       
  3189 		push	ix
       
  3190 		ld	de, 810h
       
  3191 		call	p7Dsub_4ECE
       
  3192 		ld	bc, (appID+1)
       
  3193 		ld	b, 0
       
  3194 		ld	a, c
       
  3195 		push	af
       
  3196 		and	0F0h ; '�'
       
  3197 		ld	c, a
       
  3198 		pop	af
       
  3199 		xor	c
       
  3200 		ld	c, a
       
  3201 		ld	(OP2), bc
       
  3202 
       
  3203 p7Dloc_4F2D:
       
  3204 		ld	hl, 838Fh
       
  3205 		ld	de, 8484h
       
  3206 		ldir
       
  3207 		rst	28h
       
  3208 ; ---------------------------------------------------------------------------
       
  3209 		.dw 8066h
       
  3210 ; ---------------------------------------------------------------------------
       
  3211 		pop	ix
       
  3212 		jr	nz, p7Dloc_4F5E
       
  3213 		inc	ix
       
  3214 		ld	de, 700h
       
  3215 		call	p7Dsub_777E
       
  3216 		call	p7Dsub_4574
       
  3217 
       
  3218 p7Dloc_4F47:				; CODE XREF: p7Dsub_4F10+4Aj
       
  3219 		call	p7Dsub_4EBD
       
  3220 		inc	ix
       
  3221 		ld	a, 7Eh ; '~'
       
  3222 		ld	de, 710h
       
  3223 		rst	28h
       
  3224 ; ---------------------------------------------------------------------------
       
  3225 		.dw 8030h
       
  3226 ; ---------------------------------------------------------------------------
       
  3227 		or	a
       
  3228 		adc	hl, bc
       
  3229 		call	p7Dsub_705E
       
  3230 		jr	z, p7Dloc_4F47
       
  3231 		dec	ix
       
  3232 
       
  3233 p7Dloc_4F5E:				; CODE XREF: p7Dsub_4F10+2Aj
       
  3234 		pop	de
       
  3235 		pop	hl
       
  3236 		pop	af
       
  3237 		ret
       
  3238 ; End of function p7Dsub_4F10
       
  3239 
       
  3240 
       
  3241 ; =============== S U B	R O U T	I N E =======================================
       
  3242 
       
  3243 
       
  3244 p7Dsub_4F62:				; CODE XREF: p7Dsub_4C8B+4p
       
  3245 		ld	hl, tempSwapArea
       
  3246 		ld	a, 0FFh
       
  3247 		ld	b, 0E8h	; '�'
       
  3248 
       
  3249 p7Dloc_4F69:				; CODE XREF: p7Dsub_4F62+9j
       
  3250 		ld	(hl), a
       
  3251 		inc	hl
       
  3252 		djnz	p7Dloc_4F69
       
  3253 		ret
       
  3254 ; End of function p7Dsub_4F62
       
  3255 
       
  3256 
       
  3257 ; =============== S U B	R O U T	I N E =======================================
       
  3258 
       
  3259 
       
  3260 p7Dsub_4F6E:				; CODE XREF: p7Dsub_4D5E:p7Dloc_4D5Fp
       
  3261 		push	hl
       
  3262 		push	de
       
  3263 		push	bc
       
  3264 		push	ix
       
  3265 		push	de
       
  3266 		ld	a, 7Eh ; '~'
       
  3267 		ld	de, 710h
       
  3268 		rst	28h
       
  3269 ; ---------------------------------------------------------------------------
       
  3270 		.dw 8030h
       
  3271 ; ---------------------------------------------------------------------------
       
  3272 		pop	de
       
  3273 		push	hl
       
  3274 		push	bc
       
  3275 		ex	de, hl
       
  3276 		ld	a, 7Eh ; '~'
       
  3277 		ld	de, 710h
       
  3278 		rst	28h
       
  3279 ; ---------------------------------------------------------------------------
       
  3280 		.dw 8030h
       
  3281 ; ---------------------------------------------------------------------------
       
  3282 		pop	de
       
  3283 		ld	a, e
       
  3284 		pop	de
       
  3285 		cp	c
       
  3286 		jr	nz, p7Dloc_4FE9
       
  3287 		ld	a, c
       
  3288 		or	b
       
  3289 		jr	z, p7Dloc_4FEF
       
  3290 		jp	p7Dloc_4FB9
       
  3291 ; End of function p7Dsub_4F6E
       
  3292 
       
  3293 
       
  3294 ; =============== S U B	R O U T	I N E =======================================
       
  3295 
       
  3296 
       
  3297 p7Dsub_4F95:				; CODE XREF: p7Dsub_4CAE:p7Dloc_4CD3p
       
  3298 		push	hl
       
  3299 		push	de
       
  3300 		push	bc
       
  3301 		push	ix
       
  3302 		push	de
       
  3303 		ld	a, 7Eh ; '~'
       
  3304 		ld	de, 810h
       
  3305 		rst	28h
       
  3306 ; ---------------------------------------------------------------------------
       
  3307 		.dw 8030h
       
  3308 ; ---------------------------------------------------------------------------
       
  3309 		pop	de
       
  3310 		push	hl
       
  3311 		push	bc
       
  3312 		ex	de, hl
       
  3313 		ld	a, 7Eh ; '~'
       
  3314 		ld	de, 810h
       
  3315 		rst	28h
       
  3316 ; ---------------------------------------------------------------------------
       
  3317 		.dw 8030h
       
  3318 ; ---------------------------------------------------------------------------
       
  3319 		pop	de
       
  3320 		ld	a, e
       
  3321 		pop	de
       
  3322 		cp	c
       
  3323 		jr	nz, p7Dloc_4FE9
       
  3324 		ld	a, c
       
  3325 		or	b
       
  3326 		jr	z, p7Dloc_4FEF
       
  3327 
       
  3328 p7Dloc_4FB9:				; CODE XREF: p7Dsub_4F6E+24j
       
  3329 		ld	b, c
       
  3330 
       
  3331 p7Dloc_4FBA:				; CODE XREF: p7Dsub_4F95+2Ej p7Dsub_4F95+52j
       
  3332 		ld	a, 7Eh ; '~'
       
  3333 		call	p7Dsub_4C73
       
  3334 		jr	nz, p7Dloc_4FE9
       
  3335 		inc	hl
       
  3336 		inc	de
       
  3337 		djnz	p7Dloc_4FBA
       
  3338 		call	p7Dsub_4565
       
  3339 		and	0F0h ; '�'
       
  3340 		cp	10h
       
  3341 		jr	z, p7Dloc_4FEF
       
  3342 		cp	0
       
  3343 		jr	z, p7Dloc_4FEF
       
  3344 		dec	hl
       
  3345 		inc	de
       
  3346 		push	de
       
  3347 		call	p7Dsub_4574
       
  3348 		pop	de
       
  3349 		ex	de, hl
       
  3350 		push	bc
       
  3351 		push	de
       
  3352 		call	p7Dloc_4575
       
  3353 		pop	de
       
  3354 		ex	de, hl
       
  3355 		ld	a, c
       
  3356 		pop	bc
       
  3357 		cp	c
       
  3358 		jr	nz, p7Dloc_4FE9
       
  3359 		ld	b, c
       
  3360 		jr	p7Dloc_4FBA
       
  3361 ; ---------------------------------------------------------------------------
       
  3362 
       
  3363 p7Dloc_4FE9:				; CODE XREF: p7Dsub_4F6E+1Ej p7Dsub_4F95+1Ej ...
       
  3364 		ld	a, 0FFh
       
  3365 		bit	7, a
       
  3366 		jr	p7Dloc_4FF3
       
  3367 ; ---------------------------------------------------------------------------
       
  3368 
       
  3369 p7Dloc_4FEF:				; CODE XREF: p7Dsub_4F6E+22j p7Dsub_4F95+22j ...
       
  3370 		ld	a, 0
       
  3371 		bit	7, a
       
  3372 
       
  3373 p7Dloc_4FF3:				; CODE XREF: p7Dsub_4F95+58j
       
  3374 		pop	ix
       
  3375 		pop	bc
       
  3376 		pop	de
       
  3377 		pop	hl
       
  3378 		ret
       
  3379 ; End of function p7Dsub_4F95
       
  3380 
       
  3381 ; ---------------------------------------------------------------------------
       
  3382 
       
  3383 p7Dloc_4FF9:				; CODE XREF: p7Dsub_533B+24p
       
  3384 		push	af
       
  3385 		push	de
       
  3386 		push	hl
       
  3387 		push	bc
       
  3388 		push	af
       
  3389 		push	hl
       
  3390 		push	af
       
  3391 		inc	hl
       
  3392 		rst	28h
       
  3393 ; ---------------------------------------------------------------------------
       
  3394 		.dw 805Ah
       
  3395 ; ---------------------------------------------------------------------------
       
  3396 		or	a
       
  3397 		adc	hl, bc
       
  3398 		pop	af
       
  3399 		inc	hl
       
  3400 		rst	28h
       
  3401 ; ---------------------------------------------------------------------------
       
  3402 		.dw 805Ah
       
  3403 ; ---------------------------------------------------------------------------
       
  3404 		or	a
       
  3405 		adc	hl, bc
       
  3406 		pop	de
       
  3407 		or	a
       
  3408 		sbc	hl, de
       
  3409 		push	hl
       
  3410 		pop	bc
       
  3411 		ex	de, hl
       
  3412 		pop	af
       
  3413 		ld	de, tempSwapArea
       
  3414 		push	bc
       
  3415 		rst	28h
       
  3416 ; ---------------------------------------------------------------------------
       
  3417 		.dw 8054h
       
  3418 ; ---------------------------------------------------------------------------
       
  3419 		pop	bc
       
  3420 		ld	a, 7Eh ; '~'
       
  3421 		call	p7Dsub_4894
       
  3422 		push	hl
       
  3423 		push	hl
       
  3424 		rst	28h
       
  3425 ; ---------------------------------------------------------------------------
       
  3426 		.dw 8060h
       
  3427 ; ---------------------------------------------------------------------------
       
  3428 		pop	hl
       
  3429 		ex	de, hl
       
  3430 		ld	hl, tempSwapArea
       
  3431 		ld	a, 7Eh ; '~'
       
  3432 		rst	28h
       
  3433 ; ---------------------------------------------------------------------------
       
  3434 		.dw 8087h
       
  3435 ; ---------------------------------------------------------------------------
       
  3436 		ld	de, 320h
       
  3437 		rst	28h
       
  3438 ; ---------------------------------------------------------------------------
       
  3439 		.dw 8027h
       
  3440 ; ---------------------------------------------------------------------------
       
  3441 		jr	nz, p7Dloc_503E
       
  3442 		rst	28h
       
  3443 ; ---------------------------------------------------------------------------
       
  3444 		.dw 802Ah
       
  3445 ; ---------------------------------------------------------------------------
       
  3446 
       
  3447 p7Dloc_503E:				; CODE XREF: seg001:5039j
       
  3448 		pop	hl
       
  3449 ; START	OF FUNCTION CHUNK FOR p7Dsub_5083
       
  3450 
       
  3451 p7Dloc_503F:				; CODE XREF: p7Dsub_5083+4j
       
  3452 		scf
       
  3453 
       
  3454 p7Dloc_5040:				; CODE XREF: p7Dsub_508A+1Cj
       
  3455 		ld	a, 7Eh ; '~'
       
  3456 		push	af
       
  3457 		push	af
       
  3458 		push	hl
       
  3459 		push	hl
       
  3460 		push	af
       
  3461 		inc	hl
       
  3462 		rst	28h
       
  3463 ; ---------------------------------------------------------------------------
       
  3464 		.dw 805Ah
       
  3465 ; ---------------------------------------------------------------------------
       
  3466 		or	a
       
  3467 		adc	hl, bc
       
  3468 		pop	af
       
  3469 		inc	hl
       
  3470 		rst	28h
       
  3471 ; ---------------------------------------------------------------------------
       
  3472 		.dw 805Ah
       
  3473 ; ---------------------------------------------------------------------------
       
  3474 		or	a
       
  3475 		adc	hl, bc
       
  3476 		pop	de
       
  3477 		or	a
       
  3478 		sbc	hl, de
       
  3479 		push	hl
       
  3480 		pop	bc
       
  3481 		pop	hl
       
  3482 		pop	af
       
  3483 		push	bc
       
  3484 		push	hl
       
  3485 		call	p7Dsub_521D
       
  3486 		ld	bc, 0E8h ; '�'
       
  3487 		ld	a, 7Eh ; '~'
       
  3488 		ld	de, tempSwapArea
       
  3489 		rst	28h
       
  3490 ; ---------------------------------------------------------------------------
       
  3491 		.dw 8054h
       
  3492 ; ---------------------------------------------------------------------------
       
  3493 		pop	de
       
  3494 		pop	bc
       
  3495 		ld	a, d
       
  3496 		xor	20h ; ' '
       
  3497 		ld	d, a
       
  3498 		call	p7Dsub_430E
       
  3499 		jp	nz, p7Dloc_46C1
       
  3500 		pop	af
       
  3501 		call	c, p7Dsub_4926
       
  3502 		pop	bc
       
  3503 		pop	hl
       
  3504 		pop	de
       
  3505 		pop	af
       
  3506 		ret
       
  3507 ; END OF FUNCTION CHUNK	FOR p7Dsub_5083
       
  3508 
       
  3509 ; =============== S U B	R O U T	I N E =======================================
       
  3510 
       
  3511 
       
  3512 p7Dsub_5083:				; CODE XREF: seg001:452Cp
       
  3513 
       
  3514 ; FUNCTION CHUNK AT 46C1 SIZE 00000006 BYTES
       
  3515 ; FUNCTION CHUNK AT 503F SIZE 00000044 BYTES
       
  3516 
       
  3517 		push	af
       
  3518 		push	de
       
  3519 		push	hl
       
  3520 		push	bc
       
  3521 		jp	p7Dloc_503F
       
  3522 ; End of function p7Dsub_5083
       
  3523 
       
  3524 
       
  3525 ; =============== S U B	R O U T	I N E =======================================
       
  3526 
       
  3527 
       
  3528 p7Dsub_508A:				; CODE XREF: p7Dsub_50A8+15p
       
  3529 		push	af
       
  3530 		push	de
       
  3531 		push	hl
       
  3532 		push	bc
       
  3533 		call	p7Dsub_4894
       
  3534 		ld	de, 320h
       
  3535 		call	p7Dsub_777E
       
  3536 		push	hl
       
  3537 		ld	de, 320h
       
  3538 		rst	28h
       
  3539 ; ---------------------------------------------------------------------------
       
  3540 		.dw 8027h
       
  3541 ; ---------------------------------------------------------------------------
       
  3542 		jr	nz, p7Dloc_50A3
       
  3543 		rst	28h
       
  3544 ; ---------------------------------------------------------------------------
       
  3545 		.dw 802Ah
       
  3546 ; ---------------------------------------------------------------------------
       
  3547 
       
  3548 p7Dloc_50A3:				; CODE XREF: p7Dsub_508A+14j
       
  3549 		pop	hl
       
  3550 		scf
       
  3551 		ccf
       
  3552 		jr	p7Dloc_5040
       
  3553 ; End of function p7Dsub_508A
       
  3554 
       
  3555 
       
  3556 ; =============== S U B	R O U T	I N E =======================================
       
  3557 
       
  3558 
       
  3559 p7Dsub_50A8:				; CODE XREF: seg001:45A6p seg001:4735p ...
       
  3560 		push	af
       
  3561 		push	bc
       
  3562 		push	hl
       
  3563 		push	de
       
  3564 		call	p7Dsub_4894
       
  3565 		ld	de, 320h
       
  3566 		call	p7Dsub_777E
       
  3567 		call	p7Dsub_4574
       
  3568 		ld	a, 7Eh ; '~'
       
  3569 		call	p7Dsub_50C5
       
  3570 		call	z, p7Dsub_508A
       
  3571 		pop	de
       
  3572 		pop	hl
       
  3573 		pop	bc
       
  3574 		pop	af
       
  3575 		ret
       
  3576 ; End of function p7Dsub_50A8
       
  3577 
       
  3578 
       
  3579 ; =============== S U B	R O U T	I N E =======================================
       
  3580 
       
  3581 
       
  3582 p7Dsub_50C5:				; CODE XREF: seg001:4516p p7Dsub_4AC9+3Cp ...
       
  3583 		push	ix
       
  3584 		push	hl
       
  3585 		push	de
       
  3586 		push	af
       
  3587 		push	hl
       
  3588 		ld	de, 320h
       
  3589 		rst	28h
       
  3590 ; ---------------------------------------------------------------------------
       
  3591 		.dw 8027h
       
  3592 ; ---------------------------------------------------------------------------
       
  3593 		jr	nz, p7Dloc_5119
       
  3594 		call	p7Dsub_4574
       
  3595 		ex	de, hl
       
  3596 		pop	hl
       
  3597 		inc	hl
       
  3598 		inc	de
       
  3599 		pop	af
       
  3600 		ld	b, a
       
  3601 		rst	28h
       
  3602 ; ---------------------------------------------------------------------------
       
  3603 		.dw 8051h
       
  3604 ; ---------------------------------------------------------------------------
       
  3605 		push	af
       
  3606 		and	0F0h ; '�'
       
  3607 		ld	c, a
       
  3608 		pop	af
       
  3609 		xor	c
       
  3610 		push	af
       
  3611 		ex	de, hl
       
  3612 		call	p7Dsub_4566
       
  3613 		ld	c, a
       
  3614 		pop	af
       
  3615 		sub	c
       
  3616 		jr	z, p7Dloc_50F3
       
  3617 		jr	nc, p7Dloc_511B
       
  3618 		jr	c, p7Dloc_5113
       
  3619 
       
  3620 p7Dloc_50F3:				; CODE XREF: p7Dsub_50C5+28j
       
  3621 		ld	a, b
       
  3622 		inc	de
       
  3623 		inc	hl
       
  3624 		ld	b, c
       
  3625 		ex	de, hl
       
  3626 
       
  3627 p7Dloc_50F8:				; CODE XREF: p7Dsub_50C5+49j
       
  3628 		push	af
       
  3629 		rst	28h
       
  3630 ; ---------------------------------------------------------------------------
       
  3631 		.dw 8051h
       
  3632 ; ---------------------------------------------------------------------------
       
  3633 		push	af
       
  3634 		ex	de, hl
       
  3635 		call	p7Dsub_4566
       
  3636 		ld	c, a
       
  3637 		pop	af
       
  3638 		sub	c
       
  3639 		jr	z, p7Dloc_510A
       
  3640 		jr	nc, p7Dloc_511A
       
  3641 		jr	c, p7Dloc_5112
       
  3642 
       
  3643 p7Dloc_510A:				; CODE XREF: p7Dsub_50C5+3Fj
       
  3644 		pop	af
       
  3645 		inc	de
       
  3646 		inc	hl
       
  3647 		ex	de, hl
       
  3648 		djnz	p7Dloc_50F8
       
  3649 		jr	p7Dloc_5113
       
  3650 ; ---------------------------------------------------------------------------
       
  3651 
       
  3652 p7Dloc_5112:				; CODE XREF: p7Dsub_50C5+43j
       
  3653 		pop	af
       
  3654 
       
  3655 p7Dloc_5113:				; CODE XREF: p7Dsub_50C5+2Cj p7Dsub_50C5+4Bj
       
  3656 		ld	a, 0FFh
       
  3657 		bit	7, a
       
  3658 		jr	p7Dloc_511F
       
  3659 ; ---------------------------------------------------------------------------
       
  3660 
       
  3661 p7Dloc_5119:				; CODE XREF: p7Dsub_50C5+Cj
       
  3662 		pop	af
       
  3663 
       
  3664 p7Dloc_511A:				; CODE XREF: p7Dsub_50C5+41j
       
  3665 		pop	af
       
  3666 
       
  3667 p7Dloc_511B:				; CODE XREF: p7Dsub_50C5+2Aj
       
  3668 		ld	a, 0
       
  3669 		bit	7, a
       
  3670 
       
  3671 p7Dloc_511F:				; CODE XREF: p7Dsub_50C5+52j
       
  3672 		pop	de
       
  3673 		pop	hl
       
  3674 		pop	ix
       
  3675 		ret
       
  3676 ; End of function p7Dsub_50C5
       
  3677 
       
  3678 
       
  3679 ; =============== S U B	R O U T	I N E =======================================
       
  3680 
       
  3681 
       
  3682 p7Dsub_5124:				; CODE XREF: seg001:4749p
       
  3683 		push	hl
       
  3684 		push	bc
       
  3685 		push	de
       
  3686 		push	af
       
  3687 		call	p7Dsub_47B5
       
  3688 		call	p7Dsub_762A
       
  3689 		call	p7Dsub_484E
       
  3690 		inc	ix
       
  3691 		push	ix
       
  3692 		call	p7Dsub_4894
       
  3693 		ld	de, 700h
       
  3694 		call	p7Dsub_777E
       
  3695 		call	p7Dsub_4574
       
  3696 
       
  3697 p7Dloc_5141:				; CODE XREF: p7Dsub_5124+30j
       
  3698 		ld	de, 710h
       
  3699 		call	p7Dsub_705E
       
  3700 		jr	nz, p7Dloc_5156
       
  3701 		ex	de, hl
       
  3702 		call	p7Dsub_4DCD
       
  3703 		ex	de, hl
       
  3704 		inc	ix
       
  3705 		call	p7Dsub_4574
       
  3706 		add	hl, bc
       
  3707 		jr	p7Dloc_5141
       
  3708 ; ---------------------------------------------------------------------------
       
  3709 
       
  3710 p7Dloc_5156:				; CODE XREF: p7Dsub_47E3+68j p7Dsub_5124+23j
       
  3711 		ld	hl, tempSwapArea
       
  3712 		push	ix
       
  3713 		pop	bc
       
  3714 		sla	c
       
  3715 		add	hl, bc
       
  3716 		pop	de
       
  3717 		push	hl
       
  3718 		sla	e
       
  3719 		call	p7Dsub_521D
       
  3720 		add	hl, de
       
  3721 		push	hl
       
  3722 		ld	a, c
       
  3723 		sub	e
       
  3724 		jr	nc, p7Dloc_516F
       
  3725 		ld	a, e
       
  3726 		ld	e, c
       
  3727 		sub	e
       
  3728 
       
  3729 p7Dloc_516F:				; CODE XREF: p7Dsub_5124+46j
       
  3730 		ld	c, a
       
  3731 		ld	hl, 0C8h ; '�'
       
  3732 		sbc	hl, de
       
  3733 		sbc	hl, bc
       
  3734 		push	hl
       
  3735 		pop	bc
       
  3736 		pop	hl
       
  3737 		pop	de
       
  3738 		ld	a, 7Eh ; '~'
       
  3739 		rst	28h
       
  3740 ; ---------------------------------------------------------------------------
       
  3741 		.dw 8054h
       
  3742 ; ---------------------------------------------------------------------------
       
  3743 		pop	af
       
  3744 		pop	de
       
  3745 		pop	bc
       
  3746 		pop	hl
       
  3747 		ret
       
  3748 ; End of function p7Dsub_5124
       
  3749 
       
  3750 
       
  3751 ; =============== S U B	R O U T	I N E =======================================
       
  3752 
       
  3753 
       
  3754 p7Dsub_5185:				; CODE XREF: p7Dsub_519D+14p
       
  3755 		push	bc
       
  3756 		push	hl
       
  3757 		call	p7Dsub_521D
       
  3758 		pop	de
       
  3759 		ex	de, hl
       
  3760 		or	a
       
  3761 		sbc	hl, de
       
  3762 		ex	de, hl
       
  3763 		ld	hl, tempSwapArea
       
  3764 		add	hl, de
       
  3765 		ld	a, (unk_9C20)
       
  3766 		call	Page7D_2B86
       
  3767 		pop	bc
       
  3768 		ld	(hl), b
       
  3769 		ret
       
  3770 ; End of function p7Dsub_5185
       
  3771 
       
  3772 
       
  3773 ; =============== S U B	R O U T	I N E =======================================
       
  3774 
       
  3775 
       
  3776 p7Dsub_519D:				; CODE XREF: p7Dsub_7240+227p
       
  3777 		push	af
       
  3778 		push	bc
       
  3779 		push	hl
       
  3780 		call	p7Dsub_51DB
       
  3781 		call	p7Dsub_7BCC
       
  3782 		ld	c, a
       
  3783 		call	p7Dsub_4566
       
  3784 		push	af
       
  3785 		or	c
       
  3786 		ld	b, a
       
  3787 		pop	af
       
  3788 		and	c
       
  3789 		jr	nz, p7Dloc_51BB
       
  3790 		call	p7Dsub_5185
       
  3791 		ld	a, 5
       
  3792 		call	Page7D_2B62
       
  3793 		jr	p7Dloc_51BF
       
  3794 ; ---------------------------------------------------------------------------
       
  3795 
       
  3796 p7Dloc_51BB:				; CODE XREF: p7Dsub_519D+12j
       
  3797 		ex	de, hl
       
  3798 		call	p7Dsub_456D
       
  3799 
       
  3800 p7Dloc_51BF:				; CODE XREF: p7Dsub_519D+1Cj
       
  3801 		pop	hl
       
  3802 		pop	bc
       
  3803 		pop	af
       
  3804 		ret
       
  3805 ; End of function p7Dsub_519D
       
  3806 
       
  3807 
       
  3808 ; =============== S U B	R O U T	I N E =======================================
       
  3809 
       
  3810 
       
  3811 p7Dsub_51C3:				; CODE XREF: p7Dsub_464E+2Dp seg001:7758p
       
  3812 		push	af
       
  3813 		push	bc
       
  3814 		push	hl
       
  3815 		call	p7Dsub_51DB
       
  3816 		call	p7Dsub_7BCC
       
  3817 		cpl
       
  3818 		ld	c, a
       
  3819 		call	p7Dsub_4566
       
  3820 		and	c
       
  3821 		ld	b, a
       
  3822 		ex	de, hl
       
  3823 		call	p7Dsub_456D
       
  3824 		pop	hl
       
  3825 		pop	bc
       
  3826 		pop	af
       
  3827 		ret
       
  3828 ; End of function p7Dsub_51C3
       
  3829 
       
  3830 
       
  3831 ; =============== S U B	R O U T	I N E =======================================
       
  3832 
       
  3833 
       
  3834 p7Dsub_51DB:				; CODE XREF: p7Dsub_519D+3p p7Dsub_51C3+3p
       
  3835 		push	de
       
  3836 		push	af
       
  3837 		ld	b, a
       
  3838 		rst	28h
       
  3839 ; ---------------------------------------------------------------------------
       
  3840 		.dw 80A8h
       
  3841 ; ---------------------------------------------------------------------------
       
  3842 		jr	nz, p7Dloc_51ED
       
  3843 		call	p7Dsub_75EC
       
  3844 		sub	b
       
  3845 		inc	a
       
  3846 		ld	c, a
       
  3847 		ld	b, 0
       
  3848 		jr	p7Dloc_5202
       
  3849 ; ---------------------------------------------------------------------------
       
  3850 
       
  3851 p7Dloc_51ED:				; CODE XREF: p7Dsub_51DB+6j
       
  3852 		push	hl
       
  3853 		ld	hl, OP6
       
  3854 		ld	(hl), 0
       
  3855 		pop	hl
       
  3856 		rst	28h
       
  3857 ; ---------------------------------------------------------------------------
       
  3858 		.dw 8069h
       
  3859 ; ---------------------------------------------------------------------------
       
  3860 		inc	ix
       
  3861 		push	ix
       
  3862 		pop	hl
       
  3863 		call	p7Dsub_7643
       
  3864 		add	hl, bc
       
  3865 		push	hl
       
  3866 		pop	bc
       
  3867 
       
  3868 p7Dloc_5202:				; CODE XREF: p7Dsub_51DB+10j
       
  3869 		push	bc
       
  3870 		call	Page7D_2B80
       
  3871 		sra	c
       
  3872 		sra	c
       
  3873 		sra	c
       
  3874 		or	a
       
  3875 		adc	hl, bc
       
  3876 		pop	bc
       
  3877 		ld	a, c
       
  3878 		and	7
       
  3879 		ld	c, a
       
  3880 		pop	af
       
  3881 		pop	de
       
  3882 		ret
       
  3883 ; End of function p7Dsub_51DB
       
  3884 
       
  3885 
       
  3886 ; =============== S U B	R O U T	I N E =======================================
       
  3887 
       
  3888 
       
  3889 Page7D_2B80:				; CODE XREF: p7Dsub_4253p	p7Dsub_4533p ...
       
  3890 		push	bc
       
  3891 		ld	bc, 1FE0h
       
  3892 		jr	p7Dloc_5221
       
  3893 ; End of function Page7D_2B80
       
  3894 
       
  3895 
       
  3896 ; =============== S U B	R O U T	I N E =======================================
       
  3897 
       
  3898 
       
  3899 p7Dsub_521D:				; CODE XREF: Page7D_2B62+5Ap p7Dsub_4228p ...
       
  3900 		push	bc
       
  3901 		ld	bc, 1F18h
       
  3902 
       
  3903 p7Dloc_5221:				; CODE XREF: Page7D_2B80+4j
       
  3904 					; p7Dsub_522B+4j ...
       
  3905 		push	ix
       
  3906 		rst	28h
       
  3907 ; ---------------------------------------------------------------------------
       
  3908 		.dw 8057h
       
  3909 ; ---------------------------------------------------------------------------
       
  3910 		add	hl, bc
       
  3911 		pop	ix
       
  3912 		pop	bc
       
  3913 		ret
       
  3914 ; End of function p7Dsub_521D
       
  3915 
       
  3916 
       
  3917 ; =============== S U B	R O U T	I N E =======================================
       
  3918 
       
  3919 
       
  3920 p7Dsub_522B:				; CODE XREF: Page7D_2B62+62p p7Dsub_4214p ...
       
  3921 		push	bc
       
  3922 		ld	bc, 1DEAh
       
  3923 		jr	p7Dloc_5221
       
  3924 ; End of function p7Dsub_522B
       
  3925 
       
  3926 
       
  3927 ; =============== S U B	R O U T	I N E =======================================
       
  3928 
       
  3929 
       
  3930 Page7D_2B68:				; CODE XREF: p7Dsub_48B5p	p7Dsub_5365+5p ...
       
  3931 		call	NZIf83Plus
       
  3932 		jr	nz, p7Dsub_521D
       
  3933 ; End of function Page7D_2B68
       
  3934 
       
  3935 
       
  3936 ; =============== S U B	R O U T	I N E =======================================
       
  3937 
       
  3938 
       
  3939 p7Dsub_5236:				; CODE XREF: p7Dsub_4230p	p7Dsub_4261p ...
       
  3940 		push	bc
       
  3941 		ld	bc, 1E50h
       
  3942 		jr	p7Dloc_5221
       
  3943 ; End of function p7Dsub_5236
       
  3944 
       
  3945 
       
  3946 ; =============== S U B	R O U T	I N E =======================================
       
  3947 
       
  3948 
       
  3949 p7Dsub_523C:				; CODE XREF: p7Dsub_42A2p
       
  3950 		push	bc
       
  3951 		ld	bc, 1FE0h
       
  3952 		jr	p7Dloc_5221
       
  3953 ; End of function p7Dsub_523C
       
  3954 
       
  3955 
       
  3956 ; =============== S U B	R O U T	I N E =======================================
       
  3957 
       
  3958 
       
  3959 FindSwapSector:				; CODE XREF: p7Dsub_42AE+3p p7Dsub_42D3p ...
       
  3960 		push	hl
       
  3961 		push	bc
       
  3962 		push	ix
       
  3963 		ld	a, (OP1)
       
  3964 		push	af
       
  3965 		ld	a, 8
       
  3966 
       
  3967 p7Dloc_524C:				; CODE XREF: FindSwapSector+1Bj
       
  3968 		push	af
       
  3969 		ld	hl, 4000h
       
  3970 		rst	28h
       
  3971 ; ---------------------------------------------------------------------------
       
  3972 		.dw 8051h
       
  3973 ; ---------------------------------------------------------------------------
       
  3974 		cp	0FEh ; '�'
       
  3975 		jr	z, p7Dloc_527B
       
  3976 		pop	af
       
  3977 		add	a, 4
       
  3978 		call	p7Dsub_75E1
       
  3979 		jr	c, p7Dloc_524C
       
  3980 		ld	a, 8
       
  3981 
       
  3982 p7Dloc_5261:				; CODE XREF: FindSwapSector+30j
       
  3983 		push	af
       
  3984 		ld	hl, 4000h
       
  3985 		rst	28h
       
  3986 ; ---------------------------------------------------------------------------
       
  3987 		.dw 8051h
       
  3988 ; ---------------------------------------------------------------------------
       
  3989 		cp	0FFh
       
  3990 		jr	z, p7Dloc_5278
       
  3991 		pop	af
       
  3992 		add	a, 4
       
  3993 		call	p7Dsub_75E1
       
  3994 		jr	c, p7Dloc_5261
       
  3995 		ld	a, 8
       
  3996 		jr	p7Dloc_5279
       
  3997 ; ---------------------------------------------------------------------------
       
  3998 
       
  3999 p7Dloc_5278:				; CODE XREF: FindSwapSector+28j
       
  4000 		pop	af
       
  4001 
       
  4002 p7Dloc_5279:				; CODE XREF: FindSwapSector+34j
       
  4003 		jr	p7Dloc_527C
       
  4004 ; ---------------------------------------------------------------------------
       
  4005 
       
  4006 p7Dloc_527B:				; CODE XREF: FindSwapSector+13j
       
  4007 		pop	af
       
  4008 
       
  4009 p7Dloc_527C:				; CODE XREF: FindSwapSector:p7Dloc_5279j
       
  4010 		ld	b, a
       
  4011 		pop	af
       
  4012 		ld	(OP1), a
       
  4013 		ld	a, b
       
  4014 		pop	ix
       
  4015 		pop	bc
       
  4016 		pop	hl
       
  4017 		ret
       
  4018 ; End of function FindSwapSector
       
  4019 
       
  4020 
       
  4021 ; =============== S U B	R O U T	I N E =======================================
       
  4022 
       
  4023 
       
  4024 Page7D_2C40:				; CODE XREF: p7Dsub_42D3+8p
       
  4025 		push	af
       
  4026 		push	hl
       
  4027 		push	bc
       
  4028 		push	de
       
  4029 		ld	b, 0FEh	; '�'
       
  4030 		ld	de, 4000h
       
  4031 		rst	28h
       
  4032 ; ---------------------------------------------------------------------------
       
  4033 		.dw 8021h
       
  4034 ; ---------------------------------------------------------------------------
       
  4035 		pop	de
       
  4036 		pop	bc
       
  4037 		pop	hl
       
  4038 		pop	af
       
  4039 		ret
       
  4040 ; End of function Page7D_2C40
       
  4041 
       
  4042 ; ---------------------------------------------------------------------------
       
  4043 
       
  4044 Page7D_2C22:
       
  4045 		rst	28h
       
  4046 ; ---------------------------------------------------------------------------
       
  4047 		.dw 8066h
       
  4048 ; ---------------------------------------------------------------------------
       
  4049 		jr	nz, locret_52D8
       
  4050 		ld	a, 7Eh ; '~'
       
  4051 
       
  4052 p7Dloc_529F:				; CODE XREF: seg001:5BDAp
       
  4053 		ld	(appSearchPage), a
       
  4054 		push	hl
       
  4055 		push	hl
       
  4056 		ld	a, (appSearchPage)
       
  4057 		inc	hl
       
  4058 		rst	28h
       
  4059 ; ---------------------------------------------------------------------------
       
  4060 		.dw 805Ah
       
  4061 ; ---------------------------------------------------------------------------
       
  4062 		or	a
       
  4063 		adc	hl, bc
       
  4064 		inc	hl
       
  4065 		ld	a, (appSearchPage)
       
  4066 		rst	28h
       
  4067 ; ---------------------------------------------------------------------------
       
  4068 		.dw 805Ah
       
  4069 ; ---------------------------------------------------------------------------
       
  4070 		or	a
       
  4071 		adc	hl, bc
       
  4072 		pop	de
       
  4073 		sbc	hl, de
       
  4074 		push	hl
       
  4075 		pop	bc
       
  4076 		call	p7Dsub_4894
       
  4077 		ex	de, hl
       
  4078 		pop	hl
       
  4079 
       
  4080 p7Dloc_52C2:				; CODE XREF: seg001:52D6j
       
  4081 		push	bc
       
  4082 		ld	a, (appSearchPage)
       
  4083 		rst	28h
       
  4084 ; ---------------------------------------------------------------------------
       
  4085 		.dw 8051h
       
  4086 ; ---------------------------------------------------------------------------
       
  4087 		ld	b, a
       
  4088 		push	hl
       
  4089 		call	p7Dsub_456D
       
  4090 		pop	hl
       
  4091 		pop	bc
       
  4092 		dec	bc
       
  4093 		ld	a, b
       
  4094 		or	c
       
  4095 		jr	z, locret_52D8
       
  4096 		inc	hl
       
  4097 		jr	p7Dloc_52C2
       
  4098 ; ---------------------------------------------------------------------------
       
  4099 
       
  4100 locret_52D8:				; CODE XREF: seg001:529Bj seg001:52D3j
       
  4101 		ret
       
  4102 
       
  4103 ; =============== S U B	R O U T	I N E =======================================
       
  4104 
       
  4105 
       
  4106 p7Dsub_52D9:				; CODE XREF: p7Dsub_4A5A+3Ap seg001:630Dp ...
       
  4107 		ld	de, 8050h
       
  4108 		ld	hl, 4000h
       
  4109 		push	af
       
  4110 		or	a
       
  4111 		rst	28h
       
  4112 ; ---------------------------------------------------------------------------
       
  4113 		.dw 8075h
       
  4114 ; ---------------------------------------------------------------------------
       
  4115 		jr	nz, p7Dloc_52ED
       
  4116 		pop	af
       
  4117 		call	p7Dsub_50C5
       
  4118 		scf
       
  4119 		ccf
       
  4120 		ret
       
  4121 ; ---------------------------------------------------------------------------
       
  4122 
       
  4123 p7Dloc_52ED:				; CODE XREF: p7Dsub_52D9+Bj
       
  4124 		pop	af
       
  4125 		scf
       
  4126 		ret
       
  4127 ; End of function p7Dsub_52D9
       
  4128 
       
  4129 ; ---------------------------------------------------------------------------
       
  4130 
       
  4131 Page7D_2CA0:				; CODE XREF: seg001:6221p seg001:626Bp
       
  4132 		ld	de, 8050h
       
  4133 		push	de
       
  4134 		jp	p7Dloc_52F7
       
  4135 
       
  4136 p7Dloc_52F7:
       
  4137 		ld	hl, 4000h
       
  4138 		pop	de
       
  4139 		push	af
       
  4140 		or	a
       
  4141 		rst	28h
       
  4142 ; ---------------------------------------------------------------------------
       
  4143 		.dw 8075h
       
  4144 ; ---------------------------------------------------------------------------
       
  4145 		jr	nz, p7Dloc_5338
       
  4146 		pop	af
       
  4147 		ld	(Abackup), a
       
  4148 		ld	a, i
       
  4149 		di
       
  4150 		push	af
       
  4151 		ld	a, (Abackup)
       
  4152 		push	af
       
  4153 		ld	a, 1
       
  4154 		nop
       
  4155 		di
       
  4156 		nop
       
  4157 		nop
       
  4158 		im	1
       
  4159 		di
       
  4160 		out	(14h), a
       
  4161 		di
       
  4162 		call	checkForFlashTrickery
       
  4163 		pop	af
       
  4164 		call	p7Dsub_50C5
       
  4165 		call	p7Dsub_6006
       
  4166 		call	relockFlashBack
       
  4167 		ld	(Abackup), a
       
  4168 		pop	af
       
  4169 		jp	po, p7Dloc_532F
       
  4170 		ei
       
  4171 
       
  4172 p7Dloc_532F:				; CODE XREF: seg001:532Bj
       
  4173 		ld	a, (Abackup)
       
  4174 		call	p7Dsub_6011
       
  4175 		scf
       
  4176 		ccf
       
  4177 		ret
       
  4178 ; ---------------------------------------------------------------------------
       
  4179 ; START	OF FUNCTION CHUNK FOR p7Dsub_533B
       
  4180 
       
  4181 p7Dloc_5338:				; CODE XREF: seg001:5300j p7Dsub_533B+4j	...
       
  4182 		pop	af
       
  4183 		scf
       
  4184 		ret
       
  4185 ; END OF FUNCTION CHUNK	FOR p7Dsub_533B
       
  4186 
       
  4187 ; =============== S U B	R O U T	I N E =======================================
       
  4188 
       
  4189 
       
  4190 p7Dsub_533B:				; CODE XREF: seg001:7764p
       
  4191 
       
  4192 ; FUNCTION CHUNK AT 5338 SIZE 00000003 BYTES
       
  4193 
       
  4194 		push	af
       
  4195 		call	p7Dsub_6021
       
  4196 		jr	c, p7Dloc_5338
       
  4197 		ld	hl, 4000h
       
  4198 		ld	de, 320h
       
  4199 		pop	af
       
  4200 		push	af
       
  4201 		or	a
       
  4202 		rst	28h
       
  4203 ; ---------------------------------------------------------------------------
       
  4204 		.dw 8075h
       
  4205 ; ---------------------------------------------------------------------------
       
  4206 		jr	nz, p7Dloc_5338
       
  4207 		pop	af
       
  4208 		push	af
       
  4209 		push	hl
       
  4210 		inc	hl
       
  4211 		rst	28h
       
  4212 ; ---------------------------------------------------------------------------
       
  4213 		.dw 805Ah
       
  4214 ; ---------------------------------------------------------------------------
       
  4215 		call	p7Dsub_50C5
       
  4216 		jr	nz, p7Dloc_5362
       
  4217 		pop	hl
       
  4218 		pop	af
       
  4219 		push	af
       
  4220 		push	hl
       
  4221 		call	p7Dloc_4FF9
       
  4222 
       
  4223 p7Dloc_5362:				; CODE XREF: p7Dsub_533B+1Ej
       
  4224 		pop	hl
       
  4225 		pop	af
       
  4226 		ret
       
  4227 ; End of function p7Dsub_533B
       
  4228 
       
  4229 
       
  4230 ; =============== S U B	R O U T	I N E =======================================
       
  4231 
       
  4232 
       
  4233 p7Dsub_5365:				; CODE XREF: p7Dsub_5E78+13p
       
  4234 		push	ix
       
  4235 		push	hl
       
  4236 		push	de
       
  4237 		push	bc
       
  4238 		call	Page7D_2B68
       
  4239 		jr	p7Dloc_537C
       
  4240 ; End of function p7Dsub_5365
       
  4241 
       
  4242 
       
  4243 ; =============== S U B	R O U T	I N E =======================================
       
  4244 
       
  4245 
       
  4246 p7Dsub_536F:				; CODE XREF: p7Dsub_4AC9+41p seg001:4BA8p ...
       
  4247 		push	ix
       
  4248 		push	hl
       
  4249 		push	de
       
  4250 		push	bc
       
  4251 		call	p7Dsub_521D
       
  4252 		ld	bc, 0Dh
       
  4253 		add	ix, bc
       
  4254 
       
  4255 p7Dloc_537C:				; CODE XREF: p7Dsub_5365+8j
       
  4256 		push	ix
       
  4257 		pop	bc
       
  4258 		sla	c
       
  4259 		or	a
       
  4260 		adc	hl, bc
       
  4261 		push	hl
       
  4262 		call	p7Dsub_4566
       
  4263 		cp	80h ; '�'
       
  4264 		jr	z, p7Dloc_53AC
       
  4265 		push	af
       
  4266 		call	p7Dsub_4565
       
  4267 		cp	0
       
  4268 		pop	bc
       
  4269 		jr	z, p7Dloc_5399
       
  4270 		srl	a
       
  4271 		jr	p7Dloc_539B
       
  4272 ; ---------------------------------------------------------------------------
       
  4273 
       
  4274 p7Dloc_5399:				; CODE XREF: p7Dsub_536F+24j
       
  4275 		srl	b
       
  4276 
       
  4277 p7Dloc_539B:				; CODE XREF: p7Dsub_536F+28j
       
  4278 		pop	de
       
  4279 		ld	c, a
       
  4280 		push	bc
       
  4281 		call	p7Dsub_456D
       
  4282 		pop	bc
       
  4283 		ld	b, c
       
  4284 		call	p7Dsub_456D
       
  4285 		pop	bc
       
  4286 		pop	de
       
  4287 		pop	hl
       
  4288 		pop	ix
       
  4289 		ret
       
  4290 ; ---------------------------------------------------------------------------
       
  4291 
       
  4292 p7Dloc_53AC:				; CODE XREF: p7Dsub_536F+1Bj
       
  4293 		pop	de
       
  4294 		pop	bc
       
  4295 		pop	de
       
  4296 		pop	hl
       
  4297 		pop	ix
       
  4298 		ret
       
  4299 ; End of function p7Dsub_536F
       
  4300 
       
  4301 
       
  4302 ; =============== S U B	R O U T	I N E =======================================
       
  4303 
       
  4304 
       
  4305 p7Dsub_53B3:				; CODE XREF: p7Dsub_638B+72p
       
  4306 		ld	(Abackup), a
       
  4307 		ld	a, i
       
  4308 		di
       
  4309 		push	af
       
  4310 		ld	a, (Abackup)
       
  4311 		push	af
       
  4312 		ld	a, 1
       
  4313 		nop
       
  4314 		di
       
  4315 		nop
       
  4316 		nop
       
  4317 		im	1
       
  4318 		di
       
  4319 		out	(14h), a
       
  4320 		di
       
  4321 		call	checkForFlashTrickery
       
  4322 		pop	af
       
  4323 		call	Page7D_2B5C
       
  4324 
       
  4325 p7Dloc_53D1:				; CODE XREF: seg001:5522j
       
  4326 		call	p7Dsub_6006
       
  4327 		call	relockFlashBack
       
  4328 		ld	(Abackup), a
       
  4329 		pop	af
       
  4330 		jp	po, p7Dloc_53DF
       
  4331 		ei
       
  4332 
       
  4333 p7Dloc_53DF:				; CODE XREF: p7Dsub_53B3+28j
       
  4334 		ld	a, (Abackup)
       
  4335 		jp	p7Dsub_6011
       
  4336 ; End of function p7Dsub_53B3
       
  4337 
       
  4338 
       
  4339 ; =============== S U B	R O U T	I N E =======================================
       
  4340 
       
  4341 
       
  4342 Page7D_2B5C:				; CODE XREF: p7Dsub_53B3+1Bp p7Dsub_607A+3Fp ...
       
  4343 		push	de
       
  4344 		push	hl
       
  4345 		push	bc
       
  4346 		push	ix
       
  4347 		ld	b, a
       
  4348 		rst	28h
       
  4349 ; ---------------------------------------------------------------------------
       
  4350 		.dw 80A8h
       
  4351 ; ---------------------------------------------------------------------------
       
  4352 		jr	nz, p7Dloc_53FA
       
  4353 		call	p7Dsub_75EC
       
  4354 		sub	b
       
  4355 		inc	a
       
  4356 		ld	c, a
       
  4357 		ld	b, 0
       
  4358 		jr	p7Dloc_541E
       
  4359 ; ---------------------------------------------------------------------------
       
  4360 
       
  4361 p7Dloc_53FA:				; CODE XREF: Page7D_2B5C+9j
       
  4362 		ld	hl, OP6
       
  4363 		ld	(hl), 0
       
  4364 		ld	a, (appSearchPage)
       
  4365 		push	af
       
  4366 		rst	28h
       
  4367 ; ---------------------------------------------------------------------------
       
  4368 		.dw 8069h
       
  4369 ; ---------------------------------------------------------------------------
       
  4370 		pop	af
       
  4371 		ld	(appSearchPage), a
       
  4372 		jr	p7Dloc_5411
       
  4373 ; End of function Page7D_2B5C
       
  4374 
       
  4375 
       
  4376 ; =============== S U B	R O U T	I N E =======================================
       
  4377 
       
  4378 
       
  4379 p7Dsub_540C:				; CODE XREF: p7Dsub_4AC9:p7Dloc_4B14p
       
  4380 		push	de
       
  4381 		push	hl
       
  4382 		push	bc
       
  4383 		push	ix
       
  4384 
       
  4385 p7Dloc_5411:				; CODE XREF: Page7D_2B5C+25j
       
  4386 		inc	ix
       
  4387 		push	ix
       
  4388 		pop	hl
       
  4389 		call	p7Dsub_7643
       
  4390 		or	a
       
  4391 		adc	hl, bc
       
  4392 		push	hl
       
  4393 		pop	bc
       
  4394 
       
  4395 p7Dloc_541E:				; CODE XREF: Page7D_2B5C+13j
       
  4396 		push	bc
       
  4397 		call	Page7D_2B80
       
  4398 		sra	c
       
  4399 		sra	c
       
  4400 		sra	c
       
  4401 		or	a
       
  4402 		adc	hl, bc
       
  4403 		pop	bc
       
  4404 		ld	a, c
       
  4405 		and	7
       
  4406 		call	p7Dsub_7BCC
       
  4407 		ld	c, a
       
  4408 		call	p7Dsub_4566
       
  4409 		and	c
       
  4410 		pop	ix
       
  4411 		pop	bc
       
  4412 		pop	hl
       
  4413 		pop	de
       
  4414 		ret
       
  4415 ; End of function p7Dsub_540C
       
  4416 
       
  4417 ; ---------------------------------------------------------------------------
       
  4418 
       
  4419 p7Dloc_543D:				; CODE XREF: seg001:6272p
       
  4420 		push	af
       
  4421 		ld	a, 1
       
  4422 		nop
       
  4423 		di
       
  4424 		nop
       
  4425 		nop
       
  4426 		im	1
       
  4427 		di
       
  4428 		out	(14h), a
       
  4429 		di
       
  4430 		call	checkForFlashTrickery
       
  4431 		pop	af
       
  4432 		ld	b, a
       
  4433 		ld	de, 8060h
       
  4434 		ld	hl, 4000h
       
  4435 		or	a
       
  4436 		rst	28h
       
  4437 ; ---------------------------------------------------------------------------
       
  4438 		.dw 8075h
       
  4439 ; ---------------------------------------------------------------------------
       
  4440 		jr	nz, p7Dloc_549D
       
  4441 		call	p7Dsub_75EC
       
  4442 		ld	c, b
       
  4443 		sub	c
       
  4444 		ld	bc, 0
       
  4445 		ld	c, a
       
  4446 		sla	c
       
  4447 		call	Page7D_2B68
       
  4448 		or	a
       
  4449 		adc	hl, bc
       
  4450 		ld	a, 7Eh ; '~'
       
  4451 		ld	de, OP1
       
  4452 		ld	bc, 2
       
  4453 		rst	28h
       
  4454 ; ---------------------------------------------------------------------------
       
  4455 		.dw 8054h
       
  4456 ; ---------------------------------------------------------------------------
       
  4457 		ld	a, (OP1)
       
  4458 		ld	bc, 0
       
  4459 
       
  4460 p7Dloc_547D:				; CODE XREF: seg001:5484j
       
  4461 		cp	0
       
  4462 		jr	z, p7Dloc_5486
       
  4463 		srl	a
       
  4464 		inc	c
       
  4465 		jr	p7Dloc_547D
       
  4466 ; ---------------------------------------------------------------------------
       
  4467 
       
  4468 p7Dloc_5486:				; CODE XREF: seg001:547Fj
       
  4469 		ld	a, (OP1+1)
       
  4470 
       
  4471 p7Dloc_5489:				; CODE XREF: seg001:5490j
       
  4472 		cp	0
       
  4473 		jr	z, p7Dloc_5492
       
  4474 		srl	a
       
  4475 		inc	c
       
  4476 		jr	p7Dloc_5489
       
  4477 ; ---------------------------------------------------------------------------
       
  4478 
       
  4479 p7Dloc_5492:				; CODE XREF: seg001:548Bj
       
  4480 		ld	a, c
       
  4481 		ld	(OP1), a
       
  4482 		ld	a, 0
       
  4483 		ld	(OP1+1), a
       
  4484 		bit	7, a
       
  4485 
       
  4486 p7Dloc_549D:				; CODE XREF: seg001:5459j
       
  4487 		jp	relockFlashBack
       
  4488 ; ---------------------------------------------------------------------------
       
  4489 
       
  4490 p7Dloc_54A0:				; CODE XREF: seg001:621Ap seg001:6248p
       
  4491 		ld	b, a
       
  4492 		ld	de, 8050h
       
  4493 		ld	hl, 4000h
       
  4494 		or	a
       
  4495 		rst	28h
       
  4496 ; ---------------------------------------------------------------------------
       
  4497 		.dw 8075h
       
  4498 ; ---------------------------------------------------------------------------
       
  4499 		jr	nz, locret_54BE
       
  4500 		ld	a, b
       
  4501 		push	af
       
  4502 		inc	hl
       
  4503 		rst	28h
       
  4504 ; ---------------------------------------------------------------------------
       
  4505 		.dw 805Ah
       
  4506 ; ---------------------------------------------------------------------------
       
  4507 		pop	af
       
  4508 		ld	de, OP1
       
  4509 		rst	28h
       
  4510 ; ---------------------------------------------------------------------------
       
  4511 		.dw 8054h
       
  4512 ; ---------------------------------------------------------------------------
       
  4513 		ld	a, 0
       
  4514 		bit	7, a
       
  4515 
       
  4516 locret_54BE:				; CODE XREF: seg001:54ABj
       
  4517 		ret
       
  4518 ; ---------------------------------------------------------------------------
       
  4519 		push	hl
       
  4520 		ld	de, 8020h
       
  4521 		ld	hl, 4000h
       
  4522 		ld	a, 7Ah ; 'z'
       
  4523 		or	a
       
  4524 		rst	28h
       
  4525 ; ---------------------------------------------------------------------------
       
  4526 		.dw 8075h
       
  4527 ; ---------------------------------------------------------------------------
       
  4528 		ld	a, 7Ah ; 'z'
       
  4529 		rst	28h
       
  4530 ; ---------------------------------------------------------------------------
       
  4531 		.dw 8051h
       
  4532 ; ---------------------------------------------------------------------------
       
  4533 		ld	d, a
       
  4534 		ld	a, 7Ah ; 'z'
       
  4535 		rst	28h
       
  4536 ; ---------------------------------------------------------------------------
       
  4537 		.dw 8051h
       
  4538 ; ---------------------------------------------------------------------------
       
  4539 		ld	e, a
       
  4540 		pop	hl
       
  4541 		ret
       
  4542 ; ---------------------------------------------------------------------------
       
  4543 
       
  4544 Page7D_3C66:
       
  4545 		ld	(Abackup), a
       
  4546 		ld	a, i
       
  4547 		di
       
  4548 		push	af
       
  4549 		ld	a, (Abackup)
       
  4550 		push	hl
       
  4551 		push	de
       
  4552 		push	af
       
  4553 		ld	a, 1
       
  4554 		nop
       
  4555 		di
       
  4556 		nop
       
  4557 		nop
       
  4558 		im	1
       
  4559 		di
       
  4560 		out	(14h), a
       
  4561 		di
       
  4562 		call	checkForFlashTrickery
       
  4563 		pop	af
       
  4564 		ld	de, 510h
       
  4565 		push	de
       
  4566 		jr	p7Dloc_54FD
       
  4567 
       
  4568 p7Dloc_54FD:
       
  4569 		call	p7Dsub_70D1
       
  4570 		jr	nz, p7Dloc_551F
       
  4571 		ld	de, 500h
       
  4572 		call	p7Dsub_777E
       
  4573 		jr	nz, p7Dloc_551F
       
  4574 		call	p7Dsub_4574
       
  4575 		ld	a, 7Eh ; '~'
       
  4576 		pop	de
       
  4577 		rst	28h
       
  4578 ; ---------------------------------------------------------------------------
       
  4579 		.dw 8030h
       
  4580 ; ---------------------------------------------------------------------------
       
  4581 		jr	nz, p7Dloc_5520
       
  4582 		ld	de, tempSwapArea
       
  4583 		ld	b, c
       
  4584 		push	bc
       
  4585 		ld	a, 7Eh ; '~'
       
  4586 		call	p7Dsub_761F
       
  4587 
       
  4588 p7Dloc_551F:				; CODE XREF: seg001:5500j seg001:5508j
       
  4589 		pop	bc
       
  4590 
       
  4591 p7Dloc_5520:				; CODE XREF: seg001:5513j
       
  4592 		pop	de
       
  4593 		pop	hl
       
  4594 		jp	p7Dloc_53D1
       
  4595 
       
  4596 ; =============== S U B	R O U T	I N E =======================================
       
  4597 
       
  4598 
       
  4599 p7Dsub_5525:				; CODE XREF: p7Dsub_43F6+1p seg001:5703p	...
       
  4600 		push	af
       
  4601 		ld	hl, 4000h
       
  4602 		inc	hl
       
  4603 		rst	28h
       
  4604 ; ---------------------------------------------------------------------------
       
  4605 		.dw _LoadAIndPaged
       
  4606 ; ---------------------------------------------------------------------------
       
  4607 		call	p7Dsub_75FD
       
  4608 		jp	nz, p7Dloc_55C8
       
  4609 		inc	hl
       
  4610 		pop	af
       
  4611 		call	p7Dsub_761F
       
  4612 		ld	bc, 4000h
       
  4613 		or	a
       
  4614 		sbc	hl, bc
       
  4615 		push	hl
       
  4616 		push	af
       
  4617 		ld	hl, 4000h
       
  4618 		ld	de, 8080h
       
  4619 		or	a
       
  4620 		rst	28h
       
  4621 ; ---------------------------------------------------------------------------
       
  4622 		.dw 8075h
       
  4623 ; ---------------------------------------------------------------------------
       
  4624 		inc	hl
       
  4625 		pop	af
       
  4626 		push	af
       
  4627 		rst	28h
       
  4628 ; ---------------------------------------------------------------------------
       
  4629 		.dw 805Ah
       
  4630 ; ---------------------------------------------------------------------------
       
  4631 		pop	af
       
  4632 		push	af
       
  4633 		rst	28h
       
  4634 ; ---------------------------------------------------------------------------
       
  4635 		.dw 8051h
       
  4636 ; ---------------------------------------------------------------------------
       
  4637 
       
  4638 p7Dloc_5555:				; DATA XREF: seg001:76C0w
       
  4639 		dec	a
       
  4640 		or	a
       
  4641 		jr	z, p7Dloc_5574
       
  4642 		ld	c, a
       
  4643 		pop	af
       
  4644 		sub	c
       
  4645 		push	af
       
  4646 		ld	hl, (unk_83A1)
       
  4647 		call	p7Dsub_57C5
       
  4648 		ld	b, c
       
  4649 
       
  4650 p7Dloc_5564:				; CODE XREF: p7Dsub_5525+47j
       
  4651 		push	bc
       
  4652 		ld	bc, 4000h
       
  4653 		or	a
       
  4654 		sbc	hl, bc
       
  4655 		pop	bc
       
  4656 		djnz	p7Dloc_5564
       
  4657 		call	p7Dsub_57C5
       
  4658 		ld	(unk_83A1), hl
       
  4659 
       
  4660 p7Dloc_5574:				; CODE XREF: p7Dsub_5525+32j
       
  4661 		ld	hl, (unk_83A1)
       
  4662 		call	p7Dsub_57C5
       
  4663 		push	hl
       
  4664 		pop	bc
       
  4665 		ld	hl, 4000h
       
  4666 		or	a
       
  4667 		adc	hl, bc
       
  4668 		pop	af
       
  4669 		pop	bc
       
  4670 		or	a
       
  4671 		adc	hl, bc
       
  4672 		push	af
       
  4673 
       
  4674 p7Dloc_5588:				; CODE XREF: p7Dsub_5525+81j
       
  4675 		rst	28h
       
  4676 ; ---------------------------------------------------------------------------
       
  4677 		.dw 8051h
       
  4678 ; ---------------------------------------------------------------------------
       
  4679 		cp	2
       
  4680 		jr	nz, p7Dloc_55C8
       
  4681 		pop	af
       
  4682 		push	hl
       
  4683 		push	af
       
  4684 		inc	hl
       
  4685 		rst	28h
       
  4686 ; ---------------------------------------------------------------------------
       
  4687 		.dw 8051h
       
  4688 ; ---------------------------------------------------------------------------
       
  4689 		and	0F0h ; '�'
       
  4690 		cp	20h ; ' '
       
  4691 		jr	z, p7Dloc_55A8
       
  4692 		pop	af
       
  4693 		pop	hl
       
  4694 		push	af
       
  4695 		inc	hl
       
  4696 		rst	28h
       
  4697 ; ---------------------------------------------------------------------------
       
  4698 		.dw 805Ah
       
  4699 ; ---------------------------------------------------------------------------
       
  4700 		or	a
       
  4701 		adc	hl, bc
       
  4702 		jr	p7Dloc_5588
       
  4703 ; ---------------------------------------------------------------------------
       
  4704 
       
  4705 p7Dloc_55A8:				; CODE XREF: p7Dsub_5525+75j
       
  4706 		pop	af
       
  4707 		push	af
       
  4708 		rst	28h
       
  4709 ; ---------------------------------------------------------------------------
       
  4710 		.dw 805Ah
       
  4711 ; ---------------------------------------------------------------------------
       
  4712 		dec	hl
       
  4713 		inc	bc
       
  4714 		ld	de, tempSwapArea
       
  4715 
       
  4716 p7Dloc_55B2:				; CODE XREF: p7Dsub_5525+98j
       
  4717 		pop	af
       
  4718 		push	af
       
  4719 		rst	28h
       
  4720 ; ---------------------------------------------------------------------------
       
  4721 		.dw 8051h
       
  4722 ; ---------------------------------------------------------------------------
       
  4723 		ld	(de), a
       
  4724 		inc	hl
       
  4725 		inc	de
       
  4726 		dec	bc
       
  4727 		ld	a, c
       
  4728 		or	b
       
  4729 		jr	nz, p7Dloc_55B2
       
  4730 		pop	af
       
  4731 		pop	hl
       
  4732 		ld	b, a
       
  4733 		ld	a, 0
       
  4734 		bit	7, a
       
  4735 		ld	a, b
       
  4736 		ret
       
  4737 ; ---------------------------------------------------------------------------
       
  4738 
       
  4739 p7Dloc_55C8:				; CODE XREF: p7Dsub_5525+Bj p7Dsub_5525+68j
       
  4740 		pop	af
       
  4741 		ld	a, 0FFh
       
  4742 		bit	7, a
       
  4743 		ret
       
  4744 ; End of function p7Dsub_5525
       
  4745 
       
  4746 
       
  4747 ; =============== S U B	R O U T	I N E =======================================
       
  4748 
       
  4749 
       
  4750 p7Dsub_55CE:				; CODE XREF: seg001:4383p
       
  4751 		inc	hl
       
  4752 		push	af
       
  4753 		rst	28h
       
  4754 ; ---------------------------------------------------------------------------
       
  4755 		.dw 805Ah
       
  4756 ; ---------------------------------------------------------------------------
       
  4757 		or	a
       
  4758 		adc	hl, bc
       
  4759 
       
  4760 p7Dloc_55D6:				; CODE XREF: p7Dsub_55CE+25j
       
  4761 		pop	af
       
  4762 		push	af
       
  4763 		rst	28h
       
  4764 ; ---------------------------------------------------------------------------
       
  4765 		.dw 8051h
       
  4766 ; ---------------------------------------------------------------------------
       
  4767 		cp	2
       
  4768 		jr	nz, p7Dloc_5609
       
  4769 		inc	hl
       
  4770 		pop	af
       
  4771 		push	af
       
  4772 		rst	28h
       
  4773 ; ---------------------------------------------------------------------------
       
  4774 		.dw 8051h
       
  4775 ; ---------------------------------------------------------------------------
       
  4776 		and	0F0h ; '�'
       
  4777 		cp	0
       
  4778 		jr	z, p7Dloc_55F5
       
  4779 		pop	af
       
  4780 		push	af
       
  4781 		rst	28h
       
  4782 ; ---------------------------------------------------------------------------
       
  4783 		.dw 805Ah
       
  4784 ; ---------------------------------------------------------------------------
       
  4785 		or	a
       
  4786 		adc	hl, bc
       
  4787 		jr	p7Dloc_55D6
       
  4788 ; ---------------------------------------------------------------------------
       
  4789 
       
  4790 p7Dloc_55F5:				; CODE XREF: p7Dsub_55CE+1Bj
       
  4791 		pop	af
       
  4792 		rst	28h
       
  4793 ; ---------------------------------------------------------------------------
       
  4794 		.dw 805Ah
       
  4795 ; ---------------------------------------------------------------------------
       
  4796 		dec	hl
       
  4797 		inc	bc
       
  4798 		ld	de, tempSwapArea
       
  4799 		rst	28h
       
  4800 ; ---------------------------------------------------------------------------
       
  4801 		.dw 8054h
       
  4802 ; ---------------------------------------------------------------------------
       
  4803 		ld	b, c
       
  4804 		ld	c, 0
       
  4805 		ld	a, 0
       
  4806 		bit	7, a
       
  4807 		ret
       
  4808 ; ---------------------------------------------------------------------------
       
  4809 
       
  4810 p7Dloc_5609:				; CODE XREF: p7Dsub_55CE+Fj
       
  4811 		pop	af
       
  4812 		ret
       
  4813 ; End of function p7Dsub_55CE
       
  4814 
       
  4815 ; ---------------------------------------------------------------------------
       
  4816 
       
  4817 p7Dloc_560B:				; CODE XREF: seg001:p7Dloc_5650p
       
  4818 					; seg001:5661p
       
  4819 		push	de
       
  4820 		push	hl
       
  4821 		push	bc
       
  4822 		rst	28h
       
  4823 ; ---------------------------------------------------------------------------
       
  4824 		.dw 807Eh
       
  4825 ; ---------------------------------------------------------------------------
       
  4826 		jr	nz, p7Dloc_5640
       
  4827 		push	af
       
  4828 		ld	a, 1
       
  4829 		nop
       
  4830 		di
       
  4831 		nop
       
  4832 		nop
       
  4833 		im	1
       
  4834 		di
       
  4835 		out	(14h), a
       
  4836 		di
       
  4837 		call	checkForFlashTrickery
       
  4838 		pop	af
       
  4839 		rst	28h
       
  4840 ; ---------------------------------------------------------------------------
       
  4841 		.dw 8057h
       
  4842 ; ---------------------------------------------------------------------------
       
  4843 		ld	a, 7Eh ; '~'
       
  4844 		ld	de, 410h
       
  4845 		rst	28h
       
  4846 ; ---------------------------------------------------------------------------
       
  4847 		.dw 8027h
       
  4848 ; ---------------------------------------------------------------------------
       
  4849 		jr	nz, p7Dloc_5640
       
  4850 		call	p7Dsub_4574
       
  4851 		ld	a, 7Eh ; '~'
       
  4852 		ld	de, 849Eh
       
  4853 		rst	28h
       
  4854 ; ---------------------------------------------------------------------------
       
  4855 		.dw 8054h
       
  4856 ; ---------------------------------------------------------------------------
       
  4857 		ld	a, 0
       
  4858 		bit	7, a
       
  4859 
       
  4860 p7Dloc_5640:				; CODE XREF: seg001:5611j seg001:562Fj
       
  4861 		pop	bc
       
  4862 		pop	hl
       
  4863 		pop	de
       
  4864 		jp	relockFlashBack
       
  4865 ; ---------------------------------------------------------------------------
       
  4866 
       
  4867 Page7D_2B98:
       
  4868 		call	Page0Call_23DE
       
  4869 		jr	nc, p7Dloc_5650
       
  4870 		call	Page0Call_23E3
       
  4871 		jr	p7Dloc_565A
       
  4872 ; ---------------------------------------------------------------------------
       
  4873 
       
  4874 p7Dloc_5650:				; CODE XREF: seg001:5649j
       
  4875 		call	p7Dloc_560B
       
  4876 		jr	nz, p7Dloc_5695
       
  4877 		call	Page7D_2C34
       
  4878 		jr	nz, p7Dloc_5695
       
  4879 
       
  4880 p7Dloc_565A:				; CODE XREF: seg001:564Ej
       
  4881 		ld	a, 1
       
  4882 		call	Page0Call_38EB
       
  4883 		push	de
       
  4884 		push	hl
       
  4885 		call	p7Dloc_560B
       
  4886 		jr	nz, p7Dloc_5689
       
  4887 		call	OP1Set0
       
  4888 		ld	de, OP1M
       
  4889 		ld	hl, OP4
       
  4890 		ld	c, 7
       
  4891 		ld	b, 0
       
  4892 		ldir
       
  4893 		pop	hl
       
  4894 		pop	de
       
  4895 		push	de
       
  4896 		call	Page0Call_3AE9
       
  4897 		ex	de, hl
       
  4898 		ld	hl, OP1
       
  4899 		ld	a, (hl)
       
  4900 		call	mov9B2
       
  4901 		pop	hl
       
  4902 		ld	a, 0
       
  4903 		bit	7, a
       
  4904 		ret
       
  4905 ; ---------------------------------------------------------------------------
       
  4906 
       
  4907 p7Dloc_5689:				; CODE XREF: seg001:5664j
       
  4908 		pop	hl
       
  4909 		pop	hl
       
  4910 		push	bc
       
  4911 		push	de
       
  4912 		push	hl
       
  4913 		rst	28h
       
  4914 ; ---------------------------------------------------------------------------
       
  4915 		.dw 807Eh
       
  4916 ; ---------------------------------------------------------------------------
       
  4917 		pop	hl
       
  4918 		pop	de
       
  4919 		pop	bc
       
  4920 		ret
       
  4921 ; ---------------------------------------------------------------------------
       
  4922 
       
  4923 p7Dloc_5695:				; CODE XREF: seg001:5653j seg001:5658j
       
  4924 		push	bc
       
  4925 		push	de
       
  4926 		push	hl
       
  4927 		rst	28h
       
  4928 ; ---------------------------------------------------------------------------
       
  4929 		.dw 807Eh
       
  4930 ; ---------------------------------------------------------------------------
       
  4931 		pop	hl
       
  4932 		pop	de
       
  4933 		pop	bc
       
  4934 		ex	de, hl
       
  4935 		ret
       
  4936 
       
  4937 ; =============== S U B	R O U T	I N E =======================================
       
  4938 
       
  4939 
       
  4940 Page7D_2C34:				; CODE XREF: seg001:5655p
       
  4941 		push	bc
       
  4942 		push	hl
       
  4943 		push	de
       
  4944 		call	Page0Call_23DE
       
  4945 		ex	de, hl
       
  4946 		ld	c, (hl)
       
  4947 		inc	hl
       
  4948 		ld	b, (hl)
       
  4949 		dec	hl
       
  4950 		ex	de, hl
       
  4951 		ld	a, b
       
  4952 		or	c
       
  4953 		jr	z, p7Dloc_56D6
       
  4954 		ld	hl, 1
       
  4955 
       
  4956 p7Dloc_56B3:				; CODE XREF: Page7D_2C34+34j
       
  4957 		push	de
       
  4958 		push	hl
       
  4959 		push	bc
       
  4960 		call	Page0Call_3B07
       
  4961 		ld	de, OP4
       
  4962 		ld	hl, OP2M
       
  4963 		ld	b, 7
       
  4964 
       
  4965 p7Dloc_56C1:				; CODE XREF: Page7D_2C34+27j
       
  4966 		ld	a, (de)
       
  4967 		cp	(hl)
       
  4968 		jr	nz, p7Dloc_56CB
       
  4969 		inc	de
       
  4970 		inc	hl
       
  4971 		djnz	p7Dloc_56C1
       
  4972 		jr	p7Dloc_56DA
       
  4973 ; ---------------------------------------------------------------------------
       
  4974 
       
  4975 p7Dloc_56CB:				; CODE XREF: Page7D_2C34+23j
       
  4976 		pop	bc
       
  4977 		pop	hl
       
  4978 		pop	de
       
  4979 		inc	hl
       
  4980 		dec	bc
       
  4981 		ld	a, c
       
  4982 		or	b
       
  4983 		jr	z, p7Dloc_56D6
       
  4984 		jr	p7Dloc_56B3
       
  4985 ; ---------------------------------------------------------------------------
       
  4986 
       
  4987 p7Dloc_56D6:				; CODE XREF: Page7D_2C34+Ej
       
  4988 					; Page7D_2C34+32j
       
  4989 		pop	de
       
  4990 		pop	hl
       
  4991 		pop	bc
       
  4992 		ret
       
  4993 ; ---------------------------------------------------------------------------
       
  4994 
       
  4995 p7Dloc_56DA:				; CODE XREF: Page7D_2C34+29j
       
  4996 		ld	a, 0FFh
       
  4997 		bit	7, a
       
  4998 		pop	bc
       
  4999 		pop	hl
       
  5000 		pop	hl
       
  5001 		pop	de
       
  5002 		pop	hl
       
  5003 		pop	bc
       
  5004 		ret
       
  5005 ; End of function Page7D_2C34
       
  5006 
       
  5007 ; ---------------------------------------------------------------------------
       
  5008 
       
  5009 Page7D_2C2E:
       
  5010 		push	hl
       
  5011 		push	de
       
  5012 		push	bc
       
  5013 		push	af
       
  5014 		ld	hl, 4000h
       
  5015 		inc	hl
       
  5016 		rst	28h
       
  5017 ; ---------------------------------------------------------------------------
       
  5018 		.dw 8051h
       
  5019 ; ---------------------------------------------------------------------------
       
  5020 		call	p7Dsub_75FD
       
  5021 		jr	nz, p7Dloc_5737
       
  5022 		inc	hl
       
  5023 		pop	af
       
  5024 		call	p7Dsub_761F
       
  5025 		ld	hl, (unk_839F)
       
  5026 		push	hl
       
  5027 		ld	hl, (unk_83A1)
       
  5028 		push	hl
       
  5029 		push	af
       
  5030 		call	p7Dsub_5525
       
  5031 		push	hl
       
  5032 		inc	hl
       
  5033 		rst	28h
       
  5034 ; ---------------------------------------------------------------------------
       
  5035 		.dw 805Ah
       
  5036 ; ---------------------------------------------------------------------------
       
  5037 		or	a
       
  5038 		adc	hl, bc
       
  5039 		pop	bc
       
  5040 		or	a
       
  5041 		sbc	hl, bc
       
  5042 		pop	af
       
  5043 		pop	bc
       
  5044 		ld	(unk_83A1), bc
       
  5045 		pop	bc
       
  5046 		ld	(unk_839F), bc
       
  5047 		push	af
       
  5048 		push	hl
       
  5049 		ld	hl, 4000h
       
  5050 		inc	hl
       
  5051 		rst	28h
       
  5052 ; ---------------------------------------------------------------------------
       
  5053 		.dw 805Ah
       
  5054 ; ---------------------------------------------------------------------------
       
  5055 		ld	bc, 4000h
       
  5056 		or	a
       
  5057 		sbc	hl, bc
       
  5058 		push	hl
       
  5059 		pop	bc
       
  5060 		call	p7Dsub_573C
       
  5061 		pop	bc
       
  5062 		inc	bc
       
  5063 		inc	bc
       
  5064 		call	p7Dsub_573C
       
  5065 
       
  5066 p7Dloc_5737:				; CODE XREF: seg001:56F3j
       
  5067 		pop	af
       
  5068 		pop	bc
       
  5069 		pop	de
       
  5070 		pop	hl
       
  5071 		ret
       
  5072 
       
  5073 ; =============== S U B	R O U T	I N E =======================================
       
  5074 
       
  5075 
       
  5076 p7Dsub_573C:				; CODE XREF: seg001:572Ep seg001:5734p
       
  5077 		ld	hl, (unk_83A1)
       
  5078 		call	p7Dsub_57C5
       
  5079 		or	a
       
  5080 		adc	hl, bc
       
  5081 		call	p7Dsub_57C5
       
  5082 		ld	(unk_83A1), hl
       
  5083 		ret	nc
       
  5084 		ld	hl, (unk_839F)
       
  5085 		inc	h
       
  5086 		jr	nz, p7Dloc_5753
       
  5087 		inc	l
       
  5088 
       
  5089 p7Dloc_5753:				; CODE XREF: p7Dsub_573C+14j
       
  5090 		ld	(unk_839F), hl
       
  5091 		ret
       
  5092 ; End of function p7Dsub_573C
       
  5093 
       
  5094 
       
  5095 ; =============== S U B	R O U T	I N E =======================================
       
  5096 
       
  5097 
       
  5098 p7Dsub_5757:				; CODE XREF: p7Dsub_7240+230p
       
  5099 		push	hl
       
  5100 		push	de
       
  5101 		push	bc
       
  5102 		push	af
       
  5103 		inc	hl
       
  5104 		ld	a, (hl)
       
  5105 		call	p7Dsub_75FD
       
  5106 		jr	nz, p7Dloc_5768
       
  5107 
       
  5108 p7Dloc_5762:				; CODE XREF: p7Dsub_5757+Fj
       
  5109 		inc	hl
       
  5110 		ld	a, (hl)
       
  5111 		ld	(de), a
       
  5112 		inc	de
       
  5113 		djnz	p7Dloc_5762
       
  5114 
       
  5115 p7Dloc_5768:				; CODE XREF: p7Dsub_5757+9j
       
  5116 		pop	af
       
  5117 		pop	bc
       
  5118 		pop	de
       
  5119 		pop	hl
       
  5120 		ret
       
  5121 ; End of function p7Dsub_5757
       
  5122 
       
  5123 
       
  5124 ; =============== S U B	R O U T	I N E =======================================
       
  5125 
       
  5126 
       
  5127 p7Dsub_576D:				; CODE XREF: seg001:4018p seg001:632Fp
       
  5128 		push	af
       
  5129 		ld	a, 1
       
  5130 		call	Page7D_2B86
       
  5131 		ld	b, a
       
  5132 		call	p7Dsub_75EC
       
  5133 		sub	b
       
  5134 		ld	b, 0
       
  5135 		ld	c, a
       
  5136 		ld	hl, tempSwapArea
       
  5137 		sla	c
       
  5138 		add	hl, bc
       
  5139 		ld	a, 0FFh
       
  5140 		ld	(hl), a
       
  5141 		inc	hl
       
  5142 		ld	(hl), a
       
  5143 		ld	a, 1
       
  5144 		call	Page7D_2B62
       
  5145 		pop	af
       
  5146 		ret
       
  5147 ; End of function p7Dsub_576D
       
  5148 
       
  5149 
       
  5150 ; =============== S U B	R O U T	I N E =======================================
       
  5151 
       
  5152 
       
  5153 p7Dsub_578D:				; CODE XREF: seg001:58DFp p7Dsub_7CBB+7p
       
  5154 		push	af
       
  5155 		ld	a, (unk_83A4)
       
  5156 		or	a
       
  5157 		jr	z, p7Dloc_57C3
       
  5158 		ld	hl, (unk_83A1)
       
  5159 		call	p7Dsub_57C5
       
  5160 		ld	a, h
       
  5161 		or	l
       
  5162 		jr	nz, p7Dloc_57B2
       
  5163 		ld	hl, (unk_839F)
       
  5164 		ld	a, h
       
  5165 		or	l
       
  5166 		jr	z, p7Dloc_57C3
       
  5167 		call	p7Dsub_57C5
       
  5168 		dec	hl
       
  5169 		call	p7Dsub_57C5
       
  5170 		ld	(unk_839F), hl
       
  5171 		ld	hl, 0
       
  5172 
       
  5173 p7Dloc_57B2:				; CODE XREF: p7Dsub_578D+Fj
       
  5174 		dec	hl
       
  5175 		call	p7Dsub_57C5
       
  5176 		ld	(unk_83A1), hl
       
  5177 		ld	hl, (unk_839F)
       
  5178 		ld	a, l
       
  5179 		or	h
       
  5180 		jr	nz, p7Dloc_57C3
       
  5181 		ld	hl, (unk_83A1)
       
  5182 
       
  5183 p7Dloc_57C3:				; CODE XREF: p7Dsub_578D+5j p7Dsub_578D+16j	...
       
  5184 		pop	af
       
  5185 		ret
       
  5186 ; End of function p7Dsub_578D
       
  5187 
       
  5188 
       
  5189 ; =============== S U B	R O U T	I N E =======================================
       
  5190 
       
  5191 
       
  5192 p7Dsub_57C5:				; CODE XREF: p7Dsub_5525+3Bp p7Dsub_5525+49p ...
       
  5193 		push	af
       
  5194 		ld	a, l
       
  5195 		ld	l, h
       
  5196 		ld	h, a
       
  5197 		pop	af
       
  5198 		ret
       
  5199 ; End of function p7Dsub_57C5
       
  5200 
       
  5201 ; ---------------------------------------------------------------------------
       
  5202 
       
  5203 Page7D_2B9E:
       
  5204 		push	bc
       
  5205 		push	de
       
  5206 		call	p7Dsub_5980
       
  5207 		jp	z, p7Dloc_5973
       
  5208 		rst	28h
       
  5209 ; ---------------------------------------------------------------------------
       
  5210 		.dw 8057h
       
  5211 ; ---------------------------------------------------------------------------
       
  5212 		push	hl
       
  5213 		push	hl
       
  5214 		pop	bc
       
  5215 		rst	28h
       
  5216 ; ---------------------------------------------------------------------------
       
  5217 		.dw 802Dh
       
  5218 ; ---------------------------------------------------------------------------
       
  5219 		or	a
       
  5220 		sbc	hl, bc
       
  5221 		dec	hl
       
  5222 		ld	(appInfo), hl
       
  5223 		push	hl
       
  5224 		pop	bc
       
  5225 		pop	hl
       
  5226 		push	hl
       
  5227 		call	p7Dsub_4565
       
  5228 		dec	hl
       
  5229 		cp	0FFh
       
  5230 		jp	z, p7Dloc_5972
       
  5231 		cp	0
       
  5232 		jp	z, JErrorNo
       
  5233 		call	p7Dsub_42D3
       
  5234 		call	p7Dsub_5980
       
  5235 		jp	z, p7Dloc_5972
       
  5236 		pop	de
       
  5237 		inc	de
       
  5238 		ex	de, hl
       
  5239 		call	p7Dsub_597A
       
  5240 		ld	(OP2), a
       
  5241 		call	p7Dsub_40A6
       
  5242 		or	a
       
  5243 		ex	de, hl
       
  5244 		adc	hl, bc
       
  5245 		push	hl
       
  5246 		ld	de, 0A20h
       
  5247 		rst	28h
       
  5248 ; ---------------------------------------------------------------------------
       
  5249 		.dw 8027h
       
  5250 ; ---------------------------------------------------------------------------
       
  5251 		jr	nz, p7Dloc_5832
       
  5252 		ld	a, h
       
  5253 		and	0Fh
       
  5254 		or	40h ; '@'
       
  5255 		ld	h, a
       
  5256 		call	p7Dsub_597A
       
  5257 		rst	28h
       
  5258 ; ---------------------------------------------------------------------------
       
  5259 		.dw 805Ah
       
  5260 ; ---------------------------------------------------------------------------
       
  5261 
       
  5262 p7Dloc_5823:				; CODE XREF: seg001:5830j
       
  5263 		ld	b, 0
       
  5264 		push	bc
       
  5265 		call	p7Dsub_597A
       
  5266 		ex	de, hl
       
  5267 		rst	28h
       
  5268 ; ---------------------------------------------------------------------------
       
  5269 		.dw 8021h
       
  5270 ; ---------------------------------------------------------------------------
       
  5271 		ex	de, hl
       
  5272 		pop	bc
       
  5273 		dec	c
       
  5274 		jr	nz, p7Dloc_5823
       
  5275 
       
  5276 p7Dloc_5832:				; CODE XREF: seg001:5815j
       
  5277 		call	p7Dsub_5980
       
  5278 		jp	z, p7Dloc_5972
       
  5279 		ld	hl, 4000h
       
  5280 		ld	a, 7Ah ; 'z'
       
  5281 		ld	de, 8070h
       
  5282 		rst	28h
       
  5283 ; ---------------------------------------------------------------------------
       
  5284 		.dw 8075h
       
  5285 ; ---------------------------------------------------------------------------
       
  5286 		inc	hl
       
  5287 		ld	a, 7Ah ; 'z'
       
  5288 		rst	28h
       
  5289 ; ---------------------------------------------------------------------------
       
  5290 		.dw 805Ah
       
  5291 ; ---------------------------------------------------------------------------
       
  5292 		ld	bc, 4000h
       
  5293 		or	a
       
  5294 		sbc	hl, bc
       
  5295 		push	hl
       
  5296 		pop	bc
       
  5297 		ld	de, ramStart
       
  5298 		ld	hl, 4000h
       
  5299 		ld	a, 7Ah ; 'z'
       
  5300 		push	bc
       
  5301 		rst	28h
       
  5302 ; ---------------------------------------------------------------------------
       
  5303 		.dw 8054h
       
  5304 ; ---------------------------------------------------------------------------
       
  5305 		pop	bc
       
  5306 		pop	de
       
  5307 		ld	hl, ramStart
       
  5308 		call	p7Dsub_597A
       
  5309 		push	bc
       
  5310 		rst	28h
       
  5311 ; ---------------------------------------------------------------------------
       
  5312 		.dw 8087h
       
  5313 ; ---------------------------------------------------------------------------
       
  5314 		pop	bc
       
  5315 		push	de
       
  5316 		ld	hl, (appInfo)
       
  5317 		or	a
       
  5318 		adc	hl, bc
       
  5319 		ld	(appInfo), hl
       
  5320 		call	p7Dsub_75F5
       
  5321 
       
  5322 p7Dloc_5877:				; CODE XREF: seg001:58ABj
       
  5323 		call	ZeroOP1
       
  5324 		call	p7Dsub_638B
       
  5325 		call	OP2ToOP1
       
  5326 		jr	c, p7Dloc_58AD
       
  5327 		call	p7Dloc_61A4
       
  5328 		pop	de
       
  5329 		ld	bc, 4000h
       
  5330 		or	a
       
  5331 		sbc	hl, bc
       
  5332 		push	hl
       
  5333 		pop	bc
       
  5334 		or	a
       
  5335 		ld	hl, (appInfo)
       
  5336 		adc	hl, bc
       
  5337 		ld	(appInfo), hl
       
  5338 		ld	hl, 4000h
       
  5339 		push	af
       
  5340 		call	p7Dsub_597A
       
  5341 		ld	(OP2), a
       
  5342 		pop	af
       
  5343 		call	p7Dloc_40A9
       
  5344 		or	a
       
  5345 		ex	de, hl
       
  5346 		adc	hl, bc
       
  5347 		ex	de, hl
       
  5348 		push	de
       
  5349 		jr	p7Dloc_5877
       
  5350 ; ---------------------------------------------------------------------------
       
  5351 
       
  5352 p7Dloc_58AD:				; CODE XREF: seg001:5880j
       
  5353 		pop	de
       
  5354 		rst	28h
       
  5355 ; ---------------------------------------------------------------------------
       
  5356 		.dw 808Dh
       
  5357 ; ---------------------------------------------------------------------------
       
  5358 		ld	hl, 4000h
       
  5359 		push	hl
       
  5360 		ld	hl, 0
       
  5361 		ld	(unk_839F), hl
       
  5362 		ld	hl, (appInfo)
       
  5363 		call	p7Dsub_57C5
       
  5364 		ld	(unk_83A1), hl
       
  5365 		pop	hl
       
  5366 		ld	a, 1
       
  5367 		ld	(unk_83A4), a
       
  5368 
       
  5369 p7Dloc_58CA:				; CODE XREF: seg001:58E6j
       
  5370 		ld	a, 1
       
  5371 		ld	(unk_83A3), a
       
  5372 		call	p7Dsub_597A
       
  5373 		ld	de, ramStart
       
  5374 		ld	bc, 1
       
  5375 		push	hl
       
  5376 		call	FlashToRam
       
  5377 		call	p7Dsub_5E0A
       
  5378 		call	p7Dsub_578D
       
  5379 		ld	a, h
       
  5380 		or	l
       
  5381 		pop	hl
       
  5382 		inc	hl
       
  5383 		jr	nz, p7Dloc_58CA
       
  5384 		inc	hl
       
  5385 		inc	hl
       
  5386 		push	hl
       
  5387 		rst	28h
       
  5388 ; ---------------------------------------------------------------------------
       
  5389 		.dw 8018h
       
  5390 ; ---------------------------------------------------------------------------
       
  5391 		ld	hl, 0D02h
       
  5392 		ld	(OP1), hl
       
  5393 		ld	hl, OP1
       
  5394 		pop	de
       
  5395 		push	de
       
  5396 		dec	de
       
  5397 		dec	de
       
  5398 		ld	bc, 2
       
  5399 		call	p7Dsub_597A
       
  5400 		rst	28h
       
  5401 ; ---------------------------------------------------------------------------
       
  5402 		.dw 8087h
       
  5403 ; ---------------------------------------------------------------------------
       
  5404 		call	p7Dsub_5980
       
  5405 		jp	z, p7Dloc_5972
       
  5406 		ld	de, 0A20h
       
  5407 		rst	28h
       
  5408 ; ---------------------------------------------------------------------------
       
  5409 		.dw 8027h
       
  5410 ; ---------------------------------------------------------------------------
       
  5411 		call	p7Dsub_4574
       
  5412 		inc	bc
       
  5413 		dec	hl
       
  5414 		ld	de, ramStart
       
  5415 		rst	28h
       
  5416 ; ---------------------------------------------------------------------------
       
  5417 		.dw 8054h
       
  5418 ; ---------------------------------------------------------------------------
       
  5419 		ld	de, bigInteger1
       
  5420 		ld	b, 0
       
  5421 		ld	a, (unk_8291)
       
  5422 		ld	c, a
       
  5423 		ld	hl, 8291h
       
  5424 		inc	bc
       
  5425 		ldir
       
  5426 		rst	28h
       
  5427 ; ---------------------------------------------------------------------------
       
  5428 		.dw 80C0h
       
  5429 ; ---------------------------------------------------------------------------
       
  5430 		pop	de
       
  5431 		ld	hl, OP1
       
  5432 		ld	b, 0
       
  5433 		ld	a, (hl)
       
  5434 		ld	c, a
       
  5435 		inc	bc
       
  5436 		call	p7Dsub_597A
       
  5437 		push	bc
       
  5438 		rst	28h
       
  5439 ; ---------------------------------------------------------------------------
       
  5440 		.dw 8087h
       
  5441 ; ---------------------------------------------------------------------------
       
  5442 		ld	hl, (appInfo)
       
  5443 		pop	bc
       
  5444 		inc	bc
       
  5445 		inc	bc
       
  5446 		or	a
       
  5447 		adc	hl, bc
       
  5448 		ld	(unk_839F), hl
       
  5449 		call	p7Dsub_597A
       
  5450 		ld	(OP2), a
       
  5451 		call	p7Dsub_7700
       
  5452 		push	de
       
  5453 		rst	28h
       
  5454 ; ---------------------------------------------------------------------------
       
  5455 		.dw 8057h
       
  5456 ; ---------------------------------------------------------------------------
       
  5457 		ld	bc, 1D00h
       
  5458 		add	hl, bc
       
  5459 		pop	de
       
  5460 		ld	bc, 300h
       
  5461 		call	p7Dsub_40A6
       
  5462 		ld	hl, (unk_839F)
       
  5463 		ld	bc, 300h
       
  5464 		add	hl, bc
       
  5465 		ld	(unk_839F), hl
       
  5466 		ld	hl, 4000h
       
  5467 		xor	a
       
  5468 		pop	de
       
  5469 		pop	bc
       
  5470 		ret
       
  5471 ; ---------------------------------------------------------------------------
       
  5472 
       
  5473 p7Dloc_5972:				; CODE XREF: seg001:57EDj seg001:57FBj ...
       
  5474 		pop	hl
       
  5475 
       
  5476 p7Dloc_5973:				; CODE XREF: seg001:57D0j
       
  5477 		pop	de
       
  5478 		pop	bc
       
  5479 		ld	a, 0FFh
       
  5480 		bit	7, a
       
  5481 		ret
       
  5482 
       
  5483 ; =============== S U B	R O U T	I N E =======================================
       
  5484 
       
  5485 
       
  5486 p7Dsub_597A:				; CODE XREF: seg001:5801p seg001:581Dp ...
       
  5487 		call	FindSwapSector
       
  5488 		inc	a
       
  5489 		inc	a
       
  5490 		ret
       
  5491 ; End of function p7Dsub_597A
       
  5492 
       
  5493 
       
  5494 ; =============== S U B	R O U T	I N E =======================================
       
  5495 
       
  5496 
       
  5497 p7Dsub_5980:				; CODE XREF: seg001:57CDp seg001:57F8p ...
       
  5498 		set	2, (iy+16h)
       
  5499 		in	a, (2)
       
  5500 		bit	0, a
       
  5501 		ret	nz
       
  5502 		res	2, (iy+16h)
       
  5503 		ret
       
  5504 ; End of function p7Dsub_5980
       
  5505 
       
  5506 
       
  5507 ; =============== S U B	R O U T	I N E =======================================
       
  5508 
       
  5509 
       
  5510 p7Dsub_598E:				; CODE XREF: seg001:6252p seg001:625Cp ...
       
  5511 		push	bc
       
  5512 		ld	de, 847Ch
       
  5513 		ld	b, 5
       
  5514 
       
  5515 p7Dloc_5994:				; CODE XREF: p7Dsub_598E+Dj
       
  5516 		call	DivHLBy10
       
  5517 		add	a, 30h ; '0'
       
  5518 		ld	(de), a
       
  5519 		dec	de
       
  5520 		djnz	p7Dloc_5994
       
  5521 		sub	a
       
  5522 		ld	(unk_847C+1), a
       
  5523 		ex	de, hl
       
  5524 		ld	a, 30h ; '0'
       
  5525 		ld	b, 4
       
  5526 
       
  5527 p7Dloc_59A6:				; CODE XREF: p7Dsub_598E+1Ej
       
  5528 		inc	hl
       
  5529 		cp	(hl)
       
  5530 		jr	nz, p7Dloc_59AE
       
  5531 		ld	(hl), 20h ; ' '
       
  5532 		djnz	p7Dloc_59A6
       
  5533 
       
  5534 p7Dloc_59AE:				; CODE XREF: p7Dsub_598E+1Aj
       
  5535 		pop	bc
       
  5536 		call	Page0Call_3D4D
       
  5537 		ret
       
  5538 ; End of function p7Dsub_598E
       
  5539 
       
  5540 ; ---------------------------------------------------------------------------
       
  5541 
       
  5542 p7Dloc_59B3:				; CODE XREF: seg001:624Bp
       
  5543 		push	af
       
  5544 		ld	de, 0E10h
       
  5545 		rst	28h
       
  5546 ; ---------------------------------------------------------------------------
       
  5547 		.dw 80B1h
       
  5548 ; ---------------------------------------------------------------------------
       
  5549 		ld	de, 18h
       
  5550 		rst	28h
       
  5551 ; ---------------------------------------------------------------------------
       
  5552 		.dw 80B1h
       
  5553 ; ---------------------------------------------------------------------------
       
  5554 		ld	hl, (OP1M)
       
  5555 		call	p7Dsub_57C5
       
  5556 		ld	de, 16Dh
       
  5557 		rst	28h
       
  5558 ; ---------------------------------------------------------------------------
       
  5559 		.dw 804Bh
       
  5560 ; ---------------------------------------------------------------------------
       
  5561 		push	de
       
  5562 		pop	hl
       
  5563 		ld	bc, 7CDh
       
  5564 		or	a
       
  5565 		adc	hl, bc
       
  5566 		call	p7Dsub_5A68
       
  5567 		or	a
       
  5568 		ld	hl, (OP1M)
       
  5569 		call	p7Dsub_57C5
       
  5570 		sbc	hl, bc
       
  5571 		call	p7Dsub_57C5
       
  5572 		ld	(OP1M), hl
       
  5573 		call	p7Dsub_57C5
       
  5574 		ld	de, 16Dh
       
  5575 		rst	28h
       
  5576 ; ---------------------------------------------------------------------------
       
  5577 		.dw 804Bh
       
  5578 ; ---------------------------------------------------------------------------
       
  5579 		push	de
       
  5580 		pop	hl
       
  5581 		ld	bc, 7CDh
       
  5582 		or	a
       
  5583 		adc	hl, bc
       
  5584 		push	hl
       
  5585 		ld	(tempSwapArea), hl
       
  5586 		ld	a, e
       
  5587 		ld	de, 16Dh
       
  5588 		rst	28h
       
  5589 ; ---------------------------------------------------------------------------
       
  5590 		.dw 8045h
       
  5591 ; ---------------------------------------------------------------------------
       
  5592 		push	hl
       
  5593 		pop	bc
       
  5594 		ld	hl, (OP1M)
       
  5595 		call	p7Dsub_57C5
       
  5596 		or	a
       
  5597 		sbc	hl, bc
       
  5598 		ld	bc, 0
       
  5599 
       
  5600 p7Dloc_5A10:				; CODE XREF: seg001:5A3Aj
       
  5601 		push	hl
       
  5602 		ld	a, 2
       
  5603 		cp	c
       
  5604 		jr	nz, p7Dloc_5A26
       
  5605 		ld	hl, (tempSwapArea)
       
  5606 		call	p7Dsub_5AA5
       
  5607 		jr	nz, p7Dloc_5A26
       
  5608 		ld	hl, end_of_7D_table
       
  5609 		ld	e, (hl)
       
  5610 		inc	hl
       
  5611 		ld	d, (hl)
       
  5612 		jr	p7Dloc_5A31
       
  5613 ; ---------------------------------------------------------------------------
       
  5614 
       
  5615 p7Dloc_5A26:				; CODE XREF: seg001:5A14j seg001:5A1Cj
       
  5616 		or	a
       
  5617 		ld	hl, start_of_7D_table
       
  5618 		adc	hl, bc
       
  5619 		adc	hl, bc
       
  5620 		ld	e, (hl)
       
  5621 		inc	hl
       
  5622 		ld	d, (hl)
       
  5623 
       
  5624 p7Dloc_5A31:				; CODE XREF: seg001:5A24j
       
  5625 		or	a
       
  5626 		pop	hl
       
  5627 		push	hl
       
  5628 		sbc	hl, de
       
  5629 		jr	c, p7Dloc_5A3C
       
  5630 		pop	hl
       
  5631 		inc	bc
       
  5632 		jr	p7Dloc_5A10
       
  5633 ; ---------------------------------------------------------------------------
       
  5634 
       
  5635 p7Dloc_5A3C:				; CODE XREF: seg001:5A36j
       
  5636 		pop	hl
       
  5637 		push	hl
       
  5638 		dec	bc
       
  5639 		ld	a, 2
       
  5640 		cp	c
       
  5641 		jr	nz, p7Dloc_5A54
       
  5642 		ld	hl, (tempSwapArea)
       
  5643 		call	p7Dsub_5AA5
       
  5644 		jr	nz, p7Dloc_5A54
       
  5645 		ld	hl, end_of_7D_table
       
  5646 		ld	e, (hl)
       
  5647 		inc	hl
       
  5648 		ld	d, (hl)
       
  5649 		jr	p7Dloc_5A5F
       
  5650 ; ---------------------------------------------------------------------------
       
  5651 
       
  5652 p7Dloc_5A54:				; CODE XREF: seg001:5A42j seg001:5A4Aj
       
  5653 		ld	hl, start_of_7D_table
       
  5654 		or	a
       
  5655 		adc	hl, bc
       
  5656 		adc	hl, bc
       
  5657 		ld	e, (hl)
       
  5658 		inc	hl
       
  5659 		ld	d, (hl)
       
  5660 
       
  5661 p7Dloc_5A5F:				; CODE XREF: seg001:5A52j
       
  5662 		pop	hl
       
  5663 		or	a
       
  5664 		sbc	hl, de
       
  5665 		pop	de
       
  5666 		inc	hl
       
  5667 		inc	bc
       
  5668 		pop	af
       
  5669 		ret
       
  5670 
       
  5671 ; =============== S U B	R O U T	I N E =======================================
       
  5672 
       
  5673 
       
  5674 p7Dsub_5A68:				; CODE XREF: seg001:59D4p
       
  5675 		push	af
       
  5676 		push	hl
       
  5677 		push	de
       
  5678 		push	hl
       
  5679 		ld	bc, 7CDh
       
  5680 		or	a
       
  5681 		sbc	hl, bc
       
  5682 		pop	hl
       
  5683 		ret	c
       
  5684 		jr	z, p7Dloc_5A77
       
  5685 		dec	hl
       
  5686 
       
  5687 p7Dloc_5A77:				; CODE XREF: p7Dsub_5A68+Cj
       
  5688 		push	hl
       
  5689 		ld	de, 4
       
  5690 		rst	28h
       
  5691 ; ---------------------------------------------------------------------------
       
  5692 		.dw 804Bh
       
  5693 ; ---------------------------------------------------------------------------
       
  5694 		pop	hl
       
  5695 		push	de
       
  5696 		push	hl
       
  5697 		ld	de, 64h	; 'd'
       
  5698 		rst	28h
       
  5699 ; ---------------------------------------------------------------------------
       
  5700 		.dw 804Bh
       
  5701 ; ---------------------------------------------------------------------------
       
  5702 		pop	hl
       
  5703 		push	de
       
  5704 		ld	de, 190h
       
  5705 		rst	28h
       
  5706 ; ---------------------------------------------------------------------------
       
  5707 		.dw 804Bh
       
  5708 ; ---------------------------------------------------------------------------
       
  5709 		pop	bc
       
  5710 		pop	hl
       
  5711 		push	de
       
  5712 		or	a
       
  5713 		sbc	hl, bc
       
  5714 		pop	bc
       
  5715 		or	a
       
  5716 		adc	hl, bc
       
  5717 		ld	bc, 1E4h
       
  5718 		or	a
       
  5719 		sbc	hl, bc
       
  5720 		push	hl
       
  5721 		pop	bc
       
  5722 		pop	de
       
  5723 		pop	hl
       
  5724 		pop	af
       
  5725 		ret
       
  5726 ; End of function p7Dsub_5A68
       
  5727 
       
  5728 
       
  5729 ; =============== S U B	R O U T	I N E =======================================
       
  5730 
       
  5731 
       
  5732 p7Dsub_5AA5:				; CODE XREF: seg001:5A19p seg001:5A47p
       
  5733 		push	hl
       
  5734 		ld	de, 4
       
  5735 		rst	28h
       
  5736 ; ---------------------------------------------------------------------------
       
  5737 		.dw 804Bh
       
  5738 ; ---------------------------------------------------------------------------
       
  5739 		ld	a, l
       
  5740 		or	h
       
  5741 		jr	nz, p7Dloc_5ACA
       
  5742 		pop	hl
       
  5743 		push	hl
       
  5744 		ld	de, 64h	; 'd'
       
  5745 		rst	28h
       
  5746 ; ---------------------------------------------------------------------------
       
  5747 		.dw 804Bh
       
  5748 ; ---------------------------------------------------------------------------
       
  5749 		ld	a, l
       
  5750 		or	h
       
  5751 		jr	nz, p7Dloc_5AC6
       
  5752 		pop	hl
       
  5753 		push	hl
       
  5754 		ld	de, 190h
       
  5755 		rst	28h
       
  5756 ; ---------------------------------------------------------------------------
       
  5757 		.dw 804Bh
       
  5758 ; ---------------------------------------------------------------------------
       
  5759 		jr	nz, p7Dloc_5ACA
       
  5760 
       
  5761 p7Dloc_5AC6:				; CODE XREF: p7Dsub_5AA5+15j
       
  5762 		ld	a, 0
       
  5763 		bit	7, a
       
  5764 
       
  5765 p7Dloc_5ACA:				; CODE XREF: p7Dsub_5AA5+9j p7Dsub_5AA5+1Fj
       
  5766 		pop	hl
       
  5767 		ret
       
  5768 ; End of function p7Dsub_5AA5
       
  5769 
       
  5770 ; ---------------------------------------------------------------------------
       
  5771 
       
  5772 Page7D_2BAA:
       
  5773 		push	hl
       
  5774 		push	bc
       
  5775 		push	de
       
  5776 		push	af
       
  5777 		ld	de, ramStart
       
  5778 		ld	bc, 100h
       
  5779 		rst	28h
       
  5780 ; ---------------------------------------------------------------------------
       
  5781 		.dw 8054h
       
  5782 ; ---------------------------------------------------------------------------
       
  5783 		pop	af
       
  5784 		pop	de
       
  5785 		pop	bc
       
  5786 		pop	hl
       
  5787 		ret
       
  5788 ; ---------------------------------------------------------------------------
       
  5789 
       
  5790 Page7D_2C0A:
       
  5791 		push	hl
       
  5792 		push	bc
       
  5793 		push	af
       
  5794 		call	Page0Call_3D0B
       
  5795 		call	Page0Call_3D2F
       
  5796 		ld	hl, aIdlist
       
  5797 		ld	a, 3Dh ; '='
       
  5798 		bit	1, (iy+35h)
       
  5799 		call	nz, Page0Call_3C45
       
  5800 		call	p7Dsub_7045
       
  5801 		call	Page0Call_23DE
       
  5802 		jr	c, p7Dloc_5B0D
       
  5803 		ld	a, (de)
       
  5804 		ld	hl, (curRow+1)
       
  5805 		ld	bc, 5
       
  5806 		adc	hl, bc
       
  5807 		ld	(curRow+1), hl
       
  5808 		ld	l, a
       
  5809 		ld	h, 0
       
  5810 		call	Page0Call_3C7B
       
  5811 
       
  5812 p7Dloc_5B0D:				; CODE XREF: seg001:5AF9j
       
  5813 		pop	af
       
  5814 		pop	bc
       
  5815 		pop	hl
       
  5816 		ret
       
  5817 ; ---------------------------------------------------------------------------
       
  5818 
       
  5819 Page7D_2E56:				; CODE XREF: seg001:5B28j
       
  5820 		call	Page0Call_23DE
       
  5821 		jr	c, locret_5B2E
       
  5822 		push	af
       
  5823 		ld	a, (de)
       
  5824 		ld	l, a
       
  5825 		inc	de
       
  5826 		ld	a, (de)
       
  5827 		ld	h, a
       
  5828 		dec	de
       
  5829 		ld	a, l
       
  5830 		or	h
       
  5831 		jr	z, p7Dloc_5B2A
       
  5832 		pop	af
       
  5833 		ld	bc, 1
       
  5834 		call	Page0Call_31D7
       
  5835 		jr	Page7D_2E56
       
  5836 ; ---------------------------------------------------------------------------
       
  5837 
       
  5838 p7Dloc_5B2A:				; CODE XREF: seg001:5B1Fj
       
  5839 		pop	af
       
  5840 		call	Page0Call_23D4
       
  5841 
       
  5842 locret_5B2E:				; CODE XREF: seg001:5B14j
       
  5843 		ret
       
  5844 ; ---------------------------------------------------------------------------
       
  5845 
       
  5846 Page7D_2BC2:
       
  5847 		push	af
       
  5848 		ld	de, 0A10h
       
  5849 		rst	28h
       
  5850 ; ---------------------------------------------------------------------------
       
  5851 		.dw 8027h
       
  5852 ; ---------------------------------------------------------------------------
       
  5853 		jr	nz, p7Dloc_5B49
       
  5854 		call	p7Dsub_4574
       
  5855 		ld	de, OP2
       
  5856 		ld	b, c
       
  5857 		ld	a, 7Eh ; '~'
       
  5858 		call	p7Dsub_761F
       
  5859 		pop	af
       
  5860 		call	p7Dsub_5B4D
       
  5861 		ret
       
  5862 ; ---------------------------------------------------------------------------
       
  5863 
       
  5864 p7Dloc_5B49:				; CODE XREF: seg001:5B36j
       
  5865 		pop	af
       
  5866 		scf
       
  5867 		ccf
       
  5868 		ret
       
  5869 
       
  5870 ; =============== S U B	R O U T	I N E =======================================
       
  5871 
       
  5872 
       
  5873 p7Dsub_5B4D:				; CODE XREF: seg001:5B45p
       
  5874 		push	bc
       
  5875 		push	de
       
  5876 		call	p7Dsub_7656
       
  5877 		ld	hl, 4003h
       
  5878 		ld	(appSearchPage), a
       
  5879 
       
  5880 p7Dloc_5B58:				; CODE XREF: p7Dsub_5B4D+59j p7Dsub_5B4D+73j
       
  5881 		push	hl
       
  5882 		rst	28h
       
  5883 ; ---------------------------------------------------------------------------
       
  5884 		.dw 8051h
       
  5885 ; ---------------------------------------------------------------------------
       
  5886 		cp	3
       
  5887 		jr	z, p7Dloc_5B67
       
  5888 		cp	0FFh
       
  5889 		jr	z, p7Dloc_5BA8
       
  5890 		pop	hl
       
  5891 		jr	p7Dloc_5BC2
       
  5892 ; ---------------------------------------------------------------------------
       
  5893 
       
  5894 p7Dloc_5B67:				; CODE XREF: p7Dsub_5B4D+11j
       
  5895 		ld	a, (appSearchPage)
       
  5896 		call	p7Dloc_442C
       
  5897 		push	bc
       
  5898 		push	de
       
  5899 		ld	hl, OP2
       
  5900 		pop	de
       
  5901 		pop	bc
       
  5902 		jr	nz, p7Dloc_5BC2
       
  5903 		ld	b, c
       
  5904 
       
  5905 p7Dloc_5B77:				; CODE XREF: p7Dsub_5B4D+39j
       
  5906 		ld	a, (hl)
       
  5907 		ld	c, a
       
  5908 		ex	de, hl
       
  5909 		ld	a, (appSearchPage)
       
  5910 		rst	28h
       
  5911 ; ---------------------------------------------------------------------------
       
  5912 		.dw 8051h
       
  5913 ; ---------------------------------------------------------------------------
       
  5914 		ex	de, hl
       
  5915 		cp	c
       
  5916 		jr	nz, p7Dloc_5B8E
       
  5917 		inc	de
       
  5918 		inc	hl
       
  5919 		djnz	p7Dloc_5B77
       
  5920 		pop	hl
       
  5921 		ld	a, (appSearchPage)
       
  5922 		jr	p7Dloc_5BC6
       
  5923 ; ---------------------------------------------------------------------------
       
  5924 
       
  5925 p7Dloc_5B8E:				; CODE XREF: p7Dsub_5B4D+35j
       
  5926 		pop	hl
       
  5927 		inc	hl
       
  5928 		ld	a, (appSearchPage)
       
  5929 		push	de
       
  5930 		rst	28h
       
  5931 ; ---------------------------------------------------------------------------
       
  5932 		.dw 805Ah
       
  5933 ; ---------------------------------------------------------------------------
       
  5934 		pop	de
       
  5935 		or	a
       
  5936 		adc	hl, bc
       
  5937 		inc	hl
       
  5938 		ld	a, (appSearchPage)
       
  5939 		push	de
       
  5940 		rst	28h
       
  5941 ; ---------------------------------------------------------------------------
       
  5942 		.dw 805Ah
       
  5943 ; ---------------------------------------------------------------------------
       
  5944 		pop	de
       
  5945 		adc	hl, bc
       
  5946 		jr	p7Dloc_5B58
       
  5947 ; ---------------------------------------------------------------------------
       
  5948 
       
  5949 p7Dloc_5BA8:				; CODE XREF: p7Dsub_5B4D+15j
       
  5950 		pop	hl
       
  5951 		ld	a, (appSearchPage)
       
  5952 		inc	a
       
  5953 		ld	(appSearchPage), a
       
  5954 		call	NZIf83Plus
       
  5955 		jr	nz, p7Dloc_5BB9
       
  5956 		cp	6Ch ; 'l'
       
  5957 		jr	p7Dloc_5BBB
       
  5958 ; ---------------------------------------------------------------------------
       
  5959 
       
  5960 p7Dloc_5BB9:				; CODE XREF: p7Dsub_5B4D+66j
       
  5961 		cp	18h
       
  5962 
       
  5963 p7Dloc_5BBB:				; CODE XREF: p7Dsub_5B4D+6Aj
       
  5964 		jr	z, p7Dloc_5BC2
       
  5965 		ld	hl, 4000h
       
  5966 		jr	p7Dloc_5B58
       
  5967 ; ---------------------------------------------------------------------------
       
  5968 
       
  5969 p7Dloc_5BC2:				; CODE XREF: p7Dsub_5B4D+18j p7Dsub_5B4D+27j ...
       
  5970 		scf
       
  5971 		ccf
       
  5972 		jr	p7Dloc_5BC7
       
  5973 ; ---------------------------------------------------------------------------
       
  5974 
       
  5975 p7Dloc_5BC6:				; CODE XREF: p7Dsub_5B4D+3Fj
       
  5976 		scf
       
  5977 
       
  5978 p7Dloc_5BC7:				; CODE XREF: p7Dsub_5B4D+77j
       
  5979 		pop	de
       
  5980 		pop	bc
       
  5981 		ret
       
  5982 ; End of function p7Dsub_5B4D
       
  5983 
       
  5984 ; ---------------------------------------------------------------------------
       
  5985 
       
  5986 Page7D_2BC8:
       
  5987 		push	de
       
  5988 		push	bc
       
  5989 		push	hl
       
  5990 		ld	(appSearchPage), a
       
  5991 		call	p7Dsub_4894
       
  5992 		call	p7Dsub_457C
       
  5993 		ld	a, (appSearchPage)
       
  5994 		pop	hl
       
  5995 		call	p7Dloc_529F
       
  5996 		pop	bc
       
  5997 		pop	de
       
  5998 		ret
       
  5999 ; ---------------------------------------------------------------------------
       
  6000 
       
  6001 Page7D_3C54:
       
  6002 		ld	(Abackup), a
       
  6003 		ld	a, i
       
  6004 		di
       
  6005 		push	af
       
  6006 		ld	a, (Abackup)
       
  6007 		push	af
       
  6008 		ld	a, 1
       
  6009 		nop
       
  6010 		di
       
  6011 		nop
       
  6012 		nop
       
  6013 		im	1
       
  6014 		di
       
  6015 		out	(14h), a
       
  6016 		di
       
  6017 		call	checkForFlashTrickery
       
  6018 		pop	af
       
  6019 		push	de
       
  6020 		push	bc
       
  6021 
       
  6022 p7Dloc_5BFD:				; CODE XREF: seg001:5C08j
       
  6023 		ld	de, 410h
       
  6024 		rst	28h
       
  6025 ; ---------------------------------------------------------------------------
       
  6026 		.dw 8027h
       
  6027 ; ---------------------------------------------------------------------------
       
  6028 		jr	z, p7Dloc_5C0A
       
  6029 		rst	28h
       
  6030 ; ---------------------------------------------------------------------------
       
  6031 		.dw 80AEh
       
  6032 ; ---------------------------------------------------------------------------
       
  6033 		jr	p7Dloc_5BFD
       
  6034 ; ---------------------------------------------------------------------------
       
  6035 
       
  6036 p7Dloc_5C0A:				; CODE XREF: seg001:5C03j
       
  6037 		call	p7Dsub_4574
       
  6038 		ld	de, OP2
       
  6039 		rst	28h
       
  6040 ; ---------------------------------------------------------------------------
       
  6041 		.dw 8051h
       
  6042 ; ---------------------------------------------------------------------------
       
  6043 		ld	(de), a
       
  6044 		inc	de
       
  6045 		call	p7Dsub_4565
       
  6046 		ld	(de), a
       
  6047 		ld	hl, OP2
       
  6048 		pop	bc
       
  6049 		pop	de
       
  6050 		call	relockFlashBack
       
  6051 		ld	(Abackup), a
       
  6052 		pop	af
       
  6053 		jp	po, p7Dloc_5C29
       
  6054 		ei
       
  6055 
       
  6056 p7Dloc_5C29:				; CODE XREF: seg001:5C25j
       
  6057 		ld	a, (Abackup)
       
  6058 		ret
       
  6059 ; ---------------------------------------------------------------------------
       
  6060 
       
  6061 p7Dloc_5C2D:				; CODE XREF: seg001:635Bp
       
  6062 		ld	hl, 4000h
       
  6063 		ld	de, 8090h
       
  6064 		rst	28h
       
  6065 ; ---------------------------------------------------------------------------
       
  6066 		.dw 8075h
       
  6067 ; ---------------------------------------------------------------------------
       
  6068 		ret
       
  6069 ; ---------------------------------------------------------------------------
       
  6070 
       
  6071 Page7D_2C1C:
       
  6072 		push	hl
       
  6073 		call	p7Dsub_7656
       
  6074 		ld	hl, 4000h
       
  6075 		rst	28h
       
  6076 ; ---------------------------------------------------------------------------
       
  6077 		.dw 8051h
       
  6078 ; ---------------------------------------------------------------------------
       
  6079 		cp	0
       
  6080 		pop	hl
       
  6081 		ret
       
  6082 ; ---------------------------------------------------------------------------
       
  6083 
       
  6084 Page7D_2BDA:
       
  6085 		push	de
       
  6086 		push	bc
       
  6087 		push	af
       
  6088 		push	hl
       
  6089 		push	af
       
  6090 		ld	a, 1
       
  6091 		nop
       
  6092 		di
       
  6093 		nop
       
  6094 		nop
       
  6095 		im	1
       
  6096 		di
       
  6097 		out	(14h), a
       
  6098 		di
       
  6099 		call	checkForFlashTrickery
       
  6100 		pop	af
       
  6101 		ld	de, 4000h
       
  6102 		ld	b, 0
       
  6103 		call	p7Dsub_7656
       
  6104 		rst	28h
       
  6105 ; ---------------------------------------------------------------------------
       
  6106 		.dw 80C6h
       
  6107 ; ---------------------------------------------------------------------------
       
  6108 		pop	hl
       
  6109 		push	hl
       
  6110 		ld	b, l
       
  6111 		call	p7Dsub_7656
       
  6112 		rst	28h
       
  6113 ; ---------------------------------------------------------------------------
       
  6114 		.dw 80C6h
       
  6115 ; ---------------------------------------------------------------------------
       
  6116 		pop	hl
       
  6117 		ld	b, h
       
  6118 		call	p7Dsub_7656
       
  6119 		rst	28h
       
  6120 ; ---------------------------------------------------------------------------
       
  6121 		.dw 80C6h
       
  6122 ; ---------------------------------------------------------------------------
       
  6123 		pop	af
       
  6124 		pop	bc
       
  6125 		pop	de
       
  6126 		jp	relockFlashBack
       
  6127 ; ---------------------------------------------------------------------------
       
  6128 
       
  6129 Page7D_3C4E:
       
  6130 		push	hl
       
  6131 
       
  6132 p7Dloc_5C7D:				; CODE XREF: seg001:5C87j
       
  6133 		ld	a, (ix+0)
       
  6134 		push	bc
       
  6135 		call	p7Dsub_5C8E
       
  6136 		pop	bc
       
  6137 		inc	ix
       
  6138 		djnz	p7Dloc_5C7D
       
  6139 		call	p7Dsub_6503
       
  6140 		pop	hl
       
  6141 		ret
       
  6142 
       
  6143 ; =============== S U B	R O U T	I N E =======================================
       
  6144 
       
  6145 
       
  6146 p7Dsub_5C8E:				; CODE XREF: seg001:5C81p
       
  6147 		ld	a, (ix+0)
       
  6148 		push	af
       
  6149 		and	0F0h ; '�'
       
  6150 		srl	a
       
  6151 		srl	a
       
  6152 		srl	a
       
  6153 		srl	a
       
  6154 		ld	b, 2
       
  6155 
       
  6156 p7Dloc_5C9E:				; CODE XREF: p7Dsub_5C8E+22j p7Dsub_5C8E+31j
       
  6157 		push	af
       
  6158 		sub	0Ah
       
  6159 		jr	c, p7Dloc_5CB2
       
  6160 		pop	af
       
  6161 		add	a, 37h ; '7'
       
  6162 		ld	(hl), a
       
  6163 		inc	hl
       
  6164 		dec	b
       
  6165 		ld	a, b
       
  6166 		or	b
       
  6167 		jr	z, p7Dloc_5CC1
       
  6168 		pop	af
       
  6169 		and	0Fh
       
  6170 		jr	p7Dloc_5C9E
       
  6171 ; ---------------------------------------------------------------------------
       
  6172 
       
  6173 p7Dloc_5CB2:				; CODE XREF: p7Dsub_5C8E+13j
       
  6174 		pop	af
       
  6175 		add	a, 30h ; '0'
       
  6176 		ld	(hl), a
       
  6177 		inc	hl
       
  6178 		dec	b
       
  6179 		ld	a, b
       
  6180 		or	b
       
  6181 		jr	z, p7Dloc_5CC1
       
  6182 		pop	af
       
  6183 		and	0Fh
       
  6184 		jr	p7Dloc_5C9E
       
  6185 ; ---------------------------------------------------------------------------
       
  6186 
       
  6187 p7Dloc_5CC1:				; CODE XREF: p7Dsub_5C8E+1Dj p7Dsub_5C8E+2Cj
       
  6188 		ld	a, 0
       
  6189 		ld	(hl), a
       
  6190 		ret
       
  6191 ; End of function p7Dsub_5C8E
       
  6192 
       
  6193 ; ---------------------------------------------------------------------------
       
  6194 
       
  6195 Page7D_3C5A:
       
  6196 		push	hl
       
  6197 		push	bc
       
  6198 		push	de
       
  6199 		ld	a, (hl)
       
  6200 		push	af
       
  6201 		and	0F0h ; '�'
       
  6202 		srl	a
       
  6203 		srl	a
       
  6204 		srl	a
       
  6205 		srl	a
       
  6206 		ld	b, 2
       
  6207 
       
  6208 p7Dloc_5CD6:				; CODE XREF: seg001:5CE9j seg001:5CF9j
       
  6209 		push	af
       
  6210 		sub	0Ah
       
  6211 		jr	c, p7Dloc_5CEB
       
  6212 		pop	af
       
  6213 		add	a, 37h ; '7'
       
  6214 		call	Page0Call_3D47
       
  6215 		dec	b
       
  6216 		ld	a, b
       
  6217 		or	b
       
  6218 		jr	z, p7Dloc_5CFB
       
  6219 		pop	af
       
  6220 		and	0Fh
       
  6221 		jr	p7Dloc_5CD6
       
  6222 ; ---------------------------------------------------------------------------
       
  6223 
       
  6224 p7Dloc_5CEB:				; CODE XREF: seg001:5CD9j
       
  6225 		pop	af
       
  6226 		add	a, 30h ; '0'
       
  6227 		call	Page0Call_3D47
       
  6228 		dec	b
       
  6229 		ld	a, b
       
  6230 		or	b
       
  6231 		jr	z, p7Dloc_5CFB
       
  6232 		pop	af
       
  6233 		and	0Fh
       
  6234 		jr	p7Dloc_5CD6
       
  6235 ; ---------------------------------------------------------------------------
       
  6236 
       
  6237 p7Dloc_5CFB:				; CODE XREF: seg001:5CE4j seg001:5CF4j
       
  6238 		pop	de
       
  6239 		pop	bc
       
  6240 		pop	hl
       
  6241 		ret
       
  6242 
       
  6243 ; =============== S U B	R O U T	I N E =======================================
       
  6244 
       
  6245 
       
  6246 p7Dsub_5CFF:				; CODE XREF: seg001:46FCp seg001:4706p ...
       
  6247 		push	af
       
  6248 		push	bc
       
  6249 		push	hl
       
  6250 		push	de
       
  6251 		push	af
       
  6252 		ld	a, c
       
  6253 		or	b
       
  6254 		jr	z, p7Dloc_5D18
       
  6255 		ld	de, MD5Buffer
       
  6256 
       
  6257 p7Dloc_5D0B:				; CODE XREF: p7Dsub_5CFF+17j
       
  6258 		pop	af
       
  6259 		push	af
       
  6260 		rst	28h
       
  6261 ; ---------------------------------------------------------------------------
       
  6262 		.dw 8051h
       
  6263 ; ---------------------------------------------------------------------------
       
  6264 		ld	(de), a
       
  6265 		inc	de
       
  6266 		inc	hl
       
  6267 		dec	bc
       
  6268 		ld	a, c
       
  6269 		or	b
       
  6270 		jr	nz, p7Dloc_5D0B
       
  6271 
       
  6272 p7Dloc_5D18:				; CODE XREF: p7Dsub_5CFF+7j
       
  6273 		pop	af
       
  6274 		pop	de
       
  6275 		pop	hl
       
  6276 		pop	bc
       
  6277 		pop	af
       
  6278 		ret
       
  6279 ; End of function p7Dsub_5CFF
       
  6280 
       
  6281 
       
  6282 ; =============== S U B	R O U T	I N E =======================================
       
  6283 
       
  6284 
       
  6285 p7Dsub_5D1E:				; CODE XREF: seg001:46FFp
       
  6286 		push	bc
       
  6287 		push	de
       
  6288 		push	af
       
  6289 		ld	b, a
       
  6290 		ld	a, 0
       
  6291 		or	c
       
  6292 		jr	z, p7Dloc_5D3D
       
  6293 		ld	a, b
       
  6294 		ld	de, MD5Buffer
       
  6295 		ld	b, c
       
  6296 		ld	hl, 0
       
  6297 		ld	a, (de)
       
  6298 		ld	l, a
       
  6299 		dec	b
       
  6300 		ld	a, b
       
  6301 		or	b
       
  6302 		jr	z, p7Dloc_5D3F
       
  6303 		inc	de
       
  6304 		ld	a, l
       
  6305 		ld	h, a
       
  6306 		ld	a, (de)
       
  6307 		ld	h, a
       
  6308 		jr	p7Dloc_5D3F
       
  6309 ; ---------------------------------------------------------------------------
       
  6310 
       
  6311 p7Dloc_5D3D:				; CODE XREF: p7Dsub_5D1E+7j
       
  6312 		ld	h, a
       
  6313 		ld	l, a
       
  6314 
       
  6315 p7Dloc_5D3F:				; CODE XREF: p7Dsub_5D1E+16j p7Dsub_5D1E+1Dj
       
  6316 		pop	af
       
  6317 		pop	de
       
  6318 		pop	bc
       
  6319 		ret
       
  6320 ; End of function p7Dsub_5D1E
       
  6321 
       
  6322 
       
  6323 ; =============== S U B	R O U T	I N E =======================================
       
  6324 
       
  6325 
       
  6326 p7Dsub_5D43:				; CODE XREF: seg001:4709p p7Dsub_4873+17p
       
  6327 		push	hl
       
  6328 		push	de
       
  6329 		push	af
       
  6330 		ld	b, a
       
  6331 		ld	a, 0
       
  6332 		or	c
       
  6333 		jr	z, p7Dloc_5D62
       
  6334 		ld	a, b
       
  6335 		ld	hl, MD5Buffer
       
  6336 		ld	e, c
       
  6337 		ld	bc, 0
       
  6338 		ld	a, (hl)
       
  6339 		ld	c, a
       
  6340 		dec	e
       
  6341 		ld	a, e
       
  6342 		or	e
       
  6343 		jr	z, p7Dloc_5D64
       
  6344 		inc	hl
       
  6345 		ld	a, c
       
  6346 		ld	b, a
       
  6347 		ld	a, (hl)
       
  6348 		ld	c, a
       
  6349 		jr	p7Dloc_5D64
       
  6350 ; ---------------------------------------------------------------------------
       
  6351 
       
  6352 p7Dloc_5D62:				; CODE XREF: p7Dsub_5D43+7j
       
  6353 		ld	b, a
       
  6354 		ld	c, a
       
  6355 
       
  6356 p7Dloc_5D64:				; CODE XREF: p7Dsub_5D43+16j p7Dsub_5D43+1Dj
       
  6357 		pop	af
       
  6358 		pop	de
       
  6359 		pop	hl
       
  6360 		ret
       
  6361 ; End of function p7Dsub_5D43
       
  6362 
       
  6363 
       
  6364 ; =============== S U B	R O U T	I N E =======================================
       
  6365 
       
  6366 
       
  6367 Page7D_2E44:				; CODE XREF: p7Dsub_5DC7p
       
  6368 		push	af
       
  6369 		push	hl
       
  6370 		call	Page7D_2B56
       
  6371 		ld	e, b
       
  6372 		ld	d, 0
       
  6373 		push	de
       
  6374 		inc	b
       
  6375 		ld	c, 0
       
  6376 		ld	a, 8
       
  6377 
       
  6378 p7Dloc_5D76:				; CODE XREF: Page7D_2E44+23j
       
  6379 		cp	b
       
  6380 		jr	z, p7Dloc_5DC2
       
  6381 		jr	nc, p7Dloc_5DC0
       
  6382 		push	bc
       
  6383 		ld	hl, 4000h
       
  6384 		push	af
       
  6385 		call	Page7D_2CD0
       
  6386 		cp	0FEh ; '�'
       
  6387 		jr	nz, p7Dloc_5D8D
       
  6388 		pop	af
       
  6389 		add	a, 4
       
  6390 
       
  6391 p7Dloc_5D8A:				; CODE XREF: Page7D_2E44+51j
       
  6392 		pop	bc
       
  6393 		jr	p7Dloc_5D76
       
  6394 ; ---------------------------------------------------------------------------
       
  6395 
       
  6396 p7Dloc_5D8D:				; CODE XREF: Page7D_2E44+1Dj
       
  6397 		cp	0FFh
       
  6398 		jr	z, p7Dloc_5D9F
       
  6399 		pop	af
       
  6400 		pop	bc
       
  6401 		pop	de
       
  6402 		push	af
       
  6403 		ld	a, c
       
  6404 		add	a, d
       
  6405 		ld	d, a
       
  6406 		pop	af
       
  6407 		push	de
       
  6408 		ld	c, 0
       
  6409 		push	bc
       
  6410 		push	af
       
  6411 		inc	hl
       
  6412 
       
  6413 p7Dloc_5D9F:				; CODE XREF: Page7D_2E44+27j
       
  6414 		pop	af
       
  6415 		ld	c, 0FFh
       
  6416 		call	Page7D_2B6E
       
  6417 		ld	bc, 4000h
       
  6418 		or	a
       
  6419 		sbc	hl, bc
       
  6420 		jr	nz, p7Dloc_5DB0
       
  6421 		pop	bc
       
  6422 		inc	c
       
  6423 		push	bc
       
  6424 
       
  6425 p7Dloc_5DB0:				; CODE XREF: Page7D_2E44+43j
       
  6426 					; Page7D_2E44+56j
       
  6427 		inc	a
       
  6428 		pop	bc
       
  6429 		cp	b
       
  6430 		jr	z, p7Dloc_5DC2
       
  6431 		push	bc
       
  6432 		call	p7Dsub_67EC
       
  6433 		jr	z, p7Dloc_5D8A
       
  6434 		pop	bc
       
  6435 		inc	c
       
  6436 		push	bc
       
  6437 		jr	p7Dloc_5DB0
       
  6438 ; ---------------------------------------------------------------------------
       
  6439 
       
  6440 p7Dloc_5DC0:				; CODE XREF: Page7D_2E44+11j
       
  6441 		xor	a
       
  6442 		ld	c, a
       
  6443 
       
  6444 p7Dloc_5DC2:				; CODE XREF: Page7D_2E44+Fj
       
  6445 					; Page7D_2E44+4Bj
       
  6446 		ld	b, c
       
  6447 		pop	de
       
  6448 		pop	hl
       
  6449 		pop	af
       
  6450 		ret
       
  6451 ; End of function Page7D_2E44
       
  6452 
       
  6453 
       
  6454 ; =============== S U B	R O U T	I N E =======================================
       
  6455 
       
  6456 
       
  6457 p7Dsub_5DC7:				; CODE XREF: p7Dsub_7BEA+9p p7Dsub_7BEA+21p
       
  6458 		call	Page7D_2E44
       
  6459 		ld	c, e
       
  6460 		push	bc
       
  6461 		push	de
       
  6462 		ld	a, 1
       
  6463 		ld	hl, ramStart
       
  6464 		ld	de, 8080h
       
  6465 		rst	28h
       
  6466 ; ---------------------------------------------------------------------------
       
  6467 		.dw 8075h
       
  6468 ; ---------------------------------------------------------------------------
       
  6469 		inc	hl
       
  6470 		ld	a, 1
       
  6471 		rst	28h
       
  6472 ; ---------------------------------------------------------------------------
       
  6473 		.dw 805Ah
       
  6474 ; ---------------------------------------------------------------------------
       
  6475 		ld	a, (hl)
       
  6476 		pop	de
       
  6477 		ld	e, d
       
  6478 		ld	d, a
       
  6479 		pop	bc
       
  6480 		sub	b
       
  6481 		ret
       
  6482 ; End of function p7Dsub_5DC7
       
  6483 
       
  6484 ; ---------------------------------------------------------------------------
       
  6485 
       
  6486 Page7D_2BF2:
       
  6487 		push	hl
       
  6488 		push	bc
       
  6489 		push	de
       
  6490 		push	hl
       
  6491 		rst	28h
       
  6492 ; ---------------------------------------------------------------------------
       
  6493 		.dw 802Dh
       
  6494 ; ---------------------------------------------------------------------------
       
  6495 		ex	de, hl
       
  6496 		rst	28h
       
  6497 ; ---------------------------------------------------------------------------
       
  6498 		.dw 8057h
       
  6499 ; ---------------------------------------------------------------------------
       
  6500 		ex	de, hl
       
  6501 		or	a
       
  6502 		sbc	hl, de
       
  6503 		ex	de, hl
       
  6504 		ld	hl, 1F18h
       
  6505 		call	NZIf83Plus
       
  6506 		jr	nz, p7Dloc_5E00
       
  6507 		ld	hl, 1DEAh
       
  6508 
       
  6509 p7Dloc_5E00:				; CODE XREF: seg001:5DFBj
       
  6510 		or	a
       
  6511 		sbc	hl, de
       
  6512 		pop	bc
       
  6513 		sbc	hl, bc
       
  6514 		pop	de
       
  6515 		pop	bc
       
  6516 		pop	hl
       
  6517 		ret
       
  6518 
       
  6519 ; =============== S U B	R O U T	I N E =======================================
       
  6520 
       
  6521 
       
  6522 p7Dsub_5E0A:				; CODE XREF: seg001:58DCp
       
  6523 					; p7Dsub_7240:p7Dloc_739Bp
       
  6524 		ld	a, (unk_83A3)
       
  6525 		ld	b, a
       
  6526 		ld	c, 0
       
  6527 		or	c
       
  6528 		jr	z, p7Dloc_5E23
       
  6529 		ld	hl, ramStart
       
  6530 
       
  6531 p7Dloc_5E16:				; CODE XREF: p7Dsub_5E0A+17j
       
  6532 		push	bc
       
  6533 		push	hl
       
  6534 		ld	bc, 1
       
  6535 		rst	28h
       
  6536 ; ---------------------------------------------------------------------------
       
  6537 		.dw 8090h
       
  6538 ; ---------------------------------------------------------------------------
       
  6539 		pop	hl
       
  6540 		inc	hl
       
  6541 		pop	bc
       
  6542 		djnz	p7Dloc_5E16
       
  6543 
       
  6544 p7Dloc_5E23:				; CODE XREF: p7Dsub_5E0A+7j
       
  6545 		ld	a, 0
       
  6546 		ld	(unk_83A3), a
       
  6547 		ret
       
  6548 ; End of function p7Dsub_5E0A
       
  6549 
       
  6550 ; ---------------------------------------------------------------------------
       
  6551 ; START	OF FUNCTION CHUNK FOR Page7D_2C9A
       
  6552 
       
  6553 p7Dloc_5E29:				; CODE XREF: Page7D_2C9A+9j
       
  6554 					; p7Dsub_5E59+9j
       
  6555 		ld	a, 0Ch
       
  6556 		call	Page0Call_2C49
       
  6557 		jp	JErrorNo
       
  6558 ; END OF FUNCTION CHUNK	FOR Page7D_2C9A
       
  6559 
       
  6560 ; =============== S U B	R O U T	I N E =======================================
       
  6561 
       
  6562 
       
  6563 p7Dsub_5E31:				; CODE XREF: p7Dsub_4A5A+30p p7Dsub_607A+3Cp ...
       
  6564 		ld	hl, 4000h
       
  6565 ; End of function p7Dsub_5E31
       
  6566 
       
  6567 
       
  6568 ; =============== S U B	R O U T	I N E =======================================
       
  6569 
       
  6570 
       
  6571 Page7D_2C9A:				; CODE XREF: Page7D_2C10+3Cp
       
  6572 					; p7Dsub_7240+1FBp ...
       
  6573 
       
  6574 ; FUNCTION CHUNK AT 5E29 SIZE 00000008 BYTES
       
  6575 
       
  6576 		push	af
       
  6577 		ld	de, 8010h
       
  6578 		push	af
       
  6579 		or	a
       
  6580 		rst	28h
       
  6581 ; ---------------------------------------------------------------------------
       
  6582 		.dw 8075h
       
  6583 ; ---------------------------------------------------------------------------
       
  6584 		jp	nz, p7Dloc_5E29
       
  6585 		inc	hl
       
  6586 		pop	af
       
  6587 		push	af
       
  6588 		rst	28h
       
  6589 ; ---------------------------------------------------------------------------
       
  6590 		.dw 805Ah
       
  6591 ; ---------------------------------------------------------------------------
       
  6592 		ld	de, appID
       
  6593 		ld	a, 7
       
  6594 		ld	(de), a
       
  6595 		ld	de, 838Fh
       
  6596 		ld	(appID+1), bc
       
  6597 		pop	af
       
  6598 		rst	28h
       
  6599 ; ---------------------------------------------------------------------------
       
  6600 		.dw 8054h
       
  6601 ; ---------------------------------------------------------------------------
       
  6602 		pop	af
       
  6603 		ret
       
  6604 ; End of function Page7D_2C9A
       
  6605 
       
  6606 
       
  6607 ; =============== S U B	R O U T	I N E =======================================
       
  6608 
       
  6609 
       
  6610 p7Dsub_5E59:				; CODE XREF: seg001:630Ap seg001:7744p ...
       
  6611 		push	af
       
  6612 		ld	de, 8010h
       
  6613 		push	af
       
  6614 		or	a
       
  6615 		rst	28h
       
  6616 ; ---------------------------------------------------------------------------
       
  6617 		.dw 8075h
       
  6618 ; ---------------------------------------------------------------------------
       
  6619 		jp	nz, p7Dloc_5E29
       
  6620 		inc	hl
       
  6621 		pop	af
       
  6622 		push	af
       
  6623 		rst	28h
       
  6624 ; ---------------------------------------------------------------------------
       
  6625 		.dw 805Ah
       
  6626 ; ---------------------------------------------------------------------------
       
  6627 		ld	de, 838Eh
       
  6628 		ld	(appID), bc
       
  6629 		pop	af
       
  6630 		rst	28h
       
  6631 ; ---------------------------------------------------------------------------
       
  6632 		.dw 8054h
       
  6633 ; ---------------------------------------------------------------------------
       
  6634 		pop	af
       
  6635 		ret
       
  6636 ; End of function p7Dsub_5E59
       
  6637 
       
  6638 
       
  6639 ; =============== S U B	R O U T	I N E =======================================
       
  6640 
       
  6641 
       
  6642 p7Dsub_5E78:				; CODE XREF: seg001:6316p
       
  6643 		ld	b, a
       
  6644 		call	p7Dsub_75EC
       
  6645 		sub	b
       
  6646 		ld	b, 0
       
  6647 		ld	c, a
       
  6648 		push	bc
       
  6649 		pop	ix
       
  6650 		call	p7Dsub_48B5
       
  6651 		jr	c, locret_5E8F
       
  6652 		jr	z, locret_5E8F
       
  6653 		push	af
       
  6654 		call	p7Dsub_5365
       
  6655 		pop	af
       
  6656 
       
  6657 locret_5E8F:				; CODE XREF: p7Dsub_5E78+Ej p7Dsub_5E78+10j
       
  6658 		ret
       
  6659 ; End of function p7Dsub_5E78
       
  6660 
       
  6661 
       
  6662 ; =============== S U B	R O U T	I N E =======================================
       
  6663 
       
  6664 
       
  6665 p7Dsub_5E90:				; CODE XREF: p7Dsub_7240+22Ap
       
  6666 		push	af
       
  6667 		push	af
       
  6668 		ld	a, 1
       
  6669 		or	a
       
  6670 		ld	hl, ramStart
       
  6671 		ld	de, 8060h
       
  6672 		rst	28h
       
  6673 ; ---------------------------------------------------------------------------
       
  6674 		.dw 8075h
       
  6675 ; ---------------------------------------------------------------------------
       
  6676 		jr	z, p7Dloc_5EB5
       
  6677 		ld	hl, ramStart
       
  6678 		ld	de, 8050h
       
  6679 		rst	28h
       
  6680 ; ---------------------------------------------------------------------------
       
  6681 		.dw 8075h
       
  6682 ; ---------------------------------------------------------------------------
       
  6683 		jr	z, p7Dloc_5EB0
       
  6684 		ld	de, 80h	; '�'
       
  6685 		jr	p7Dloc_5EDD
       
  6686 ; ---------------------------------------------------------------------------
       
  6687 
       
  6688 p7Dloc_5EB0:				; CODE XREF: p7Dsub_5E90+19j
       
  6689 		ld	de, 0
       
  6690 		jr	p7Dloc_5EDD
       
  6691 ; ---------------------------------------------------------------------------
       
  6692 
       
  6693 p7Dloc_5EB5:				; CODE XREF: p7Dsub_5E90+Ej
       
  6694 		inc	hl
       
  6695 		ld	a, 1
       
  6696 		rst	28h
       
  6697 ; ---------------------------------------------------------------------------
       
  6698 		.dw 805Ah
       
  6699 ; ---------------------------------------------------------------------------
       
  6700 		ld	a, 1
       
  6701 		rst	28h
       
  6702 ; ---------------------------------------------------------------------------
       
  6703 		.dw 8051h
       
  6704 ; ---------------------------------------------------------------------------
       
  6705 		push	af
       
  6706 		ld	b, 9
       
  6707 		sub	b
       
  6708 		jr	c, p7Dloc_5ED6
       
  6709 		pop	af
       
  6710 		ld	b, 8
       
  6711 		sub	b
       
  6712 		call	p7Dsub_4E9B
       
  6713 		ld	d, a
       
  6714 		ld	a, 8
       
  6715 		call	p7Dsub_4E9B
       
  6716 		ld	e, a
       
  6717 		jr	p7Dloc_5EDD
       
  6718 ; ---------------------------------------------------------------------------
       
  6719 
       
  6720 p7Dloc_5ED6:				; CODE XREF: p7Dsub_5E90+34j
       
  6721 		ld	d, 0
       
  6722 		pop	af
       
  6723 		call	p7Dsub_4E9B
       
  6724 		ld	e, a
       
  6725 
       
  6726 p7Dloc_5EDD:				; CODE XREF: p7Dsub_5E90+1Ej p7Dsub_5E90+23j ...
       
  6727 		pop	af
       
  6728 		ld	b, a
       
  6729 		call	p7Dsub_75EC
       
  6730 		sub	b
       
  6731 		ld	bc, 0
       
  6732 		ld	c, a
       
  6733 		call	Page7D_2B68
       
  6734 		sla	c
       
  6735 		add	hl, bc
       
  6736 		ld	b, e
       
  6737 		ex	de, hl
       
  6738 		push	hl
       
  6739 		call	p7Dsub_456D
       
  6740 		pop	hl
       
  6741 		ex	de, hl
       
  6742 		ld	b, d
       
  6743 		ex	de, hl
       
  6744 		call	p7Dsub_456D
       
  6745 		pop	af
       
  6746 		ret
       
  6747 ; End of function p7Dsub_5E90
       
  6748 
       
  6749 
       
  6750 ; =============== S U B	R O U T	I N E =======================================
       
  6751 
       
  6752 
       
  6753 p7Dsub_5EFC:				; CODE XREF: seg001:7137p seg001:71DDp
       
  6754 		push	hl
       
  6755 		push	bc
       
  6756 		push	de
       
  6757 		push	hl
       
  6758 		pop	de
       
  6759 		ld	b, a
       
  6760 		ld	c, 8
       
  6761 		sub	c
       
  6762 		jr	c, p7Dloc_5F25
       
  6763 		call	p7Dsub_75EC
       
  6764 		inc	a
       
  6765 		ld	c, a
       
  6766 		ld	a, b
       
  6767 		sub	c
       
  6768 		jr	nc, p7Dloc_5F25
       
  6769 		ld	bc, 4000h
       
  6770 		or	a
       
  6771 		sbc	hl, bc
       
  6772 		jr	c, p7Dloc_5F25
       
  6773 		push	de
       
  6774 		pop	hl
       
  6775 		or	a
       
  6776 		ld	bc, ramStart
       
  6777 		sbc	hl, bc
       
  6778 		jr	nc, p7Dloc_5F25
       
  6779 		or	a
       
  6780 		jr	p7Dloc_5F26
       
  6781 ; ---------------------------------------------------------------------------
       
  6782 
       
  6783 p7Dloc_5F25:				; CODE XREF: p7Dsub_5EFC+9j p7Dsub_5EFC+12j	...
       
  6784 		scf
       
  6785 
       
  6786 p7Dloc_5F26:				; CODE XREF: p7Dsub_5EFC+27j
       
  6787 		pop	de
       
  6788 		pop	bc
       
  6789 		pop	hl
       
  6790 		ret
       
  6791 ; End of function p7Dsub_5EFC
       
  6792 
       
  6793 ; ---------------------------------------------------------------------------
       
  6794 
       
  6795 Page7D_2BF8:
       
  6796 		push	hl
       
  6797 		rst	28h
       
  6798 ; ---------------------------------------------------------------------------
       
  6799 		.dw 8057h
       
  6800 ; ---------------------------------------------------------------------------
       
  6801 		ld	de, 0A10h
       
  6802 		call	p7Dsub_777E
       
  6803 		jp	z, JError
       
  6804 		pop	hl
       
  6805 		ld	de, 0A10h
       
  6806 		call	p7Dsub_777E
       
  6807 		jp	nz, JError
       
  6808 		ex	de, hl
       
  6809 		push	de
       
  6810 		rst	28h
       
  6811 ; ---------------------------------------------------------------------------
       
  6812 		.dw 802Dh
       
  6813 ; ---------------------------------------------------------------------------
       
  6814 		pop	de
       
  6815 		ld	bc, 2
       
  6816 		ex	de, hl
       
  6817 
       
  6818 p7Dloc_5F4B:				; CODE XREF: seg001:5F9Cj
       
  6819 		push	bc
       
  6820 		call	p7Dsub_4566
       
  6821 		ld	b, a
       
  6822 		push	hl
       
  6823 		call	p7Dsub_456D
       
  6824 		pop	hl
       
  6825 		call	p7Dsub_4565
       
  6826 		ld	b, a
       
  6827 		push	hl
       
  6828 		call	p7Dsub_456D
       
  6829 		pop	hl
       
  6830 		push	de
       
  6831 		push	hl
       
  6832 		call	p7Dloc_4575
       
  6833 		pop	de
       
  6834 		push	bc
       
  6835 		push	hl
       
  6836 		sbc	hl, de
       
  6837 		ld	b, l
       
  6838 		dec	b
       
  6839 		pop	hl
       
  6840 		ld	a, 0
       
  6841 		cp	b
       
  6842 		jr	z, p7Dloc_5F74
       
  6843 
       
  6844 p7Dloc_5F70:				; CODE XREF: seg001:5F72j
       
  6845 		inc	a
       
  6846 		dec	hl
       
  6847 		djnz	p7Dloc_5F70
       
  6848 
       
  6849 p7Dloc_5F74:				; CODE XREF: seg001:5F6Ej
       
  6850 		pop	bc
       
  6851 		pop	de
       
  6852 		or	a
       
  6853 		adc	a, c
       
  6854 		ld	c, a
       
  6855 		ld	a, 7Eh ; '~'
       
  6856 		push	de
       
  6857 		push	bc
       
  6858 		ld	de, MD5Buffer
       
  6859 		rst	28h
       
  6860 ; ---------------------------------------------------------------------------
       
  6861 		.dw 8054h
       
  6862 ; ---------------------------------------------------------------------------
       
  6863 		push	hl
       
  6864 		ld	hl, MD5Buffer
       
  6865 		call	p7Dsub_5F9F
       
  6866 		pop	hl
       
  6867 		pop	bc
       
  6868 		pop	de
       
  6869 		push	hl
       
  6870 		ld	hl, MD5Buffer
       
  6871 		ld	a, 7Eh ; '~'
       
  6872 		rst	28h
       
  6873 ; ---------------------------------------------------------------------------
       
  6874 		.dw 8087h
       
  6875 ; ---------------------------------------------------------------------------
       
  6876 		pop	hl
       
  6877 		pop	bc
       
  6878 		dec	c
       
  6879 		ld	a, c
       
  6880 		cp	0
       
  6881 		jr	nz, p7Dloc_5F4B
       
  6882 		ret
       
  6883 
       
  6884 ; =============== S U B	R O U T	I N E =======================================
       
  6885 
       
  6886 
       
  6887 p7Dsub_5F9F:				; CODE XREF: seg001:5F87p
       
  6888 		push	hl
       
  6889 		ld	a, (hl)
       
  6890 		cp	0
       
  6891 		jr	nz, p7Dloc_5FBD
       
  6892 		push	hl
       
  6893 		ld	d, (hl)
       
  6894 		inc	hl
       
  6895 		ld	e, (hl)
       
  6896 		push	de
       
  6897 		rst	28h
       
  6898 ; ---------------------------------------------------------------------------
       
  6899 		.dw 80C3h
       
  6900 ; ---------------------------------------------------------------------------
       
  6901 		push	de
       
  6902 		pop	bc
       
  6903 		pop	de
       
  6904 		ex	de, hl
       
  6905 		ld	h, b
       
  6906 		ld	a, l
       
  6907 		and	0Fh
       
  6908 		or	a
       
  6909 		adc	a, c
       
  6910 		ld	l, a
       
  6911 		ex	de, hl
       
  6912 		pop	hl
       
  6913 		ld	(hl), e
       
  6914 		inc	hl
       
  6915 		ld	(hl), d
       
  6916 
       
  6917 p7Dloc_5FBD:				; CODE XREF: p7Dsub_5F9F+4j
       
  6918 		pop	hl
       
  6919 		ret
       
  6920 ; End of function p7Dsub_5F9F
       
  6921 
       
  6922 ; ---------------------------------------------------------------------------
       
  6923 start_of_7D_table:
       
  6924 		.db    0
       
  6925 		.db    0
       
  6926 		.db  1Fh
       
  6927 		.db    0
       
  6928 		.db  3Bh	; ;
       
  6929 		.db    0
       
  6930 		.db  5Ah	; Z
       
  6931 		.db    0
       
  6932 		.db  78h	; x
       
  6933 		.db    0
       
  6934 		.db  97h	; �
       
  6935 		.db    0
       
  6936 		.db 0B5h	; �
       
  6937 		.db    0
       
  6938 		.db 0D4h	; �
       
  6939 		.db    0
       
  6940 		.db 0F3h	; �
       
  6941 		.db    0
       
  6942 		.db  11h
       
  6943 		.db    1
       
  6944 		.db  30h	; 0
       
  6945 		.db    1
       
  6946 		.db  4Eh	; N
       
  6947 		.db    1
       
  6948 		.db 0FFh
       
  6949 		.db 0FFh
       
  6950 end_of_7D_table:
       
  6951 		.db  3Ch	; <
       
  6952 		.db    0
       
  6953 
       
  6954 ; =============== S U B	R O U T	I N E =======================================
       
  6955 
       
  6956 
       
  6957 relockFlashBack:			; CODE XREF: seg001:4014j seg001:401Fj ...
       
  6958 		push	af
       
  6959 		xor	a
       
  6960 		nop
       
  6961 		di
       
  6962 		nop
       
  6963 		nop
       
  6964 		im	1
       
  6965 		di
       
  6966 		out	(14h), a
       
  6967 		di
       
  6968 		or	a
       
  6969 		jp	nz, 0
       
  6970 		pop	af
       
  6971 		ret
       
  6972 ; End of function relockFlashBack
       
  6973 
       
  6974 
       
  6975 ; =============== S U B	R O U T	I N E =======================================
       
  6976 
       
  6977 
       
  6978 Page7D_3E10:				; CODE XREF: seg001:70CDp
       
  6979 		ld	(Abackup), a
       
  6980 		ld	a, i
       
  6981 		di
       
  6982 		push	af
       
  6983 		ld	a, (Abackup)
       
  6984 		call	relockFlashBack
       
  6985 		ld	(Abackup), a
       
  6986 		pop	af
       
  6987 		jp	po, p7Dloc_6002
       
  6988 		ei
       
  6989 
       
  6990 p7Dloc_6002:				; CODE XREF: Page7D_3E10+11j
       
  6991 		ld	a, (Abackup)
       
  6992 		ret
       
  6993 ; End of function Page7D_3E10
       
  6994 
       
  6995 
       
  6996 ; =============== S U B	R O U T	I N E =======================================
       
  6997 
       
  6998 
       
  6999 p7Dsub_6006:				; CODE XREF: seg001:5321p
       
  7000 					; p7Dsub_53B3:p7Dloc_53D1p
       
  7001 		push	af
       
  7002 		push	bc
       
  7003 		push	af
       
  7004 		pop	bc
       
  7005 		ld	a, c
       
  7006 		ld	(unk_83EA), a
       
  7007 		pop	bc
       
  7008 		pop	af
       
  7009 		ret
       
  7010 ; End of function p7Dsub_6006
       
  7011 
       
  7012 
       
  7013 ; =============== S U B	R O U T	I N E =======================================
       
  7014 
       
  7015 
       
  7016 p7Dsub_6011:				; CODE XREF: seg001:5332p p7Dsub_53B3+2Fj
       
  7017 		ld	(unk_83EC), a
       
  7018 		push	bc
       
  7019 		ld	b, a
       
  7020 		ld	a, (unk_83EA)
       
  7021 		ld	c, a
       
  7022 		push	bc
       
  7023 		pop	af
       
  7024 		pop	bc
       
  7025 		ld	a, (unk_83EC)
       
  7026 		ret
       
  7027 ; End of function p7Dsub_6011
       
  7028 
       
  7029 
       
  7030 ; =============== S U B	R O U T	I N E =======================================
       
  7031 
       
  7032 
       
  7033 p7Dsub_6021:				; CODE XREF: p7Dsub_4992+1Dp p7Dsub_4AC9+64p ...
       
  7034 		call	p7Dsub_75F5
       
  7035 
       
  7036 p7Dloc_6024:				; CODE XREF: p7Dsub_6021+44j
       
  7037 		ld	a, (appID)
       
  7038 		ld	c, a
       
  7039 		ld	b, 0
       
  7040 		ld	hl, 838Eh
       
  7041 		ld	de, ramStart
       
  7042 		ld	(de), a
       
  7043 		inc	de
       
  7044 		ldir
       
  7045 		call	p7Dsub_607A
       
  7046 		push	af
       
  7047 		ld	a, (ramStart)
       
  7048 		ld	c, a
       
  7049 		ld	b, 0
       
  7050 		ld	hl, 8001h
       
  7051 		ld	de, appID
       
  7052 		ld	(de), a
       
  7053 		inc	de
       
  7054 		ldir
       
  7055 		pop	af
       
  7056 		ret	c
       
  7057 		call	p7Dsub_6067
       
  7058 		jr	nz, p7Dloc_6053
       
  7059 		or	a
       
  7060 		jp	p7Dloc_61A4
       
  7061 ; ---------------------------------------------------------------------------
       
  7062 
       
  7063 p7Dloc_6053:				; CODE XREF: p7Dsub_6021+2Cj
       
  7064 		push	af
       
  7065 		ld	a, (ramStart)
       
  7066 		ld	c, a
       
  7067 		ld	b, 0
       
  7068 		ld	hl, 8001h
       
  7069 		ld	de, appID
       
  7070 		ld	(de), a
       
  7071 		inc	de
       
  7072 		ldir
       
  7073 		pop	af
       
  7074 		jr	p7Dloc_6024
       
  7075 ; End of function p7Dsub_6021
       
  7076 
       
  7077 
       
  7078 ; =============== S U B	R O U T	I N E =======================================
       
  7079 
       
  7080 
       
  7081 p7Dsub_6067:				; CODE XREF: p7Dsub_6021+29p
       
  7082 		ld	de, OP2
       
  7083 		ld	hl, appID
       
  7084 		ld	a, (de)
       
  7085 		ld	c, (hl)
       
  7086 		cp	c
       
  7087 		ret	nz
       
  7088 		ld	b, c
       
  7089 
       
  7090 p7Dloc_6072:				; CODE XREF: p7Dsub_6067+10j
       
  7091 		inc	hl
       
  7092 		inc	de
       
  7093 		ld	a, (de)
       
  7094 		cp	(hl)
       
  7095 		ret	nz
       
  7096 		djnz	p7Dloc_6072
       
  7097 		ret
       
  7098 ; End of function p7Dsub_6067
       
  7099 
       
  7100 
       
  7101 ; =============== S U B	R O U T	I N E =======================================
       
  7102 
       
  7103 
       
  7104 p7Dsub_607A:				; CODE XREF: p7Dsub_6021+13p p7Dsub_607A+19j ...
       
  7105 		ld	de, appSearchPage
       
  7106 		ld	a, (de)
       
  7107 		or	a
       
  7108 		jr	z, locret_60E4
       
  7109 		dec	a
       
  7110 		ld	(de), a
       
  7111 		cp	7
       
  7112 		jr	nz, p7Dloc_608A
       
  7113 		scf
       
  7114 		jr	locret_60E4
       
  7115 ; ---------------------------------------------------------------------------
       
  7116 
       
  7117 p7Dloc_608A:				; CODE XREF: p7Dsub_607A+Bj
       
  7118 		ld	a, (appSearchPage)
       
  7119 		ld	hl, 4000h
       
  7120 		call	Page0Call_3E31
       
  7121 		jr	nz, p7Dsub_607A
       
  7122 		ld	de, 8010h
       
  7123 		or	a
       
  7124 		rst	28h
       
  7125 ; ---------------------------------------------------------------------------
       
  7126 		.dw 8075h
       
  7127 ; ---------------------------------------------------------------------------
       
  7128 		jr	nz, p7Dsub_607A
       
  7129 		ld	a, (appSearchPage)
       
  7130 		inc	hl
       
  7131 		rst	28h
       
  7132 ; ---------------------------------------------------------------------------
       
  7133 		.dw 805Ah
       
  7134 ; ---------------------------------------------------------------------------
       
  7135 		ld	a, (appSearchPage)
       
  7136 		rst	28h
       
  7137 ; ---------------------------------------------------------------------------
       
  7138 		.dw 8051h
       
  7139 ; ---------------------------------------------------------------------------
       
  7140 		or	a
       
  7141 		jr	z, p7Dsub_607A
       
  7142 		inc	a
       
  7143 		jr	z, p7Dsub_607A
       
  7144 		ld	a, (appSearchPage)
       
  7145 		push	hl
       
  7146 		push	bc
       
  7147 		call	p7Dsub_5E31
       
  7148 		call	Page7D_2B5C
       
  7149 		jr	z, p7Dloc_60C2
       
  7150 		pop	bc
       
  7151 		pop	hl
       
  7152 		jr	p7Dsub_607A
       
  7153 ; ---------------------------------------------------------------------------
       
  7154 
       
  7155 p7Dloc_60C2:				; CODE XREF: p7Dsub_607A+42j
       
  7156 		call	ZeroOP2
       
  7157 		pop	bc
       
  7158 		pop	hl
       
  7159 		ld	a, b
       
  7160 		or	a
       
  7161 		jr	nz, p7Dloc_60D2
       
  7162 		xor	a
       
  7163 		ld	a, c
       
  7164 		ld	e, 9
       
  7165 		sub	e
       
  7166 		jr	c, p7Dloc_60D5
       
  7167 
       
  7168 p7Dloc_60D2:				; CODE XREF: p7Dsub_607A+4Fj
       
  7169 		ld	bc, 8
       
  7170 
       
  7171 p7Dloc_60D5:				; CODE XREF: p7Dsub_607A+56j
       
  7172 		ld	a, c
       
  7173 		ld	(OP2), a
       
  7174 		ld	a, (appSearchPage)
       
  7175 		ld	de, 8484h
       
  7176 		rst	28h
       
  7177 ; ---------------------------------------------------------------------------
       
  7178 		.dw 8054h
       
  7179 ; ---------------------------------------------------------------------------
       
  7180 		scf
       
  7181 		ccf
       
  7182 
       
  7183 locret_60E4:				; CODE XREF: p7Dsub_607A+5j p7Dsub_607A+Ej
       
  7184 		ret
       
  7185 ; End of function p7Dsub_607A
       
  7186 
       
  7187 ; ---------------------------------------------------------------------------
       
  7188 
       
  7189 FindAppUp:
       
  7190 		ld	a, 1
       
  7191 		jr	p7Dloc_60EA
       
  7192 ; ---------------------------------------------------------------------------
       
  7193 
       
  7194 FindAppDn:
       
  7195 		xor	a
       
  7196 
       
  7197 p7Dloc_60EA:				; CODE XREF: seg001:60E7j
       
  7198 		ld	bc, 0
       
  7199 		push	bc
       
  7200 		call	OP1ToOP3
       
  7201 		push	af
       
  7202 		ld	a, (unk_9C87)
       
  7203 		cp	69h ; 'i'
       
  7204 		call	nz, p7Dsub_7BA4
       
  7205 		call	p7Dsub_75F5
       
  7206 		pop	af
       
  7207 
       
  7208 p7Dloc_60FE:				; CODE XREF: seg001:611Aj seg001:6121j ...
       
  7209 		push	af
       
  7210 		call	p7Dsub_6388
       
  7211 		pop	hl
       
  7212 		ld	a, h
       
  7213 		jr	c, p7Dloc_6140
       
  7214 		push	af
       
  7215 		ld	a, (unk_9C87)
       
  7216 		cp	69h ; 'i'
       
  7217 		ld	a, (appSearchPage)
       
  7218 		call	nz, p7Dsub_7BAF
       
  7219 		pop	af
       
  7220 		call	p7Dsub_6172
       
  7221 		jr	c, p7Dloc_612E
       
  7222 		bit	3, c
       
  7223 		jr	nz, p7Dloc_60FE
       
  7224 		pop	bc
       
  7225 		inc	b
       
  7226 		push	bc
       
  7227 		bit	0, a
       
  7228 		jr	nz, p7Dloc_60FE
       
  7229 		bit	1, a
       
  7230 		jr	z, p7Dloc_6163
       
  7231 		call	p7Dloc_6177
       
  7232 		jr	c, p7Dloc_6165
       
  7233 		jr	p7Dloc_60FE
       
  7234 ; ---------------------------------------------------------------------------
       
  7235 
       
  7236 p7Dloc_612E:				; CODE XREF: seg001:6116j
       
  7237 		pop	bc
       
  7238 		inc	c
       
  7239 		push	bc
       
  7240 		bit	0, a
       
  7241 		jr	z, p7Dloc_60FE
       
  7242 		bit	1, a
       
  7243 		jr	z, p7Dloc_6163
       
  7244 		call	p7Dloc_6177
       
  7245 		jr	c, p7Dloc_60FE
       
  7246 		jr	p7Dloc_6165
       
  7247 ; ---------------------------------------------------------------------------
       
  7248 
       
  7249 p7Dloc_6140:				; CODE XREF: seg001:6104j
       
  7250 		call	OP3ToOP1
       
  7251 		res	0, a
       
  7252 		sub	2
       
  7253 		pop	bc
       
  7254 		push	af
       
  7255 		ld	a, (unk_8497)
       
  7256 		ld	d, a
       
  7257 		xor	a
       
  7258 		ld	(unk_8497), a
       
  7259 		ld	(unk_8481), a
       
  7260 		ld	a, (unk_9C87)
       
  7261 		cp	1
       
  7262 		ld	a, 69h ; 'i'
       
  7263 		jr	nz, p7Dloc_615E
       
  7264 		xor	a
       
  7265 
       
  7266 p7Dloc_615E:				; CODE XREF: seg001:615Bj
       
  7267 		ld	(unk_9C87), a
       
  7268 		pop	af
       
  7269 		ret
       
  7270 ; ---------------------------------------------------------------------------
       
  7271 
       
  7272 p7Dloc_6163:				; CODE XREF: seg001:6125j seg001:6137j
       
  7273 		set	1, a
       
  7274 
       
  7275 p7Dloc_6165:				; CODE XREF: seg001:612Aj seg001:613Ej
       
  7276 		call	OP2ToOP3
       
  7277 		push	af
       
  7278 		ld	a, (appSearchPage)
       
  7279 		ld	(unk_8497), a
       
  7280 		pop	af
       
  7281 		jr	p7Dloc_60FE
       
  7282 
       
  7283 ; =============== S U B	R O U T	I N E =======================================
       
  7284 
       
  7285 
       
  7286 p7Dsub_6172:				; CODE XREF: seg001:6113p p7Dsub_6186+7p	...
       
  7287 		ld	de, 8480h
       
  7288 		jr	p7Dloc_617A
       
  7289 ; ---------------------------------------------------------------------------
       
  7290 
       
  7291 p7Dloc_6177:				; CODE XREF: seg001:6127p seg001:6139p
       
  7292 		ld	de, 8496h
       
  7293 
       
  7294 p7Dloc_617A:				; CODE XREF: p7Dsub_6172+3j
       
  7295 		push	af
       
  7296 		ld	hl, 848Bh
       
  7297 		ld	b, 8
       
  7298 		call	Page0Call_3E3D
       
  7299 		pop	hl
       
  7300 		ld	a, h
       
  7301 		ret
       
  7302 ; End of function p7Dsub_6172
       
  7303 
       
  7304 
       
  7305 ; =============== S U B	R O U T	I N E =======================================
       
  7306 
       
  7307 
       
  7308 p7Dsub_6186:				; CODE XREF: p7Dsub_6428+3p p7Dsub_7B41+21p
       
  7309 		call	p7Dsub_75F5
       
  7310 
       
  7311 p7Dloc_6189:				; CODE XREF: p7Dsub_6186+Cj
       
  7312 		call	p7Dsub_638B
       
  7313 		ret	c
       
  7314 		call	p7Dsub_6172
       
  7315 		bit	3, c
       
  7316 		jr	z, p7Dloc_6189
       
  7317 		jr	p7Dloc_61A4
       
  7318 ; ---------------------------------------------------------------------------
       
  7319 
       
  7320 FindApp:				; CODE XREF: seg001:62CEp
       
  7321 		call	p7Dsub_75F5
       
  7322 
       
  7323 p7Dloc_6199:				; CODE XREF: p7Dsub_6186+1Cj
       
  7324 		call	p7Dsub_6388
       
  7325 		ret	c
       
  7326 		call	p7Dsub_6172
       
  7327 		bit	3, c
       
  7328 		jr	z, p7Dloc_6199
       
  7329 
       
  7330 p7Dloc_61A4:				; CODE XREF: seg001:5882p p7Dsub_6021+2Fj ...
       
  7331 		ld	a, (appSearchPage)
       
  7332 		or	a
       
  7333 		push	bc
       
  7334 		ld	de, 8070h
       
  7335 		ld	hl, 4000h
       
  7336 		push	af
       
  7337 		rst	28h
       
  7338 ; ---------------------------------------------------------------------------
       
  7339 		.dw 8075h
       
  7340 ; ---------------------------------------------------------------------------
       
  7341 		pop	af
       
  7342 		inc	hl
       
  7343 		push	af
       
  7344 		rst	28h
       
  7345 ; ---------------------------------------------------------------------------
       
  7346 		.dw 805Ah
       
  7347 ; ---------------------------------------------------------------------------
       
  7348 		pop	af
       
  7349 		pop	bc
       
  7350 		ret
       
  7351 ; End of function p7Dsub_6186
       
  7352 
       
  7353 ; ---------------------------------------------------------------------------
       
  7354 
       
  7355 p7Dloc_61BC:				; CODE XREF: seg001:6363p
       
  7356 		call	Page0Call_2D2D
       
  7357 		res	1, (iy+5)
       
  7358 		push	af
       
  7359 		call	Page0Call_3CFF
       
  7360 		pop	af
       
  7361 		push	af
       
  7362 		ld	hl, 4000h
       
  7363 		ld	de, 8040h
       
  7364 		rst	28h
       
  7365 ; ---------------------------------------------------------------------------
       
  7366 		.dw 8075h
       
  7367 ; ---------------------------------------------------------------------------
       
  7368 		inc	hl
       
  7369 		pop	af
       
  7370 		push	af
       
  7371 		rst	28h
       
  7372 ; ---------------------------------------------------------------------------
       
  7373 		.dw 805Ah
       
  7374 ; ---------------------------------------------------------------------------
       
  7375 		pop	af
       
  7376 		push	af
       
  7377 		call	p7Dsub_5CFF
       
  7378 		ld	hl, MD5Buffer
       
  7379 		or	a
       
  7380 		adc	hl, bc
       
  7381 		ld	(hl), 0
       
  7382 		ld	a, 24h ; '$'
       
  7383 		sub	c
       
  7384 		ld	l, a
       
  7385 		ld	h, 5
       
  7386 		ld	(penCol), hl
       
  7387 		ld	hl, MD5Buffer
       
  7388 		call	Page0Call_3D4D
       
  7389 		bit	1, (iy+35h)
       
  7390 		jr	z, p7Dloc_6201
       
  7391 		ld	a, 50h ; 'P'
       
  7392 		call	Page0Call_3C45
       
  7393 		jr	z, p7Dloc_620C
       
  7394 
       
  7395 p7Dloc_6201:				; CODE XREF: seg001:61F8j
       
  7396 		ld	hl, aCCopyright1998-2
       
  7397 		ld	de, tempSwapArea
       
  7398 		ld	bc, 19h
       
  7399 		ldir
       
  7400 
       
  7401 p7Dloc_620C:				; CODE XREF: seg001:61FFj
       
  7402 		ld	hl, tempSwapArea
       
  7403 		call	p7Dsub_62B3
       
  7404 		ld	hl, aTexasInstrumentsInc-2
       
  7405 		call	p7Dsub_62B3
       
  7406 		pop	af
       
  7407 		push	af
       
  7408 		call	p7Dloc_54A0
       
  7409 		jr	nz, p7Dloc_6270
       
  7410 		pop	af
       
  7411 		push	af
       
  7412 		call	Page7D_2CA0
       
  7413 		jr	z, p7Dloc_6237
       
  7414 		ld	hl, aExpiredOn-2
       
  7415 		ld	a, 51h ; 'Q'
       
  7416 		bit	1, (iy+35h)
       
  7417 		call	nz, Page0Call_3C45
       
  7418 		call	p7Dsub_62B3
       
  7419 		jr	p7Dloc_6246
       
  7420 ; ---------------------------------------------------------------------------
       
  7421 
       
  7422 p7Dloc_6237:				; CODE XREF: seg001:6224j
       
  7423 		ld	hl, aExpirationDate-2
       
  7424 		ld	a, 52h ; 'R'
       
  7425 		bit	1, (iy+35h)
       
  7426 		call	nz, Page0Call_3C45
       
  7427 		call	p7Dsub_62B3
       
  7428 
       
  7429 p7Dloc_6246:				; CODE XREF: seg001:6235j
       
  7430 		pop	af
       
  7431 		push	af
       
  7432 		call	p7Dloc_54A0
       
  7433 		call	p7Dloc_59B3
       
  7434 		push	de
       
  7435 		push	hl
       
  7436 		push	bc
       
  7437 		pop	hl
       
  7438 		call	p7Dsub_598E
       
  7439 		ld	a, (p7Dloc_6385)
       
  7440 		call	Page0Call_3D47
       
  7441 		pop	hl
       
  7442 		call	p7Dsub_598E
       
  7443 		ld	a, (p7Dloc_6385)
       
  7444 		call	Page0Call_3D47
       
  7445 		pop	hl
       
  7446 		call	p7Dsub_598E
       
  7447 		pop	af
       
  7448 		push	af
       
  7449 		call	Page7D_2CA0
       
  7450 		jr	z, p7Dloc_629B
       
  7451 
       
  7452 p7Dloc_6270:				; CODE XREF: seg001:621Dj
       
  7453 		pop	af
       
  7454 		push	af
       
  7455 		call	p7Dloc_543D
       
  7456 		jr	nz, p7Dloc_629B
       
  7457 		ld	hl, aTrialsRemaining-2
       
  7458 		ld	a, 53h ; 'S'
       
  7459 		bit	1, (iy+35h)
       
  7460 		call	nz, Page0Call_3C45
       
  7461 		call	p7Dsub_62B3
       
  7462 		ld	a, (OP1)
       
  7463 		ld	hl, OP1
       
  7464 		call	p7Dsub_650D
       
  7465 		ld	a, (OP1)
       
  7466 		call	Page0Call_3D47
       
  7467 		ld	a, (OP1+1)
       
  7468 		call	Page0Call_3D47
       
  7469 
       
  7470 p7Dloc_629B:				; CODE XREF: seg001:626Ej seg001:6275j
       
  7471 		pop	af
       
  7472 		ld	hl, aPressAnyKey___-2
       
  7473 		ld	a, 54h ; 'T'
       
  7474 		bit	1, (iy+35h)
       
  7475 		call	nz, Page0Call_3C45
       
  7476 		call	p7Dsub_62B3
       
  7477 		ei
       
  7478 		call	Page0Call_3F21
       
  7479 		call	Page0Call_3837
       
  7480 		ret
       
  7481 
       
  7482 ; =============== S U B	R O U T	I N E =======================================
       
  7483 
       
  7484 
       
  7485 p7Dsub_62B3:				; CODE XREF: seg001:620Fp seg001:6215p ...
       
  7486 		push	hl
       
  7487 		call	ldHLind
       
  7488 		ld	(penCol), hl
       
  7489 		pop	hl
       
  7490 		inc	hl
       
  7491 		inc	hl
       
  7492 		call	Page0Call_3D4D
       
  7493 		ret
       
  7494 ; End of function p7Dsub_62B3
       
  7495 
       
  7496 ; ---------------------------------------------------------------------------
       
  7497 
       
  7498 Page7D_2CB2:
       
  7499 		call	Page0Call_2E65
       
  7500 		ld	hl, progToEdit
       
  7501 		ld	de, 8479h
       
  7502 		call	Mov8B
       
  7503 		xor	a
       
  7504 		call	FindApp
       
  7505 		jr	c, p7Dloc_6345
       
  7506 		push	hl
       
  7507 		push	af
       
  7508 		call	FillBasePageTable
       
  7509 		call	Page0Call_3F09
       
  7510 		di
       
  7511 		push	af
       
  7512 		ld	a, 1
       
  7513 		nop
       
  7514 		di
       
  7515 		nop
       
  7516 		nop
       
  7517 		im	1
       
  7518 		di
       
  7519 		out	(14h), a
       
  7520 		di
       
  7521 		call	checkForFlashTrickery
       
  7522 		pop	af
       
  7523 		pop	af
       
  7524 		push	af
       
  7525 		call	p7Dsub_5E31
       
  7526 		call	Page7D_2B5C
       
  7527 		jr	nz, p7Dloc_631D
       
  7528 		pop	af
       
  7529 		push	af
       
  7530 		rst	28h
       
  7531 ; ---------------------------------------------------------------------------
       
  7532 		.dw 80A8h
       
  7533 ; ---------------------------------------------------------------------------
       
  7534 		jr	z, p7Dloc_6305
       
  7535 		pop	af
       
  7536 		push	af
       
  7537 		rst	28h
       
  7538 ; ---------------------------------------------------------------------------
       
  7539 		.dw 8096h
       
  7540 ; ---------------------------------------------------------------------------
       
  7541 		jr	z, p7Dloc_6348
       
  7542 
       
  7543 p7Dloc_6305:				; CODE XREF: seg001:62FCj
       
  7544 		pop	af
       
  7545 		push	af
       
  7546 		ld	hl, 4000h
       
  7547 		call	p7Dsub_5E59
       
  7548 		call	p7Dsub_52D9
       
  7549 		jr	c, p7Dloc_6314
       
  7550 		jr	z, p7Dloc_6348
       
  7551 
       
  7552 p7Dloc_6314:				; CODE XREF: seg001:6310j
       
  7553 		pop	af
       
  7554 		push	af
       
  7555 		call	p7Dsub_5E78
       
  7556 		jr	c, p7Dloc_6348
       
  7557 		jr	nz, p7Dloc_6348
       
  7558 
       
  7559 p7Dloc_631D:				; CODE XREF: seg001:62F5j
       
  7560 		pop	af
       
  7561 		pop	hl
       
  7562 		push	af
       
  7563 		call	p7Dsub_5E31
       
  7564 		call	Chk_Batt_Low
       
  7565 		jr	z, p7Dloc_6344
       
  7566 		rst	28h
       
  7567 ; ---------------------------------------------------------------------------
       
  7568 		.dw 80A8h
       
  7569 ; ---------------------------------------------------------------------------
       
  7570 		jr	nz, p7Dloc_6332
       
  7571 		pop	af
       
  7572 		push	af
       
  7573 		call	p7Dsub_576D
       
  7574 
       
  7575 p7Dloc_6332:				; CODE XREF: seg001:632Bj
       
  7576 		pop	af
       
  7577 		call	Page7D_2BE6
       
  7578 		call	Page0Call_2E65
       
  7579 		call	Page0Call_3E8B
       
  7580 		ld	hl, 0
       
  7581 		ld	(curRow), hl
       
  7582 		jr	p7Dloc_6345
       
  7583 ; ---------------------------------------------------------------------------
       
  7584 
       
  7585 p7Dloc_6344:				; CODE XREF: seg001:6326j
       
  7586 		pop	af
       
  7587 
       
  7588 p7Dloc_6345:				; CODE XREF: seg001:62D1j seg001:6342j
       
  7589 		jp	Page0Call_2539
       
  7590 ; ---------------------------------------------------------------------------
       
  7591 
       
  7592 p7Dloc_6348:				; CODE XREF: seg001:6303j seg001:6312j ...
       
  7593 		pop	af
       
  7594 		ld	(appPage), a
       
  7595 		call	p7Dsub_6FC0
       
  7596 		jp	nz, Page0Call_2555
       
  7597 		call	NZIf83Plus
       
  7598 		call	z, p7Dsub_6FF9
       
  7599 		ld	a, (appPage)
       
  7600 		call	p7Dloc_5C2D
       
  7601 		jr	z, p7Dloc_6366
       
  7602 		ld	a, (appPage)
       
  7603 		call	p7Dloc_61BC
       
  7604 
       
  7605 p7Dloc_6366:				; CODE XREF: seg001:635Ej
       
  7606 		call	relockFlashBack
       
  7607 		ld	a, (appPage)
       
  7608 		pop	hl
       
  7609 		ei
       
  7610 		ret
       
  7611 ; ---------------------------------------------------------------------------
       
  7612 		.dw 0D14h
       
  7613 aCCopyright1998:.asc '(c) Copyright 1998',0
       
  7614 ; ---------------------------------------------------------------------------
       
  7615 
       
  7616 p7Dloc_6384:
       
  7617 		nop
       
  7618 
       
  7619 p7Dloc_6385:				; DATA XREF: seg001:6255r seg001:625Fr
       
  7620 		cpl
       
  7621 		nop
       
  7622 		nop
       
  7623 
       
  7624 ; =============== S U B	R O U T	I N E =======================================
       
  7625 
       
  7626 
       
  7627 p7Dsub_6388:				; CODE XREF: seg001:60FFp
       
  7628 					; p7Dsub_6186:p7Dloc_6199p
       
  7629 		scf
       
  7630 		jr	p7Dloc_638D
       
  7631 ; End of function p7Dsub_6388
       
  7632 
       
  7633 
       
  7634 ; =============== S U B	R O U T	I N E =======================================
       
  7635 
       
  7636 
       
  7637 p7Dsub_638B:				; CODE XREF: seg001:587Ap
       
  7638 					; p7Dsub_6186:p7Dloc_6189p ...
       
  7639 		scf
       
  7640 		ccf
       
  7641 
       
  7642 p7Dloc_638D:				; CODE XREF: p7Dsub_6388+1j
       
  7643 		push	af
       
  7644 
       
  7645 p7Dloc_638E:				; CODE XREF: p7Dsub_638B+1Dj p7Dsub_638B+32j ...
       
  7646 		ld	de, appSearchPage
       
  7647 		ld	a, (de)
       
  7648 		dec	a
       
  7649 		ld	(de), a
       
  7650 		cp	7
       
  7651 		jr	nz, p7Dloc_639B
       
  7652 		pop	af
       
  7653 		scf
       
  7654 		ret
       
  7655 ; ---------------------------------------------------------------------------
       
  7656 
       
  7657 p7Dloc_639B:				; CODE XREF: p7Dsub_638B+Bj
       
  7658 		ld	a, (unk_9C87)
       
  7659 		cp	69h ; 'i'
       
  7660 		jr	nz, p7Dloc_63C8
       
  7661 		ld	a, (appSearchPage)
       
  7662 		call	p7Dsub_7BB5
       
  7663 		jr	z, p7Dloc_638E
       
  7664 		ld	a, (appSearchPage)
       
  7665 		ld	hl, 4000h
       
  7666 
       
  7667 p7Dloc_63B0:
       
  7668 		ld	de, 8040h
       
  7669 		rst	28h
       
  7670 ; ---------------------------------------------------------------------------
       
  7671 		.dw 8075h
       
  7672 ; ---------------------------------------------------------------------------
       
  7673 		jr	z, p7Dloc_63BF
       
  7674 
       
  7675 p7Dloc_63B8:
       
  7676 		ld	a, 1
       
  7677 		ld	(unk_9C87), a
       
  7678 		jr	p7Dloc_638E
       
  7679 ; ---------------------------------------------------------------------------
       
  7680 
       
  7681 p7Dloc_63BF:				; CODE XREF: p7Dsub_638B+2Bj
       
  7682 		inc	hl
       
  7683 		ld	a, (appSearchPage)
       
  7684 		rst	28h
       
  7685 ; ---------------------------------------------------------------------------
       
  7686 		.dw 805Ah
       
  7687 ; ---------------------------------------------------------------------------
       
  7688 		jr	p7Dloc_6407
       
  7689 ; ---------------------------------------------------------------------------
       
  7690 
       
  7691 p7Dloc_63C8:				; CODE XREF: p7Dsub_638B+15j
       
  7692 		ld	a, (de)
       
  7693 		ld	hl, 4000h
       
  7694 		call	Page0Call_3E31
       
  7695 		jr	nz, p7Dloc_638E
       
  7696 		ld	de, 8040h
       
  7697 		or	a
       
  7698 		rst	28h
       
  7699 ; ---------------------------------------------------------------------------
       
  7700 		.dw 8075h
       
  7701 ; ---------------------------------------------------------------------------
       
  7702 		jr	nz, p7Dloc_638E
       
  7703 		inc	hl
       
  7704 		ld	a, (appSearchPage)
       
  7705 		push	af
       
  7706 		rst	28h
       
  7707 ; ---------------------------------------------------------------------------
       
  7708 		.dw 805Ah
       
  7709 ; ---------------------------------------------------------------------------
       
  7710 		pop	af
       
  7711 		rst	28h
       
  7712 ; ---------------------------------------------------------------------------
       
  7713 		.dw 8051h
       
  7714 ; ---------------------------------------------------------------------------
       
  7715 		or	a
       
  7716 		jr	z, p7Dloc_638E
       
  7717 		inc	a
       
  7718 		jr	z, p7Dloc_638E
       
  7719 		ld	a, (appSearchPage)
       
  7720 		push	hl
       
  7721 		push	bc
       
  7722 		call	p7Dsub_5E31
       
  7723 		pop	bc
       
  7724 		pop	hl
       
  7725 		pop	af
       
  7726 		push	af
       
  7727 		ld	a, (appSearchPage)
       
  7728 		jr	nc, p7Dloc_6402
       
  7729 		call	p7Dsub_53B3
       
  7730 		jr	p7Dloc_6405
       
  7731 ; ---------------------------------------------------------------------------
       
  7732 
       
  7733 p7Dloc_6402:				; CODE XREF: p7Dsub_638B+70j
       
  7734 		call	Page7D_2B5C
       
  7735 
       
  7736 p7Dloc_6405:				; CODE XREF: p7Dsub_638B+75j
       
  7737 		jr	nz, p7Dloc_638E
       
  7738 
       
  7739 p7Dloc_6407:				; CODE XREF: p7Dsub_638B+3Bj
       
  7740 		pop	af
       
  7741 		push	hl
       
  7742 		push	bc
       
  7743 		call	ZeroOP2
       
  7744 		pop	bc
       
  7745 		pop	hl
       
  7746 		ld	a, b
       
  7747 		or	a
       
  7748 		jr	nz, p7Dloc_6419
       
  7749 		ld	a, c
       
  7750 		ld	e, 9
       
  7751 		sub	e
       
  7752 		jr	c, p7Dloc_641C
       
  7753 
       
  7754 p7Dloc_6419:				; CODE XREF: p7Dsub_638B+86j
       
  7755 		ld	bc, 8
       
  7756 
       
  7757 p7Dloc_641C:				; CODE XREF: p7Dsub_638B+8Cj
       
  7758 		ld	de, 8484h
       
  7759 		ld	a, (appSearchPage)
       
  7760 		rst	28h
       
  7761 ; ---------------------------------------------------------------------------
       
  7762 		.dw 8054h
       
  7763 ; ---------------------------------------------------------------------------
       
  7764 		scf
       
  7765 		ccf
       
  7766 		ret
       
  7767 ; End of function p7Dsub_638B
       
  7768 
       
  7769 
       
  7770 ; =============== S U B	R O U T	I N E =======================================
       
  7771 
       
  7772 
       
  7773 p7Dsub_6428:				; CODE XREF: p7Dsub_75B8+21p
       
  7774 		push	hl
       
  7775 		push	bc
       
  7776 		push	de
       
  7777 		call	p7Dsub_6186
       
  7778 		jr	c, p7Dloc_6468
       
  7779 		ld	(appInfo+1), a
       
  7780 		call	p7Dsub_7CB2
       
  7781 		jr	z, p7Dloc_6462
       
  7782 		call	p7Dsub_7124
       
  7783 		jr	z, p7Dloc_644E
       
  7784 		call	OP1ToOP4
       
  7785 		ld	a, 14h
       
  7786 		ld	(OP4), a
       
  7787 		rst	18h
       
  7788 		call	relockFlashBack
       
  7789 		call	Page0Call_2C67
       
  7790 		jr	p7Dloc_646B
       
  7791 ; ---------------------------------------------------------------------------
       
  7792 
       
  7793 p7Dloc_644E:				; CODE XREF: p7Dsub_6428+13j
       
  7794 		ld	de, 5
       
  7795 		ld	a, 2
       
  7796 		ld	(unk_867E), a
       
  7797 		call	Page0Call_2C4F
       
  7798 		call	Page0Call_2C6D
       
  7799 		ld	a, (appInfo)
       
  7800 		or	a
       
  7801 		jr	nz, p7Dloc_6468
       
  7802 
       
  7803 p7Dloc_6462:				; CODE XREF: p7Dsub_6428+Ej
       
  7804 		ld	a, (appInfo+1)
       
  7805 		call	Page7D_2BE6
       
  7806 
       
  7807 p7Dloc_6468:				; CODE XREF: p7Dsub_6428+6j p7Dsub_6428+38j
       
  7808 		call	relockFlashBack
       
  7809 
       
  7810 p7Dloc_646B:				; CODE XREF: p7Dsub_6428+24j
       
  7811 		pop	de
       
  7812 		pop	bc
       
  7813 		pop	hl
       
  7814 		ret
       
  7815 ; End of function p7Dsub_6428
       
  7816 
       
  7817 ; ---------------------------------------------------------------------------
       
  7818 
       
  7819 Page7D_3EE8:
       
  7820 		push	hl
       
  7821 		push	de
       
  7822 		push	bc
       
  7823 		push	af
       
  7824 		push	af
       
  7825 		ld	a, 1
       
  7826 		nop
       
  7827 		di
       
  7828 		nop
       
  7829 		nop
       
  7830 		im	1
       
  7831 		di
       
  7832 		out	(14h), a
       
  7833 		di
       
  7834 		call	checkForFlashTrickery
       
  7835 		pop	af
       
  7836 		ld	hl, 4000h
       
  7837 		call	p7Dsub_4566
       
  7838 		cp	0
       
  7839 		jr	z, p7Dloc_64AE
       
  7840 		ld	hl, 6000h
       
  7841 		call	p7Dsub_4566
       
  7842 		cp	0
       
  7843 		jr	z, p7Dloc_64AE
       
  7844 		cp	8Fh ; '�'
       
  7845 		jr	z, p7Dloc_64A6
       
  7846 		ld	hl, 4000h
       
  7847 		call	p7Dsub_4566
       
  7848 		cp	8Fh ; '�'
       
  7849 		jr	z, p7Dloc_64A6
       
  7850 
       
  7851 p7Dloc_64A6:				; CODE XREF: seg001:649Aj
       
  7852 		ld	b, 0
       
  7853 		ex	de, hl
       
  7854 		call	p7Dsub_456D
       
  7855 		jr	p7Dloc_64CE
       
  7856 ; ---------------------------------------------------------------------------
       
  7857 
       
  7858 p7Dloc_64AE:				; CODE XREF: seg001:648Cj seg001:6496j
       
  7859 		ld	a, h
       
  7860 		xor	20h ; ' '
       
  7861 		ld	h, a
       
  7862 		call	p7Dsub_4566
       
  7863 		cp	8Fh ; '�'
       
  7864 		jr	z, p7Dloc_64C0
       
  7865 		cp	0
       
  7866 		jp	z, p7Dloc_64E1
       
  7867 		jr	p7Dloc_64CE
       
  7868 ; ---------------------------------------------------------------------------
       
  7869 
       
  7870 p7Dloc_64C0:				; CODE XREF: seg001:64B7j
       
  7871 		push	hl
       
  7872 		ld	a, h
       
  7873 		xor	20h ; ' '
       
  7874 		ld	h, a
       
  7875 		call	p7Dsub_457C
       
  7876 		pop	de
       
  7877 		ld	b, 0
       
  7878 		call	p7Dsub_456D
       
  7879 
       
  7880 p7Dloc_64CE:				; CODE XREF: seg001:64ACj seg001:64BEj ...
       
  7881 		pop	af
       
  7882 		cp	0Fh
       
  7883 		jr	nz, p7Dloc_64D8
       
  7884 		call	Page0Call_2B8F
       
  7885 		jr	p7Dloc_64DB
       
  7886 ; ---------------------------------------------------------------------------
       
  7887 
       
  7888 p7Dloc_64D8:				; CODE XREF: seg001:64D1j
       
  7889 		call	Page0Call_2B89
       
  7890 
       
  7891 p7Dloc_64DB:				; CODE XREF: seg001:64D6j
       
  7892 		pop	bc
       
  7893 		pop	de
       
  7894 		pop	hl
       
  7895 		jp	relockFlashBack
       
  7896 ; ---------------------------------------------------------------------------
       
  7897 
       
  7898 p7Dloc_64E1:				; CODE XREF: seg001:64BBj
       
  7899 		ld	hl, 4001h
       
  7900 		ld	de, 6001h
       
  7901 
       
  7902 p7Dloc_64E7:				; CODE XREF: seg001:64F4j
       
  7903 		call	p7Dsub_4566
       
  7904 		cp	0
       
  7905 		jr	z, p7Dloc_64F2
       
  7906 		cp	0FFh
       
  7907 		jr	nz, p7Dloc_64F6
       
  7908 
       
  7909 p7Dloc_64F2:				; CODE XREF: seg001:64ECj
       
  7910 		inc	hl
       
  7911 		ex	de, hl
       
  7912 		jr	p7Dloc_64E7
       
  7913 ; ---------------------------------------------------------------------------
       
  7914 
       
  7915 p7Dloc_64F6:				; CODE XREF: seg001:64F0j
       
  7916 		ld	a, h
       
  7917 		xor	20h ; ' '
       
  7918 		and	0F0h ; '�'
       
  7919 		ld	h, a
       
  7920 		xor	a
       
  7921 		ld	l, a
       
  7922 		call	p7Dsub_457C
       
  7923 		jr	p7Dloc_64CE
       
  7924 
       
  7925 ; =============== S U B	R O U T	I N E =======================================
       
  7926 
       
  7927 
       
  7928 p7Dsub_6503:				; CODE XREF: seg001:5C89p
       
  7929 		ld	a, d
       
  7930 		or	a
       
  7931 		jr	nz, p7Dloc_650A
       
  7932 		call	p7Dsub_651E
       
  7933 
       
  7934 p7Dloc_650A:				; CODE XREF: p7Dsub_6503+2j
       
  7935 		xor	a
       
  7936 		ld	(hl), a
       
  7937 		ret
       
  7938 ; End of function p7Dsub_6503
       
  7939 
       
  7940 
       
  7941 ; =============== S U B	R O U T	I N E =======================================
       
  7942 
       
  7943 
       
  7944 p7Dsub_650D:				; CODE XREF: seg001:628Cp
       
  7945 		call	Page0Call_32E5
       
  7946 		call	p7Dsub_6523
       
  7947 		jr	z, p7Dloc_6519
       
  7948 		add	a, 30h ; '0'
       
  7949 		ld	(hl), a
       
  7950 		inc	hl
       
  7951 
       
  7952 p7Dloc_6519:				; CODE XREF: p7Dsub_650D+6j
       
  7953 		ld	a, b
       
  7954 		call	p7Dsub_6523
       
  7955 		ret	z
       
  7956 ; End of function p7Dsub_650D
       
  7957 
       
  7958 
       
  7959 ; =============== S U B	R O U T	I N E =======================================
       
  7960 
       
  7961 
       
  7962 p7Dsub_651E:				; CODE XREF: p7Dsub_6503+4p
       
  7963 		add	a, 30h ; '0'
       
  7964 		ld	(hl), a
       
  7965 		inc	hl
       
  7966 		ret
       
  7967 ; End of function p7Dsub_651E
       
  7968 
       
  7969 
       
  7970 ; =============== S U B	R O U T	I N E =======================================
       
  7971 
       
  7972 
       
  7973 p7Dsub_6523:				; CODE XREF: p7Dsub_650D+3p p7Dsub_650D+Dp
       
  7974 		or	a
       
  7975 		jr	z, p7Dloc_6529
       
  7976 		ld	d, 1
       
  7977 		ret
       
  7978 ; ---------------------------------------------------------------------------
       
  7979 
       
  7980 p7Dloc_6529:				; CODE XREF: p7Dsub_6523+1j
       
  7981 		ld	e, a
       
  7982 		ld	a, d
       
  7983 		or	a
       
  7984 		ld	a, e
       
  7985 		ret
       
  7986 ; End of function p7Dsub_6523
       
  7987 
       
  7988 
       
  7989 ; =============== S U B	R O U T	I N E =======================================
       
  7990 
       
  7991 
       
  7992 p7Dsub_652E:				; CODE XREF: p7Dsub_662F+22p p7Dsub_662F+28p ...
       
  7993 		push	af
       
  7994 		push	bc
       
  7995 		push	de
       
  7996 		ld	hl, (unk_83A1)
       
  7997 		call	p7Dsub_57C5
       
  7998 		or	a
       
  7999 		adc	hl, de
       
  8000 		call	p7Dsub_57C5
       
  8001 		ld	(unk_83A1), hl
       
  8002 		jr	nc, p7Dloc_654C
       
  8003 		ld	hl, (unk_839F)
       
  8004 		inc	h
       
  8005 		jr	nz, p7Dloc_6549
       
  8006 		inc	l
       
  8007 
       
  8008 p7Dloc_6549:				; CODE XREF: p7Dsub_652E+18j
       
  8009 		ld	(unk_839F), hl
       
  8010 
       
  8011 p7Dloc_654C:				; CODE XREF: p7Dsub_652E+12j
       
  8012 		pop	de
       
  8013 		pop	bc
       
  8014 		pop	af
       
  8015 		ret
       
  8016 ; End of function p7Dsub_652E
       
  8017 
       
  8018 
       
  8019 ; =============== S U B	R O U T	I N E =======================================
       
  8020 
       
  8021 
       
  8022 Page7D_2CE2:				; CODE XREF: seg001:6706p
       
  8023 					; Page7D_2B6E+32p ...
       
  8024 		push	de
       
  8025 		ld	de, 1
       
  8026 		call	Page7D_2CCA
       
  8027 		pop	de
       
  8028 		ret
       
  8029 ; End of function Page7D_2CE2
       
  8030 
       
  8031 
       
  8032 ; =============== S U B	R O U T	I N E =======================================
       
  8033 
       
  8034 
       
  8035 Page7D_2CCA:				; CODE XREF: Page7D_2CE2+4p
       
  8036 					; p7Dsub_662F+58p	...
       
  8037 		push	af
       
  8038 		push	bc
       
  8039 		push	de
       
  8040 		push	de
       
  8041 		ex	de, hl
       
  8042 		ld	de, 4000h
       
  8043 		rst	28h
       
  8044 ; ---------------------------------------------------------------------------
       
  8045 		.dw 804Bh
       
  8046 ; ---------------------------------------------------------------------------
       
  8047 		ld	a, (arcPage)
       
  8048 		add	a, e
       
  8049 		ld	(arcPage), a
       
  8050 		ld	a, e
       
  8051 		ld	de, 4000h
       
  8052 		rst	28h
       
  8053 ; ---------------------------------------------------------------------------
       
  8054 		.dw 8045h
       
  8055 ; ---------------------------------------------------------------------------
       
  8056 		push	hl
       
  8057 		pop	bc
       
  8058 		pop	hl
       
  8059 		or	a
       
  8060 		sbc	hl, bc
       
  8061 		push	hl
       
  8062 		pop	bc
       
  8063 		ld	hl, (arcPtr)
       
  8064 		or	a
       
  8065 		adc	hl, bc
       
  8066 		bit	7, h
       
  8067 		jr	z, p7Dloc_6591
       
  8068 		ld	a, (arcPage)
       
  8069 		inc	a
       
  8070 		ld	(arcPage), a
       
  8071 		ld	bc, 4000h
       
  8072 		or	a
       
  8073 		sbc	hl, bc
       
  8074 
       
  8075 p7Dloc_6591:				; CODE XREF: Page7D_2CCA+29j
       
  8076 		ld	(arcPtr), hl
       
  8077 		pop	de
       
  8078 		pop	bc
       
  8079 		pop	af
       
  8080 		ret
       
  8081 ; End of function Page7D_2CCA
       
  8082 
       
  8083 
       
  8084 ; =============== S U B	R O U T	I N E =======================================
       
  8085 
       
  8086 
       
  8087 p7Dsub_6598:				; CODE XREF: Page7D_2B6Ep
       
  8088 		push	af
       
  8089 		push	bc
       
  8090 		push	hl
       
  8091 		ld	hl, arcPage
       
  8092 		jr	p7Dloc_65A6
       
  8093 ; ---------------------------------------------------------------------------
       
  8094 
       
  8095 p7Dloc_65A0:				; CODE XREF: seg001:65B9p seg001:65F8p
       
  8096 		push	af
       
  8097 		push	bc
       
  8098 		push	hl
       
  8099 		ld	hl, 839Fh
       
  8100 
       
  8101 p7Dloc_65A6:				; CODE XREF: p7Dsub_6598+6j
       
  8102 		xor	a
       
  8103 		ld	b, 4
       
  8104 
       
  8105 p7Dloc_65A9:				; CODE XREF: p7Dsub_6598+13j
       
  8106 		ld	(hl), a
       
  8107 		inc	hl
       
  8108 		djnz	p7Dloc_65A9
       
  8109 		pop	hl
       
  8110 		pop	bc
       
  8111 		pop	af
       
  8112 		ret
       
  8113 ; End of function p7Dsub_6598
       
  8114 
       
  8115 ; ---------------------------------------------------------------------------
       
  8116 
       
  8117 ArcChk:
       
  8118 		push	af
       
  8119 		push	hl
       
  8120 		bit	6, (iy+24h)
       
  8121 		jr	nz, p7Dloc_65F2
       
  8122 		call	p7Dloc_65A0
       
  8123 		ld	(Abackup), a
       
  8124 		ld	a, i
       
  8125 		di
       
  8126 		push	af
       
  8127 		ld	a, (Abackup)
       
  8128 		push	af
       
  8129 		ld	a, 1
       
  8130 		nop
       
  8131 		di
       
  8132 		nop
       
  8133 		nop
       
  8134 		im	1
       
  8135 		di
       
  8136 		out	(14h), a
       
  8137 		di
       
  8138 		call	checkForFlashTrickery
       
  8139 		pop	af
       
  8140 		call	Page7D_2C10
       
  8141 		call	relockFlashBack
       
  8142 		ld	(Abackup), a
       
  8143 		pop	af
       
  8144 		jp	po, p7Dloc_65E5
       
  8145 		ei
       
  8146 
       
  8147 p7Dloc_65E5:				; CODE XREF: seg001:65E1j
       
  8148 		ld	a, (Abackup)
       
  8149 		ld	de, 9C96h
       
  8150 		call	p7Dsub_6621
       
  8151 		set	6, (iy+24h)
       
  8152 
       
  8153 p7Dloc_65F2:				; CODE XREF: seg001:65B7j
       
  8154 		bit	7, (iy+24h)
       
  8155 		jr	nz, p7Dloc_6608
       
  8156 		call	p7Dloc_65A0
       
  8157 		call	p7Dsub_662F
       
  8158 		ld	de, 9C9Ah
       
  8159 		call	p7Dsub_6621
       
  8160 		set	7, (iy+24h)
       
  8161 
       
  8162 p7Dloc_6608:				; CODE XREF: seg001:65F6j
       
  8163 		ld	hl, 9C9Ah
       
  8164 		call	p7Dsub_6626
       
  8165 		ld	de, 83A2h
       
  8166 		ld	hl, 9C99h
       
  8167 		ld	b, 4
       
  8168 		or	a
       
  8169 
       
  8170 p7Dloc_6617:				; CODE XREF: seg001:661Cj
       
  8171 		ld	a, (de)
       
  8172 		adc	a, (hl)
       
  8173 		ld	(de), a
       
  8174 		dec	hl
       
  8175 		dec	de
       
  8176 		djnz	p7Dloc_6617
       
  8177 		pop	hl
       
  8178 		pop	af
       
  8179 		ret
       
  8180 
       
  8181 ; =============== S U B	R O U T	I N E =======================================
       
  8182 
       
  8183 
       
  8184 p7Dsub_6621:				; CODE XREF: seg001:65EBp seg001:6601p
       
  8185 		ld	hl, 839Fh
       
  8186 		jr	p7Dloc_6629
       
  8187 ; End of function p7Dsub_6621
       
  8188 
       
  8189 
       
  8190 ; =============== S U B	R O U T	I N E =======================================
       
  8191 
       
  8192 
       
  8193 p7Dsub_6626:				; CODE XREF: seg001:660Bp
       
  8194 		ld	de, 839Fh
       
  8195 
       
  8196 p7Dloc_6629:				; CODE XREF: p7Dsub_6621+3j
       
  8197 		ld	bc, 4
       
  8198 		ldir
       
  8199 		ret
       
  8200 ; End of function p7Dsub_6626
       
  8201 
       
  8202 
       
  8203 ; =============== S U B	R O U T	I N E =======================================
       
  8204 
       
  8205 
       
  8206 p7Dsub_662F:				; CODE XREF: seg001:65FBp
       
  8207 		call	Page7D_2B56
       
  8208 		inc	b
       
  8209 		ld	a, 8
       
  8210 		ld	de, 0
       
  8211 
       
  8212 p7Dloc_6638:				; CODE XREF: p7Dsub_662F+33j p7Dsub_662F+38j
       
  8213 		call	p7Dsub_7BD4
       
  8214 		cp	b
       
  8215 		ret	nc
       
  8216 		ld	hl, 4000h
       
  8217 		push	af
       
  8218 		call	Page7D_2CD0
       
  8219 		cp	0FEh ; '�'
       
  8220 		jr	z, p7Dloc_6664
       
  8221 		cp	0FFh
       
  8222 		jr	nz, p7Dloc_665C
       
  8223 		pop	af
       
  8224 		push	af
       
  8225 		call	Page7D_2B74
       
  8226 		call	p7Dsub_652E
       
  8227 		ld	de, 1
       
  8228 		call	p7Dsub_652E
       
  8229 		jr	p7Dloc_6664
       
  8230 ; ---------------------------------------------------------------------------
       
  8231 
       
  8232 p7Dloc_665C:				; CODE XREF: p7Dsub_662F+1Bj
       
  8233 		cp	0F0h ; '�'
       
  8234 		jr	z, p7Dloc_6669
       
  8235 		pop	af
       
  8236 		inc	a
       
  8237 		jr	p7Dloc_6638
       
  8238 ; ---------------------------------------------------------------------------
       
  8239 
       
  8240 p7Dloc_6664:				; CODE XREF: p7Dsub_662F+17j p7Dsub_662F+2Bj ...
       
  8241 		pop	af
       
  8242 		add	a, 4
       
  8243 		jr	p7Dloc_6638
       
  8244 ; ---------------------------------------------------------------------------
       
  8245 
       
  8246 p7Dloc_6669:				; CODE XREF: p7Dsub_662F+2Fj
       
  8247 		inc	hl
       
  8248 		pop	af
       
  8249 		push	af
       
  8250 
       
  8251 p7Dloc_666C:				; CODE XREF: p7Dsub_662F+65j
       
  8252 		push	af
       
  8253 		push	hl
       
  8254 		ld	c, 0F0h	; '�'
       
  8255 		push	bc
       
  8256 		call	Page7D_2B6E
       
  8257 		push	bc
       
  8258 		pop	de
       
  8259 		pop	bc
       
  8260 		jr	z, p7Dloc_6696
       
  8261 		inc	sp
       
  8262 		inc	sp
       
  8263 		inc	sp
       
  8264 		inc	sp
       
  8265 		ld	(arcPage), a
       
  8266 		ld	(arcPtr), hl
       
  8267 		inc	de
       
  8268 		inc	de
       
  8269 		inc	de
       
  8270 		push	de
       
  8271 		call	Page7D_2CCA
       
  8272 		pop	de
       
  8273 		call	p7Dsub_652E
       
  8274 		ld	a, (arcPage)
       
  8275 		ld	hl, (arcPtr)
       
  8276 		jr	p7Dloc_666C
       
  8277 ; ---------------------------------------------------------------------------
       
  8278 
       
  8279 p7Dloc_6696:				; CODE XREF: p7Dsub_662F+48j
       
  8280 		pop	hl
       
  8281 		pop	af
       
  8282 		ld	c, 0FFh
       
  8283 		push	bc
       
  8284 		call	Page7D_2B6E
       
  8285 		pop	bc
       
  8286 		jr	z, p7Dloc_66A7
       
  8287 		call	Page7D_2B74
       
  8288 		call	p7Dsub_652E
       
  8289 
       
  8290 p7Dloc_66A7:				; CODE XREF: p7Dsub_662F+70j
       
  8291 		jr	p7Dloc_6664
       
  8292 ; End of function p7Dsub_662F
       
  8293 
       
  8294 
       
  8295 ; =============== S U B	R O U T	I N E =======================================
       
  8296 
       
  8297 
       
  8298 p7Dsub_66A9:				; CODE XREF: seg001:6723p
       
  8299 		push	af
       
  8300 		push	bc
       
  8301 		push	hl
       
  8302 		ld	bc, (freeArcBlock)
       
  8303 		or	a
       
  8304 		sbc	hl, bc
       
  8305 		jr	c, p7Dloc_66BB
       
  8306 		or	a
       
  8307 		adc	hl, bc
       
  8308 		ld	(freeArcBlock), hl
       
  8309 
       
  8310 p7Dloc_66BB:				; CODE XREF: p7Dsub_66A9+Aj
       
  8311 		pop	hl
       
  8312 		pop	bc
       
  8313 		pop	af
       
  8314 		ret
       
  8315 ; End of function p7Dsub_66A9
       
  8316 
       
  8317 ; ---------------------------------------------------------------------------
       
  8318 
       
  8319 Page7D_2EB6:
       
  8320 		push	bc
       
  8321 		push	de
       
  8322 		ld	a, (OP1)
       
  8323 		push	af
       
  8324 		push	bc
       
  8325 		ld	bc, 0
       
  8326 		ld	(freeArcBlock), bc
       
  8327 		call	Page7D_2B56
       
  8328 		ld	a, b
       
  8329 		ld	(unk_83FF), a
       
  8330 		pop	bc
       
  8331 		ld	a, 8
       
  8332 
       
  8333 p7Dloc_66D7:				; CODE XREF: seg001:66F9j
       
  8334 		push	af
       
  8335 		ld	hl, 4000h
       
  8336 		call	Page7D_2CD0
       
  8337 		cp	0FEh ; '�'
       
  8338 		jr	nz, p7Dloc_66E7
       
  8339 
       
  8340 p7Dloc_66E2:				; CODE XREF: seg001:670Dj
       
  8341 		pop	af
       
  8342 		add	a, 3
       
  8343 		jr	p7Dloc_66F0
       
  8344 ; ---------------------------------------------------------------------------
       
  8345 
       
  8346 p7Dloc_66E7:				; CODE XREF: seg001:66E0j
       
  8347 		cp	0F0h ; '�'
       
  8348 		jr	z, p7Dloc_66FB
       
  8349 		cp	0FFh
       
  8350 		jr	z, p7Dloc_6711
       
  8351 		pop	af
       
  8352 
       
  8353 p7Dloc_66F0:				; CODE XREF: seg001:66E5j seg001:672Dj
       
  8354 		push	hl
       
  8355 		ld	hl, 83FFh
       
  8356 		cp	(hl)
       
  8357 		pop	hl
       
  8358 		jr	nc, p7Dloc_672F
       
  8359 		inc	a
       
  8360 		jr	p7Dloc_66D7
       
  8361 ; ---------------------------------------------------------------------------
       
  8362 
       
  8363 p7Dloc_66FB:				; CODE XREF: seg001:66E9j
       
  8364 		pop	af
       
  8365 		push	af
       
  8366 		push	bc
       
  8367 		ld	c, 0FFh
       
  8368 		ld	(arcPage), a
       
  8369 		ld	(arcPtr), hl
       
  8370 		call	Page7D_2CE2
       
  8371 		call	Page7D_2B6E
       
  8372 		pop	bc
       
  8373 		jr	z, p7Dloc_66E2
       
  8374 		pop	de
       
  8375 		push	af
       
  8376 
       
  8377 p7Dloc_6711:				; CODE XREF: seg001:66EDj
       
  8378 		pop	af
       
  8379 		ld	(tempSwapArea), hl
       
  8380 		push	bc
       
  8381 		push	af
       
  8382 		ld	a, (unk_83FF)
       
  8383 		ld	b, a
       
  8384 		inc	b
       
  8385 		pop	af
       
  8386 		call	Page7D_2B74
       
  8387 		ex	de, hl
       
  8388 		pop	bc
       
  8389 		or	a
       
  8390 		call	p7Dsub_66A9
       
  8391 		sbc	hl, bc
       
  8392 		ld	hl, (tempSwapArea)
       
  8393 		jr	nc, p7Dloc_6733
       
  8394 		jr	p7Dloc_66F0
       
  8395 ; ---------------------------------------------------------------------------
       
  8396 
       
  8397 p7Dloc_672F:				; CODE XREF: seg001:66F6j
       
  8398 		ld	a, 0FFh
       
  8399 		add	a, 10h
       
  8400 
       
  8401 p7Dloc_6733:				; CODE XREF: seg001:672Bj
       
  8402 		pop	bc
       
  8403 		ld	c, a
       
  8404 		ld	a, b
       
  8405 		ld	(OP1), a
       
  8406 		ld	a, c
       
  8407 		pop	de
       
  8408 		pop	bc
       
  8409 		ret
       
  8410 
       
  8411 ; =============== S U B	R O U T	I N E =======================================
       
  8412 
       
  8413 
       
  8414 Page7D_2B74:				; CODE XREF: p7Dsub_662F+1Fp p7Dsub_662F+72p ...
       
  8415 		push	hl
       
  8416 		push	bc
       
  8417 		push	af
       
  8418 		push	hl
       
  8419 		pop	de
       
  8420 		ld	hl, 7FFFh
       
  8421 		or	a
       
  8422 		sbc	hl, de
       
  8423 
       
  8424 p7Dloc_6748:				; CODE XREF: Page7D_2B74+25j
       
  8425 		ex	de, hl
       
  8426 		inc	a
       
  8427 		call	p7Dsub_67EC
       
  8428 		jr	z, p7Dloc_6765
       
  8429 		cp	b
       
  8430 		jr	nc, p7Dloc_6765
       
  8431 		ld	hl, 4000h
       
  8432 		push	af
       
  8433 		call	Page7D_2CD0
       
  8434 		cp	0FFh
       
  8435 		jr	nz, p7Dloc_6764
       
  8436 		ld	hl, 4000h
       
  8437 		add	hl, de
       
  8438 		pop	af
       
  8439 		jr	p7Dloc_6748
       
  8440 ; ---------------------------------------------------------------------------
       
  8441 
       
  8442 p7Dloc_6764:				; CODE XREF: Page7D_2B74+1Ej
       
  8443 		pop	af
       
  8444 
       
  8445 p7Dloc_6765:				; CODE XREF: Page7D_2B74+10j
       
  8446 					; Page7D_2B74+13j
       
  8447 		pop	af
       
  8448 		pop	bc
       
  8449 		pop	hl
       
  8450 		ret
       
  8451 ; End of function Page7D_2B74
       
  8452 
       
  8453 
       
  8454 ; =============== S U B	R O U T	I N E =======================================
       
  8455 
       
  8456 
       
  8457 Page7D_2B6E:				; CODE XREF: Page7D_2E44+3Ap
       
  8458 					; p7Dsub_662F+42p	...
       
  8459 		call	p7Dsub_6598
       
  8460 		ld	(arcPage), a
       
  8461 		ld	(arcPtr), hl
       
  8462 		push	bc
       
  8463 		push	hl
       
  8464 		push	af
       
  8465 		or	3
       
  8466 		ld	b, 15h
       
  8467 		call	NZIf83Plus
       
  8468 		jr	nz, p7Dloc_6780
       
  8469 		ld	b, 69h ; 'i'
       
  8470 
       
  8471 p7Dloc_6780:				; CODE XREF: Page7D_2B6E+13j
       
  8472 		cp	b
       
  8473 		jr	c, p7Dloc_6784
       
  8474 		ld	a, b
       
  8475 
       
  8476 p7Dloc_6784:				; CODE XREF: Page7D_2B6E+18j
       
  8477 		ld	(unk_8390), a
       
  8478 		pop	af
       
  8479 		pop	hl
       
  8480 		pop	bc
       
  8481 
       
  8482 p7Dloc_678A:				; CODE XREF: Page7D_2B6E+57j
       
  8483 		push	bc
       
  8484 		ld	a, (arcPage)
       
  8485 		call	Page7D_2CD0
       
  8486 		cp	c
       
  8487 		jr	z, p7Dloc_67C8
       
  8488 		cp	0FFh
       
  8489 		jr	z, p7Dloc_67C2
       
  8490 		ld	(arcPtr), hl
       
  8491 		call	Page7D_2CE2
       
  8492 		ld	a, (arcPage)
       
  8493 		call	Page7D_2CD0
       
  8494 		ld	e, a
       
  8495 		call	Page7D_2CE2
       
  8496 		ld	a, (arcPage)
       
  8497 		call	Page7D_2CD0
       
  8498 		ld	d, a
       
  8499 		inc	de
       
  8500 		call	Page7D_2CCA
       
  8501 		ld	a, (unk_8390)
       
  8502 		ld	b, a
       
  8503 		ld	a, (arcPage)
       
  8504 		cp	b
       
  8505 		jr	c, p7Dloc_67BF
       
  8506 		jr	nz, p7Dloc_67C2
       
  8507 
       
  8508 p7Dloc_67BF:				; CODE XREF: Page7D_2B6E+52j
       
  8509 		pop	bc
       
  8510 		jr	p7Dloc_678A
       
  8511 ; ---------------------------------------------------------------------------
       
  8512 
       
  8513 p7Dloc_67C2:				; CODE XREF: Page7D_2B6E+2Dj
       
  8514 					; Page7D_2B6E+54j
       
  8515 		xor	a
       
  8516 		ld	a, (arcPage)
       
  8517 		pop	bc
       
  8518 		ret
       
  8519 ; ---------------------------------------------------------------------------
       
  8520 
       
  8521 p7Dloc_67C8:				; CODE XREF: Page7D_2B6E+29j
       
  8522 		pop	bc
       
  8523 		ld	a, (arcPage)
       
  8524 		push	af
       
  8525 		push	hl
       
  8526 		ld	(arcPtr), hl
       
  8527 		call	Page7D_2CE2
       
  8528 		ld	a, (arcPage)
       
  8529 		call	Page7D_2CD0
       
  8530 		ld	c, a
       
  8531 		ld	a, (arcPage)
       
  8532 		call	Page7D_2CE2
       
  8533 		ld	a, (arcPage)
       
  8534 		call	Page7D_2CD0
       
  8535 		ld	b, a
       
  8536 		pop	hl
       
  8537 		pop	af
       
  8538 		or	a
       
  8539 		ret
       
  8540 ; End of function Page7D_2B6E
       
  8541 
       
  8542 
       
  8543 ; =============== S U B	R O U T	I N E =======================================
       
  8544 
       
  8545 
       
  8546 p7Dsub_67EC:				; CODE XREF: Page7D_2E44+4Ep
       
  8547 					; Page7D_2B74+Dp
       
  8548 		push	bc
       
  8549 		ld	b, a
       
  8550 		and	3
       
  8551 		ld	a, b
       
  8552 		jr	z, p7Dloc_67FE
       
  8553 		call	NZIf83Plus
       
  8554 		jr	nz, p7Dloc_67FC
       
  8555 		cp	6Ah ; 'j'
       
  8556 		jr	p7Dloc_67FE
       
  8557 ; ---------------------------------------------------------------------------
       
  8558 
       
  8559 p7Dloc_67FC:				; CODE XREF: p7Dsub_67EC+Aj
       
  8560 		cp	16h
       
  8561 
       
  8562 p7Dloc_67FE:				; CODE XREF: p7Dsub_67EC+5j p7Dsub_67EC+Ej
       
  8563 		pop	bc
       
  8564 		ret
       
  8565 ; End of function p7Dsub_67EC
       
  8566 
       
  8567 
       
  8568 ; =============== S U B	R O U T	I N E =======================================
       
  8569 
       
  8570 
       
  8571 Page7D_2B56:				; CODE XREF: seg001:4919p
       
  8572 					; Page7D_2E44+2p ...
       
  8573 		push	af
       
  8574 		push	hl
       
  8575 		push	de
       
  8576 		call	p7Dsub_75EC
       
  8577 		ld	hl, 4000h
       
  8578 
       
  8579 p7Dloc_6809:				; CODE XREF: Page7D_2B56+25j
       
  8580 		push	af
       
  8581 		call	Page7D_2CD0
       
  8582 		cp	80h ; '�'
       
  8583 		jr	z, p7Dloc_6815
       
  8584 		cp	0
       
  8585 		jr	nz, p7Dloc_6827
       
  8586 
       
  8587 p7Dloc_6815:				; CODE XREF: Page7D_2B56+Fj
       
  8588 		pop	af
       
  8589 		push	af
       
  8590 		call	Page0Call_3E31
       
  8591 		jr	nz, p7Dloc_6827
       
  8592 		call	FindAppNumPages
       
  8593 		ld	a, c
       
  8594 		or	c
       
  8595 		jr	z, p7Dloc_6827
       
  8596 		pop	af
       
  8597 		sub	c
       
  8598 		jr	p7Dloc_6809
       
  8599 ; ---------------------------------------------------------------------------
       
  8600 
       
  8601 p7Dloc_6827:				; CODE XREF: Page7D_2B56+13j
       
  8602 					; Page7D_2B56+1Aj ...
       
  8603 		pop	af
       
  8604 		ld	b, a
       
  8605 		pop	de
       
  8606 		pop	hl
       
  8607 		pop	af
       
  8608 		ret
       
  8609 ; End of function Page7D_2B56
       
  8610 
       
  8611 ; ---------------------------------------------------------------------------
       
  8612 
       
  8613 Page7D_2EC2:
       
  8614 		res	7, (iy+24h)
       
  8615 		push	af
       
  8616 		ld	a, 1
       
  8617 		nop
       
  8618 		di
       
  8619 		nop
       
  8620 		nop
       
  8621 		im	1
       
  8622 		di
       
  8623 		out	(14h), a
       
  8624 		di
       
  8625 		call	checkForFlashTrickery
       
  8626 		pop	af
       
  8627 		ld	a, (arcInfo)
       
  8628 		ld	hl, (arcInfo+1)
       
  8629 		call	p7Dsub_69E8
       
  8630 		ld	de, (unk_83F3)
       
  8631 		ld	bc, (unk_83F9)
       
  8632 		call	Page7D_2C46
       
  8633 		jp	c, Page0Call_2541
       
  8634 		rst	28h
       
  8635 ; ---------------------------------------------------------------------------
       
  8636 		.dw 8054h
       
  8637 ; ---------------------------------------------------------------------------
       
  8638 		ld	de, (arcInfo+1)
       
  8639 		ld	a, (arcInfo)
       
  8640 		ld	b, 0F0h	; '�'
       
  8641 		rst	28h
       
  8642 ; ---------------------------------------------------------------------------
       
  8643 		.dw 8021h
       
  8644 ; ---------------------------------------------------------------------------
       
  8645 		ld	de, (unk_83F3)
       
  8646 		ld	(arcInfo+1), de
       
  8647 		ld	a, 0
       
  8648 		ld	(arcInfo), a
       
  8649 		ld	hl, (unk_83F1)
       
  8650 		call	Page0Call_2EDD
       
  8651 		jp	relockFlashBack
       
  8652 ; ---------------------------------------------------------------------------
       
  8653 
       
  8654 Page7D_2D06:
       
  8655 		res	7, (iy+24h)
       
  8656 		push	af
       
  8657 		ld	a, 1
       
  8658 		nop
       
  8659 		di
       
  8660 		nop
       
  8661 		nop
       
  8662 		im	1
       
  8663 		di
       
  8664 		out	(14h), a
       
  8665 		di
       
  8666 		call	checkForFlashTrickery
       
  8667 		pop	af
       
  8668 		ex	de, hl
       
  8669 		jp	p7Dloc_692E
       
  8670 
       
  8671 ; =============== S U B	R O U T	I N E =======================================
       
  8672 
       
  8673 
       
  8674 Page7D_2EB0:				; CODE XREF: p7Dsub_7CDA+84p
       
  8675 		res	7, (iy+24h)
       
  8676 		push	af
       
  8677 		ld	a, 1
       
  8678 		nop
       
  8679 		di
       
  8680 		nop
       
  8681 		nop
       
  8682 		im	1
       
  8683 		di
       
  8684 		out	(14h), a
       
  8685 		di
       
  8686 		call	checkForFlashTrickery
       
  8687 		pop	af
       
  8688 		ld	a, (arcInfo)
       
  8689 		ld	hl, (arcInfo+1)
       
  8690 		call	p7Dsub_69D4
       
  8691 		jr	nz, p7Dloc_68D2
       
  8692 		ld	b, 0F0h	; '�'
       
  8693 		ld	a, (arcInfo)
       
  8694 		ld	de, (arcInfo+1)
       
  8695 		call	p7Dsub_6F82
       
  8696 		jp	c, Page0Call_2541
       
  8697 		rst	28h
       
  8698 ; ---------------------------------------------------------------------------
       
  8699 		.dw 8021h
       
  8700 ; ---------------------------------------------------------------------------
       
  8701 		ld	hl, (arcInfo+1)
       
  8702 		inc	hl
       
  8703 		ld	(arcInfo+1), hl
       
  8704 		jr	p7Dloc_68D6
       
  8705 ; ---------------------------------------------------------------------------
       
  8706 
       
  8707 p7Dloc_68D2:				; CODE XREF: Page7D_2EB0+1Ej
       
  8708 		ld	de, (arcInfo+1)
       
  8709 
       
  8710 p7Dloc_68D6:				; CODE XREF: Page7D_2EB0+39j
       
  8711 		ld	b, 0FEh	; '�'
       
  8712 		ld	a, (arcInfo)
       
  8713 		ld	(unk_8404), a
       
  8714 		ld	(unk_8402), de
       
  8715 		call	p7Dsub_6F82
       
  8716 		jp	c, Page0Call_2541
       
  8717 		rst	28h
       
  8718 ; ---------------------------------------------------------------------------
       
  8719 		.dw 8021h
       
  8720 ; ---------------------------------------------------------------------------
       
  8721 		ld	a, (arcInfo)
       
  8722 		ld	de, (unk_8402)
       
  8723 		ld	(arcPage), a
       
  8724 		ld	(arcPtr), de
       
  8725 		call	Page7D_2CE2
       
  8726 		ld	a, (arcPage)
       
  8727 		ld	de, (arcPtr)
       
  8728 		ld	hl, 83F9h
       
  8729 		ld	bc, 2
       
  8730 		call	Page7D_2C46
       
  8731 		jp	c, Page0Call_2541
       
  8732 		rst	28h
       
  8733 ; ---------------------------------------------------------------------------
       
  8734 		.dw 8087h
       
  8735 ; ---------------------------------------------------------------------------
       
  8736 		ld	de, 2
       
  8737 		call	Page7D_2CCA
       
  8738 		ld	a, (unk_8404)
       
  8739 		ld	(arcInfo), a
       
  8740 		ld	de, (arcPtr)
       
  8741 		ld	hl, (unk_83F1)
       
  8742 		call	Page0Call_2EDD
       
  8743 		ld	a, (arcPage)
       
  8744 		ld	(arcInfo), a
       
  8745 
       
  8746 p7Dloc_692E:				; CODE XREF: seg001:6894j
       
  8747 		ld	hl, (unk_83F1)
       
  8748 		ld	bc, (unk_83F5)
       
  8749 		push	de
       
  8750 		ld	de, OP1
       
  8751 		ld	b, c
       
  8752 
       
  8753 p7Dloc_693A:				; CODE XREF: Page7D_2EB0+A7j
       
  8754 		ld	a, (hl)
       
  8755 		ld	(de), a
       
  8756 		inc	de
       
  8757 		dec	hl
       
  8758 		djnz	p7Dloc_693A
       
  8759 		pop	de
       
  8760 		ld	a, (arcInfo)
       
  8761 		ld	bc, (unk_83F5)
       
  8762 		ld	hl, OP1
       
  8763 		res	7, (hl)
       
  8764 		ld	(arcPtr), de
       
  8765 		ld	(arcPage), a
       
  8766 		call	Page7D_2C46
       
  8767 		jp	c, Page0Call_2541
       
  8768 		rst	28h
       
  8769 ; ---------------------------------------------------------------------------
       
  8770 		.dw 8087h
       
  8771 ; ---------------------------------------------------------------------------
       
  8772 		ld	de, (unk_83F5)
       
  8773 		call	Page7D_2CCA
       
  8774 		ld	a, (arcPage)
       
  8775 		ld	(arcInfo), a
       
  8776 		ld	de, (arcPtr)
       
  8777 		ld	(unk_83FB), de
       
  8778 		bit	3, (iy+26h)
       
  8779 		res	3, (iy+26h)
       
  8780 		jr	nz, p7Dloc_69D1
       
  8781 		ld	a, (arcInfo)
       
  8782 		ld	hl, (unk_83F3)
       
  8783 		bit	5, (iy+26h)
       
  8784 		ld	bc, 2
       
  8785 		jr	nz, p7Dloc_698F
       
  8786 		ld	bc, (unk_83F7)
       
  8787 
       
  8788 p7Dloc_698F:				; CODE XREF: Page7D_2EB0+F2j
       
  8789 		ld	(arcPtr), de
       
  8790 		ld	(arcPage), a
       
  8791 		call	Page7D_2C46
       
  8792 		jp	c, Page0Call_2541
       
  8793 		call	p7Dsub_7666
       
  8794 		bit	5, (iy+26h)
       
  8795 		ld	de, 2
       
  8796 		jr	nz, p7Dloc_69AC
       
  8797 		ld	de, (unk_83F7)
       
  8798 
       
  8799 p7Dloc_69AC:				; CODE XREF: Page7D_2EB0+10Fj
       
  8800 		call	Page7D_2CCA
       
  8801 		ld	a, (arcPage)
       
  8802 		ld	(arcInfo), a
       
  8803 		ld	de, (arcPtr)
       
  8804 		bit	2, (iy+26h)
       
  8805 		jr	nz, p7Dloc_69D1
       
  8806 		ld	de, (unk_8402)
       
  8807 		ld	b, 0FCh	; '�'
       
  8808 		ld	a, (unk_8404)
       
  8809 		call	p7Dsub_6F82
       
  8810 		jp	c, Page0Call_2541
       
  8811 		rst	28h
       
  8812 ; ---------------------------------------------------------------------------
       
  8813 		.dw 8021h
       
  8814 ; ---------------------------------------------------------------------------
       
  8815 
       
  8816 p7Dloc_69D1:				; CODE XREF: Page7D_2EB0+E3j
       
  8817 					; Page7D_2EB0+126j
       
  8818 		jp	relockFlashBack
       
  8819 ; End of function Page7D_2EB0
       
  8820 
       
  8821 
       
  8822 ; =============== S U B	R O U T	I N E =======================================
       
  8823 
       
  8824 
       
  8825 p7Dsub_69D4:				; CODE XREF: Page7D_2EB0+1Bp
       
  8826 					; p7Dsub_7CDA+39p
       
  8827 		push	hl
       
  8828 		ld	bc, 4000h
       
  8829 		or	a
       
  8830 		sbc	hl, bc
       
  8831 		pop	hl
       
  8832 		jr	z, p7Dloc_69DF
       
  8833 		ret	nc
       
  8834 
       
  8835 p7Dloc_69DF:				; CODE XREF: p7Dsub_69D4+8j
       
  8836 		ld	b, a
       
  8837 		and	3
       
  8838 		ld	a, b
       
  8839 		ret
       
  8840 ; End of function p7Dsub_69D4
       
  8841 
       
  8842 ; ---------------------------------------------------------------------------
       
  8843 
       
  8844 Page7D_326A:
       
  8845 		call	p7Dsub_69E8
       
  8846 		ret
       
  8847 
       
  8848 ; =============== S U B	R O U T	I N E =======================================
       
  8849 
       
  8850 
       
  8851 p7Dsub_69E8:				; CODE XREF: seg001:6848p
       
  8852 					; seg001:Page7D_326Ap
       
  8853 		call	p7Dsub_6A07
       
  8854 		push	af
       
  8855 		push	hl
       
  8856 		push	af
       
  8857 		call	Page7D_2CD0
       
  8858 		ld	e, a
       
  8859 		pop	af
       
  8860 		inc	hl
       
  8861 		call	Page0Call_23FC
       
  8862 		jr	nc, p7Dloc_69FA
       
  8863 		inc	a
       
  8864 
       
  8865 p7Dloc_69FA:				; CODE XREF: p7Dsub_69E8+Fj
       
  8866 		call	Page7D_2CD0
       
  8867 		ld	d, a
       
  8868 		push	de
       
  8869 		pop	bc
       
  8870 		pop	hl
       
  8871 		pop	af
       
  8872 		ret
       
  8873 ; End of function p7Dsub_69E8
       
  8874 
       
  8875 ; ---------------------------------------------------------------------------
       
  8876 
       
  8877 Page7D_2F88:
       
  8878 		call	p7Dsub_6A07
       
  8879 		ret
       
  8880 
       
  8881 ; =============== S U B	R O U T	I N E =======================================
       
  8882 
       
  8883 
       
  8884 p7Dsub_6A07:				; CODE XREF: p7Dsub_69E8p
       
  8885 					; seg001:Page7D_2F88p
       
  8886 		inc	hl
       
  8887 		inc	hl
       
  8888 		inc	hl
       
  8889 		call	Page0Call_23FC
       
  8890 		jr	nc, Page7D_2CD6
       
  8891 		inc	a
       
  8892 
       
  8893 Page7D_2CD6:				; CODE XREF: p7Dsub_6A07+6j
       
  8894 		push	af
       
  8895 		call	Page7D_2CD0
       
  8896 		and	1Fh
       
  8897 		or	a
       
  8898 		call	Page0Call_23F6
       
  8899 		jr	nc, p7Dloc_6A21
       
  8900 		ld	d, a
       
  8901 		pop	af
       
  8902 		inc	a
       
  8903 		push	af
       
  8904 		ld	a, d
       
  8905 
       
  8906 p7Dloc_6A21:				; CODE XREF: p7Dsub_6A07+13j
       
  8907 		ld	de, 3
       
  8908 		call	page0_17B3
       
  8909 		jr	z, p7Dloc_6A3D
       
  8910 		call	IS_A_LSTorCLST
       
  8911 		jr	z, p7Dloc_6A3D
       
  8912 		pop	af
       
  8913 		ld	(arcPage), a
       
  8914 		call	Page7D_2CD0
       
  8915 		cp	5Dh ; ']'
       
  8916 		ld	a, (arcPage)
       
  8917 		jr	nz, p7Dloc_6A45
       
  8918 		push	af
       
  8919 
       
  8920 p7Dloc_6A3D:				; CODE XREF: p7Dsub_6A07+20j p7Dsub_6A07+25j
       
  8921 		pop	af
       
  8922 		push	af
       
  8923 		call	Page7D_2CD0
       
  8924 		ld	e, a
       
  8925 		pop	af
       
  8926 		inc	e
       
  8927 
       
  8928 p7Dloc_6A45:				; CODE XREF: p7Dsub_6A07+33j
       
  8929 		ld	(arcPage), a
       
  8930 		ld	(arcPtr), hl
       
  8931 		call	Page7D_2CCA
       
  8932 		ld	a, (arcPage)
       
  8933 		ld	hl, (arcPtr)
       
  8934 		ret
       
  8935 ; End of function p7Dsub_6A07
       
  8936 
       
  8937 ; ---------------------------------------------------------------------------
       
  8938 
       
  8939 Page7D_2D42:
       
  8940 		call	Page7D_2B56
       
  8941 		call	p7Dsub_75EC
       
  8942 		cp	b
       
  8943 		jr	c, p7Dloc_6A6D
       
  8944 		jr	z, p7Dloc_6A6D
       
  8945 
       
  8946 p7Dloc_6A60:				; CODE XREF: seg001:6A6Bj
       
  8947 		push	bc
       
  8948 		call	DeleteApp
       
  8949 		pop	bc
       
  8950 		ld	a, (appSearchPage+1)
       
  8951 		cp	b
       
  8952 		jr	c, p7Dloc_6A6D
       
  8953 		jr	nz, p7Dloc_6A60
       
  8954 
       
  8955 p7Dloc_6A6D:				; CODE XREF: seg001:6A5Cj seg001:6A5Ej ...
       
  8956 		res	2, (iy+25h)
       
  8957 		ld	a, 4
       
  8958 		call	Page0Call_2EB9
       
  8959 		ret
       
  8960 ; ---------------------------------------------------------------------------
       
  8961 
       
  8962 Page7D_2D36:
       
  8963 		call	Page0Call_3F2D
       
  8964 		push	af
       
  8965 		ld	a, 1
       
  8966 		nop
       
  8967 		di
       
  8968 		nop
       
  8969 		nop
       
  8970 		im	1
       
  8971 		di
       
  8972 		out	(14h), a
       
  8973 		di
       
  8974 		call	checkForFlashTrickery
       
  8975 		pop	af
       
  8976 		ld	a, 8
       
  8977 		rst	28h
       
  8978 ; ---------------------------------------------------------------------------
       
  8979 		.dw 8084h
       
  8980 ; ---------------------------------------------------------------------------
       
  8981 		ld	a, 8
       
  8982 		ld	de, 4000h
       
  8983 		ld	b, 0FEh	; '�'
       
  8984 		rst	28h
       
  8985 ; ---------------------------------------------------------------------------
       
  8986 		.dw 8021h
       
  8987 ; ---------------------------------------------------------------------------
       
  8988 		ld	a, 0Ch
       
  8989 
       
  8990 p7Dloc_6A9C:				; CODE XREF: seg001:6AABj
       
  8991 		push	af
       
  8992 		call	p7Dsub_7BD4
       
  8993 		pop	af
       
  8994 		push	af
       
  8995 		rst	28h
       
  8996 ; ---------------------------------------------------------------------------
       
  8997 		.dw 8084h
       
  8998 ; ---------------------------------------------------------------------------
       
  8999 		pop	af
       
  9000 		add	a, 4
       
  9001 
       
  9002 p7Dloc_6AA8:				; DATA XREF: seg001:76B7w seg001:76C9w
       
  9003 		call	p7Dsub_75E1
       
  9004 		jr	c, p7Dloc_6A9C
       
  9005 		ld	hl, tempSwapArea
       
  9006 		ld	b, 0E8h	; '�'
       
  9007 
       
  9008 p7Dloc_6AB2:				; CODE XREF: seg001:6AB6j
       
  9009 		ld	a, 0FFh
       
  9010 		ld	(hl), a
       
  9011 		inc	hl
       
  9012 		djnz	p7Dloc_6AB2
       
  9013 		ld	a, 0FEh	; '�'
       
  9014 		ld	hl, 836Dh
       
  9015 		ld	(hl), a
       
  9016 		call	NZIf83Plus
       
  9017 		jr	z, p7Dloc_6AC9
       
  9018 		ld	a, 7Fh ; ''
       
  9019 		ld	hl, 836Eh
       
  9020 		ld	(hl), a
       
  9021 
       
  9022 p7Dloc_6AC9:				; CODE XREF: seg001:6AC1j
       
  9023 		ld	a, 0
       
  9024 		call	Page7D_2B62
       
  9025 		jp	relockFlashBack
       
  9026 ; ---------------------------------------------------------------------------
       
  9027 
       
  9028 Page7D_2D48:
       
  9029 		res	6, (iy+24h)
       
  9030 		res	7, (iy+24h)
       
  9031 		res	4, (iy+26h)
       
  9032 		ld	a, 8
       
  9033 
       
  9034 p7Dloc_6ADF:				; CODE XREF: seg001:6B05j
       
  9035 		push	af
       
  9036 		ld	hl, 4000h
       
  9037 		call	Page7D_2CD0
       
  9038 		cp	0FEh ; '�'
       
  9039 		jr	nz, p7Dloc_6AF3
       
  9040 
       
  9041 p7Dloc_6AEA:				; CODE XREF: seg001:6AF9j seg001:6B17j
       
  9042 		pop	af
       
  9043 		push	bc
       
  9044 		ld	c, 3
       
  9045 		add	a, c
       
  9046 		pop	bc
       
  9047 		push	af
       
  9048 		jr	p7Dloc_6AFB
       
  9049 ; ---------------------------------------------------------------------------
       
  9050 
       
  9051 p7Dloc_6AF3:				; CODE XREF: seg001:6AE8j
       
  9052 		cp	0F0h ; '�'
       
  9053 		jr	z, p7Dloc_6B07
       
  9054 		cp	0FFh
       
  9055 		jr	z, p7Dloc_6AEA
       
  9056 
       
  9057 p7Dloc_6AFB:				; CODE XREF: seg001:6AF1j
       
  9058 		pop	af
       
  9059 		push	hl
       
  9060 		call	Page7D_2B56
       
  9061 		cp	b
       
  9062 		pop	hl
       
  9063 		jr	nc, locret_6B35
       
  9064 		inc	a
       
  9065 		jr	p7Dloc_6ADF
       
  9066 ; ---------------------------------------------------------------------------
       
  9067 
       
  9068 p7Dloc_6B07:				; CODE XREF: seg001:6AF5j
       
  9069 		pop	af
       
  9070 		push	af
       
  9071 		ld	(arcPage), a
       
  9072 		ld	(arcPtr), hl
       
  9073 		call	Page7D_2CE2
       
  9074 
       
  9075 p7Dloc_6B12:				; CODE XREF: seg001:6B33j
       
  9076 		ld	c, 0FCh	; '�'
       
  9077 		call	Page7D_2B6E
       
  9078 		jr	z, p7Dloc_6AEA
       
  9079 		ld	(arcPage), a
       
  9080 		ld	(arcPtr), hl
       
  9081 		push	bc
       
  9082 		call	Page0Call_2FC7
       
  9083 		pop	de
       
  9084 		inc	de
       
  9085 		inc	de
       
  9086 		ld	(arcPage), a
       
  9087 		ld	(arcPtr), hl
       
  9088 		inc	de
       
  9089 		call	Page7D_2CCA
       
  9090 		ld	a, (arcPage)
       
  9091 		jr	p7Dloc_6B12
       
  9092 ; ---------------------------------------------------------------------------
       
  9093 
       
  9094 locret_6B35:				; CODE XREF: seg001:6B02j
       
  9095 		ret
       
  9096 
       
  9097 ; =============== S U B	R O U T	I N E =======================================
       
  9098 
       
  9099 
       
  9100 Page7D_2CD0:				; CODE XREF: p7Dsub_4083+Bp p7Dsub_4566+3p ...
       
  9101 		push	hl
       
  9102 		push	bc
       
  9103 		push	de
       
  9104 		ld	bc, 1
       
  9105 		ld	de, flashByte1
       
  9106 		call	FlashToRam
       
  9107 		ld	a, (flashByte1)
       
  9108 		pop	de
       
  9109 		pop	bc
       
  9110 		pop	hl
       
  9111 		ret
       
  9112 ; End of function Page7D_2CD0
       
  9113 
       
  9114 
       
  9115 ; =============== S U B	R O U T	I N E =======================================
       
  9116 
       
  9117 
       
  9118 FlashToRam:				; CODE XREF: p7Dsub_424C+3p p7Dsub_42AE+Dp ...
       
  9119 		call	NZIf83Plus
       
  9120 		jr	z, p7Dloc_6B50
       
  9121 		and	1Fh
       
  9122 
       
  9123 p7Dloc_6B50:				; CODE XREF: FlashToRam+3j
       
  9124 		push	ix
       
  9125 		ld	ix, FlashToRamPrivilegedCopy
       
  9126 		call	p7Dsub_6B87
       
  9127 		pop	ix
       
  9128 		ret
       
  9129 ; End of function FlashToRam
       
  9130 
       
  9131 FlashToRamPrivilegedCopy:
       
  9132 		.dw 29h
       
  9133 		ld	(flashByte2), a
       
  9134 		in	a, (6)
       
  9135 		push	af
       
  9136 		ld	a, (flashByte2)
       
  9137 		out	(6), a
       
  9138 		bit	7, h
       
  9139 		jr	nz, p7Dloc_6B83
       
  9140 
       
  9141 p7Dloc_6B6D:				; CODE XREF: seg001:6B7Dj
       
  9142 		bit	7, h
       
  9143 		jr	z, p7Dloc_6B79
       
  9144 		in	a, (6)
       
  9145 		inc	a
       
  9146 		out	(6), a
       
  9147 		ld	hl, 4000h
       
  9148 
       
  9149 p7Dloc_6B79:				; CODE XREF: seg001:6B6Fj
       
  9150 		ldi
       
  9151 		ld	a, b
       
  9152 		or	c
       
  9153 		jr	nz, p7Dloc_6B6D
       
  9154 
       
  9155 p7Dloc_6B7F:				; CODE XREF: seg001:6B85j
       
  9156 		pop	af
       
  9157 		out	(6), a
       
  9158 		ret
       
  9159 p7Dloc_6B83:				; CODE XREF: seg001:6B6Bj
       
  9160 		ldir
       
  9161 		jr	p7Dloc_6B7F
       
  9162 
       
  9163 ; =============== S U B	R O U T	I N E =======================================
       
  9164 
       
  9165 
       
  9166 p7Dsub_6B87:				; CODE XREF: FlashToRam+Dp
       
  9167 					; p7Dsub_7666+11p
       
  9168 		call	p7Dsub_6BB0
       
  9169 		push	bc
       
  9170 		push	de
       
  9171 		push	hl
       
  9172 		push	ix
       
  9173 		pop	hl
       
  9174 		ld	c, (hl)
       
  9175 		inc	hl
       
  9176 		ld	b, (hl)
       
  9177 		inc	hl
       
  9178 		ld	de, ramCode
       
  9179 		push	de
       
  9180 		ldir
       
  9181 		pop	ix
       
  9182 		pop	hl
       
  9183 		pop	de
       
  9184 		pop	bc
       
  9185 		call	p7Dsub_6BAD
       
  9186 		push	af
       
  9187 		ld	a, (unk_82A2)
       
  9188 		bit	2, a
       
  9189 		jr	z, p7Dloc_6BAB
       
  9190 		ei
       
  9191 
       
  9192 p7Dloc_6BAB:				; CODE XREF: p7Dsub_6B87+21j
       
  9193 		pop	af
       
  9194 		ret
       
  9195 ; End of function p7Dsub_6B87
       
  9196 
       
  9197 
       
  9198 ; =============== S U B	R O U T	I N E =======================================
       
  9199 
       
  9200 
       
  9201 p7Dsub_6BAD:				; CODE XREF: p7Dsub_6B87+18p
       
  9202 		jp	ramCode
       
  9203 ; End of function p7Dsub_6BAD
       
  9204 
       
  9205 
       
  9206 ; =============== S U B	R O U T	I N E =======================================
       
  9207 
       
  9208 
       
  9209 p7Dsub_6BB0:				; CODE XREF: p7Dsub_6B87p
       
  9210 		push	af
       
  9211 		push	bc
       
  9212 		ld	a, i
       
  9213 		push	af
       
  9214 		di
       
  9215 		pop	bc
       
  9216 		ld	a, c
       
  9217 		ld	(unk_82A2), a
       
  9218 		pop	bc
       
  9219 		pop	af
       
  9220 		ret
       
  9221 ; End of function p7Dsub_6BB0
       
  9222 
       
  9223 ; ---------------------------------------------------------------------------
       
  9224 
       
  9225 Page7D_3E28:
       
  9226 		res	7, (iy+24h)
       
  9227 		push	af
       
  9228 		ld	a, 1
       
  9229 		nop
       
  9230 		di
       
  9231 		nop
       
  9232 		nop
       
  9233 		im	1
       
  9234 		di
       
  9235 		out	(14h), a
       
  9236 		di
       
  9237 		call	checkForFlashTrickery
       
  9238 		pop	af
       
  9239 		ld	a, b
       
  9240 		ld	b, 0F0h	; '�'
       
  9241 		call	p7Dsub_6F82
       
  9242 		jp	c, Page0Call_2541
       
  9243 		rst	28h
       
  9244 ; ---------------------------------------------------------------------------
       
  9245 		.dw 8021h
       
  9246 ; ---------------------------------------------------------------------------
       
  9247 		jp	relockFlashBack
       
  9248 ; ---------------------------------------------------------------------------
       
  9249 
       
  9250 Page7D_2D3C:
       
  9251 		res	7, (iy+24h)
       
  9252 		ld	a, 8
       
  9253 
       
  9254 p7Dloc_6BE8:				; CODE XREF: seg001:6C0Cj
       
  9255 		push	af
       
  9256 		ld	hl, 4000h
       
  9257 		call	Page7D_2CD0
       
  9258 		cp	0FEh ; '�'
       
  9259 		jr	nz, p7Dloc_6BF9
       
  9260 
       
  9261 p7Dloc_6BF3:				; CODE XREF: seg001:6BFFj seg001:6C1Ej
       
  9262 		pop	af
       
  9263 		add	a, 3
       
  9264 		push	af
       
  9265 		jr	p7Dloc_6C01
       
  9266 ; ---------------------------------------------------------------------------
       
  9267 
       
  9268 p7Dloc_6BF9:				; CODE XREF: seg001:6BF1j
       
  9269 		cp	0F0h ; '�'
       
  9270 		jr	z, p7Dloc_6C0E
       
  9271 		cp	0FFh
       
  9272 		jr	z, p7Dloc_6BF3
       
  9273 
       
  9274 p7Dloc_6C01:				; CODE XREF: seg001:6BF7j
       
  9275 		pop	af
       
  9276 		push	hl
       
  9277 		call	Page7D_2B56
       
  9278 		cp	b
       
  9279 		pop	hl
       
  9280 		jp	nc, p7Dloc_6CAB
       
  9281 		inc	a
       
  9282 		jr	p7Dloc_6BE8
       
  9283 ; ---------------------------------------------------------------------------
       
  9284 
       
  9285 p7Dloc_6C0E:				; CODE XREF: seg001:6BFBj
       
  9286 		pop	af
       
  9287 		push	af
       
  9288 		ld	(arcPage), a
       
  9289 		ld	(arcPtr), hl
       
  9290 		call	Page7D_2CE2
       
  9291 
       
  9292 p7Dloc_6C19:				; CODE XREF: seg001:6CA8j
       
  9293 		ld	c, 0FCh	; '�'
       
  9294 		call	Page7D_2B6E
       
  9295 		jr	z, p7Dloc_6BF3
       
  9296 		ld	(arcPage), a
       
  9297 		ld	(arcPtr), hl
       
  9298 		ld	(unk_8404), a
       
  9299 		ld	(unk_8402), hl
       
  9300 		ld	de, 3
       
  9301 		call	Page7D_2CCA
       
  9302 		ld	a, (arcPage)
       
  9303 		push	bc
       
  9304 		push	af
       
  9305 		call	Page7D_2CD0
       
  9306 		and	1Fh
       
  9307 		ld	(OP1), a
       
  9308 		call	page0_17B3
       
  9309 		jr	z, p7Dloc_6C49
       
  9310 		call	IS_A_LSTorCLST
       
  9311 		jr	nz, p7Dloc_6C6A
       
  9312 
       
  9313 p7Dloc_6C49:				; CODE XREF: seg001:6C42j
       
  9314 		or	a
       
  9315 		call	Page0Call_23F6
       
  9316 		jr	nc, p7Dloc_6C52
       
  9317 		pop	af
       
  9318 		inc	a
       
  9319 		push	af
       
  9320 
       
  9321 p7Dloc_6C52:				; CODE XREF: seg001:6C4Dj
       
  9322 		pop	af
       
  9323 		push	af
       
  9324 		call	Page7D_2CD0
       
  9325 		ld	c, a
       
  9326 		ld	b, 0
       
  9327 		pop	af
       
  9328 		ld	(arcPage), a
       
  9329 		ld	(arcPtr), hl
       
  9330 		call	Page7D_2CE2
       
  9331 		ld	a, (arcPage)
       
  9332 		push	af
       
  9333 		jr	p7Dloc_6C76
       
  9334 ; ---------------------------------------------------------------------------
       
  9335 
       
  9336 p7Dloc_6C6A:				; CODE XREF: seg001:6C47j
       
  9337 		or	a
       
  9338 		call	Page0Call_23F6
       
  9339 		jr	nc, p7Dloc_6C73
       
  9340 		pop	af
       
  9341 		inc	a
       
  9342 		push	af
       
  9343 
       
  9344 p7Dloc_6C73:				; CODE XREF: seg001:6C6Ej
       
  9345 		ld	bc, 3
       
  9346 
       
  9347 p7Dloc_6C76:				; CODE XREF: seg001:6C68j
       
  9348 		ld	de, 8479h
       
  9349 		push	hl
       
  9350 		ld	a, (OP1)
       
  9351 		push	af
       
  9352 		call	ZeroOP1
       
  9353 		pop	af
       
  9354 		ld	(OP1), a
       
  9355 		pop	hl
       
  9356 		pop	af
       
  9357 		call	FlashToRam
       
  9358 		call	ChkFindSym
       
  9359 		call	page0_1F31
       
  9360 		pop	de
       
  9361 		inc	de
       
  9362 		inc	de
       
  9363 		ld	a, (unk_8404)
       
  9364 		ld	hl, (unk_8402)
       
  9365 		ld	(arcPage), a
       
  9366 		ld	(arcPtr), hl
       
  9367 		call	Page7D_2CCA
       
  9368 		call	Page7D_2CE2
       
  9369 		ld	a, (arcPage)
       
  9370 		jp	p7Dloc_6C19
       
  9371 ; ---------------------------------------------------------------------------
       
  9372 
       
  9373 p7Dloc_6CAB:				; CODE XREF: seg001:6C08j
       
  9374 		res	2, (iy+25h)
       
  9375 		ld	a, 3
       
  9376 		call	Page0Call_2EB9
       
  9377 		ret
       
  9378 
       
  9379 ; =============== S U B	R O U T	I N E =======================================
       
  9380 
       
  9381 
       
  9382 Page7D_2C16:				; CODE XREF: p7Dsub_7240+1F3p
       
  9383 					; seg001:77F3p
       
  9384 		ld	hl, 8697h
       
  9385 		call	NZIf83Plus
       
  9386 		jr	z, p7Dloc_6CC4
       
  9387 		ld	c, a
       
  9388 		ld	b, 0
       
  9389 		add	hl, bc
       
  9390 		set	7, (hl)
       
  9391 		ret
       
  9392 ; ---------------------------------------------------------------------------
       
  9393 
       
  9394 p7Dloc_6CC4:				; CODE XREF: Page7D_2C16+6j
       
  9395 		ld	b, a
       
  9396 		call	Page0Call_2DB1
       
  9397 		or	(hl)
       
  9398 		ld	(hl), a
       
  9399 		ret
       
  9400 ; End of function Page7D_2C16
       
  9401 
       
  9402 
       
  9403 ; =============== S U B	R O U T	I N E =======================================
       
  9404 
       
  9405 
       
  9406 p7Dsub_6CCB:				; CODE XREF: seg001:6D56p
       
  9407 		ld	(arcPage), a
       
  9408 		ld	(arcPtr), hl
       
  9409 		ld	de, 3
       
  9410 		call	Page7D_2CCA
       
  9411 		call	ZeroOP1
       
  9412 		ld	a, (arcPage)
       
  9413 		ld	hl, (arcPtr)
       
  9414 		call	Page7D_2CD0
       
  9415 		ld	(OP1), a
       
  9416 		call	Page0Call_23F6
       
  9417 		jr	nc, p7Dloc_6CF2
       
  9418 		ld	a, (arcPage)
       
  9419 		inc	a
       
  9420 		ld	(arcPage), a
       
  9421 
       
  9422 p7Dloc_6CF2:				; CODE XREF: p7Dsub_6CCB+1Ej
       
  9423 		ld	(arcPtr), hl
       
  9424 		ld	a, (OP1)
       
  9425 		ld	b, 3
       
  9426 		call	page0_17B3
       
  9427 		jr	z, p7Dloc_6D11
       
  9428 		call	IS_A_LSTorCLST
       
  9429 		jr	z, p7Dloc_6D11
       
  9430 		ld	a, (arcPage)
       
  9431 		call	Page7D_2CD0
       
  9432 		cp	5Dh ; ']'
       
  9433 		ld	a, (arcPage)
       
  9434 		jr	nz, p7Dloc_6D21
       
  9435 
       
  9436 p7Dloc_6D11:				; CODE XREF: p7Dsub_6CCB+32j p7Dsub_6CCB+37j
       
  9437 		ld	a, (arcPage)
       
  9438 		ld	hl, (arcPtr)
       
  9439 		call	Page7D_2CD0
       
  9440 		ld	b, a
       
  9441 		ld	a, (arcPage)
       
  9442 		call	Page7D_2CE2
       
  9443 
       
  9444 p7Dloc_6D21:				; CODE XREF: p7Dsub_6CCB+44j
       
  9445 		ld	de, 8479h
       
  9446 
       
  9447 p7Dloc_6D24:				; CODE XREF: p7Dsub_6CCB+69j
       
  9448 		ld	a, (arcPage)
       
  9449 		ld	hl, (arcPtr)
       
  9450 		push	bc
       
  9451 		call	Page7D_2CD0
       
  9452 		pop	bc
       
  9453 		ld	(de), a
       
  9454 		inc	de
       
  9455 		call	Page7D_2CE2
       
  9456 		djnz	p7Dloc_6D24
       
  9457 		ret
       
  9458 ; End of function p7Dsub_6CCB
       
  9459 
       
  9460 ; ---------------------------------------------------------------------------
       
  9461 
       
  9462 Page7D_2B7A:
       
  9463 		push	bc
       
  9464 		push	hl
       
  9465 		push	de
       
  9466 		push	af
       
  9467 		ld	(arcInfo), a
       
  9468 		ld	(arcInfo+1), hl
       
  9469 		ld	a, b
       
  9470 		ld	(unk_83F1), a
       
  9471 		ld	(unk_83F1+1), de
       
  9472 		ld	(unk_8404), a
       
  9473 		ld	(unk_8402), de
       
  9474 		ld	a, (arcInfo)
       
  9475 		ld	hl, (arcInfo+1)
       
  9476 		call	p7Dsub_6CCB
       
  9477 		ld	a, (OP1)
       
  9478 		and	1Fh
       
  9479 		push	af
       
  9480 		ld	a, (arcInfo)
       
  9481 		ld	hl, (arcInfo+1)
       
  9482 		ld	(arcPage), a
       
  9483 		ld	(arcPtr), hl
       
  9484 		call	Page7D_2CE2
       
  9485 		ld	a, (arcPage)
       
  9486 		call	Page7D_2CD0
       
  9487 		ld	c, a
       
  9488 		call	Page7D_2CE2
       
  9489 		ld	a, (arcPage)
       
  9490 		call	Page7D_2CD0
       
  9491 		ld	b, a
       
  9492 		call	Page7D_2CE2
       
  9493 		push	bc
       
  9494 		ld	a, (arcPage)
       
  9495 		ld	(arcInfo), a
       
  9496 		ld	(arcInfo+1), hl
       
  9497 		ld	a, (unk_83F1)
       
  9498 		ld	de, (unk_83F1+1)
       
  9499 		ld	(arcPage), a
       
  9500 		ld	(arcPtr), de
       
  9501 		ld	b, 0FEh	; '�'
       
  9502 		rst	28h
       
  9503 ; ---------------------------------------------------------------------------
       
  9504 		.dw 8021h
       
  9505 ; ---------------------------------------------------------------------------
       
  9506 		call	Page7D_2CE2
       
  9507 		ld	a, (arcPage)
       
  9508 		ld	de, (arcPtr)
       
  9509 		pop	bc
       
  9510 		push	bc
       
  9511 		ld	b, c
       
  9512 		rst	28h
       
  9513 ; ---------------------------------------------------------------------------
       
  9514 		.dw 8021h
       
  9515 ; ---------------------------------------------------------------------------
       
  9516 		call	Page7D_2CE2
       
  9517 		ld	a, (arcPage)
       
  9518 		ld	de, (arcPtr)
       
  9519 		pop	bc
       
  9520 		push	bc
       
  9521 		rst	28h
       
  9522 ; ---------------------------------------------------------------------------
       
  9523 		.dw 8021h
       
  9524 ; ---------------------------------------------------------------------------
       
  9525 		call	Page7D_2CE2
       
  9526 		ld	a, (arcPage)
       
  9527 		ld	de, (arcPtr)
       
  9528 		ld	(unk_83F1), a
       
  9529 		ld	(unk_83F1+1), de
       
  9530 		ld	a, (arcInfo)
       
  9531 		ld	hl, (arcInfo+1)
       
  9532 		ld	(arcPage), a
       
  9533 		ld	(arcPtr), hl
       
  9534 		ld	de, 83FDh
       
  9535 		ld	bc, 3
       
  9536 		call	FlashToRam
       
  9537 		ld	de, 6
       
  9538 		call	Page7D_2CCA
       
  9539 		ld	a, (arcPage)
       
  9540 		ld	hl, (arcPtr)
       
  9541 		ld	(arcInfo), a
       
  9542 		ld	(arcInfo+1), hl
       
  9543 		ld	a, (unk_83F1)
       
  9544 		ld	de, (unk_83F1+1)
       
  9545 		ld	(arcPage), a
       
  9546 		ld	(arcPtr), de
       
  9547 		ld	hl, 83FDh
       
  9548 		ld	bc, 3
       
  9549 		rst	28h
       
  9550 ; ---------------------------------------------------------------------------
       
  9551 		.dw 8087h
       
  9552 ; ---------------------------------------------------------------------------
       
  9553 		ld	de, 3
       
  9554 		call	Page7D_2CCA
       
  9555 		ld	a, (arcPage)
       
  9556 		ld	de, (arcPtr)
       
  9557 		ld	hl, 8402h
       
  9558 		ld	bc, 3
       
  9559 		rst	28h
       
  9560 ; ---------------------------------------------------------------------------
       
  9561 		.dw 8087h
       
  9562 ; ---------------------------------------------------------------------------
       
  9563 		ld	de, 3
       
  9564 		call	Page7D_2CCA
       
  9565 		ld	a, (arcPage)
       
  9566 		ld	de, (arcPtr)
       
  9567 		ld	(unk_83F1), a
       
  9568 		ld	(unk_83F1+1), de
       
  9569 		pop	hl
       
  9570 		ld	bc, 6
       
  9571 		or	a
       
  9572 		sbc	hl, bc
       
  9573 		push	hl
       
  9574 		pop	bc
       
  9575 
       
  9576 p7Dloc_6E40:				; CODE XREF: seg001:6EA4j
       
  9577 		ld	hl, 0
       
  9578 		ld	(unk_83F3+1), hl
       
  9579 		ld	de, ramStart
       
  9580 
       
  9581 p7Dloc_6E49:				; CODE XREF: seg001:6E75j
       
  9582 		push	bc
       
  9583 		ld	a, (arcInfo)
       
  9584 		ld	b, a
       
  9585 		ld	hl, (arcInfo+1)
       
  9586 		call	LoadCIndPaged
       
  9587 		ld	a, c
       
  9588 		ld	(de), a
       
  9589 		inc	de
       
  9590 		inc	hl
       
  9591 		bit	7, h
       
  9592 		jr	z, p7Dloc_6E60
       
  9593 		inc	b
       
  9594 		ld	hl, 4000h
       
  9595 
       
  9596 p7Dloc_6E60:				; CODE XREF: seg001:6E5Aj
       
  9597 		call	p7Dsub_6ECE
       
  9598 		ld	a, b
       
  9599 		ld	(arcInfo), a
       
  9600 		ld	(arcInfo+1), hl
       
  9601 		pop	bc
       
  9602 		dec	bc
       
  9603 		ld	a, b
       
  9604 		or	c
       
  9605 		jr	z, p7Dloc_6EA7
       
  9606 		call	p7Dsub_6ED5
       
  9607 		jr	z, p7Dloc_6E77
       
  9608 		jr	p7Dloc_6E49
       
  9609 ; ---------------------------------------------------------------------------
       
  9610 
       
  9611 p7Dloc_6E77:				; CODE XREF: seg001:6E73j
       
  9612 		push	bc
       
  9613 		ld	hl, ramStart
       
  9614 		ld	de, (unk_83F1+1)
       
  9615 		ld	a, (unk_83F1)
       
  9616 		ld	(arcPtr), de
       
  9617 		ld	(arcPage), a
       
  9618 		ld	bc, (unk_83F3+1)
       
  9619 		rst	28h
       
  9620 ; ---------------------------------------------------------------------------
       
  9621 		.dw 8087h
       
  9622 ; ---------------------------------------------------------------------------
       
  9623 		ld	de, (unk_83F3+1)
       
  9624 		call	Page7D_2CCA
       
  9625 		ld	a, (arcPage)
       
  9626 		ld	hl, (arcPtr)
       
  9627 		ld	(unk_83F1), a
       
  9628 		ld	(unk_83F1+1), hl
       
  9629 		pop	bc
       
  9630 		jp	p7Dloc_6E40
       
  9631 ; ---------------------------------------------------------------------------
       
  9632 
       
  9633 p7Dloc_6EA7:				; CODE XREF: seg001:6E6Ej
       
  9634 		ld	hl, ramStart
       
  9635 		ld	de, (unk_83F1+1)
       
  9636 		ld	a, (unk_83F1)
       
  9637 		ld	bc, (unk_83F3+1)
       
  9638 		rst	28h
       
  9639 ; ---------------------------------------------------------------------------
       
  9640 		.dw 8087h
       
  9641 ; ---------------------------------------------------------------------------
       
  9642 		ld	a, (unk_8404)
       
  9643 		ld	de, (unk_8402)
       
  9644 		ld	b, 0FCh	; '�'
       
  9645 		rst	28h
       
  9646 ; ---------------------------------------------------------------------------
       
  9647 		.dw 8021h
       
  9648 ; ---------------------------------------------------------------------------
       
  9649 		pop	af
       
  9650 		ld	(OP1), a
       
  9651 		pop	af
       
  9652 		pop	de
       
  9653 		pop	hl
       
  9654 		pop	bc
       
  9655 		ret
       
  9656 ; ---------------------------------------------------------------------------
       
  9657 		ret
       
  9658 
       
  9659 ; =============== S U B	R O U T	I N E =======================================
       
  9660 
       
  9661 
       
  9662 p7Dsub_6ECE:				; CODE XREF: seg001:p7Dloc_6E60p
       
  9663 		push	hl
       
  9664 		ld	hl, 83F4h
       
  9665 		inc	(hl)
       
  9666 		pop	hl
       
  9667 		ret
       
  9668 ; End of function p7Dsub_6ECE
       
  9669 
       
  9670 
       
  9671 ; =============== S U B	R O U T	I N E =======================================
       
  9672 
       
  9673 
       
  9674 p7Dsub_6ED5:				; CODE XREF: seg001:6E70p
       
  9675 		ld	a, (unk_83F3+1)
       
  9676 		cp	0FFh
       
  9677 		ret
       
  9678 ; End of function p7Dsub_6ED5
       
  9679 
       
  9680 
       
  9681 ; =============== S U B	R O U T	I N E =======================================
       
  9682 
       
  9683 
       
  9684 Page7D_2C10:				; CODE XREF: seg001:65D7p
       
  9685 		call	p7Dsub_75EC
       
  9686 
       
  9687 p7Dloc_6EDE:				; CODE XREF: Page7D_2C10+2Dj
       
  9688 					; Page7D_2C10+75j
       
  9689 		call	p7Dsub_7BD4
       
  9690 		call	Page7D_2B56
       
  9691 		cp	b
       
  9692 		jr	c, locret_6F53
       
  9693 		jr	z, locret_6F53
       
  9694 		ld	hl, 4000h
       
  9695 		push	af
       
  9696 		call	Page7D_2CD0
       
  9697 		cp	0
       
  9698 		jr	nz, p7Dloc_6F0A
       
  9699 		pop	af
       
  9700 		push	af
       
  9701 		call	FindAppNumPages
       
  9702 		ld	a, c
       
  9703 		or	c
       
  9704 		jr	z, p7Dloc_6F52
       
  9705 		ld	b, c
       
  9706 		ld	de, 4000h
       
  9707 
       
  9708 p7Dloc_6F01:				; CODE XREF: Page7D_2C10+29j
       
  9709 		call	p7Dsub_652E
       
  9710 		djnz	p7Dloc_6F01
       
  9711 
       
  9712 p7Dloc_6F06:				; CODE XREF: Page7D_2C10+71j
       
  9713 		pop	af
       
  9714 		sub	c
       
  9715 		jr	p7Dloc_6EDE
       
  9716 ; ---------------------------------------------------------------------------
       
  9717 
       
  9718 p7Dloc_6F0A:				; CODE XREF: Page7D_2C10+17j
       
  9719 		cp	80h ; '�'
       
  9720 		jr	nz, p7Dloc_6F52
       
  9721 		pop	af
       
  9722 		push	af
       
  9723 		call	Page0Call_3E31
       
  9724 		jr	nz, p7Dloc_6F52
       
  9725 		pop	af
       
  9726 		push	af
       
  9727 		call	Page7D_2C9A
       
  9728 		call	Page7D_2B5C
       
  9729 		jr	z, p7Dloc_6F43
       
  9730 		pop	af
       
  9731 		push	af
       
  9732 		call	FindAppNumPages
       
  9733 		ld	a, c
       
  9734 		or	c
       
  9735 		jr	z, p7Dloc_6F52
       
  9736 		ld	b, c
       
  9737 
       
  9738 p7Dloc_6F29:				; CODE XREF: Page7D_2C10+66j
       
  9739 		pop	af
       
  9740 		push	af
       
  9741 		push	bc
       
  9742 		ld	de, 4000h
       
  9743 		ld	b, 0
       
  9744 		rst	28h
       
  9745 ; ---------------------------------------------------------------------------
       
  9746 		.dw 8021h
       
  9747 ; ---------------------------------------------------------------------------
       
  9748 		ld	de, 4000h
       
  9749 		call	p7Dsub_652E
       
  9750 		pop	bc
       
  9751 		dec	b
       
  9752 		jr	z, p7Dloc_6F4E
       
  9753 		pop	af
       
  9754 		dec	a
       
  9755 		push	af
       
  9756 		jr	p7Dloc_6F29
       
  9757 ; ---------------------------------------------------------------------------
       
  9758 
       
  9759 p7Dloc_6F43:				; CODE XREF: Page7D_2C10+42j
       
  9760 		pop	af
       
  9761 		push	af
       
  9762 		call	FindAppNumPages
       
  9763 		ld	a, c
       
  9764 		or	a
       
  9765 		jr	z, p7Dloc_6F52
       
  9766 		jr	p7Dloc_6F06
       
  9767 ; ---------------------------------------------------------------------------
       
  9768 
       
  9769 p7Dloc_6F4E:				; CODE XREF: Page7D_2C10+61j
       
  9770 		pop	af
       
  9771 		dec	a
       
  9772 		jr	p7Dloc_6EDE
       
  9773 ; ---------------------------------------------------------------------------
       
  9774 
       
  9775 p7Dloc_6F52:				; CODE XREF: Page7D_2C10+20j
       
  9776 					; Page7D_2C10+31j ...
       
  9777 		pop	af
       
  9778 
       
  9779 locret_6F53:				; CODE XREF: Page7D_2C10+Aj
       
  9780 					; Page7D_2C10+Cj
       
  9781 		ret
       
  9782 ; End of function Page7D_2C10
       
  9783 
       
  9784 
       
  9785 ; =============== S U B	R O U T	I N E =======================================
       
  9786 
       
  9787 
       
  9788 Page7D_2C46:				; CODE XREF: seg001:6853p
       
  9789 					; Page7D_2EB0+72p ...
       
  9790 		push	hl
       
  9791 		push	de
       
  9792 		push	bc
       
  9793 		cp	8
       
  9794 		jp	c, p7Dloc_6F7D
       
  9795 		push	af
       
  9796 		ld	a, (OP1)
       
  9797 		push	af
       
  9798 		call	Page7D_2B56
       
  9799 		pop	af
       
  9800 		ld	(OP1), a
       
  9801 		pop	af
       
  9802 		cp	b
       
  9803 		jr	z, p7Dloc_6F6E
       
  9804 		jr	nc, p7Dloc_6F7D
       
  9805 
       
  9806 p7Dloc_6F6E:				; CODE XREF: Page7D_2C46+16j
       
  9807 		ld	bc, 4000h
       
  9808 		sbc	hl, bc
       
  9809 		jr	c, p7Dloc_6F7D
       
  9810 		ex	de, hl
       
  9811 		or	a
       
  9812 		sbc	hl, bc
       
  9813 		jr	c, p7Dloc_6F7D
       
  9814 		jr	p7Dloc_6F7E
       
  9815 ; ---------------------------------------------------------------------------
       
  9816 
       
  9817 p7Dloc_6F7D:				; CODE XREF: Page7D_2C46+5j
       
  9818 					; Page7D_2C46+18j ...
       
  9819 		scf
       
  9820 
       
  9821 p7Dloc_6F7E:				; CODE XREF: Page7D_2C46+27j
       
  9822 		pop	bc
       
  9823 		pop	de
       
  9824 		pop	hl
       
  9825 		ret
       
  9826 ; End of function Page7D_2C46
       
  9827 
       
  9828 
       
  9829 ; =============== S U B	R O U T	I N E =======================================
       
  9830 
       
  9831 
       
  9832 p7Dsub_6F82:				; CODE XREF: Page7D_2EB0+29p
       
  9833 					; Page7D_2EB0+4Bp ...
       
  9834 		push	hl
       
  9835 		push	de
       
  9836 		push	bc
       
  9837 		cp	8
       
  9838 		jp	c, p7Dloc_6FA7
       
  9839 		push	af
       
  9840 		ld	a, (OP1)
       
  9841 		push	af
       
  9842 		call	Page7D_2B56
       
  9843 		pop	af
       
  9844 		ld	(OP1), a
       
  9845 		pop	af
       
  9846 		cp	b
       
  9847 		jr	z, p7Dloc_6F9C
       
  9848 		jr	nc, p7Dloc_6FA7
       
  9849 
       
  9850 p7Dloc_6F9C:				; CODE XREF: p7Dsub_6F82+16j
       
  9851 		ld	bc, 4000h
       
  9852 		ex	de, hl
       
  9853 		or	a
       
  9854 		sbc	hl, bc
       
  9855 		jr	c, p7Dloc_6FA7
       
  9856 		jr	p7Dloc_6FA8
       
  9857 ; ---------------------------------------------------------------------------
       
  9858 
       
  9859 p7Dloc_6FA7:				; CODE XREF: p7Dsub_6F82+5j p7Dsub_6F82+18j	...
       
  9860 		scf
       
  9861 
       
  9862 p7Dloc_6FA8:				; CODE XREF: p7Dsub_6F82+23j
       
  9863 		pop	bc
       
  9864 		pop	de
       
  9865 		pop	hl
       
  9866 		ret
       
  9867 ; End of function p7Dsub_6F82
       
  9868 
       
  9869 
       
  9870 ; =============== S U B	R O U T	I N E =======================================
       
  9871 
       
  9872 
       
  9873 p7Dsub_6FAC:				; CODE XREF: seg001:4011p
       
  9874 					; DeleteApp+11p
       
  9875 		push	hl
       
  9876 		push	bc
       
  9877 		call	p7Dsub_75E1
       
  9878 		jr	nc, p7Dloc_6FBD
       
  9879 		call	Page7D_2B56
       
  9880 		cp	b
       
  9881 		jr	c, p7Dloc_6FBA
       
  9882 		or	a
       
  9883 
       
  9884 p7Dloc_6FBA:				; CODE XREF: p7Dsub_6FAC+Bj p7Dsub_6FAC+12j
       
  9885 		pop	bc
       
  9886 		pop	hl
       
  9887 		ret
       
  9888 ; ---------------------------------------------------------------------------
       
  9889 
       
  9890 p7Dloc_6FBD:				; CODE XREF: p7Dsub_6FAC+5j
       
  9891 		scf
       
  9892 		jr	p7Dloc_6FBA
       
  9893 ; End of function p7Dsub_6FAC
       
  9894 
       
  9895 
       
  9896 ; =============== S U B	R O U T	I N E =======================================
       
  9897 
       
  9898 
       
  9899 p7Dsub_6FC0:				; CODE XREF: seg001:634Cp
       
  9900 		push	hl
       
  9901 		push	bc
       
  9902 		push	de
       
  9903 		ld	hl, 4000h
       
  9904 		ld	de, 80C0h
       
  9905 		rst	28h
       
  9906 ; ---------------------------------------------------------------------------
       
  9907 		.dw 8075h
       
  9908 ; ---------------------------------------------------------------------------
       
  9909 		jr	nz, p7Dloc_6FF4
       
  9910 		inc	hl
       
  9911 		ld	a, (appPage)
       
  9912 		rst	28h
       
  9913 ; ---------------------------------------------------------------------------
       
  9914 		.dw 805Ah
       
  9915 ; ---------------------------------------------------------------------------
       
  9916 		ld	a, (appPage)
       
  9917 		call	p7Dsub_5CFF
       
  9918 		call	GetBaseVer
       
  9919 		ld	b, a
       
  9920 		ld	a, (MD5Buffer)
       
  9921 		cp	b
       
  9922 		jr	z, p7Dloc_6FE9
       
  9923 		jr	c, p7Dloc_6FF4
       
  9924 		jr	p7Dloc_6FF5
       
  9925 ; ---------------------------------------------------------------------------
       
  9926 
       
  9927 p7Dloc_6FE9:				; CODE XREF: p7Dsub_6FC0+23j
       
  9928 		call	GetBaseVer
       
  9929 		ld	a, (unk_83A6)
       
  9930 		cp	b
       
  9931 		jr	z, p7Dloc_6FF4
       
  9932 		jr	nc, p7Dloc_6FF5
       
  9933 
       
  9934 p7Dloc_6FF4:				; CODE XREF: p7Dsub_6FC0+Cj p7Dsub_6FC0+25j	...
       
  9935 		xor	a
       
  9936 
       
  9937 p7Dloc_6FF5:				; CODE XREF: p7Dsub_6FC0+27j p7Dsub_6FC0+32j
       
  9938 		pop	de
       
  9939 		pop	bc
       
  9940 		pop	hl
       
  9941 		ret
       
  9942 ; End of function p7Dsub_6FC0
       
  9943 
       
  9944 
       
  9945 ; =============== S U B	R O U T	I N E =======================================
       
  9946 
       
  9947 
       
  9948 p7Dsub_6FF9:				; CODE XREF: seg001:6355p
       
  9949 		push	hl
       
  9950 		push	bc
       
  9951 		push	de
       
  9952 		bit	5, (iy+24h)
       
  9953 		jr	nz, p7Dloc_701F
       
  9954 		ld	a, (appPage)
       
  9955 		ld	hl, 4000h
       
  9956 		ld	de, 80A0h
       
  9957 		rst	28h
       
  9958 ; ---------------------------------------------------------------------------
       
  9959 		.dw 8075h
       
  9960 ; ---------------------------------------------------------------------------
       
  9961 		jr	nz, p7Dloc_7024
       
  9962 		inc	hl
       
  9963 		ld	a, (appPage)
       
  9964 		rst	28h
       
  9965 ; ---------------------------------------------------------------------------
       
  9966 		.dw 805Ah
       
  9967 ; ---------------------------------------------------------------------------
       
  9968 		ld	a, b
       
  9969 		or	c
       
  9970 		jr	z, p7Dloc_7024
       
  9971 		ld	a, (hl)
       
  9972 		or	a
       
  9973 		jr	z, p7Dloc_7024
       
  9974 
       
  9975 p7Dloc_701F:				; CODE XREF: p7Dsub_6FF9+7j
       
  9976 		call	page0_BB1
       
  9977 		jr	p7Dloc_7027
       
  9978 ; ---------------------------------------------------------------------------
       
  9979 
       
  9980 p7Dloc_7024:				; CODE XREF: p7Dsub_6FF9+15j p7Dsub_6FF9+20j ...
       
  9981 		call	page0_B8D
       
  9982 
       
  9983 p7Dloc_7027:				; CODE XREF: p7Dsub_6FF9+29j
       
  9984 		pop	de
       
  9985 		pop	bc
       
  9986 		pop	hl
       
  9987 		ret
       
  9988 ; End of function p7Dsub_6FF9
       
  9989 
       
  9990 ; ---------------------------------------------------------------------------
       
  9991 aDeleting___:	.asc 'Deleting...',0
       
  9992 aHaveExpired_:	.asc 'Have Expired.',0
       
  9993 
       
  9994 ; =============== S U B	R O U T	I N E =======================================
       
  9995 
       
  9996 
       
  9997 p7Dsub_7045:				; CODE XREF: p7Dsub_4926+29p p7Dsub_4926+3Bp ...
       
  9998 		push	bc
       
  9999 		push	af
       
 10000 		ld	a, (winBtm)
       
 10001 		ld	b, a
       
 10002 
       
 10003 p7Dloc_704B:				; CODE XREF: p7Dsub_7045+13j
       
 10004 		ld	a, (hl)
       
 10005 		inc	hl
       
 10006 		or	a
       
 10007 		scf
       
 10008 		jr	z, p7Dloc_705A
       
 10009 		call	Page0Call_3F9F
       
 10010 		ld	a, (curRow)
       
 10011 		cp	b
       
 10012 		jr	c, p7Dloc_704B
       
 10013 
       
 10014 p7Dloc_705A:				; CODE XREF: p7Dsub_7045+Aj
       
 10015 		pop	bc
       
 10016 		ld	a, b
       
 10017 		pop	bc
       
 10018 		ret
       
 10019 ; End of function p7Dsub_7045
       
 10020 
       
 10021 
       
 10022 ; =============== S U B	R O U T	I N E =======================================
       
 10023 
       
 10024 
       
 10025 p7Dsub_705E:				; CODE XREF: p7Dsub_464E+15p p7Dsub_4AC9+16p ...
       
 10026 		ld	a, 7Eh ; '~'
       
 10027 ; End of function p7Dsub_705E
       
 10028 
       
 10029 
       
 10030 ; =============== S U B	R O U T	I N E =======================================
       
 10031 
       
 10032 
       
 10033 p7Dsub_7060:				; CODE XREF: p7Dsub_7240+17Bp
       
 10034 					; seg001:7790p
       
 10035 		push	ix
       
 10036 
       
 10037 p7Dloc_7062:				; CODE XREF: p7Dsub_7060+35j
       
 10038 		push	af
       
 10039 		rst	28h
       
 10040 ; ---------------------------------------------------------------------------
       
 10041 		.dw 8051h
       
 10042 ; ---------------------------------------------------------------------------
       
 10043 		cp	d
       
 10044 		jr	nz, p7Dloc_709E
       
 10045 		inc	hl
       
 10046 		pop	af
       
 10047 		push	af
       
 10048 		rst	28h
       
 10049 ; ---------------------------------------------------------------------------
       
 10050 		.dw 8051h
       
 10051 ; ---------------------------------------------------------------------------
       
 10052 		and	0F0h ; '�'
       
 10053 		cp	e
       
 10054 		jr	nz, p7Dloc_7078
       
 10055 		pop	af
       
 10056 		dec	hl
       
 10057 		jr	p7Dloc_70A2
       
 10058 ; ---------------------------------------------------------------------------
       
 10059 
       
 10060 p7Dloc_7078:				; CODE XREF: p7Dsub_7060+12j
       
 10061 		pop	af
       
 10062 		push	af
       
 10063 		push	de
       
 10064 		rst	28h
       
 10065 ; ---------------------------------------------------------------------------
       
 10066 		.dw 805Ah
       
 10067 ; ---------------------------------------------------------------------------
       
 10068 		pop	de
       
 10069 		add	hl, bc
       
 10070 		ld	(arcInfo), hl
       
 10071 		pop	af
       
 10072 		push	af
       
 10073 		push	hl
       
 10074 		inc	hl
       
 10075 		rst	28h
       
 10076 ; ---------------------------------------------------------------------------
       
 10077 		.dw 8051h
       
 10078 ; ---------------------------------------------------------------------------
       
 10079 		and	0F0h ; '�'
       
 10080 		cp	e
       
 10081 		jr	z, p7Dloc_7093
       
 10082 		cp	10h
       
 10083 		jr	z, p7Dloc_7097
       
 10084 
       
 10085 p7Dloc_7093:				; CODE XREF: p7Dsub_7060+2Dj
       
 10086 		pop	hl
       
 10087 		pop	af
       
 10088 		jr	p7Dloc_7062
       
 10089 ; ---------------------------------------------------------------------------
       
 10090 
       
 10091 p7Dloc_7097:				; CODE XREF: p7Dsub_7060+31j
       
 10092 		pop	hl
       
 10093 		ld	hl, (arcInfo)
       
 10094 		ld	a, 1
       
 10095 		or	a
       
 10096 
       
 10097 p7Dloc_709E:				; CODE XREF: p7Dsub_7060+7j
       
 10098 		pop	bc
       
 10099 		pop	ix
       
 10100 		ret
       
 10101 ; ---------------------------------------------------------------------------
       
 10102 
       
 10103 p7Dloc_70A2:				; CODE XREF: p7Dsub_7060+16j
       
 10104 		ld	a, 0
       
 10105 		bit	7, a
       
 10106 		pop	ix
       
 10107 		ret
       
 10108 ; End of function p7Dsub_7060
       
 10109 
       
 10110 ; ---------------------------------------------------------------------------
       
 10111 
       
 10112 Page7D_2CFA:
       
 10113 		push	af
       
 10114 		ld	a, 1
       
 10115 		nop
       
 10116 		di
       
 10117 		nop
       
 10118 		nop
       
 10119 		im	1
       
 10120 		di
       
 10121 		out	(14h), a
       
 10122 		di
       
 10123 		call	checkForFlashTrickery
       
 10124 		pop	af
       
 10125 		call	Page0Call_240A
       
 10126 		ld	e, (hl)
       
 10127 		dec	hl
       
 10128 		ld	d, (hl)
       
 10129 		dec	hl
       
 10130 		ld	a, (hl)
       
 10131 		ld	b, 0FCh	; '�'
       
 10132 		call	Page7D_2C46
       
 10133 		jp	c, Page0Call_2541
       
 10134 		rst	28h
       
 10135 ; ---------------------------------------------------------------------------
       
 10136 		.dw 8021h
       
 10137 ; ---------------------------------------------------------------------------
       
 10138 		call	Page7D_3E10
       
 10139 		ret
       
 10140 
       
 10141 ; =============== S U B	R O U T	I N E =======================================
       
 10142 
       
 10143 
       
 10144 p7Dsub_70D1:				; CODE XREF: p7Dsub_4442+2p p7Dsub_4498+Cp ...
       
 10145 		ld	de, 300h
       
 10146 		rst	28h
       
 10147 ; ---------------------------------------------------------------------------
       
 10148 		.dw 8027h
       
 10149 ; ---------------------------------------------------------------------------
       
 10150 		ret
       
 10151 ; End of function p7Dsub_70D1
       
 10152 
       
 10153 ; ---------------------------------------------------------------------------
       
 10154 aCert_Revision:	.asc 'Cert. Revision #',0
       
 10155 ; ---------------------------------------------------------------------------
       
 10156 
       
 10157 Page7D_3C60:
       
 10158 		push	af
       
 10159 		ld	a, 1
       
 10160 		nop
       
 10161 		di
       
 10162 		nop
       
 10163 		nop
       
 10164 		im	1
       
 10165 		di
       
 10166 		out	(14h), a
       
 10167 		di
       
 10168 		call	checkForFlashTrickery
       
 10169 		pop	af
       
 10170 		call	p7Dsub_70D1
       
 10171 		jp	nz, relockFlashBack
       
 10172 		push	hl
       
 10173 		ld	hl, aCert_Revision
       
 10174 		ld	de, OP1
       
 10175 		ld	bc, 12h
       
 10176 
       
 10177 p7Dloc_710A:				; CODE XREF: seg001:710Ej
       
 10178 		ld	a, (hl)
       
 10179 		ld	(de), a
       
 10180 		inc	hl
       
 10181 		inc	de
       
 10182 		djnz	p7Dloc_710A
       
 10183 		ld	hl, OP1
       
 10184 		call	Page0Call_3D4D
       
 10185 		ld	a, 7Eh ; '~'
       
 10186 		pop	hl
       
 10187 		call	p7Dsub_4873
       
 10188 		push	bc
       
 10189 		pop	hl
       
 10190 		call	p7Dsub_598E
       
 10191 		jp	relockFlashBack
       
 10192 
       
 10193 ; =============== S U B	R O U T	I N E =======================================
       
 10194 
       
 10195 
       
 10196 p7Dsub_7124:				; CODE XREF: p7Dsub_6428+10p p7Dsub_7240-EDp ...
       
 10197 		ld	a, (header)
       
 10198 		cp	23h ; '#'
       
 10199 		ret
       
 10200 ; End of function p7Dsub_7124
       
 10201 
       
 10202 ; ---------------------------------------------------------------------------
       
 10203 
       
 10204 Page7D_2BB6:
       
 10205 		ld	bc, (unk_8685)
       
 10206 		sub	c
       
 10207 		ld	hl, (unk_8683)
       
 10208 		push	af
       
 10209 		ld	a, (unk_8434)
       
 10210 		sub	c
       
 10211 		call	p7Dsub_5EFC
       
 10212 		jr	c, p7Dloc_7150
       
 10213 		pop	af
       
 10214 		ld	bc, (ioData)
       
 10215 		push	hl
       
 10216 		push	bc
       
 10217 		push	af
       
 10218 		ld	h, 9
       
 10219 		call	Page0Call_2C5B
       
 10220 		pop	af
       
 10221 		pop	bc
       
 10222 		pop	hl
       
 10223 		call	p7Dsub_7240
       
 10224 		ret
       
 10225 ; ---------------------------------------------------------------------------
       
 10226 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
       
 10227 
       
 10228 p7Dloc_7150:				; CODE XREF: seg001:713Aj
       
 10229 					; p7Dsub_7240:p7Dloc_74EDj ...
       
 10230 		call	relockFlashBack
       
 10231 		call	p7Dsub_7124
       
 10232 		push	af
       
 10233 		jr	z, p7Dloc_715C
       
 10234 		call	popErrorHandleR
       
 10235 
       
 10236 p7Dloc_715C:				; CODE XREF: p7Dsub_7240-E9j
       
 10237 		pop	af
       
 10238 		push	af
       
 10239 		jr	z, p7Dloc_7166
       
 10240 		ld	hl, Page0Call_2C79
       
 10241 		call	pushErrorHandleR
       
 10242 
       
 10243 p7Dloc_7166:				; CODE XREF: p7Dsub_7240-E2j
       
 10244 		call	Page0Call_3D2F
       
 10245 		ld	a, 0Bh
       
 10246 		call	Page0Call_2C49
       
 10247 		pop	af
       
 10248 		jr	z, p7Dloc_7174
       
 10249 		call	popErrorHandleR
       
 10250 
       
 10251 p7Dloc_7174:				; CODE XREF: p7Dsub_7240-D1j
       
 10252 		call	Page0Call_3D05
       
 10253 		jp	Page0Call_2541
       
 10254 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
       
 10255 
       
 10256 ; =============== S U B	R O U T	I N E =======================================
       
 10257 
       
 10258 
       
 10259 p7Dsub_717A:				; CODE XREF: p7Dsub_7240+19Dp
       
 10260 					; seg001:77ABp
       
 10261 		ld	hl, ramStart
       
 10262 		ld	de, 81AFh
       
 10263 		jr	p7Dloc_7188
       
 10264 ; End of function p7Dsub_717A
       
 10265 
       
 10266 
       
 10267 ; =============== S U B	R O U T	I N E =======================================
       
 10268 
       
 10269 
       
 10270 p7Dsub_7182:				; CODE XREF: p7Dsub_7240+1B1p
       
 10271 					; p7Dsub_7240+1EDp ...
       
 10272 		ld	hl, 81AFh
       
 10273 		ld	de, ramStart
       
 10274 
       
 10275 p7Dloc_7188:				; CODE XREF: p7Dsub_717A+6j
       
 10276 		ld	bc, 80h	; '�'
       
 10277 		ldir
       
 10278 		ret
       
 10279 ; End of function p7Dsub_7182
       
 10280 
       
 10281 ; ---------------------------------------------------------------------------
       
 10282 
       
 10283 WriteToFlash:
       
 10284 		cp	0
       
 10285 		jr	z, p7Dloc_71B3
       
 10286 		cp	1
       
 10287 		jp	z, Page7D_2BE0
       
 10288 		cp	2
       
 10289 		jp	z, p7Dloc_7E57
       
 10290 		cp	3
       
 10291 		jp	z, p7Dloc_7E31
       
 10292 		cp	4
       
 10293 		jp	z, p7Dsub_7D67
       
 10294 		cp	5
       
 10295 		jp	z, p7Dloc_7E8D
       
 10296 		cp	6
       
 10297 		jp	z, p7Dloc_7E91
       
 10298 		jp	ErrInvalid
       
 10299 ; ---------------------------------------------------------------------------
       
 10300 
       
 10301 p7Dloc_71B3:				; CODE XREF: seg001:7190j
       
 10302 		push	ix
       
 10303 		ld	a, (ramCodeEnd)
       
 10304 		or	a
       
 10305 		ld	a, e
       
 10306 		jr	nz, p7Dloc_71D9
       
 10307 		push	hl
       
 10308 		push	bc
       
 10309 		call	p7Dsub_7B72
       
 10310 		pop	bc
       
 10311 		pop	hl
       
 10312 		or	a
       
 10313 		jp	z, Page7D_2BBC
       
 10314 		push	hl
       
 10315 		ld	de, 4000h
       
 10316 		sbc	hl, de
       
 10317 		jp	nz, Page0Call_2541
       
 10318 		ld	hl, 7Fh	; ''
       
 10319 		sbc	hl, bc
       
 10320 		jp	nc, Page0Call_2541
       
 10321 		pop	hl
       
 10322 
       
 10323 p7Dloc_71D9:				; CODE XREF: seg001:71BAj
       
 10324 		push	af
       
 10325 		ld	(appSearchPage+1), a
       
 10326 		call	p7Dsub_5EFC
       
 10327 		jp	c, Page0Call_2541
       
 10328 		push	hl
       
 10329 		ld	de, 4080h
       
 10330 		sbc	hl, de
       
 10331 		pop	hl
       
 10332 		jr	nc, p7Dloc_71FD
       
 10333 		ld	a, (ramCodeEnd)
       
 10334 		or	a
       
 10335 		jr	z, p7Dloc_71FD
       
 10336 		ld	a, (unk_8434)
       
 10337 		ld	e, a
       
 10338 		ld	a, (appSearchPage+1)
       
 10339 		cp	e
       
 10340 		jp	z, Page0Call_2541
       
 10341 
       
 10342 p7Dloc_71FD:				; CODE XREF: seg001:71EAj seg001:71F0j
       
 10343 		xor	a
       
 10344 		ld	(appInfo), a
       
 10345 		ld	(unk_843B), hl
       
 10346 		ld	(unk_8439), bc
       
 10347 		push	af
       
 10348 		ld	a, 1
       
 10349 		nop
       
 10350 		di
       
 10351 		nop
       
 10352 		nop
       
 10353 		im	1
       
 10354 		di
       
 10355 		out	(14h), a
       
 10356 		di
       
 10357 		call	checkForFlashTrickery
       
 10358 		pop	af
       
 10359 		res	6, (iy+24h)
       
 10360 		res	7, (iy+24h)
       
 10361 		xor	a
       
 10362 		ld	(unk_9C87), a
       
 10363 
       
 10364 p7Dloc_7225:				; CODE XREF: seg001:723Bj
       
 10365 		push	bc
       
 10366 		ld	a, (unk_83A4)
       
 10367 		cp	0
       
 10368 		jr	z, p7Dloc_7234
       
 10369 		ld	a, (unk_83A3)
       
 10370 		inc	a
       
 10371 		ld	(unk_83A3), a
       
 10372 
       
 10373 p7Dloc_7234:				; CODE XREF: seg001:722Bj
       
 10374 		call	p7Dsub_7CBB
       
 10375 		pop	bc
       
 10376 		dec	bc
       
 10377 		ld	a, b
       
 10378 		or	c
       
 10379 		jr	nz, p7Dloc_7225
       
 10380 		jp	p7Dloc_739B
       
 10381 
       
 10382 ; =============== S U B	R O U T	I N E =======================================
       
 10383 
       
 10384 
       
 10385 p7Dsub_7240:				; CODE XREF: seg001:714Cp
       
 10386 
       
 10387 ; FUNCTION CHUNK AT 7150 SIZE 0000002A BYTES
       
 10388 ; FUNCTION CHUNK AT 72D2 SIZE 0000005D BYTES
       
 10389 ; FUNCTION CHUNK AT 7336 SIZE 00000005 BYTES
       
 10390 ; FUNCTION CHUNK AT 7345 SIZE 0000022A BYTES
       
 10391 ; FUNCTION CHUNK AT 75A5 SIZE 0000000C BYTES
       
 10392 ; FUNCTION CHUNK AT 75B4 SIZE 00000004 BYTES
       
 10393 
       
 10394 		push	ix
       
 10395 		push	af
       
 10396 		ld	(appSearchPage+1), a
       
 10397 		xor	a
       
 10398 		ld	(sndRecState), a
       
 10399 		ex	de, hl
       
 10400 		ld	(unk_843B), de
       
 10401 		push	bc
       
 10402 		call	Page0Call_2C61
       
 10403 		pop	bc
       
 10404 		ld	hl, ioFlag
       
 10405 		ld	a, (unk_8675)
       
 10406 		cp	15h
       
 10407 		jp	nz, p7Dloc_733F
       
 10408 		push	af
       
 10409 		ld	a, 1
       
 10410 		nop
       
 10411 		di
       
 10412 		nop
       
 10413 		nop
       
 10414 		im	1
       
 10415 		di
       
 10416 		out	(14h), a
       
 10417 		di
       
 10418 		call	checkForFlashTrickery
       
 10419 		pop	af
       
 10420 		ld	hl, (unk_8676)
       
 10421 		or	a
       
 10422 		sbc	hl, bc
       
 10423 		jp	nz, p7Dloc_733F
       
 10424 		res	6, (iy+24h)
       
 10425 		res	7, (iy+24h)
       
 10426 		xor	a
       
 10427 		ld	(unk_9C87), a
       
 10428 		ld	bc, (unk_8676)
       
 10429 		ld	de, 0
       
 10430 		ld	(unk_8678), de
       
 10431 		ld	a, c
       
 10432 		or	b
       
 10433 		jp	z, p7Dloc_7363
       
 10434 		ld	hl, ramStart
       
 10435 		ld	(unk_8439), bc
       
 10436 
       
 10437 p7Dloc_729C:				; CODE XREF: p7Dsub_7240+120j
       
 10438 		call	CHKERRBREAK
       
 10439 		jp	z, p7Dloc_7345
       
 10440 		jp	JErrorNo
       
 10441 ; End of function p7Dsub_7240
       
 10442 
       
 10443 ; ---------------------------------------------------------------------------
       
 10444 ; START	OF FUNCTION CHUNK FOR p7Dsub_7BEA
       
 10445 
       
 10446 Page7D_2BBC:				; CODE XREF: seg001:71C4j
       
 10447 					; p7Dsub_7240+1C0j ...
       
 10448 		call	p7Dsub_733B
       
 10449 		call	relockFlashBack
       
 10450 		call	p7Dsub_7124
       
 10451 		push	af
       
 10452 		jr	z, p7Dloc_72B4
       
 10453 		call	popErrorHandleR
       
 10454 
       
 10455 p7Dloc_72B4:				; CODE XREF: p7Dsub_7BEA-93Bj
       
 10456 		pop	af
       
 10457 		push	af
       
 10458 		jr	z, p7Dloc_72BE
       
 10459 		ld	hl, Page0Call_2C79
       
 10460 		call	pushErrorHandleR
       
 10461 
       
 10462 p7Dloc_72BE:				; CODE XREF: p7Dsub_7BEA-934j
       
 10463 		call	Page0Call_3D2F
       
 10464 		ld	a, 1
       
 10465 		call	Page0Call_2C49
       
 10466 		pop	af
       
 10467 		jr	z, p7Dloc_72CC
       
 10468 		call	popErrorHandleR
       
 10469 
       
 10470 p7Dloc_72CC:				; CODE XREF: p7Dsub_7BEA-923j
       
 10471 		call	Page0Call_3D05
       
 10472 		jp	ErrMemory
       
 10473 ; END OF FUNCTION CHUNK	FOR p7Dsub_7BEA
       
 10474 ; ---------------------------------------------------------------------------
       
 10475 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
       
 10476 
       
 10477 p7Dloc_72D2:				; CODE XREF: p7Dsub_7240+173j
       
 10478 		call	p7Dsub_733B
       
 10479 		call	relockFlashBack
       
 10480 		call	p7Dsub_7124
       
 10481 		push	af
       
 10482 		jr	z, p7Dloc_72E1
       
 10483 		call	popErrorHandleR
       
 10484 
       
 10485 p7Dloc_72E1:				; CODE XREF: p7Dsub_7240+9Cj
       
 10486 		pop	af
       
 10487 		push	af
       
 10488 		jr	z, p7Dloc_72EB
       
 10489 		ld	hl, Page0Call_2C79
       
 10490 		call	pushErrorHandleR
       
 10491 
       
 10492 p7Dloc_72EB:				; CODE XREF: p7Dsub_7240+A3j
       
 10493 		call	Page0Call_3D2F
       
 10494 		ld	a, 7
       
 10495 		call	Page0Call_2C49
       
 10496 		pop	af
       
 10497 		jr	z, p7Dloc_72F9
       
 10498 		call	popErrorHandleR
       
 10499 
       
 10500 p7Dloc_72F9:				; CODE XREF: p7Dsub_7240+B4j
       
 10501 		call	Page0Call_2C55
       
 10502 		call	Page0Call_3D05
       
 10503 		jp	Page0Call_2539
       
 10504 ; ---------------------------------------------------------------------------
       
 10505 
       
 10506 p7Dloc_7302:				; CODE XREF: p7Dsub_7240+183j
       
 10507 		call	p7Dsub_733B
       
 10508 		call	relockFlashBack
       
 10509 		call	p7Dsub_7124
       
 10510 		push	af
       
 10511 		jr	z, p7Dloc_7311
       
 10512 		call	popErrorHandleR
       
 10513 
       
 10514 p7Dloc_7311:				; CODE XREF: p7Dsub_7240+CCj
       
 10515 		pop	af
       
 10516 		push	af
       
 10517 		jr	z, p7Dloc_731B
       
 10518 		ld	hl, Page0Call_2C79
       
 10519 		call	pushErrorHandleR
       
 10520 
       
 10521 p7Dloc_731B:				; CODE XREF: p7Dsub_7240+D3j
       
 10522 		call	Page0Call_3D2F
       
 10523 		ld	a, 9
       
 10524 		call	Page0Call_2C49
       
 10525 		pop	af
       
 10526 		jr	z, p7Dloc_7329
       
 10527 		call	popErrorHandleR
       
 10528 
       
 10529 p7Dloc_7329:				; CODE XREF: p7Dsub_7240+E4j
       
 10530 		call	Page0Call_3D05
       
 10531 		jp	Page0Call_253D
       
 10532 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
       
 10533 ; ---------------------------------------------------------------------------
       
 10534 ; START	OF FUNCTION CHUNK FOR p7Dsub_75B8
       
 10535 
       
 10536 p7Dloc_732F:				; CODE XREF: p7Dsub_75B8:p7Dloc_75B1j
       
 10537 		call	p7Dsub_733B
       
 10538 		call	Page0Call_2C49
       
 10539 		ret
       
 10540 ; END OF FUNCTION CHUNK	FOR p7Dsub_75B8
       
 10541 ; ---------------------------------------------------------------------------
       
 10542 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
       
 10543 
       
 10544 p7Dloc_7336:				; CODE XREF: p7Dsub_7240+36Ej
       
 10545 		ld	h, 36h ; '6'
       
 10546 		jp	Page0Call_2C73
       
 10547 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
       
 10548 
       
 10549 ; =============== S U B	R O U T	I N E =======================================
       
 10550 
       
 10551 
       
 10552 p7Dsub_733B:				; CODE XREF: p7Dsub_7BEA:Page7D_2BBCp
       
 10553 					; p7Dsub_7240:p7Dloc_72D2p ...
       
 10554 		call	p7Dsub_7CB2
       
 10555 		ret	nz
       
 10556 
       
 10557 p7Dloc_733F:				; CODE XREF: p7Dsub_7240+1Cj p7Dsub_7240+36j
       
 10558 		call	relockFlashBack
       
 10559 		jp	JErrorNo
       
 10560 ; End of function p7Dsub_733B
       
 10561 
       
 10562 ; ---------------------------------------------------------------------------
       
 10563 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
       
 10564 
       
 10565 p7Dloc_7345:				; CODE XREF: p7Dsub_7240+5Fj
       
 10566 		push	bc
       
 10567 		call	j_RecAByteIO
       
 10568 		ld	(hl), a
       
 10569 		call	p7Dsub_7CA5
       
 10570 		inc	hl
       
 10571 		ex	de, hl
       
 10572 		ld	b, 0
       
 10573 		ld	hl, (unk_8678)
       
 10574 		add	hl, bc
       
 10575 		ld	(unk_8678), hl
       
 10576 		ex	de, hl
       
 10577 		call	p7Dsub_7CBB
       
 10578 		pop	bc
       
 10579 		dec	bc
       
 10580 		ld	a, b
       
 10581 		or	c
       
 10582 		jp	nz, p7Dloc_729C
       
 10583 
       
 10584 p7Dloc_7363:				; CODE XREF: p7Dsub_7240+52j
       
 10585 		call	j_RecAByteIO
       
 10586 		push	af
       
 10587 		call	j_RecAByteIO
       
 10588 		ld	b, a
       
 10589 		pop	af
       
 10590 		ld	c, a
       
 10591 		in	a, (2)
       
 10592 		and	80h ; '�'
       
 10593 		jr	z, p7Dloc_738A
       
 10594 		in	a, (20h)
       
 10595 		and	1
       
 10596 		jr	z, p7Dloc_738A
       
 10597 		xor	a
       
 10598 		out	(20h), a
       
 10599 		ld	de, 0FEh ; '�'
       
 10600 
       
 10601 p7Dloc_737F:				; CODE XREF: p7Dsub_7240+142j
       
 10602 		dec	de
       
 10603 		ld	a, d
       
 10604 		or	e
       
 10605 		jr	nz, p7Dloc_737F
       
 10606 		ld	a, 1
       
 10607 		out	(20h), a
       
 10608 		jr	p7Dloc_7392
       
 10609 ; ---------------------------------------------------------------------------
       
 10610 
       
 10611 p7Dloc_738A:				; CODE XREF: p7Dsub_7240+131j
       
 10612 					; p7Dsub_7240+137j
       
 10613 		ld	de, 100h
       
 10614 
       
 10615 p7Dloc_738D:				; CODE XREF: p7Dsub_7240+150j
       
 10616 		dec	de
       
 10617 		ld	a, d
       
 10618 		or	e
       
 10619 		jr	nz, p7Dloc_738D
       
 10620 
       
 10621 p7Dloc_7392:				; CODE XREF: p7Dsub_7240+148j
       
 10622 		ld	hl, (unk_8678)
       
 10623 		or	a
       
 10624 		sbc	hl, bc
       
 10625 		jp	nz, p7Dloc_75A5
       
 10626 
       
 10627 p7Dloc_739B:				; CODE XREF: seg001:723Dj
       
 10628 		call	p7Dsub_5E0A
       
 10629 		ld	a, (ramCodeEnd)
       
 10630 		cp	0
       
 10631 		jp	nz, p7Dloc_74BC
       
 10632 		ld	de, (unk_843B)
       
 10633 		push	de
       
 10634 		rst	28h
       
 10635 ; ---------------------------------------------------------------------------
       
 10636 		.dw 8063h
       
 10637 ; ---------------------------------------------------------------------------
       
 10638 		pop	de
       
 10639 		ld	(unk_843B), de
       
 10640 		jp	nz, p7Dloc_72D2
       
 10641 		ld	a, 1
       
 10642 		ld	de, 8050h
       
 10643 		call	p7Dsub_7060
       
 10644 		jr	nz, p7Dloc_73C6
       
 10645 		call	p7Dsub_50C5
       
 10646 		jp	nz, p7Dloc_7302
       
 10647 
       
 10648 p7Dloc_73C6:				; CODE XREF: p7Dsub_7240+17Ej
       
 10649 		call	p7Dsub_75B8
       
 10650 		ld	a, (appInfo)
       
 10651 		cp	0
       
 10652 		jp	nz, p7Dloc_75B4
       
 10653 		di
       
 10654 		ld	hl, (curRow)
       
 10655 		push	hl
       
 10656 		call	Page0Call_3CD5
       
 10657 		ld	a, (ioFlag)
       
 10658 		push	af
       
 10659 		call	p7Dsub_717A
       
 10660 		res	2, (iy+25h)
       
 10661 		call	Chk_Batt_Low
       
 10662 		jp	z, ErrInvalid
       
 10663 		ld	a, 0
       
 10664 		ld	b, 0
       
 10665 		call	Page0Call_2EB9
       
 10666 		call	p7Dsub_7182
       
 10667 		pop	af
       
 10668 		pop	hl
       
 10669 		ld	(curRow), hl
       
 10670 		ld	(ioFlag), a
       
 10671 		call	p7Dsub_7B72
       
 10672 		or	a
       
 10673 		jp	z, Page7D_2BBC
       
 10674 		push	af
       
 10675 		call	p7Dsub_7BEA
       
 10676 		jr	c, p7Dloc_740C
       
 10677 
       
 10678 p7Dloc_7409:				; CODE XREF: p7Dsub_7240+1EBj
       
 10679 		jp	nz, Page7D_2BBC
       
 10680 
       
 10681 p7Dloc_740C:				; CODE XREF: p7Dsub_7240+1C7j
       
 10682 		xor	a
       
 10683 		cp	d
       
 10684 		jp	z, ErrInvalid
       
 10685 		push	de
       
 10686 		call	FindSwapSector
       
 10687 		cp	8
       
 10688 		jr	z, p7Dloc_7430
       
 10689 		add	a, 4
       
 10690 		ld	b, a
       
 10691 		ld	a, c
       
 10692 		sub	d
       
 10693 		cp	b
       
 10694 		jr	nc, p7Dloc_7430
       
 10695 		ld	a, 5
       
 10696 		call	Page0Call_2EB9
       
 10697 		call	FindSwapSector
       
 10698 		cp	8
       
 10699 		jr	nz, p7Dloc_7409
       
 10700 		call	p7Dsub_7182
       
 10701 
       
 10702 p7Dloc_7430:				; CODE XREF: p7Dsub_7240+1D7j
       
 10703 					; p7Dsub_7240+1DFj
       
 10704 		ld	a, (appSearchPage)
       
 10705 		call	Page7D_2C16
       
 10706 		ld	a, 1
       
 10707 		ld	hl, ramStart
       
 10708 		call	Page7D_2C9A
       
 10709 		call	p7Dsub_7CB2
       
 10710 		jr	z, p7Dloc_7453
       
 10711 		ld	a, 19h
       
 10712 		ld	(sndRecState), a
       
 10713 		call	Page0Call_2E23
       
 10714 		call	Page0Call_2DE7
       
 10715 		di
       
 10716 		xor	a
       
 10717 		ld	(sndRecState), a
       
 10718 
       
 10719 p7Dloc_7453:				; CODE XREF: p7Dsub_7240+201j
       
 10720 		pop	de
       
 10721 		pop	af
       
 10722 		push	de
       
 10723 		push	af
       
 10724 		ld	a, 1
       
 10725 		nop
       
 10726 		di
       
 10727 		nop
       
 10728 		nop
       
 10729 		im	1
       
 10730 		di
       
 10731 		out	(14h), a
       
 10732 		di
       
 10733 		call	checkForFlashTrickery
       
 10734 		pop	af
       
 10735 		call	p7Dsub_519D
       
 10736 		call	p7Dsub_5E90
       
 10737 		ld	hl, ramStart
       
 10738 		call	p7Dsub_5757
       
 10739 		ld	hl, (unk_83A1)
       
 10740 		call	p7Dsub_57C5
       
 10741 		push	hl
       
 10742 		ld	a, 1
       
 10743 		ld	hl, ramStart
       
 10744 		push	hl
       
 10745 		inc	hl
       
 10746 		rst	28h
       
 10747 ; ---------------------------------------------------------------------------
       
 10748 		.dw 805Ah
       
 10749 ; ---------------------------------------------------------------------------
       
 10750 		pop	bc
       
 10751 		sbc	hl, bc
       
 10752 		push	hl
       
 10753 		pop	bc
       
 10754 		ld	hl, (unk_8439)
       
 10755 		sbc	hl, bc
       
 10756 		push	hl
       
 10757 		pop	bc
       
 10758 		pop	hl
       
 10759 		sbc	hl, bc
       
 10760 		call	p7Dsub_57C5
       
 10761 		ld	(unk_83A1), hl
       
 10762 		jr	c, p7Dloc_749D
       
 10763 		jr	nz, p7Dloc_74F0
       
 10764 
       
 10765 p7Dloc_749D:				; CODE XREF: p7Dsub_7240+259j
       
 10766 		ld	hl, (unk_839F)
       
 10767 		call	p7Dsub_57C5
       
 10768 		dec	hl
       
 10769 		call	p7Dsub_57C5
       
 10770 		ld	(unk_839F), hl
       
 10771 		ld	a, l
       
 10772 		or	h
       
 10773 		jr	nz, p7Dloc_74BA
       
 10774 		ld	hl, (unk_83A1)
       
 10775 		ld	a, l
       
 10776 		or	h
       
 10777 		jr	nz, p7Dloc_74BA
       
 10778 		ld	a, 0
       
 10779 		ld	(unk_83A4), a
       
 10780 
       
 10781 p7Dloc_74BA:				; CODE XREF: p7Dsub_7240+26Cj
       
 10782 					; p7Dsub_7240+273j
       
 10783 		jr	p7Dloc_74F0
       
 10784 ; ---------------------------------------------------------------------------
       
 10785 
       
 10786 p7Dloc_74BC:				; CODE XREF: p7Dsub_7240+163j
       
 10787 		push	de
       
 10788 		call	p7Dsub_7CB2
       
 10789 		jr	nz, p7Dloc_74F0
       
 10790 		ld	a, (appSearchPage+1)
       
 10791 		call	p7Dsub_7CCF
       
 10792 		call	p7Dsub_4566
       
 10793 		cp	0FEh ; '�'
       
 10794 		jr	nz, p7Dloc_74ED
       
 10795 		call	p7Dsub_4565
       
 10796 		cp	0BFh ; '�'
       
 10797 		jr	nz, p7Dloc_74ED
       
 10798 		call	p7Dsub_4565
       
 10799 		ld	b, a
       
 10800 		ld	a, (appSearchPage+1)
       
 10801 		cp	b
       
 10802 		jr	z, p7Dloc_74F0
       
 10803 		jr	nc, p7Dloc_74ED
       
 10804 		call	p7Dsub_4565
       
 10805 		ld	b, a
       
 10806 		ld	a, (appSearchPage+1)
       
 10807 		inc	b
       
 10808 		cp	b
       
 10809 		jr	nc, p7Dloc_74F0
       
 10810 
       
 10811 p7Dloc_74ED:				; CODE XREF: p7Dsub_7240+28Dj
       
 10812 					; p7Dsub_7240+294j ...
       
 10813 		jp	p7Dloc_7150
       
 10814 ; ---------------------------------------------------------------------------
       
 10815 
       
 10816 p7Dloc_74F0:				; CODE XREF: p7Dsub_7240+25Bj
       
 10817 					; p7Dsub_7240:p7Dloc_74BAj ...
       
 10818 		ld	bc, (unk_8439)
       
 10819 		ld	hl, ramStart
       
 10820 		ld	de, (unk_843B)
       
 10821 		ld	a, (appSearchPage+1)
       
 10822 		bit	7, d
       
 10823 		jp	nz, p7Dloc_7150
       
 10824 		bit	6, d
       
 10825 		jp	z, p7Dloc_7150
       
 10826 		cp	8
       
 10827 		jp	c, p7Dloc_7150
       
 10828 		call	p7Dsub_75E1
       
 10829 		jp	nc, p7Dloc_7150
       
 10830 		call	p7Dsub_756F
       
 10831 		rst	28h
       
 10832 ; ---------------------------------------------------------------------------
       
 10833 		.dw 8087h
       
 10834 ; ---------------------------------------------------------------------------
       
 10835 		call	p7Dsub_7CB2
       
 10836 		jr	z, p7Dloc_752A
       
 10837 		call	relockFlashBack
       
 10838 		call	Page0Call_3F1B
       
 10839 
       
 10840 p7Dloc_7524:				; CODE XREF: p7Dsub_7240+2F3j
       
 10841 		pop	de
       
 10842 
       
 10843 p7Dloc_7525:				; CODE XREF: p7Dsub_7240+32Dj
       
 10844 		pop	af
       
 10845 		pop	ix
       
 10846 		xor	a
       
 10847 		ret
       
 10848 ; ---------------------------------------------------------------------------
       
 10849 
       
 10850 p7Dloc_752A:				; CODE XREF: p7Dsub_7240+2DCj
       
 10851 		ld	a, (ramCodeEnd)
       
 10852 		or	a
       
 10853 		jr	z, p7Dloc_7535
       
 10854 		call	relockFlashBack
       
 10855 		jr	p7Dloc_7524
       
 10856 ; ---------------------------------------------------------------------------
       
 10857 
       
 10858 p7Dloc_7535:				; CODE XREF: p7Dsub_7240+2EEj
       
 10859 		call	p7Dsub_7CCF
       
 10860 		pop	de
       
 10861 		push	hl
       
 10862 		push	de
       
 10863 		ld	b, 4
       
 10864 
       
 10865 p7Dloc_753D:				; CODE XREF: p7Dsub_7240+305j
       
 10866 		call	p7Dsub_4566
       
 10867 		cp	0FFh
       
 10868 		jr	nz, p7Dloc_7549
       
 10869 		inc	hl
       
 10870 		djnz	p7Dloc_753D
       
 10871 		jr	p7Dloc_754C
       
 10872 ; ---------------------------------------------------------------------------
       
 10873 
       
 10874 p7Dloc_7549:				; CODE XREF: p7Dsub_7240+302j
       
 10875 		call	Page7D_2BB0
       
 10876 
       
 10877 p7Dloc_754C:				; CODE XREF: p7Dsub_7240+307j
       
 10878 		ld	hl, 0BFFEh
       
 10879 		ld	(OP1+1), hl
       
 10880 		ld	a, (appSearchPage)
       
 10881 		ld	(unk_847B), a
       
 10882 		pop	de
       
 10883 		sub	d
       
 10884 		ld	(unk_847C), a
       
 10885 		ld	bc, 4
       
 10886 		ld	hl, 8479h
       
 10887 		call	p7Dsub_7700
       
 10888 		pop	de
       
 10889 		rst	28h
       
 10890 ; ---------------------------------------------------------------------------
       
 10891 		.dw 8087h
       
 10892 ; ---------------------------------------------------------------------------
       
 10893 		call	relockFlashBack
       
 10894 		jr	p7Dloc_7525
       
 10895 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
       
 10896 
       
 10897 ; =============== S U B	R O U T	I N E =======================================
       
 10898 
       
 10899 
       
 10900 p7Dsub_756F:				; CODE XREF: p7Dsub_7240+2D3p
       
 10901 		ld	h, d
       
 10902 		ld	l, e
       
 10903 		dec	hl
       
 10904 		add	hl, bc
       
 10905 		bit	7, h
       
 10906 		jr	z, p7Dloc_75A1
       
 10907 		ld	hl, ramStart
       
 10908 		ld	de, (unk_843B)
       
 10909 		or	a
       
 10910 		sbc	hl, de
       
 10911 		ld	b, h
       
 10912 		ld	c, l
       
 10913 		ld	hl, ramStart
       
 10914 		push	bc
       
 10915 		rst	28h
       
 10916 ; ---------------------------------------------------------------------------
       
 10917 		.dw 8087h
       
 10918 ; ---------------------------------------------------------------------------
       
 10919 		pop	bc
       
 10920 		ld	a, (appSearchPage+1)
       
 10921 		dec	a
       
 10922 		ld	hl, (unk_8439)
       
 10923 		or	a
       
 10924 		sbc	hl, bc
       
 10925 		push	bc
       
 10926 		ld	b, h
       
 10927 		ld	c, l
       
 10928 		pop	de
       
 10929 		ld	hl, ramStart
       
 10930 		add	hl, de
       
 10931 		ld	de, 4000h
       
 10932 		ret
       
 10933 ; ---------------------------------------------------------------------------
       
 10934 
       
 10935 p7Dloc_75A1:				; CODE XREF: p7Dsub_756F+6j
       
 10936 		ld	hl, ramStart
       
 10937 		ret
       
 10938 ; End of function p7Dsub_756F
       
 10939 
       
 10940 ; ---------------------------------------------------------------------------
       
 10941 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
       
 10942 
       
 10943 p7Dloc_75A5:				; CODE XREF: p7Dsub_7240+158j
       
 10944 		ld	hl, (unk_8439)
       
 10945 		push	hl
       
 10946 		ld	h, 5Ah ; 'Z'
       
 10947 		call	Page0Call_2C5B
       
 10948 		jp	p7Dloc_7336
       
 10949 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
       
 10950 ; ---------------------------------------------------------------------------
       
 10951 ; START	OF FUNCTION CHUNK FOR p7Dsub_75B8
       
 10952 
       
 10953 p7Dloc_75B1:				; CODE XREF: p7Dsub_75B8+Fj p7Dsub_7B41+Fj
       
 10954 		jp	p7Dloc_732F
       
 10955 ; END OF FUNCTION CHUNK	FOR p7Dsub_75B8
       
 10956 ; ---------------------------------------------------------------------------
       
 10957 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
       
 10958 
       
 10959 p7Dloc_75B4:				; CODE XREF: p7Dsub_7240+18Ej
       
 10960 					; seg001:77A3j
       
 10961 		pop	af
       
 10962 		pop	ix
       
 10963 		ret
       
 10964 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
       
 10965 
       
 10966 ; =============== S U B	R O U T	I N E =======================================
       
 10967 
       
 10968 
       
 10969 p7Dsub_75B8:				; CODE XREF: p7Dsub_7240:p7Dloc_73C6p
       
 10970 
       
 10971 ; FUNCTION CHUNK AT 732F SIZE 00000007 BYTES
       
 10972 ; FUNCTION CHUNK AT 75B1 SIZE 00000003 BYTES
       
 10973 
       
 10974 		call	ZeroOP1
       
 10975 		ld	a, 1
       
 10976 		or	a
       
 10977 		ld	hl, ramStart
       
 10978 		ld	de, 8040h
       
 10979 		rst	28h
       
 10980 ; ---------------------------------------------------------------------------
       
 10981 		.dw 8075h
       
 10982 ; ---------------------------------------------------------------------------
       
 10983 		jp	nz, p7Dloc_75B1
       
 10984 		inc	hl
       
 10985 		ld	a, 1
       
 10986 		rst	28h
       
 10987 ; ---------------------------------------------------------------------------
       
 10988 		.dw 805Ah
       
 10989 ; ---------------------------------------------------------------------------
       
 10990 		ld	de, 8479h
       
 10991 		ldir
       
 10992 		ld	a, (appSearchPage+1)
       
 10993 		push	af
       
 10994 		call	p7Dsub_6428
       
 10995 		pop	af
       
 10996 		ld	(appSearchPage+1), a
       
 10997 		ret
       
 10998 ; End of function p7Dsub_75B8
       
 10999 
       
 11000 
       
 11001 ; =============== S U B	R O U T	I N E =======================================
       
 11002 
       
 11003 
       
 11004 p7Dsub_75E1:				; CODE XREF: p7Dsub_4A21+10p
       
 11005 					; FindSwapSector+18p ...
       
 11006 		call	NZIf83Plus
       
 11007 		jr	nz, p7Dloc_75E9
       
 11008 		cp	6Ah ; 'j'
       
 11009 		ret
       
 11010 ; ---------------------------------------------------------------------------
       
 11011 
       
 11012 p7Dloc_75E9:				; CODE XREF: p7Dsub_75E1+3j
       
 11013 		cp	16h
       
 11014 		ret
       
 11015 ; End of function p7Dsub_75E1
       
 11016 
       
 11017 
       
 11018 ; =============== S U B	R O U T	I N E =======================================
       
 11019 
       
 11020 
       
 11021 p7Dsub_75EC:				; CODE XREF: p7Dsub_4A5A+4p p7Dsub_4A5A+44p	...
       
 11022 		ld	a, 15h
       
 11023 		call	NZIf83Plus
       
 11024 		ret	nz
       
 11025 		ld	a, 69h ; 'i'
       
 11026 		ret
       
 11027 ; End of function p7Dsub_75EC
       
 11028 
       
 11029 
       
 11030 ; =============== S U B	R O U T	I N E =======================================
       
 11031 
       
 11032 
       
 11033 p7Dsub_75F5:				; CODE XREF: seg001:5874p p7Dsub_6021p ...
       
 11034 		call	p7Dsub_75EC
       
 11035 		inc	a
       
 11036 		ld	(appSearchPage), a
       
 11037 		ret
       
 11038 ; End of function p7Dsub_75F5
       
 11039 
       
 11040 
       
 11041 ; =============== S U B	R O U T	I N E =======================================
       
 11042 
       
 11043 
       
 11044 p7Dsub_75FD:				; CODE XREF: p7Dsub_5525+8p seg001:56F0p	...
       
 11045 		ld	de, 839Fh
       
 11046 		and	0Fh
       
 11047 		cp	0Fh
       
 11048 		jr	nz, p7Dloc_7609
       
 11049 		ld	b, 4
       
 11050 		ret
       
 11051 ; ---------------------------------------------------------------------------
       
 11052 
       
 11053 p7Dloc_7609:				; CODE XREF: p7Dsub_75FD+7j
       
 11054 		cp	0Eh
       
 11055 		jr	nz, p7Dloc_7612
       
 11056 		ld	b, 2
       
 11057 		xor	a
       
 11058 		jr	p7Dloc_761A
       
 11059 ; ---------------------------------------------------------------------------
       
 11060 
       
 11061 p7Dloc_7612:				; CODE XREF: p7Dsub_75FD+Ej
       
 11062 		cp	0Dh
       
 11063 		ret	nz
       
 11064 		ld	b, 1
       
 11065 		xor	a
       
 11066 		ld	(de), a
       
 11067 		inc	de
       
 11068 
       
 11069 p7Dloc_761A:				; CODE XREF: p7Dsub_75FD+13j
       
 11070 		ld	(de), a
       
 11071 		inc	de
       
 11072 		ld	(de), a
       
 11073 		inc	de
       
 11074 		ret
       
 11075 ; End of function p7Dsub_75FD
       
 11076 
       
 11077 
       
 11078 ; =============== S U B	R O U T	I N E =======================================
       
 11079 
       
 11080 
       
 11081 p7Dsub_761F:				; CODE XREF: seg001:551Cp p7Dsub_5525+10p ...
       
 11082 		push	af
       
 11083 		call	Page7D_2CD0
       
 11084 		ld	(de), a
       
 11085 		inc	de
       
 11086 		inc	hl
       
 11087 		pop	af
       
 11088 		djnz	p7Dsub_761F
       
 11089 		ret
       
 11090 ; End of function p7Dsub_761F
       
 11091 
       
 11092 
       
 11093 ; =============== S U B	R O U T	I N E =======================================
       
 11094 
       
 11095 
       
 11096 p7Dsub_762A:				; CODE XREF: seg001:43A2p seg001:46C9p ...
       
 11097 		call	p7Dsub_7634
       
 11098 		ld	de, 610h
       
 11099 		rst	28h
       
 11100 ; ---------------------------------------------------------------------------
       
 11101 		.dw 8030h
       
 11102 ; ---------------------------------------------------------------------------
       
 11103 		ret
       
 11104 ; End of function p7Dsub_762A
       
 11105 
       
 11106 
       
 11107 ; =============== S U B	R O U T	I N E =======================================
       
 11108 
       
 11109 
       
 11110 p7Dsub_7634:				; CODE XREF: seg001:471Bp p7Dsub_762Ap
       
 11111 		call	p7Dsub_4894
       
 11112 		ld	de, 600h
       
 11113 		call	p7Dsub_777E
       
 11114 		call	p7Dsub_4574
       
 11115 		ld	a, 7Eh ; '~'
       
 11116 		ret
       
 11117 ; End of function p7Dsub_7634
       
 11118 
       
 11119 
       
 11120 ; =============== S U B	R O U T	I N E =======================================
       
 11121 
       
 11122 
       
 11123 p7Dsub_7643:				; CODE XREF: p7Dsub_4A5Ap	p7Dsub_51DB+21p ...
       
 11124 		ld	bc, 0Dh
       
 11125 		call	NZIf83Plus
       
 11126 		ret	nz
       
 11127 		ld	bc, 61h	; 'a'
       
 11128 		ret
       
 11129 ; End of function p7Dsub_7643
       
 11130 
       
 11131 
       
 11132 ; =============== S U B	R O U T	I N E =======================================
       
 11133 
       
 11134 
       
 11135 p7Dsub_764E:				; CODE XREF: p7Dsub_47E3+55p
       
 11136 					; p7Dsub_484E:p7Dloc_486Cp ...
       
 11137 		push	ix
       
 11138 		pop	hl
       
 11139 		ld	bc, 0Dh
       
 11140 		add	hl, bc
       
 11141 		ret
       
 11142 ; End of function p7Dsub_764E
       
 11143 
       
 11144 
       
 11145 ; =============== S U B	R O U T	I N E =======================================
       
 11146 
       
 11147 
       
 11148 p7Dsub_7656:				; CODE XREF: p7Dsub_5B4D+2p seg001:5C38p	...
       
 11149 		ld	a, 16h
       
 11150 		call	NZIf83Plus
       
 11151 		ret	nz
       
 11152 		ld	a, 6Ah ; 'j'
       
 11153 		ret
       
 11154 ; End of function p7Dsub_7656
       
 11155 
       
 11156 ; ---------------------------------------------------------------------------
       
 11157 		ld	hl, OP1
       
 11158 		ld	(hl), b
       
 11159 
       
 11160 ; =============== S U B	R O U T	I N E =======================================
       
 11161 
       
 11162 
       
 11163 p7Dsub_7663:				; CODE XREF: p7Dsub_42AE+18p
       
 11164 		ld	bc, 1
       
 11165 ; End of function p7Dsub_7663
       
 11166 
       
 11167 
       
 11168 ; =============== S U B	R O U T	I N E =======================================
       
 11169 
       
 11170 
       
 11171 p7Dsub_7666:				; CODE XREF: p7Dsub_4214+10p
       
 11172 					; CopyFlashPage+38p ...
       
 11173 		res	1, (iy+25h)
       
 11174 		call	NZIf83Plus
       
 11175 		jr	z, p7Dloc_7671
       
 11176 		and	1Fh
       
 11177 
       
 11178 p7Dloc_7671:				; CODE XREF: p7Dsub_7666+7j
       
 11179 		push	ix
       
 11180 		ld	ix, WriteFlashPrivilegedCopy
       
 11181 		call	p7Dsub_6B87
       
 11182 		pop	ix
       
 11183 		ret
       
 11184 ; End of function p7Dsub_7666
       
 11185 
       
 11186 WriteFlashPrivilegedCopy:
       
 11187 		.dw 81h
       
 11188 		ld	(flashByte2), a
       
 11189 		in	a, (6)
       
 11190 		push	af
       
 11191 		ld	a, (flashByte2)
       
 11192 		out	(6), a
       
 11193 		bit	7, h
       
 11194 		jr	nz, p7Dloc_7692
       
 11195 		set	1, (iy+25h)
       
 11196 
       
 11197 p7Dloc_7692:				; CODE XREF: seg001:768Cj seg001:76ECj
       
 11198 		bit	1, (iy+25h)
       
 11199 		push	hl
       
 11200 		jr	nz, p7Dloc_76AD
       
 11201 		ld	hl, 7FFFh
       
 11202 		or	a
       
 11203 		sbc	hl, de
       
 11204 		jr	nc, p7Dloc_76AD
       
 11205 		in	a, (6)
       
 11206 		inc	a
       
 11207 		cp	7Eh ; '~'
       
 11208 		jr	z, p7Dloc_76AA
       
 11209 		out	(6), a
       
 11210 
       
 11211 p7Dloc_76AA:				; CODE XREF: seg001:76A6j
       
 11212 		ld	de, 4000h
       
 11213 
       
 11214 p7Dloc_76AD:				; CODE XREF: seg001:7697j seg001:769Fj
       
 11215 		pop	hl
       
 11216 		in	a, (6)
       
 11217 		push	af
       
 11218 		ld	a, 2
       
 11219 		out	(6), a
       
 11220 		ld	a, 0AAh	; '�'
       
 11221 		ld	(p7Dloc_6AA8+2), a
       
 11222 		ld	a, 1
       
 11223 		out	(6), a
       
 11224 		ld	a, 55h ; 'U'
       
 11225 		ld	(p7Dloc_5555), a
       
 11226 		ld	a, 2
       
 11227 		out	(6), a
       
 11228 		ld	a, 0A0h	; '�'
       
 11229 		ld	(p7Dloc_6AA8+2), a
       
 11230 		pop	af
       
 11231 		out	(6), a
       
 11232 		ld	a, (hl)
       
 11233 		ld	a, (hl)
       
 11234 		ld	(de), a
       
 11235 
       
 11236 p7Dloc_76D2:				; CODE XREF: seg001:76DCj
       
 11237 		ld	a, (de)
       
 11238 		push	af
       
 11239 		xor	(hl)
       
 11240 		and	80h ; '�'
       
 11241 		jr	z, p7Dloc_76E6
       
 11242 		pop	af
       
 11243 		bit	5, a
       
 11244 		jr	z, p7Dloc_76D2
       
 11245 		ld	a, (de)
       
 11246 		xor	(hl)
       
 11247 		and	80h ; '�'
       
 11248 		jr	nz, p7Dloc_76F8
       
 11249 		jr	p7Dloc_76E7
       
 11250 ; ---------------------------------------------------------------------------
       
 11251 
       
 11252 p7Dloc_76E6:				; CODE XREF: seg001:76D7j
       
 11253 		pop	af
       
 11254 
       
 11255 p7Dloc_76E7:				; CODE XREF: seg001:76E4j
       
 11256 		inc	de
       
 11257 		inc	hl
       
 11258 		dec	bc
       
 11259 		ld	a, b
       
 11260 		or	c
       
 11261 		jr	nz, p7Dloc_7692
       
 11262 		dec	de
       
 11263 		ld	a, 0F0h	; '�'
       
 11264 		ld	(de), a
       
 11265 		inc	de
       
 11266 		pop	af
       
 11267 		out	(6), a
       
 11268 		xor	a
       
 11269 		ret
       
 11270 ; ---------------------------------------------------------------------------
       
 11271 
       
 11272 p7Dloc_76F8:				; CODE XREF: seg001:76E2j
       
 11273 		ld	a, 0F0h	; '�'
       
 11274 		ld	(de), a
       
 11275 		pop	af
       
 11276 		out	(6), a
       
 11277 		or	a
       
 11278 		ret
       
 11279 
       
 11280 ; =============== S U B	R O U T	I N E =======================================
       
 11281 
       
 11282 
       
 11283 p7Dsub_7700:				; CODE XREF: p7Dsub_4083p	p7Dsub_40A6p ...
       
 11284 		in	a, (2)
       
 11285 		and	80h ; '�'
       
 11286 		ld	a, 1Eh
       
 11287 		ret	z
       
 11288 		ld	a, 7Eh ; '~'
       
 11289 		ret
       
 11290 ; End of function p7Dsub_7700
       
 11291 
       
 11292 ; ---------------------------------------------------------------------------
       
 11293 
       
 11294 Page7D_2C28:
       
 11295 		push	af
       
 11296 		inc	a
       
 11297 		ld	(appSearchPage), a
       
 11298 		call	p7Dsub_638B
       
 11299 		ld	a, 14h
       
 11300 		ld	(OP1), a
       
 11301 		ld	bc, 8
       
 11302 		ld	hl, 8484h
       
 11303 		ld	de, 8479h
       
 11304 		ldir
       
 11305 		pop	af
       
 11306 		ret
       
 11307 ; ---------------------------------------------------------------------------
       
 11308 
       
 11309 Page7D_2BE0:				; CODE XREF: seg001:7194j
       
 11310 		push	af
       
 11311 		ld	a, 1
       
 11312 		nop
       
 11313 		di
       
 11314 		nop
       
 11315 		nop
       
 11316 		im	1
       
 11317 		di
       
 11318 		out	(14h), a
       
 11319 		di
       
 11320 		call	checkForFlashTrickery
       
 11321 		pop	af
       
 11322 		ld	a, (unk_8434)
       
 11323 		nop
       
 11324 		call	p7Dsub_43F6
       
 11325 		jr	nz, ret8
       
 11326 		ld	a, (unk_8434)
       
 11327 		ld	hl, 4000h
       
 11328 		call	p7Dsub_5E59
       
 11329 		call	p7Dsub_52D9
       
 11330 		jp	c, p7Dloc_774F
       
 11331 		jr	nz, ret9
       
 11332 
       
 11333 p7Dloc_774F:				; CODE XREF: seg001:774Aj
       
 11334 		ld	a, (unk_8434)
       
 11335 		ld	hl, 4000h
       
 11336 		call	Page7D_2C9A
       
 11337 		call	p7Dsub_51C3
       
 11338 		ld	a, (unk_8434)
       
 11339 		ld	hl, 4000h
       
 11340 		call	p7Dsub_5E59
       
 11341 		call	p7Dsub_533B
       
 11342 		call	Page7D_2B56
       
 11343 		ld	a, b
       
 11344 		rst	28h
       
 11345 ; ---------------------------------------------------------------------------
       
 11346 		.dw 80CFh
       
 11347 ; ---------------------------------------------------------------------------
       
 11348 		ld	a, 0FFh
       
 11349 		ld	(ioFlag), a
       
 11350 		call	relockFlashBack
       
 11351 		xor	a
       
 11352 		ret
       
 11353 ; ---------------------------------------------------------------------------
       
 11354 
       
 11355 ret9:					; CODE XREF: seg001:774Dj
       
 11356 		ld	a, 9
       
 11357 		ret
       
 11358 ; ---------------------------------------------------------------------------
       
 11359 
       
 11360 ret8:					; CODE XREF: seg001:773Cj
       
 11361 		ld	a, 8
       
 11362 		ret
       
 11363 
       
 11364 ; =============== S U B	R O U T	I N E =======================================
       
 11365 
       
 11366 
       
 11367 p7Dsub_777E:				; CODE XREF: p7Dsub_4442+8p p7Dsub_45E4+37p	...
       
 11368 		call	p7Dsub_7700
       
 11369 		rst	28h
       
 11370 ; ---------------------------------------------------------------------------
       
 11371 		.dw 805Dh
       
 11372 ; ---------------------------------------------------------------------------
       
 11373 		ret
       
 11374 ; End of function p7Dsub_777E
       
 11375 
       
 11376 ; ---------------------------------------------------------------------------
       
 11377 		rst	28h
       
 11378 ; ---------------------------------------------------------------------------
       
 11379 		.dw 8063h
       
 11380 ; ---------------------------------------------------------------------------
       
 11381 		jp	nz, p7Dloc_7813
       
 11382 		ld	a, 1
       
 11383 		ld	de, 8050h
       
 11384 		call	p7Dsub_7060
       
 11385 		jr	nz, p7Dloc_779B
       
 11386 		call	p7Dsub_50C5
       
 11387 		jp	nz, p7Dloc_7810
       
 11388 
       
 11389 p7Dloc_779B:				; CODE XREF: seg001:7793j
       
 11390 		call	p7Dsub_7B41
       
 11391 		ld	a, (appInfo)
       
 11392 		cp	0
       
 11393 		jp	nz, p7Dloc_75B4
       
 11394 		di
       
 11395 		ld	a, (ioFlag)
       
 11396 		push	af
       
 11397 		call	p7Dsub_717A
       
 11398 		ld	a, 0
       
 11399 		ld	b, 0
       
 11400 		res	2, (iy+25h)
       
 11401 		call	Page0Call_2EB9
       
 11402 		call	p7Dsub_7182
       
 11403 		pop	af
       
 11404 		ld	(ioFlag), a
       
 11405 		call	p7Dsub_7B72
       
 11406 		or	a
       
 11407 		jp	z, p7Dloc_780D
       
 11408 		push	af
       
 11409 		call	p7Dsub_7BEA
       
 11410 		jr	c, p7Dloc_77D2
       
 11411 		jr	z, p7Dloc_77D2
       
 11412 
       
 11413 p7Dloc_77CF:				; CODE XREF: seg001:77EBj
       
 11414 		jp	p7Dloc_780D
       
 11415 ; ---------------------------------------------------------------------------
       
 11416 
       
 11417 p7Dloc_77D2:				; CODE XREF: seg001:77CBj seg001:77CDj
       
 11418 		call	FindSwapSector
       
 11419 		cp	8
       
 11420 		jr	z, p7Dloc_77F0
       
 11421 		add	a, 4
       
 11422 		ld	b, a
       
 11423 		ld	a, c
       
 11424 		sub	d
       
 11425 		cp	b
       
 11426 		jr	nc, p7Dloc_77F0
       
 11427 		ld	a, 5
       
 11428 		call	Page0Call_2EB9
       
 11429 		call	FindSwapSector
       
 11430 		cp	8
       
 11431 		jr	nz, p7Dloc_77CF
       
 11432 		call	p7Dsub_7182
       
 11433 
       
 11434 p7Dloc_77F0:				; CODE XREF: seg001:77D7j seg001:77DFj
       
 11435 		ld	a, (appSearchPage)
       
 11436 		call	Page7D_2C16
       
 11437 		ld	a, 1
       
 11438 		ld	hl, ramStart
       
 11439 		call	Page7D_2C9A
       
 11440 		ld	a, 19h
       
 11441 		ld	(sndRecState), a
       
 11442 		pop	af
       
 11443 		push	af
       
 11444 		di
       
 11445 		xor	a
       
 11446 		ld	(sndRecState), a
       
 11447 		pop	af
       
 11448 		ret
       
 11449 ; ---------------------------------------------------------------------------
       
 11450 		ret
       
 11451 ; ---------------------------------------------------------------------------
       
 11452 
       
 11453 p7Dloc_780D:				; CODE XREF: seg001:77C4j
       
 11454 					; seg001:p7Dloc_77CFj
       
 11455 		jp	ErrMemory
       
 11456 ; ---------------------------------------------------------------------------
       
 11457 
       
 11458 p7Dloc_7810:				; CODE XREF: seg001:7798j
       
 11459 		jp	Page0Call_253D
       
 11460 ; ---------------------------------------------------------------------------
       
 11461 
       
 11462 p7Dloc_7813:				; CODE XREF: seg001:7788j
       
 11463 		jp	Page0Call_2539
       
 11464 ; ---------------------------------------------------------------------------
       
 11465 		call	popErrorHandleR
       
 11466 		ld	a, 23h ; '#'
       
 11467 		ld	(errNo), a
       
 11468 		or	1
       
 11469 		ret
       
 11470 ; ---------------------------------------------------------------------------
       
 11471 		push	af
       
 11472 		ld	(unk_8439), a
       
 11473 		call	p7Dsub_5525
       
 11474 		ld	b, a
       
 11475 		pop	af
       
 11476 		sub	b
       
 11477 		ld	de, 4000h
       
 11478 		push	hl
       
 11479 		or	a
       
 11480 		jr	z, p7Dloc_7855
       
 11481 		push	af
       
 11482 
       
 11483 p7Dloc_7833:				; CODE XREF: seg001:7849j
       
 11484 		ld	hl, 4000h
       
 11485 		ld	bc, 4000h
       
 11486 		call	p7Dsub_7865
       
 11487 		pop	af
       
 11488 		dec	a
       
 11489 		or	a
       
 11490 		jr	z, p7Dloc_784B
       
 11491 		push	af
       
 11492 		ld	a, (unk_8439)
       
 11493 		dec	a
       
 11494 		ld	(unk_8439), a
       
 11495 		jr	p7Dloc_7833
       
 11496 ; ---------------------------------------------------------------------------
       
 11497 
       
 11498 p7Dloc_784B:				; CODE XREF: seg001:783Fj
       
 11499 		ld	hl, 4000h
       
 11500 		ld	a, (unk_8439)
       
 11501 		dec	a
       
 11502 		ld	(unk_8439), a
       
 11503 
       
 11504 p7Dloc_7855:				; CODE XREF: seg001:7830j
       
 11505 		pop	hl
       
 11506 		ld	de, 4000h
       
 11507 		or	a
       
 11508 		sbc	hl, de
       
 11509 		push	hl
       
 11510 		pop	bc
       
 11511 		ld	hl, 4000h
       
 11512 		call	p7Dsub_7865
       
 11513 		ret
       
 11514 
       
 11515 ; =============== S U B	R O U T	I N E =======================================
       
 11516 
       
 11517 
       
 11518 p7Dsub_7865:				; CODE XREF: seg001:7839p seg001:7861p ...
       
 11519 		push	hl
       
 11520 		push	bc
       
 11521 		ld	a, (unk_8439)
       
 11522 		ld	de, ramStart
       
 11523 		ld	bc, 100h
       
 11524 		rst	28h
       
 11525 ; ---------------------------------------------------------------------------
       
 11526 		.dw 8054h
       
 11527 ; ---------------------------------------------------------------------------
       
 11528 		pop	bc
       
 11529 		ld	hl, 100h
       
 11530 		or	a
       
 11531 		sbc	hl, bc
       
 11532 		jr	nc, p7Dloc_7882
       
 11533 		push	bc
       
 11534 		ld	bc, 100h
       
 11535 		jr	p7Dloc_7883
       
 11536 ; ---------------------------------------------------------------------------
       
 11537 
       
 11538 p7Dloc_7882:				; CODE XREF: p7Dsub_7865+15j
       
 11539 		push	bc
       
 11540 
       
 11541 p7Dloc_7883:				; CODE XREF: p7Dsub_7865+1Bj
       
 11542 		ld	hl, ramStart
       
 11543 		rst	28h
       
 11544 ; ---------------------------------------------------------------------------
       
 11545 		.dw 8090h
       
 11546 ; ---------------------------------------------------------------------------
       
 11547 		ex	de, hl
       
 11548 		pop	hl
       
 11549 		ld	bc, 100h
       
 11550 		or	a
       
 11551 		sbc	hl, bc
       
 11552 		push	hl
       
 11553 		pop	bc
       
 11554 		ex	de, hl
       
 11555 		jr	z, p7Dloc_78A1
       
 11556 		jr	c, p7Dloc_78A1
       
 11557 		pop	hl
       
 11558 		push	bc
       
 11559 		ld	de, 100h
       
 11560 		add	hl, de
       
 11561 		pop	bc
       
 11562 		jr	p7Dsub_7865
       
 11563 ; ---------------------------------------------------------------------------
       
 11564 
       
 11565 p7Dloc_78A1:				; CODE XREF: p7Dsub_7865+2Fj p7Dsub_7865+31j
       
 11566 		pop	hl
       
 11567 		ret
       
 11568 ; End of function p7Dsub_7865
       
 11569 
       
 11570 
       
 11571 ; =============== S U B	R O U T	I N E =======================================
       
 11572 
       
 11573 
       
 11574 p7Dsub_78A3:				; CODE XREF: p7Dsub_795C+1Bp p7Dsub_795C+24p ...
       
 11575 		push	af
       
 11576 		push	hl
       
 11577 		push	bc
       
 11578 		ld	b, 8
       
 11579 
       
 11580 p7Dloc_78A8:				; CODE XREF: p7Dsub_78A3+19j
       
 11581 		ld	c, a
       
 11582 		xor	e
       
 11583 		rr	d
       
 11584 		rr	e
       
 11585 		and	1
       
 11586 		jr	z, p7Dloc_78BA
       
 11587 		ld	a, 8
       
 11588 		xor	e
       
 11589 		ld	e, a
       
 11590 		ld	a, 84h ; '�'
       
 11591 		xor	d
       
 11592 		ld	d, a
       
 11593 
       
 11594 p7Dloc_78BA:				; CODE XREF: p7Dsub_78A3+Dj
       
 11595 		ld	a, c
       
 11596 		rra
       
 11597 		djnz	p7Dloc_78A8
       
 11598 		pop	bc
       
 11599 		pop	hl
       
 11600 		pop	af
       
 11601 		ret
       
 11602 ; End of function p7Dsub_78A3
       
 11603 
       
 11604 
       
 11605 ; =============== S U B	R O U T	I N E =======================================
       
 11606 
       
 11607 
       
 11608 p7Dsub_78C2:				; CODE XREF: p7Dsub_795C+7Dp p7Dsub_7AD0+50p
       
 11609 		push	hl
       
 11610 		push	bc
       
 11611 		push	af
       
 11612 		ld	de, 0FFFFh
       
 11613 		ld	a, b
       
 11614 		or	c
       
 11615 		jr	z, p7Dloc_78F1
       
 11616 
       
 11617 p7Dloc_78CC:				; CODE XREF: p7Dsub_78C2+2Dj
       
 11618 		ld	a, (hl)
       
 11619 		inc	hl
       
 11620 		push	af
       
 11621 		push	hl
       
 11622 		push	bc
       
 11623 		ld	b, 8
       
 11624 
       
 11625 p7Dloc_78D3:				; CODE XREF: p7Dsub_78C2+25j
       
 11626 		ld	c, a
       
 11627 		xor	e
       
 11628 		rr	d
       
 11629 		rr	e
       
 11630 		and	1
       
 11631 		jr	z, p7Dloc_78E5
       
 11632 		ld	a, 8
       
 11633 		xor	e
       
 11634 		ld	e, a
       
 11635 		ld	a, 84h ; '�'
       
 11636 		xor	d
       
 11637 		ld	d, a
       
 11638 
       
 11639 p7Dloc_78E5:				; CODE XREF: p7Dsub_78C2+19j
       
 11640 		ld	a, c
       
 11641 		rra
       
 11642 		djnz	p7Dloc_78D3
       
 11643 		pop	bc
       
 11644 		pop	hl
       
 11645 		pop	af
       
 11646 		dec	bc
       
 11647 		ld	a, b
       
 11648 		or	c
       
 11649 		jr	nz, p7Dloc_78CC
       
 11650 
       
 11651 p7Dloc_78F1:				; CODE XREF: p7Dsub_78C2+8j
       
 11652 		pop	af
       
 11653 		pop	bc
       
 11654 		pop	hl
       
 11655 		ret
       
 11656 ; End of function p7Dsub_78C2
       
 11657 
       
 11658 
       
 11659 ; =============== S U B	R O U T	I N E =======================================
       
 11660 
       
 11661 
       
 11662 p7Dsub_78F5:				; CODE XREF: p7Dsub_7915:p7Dloc_791Fp
       
 11663 					; p7Dsub_794D+6p ...
       
 11664 		push	hl
       
 11665 		push	de
       
 11666 		push	bc
       
 11667 		ld	hl, p7Dloc_790F
       
 11668 		call	APP_PUSH_ERRORH
       
 11669 		call	j_RecAByteIO
       
 11670 		ld	l, a
       
 11671 		call	APP_POP_ERRORH
       
 11672 		bit	4, (iy+9)
       
 11673 		jr	nz, p7Dloc_790F
       
 11674 		xor	a
       
 11675 		ld	a, l
       
 11676 		jr	p7Dloc_7911
       
 11677 ; ---------------------------------------------------------------------------
       
 11678 
       
 11679 p7Dloc_790F:				; CODE XREF: p7Dsub_78F5+14j
       
 11680 		or	0FFh
       
 11681 
       
 11682 p7Dloc_7911:				; CODE XREF: p7Dsub_78F5+18j
       
 11683 		pop	bc
       
 11684 		pop	de
       
 11685 		pop	hl
       
 11686 		ret
       
 11687 ; End of function p7Dsub_78F5
       
 11688 
       
 11689 
       
 11690 ; =============== S U B	R O U T	I N E =======================================
       
 11691 
       
 11692 
       
 11693 p7Dsub_7915:				; CODE XREF: p7Dsub_795C+78p
       
 11694 		push	hl
       
 11695 		push	bc
       
 11696 		push	af
       
 11697 		ld	de, 0
       
 11698 		ld	a, b
       
 11699 		or	c
       
 11700 		jr	z, p7Dloc_792D
       
 11701 
       
 11702 p7Dloc_791F:				; CODE XREF: p7Dsub_7915+15j
       
 11703 		call	p7Dsub_78F5
       
 11704 		jr	nz, p7Dloc_792D
       
 11705 		ld	(hl), a
       
 11706 		inc	hl
       
 11707 		inc	de
       
 11708 		dec	bc
       
 11709 		ld	a, b
       
 11710 		or	c
       
 11711 		jr	nz, p7Dloc_791F
       
 11712 		xor	a
       
 11713 
       
 11714 p7Dloc_792D:				; CODE XREF: p7Dsub_7915+8j p7Dsub_7915+Dj
       
 11715 		pop	bc
       
 11716 		ld	a, b
       
 11717 		pop	bc
       
 11718 		pop	hl
       
 11719 		ret
       
 11720 ; End of function p7Dsub_7915
       
 11721 
       
 11722 
       
 11723 ; =============== S U B	R O U T	I N E =======================================
       
 11724 
       
 11725 
       
 11726 LinkStatus:				; CODE XREF: p7Dsub_794D:p7Dloc_794Ep
       
 11727 		push	bc
       
 11728 		push	af
       
 11729 		call	NZIf83Plus
       
 11730 		jr	z, p7Dloc_7945
       
 11731 		in	a, (0)
       
 11732 		and	3
       
 11733 		jr	z, p7Dloc_7949
       
 11734 		cp	3
       
 11735 		jr	z, p7Dloc_7949
       
 11736 		jr	p7Dloc_7949
       
 11737 ; ---------------------------------------------------------------------------
       
 11738 
       
 11739 p7Dloc_7945:				; CODE XREF: LinkStatus+5j
       
 11740 		in	a, (9)
       
 11741 		and	58h ; 'X'
       
 11742 
       
 11743 p7Dloc_7949:				; CODE XREF: LinkStatus+Bj
       
 11744 					; LinkStatus+Fj ...
       
 11745 		pop	bc
       
 11746 		ld	a, b
       
 11747 		pop	bc
       
 11748 		ret
       
 11749 ; End of function LinkStatus
       
 11750 
       
 11751 
       
 11752 ; =============== S U B	R O U T	I N E =======================================
       
 11753 
       
 11754 
       
 11755 p7Dsub_794D:				; CODE XREF: p7Dsub_795C:p7Dloc_79F0p
       
 11756 		push	af
       
 11757 
       
 11758 p7Dloc_794E:				; CODE XREF: p7Dsub_794D+Bj
       
 11759 		call	LinkStatus
       
 11760 		jr	z, p7Dloc_795A
       
 11761 		call	p7Dsub_78F5
       
 11762 		jr	nz, p7Dloc_795A
       
 11763 		jr	p7Dloc_794E
       
 11764 ; ---------------------------------------------------------------------------
       
 11765 
       
 11766 p7Dloc_795A:				; CODE XREF: p7Dsub_794D+4j p7Dsub_794D+9j
       
 11767 		pop	af
       
 11768 		ret
       
 11769 ; End of function p7Dsub_794D
       
 11770 
       
 11771 
       
 11772 ; =============== S U B	R O U T	I N E =======================================
       
 11773 
       
 11774 
       
 11775 p7Dsub_795C:				; CODE XREF: seg001:7A30p
       
 11776 		push	ix
       
 11777 		ld	ix, 0
       
 11778 		add	ix, sp
       
 11779 		push	hl
       
 11780 		push	de
       
 11781 		push	af
       
 11782 		push	af
       
 11783 		push	af
       
 11784 		ld	de, 0FFFFh
       
 11785 		call	p7Dsub_78F5
       
 11786 		jp	nz, p7Dloc_79F0
       
 11787 		call	p7Dsub_78F5
       
 11788 		jr	nz, p7Dloc_79F0
       
 11789 		call	p7Dsub_78A3
       
 11790 		ld	h, a
       
 11791 		call	p7Dsub_78F5
       
 11792 		jr	nz, p7Dloc_79F0
       
 11793 		call	p7Dsub_78A3
       
 11794 		ld	l, a
       
 11795 		ld	(ix+0F9h), h
       
 11796 		ld	(ix+0F8h), l
       
 11797 		call	p7Dsub_78F5
       
 11798 		jr	nz, p7Dloc_79F0
       
 11799 		call	p7Dsub_78A3
       
 11800 		ld	h, a
       
 11801 		call	p7Dsub_78F5
       
 11802 		jr	nz, p7Dloc_79F0
       
 11803 		call	p7Dsub_78A3
       
 11804 		ld	l, a
       
 11805 		ld	(ix+0FBh), h
       
 11806 		ld	(ix+0FAh), l
       
 11807 		call	p7Dsub_78F5
       
 11808 		jr	nz, p7Dloc_79F0
       
 11809 		ld	h, a
       
 11810 		call	p7Dsub_78F5
       
 11811 		jr	nz, p7Dloc_79F0
       
 11812 		ld	l, a
       
 11813 		and	a
       
 11814 		sbc	hl, de
       
 11815 		jr	nz, p7Dloc_79F0
       
 11816 		ld	d, (ix+0FBh)
       
 11817 		ld	e, (ix+0FAh)
       
 11818 		ld	a, d
       
 11819 		or	e
       
 11820 		jr	z, p7Dloc_79F5
       
 11821 		ld	h, (ix+0FDh)
       
 11822 		ld	l, (ix+0FCh)
       
 11823 		and	a
       
 11824 		sbc	hl, de
       
 11825 		jr	c, p7Dloc_79F0
       
 11826 		ld	h, (ix+0FFh)
       
 11827 		ld	l, (ix+0FEh)
       
 11828 		ld	b, (ix+0FBh)
       
 11829 		ld	c, (ix+0FAh)
       
 11830 		call	p7Dsub_7915
       
 11831 		jr	nz, p7Dloc_79F0
       
 11832 		call	p7Dsub_78C2
       
 11833 		call	p7Dsub_78F5
       
 11834 		jr	nz, p7Dloc_79F0
       
 11835 		ld	h, a
       
 11836 		call	p7Dsub_78F5
       
 11837 		jr	nz, p7Dloc_79F0
       
 11838 		ld	l, a
       
 11839 		and	a
       
 11840 		sbc	hl, de
       
 11841 		jr	nz, p7Dloc_79F0
       
 11842 		xor	a
       
 11843 		jr	p7Dloc_79F5
       
 11844 ; ---------------------------------------------------------------------------
       
 11845 
       
 11846 p7Dloc_79F0:				; CODE XREF: p7Dsub_795C+13j p7Dsub_795C+19j ...
       
 11847 		call	p7Dsub_794D
       
 11848 		or	0FFh
       
 11849 
       
 11850 p7Dloc_79F5:				; CODE XREF: p7Dsub_795C+5Fj p7Dsub_795C+92j
       
 11851 		pop	bc
       
 11852 		ld	a, b
       
 11853 		pop	bc
       
 11854 		pop	de
       
 11855 		pop	hl
       
 11856 		pop	hl
       
 11857 		pop	ix
       
 11858 		ret
       
 11859 ; End of function p7Dsub_795C
       
 11860 
       
 11861 ; ---------------------------------------------------------------------------
       
 11862 		push	ix
       
 11863 		ld	ix, 0
       
 11864 		add	ix, sp
       
 11865 		push	hl
       
 11866 		push	de
       
 11867 		push	af
       
 11868 		push	af
       
 11869 		push	af
       
 11870 		push	af
       
 11871 		ld	b, 0
       
 11872 		ld	a, c
       
 11873 		or	a
       
 11874 		jr	z, p7Dloc_7A17
       
 11875 		dec	c
       
 11876 		cp	33h ; '3'
       
 11877 		jr	c, p7Dloc_7A19
       
 11878 
       
 11879 p7Dloc_7A17:				; CODE XREF: seg001:7A10j
       
 11880 		ld	c, 32h ; '2'
       
 11881 
       
 11882 p7Dloc_7A19:				; CODE XREF: seg001:7A15j seg001:7A50j
       
 11883 		ld	(ix+0F7h), b
       
 11884 		ld	(ix+0F6h), c
       
 11885 		call	p7Dsub_7A8D
       
 11886 		jr	nz, p7Dloc_7A52
       
 11887 		ld	h, (ix+0FFh)
       
 11888 		ld	l, (ix+0FEh)
       
 11889 		ld	d, (ix+0FDh)
       
 11890 		ld	e, (ix+0FCh)
       
 11891 		call	p7Dsub_795C
       
 11892 		ld	(ix+0FBh), d
       
 11893 		ld	(ix+0FAh), e
       
 11894 		ld	(ix+0F9h), b
       
 11895 		ld	(ix+0F8h), c
       
 11896 		jr	z, p7Dloc_7A59
       
 11897 		ld	b, (ix+0F7h)
       
 11898 		ld	c, (ix+0F6h)
       
 11899 		bit	4, (iy+9)
       
 11900 		jr	nz, p7Dloc_7A52
       
 11901 		dec	bc
       
 11902 		ld	a, b
       
 11903 		or	c
       
 11904 		jr	nz, p7Dloc_7A19
       
 11905 
       
 11906 p7Dloc_7A52:				; CODE XREF: seg001:7A22j seg001:7A4Bj
       
 11907 		call	p7Dsub_7A85
       
 11908 		or	0FFh
       
 11909 		jr	p7Dloc_7A5D
       
 11910 ; ---------------------------------------------------------------------------
       
 11911 
       
 11912 p7Dloc_7A59:				; CODE XREF: seg001:7A3Fj
       
 11913 		call	p7Dsub_7A75
       
 11914 		xor	a
       
 11915 
       
 11916 p7Dloc_7A5D:				; CODE XREF: seg001:7A57j
       
 11917 		pop	bc
       
 11918 		ld	a, b
       
 11919 		pop	bc
       
 11920 		pop	bc
       
 11921 		pop	de
       
 11922 		pop	hl
       
 11923 		pop	hl
       
 11924 		pop	ix
       
 11925 		ret
       
 11926 
       
 11927 ; =============== S U B	R O U T	I N E =======================================
       
 11928 
       
 11929 
       
 11930 p7Dsub_7A67:				; CODE XREF: p7Dsub_7A75+3p seg001:7A80p	...
       
 11931 		push	hl
       
 11932 		push	de
       
 11933 		ld	hl, 0
       
 11934 		ld	de, 0
       
 11935 		call	p7Dsub_7AD0
       
 11936 		pop	de
       
 11937 		pop	hl
       
 11938 		ret
       
 11939 ; End of function p7Dsub_7A67
       
 11940 
       
 11941 
       
 11942 ; =============== S U B	R O U T	I N E =======================================
       
 11943 
       
 11944 
       
 11945 p7Dsub_7A75:				; CODE XREF: seg001:p7Dloc_7A59p
       
 11946 		push	bc
       
 11947 		ld	b, 1
       
 11948 		call	p7Dsub_7A67
       
 11949 		pop	bc
       
 11950 		ret
       
 11951 ; End of function p7Dsub_7A75
       
 11952 
       
 11953 ; ---------------------------------------------------------------------------
       
 11954 		push	bc
       
 11955 		ld	b, 2
       
 11956 		call	p7Dsub_7A67
       
 11957 		pop	bc
       
 11958 		ret
       
 11959 
       
 11960 ; =============== S U B	R O U T	I N E =======================================
       
 11961 
       
 11962 
       
 11963 p7Dsub_7A85:				; CODE XREF: seg001:p7Dloc_7A52p
       
 11964 		push	bc
       
 11965 		ld	b, 4
       
 11966 		call	p7Dsub_7A67
       
 11967 		pop	bc
       
 11968 		ret
       
 11969 ; End of function p7Dsub_7A85
       
 11970 
       
 11971 
       
 11972 ; =============== S U B	R O U T	I N E =======================================
       
 11973 
       
 11974 
       
 11975 p7Dsub_7A8D:				; CODE XREF: seg001:7A1Fp
       
 11976 		bit	4, (iy+9)
       
 11977 		res	4, (iy+9)
       
 11978 		ret
       
 11979 ; End of function p7Dsub_7A8D
       
 11980 
       
 11981 
       
 11982 ; =============== S U B	R O U T	I N E =======================================
       
 11983 
       
 11984 
       
 11985 p7Dsub_7A96:				; CODE XREF: p7Dsub_7AB7+8p p7Dsub_7AD0+11p	...
       
 11986 		push	hl
       
 11987 		push	de
       
 11988 		push	bc
       
 11989 		push	af
       
 11990 		ld	hl, p7Dloc_7AAF
       
 11991 		call	APP_PUSH_ERRORH
       
 11992 		call	j_SendAByte
       
 11993 		call	APP_POP_ERRORH
       
 11994 		bit	4, (iy+9)
       
 11995 		jr	nz, p7Dloc_7AAF
       
 11996 		xor	a
       
 11997 		jr	p7Dloc_7AB1
       
 11998 ; ---------------------------------------------------------------------------
       
 11999 
       
 12000 p7Dloc_7AAF:				; CODE XREF: p7Dsub_7A96+14j
       
 12001 		or	0FFh
       
 12002 
       
 12003 p7Dloc_7AB1:				; CODE XREF: p7Dsub_7A96+17j
       
 12004 		pop	bc
       
 12005 		ld	a, b
       
 12006 		pop	bc
       
 12007 		pop	de
       
 12008 		pop	hl
       
 12009 		ret
       
 12010 ; End of function p7Dsub_7A96
       
 12011 
       
 12012 
       
 12013 ; =============== S U B	R O U T	I N E =======================================
       
 12014 
       
 12015 
       
 12016 p7Dsub_7AB7:				; CODE XREF: p7Dsub_7AD0+53p
       
 12017 		push	hl
       
 12018 		push	bc
       
 12019 		push	af
       
 12020 		ld	a, b
       
 12021 		or	c
       
 12022 		jr	z, p7Dloc_7ACB
       
 12023 
       
 12024 p7Dloc_7ABE:				; CODE XREF: p7Dsub_7AB7+11j
       
 12025 		ld	a, (hl)
       
 12026 		call	p7Dsub_7A96
       
 12027 		jr	nz, p7Dloc_7ACB
       
 12028 		inc	hl
       
 12029 		dec	bc
       
 12030 		ld	a, b
       
 12031 		or	c
       
 12032 		jr	nz, p7Dloc_7ABE
       
 12033 		xor	a
       
 12034 
       
 12035 p7Dloc_7ACB:				; CODE XREF: p7Dsub_7AB7+5j p7Dsub_7AB7+Bj
       
 12036 		pop	bc
       
 12037 		ld	a, b
       
 12038 		pop	bc
       
 12039 		pop	hl
       
 12040 		ret
       
 12041 ; End of function p7Dsub_7AB7
       
 12042 
       
 12043 
       
 12044 ; =============== S U B	R O U T	I N E =======================================
       
 12045 
       
 12046 
       
 12047 p7Dsub_7AD0:				; CODE XREF: p7Dsub_7A67+8p
       
 12048 		push	ix
       
 12049 		ld	ix, 0
       
 12050 		add	ix, sp
       
 12051 		push	hl
       
 12052 		push	de
       
 12053 		push	bc
       
 12054 		push	af
       
 12055 		ld	de, 0FFFFh
       
 12056 		ld	a, 5Bh ; '['
       
 12057 		call	p7Dsub_7A96
       
 12058 		jr	nz, p7Dloc_7B37
       
 12059 		ld	a, b
       
 12060 		call	p7Dsub_78A3
       
 12061 		call	p7Dsub_7A96
       
 12062 		jr	nz, p7Dloc_7B37
       
 12063 		ld	a, c
       
 12064 		call	p7Dsub_78A3
       
 12065 		call	p7Dsub_7A96
       
 12066 		jr	nz, p7Dloc_7B37
       
 12067 		ld	b, (ix+0FDh)
       
 12068 		ld	c, (ix+0FCh)
       
 12069 		ld	a, b
       
 12070 		call	p7Dsub_78A3
       
 12071 		call	p7Dsub_7A96
       
 12072 		jr	nz, p7Dloc_7B37
       
 12073 		ld	a, c
       
 12074 		call	p7Dsub_78A3
       
 12075 		call	p7Dsub_7A96
       
 12076 		jr	nz, p7Dloc_7B37
       
 12077 		ld	a, d
       
 12078 		call	p7Dsub_7A96
       
 12079 		jr	nz, p7Dloc_7B37
       
 12080 		ld	a, e
       
 12081 		call	p7Dsub_7A96
       
 12082 		jr	nz, p7Dloc_7B37
       
 12083 		ld	a, b
       
 12084 		or	c
       
 12085 		jr	z, p7Dloc_7B34
       
 12086 		call	p7Dsub_78C2
       
 12087 		call	p7Dsub_7AB7
       
 12088 		jr	nz, p7Dloc_7B37
       
 12089 		ld	a, d
       
 12090 		call	p7Dsub_7A96
       
 12091 		jr	nz, p7Dloc_7B37
       
 12092 		ld	a, e
       
 12093 		call	p7Dsub_7A96
       
 12094 		jr	nz, p7Dloc_7B37
       
 12095 
       
 12096 p7Dloc_7B34:				; CODE XREF: p7Dsub_7AD0+4Ej
       
 12097 		xor	a
       
 12098 		jr	p7Dloc_7B39
       
 12099 ; ---------------------------------------------------------------------------
       
 12100 
       
 12101 p7Dloc_7B37:				; CODE XREF: p7Dsub_7AD0+14j p7Dsub_7AD0+1Dj ...
       
 12102 		or	0FFh
       
 12103 
       
 12104 p7Dloc_7B39:				; CODE XREF: p7Dsub_7AD0+65j
       
 12105 		pop	bc
       
 12106 		ld	a, b
       
 12107 		pop	bc
       
 12108 		pop	de
       
 12109 		pop	hl
       
 12110 		pop	ix
       
 12111 		ret
       
 12112 ; End of function p7Dsub_7AD0
       
 12113 
       
 12114 
       
 12115 ; =============== S U B	R O U T	I N E =======================================
       
 12116 
       
 12117 
       
 12118 p7Dsub_7B41:				; CODE XREF: seg001:p7Dloc_779Bp
       
 12119 		call	ZeroOP1
       
 12120 		ld	a, 1
       
 12121 		or	a
       
 12122 		ld	hl, ramStart
       
 12123 		ld	de, 8040h
       
 12124 		rst	28h
       
 12125 ; ---------------------------------------------------------------------------
       
 12126 		.dw 8075h
       
 12127 ; ---------------------------------------------------------------------------
       
 12128 		jp	nz, p7Dloc_75B1
       
 12129 		inc	hl
       
 12130 		ld	a, 1
       
 12131 		rst	28h
       
 12132 ; ---------------------------------------------------------------------------
       
 12133 		.dw 805Ah
       
 12134 ; ---------------------------------------------------------------------------
       
 12135 		ld	de, 8479h
       
 12136 		ldir
       
 12137 		ld	hl, (appSearchPage)
       
 12138 		push	hl
       
 12139 		call	p7Dsub_6186
       
 12140 		jr	c, p7Dloc_7B6D
       
 12141 		ld	(appInfo+1), a
       
 12142 		call	Page7D_2BE6
       
 12143 
       
 12144 p7Dloc_7B6D:				; CODE XREF: p7Dsub_7B41+24j
       
 12145 		pop	hl
       
 12146 		ld	(appSearchPage), hl
       
 12147 		ret
       
 12148 ; End of function p7Dsub_7B41
       
 12149 
       
 12150 
       
 12151 ; =============== S U B	R O U T	I N E =======================================
       
 12152 
       
 12153 
       
 12154 p7Dsub_7B72:				; CODE XREF: seg001:71BEp
       
 12155 					; p7Dsub_7240+1BCp ...
       
 12156 		call	p7Dsub_75EC
       
 12157 
       
 12158 p7Dloc_7B75:				; CODE XREF: p7Dsub_7B72+24j
       
 12159 		ld	hl, 4000h
       
 12160 		push	af
       
 12161 		call	Page7D_2CD0
       
 12162 		cp	80h ; '�'
       
 12163 		jr	z, p7Dloc_7B84
       
 12164 		cp	0
       
 12165 		jr	nz, p7Dloc_7B9C
       
 12166 
       
 12167 p7Dloc_7B84:				; CODE XREF: p7Dsub_7B72+Cj
       
 12168 		pop	af
       
 12169 		call	Page0Call_3E31
       
 12170 		jr	nz, p7Dloc_7B9A
       
 12171 		call	FindAppNumPages
       
 12172 		ld	b, a
       
 12173 		ld	a, c
       
 12174 		or	a
       
 12175 		jr	z, p7Dloc_7B98
       
 12176 		ld	a, b
       
 12177 		sub	c
       
 12178 		cp	8
       
 12179 		jr	nc, p7Dloc_7B75
       
 12180 
       
 12181 p7Dloc_7B98:				; CODE XREF: p7Dsub_7B72+1Ej
       
 12182 		xor	a
       
 12183 		ret
       
 12184 ; ---------------------------------------------------------------------------
       
 12185 
       
 12186 p7Dloc_7B9A:				; CODE XREF: p7Dsub_7B72+16j p7Dsub_7B72+2Ej
       
 12187 		cp	a
       
 12188 		ret
       
 12189 ; ---------------------------------------------------------------------------
       
 12190 
       
 12191 p7Dloc_7B9C:				; CODE XREF: p7Dsub_7B72+10j
       
 12192 		cp	0FFh
       
 12193 		pop	bc
       
 12194 		ld	a, b
       
 12195 		jr	nz, p7Dloc_7B9A
       
 12196 		or	a
       
 12197 		ret
       
 12198 ; End of function p7Dsub_7B72
       
 12199 
       
 12200 
       
 12201 ; =============== S U B	R O U T	I N E =======================================
       
 12202 
       
 12203 
       
 12204 p7Dsub_7BA4:				; CODE XREF: seg001:60F7p
       
 12205 		xor	a
       
 12206 		ld	b, 0Eh
       
 12207 		ld	hl, 9C88h
       
 12208 
       
 12209 p7Dloc_7BAA:				; CODE XREF: p7Dsub_7BA4+8j
       
 12210 		ld	(hl), a
       
 12211 		inc	hl
       
 12212 		djnz	p7Dloc_7BAA
       
 12213 		ret
       
 12214 ; End of function p7Dsub_7BA4
       
 12215 
       
 12216 
       
 12217 ; =============== S U B	R O U T	I N E =======================================
       
 12218 
       
 12219 
       
 12220 p7Dsub_7BAF:				; CODE XREF: seg001:610Fp
       
 12221 		call	p7Dsub_7BBA
       
 12222 		or	(hl)
       
 12223 		ld	(hl), a
       
 12224 		ret
       
 12225 ; End of function p7Dsub_7BAF
       
 12226 
       
 12227 
       
 12228 ; =============== S U B	R O U T	I N E =======================================
       
 12229 
       
 12230 
       
 12231 p7Dsub_7BB5:				; CODE XREF: p7Dsub_638B+1Ap
       
 12232 		call	p7Dsub_7BBA
       
 12233 		and	(hl)
       
 12234 		ret
       
 12235 ; End of function p7Dsub_7BB5
       
 12236 
       
 12237 
       
 12238 ; =============== S U B	R O U T	I N E =======================================
       
 12239 
       
 12240 
       
 12241 p7Dsub_7BBA:				; CODE XREF: p7Dsub_7BAFp	p7Dsub_7BB5p
       
 12242 		sub	8
       
 12243 		ld	hl, 9C88h
       
 12244 		ld	c, a
       
 12245 		ld	b, 0
       
 12246 		sra	c
       
 12247 		sra	c
       
 12248 		sra	c
       
 12249 		add	hl, bc
       
 12250 		and	7
       
 12251 		ld	c, a
       
 12252 ; End of function p7Dsub_7BBA
       
 12253 
       
 12254 
       
 12255 ; =============== S U B	R O U T	I N E =======================================
       
 12256 
       
 12257 
       
 12258 p7Dsub_7BCC:				; CODE XREF: p7Dsub_519D+6p p7Dsub_51C3+6p ...
       
 12259 		ld	b, c
       
 12260 		ld	a, 80h ; '�'
       
 12261 		inc	b
       
 12262 
       
 12263 p7Dloc_7BD0:				; CODE XREF: p7Dsub_7BCC+5j
       
 12264 		rlca
       
 12265 		djnz	p7Dloc_7BD0
       
 12266 		ret
       
 12267 ; End of function p7Dsub_7BCC
       
 12268 
       
 12269 
       
 12270 ; =============== S U B	R O U T	I N E =======================================
       
 12271 
       
 12272 
       
 12273 p7Dsub_7BD4:				; CODE XREF: p7Dsub_662F:p7Dloc_6638p
       
 12274 					; seg001:6A9Dp	...
       
 12275 		bit	0, (iy+12h)
       
 12276 		ret	z
       
 12277 		push	af
       
 12278 		push	bc
       
 12279 		push	de
       
 12280 		push	hl
       
 12281 		ld	a, 1
       
 12282 		ld	(indicCounter), a
       
 12283 		call	page0_1BF
       
 12284 		pop	hl
       
 12285 		pop	de
       
 12286 		pop	bc
       
 12287 		pop	af
       
 12288 		ret
       
 12289 ; End of function p7Dsub_7BD4
       
 12290 
       
 12291 
       
 12292 ; =============== S U B	R O U T	I N E =======================================
       
 12293 
       
 12294 
       
 12295 p7Dsub_7BEA:				; CODE XREF: p7Dsub_7240+1C4p
       
 12296 					; seg001:77C8p
       
 12297 
       
 12298 ; FUNCTION CHUNK AT 72A5 SIZE 0000002D BYTES
       
 12299 
       
 12300 		ld	(appSearchPage+1), a
       
 12301 		ld	(appSearchPage), a
       
 12302 		ld	(unk_8434), a
       
 12303 		call	p7Dsub_5DC7
       
 12304 		ret	c
       
 12305 		ret	z
       
 12306 		ld	a, e
       
 12307 		or	a
       
 12308 		jp	z, Page7D_2BBC
       
 12309 		ld	a, 6
       
 12310 		call	Page0Call_2EB9
       
 12311 		jp	z, Page7D_2BBC
       
 12312 		call	p7Dsub_7182
       
 12313 		ld	a, (unk_8434)
       
 12314 		call	p7Dsub_5DC7
       
 12315 		ret
       
 12316 ; End of function p7Dsub_7BEA
       
 12317 
       
 12318 ; ---------------------------------------------------------------------------
       
 12319 
       
 12320 Page7D_3EB8:
       
 12321 		push	af
       
 12322 		ld	a, 1
       
 12323 		nop
       
 12324 		di
       
 12325 		nop
       
 12326 		nop
       
 12327 		im	1
       
 12328 		di
       
 12329 		out	(14h), a
       
 12330 		di
       
 12331 		call	checkForFlashTrickery
       
 12332 		pop	af
       
 12333 		call	Page7D_2B56
       
 12334 		ld	a, b
       
 12335 		rst	28h
       
 12336 ; ---------------------------------------------------------------------------
       
 12337 		.dw 80CFh
       
 12338 ; ---------------------------------------------------------------------------
       
 12339 		jp	relockFlashBack
       
 12340 ; ---------------------------------------------------------------------------
       
 12341 
       
 12342 DoNothing2:
       
 12343 		ret
       
 12344 ; ---------------------------------------------------------------------------
       
 12345 		jp	nz, p7Dloc_7C2E
       
 12346 
       
 12347 p7Dloc_7C2E:
       
 12348 		call	popErrorHandleR
       
 12349 		ld	a, 23h ; '#'
       
 12350 		ld	(errNo), a
       
 12351 		pop	hl
       
 12352 		ld	(freeRAM), hl
       
 12353 		call	p7Dsub_7C64
       
 12354 		jr	z, p7Dloc_7C4D
       
 12355 		call	OP4ToOP1
       
 12356 		call	ChkFindSym
       
 12357 		call	nc, DelVarArc
       
 12358 		call	relockFlashBack
       
 12359 		jr	p7Dloc_7C61
       
 12360 ; ---------------------------------------------------------------------------
       
 12361 
       
 12362 p7Dloc_7C4D:				; CODE XREF: seg001:7C3Dj
       
 12363 		call	ChkFindSym
       
 12364 		ex	de, hl
       
 12365 		ld	bc, (freeRAM)
       
 12366 		dec	bc
       
 12367 		dec	bc
       
 12368 		ld	(hl), c
       
 12369 		inc	hl
       
 12370 		ld	(hl), b
       
 12371 		dec	hl
       
 12372 		ex	de, hl
       
 12373 		ld	a, 3
       
 12374 		call	DELVARIO
       
 12375 
       
 12376 p7Dloc_7C61:				; CODE XREF: seg001:7C4Bj
       
 12377 		or	1
       
 12378 		ret
       
 12379 
       
 12380 ; =============== S U B	R O U T	I N E =======================================
       
 12381 
       
 12382 
       
 12383 p7Dsub_7C64:				; CODE XREF: seg001:7C3Ap
       
 12384 		push	hl
       
 12385 		ld	hl, ioNewData
       
 12386 		bit	7, (hl)
       
 12387 		pop	hl
       
 12388 		ret
       
 12389 ; End of function p7Dsub_7C64
       
 12390 
       
 12391 ; ---------------------------------------------------------------------------
       
 12392 		call	page0_17B0
       
 12393 		jr	z, p7Dloc_7C7D
       
 12394 		call	ISO1NONTEMPLST
       
 12395 		jr	nz, p7Dloc_7C84
       
 12396 		push	bc
       
 12397 		call	CMPPRGNAMLEN
       
 12398 		inc	a
       
 12399 		jr	p7Dloc_7C81
       
 12400 ; ---------------------------------------------------------------------------
       
 12401 
       
 12402 p7Dloc_7C7D:				; CODE XREF: seg001:7C6Fj
       
 12403 		push	bc
       
 12404 		call	CMPPRGNAMLEN
       
 12405 
       
 12406 p7Dloc_7C81:				; CODE XREF: seg001:7C7Bj
       
 12407 		pop	bc
       
 12408 		or	a
       
 12409 		ret
       
 12410 ; ---------------------------------------------------------------------------
       
 12411 
       
 12412 p7Dloc_7C84:				; CODE XREF: seg001:7C74j
       
 12413 		xor	a
       
 12414 		scf
       
 12415 		ret
       
 12416 ; ---------------------------------------------------------------------------
       
 12417 		push	hl
       
 12418 		ld	hl, (unk_83F7)
       
 12419 		or	a
       
 12420 		sbc	hl, bc
       
 12421 		jp	c, ErrMemory
       
 12422 		ld	(unk_83F7), hl
       
 12423 		pop	hl
       
 12424 		ret
       
 12425 
       
 12426 ; =============== S U B	R O U T	I N E =======================================
       
 12427 
       
 12428 
       
 12429 p7Dsub_7C96:				; CODE XREF: p7Dsub_7D67+36p
       
 12430 		call	NZIf83Plus
       
 12431 		jr	nz, p7Dloc_7CA0
       
 12432 		and	7Fh ; ''
       
 12433 		cp	6Ah ; 'j'
       
 12434 		ret
       
 12435 ; ---------------------------------------------------------------------------
       
 12436 
       
 12437 p7Dloc_7CA0:				; CODE XREF: p7Dsub_7C96+3j
       
 12438 		and	1Fh
       
 12439 		cp	16h
       
 12440 		ret
       
 12441 ; End of function p7Dsub_7C96
       
 12442 
       
 12443 
       
 12444 ; =============== S U B	R O U T	I N E =======================================
       
 12445 
       
 12446 
       
 12447 p7Dsub_7CA5:				; CODE XREF: p7Dsub_7240+10Ap
       
 12448 		ld	a, (unk_83A4)
       
 12449 		or	a
       
 12450 		ret	z
       
 12451 		ld	a, (unk_83A3)
       
 12452 		inc	a
       
 12453 		ld	(unk_83A3), a
       
 12454 		ret
       
 12455 ; End of function p7Dsub_7CA5
       
 12456 
       
 12457 
       
 12458 ; =============== S U B	R O U T	I N E =======================================
       
 12459 
       
 12460 
       
 12461 p7Dsub_7CB2:				; CODE XREF: p7Dsub_6428+Bp p7Dsub_733Bp ...
       
 12462 		push	bc
       
 12463 		ld	b, a
       
 12464 		ld	a, (sndRecState)
       
 12465 		inc	a
       
 12466 		ld	a, b
       
 12467 		pop	bc
       
 12468 		ret
       
 12469 ; End of function p7Dsub_7CB2
       
 12470 
       
 12471 
       
 12472 ; =============== S U B	R O U T	I N E =======================================
       
 12473 
       
 12474 
       
 12475 p7Dsub_7CBB:				; CODE XREF: seg001:p7Dloc_7234p
       
 12476 					; p7Dsub_7240+119p
       
 12477 		ld	a, (ramCodeEnd)
       
 12478 		cp	0
       
 12479 		ret	z
       
 12480 		push	hl
       
 12481 		call	p7Dsub_578D
       
 12482 		ld	a, l
       
 12483 		or	h
       
 12484 		pop	hl
       
 12485 		ret	nz
       
 12486 		ld	a, 0
       
 12487 		ld	(unk_83A4), a
       
 12488 		ret
       
 12489 ; End of function p7Dsub_7CBB
       
 12490 
       
 12491 
       
 12492 ; =============== S U B	R O U T	I N E =======================================
       
 12493 
       
 12494 
       
 12495 p7Dsub_7CCF:				; CODE XREF: p7Dsub_7240+285p
       
 12496 					; p7Dsub_7240:p7Dloc_7535p ...
       
 12497 		rst	28h
       
 12498 ; ---------------------------------------------------------------------------
       
 12499 		.dw 8057h
       
 12500 ; End of function p7Dsub_7CCF
       
 12501 
       
 12502 ; ---------------------------------------------------------------------------
       
 12503 		call	Page7D_2BEC
       
 12504 		ld	de, 1DE2h
       
 12505 		add	hl, de
       
 12506 		ret
       
 12507 
       
 12508 ; =============== S U B	R O U T	I N E =======================================
       
 12509 
       
 12510 
       
 12511 p7Dsub_7CDA:				; CODE XREF: seg001:7E7Dp
       
 12512 		push	af
       
 12513 		push	af
       
 12514 		ld	a, 1
       
 12515 		nop
       
 12516 		di
       
 12517 		nop
       
 12518 		nop
       
 12519 		im	1
       
 12520 		di
       
 12521 		out	(14h), a
       
 12522 		di
       
 12523 		call	checkForFlashTrickery
       
 12524 		pop	af
       
 12525 		call	Page0Call_2ECB
       
 12526 		call	p7Dsub_7CCF
       
 12527 		push	hl
       
 12528 		ld	b, 8
       
 12529 
       
 12530 p7Dloc_7CF5:				; CODE XREF: p7Dsub_7CDA+23j
       
 12531 		call	p7Dsub_4566
       
 12532 		cp	0FFh
       
 12533 		jr	nz, p7Dloc_7D01
       
 12534 		inc	hl
       
 12535 		djnz	p7Dloc_7CF5
       
 12536 		jr	p7Dloc_7D04
       
 12537 ; ---------------------------------------------------------------------------
       
 12538 
       
 12539 p7Dloc_7D01:				; CODE XREF: p7Dsub_7CDA+20j
       
 12540 		call	Page7D_2BB0
       
 12541 
       
 12542 p7Dloc_7D04:				; CODE XREF: p7Dsub_7CDA+25j
       
 12543 		ld	hl, 7FFEh
       
 12544 		ld	(OP1+1), hl
       
 12545 		ld	a, (arcInfo)
       
 12546 		ld	(unk_847B), a
       
 12547 		ld	hl, (arcInfo+1)
       
 12548 		call	p7Dsub_69D4
       
 12549 		jr	nz, p7Dloc_7D19
       
 12550 		inc	hl
       
 12551 
       
 12552 p7Dloc_7D19:				; CODE XREF: p7Dsub_7CDA+3Cj
       
 12553 		inc	hl
       
 12554 		inc	hl
       
 12555 		inc	hl
       
 12556 		ld	de, (unk_83F5)
       
 12557 		add	hl, de
       
 12558 		ld	(unk_847C), hl
       
 12559 		ld	(iMathPtr5), hl
       
 12560 		ld	de, (unk_83F7)
       
 12561 		bit	7, d
       
 12562 		jr	z, p7Dloc_7D33
       
 12563 		inc	a
       
 12564 		inc	a
       
 12565 		res	7, d
       
 12566 
       
 12567 p7Dloc_7D33:				; CODE XREF: p7Dsub_7CDA+53j
       
 12568 		bit	6, d
       
 12569 		jr	z, p7Dloc_7D3A
       
 12570 		inc	a
       
 12571 		res	6, d
       
 12572 
       
 12573 p7Dloc_7D3A:				; CODE XREF: p7Dsub_7CDA+5Bj
       
 12574 		add	hl, de
       
 12575 		bit	7, h
       
 12576 		jr	z, p7Dloc_7D44
       
 12577 		inc	a
       
 12578 		res	7, h
       
 12579 		set	6, h
       
 12580 
       
 12581 p7Dloc_7D44:				; CODE XREF: p7Dsub_7CDA+63j
       
 12582 		ld	(unk_847E), a
       
 12583 		ld	(unk_847F), hl
       
 12584 		ld	bc, 8
       
 12585 		ld	hl, 8479h
       
 12586 		call	p7Dsub_7700
       
 12587 		pop	de
       
 12588 		rst	28h
       
 12589 ; ---------------------------------------------------------------------------
       
 12590 		.dw 8087h
       
 12591 ; ---------------------------------------------------------------------------
       
 12592 		call	relockFlashBack
       
 12593 		set	3, (iy+26h)
       
 12594 		call	Page7D_2EB0
       
 12595 		pop	af
       
 12596 		ld	hl, (unk_83F1)
       
 12597 		ld	(hl), a
       
 12598 		ret
       
 12599 ; End of function p7Dsub_7CDA
       
 12600 
       
 12601 
       
 12602 ; =============== S U B	R O U T	I N E =======================================
       
 12603 
       
 12604 
       
 12605 p7Dsub_7D67:				; CODE XREF: seg001:71A3j p7Dsub_7E40+13p
       
 12606 		ld	a, (pagedCount)
       
 12607 		or	a
       
 12608 		ret	z
       
 12609 		push	bc
       
 12610 		push	de
       
 12611 		push	hl
       
 12612 		ld	c, a
       
 12613 		xor	a
       
 12614 		ld	(pagedCount), a
       
 12615 		ld	hl, pagedBuf
       
 12616 		ld	(pagedGetPtr), hl
       
 12617 		ld	de, (iMathPtr5)
       
 12618 		ld	a, (arcInfo)
       
 12619 		push	de
       
 12620 		ld	(Abackup), a
       
 12621 		ld	a, i
       
 12622 		di
       
 12623 		push	af
       
 12624 		ld	a, (Abackup)
       
 12625 		push	af
       
 12626 		ld	a, 1
       
 12627 		nop
       
 12628 		di
       
 12629 		nop
       
 12630 		nop
       
 12631 		im	1
       
 12632 		di
       
 12633 		out	(14h), a
       
 12634 		di
       
 12635 		call	checkForFlashTrickery
       
 12636 		pop	af
       
 12637 		call	p7Dsub_7C96
       
 12638 		jr	nc, p7Dloc_7E0D
       
 12639 		cp	8
       
 12640 		jr	c, p7Dloc_7E0D
       
 12641 		call	p7Dsub_7CCF
       
 12642 		call	p7Dsub_4566
       
 12643 		cp	0FEh ; '�'
       
 12644 		jr	nz, p7Dloc_7E0D
       
 12645 		call	p7Dsub_4565
       
 12646 		cp	7Fh ; ''
       
 12647 		jr	nz, p7Dloc_7E0D
       
 12648 		call	p7Dsub_4565
       
 12649 		ld	b, a
       
 12650 		ld	a, (arcInfo)
       
 12651 		cp	b
       
 12652 		jr	c, p7Dloc_7E0D
       
 12653 		jr	nz, p7Dloc_7DD3
       
 12654 		call	p7Dsub_455C
       
 12655 		push	hl
       
 12656 		ld	hl, (iMathPtr5)
       
 12657 		call	CpHLDE
       
 12658 		ex	de, hl
       
 12659 		pop	hl
       
 12660 		jr	c, p7Dloc_7E0D
       
 12661 		jr	p7Dloc_7DD9
       
 12662 ; ---------------------------------------------------------------------------
       
 12663 
       
 12664 p7Dloc_7DD3:				; CODE XREF: p7Dsub_7D67+5Aj
       
 12665 		ld	de, (iMathPtr5)
       
 12666 		inc	hl
       
 12667 		inc	hl
       
 12668 
       
 12669 p7Dloc_7DD9:				; CODE XREF: p7Dsub_7D67+6Aj
       
 12670 		ld	a, (arcInfo)
       
 12671 		ld	b, 0
       
 12672 		ex	de, hl
       
 12673 		add	hl, bc
       
 12674 		call	Page0Call_23FC
       
 12675 		jr	nc, p7Dloc_7DE6
       
 12676 		inc	a
       
 12677 
       
 12678 p7Dloc_7DE6:				; CODE XREF: p7Dsub_7D67+7Cj
       
 12679 		ld	b, a
       
 12680 		ex	de, hl
       
 12681 		call	p7Dsub_4565
       
 12682 		cp	b
       
 12683 		jr	c, p7Dloc_7E0D
       
 12684 		jr	nz, p7Dloc_7DFC
       
 12685 		push	de
       
 12686 		call	p7Dsub_455C
       
 12687 		pop	hl
       
 12688 		dec	hl
       
 12689 		call	CpHLDE
       
 12690 		ex	de, hl
       
 12691 		jr	nc, p7Dloc_7E0D
       
 12692 
       
 12693 p7Dloc_7DFC:				; CODE XREF: p7Dsub_7D67+87j
       
 12694 		ld	de, (iMathPtr5)
       
 12695 		ld	hl, pagedBuf
       
 12696 		ld	b, 0
       
 12697 		ld	a, (arcInfo)
       
 12698 		rst	28h
       
 12699 ; ---------------------------------------------------------------------------
       
 12700 		.dw 80C9h
       
 12701 ; ---------------------------------------------------------------------------
       
 12702 		jr	p7Dloc_7E0E
       
 12703 ; ---------------------------------------------------------------------------
       
 12704 
       
 12705 p7Dloc_7E0D:				; CODE XREF: p7Dsub_7D67+39j p7Dsub_7D67+3Dj ...
       
 12706 		nop
       
 12707 
       
 12708 p7Dloc_7E0E:				; CODE XREF: p7Dsub_7D67+A4j
       
 12709 		call	relockFlashBack
       
 12710 		ld	(Abackup), a
       
 12711 		pop	af
       
 12712 		jp	po, p7Dloc_7E19
       
 12713 		ei
       
 12714 
       
 12715 p7Dloc_7E19:				; CODE XREF: p7Dsub_7D67+AEj
       
 12716 		ld	a, (Abackup)
       
 12717 		ld	(iMathPtr5), de
       
 12718 		pop	hl
       
 12719 		or	a
       
 12720 		sbc	hl, de
       
 12721 		jr	c, p7Dloc_7E2D
       
 12722 		ld	a, (arcInfo)
       
 12723 		inc	a
       
 12724 		ld	(arcInfo), a
       
 12725 
       
 12726 p7Dloc_7E2D:				; CODE XREF: p7Dsub_7D67+BDj
       
 12727 		pop	hl
       
 12728 		pop	de
       
 12729 		pop	bc
       
 12730 		ret
       
 12731 ; End of function p7Dsub_7D67
       
 12732 
       
 12733 ; ---------------------------------------------------------------------------
       
 12734 
       
 12735 p7Dloc_7E31:				; CODE XREF: seg001:719Ej seg001:7E3Dj
       
 12736 		ld	a, (hl)
       
 12737 		inc	hl
       
 12738 		push	hl
       
 12739 		push	bc
       
 12740 		call	p7Dsub_7E40
       
 12741 		pop	bc
       
 12742 		pop	hl
       
 12743 		dec	bc
       
 12744 		ld	a, c
       
 12745 		or	b
       
 12746 		jr	nz, p7Dloc_7E31
       
 12747 		ret
       
 12748 
       
 12749 ; =============== S U B	R O U T	I N E =======================================
       
 12750 
       
 12751 
       
 12752 p7Dsub_7E40:				; CODE XREF: seg001:7E35p
       
 12753 		push	hl
       
 12754 		ld	hl, (pagedGetPtr)
       
 12755 		ld	(hl), a
       
 12756 		inc	hl
       
 12757 		ld	(pagedGetPtr), hl
       
 12758 		pop	hl
       
 12759 		ld	a, (pagedCount)
       
 12760 		inc	a
       
 12761 		ld	(pagedCount), a
       
 12762 		cp	10h
       
 12763 		call	z, p7Dsub_7D67
       
 12764 		ret
       
 12765 ; End of function p7Dsub_7E40
       
 12766 
       
 12767 ; ---------------------------------------------------------------------------
       
 12768 
       
 12769 p7Dloc_7E57:				; CODE XREF: seg001:7199j
       
 12770 		dec	hl
       
 12771 		dec	hl
       
 12772 		ld	a, (hl)
       
 12773 		inc	hl
       
 12774 		inc	hl
       
 12775 		cp	4
       
 12776 		jr	c, p7Dloc_7E66
       
 12777 		call	DelVarArc
       
 12778 		jp	Page0Call_2555
       
 12779 ; ---------------------------------------------------------------------------
       
 12780 
       
 12781 p7Dloc_7E66:				; CODE XREF: seg001:7E5Ej
       
 12782 		ld	a, (OP1+1)
       
 12783 		cp	24h ; '$'
       
 12784 		jp	z, Page0Call_24B5
       
 12785 		call	Page0Call_2EE9
       
 12786 		jp	z, Page0Call_24B5
       
 12787 		ld	a, (hl)
       
 12788 		push	af
       
 12789 		and	1Fh
       
 12790 		ld	(hl), a
       
 12791 		call	Page0Call_2ED1
       
 12792 		pop	af
       
 12793 		call	p7Dsub_7CDA
       
 12794 		xor	a
       
 12795 		ld	(pagedCount), a
       
 12796 		push	hl
       
 12797 		ld	hl, pagedBuf
       
 12798 		ld	(pagedGetPtr), hl
       
 12799 		pop	hl
       
 12800 		ret
       
 12801 
       
 12802 p7Dloc_7E8D:				; CODE XREF: seg001:71A8j
       
 12803 		call	Page0Call_2C91
       
 12804 		ret
       
 12805 
       
 12806 p7Dloc_7E91:				; CODE XREF: seg001:71ADj
       
 12807 		call	page0_1F38
       
 12808 		ret
       
 12809 
       
 12810 .org	$7FFF
       
 12811 		.db  5Dh	; ]