source/page7D/initial.asm
changeset 7 89b82476a75f
parent 6 e514aba854d4
child 8 795326a8c258
equal deleted inserted replaced
6:e514aba854d4 7:89b82476a75f
    20 		jp	relockFlashBack
    20 		jp	relockFlashBack
    21 
    21 
    22 ; =============== S U B	R O U T	I N E =======================================
    22 ; =============== S U B	R O U T	I N E =======================================
    23 
    23 
    24 
    24 
    25 DeleteApp:				; CODE XREF: seg001:6A61p
    25 DeleteApp:
    26 		push	af
    26 		push	af
    27 		ld	a, 1
    27 		ld	a, 1
    28 		nop
    28 		nop
    29 		di
    29 		di
    30 		nop
    30 		nop
    43 
    43 
    44 
    44 
    45 ; =============== S U B	R O U T	I N E =======================================
    45 ; =============== S U B	R O U T	I N E =======================================
    46 
    46 
    47 
    47 
    48 Page7D_2BE6:				; CODE XREF: seg001:401Cp
    48 Page7D_2BE6:
    49 		; DeleteApp+17p ...
    49 		; DeleteApp+17p ...
    50 		ld	b, a
    50 		ld	b, a
    51 		ld	hl, 4000h
    51 		ld	hl, 4000h
    52 		rst	28h
    52 		rst	28h
    53 ; ---------------------------------------------------------------------------
    53 ; ---------------------------------------------------------------------------
    66 		res	7, (iy+24h)
    66 		res	7, (iy+24h)
    67 		xor	a
    67 		xor	a
    68 		ld	(unk_9C87), a
    68 		ld	(unk_9C87), a
    69 		pop	af
    69 		pop	af
    70 
    70 
    71 p7Dloc_4061:				; CODE XREF: Page7D_2BE6+33j
    71 p7Dloc_4061:
    72 		set	0, (iy+25h)
    72 		set	0, (iy+25h)
    73 		push	af
    73 		push	af
    74 		push	bc
    74 		push	bc
    75 		ld	de, 4000h
    75 		ld	de, 4000h
    76 		ld	b, 0
    76 		ld	b, 0
    82 		pop	af
    82 		pop	af
    83 		dec	a
    83 		dec	a
    84 		djnz	p7Dloc_4061
    84 		djnz	p7Dloc_4061
    85 		ld	(appSearchPage+1), a
    85 		ld	(appSearchPage+1), a
    86 
    86 
    87 locret_4077:				; CODE XREF: Page7D_2BE6+Aj
    87 locret_4077:
    88 		ret
    88 		ret
    89 ; ---------------------------------------------------------------------------
    89 ; ---------------------------------------------------------------------------
    90 
    90 
    91 p7Dloc_4078:				; CODE XREF: Page7D_2BE6+13j
    91 p7Dloc_4078:
    92 		pop	af
    92 		pop	af
    93 		ret
    93 		ret
    94 ; End of function Page7D_2BE6
    94 ; End of function Page7D_2BE6
    95 
    95 
    96 
    96 
    97 ; =============== S U B	R O U T	I N E =======================================
    97 ; =============== S U B	R O U T	I N E =======================================
    98 
    98 
    99 
    99 
   100 Page7D_2BB0:				; CODE XREF: p7Dsub_7240:p7Dloc_7549p
   100 Page7D_2BB0:
   101 		; p7Dsub_7CDA:p7Dloc_7D01p
   101 		; p7Dsub_7CDA:p7Dloc_7D01p
   102 		push	hl
   102 		push	hl
   103 		call	p7Dsub_4894
   103 		call	p7Dsub_4894
   104 		call	p7Dsub_457C
   104 		call	p7Dsub_457C
   105 		pop	hl
   105 		pop	hl
   108 
   108 
   109 
   109 
   110 ; =============== S U B	R O U T	I N E =======================================
   110 ; =============== S U B	R O U T	I N E =======================================
   111 
   111 
   112 
   112 
   113 p7Dsub_4083:				; CODE XREF: Page7D_2B62+86p
   113 p7Dsub_4083:
   114 		; p7Dsub_430E+2Ap
   114 		; p7Dsub_430E+2Ap
   115 		call	p7Dsub_7700
   115 		call	p7Dsub_7700
   116 		push	bc
   116 		push	bc
   117 		push	hl
   117 		push	hl
   118 		push	de
   118 		push	de
   119 		push	af
   119 		push	af
   120 
   120 
   121 p7Dloc_408A:				; CODE XREF: p7Dsub_4083+1Cj
   121 p7Dloc_408A:
   122 		pop	af
   122 		pop	af
   123 		push	hl
   123 		push	hl
   124 		push	bc
   124 		push	bc
   125 		push	af
   125 		push	af
   126 		call	Page7D_2CD0
   126 		call	Page7D_2CD0
   149 
   149 
   150 
   150 
   151 ; =============== S U B	R O U T	I N E =======================================
   151 ; =============== S U B	R O U T	I N E =======================================
   152 
   152 
   153 
   153 
   154 p7Dsub_40A6:				; CODE XREF: seg001:5807p seg001:595Ep
   154 p7Dsub_40A6:
   155 		call	p7Dsub_7700
   155 		call	p7Dsub_7700
   156 ; End of function p7Dsub_40A6
   156 ; End of function p7Dsub_40A6
   157 
   157 
   158 
   158 
   159 p7Dloc_40A9:				; CODE XREF: seg001:58A2p
   159 p7Dloc_40A9:
   160 		push	bc
   160 		push	bc
   161 		push	hl
   161 		push	hl
   162 		push	de
   162 		push	de
   163 		push	af
   163 		push	af
   164 
   164 
   165 p7Dloc_40AD:				; CODE XREF: seg001:40C5j
   165 p7Dloc_40AD:
   166 		pop	af
   166 		pop	af
   167 		push	hl
   167 		push	hl
   168 		push	bc
   168 		push	bc
   169 		push	af
   169 		push	af
   170 		rst	28h
   170 		rst	28h
   195 		ret
   195 		ret
   196 
   196 
   197 ; =============== S U B	R O U T	I N E =======================================
   197 ; =============== S U B	R O U T	I N E =======================================
   198 
   198 
   199 
   199 
   200 Page7D_2B62:				; CODE XREF: p7Dsub_430E+4p p7Dsub_519D+19p	...
   200 Page7D_2B62:
   201 		ld	(unk_9C20), a
   201 		ld	(unk_9C20), a
   202 		push	de
   202 		push	de
   203 		push	bc
   203 		push	bc
   204 		push	hl
   204 		push	hl
   205 		call	p7Dsub_4894
   205 		call	p7Dsub_4894
   209 		ld	bc, 0
   209 		ld	bc, 0
   210 		ld	(OP6), bc
   210 		ld	(OP6), bc
   211 		jr	p7Dloc_4105
   211 		jr	p7Dloc_4105
   212 ; ---------------------------------------------------------------------------
   212 ; ---------------------------------------------------------------------------
   213 
   213 
   214 p7Dloc_40E5:				; CODE XREF: Page7D_2B62+Ej
   214 p7Dloc_40E5:
   215 		ld	bc, 1
   215 		ld	bc, 1
   216 		ld	(OP6), bc
   216 		ld	(OP6), bc
   217 		push	hl
   217 		push	hl
   218 		call	p7Dsub_4574
   218 		call	p7Dsub_4574
   219 		add	hl, bc
   219 		add	hl, bc
   227 		ld	de, 4000h
   227 		ld	de, 4000h
   228 		push	de
   228 		push	de
   229 		push	bc
   229 		push	bc
   230 		call	p7Dsub_42DF
   230 		call	p7Dsub_42DF
   231 
   231 
   232 p7Dloc_4105:				; CODE XREF: Page7D_2B62+17j
   232 p7Dloc_4105:
   233 		call	p7Dsub_4894
   233 		call	p7Dsub_4894
   234 		rst	28h
   234 		rst	28h
   235 ; ---------------------------------------------------------------------------
   235 ; ---------------------------------------------------------------------------
   236 		.dw 8060h
   236 		.dw 8060h
   237 ; ---------------------------------------------------------------------------
   237 ; ---------------------------------------------------------------------------
   245 		ex	de, hl
   245 		ex	de, hl
   246 		pop	hl
   246 		pop	hl
   247 		inc	de
   247 		inc	de
   248 		inc	hl
   248 		inc	hl
   249 
   249 
   250 p7Dloc_4117:				; CODE XREF: Page7D_2B62+8Dj
   250 p7Dloc_4117:
   251 		; Page7D_2B62:p7Dloc_4178j
   251 		; Page7D_2B62:p7Dloc_4178j
   252 		call	p7Dsub_4566
   252 		call	p7Dsub_4566
   253 		cp	0
   253 		cp	0
   254 		jr	z, p7Dloc_415C
   254 		jr	z, p7Dloc_415C
   255 		cp	0FFh
   255 		cp	0FFh
   260 		call	p7Dsub_521D
   260 		call	p7Dsub_521D
   261 		call	NZIf83Plus
   261 		call	NZIf83Plus
   262 		jr	nz, p7Dloc_4131
   262 		jr	nz, p7Dloc_4131
   263 		call	p7Dsub_522B
   263 		call	p7Dsub_522B
   264 
   264 
   265 p7Dloc_4131:				; CODE XREF: Page7D_2B62+60j
   265 p7Dloc_4131:
   266 		push	hl
   266 		push	hl
   267 		pop	bc
   267 		pop	bc
   268 		pop	hl
   268 		pop	hl
   269 		sbc	hl, bc
   269 		sbc	hl, bc
   270 		jr	nc, p7Dloc_417B
   270 		jr	nc, p7Dloc_417B
   281 		add	a, c
   281 		add	a, c
   282 		ld	c, a
   282 		ld	c, a
   283 		jr	nc, p7Dloc_414D
   283 		jr	nc, p7Dloc_414D
   284 		inc	b
   284 		inc	b
   285 
   285 
   286 p7Dloc_414D:				; CODE XREF: Page7D_2B62+7Ej
   286 p7Dloc_414D:
   287 		pop	hl
   287 		pop	hl
   288 		ld	de, (arcInfo)
   288 		ld	de, (arcInfo)
   289 		call	p7Dsub_4083
   289 		call	p7Dsub_4083
   290 		add	hl, bc
   290 		add	hl, bc
   291 		ex	de, hl
   291 		ex	de, hl
   292 		add	hl, bc
   292 		add	hl, bc
   293 		ex	de, hl
   293 		ex	de, hl
   294 		jp	p7Dloc_4117
   294 		jp	p7Dloc_4117
   295 ; ---------------------------------------------------------------------------
   295 ; ---------------------------------------------------------------------------
   296 
   296 
   297 p7Dloc_415C:				; CODE XREF: Page7D_2B62+50j
   297 p7Dloc_415C:
   298 		push	de
   298 		push	de
   299 		call	p7Dsub_4574
   299 		call	p7Dsub_4574
   300 		pop	de
   300 		pop	de
   301 		add	hl, bc
   301 		add	hl, bc
   302 		call	p7Dsub_4566
   302 		call	p7Dsub_4566
   312 		pop	bc
   312 		pop	bc
   313 		ex	de, hl
   313 		ex	de, hl
   314 		pop	de
   314 		pop	de
   315 		add	hl, bc
   315 		add	hl, bc
   316 
   316 
   317 p7Dloc_4178:				; CODE XREF: Page7D_2B62+9Bj
   317 p7Dloc_4178:
   318 		jp	p7Dloc_4117
   318 		jp	p7Dloc_4117
   319 ; ---------------------------------------------------------------------------
   319 ; ---------------------------------------------------------------------------
   320 
   320 
   321 p7Dloc_417B:				; CODE XREF: Page7D_2B62+54j
   321 p7Dloc_417B:
   322 		; Page7D_2B62+6Aj
   322 		; Page7D_2B62+6Aj
   323 		call	NZIf83Plus
   323 		call	NZIf83Plus
   324 		jr	nz, p7Dloc_41DF
   324 		jr	nz, p7Dloc_41DF
   325 		ld	a, (unk_9C20)
   325 		ld	a, (unk_9C20)
   326 		or	a
   326 		or	a
   338 		call	p7Dsub_425E
   338 		call	p7Dsub_425E
   339 		call	p7Dsub_4228
   339 		call	p7Dsub_4228
   340 		jr	p7Dloc_41E2
   340 		jr	p7Dloc_41E2
   341 ; ---------------------------------------------------------------------------
   341 ; ---------------------------------------------------------------------------
   342 
   342 
   343 p7Dloc_41A4:				; CODE XREF: Page7D_2B62+BCj
   343 p7Dloc_41A4:
   344 		call	p7Dsub_4261
   344 		call	p7Dsub_4261
   345 		call	p7Dsub_4211
   345 		call	p7Dsub_4211
   346 		call	p7Dsub_427C
   346 		call	p7Dsub_427C
   347 		call	p7Dsub_4230
   347 		call	p7Dsub_4230
   348 		jr	p7Dloc_41E2
   348 		jr	p7Dloc_41E2
   349 ; ---------------------------------------------------------------------------
   349 ; ---------------------------------------------------------------------------
   350 
   350 
   351 p7Dloc_41B2:				; CODE XREF: Page7D_2B62+C0j
   351 p7Dloc_41B2:
   352 		call	p7Dsub_4214
   352 		call	p7Dsub_4214
   353 		call	p7Dsub_425E
   353 		call	p7Dsub_425E
   354 		call	p7Dsub_427C
   354 		call	p7Dsub_427C
   355 		call	p7Dsub_4238
   355 		call	p7Dsub_4238
   356 		jr	p7Dloc_41E2
   356 		jr	p7Dloc_41E2
   357 ; ---------------------------------------------------------------------------
   357 ; ---------------------------------------------------------------------------
   358 
   358 
   359 p7Dloc_41C0:				; CODE XREF: Page7D_2B62+C4j
   359 p7Dloc_41C0:
   360 		call	p7Dsub_4214
   360 		call	p7Dsub_4214
   361 		call	p7Dsub_42A2
   361 		call	p7Dsub_42A2
   362 		call	p7Dsub_4269
   362 		call	p7Dsub_4269
   363 		call	p7Dsub_428F
   363 		call	p7Dsub_428F
   364 		call	p7Dsub_4238
   364 		call	p7Dsub_4238
   365 		jr	p7Dloc_41E2
   365 		jr	p7Dloc_41E2
   366 ; ---------------------------------------------------------------------------
   366 ; ---------------------------------------------------------------------------
   367 
   367 
   368 p7Dloc_41D1:				; CODE XREF: Page7D_2B62+C8j
   368 p7Dloc_41D1:
   369 		call	p7Dsub_42A2
   369 		call	p7Dsub_42A2
   370 		call	p7Dsub_425E
   370 		call	p7Dsub_425E
   371 		call	p7Dsub_428F
   371 		call	p7Dsub_428F
   372 		call	p7Dsub_4211
   372 		call	p7Dsub_4211
   373 		jr	p7Dloc_41E2
   373 		jr	p7Dloc_41E2
   374 ; ---------------------------------------------------------------------------
   374 ; ---------------------------------------------------------------------------
   375 
   375 
   376 p7Dloc_41DF:				; CODE XREF: Page7D_2B62+B2j
   376 p7Dloc_41DF:
   377 		; Page7D_2B62+B8j
   377 		; Page7D_2B62+B8j
   378 		call	p7Dsub_427F
   378 		call	p7Dsub_427F
   379 
   379 
   380 p7Dloc_41E2:				; CODE XREF: Page7D_2B62+D6j
   380 p7Dloc_41E2:
   381 		; Page7D_2B62+E4j ...
   381 		; Page7D_2B62+E4j ...
   382 		call	p7Dsub_4894
   382 		call	p7Dsub_4894
   383 		ex	de, hl
   383 		ex	de, hl
   384 		ld	b, 8Fh ; '�'
   384 		ld	b, 8Fh ; '�'
   385 		call	p7Dsub_456D
   385 		call	p7Dsub_456D
   400 		ex	de, hl
   400 		ex	de, hl
   401 		pop	bc
   401 		pop	bc
   402 		pop	hl
   402 		pop	hl
   403 		call	p7Dsub_42AE
   403 		call	p7Dsub_42AE
   404 
   404 
   405 p7Dloc_420D:				; CODE XREF: Page7D_2B62+136j
   405 p7Dloc_420D:
   406 		pop	hl
   406 		pop	hl
   407 		pop	bc
   407 		pop	bc
   408 		pop	de
   408 		pop	de
   409 		ret
   409 		ret
   410 ; End of function Page7D_2B62
   410 ; End of function Page7D_2B62
   411 
   411 
   412 
   412 
   413 ; =============== S U B	R O U T	I N E =======================================
   413 ; =============== S U B	R O U T	I N E =======================================
   414 
   414 
   415 
   415 
   416 p7Dsub_4211:				; CODE XREF: Page7D_2B62+CDp
   416 p7Dsub_4211:
   417 		; Page7D_2B62+DBp ...
   417 		; Page7D_2B62+DBp ...
   418 		call	p7Dsub_4243
   418 		call	p7Dsub_4243
   419 ; End of function p7Dsub_4211
   419 ; End of function p7Dsub_4211
   420 
   420 
   421 
   421 
   422 ; =============== S U B	R O U T	I N E =======================================
   422 ; =============== S U B	R O U T	I N E =======================================
   423 
   423 
   424 
   424 
   425 p7Dsub_4214:				; CODE XREF: Page7D_2B62:p7Dloc_41B2p
   425 p7Dsub_4214:
   426 		; Page7D_2B62:p7Dloc_41C0p
   426 		; Page7D_2B62:p7Dloc_41C0p
   427 		call	p7Dsub_522B
   427 		call	p7Dsub_522B
   428 		ld	bc, 66h	; 'f'
   428 		ld	bc, 66h	; 'f'
   429 
   429 
   430 p7Dloc_421A:				; CODE XREF: p7Dsub_4261+6j p7Dsub_427F+6j ...
   430 p7Dloc_421A:
   431 		ld	de, tempSwapArea
   431 		ld	de, tempSwapArea
   432 
   432 
   433 p7Dloc_421D:				; CODE XREF: p7Dsub_4269+9j p7Dsub_42A2+9j
   433 p7Dloc_421D:
   434 		call	Page7D_2BEC
   434 		call	Page7D_2BEC
   435 		ex	de, hl
   435 		ex	de, hl
   436 		call	p7Dsub_7700
   436 		call	p7Dsub_7700
   437 		call	p7Dsub_7666
   437 		call	p7Dsub_7666
   438 		ret
   438 		ret
   440 
   440 
   441 
   441 
   442 ; =============== S U B	R O U T	I N E =======================================
   442 ; =============== S U B	R O U T	I N E =======================================
   443 
   443 
   444 
   444 
   445 p7Dsub_4228:				; CODE XREF: Page7D_2B62+D3p
   445 p7Dsub_4228:
   446 		call	p7Dsub_521D
   446 		call	p7Dsub_521D
   447 		ld	bc, 0E8h ; '�'
   447 		ld	bc, 0E8h ; '�'
   448 		jr	p7Dloc_423E
   448 		jr	p7Dloc_423E
   449 ; End of function p7Dsub_4228
   449 ; End of function p7Dsub_4228
   450 
   450 
   451 
   451 
   452 ; =============== S U B	R O U T	I N E =======================================
   452 ; =============== S U B	R O U T	I N E =======================================
   453 
   453 
   454 
   454 
   455 p7Dsub_4230:				; CODE XREF: Page7D_2B62+E1p
   455 p7Dsub_4230:
   456 		call	p7Dsub_5236
   456 		call	p7Dsub_5236
   457 		ld	bc, 0C8h ; '�'
   457 		ld	bc, 0C8h ; '�'
   458 		jr	p7Dloc_423E
   458 		jr	p7Dloc_423E
   459 ; End of function p7Dsub_4230
   459 ; End of function p7Dsub_4230
   460 
   460 
   461 
   461 
   462 ; =============== S U B	R O U T	I N E =======================================
   462 ; =============== S U B	R O U T	I N E =======================================
   463 
   463 
   464 
   464 
   465 p7Dsub_4238:				; CODE XREF: Page7D_2B62+EFp
   465 p7Dsub_4238:
   466 		; Page7D_2B62+100p
   466 		; Page7D_2B62+100p
   467 		call	p7Dsub_522B
   467 		call	p7Dsub_522B
   468 		ld	bc, 66h	; 'f'
   468 		ld	bc, 66h	; 'f'
   469 
   469 
   470 p7Dloc_423E:				; CODE XREF: p7Dsub_4228+6j p7Dsub_4230+6j
   470 p7Dloc_423E:
   471 		call	Page7D_2BEC
   471 		call	Page7D_2BEC
   472 		jr	p7Dloc_4249
   472 		jr	p7Dloc_4249
   473 ; End of function p7Dsub_4238
   473 ; End of function p7Dsub_4238
   474 
   474 
   475 
   475 
   476 ; =============== S U B	R O U T	I N E =======================================
   476 ; =============== S U B	R O U T	I N E =======================================
   477 
   477 
   478 
   478 
   479 p7Dsub_4243:				; CODE XREF: p7Dsub_4211p	Page7D_2B86+13p
   479 p7Dsub_4243:
   480 		call	p7Dsub_522B
   480 		call	p7Dsub_522B
   481 		ld	bc, 66h	; 'f'
   481 		ld	bc, 66h	; 'f'
   482 
   482 
   483 p7Dloc_4249:				; CODE XREF: p7Dsub_4238+9j p7Dsub_4274+6j ...
   483 p7Dloc_4249:
   484 		ld	de, tempSwapArea
   484 		ld	de, tempSwapArea
   485 ; End of function p7Dsub_4243
   485 ; End of function p7Dsub_4243
   486 
   486 
   487 
   487 
   488 ; =============== S U B	R O U T	I N E =======================================
   488 ; =============== S U B	R O U T	I N E =======================================
   489 
   489 
   490 
   490 
   491 p7Dsub_424C:				; CODE XREF: p7Dsub_4253+9j p7Dsub_42DF+12p	...
   491 p7Dsub_424C:
   492 		call	p7Dsub_7700
   492 		call	p7Dsub_7700
   493 		call	FlashToRam
   493 		call	FlashToRam
   494 		ret
   494 		ret
   495 ; End of function p7Dsub_424C
   495 ; End of function p7Dsub_424C
   496 
   496 
   497 
   497 
   498 ; =============== S U B	R O U T	I N E =======================================
   498 ; =============== S U B	R O U T	I N E =======================================
   499 
   499 
   500 
   500 
   501 p7Dsub_4253:				; CODE XREF: Page7D_2B86+16p
   501 p7Dsub_4253:
   502 		; Page7D_2B86+1Ep
   502 		; Page7D_2B86+1Ep
   503 		call	Page7D_2B80
   503 		call	Page7D_2B80
   504 		ld	bc, 20h	; ' '
   504 		ld	bc, 20h	; ' '
   505 		ld	de, 836Dh
   505 		ld	de, 836Dh
   506 		jr	p7Dsub_424C
   506 		jr	p7Dsub_424C
   508 
   508 
   509 
   509 
   510 ; =============== S U B	R O U T	I N E =======================================
   510 ; =============== S U B	R O U T	I N E =======================================
   511 
   511 
   512 
   512 
   513 p7Dsub_425E:				; CODE XREF: Page7D_2B62+D0p
   513 p7Dsub_425E:
   514 		; Page7D_2B62+E9p ...
   514 		; Page7D_2B62+E9p ...
   515 		call	p7Dsub_4274
   515 		call	p7Dsub_4274
   516 ; End of function p7Dsub_425E
   516 ; End of function p7Dsub_425E
   517 
   517 
   518 
   518 
   519 ; =============== S U B	R O U T	I N E =======================================
   519 ; =============== S U B	R O U T	I N E =======================================
   520 
   520 
   521 
   521 
   522 p7Dsub_4261:				; CODE XREF: Page7D_2B62:p7Dloc_41A4p
   522 p7Dsub_4261:
   523 		call	p7Dsub_5236
   523 		call	p7Dsub_5236
   524 		ld	bc, 0C8h ; '�'
   524 		ld	bc, 0C8h ; '�'
   525 		jr	p7Dloc_421A
   525 		jr	p7Dloc_421A
   526 ; End of function p7Dsub_4261
   526 ; End of function p7Dsub_4261
   527 
   527 
   528 
   528 
   529 ; =============== S U B	R O U T	I N E =======================================
   529 ; =============== S U B	R O U T	I N E =======================================
   530 
   530 
   531 
   531 
   532 p7Dsub_4269:				; CODE XREF: Page7D_2B62+FAp
   532 p7Dsub_4269:
   533 		call	p7Dsub_5236
   533 		call	p7Dsub_5236
   534 		ld	bc, 0C8h ; '�'
   534 		ld	bc, 0C8h ; '�'
   535 		ld	de, ramStart
   535 		ld	de, ramStart
   536 		jr	p7Dloc_421D
   536 		jr	p7Dloc_421D
   537 ; End of function p7Dsub_4269
   537 ; End of function p7Dsub_4269
   538 
   538 
   539 
   539 
   540 ; =============== S U B	R O U T	I N E =======================================
   540 ; =============== S U B	R O U T	I N E =======================================
   541 
   541 
   542 
   542 
   543 p7Dsub_4274:				; CODE XREF: p7Dsub_425Ep
   543 p7Dsub_4274:
   544 		; Page7D_2B86:p7Dloc_47D1p
   544 		; Page7D_2B86:p7Dloc_47D1p
   545 		call	p7Dsub_5236
   545 		call	p7Dsub_5236
   546 		ld	bc, 0C8h ; '�'
   546 		ld	bc, 0C8h ; '�'
   547 		jr	p7Dloc_4249
   547 		jr	p7Dloc_4249
   548 ; End of function p7Dsub_4274
   548 ; End of function p7Dsub_4274
   549 
   549 
   550 
   550 
   551 ; =============== S U B	R O U T	I N E =======================================
   551 ; =============== S U B	R O U T	I N E =======================================
   552 
   552 
   553 
   553 
   554 p7Dsub_427C:				; CODE XREF: Page7D_2B62+DEp
   554 p7Dsub_427C:
   555 		; Page7D_2B62+ECp
   555 		; Page7D_2B62+ECp
   556 		call	p7Dsub_4287
   556 		call	p7Dsub_4287
   557 ; End of function p7Dsub_427C
   557 ; End of function p7Dsub_427C
   558 
   558 
   559 
   559 
   560 ; =============== S U B	R O U T	I N E =======================================
   560 ; =============== S U B	R O U T	I N E =======================================
   561 
   561 
   562 
   562 
   563 p7Dsub_427F:				; CODE XREF: Page7D_2B62+CAp
   563 p7Dsub_427F:
   564 		; Page7D_2B62:p7Dloc_41DFp
   564 		; Page7D_2B62:p7Dloc_41DFp
   565 		call	p7Dsub_521D
   565 		call	p7Dsub_521D
   566 		ld	bc, 0E8h ; '�'
   566 		ld	bc, 0E8h ; '�'
   567 		jr	p7Dloc_421A
   567 		jr	p7Dloc_421A
   568 ; End of function p7Dsub_427F
   568 ; End of function p7Dsub_427F
   569 
   569 
   570 
   570 
   571 ; =============== S U B	R O U T	I N E =======================================
   571 ; =============== S U B	R O U T	I N E =======================================
   572 
   572 
   573 
   573 
   574 p7Dsub_4287:				; CODE XREF: p7Dsub_427Cp
   574 p7Dsub_4287:
   575 		; Page7D_2B86:p7Dloc_47D9p
   575 		; Page7D_2B86:p7Dloc_47D9p
   576 		call	p7Dsub_521D
   576 		call	p7Dsub_521D
   577 		ld	bc, 0E8h ; '�'
   577 		ld	bc, 0E8h ; '�'
   578 		jr	p7Dloc_4249
   578 		jr	p7Dloc_4249
   579 ; End of function p7Dsub_4287
   579 ; End of function p7Dsub_4287
   580 
   580 
   581 
   581 
   582 ; =============== S U B	R O U T	I N E =======================================
   582 ; =============== S U B	R O U T	I N E =======================================
   583 
   583 
   584 
   584 
   585 p7Dsub_428F:				; CODE XREF: Page7D_2B62+FDp
   585 p7Dsub_428F:
   586 		; Page7D_2B62+10Bp
   586 		; Page7D_2B62+10Bp
   587 		call	p7Dsub_429A
   587 		call	p7Dsub_429A
   588 		call	p7Dsub_521D
   588 		call	p7Dsub_521D
   589 		ld	bc, 0C8h ; '�'
   589 		ld	bc, 0C8h ; '�'
   590 		jr	p7Dloc_421A
   590 		jr	p7Dloc_421A
   592 
   592 
   593 
   593 
   594 ; =============== S U B	R O U T	I N E =======================================
   594 ; =============== S U B	R O U T	I N E =======================================
   595 
   595 
   596 
   596 
   597 p7Dsub_429A:				; CODE XREF: p7Dsub_428Fp
   597 p7Dsub_429A:
   598 		call	p7Dsub_521D
   598 		call	p7Dsub_521D
   599 		ld	bc, 0C8h ; '�'
   599 		ld	bc, 0C8h ; '�'
   600 		jr	p7Dloc_4249
   600 		jr	p7Dloc_4249
   601 ; End of function p7Dsub_429A
   601 ; End of function p7Dsub_429A
   602 
   602 
   603 
   603 
   604 ; =============== S U B	R O U T	I N E =======================================
   604 ; =============== S U B	R O U T	I N E =======================================
   605 
   605 
   606 
   606 
   607 p7Dsub_42A2:				; CODE XREF: Page7D_2B62+F7p
   607 p7Dsub_42A2:
   608 		; Page7D_2B62:p7Dloc_41D1p
   608 		; Page7D_2B62:p7Dloc_41D1p
   609 		call	p7Dsub_523C
   609 		call	p7Dsub_523C
   610 		ld	bc, 20h	; ' '
   610 		ld	bc, 20h	; ' '
   611 		ld	de, 836Dh
   611 		ld	de, 836Dh
   612 		jp	p7Dloc_421D
   612 		jp	p7Dloc_421D
   614 
   614 
   615 
   615 
   616 ; =============== S U B	R O U T	I N E =======================================
   616 ; =============== S U B	R O U T	I N E =======================================
   617 
   617 
   618 
   618 
   619 p7Dsub_42AE:				; CODE XREF: Page7D_2B62+13Ep
   619 p7Dsub_42AE:
   620 		; p7Dsub_42AE+23j	...
   620 		; p7Dsub_42AE+23j	...
   621 		push	bc
   621 		push	bc
   622 		push	hl
   622 		push	hl
   623 		push	de
   623 		push	de
   624 		call	FindSwapSector
   624 		call	FindSwapSector
   644 
   644 
   645 
   645 
   646 ; =============== S U B	R O U T	I N E =======================================
   646 ; =============== S U B	R O U T	I N E =======================================
   647 
   647 
   648 
   648 
   649 p7Dsub_42D3:				; CODE XREF: p7Dsub_42DF+3p seg001:57F5p
   649 p7Dsub_42D3:
   650 		call	FindSwapSector
   650 		call	FindSwapSector
   651 		push	af
   651 		push	af
   652 		rst	28h
   652 		rst	28h
   653 ; ---------------------------------------------------------------------------
   653 ; ---------------------------------------------------------------------------
   654 		.dw 8084h
   654 		.dw 8084h
   660 
   660 
   661 
   661 
   662 ; =============== S U B	R O U T	I N E =======================================
   662 ; =============== S U B	R O U T	I N E =======================================
   663 
   663 
   664 
   664 
   665 p7Dsub_42DF:				; CODE XREF: Page7D_2B62+36p
   665 p7Dsub_42DF:
   666 		; p7Dsub_468A+19p
   666 		; p7Dsub_468A+19p
   667 		push	bc
   667 		push	bc
   668 		push	hl
   668 		push	hl
   669 		push	de
   669 		push	de
   670 		call	p7Dsub_42D3
   670 		call	p7Dsub_42D3
   671 		pop	de
   671 		pop	de
   672 		pop	hl
   672 		pop	hl
   673 		pop	bc
   673 		pop	bc
   674 
   674 
   675 p7Dloc_42E8:				; CODE XREF: p7Dsub_42DF+2Cj
   675 p7Dloc_42E8:
   676 		push	bc
   676 		push	bc
   677 		push	hl
   677 		push	hl
   678 		push	de
   678 		push	de
   679 		ld	de, OP1
   679 		ld	de, OP1
   680 		ld	bc, 1
   680 		ld	bc, 1
   703 
   703 
   704 
   704 
   705 ; =============== S U B	R O U T	I N E =======================================
   705 ; =============== S U B	R O U T	I N E =======================================
   706 
   706 
   707 
   707 
   708 p7Dsub_430E:				; CODE XREF: p7Dsub_468A+33p p7Dsub_5083-Fp
   708 p7Dsub_430E:
   709 		push	bc
   709 		push	bc
   710 		push	de
   710 		push	de
   711 		ld	a, 2
   711 		ld	a, 2
   712 		call	Page7D_2B62
   712 		call	Page7D_2B62
   713 		rst	28h
   713 		rst	28h
   722 		ld	de, 1F18h
   722 		ld	de, 1F18h
   723 		call	NZIf83Plus
   723 		call	NZIf83Plus
   724 		jr	nz, p7Dloc_4327
   724 		jr	nz, p7Dloc_4327
   725 		ld	de, 1DEAh
   725 		ld	de, 1DEAh
   726 
   726 
   727 p7Dloc_4327:				; CODE XREF: p7Dsub_430E+14j
   727 p7Dloc_4327:
   728 		add	hl, de
   728 		add	hl, de
   729 		pop	de
   729 		pop	de
   730 		or	a
   730 		or	a
   731 		sbc	hl, de
   731 		sbc	hl, de
   732 		jr	c, p7Dloc_433D
   732 		jr	c, p7Dloc_433D
   742 		call	p7Dsub_4083
   742 		call	p7Dsub_4083
   743 		xor	a
   743 		xor	a
   744 		ret
   744 		ret
   745 ; ---------------------------------------------------------------------------
   745 ; ---------------------------------------------------------------------------
   746 
   746 
   747 p7Dloc_433D:				; CODE XREF: p7Dsub_430E+1Ej p7Dsub_430E+22j
   747 p7Dloc_433D:
   748 		pop	de
   748 		pop	de
   749 		pop	de
   749 		pop	de
   750 		ret
   750 		ret
   751 ; End of function p7Dsub_430E
   751 ; End of function p7Dsub_430E
   752 
   752 
   773 		rst	28h
   773 		rst	28h
   774 ; ---------------------------------------------------------------------------
   774 ; ---------------------------------------------------------------------------
   775 		.dw 808Dh
   775 		.dw 808Dh
   776 ; ---------------------------------------------------------------------------
   776 ; ---------------------------------------------------------------------------
   777 
   777 
   778 p7Dloc_435E:				; CODE XREF: seg001:4378j
   778 p7Dloc_435E:
   779 		push	hl
   779 		push	hl
   780 		push	bc
   780 		push	bc
   781 		ld	bc, 1
   781 		ld	bc, 1
   782 		ld	de, tempSwapArea
   782 		ld	de, tempSwapArea
   783 		call	p7Dsub_424C
   783 		call	p7Dsub_424C
   827 ; ---------------------------------------------------------------------------
   827 ; ---------------------------------------------------------------------------
   828 		jr	nz, p7Dloc_43DA
   828 		jr	nz, p7Dloc_43DA
   829 		jr	p7Dloc_43CF
   829 		jr	p7Dloc_43CF
   830 ; ---------------------------------------------------------------------------
   830 ; ---------------------------------------------------------------------------
   831 
   831 
   832 p7Dloc_43B9:				; CODE XREF: seg001:439Dj
   832 p7Dloc_43B9:
   833 		ld	hl, 320h
   833 		ld	hl, 320h
   834 		cp	l
   834 		cp	l
   835 		jr	nz, p7Dloc_43C4
   835 		jr	nz, p7Dloc_43C4
   836 		rst	28h
   836 		rst	28h
   837 ; ---------------------------------------------------------------------------
   837 ; ---------------------------------------------------------------------------
   838 		.dw 80CCh
   838 		.dw 80CCh
   839 ; ---------------------------------------------------------------------------
   839 ; ---------------------------------------------------------------------------
   840 		jr	p7Dloc_43DA
   840 		jr	p7Dloc_43DA
   841 ; ---------------------------------------------------------------------------
   841 ; ---------------------------------------------------------------------------
   842 
   842 
   843 p7Dloc_43C4:				; CODE XREF: seg001:43BDj
   843 p7Dloc_43C4:
   844 		ld	de, 0A20h
   844 		ld	de, 0A20h
   845 		rst	28h
   845 		rst	28h
   846 ; ---------------------------------------------------------------------------
   846 ; ---------------------------------------------------------------------------
   847 		.dw 8027h
   847 		.dw 8027h
   848 ; ---------------------------------------------------------------------------
   848 ; ---------------------------------------------------------------------------
   849 		jr	nz, p7Dloc_43DA
   849 		jr	nz, p7Dloc_43DA
   850 		call	p7Dsub_4574
   850 		call	p7Dsub_4574
   851 
   851 
   852 p7Dloc_43CF:				; CODE XREF: seg001:43B7j
   852 p7Dloc_43CF:
   853 		dec	hl
   853 		dec	hl
   854 		inc	bc
   854 		inc	bc
   855 		call	p7Dsub_7700
   855 		call	p7Dsub_7700
   856 		ld	de, ramStart
   856 		ld	de, ramStart
   857 		rst	28h
   857 		rst	28h
   858 ; ---------------------------------------------------------------------------
   858 ; ---------------------------------------------------------------------------
   859 		.dw 8054h
   859 		.dw 8054h
   860 ; ---------------------------------------------------------------------------
   860 ; ---------------------------------------------------------------------------
   861 
   861 
   862 p7Dloc_43DA:				; CODE XREF: seg001:43A8j seg001:43B5j ...
   862 p7Dloc_43DA:
   863 		pop	hl
   863 		pop	hl
   864 		pop	de
   864 		pop	de
   865 		pop	bc
   865 		pop	bc
   866 		pop	af
   866 		pop	af
   867 		rst	28h
   867 		rst	28h
   875 ; ---------------------------------------------------------------------------
   875 ; ---------------------------------------------------------------------------
   876 		.dw 801Eh
   876 		.dw 801Eh
   877 ; ---------------------------------------------------------------------------
   877 ; ---------------------------------------------------------------------------
   878 		jr	z, p7Dloc_43F4
   878 		jr	z, p7Dloc_43F4
   879 
   879 
   880 p7Dloc_43EC:				; CODE XREF: seg001:4386j
   880 p7Dloc_43EC:
   881 		push	af
   881 		push	af
   882 		call	p7Dsub_4894
   882 		call	p7Dsub_4894
   883 		rst	28h
   883 		rst	28h
   884 ; ---------------------------------------------------------------------------
   884 ; ---------------------------------------------------------------------------
   885 		.dw 8060h
   885 		.dw 8060h
   886 ; ---------------------------------------------------------------------------
   886 ; ---------------------------------------------------------------------------
   887 		pop	af
   887 		pop	af
   888 
   888 
   889 p7Dloc_43F4:				; CODE XREF: p7Dsub_4442-58j
   889 p7Dloc_43F4:
   890 		pop	hl
   890 		pop	hl
   891 		ret
   891 		ret
   892 ; END OF FUNCTION CHUNK	FOR p7Dsub_4442
   892 ; END OF FUNCTION CHUNK	FOR p7Dsub_4442
   893 
   893 
   894 ; =============== S U B	R O U T	I N E =======================================
   894 ; =============== S U B	R O U T	I N E =======================================
   895 
   895 
   896 
   896 
   897 p7Dsub_43F6:				; CODE XREF: seg001:7739p
   897 p7Dsub_43F6:
   898 		push	af
   898 		push	af
   899 		call	p7Dsub_5525
   899 		call	p7Dsub_5525
   900 		jr	nz, P1orAret
   900 		jr	nz, P1orAret
   901 		push	af
   901 		push	af
   902 		inc	hl
   902 		inc	hl
   940 		.dw 801Eh
   940 		.dw 801Eh
   941 ; ---------------------------------------------------------------------------
   941 ; ---------------------------------------------------------------------------
   942 		ret
   942 		ret
   943 ; ---------------------------------------------------------------------------
   943 ; ---------------------------------------------------------------------------
   944 
   944 
   945 P1orAret:				; CODE XREF: p7Dsub_43F6+4j
   945 P1orAret:
   946 		pop	af
   946 		pop	af
   947 		or	a
   947 		or	a
   948 		ret
   948 		ret
   949 ; End of function p7Dsub_43F6
   949 ; End of function p7Dsub_43F6
   950 
   950 
   951 ; ---------------------------------------------------------------------------
   951 ; ---------------------------------------------------------------------------
   952 
   952 
   953 p7Dloc_442C:				; CODE XREF: seg001:44C9p p7Dsub_5B4D+1Dp
   953 p7Dloc_442C:
   954 		push	hl
   954 		push	hl
   955 		push	af
   955 		push	af
   956 		ld	c, a
   956 		ld	c, a
   957 		ld	de, 400h
   957 		ld	de, 400h
   958 		rst	28h
   958 		rst	28h
   970 		pop	de
   970 		pop	de
   971 		ex	de, hl
   971 		ex	de, hl
   972 		pop	af
   972 		pop	af
   973 		pop	hl
   973 		pop	hl
   974 
   974 
   975 locret_4441:				; CODE XREF: seg001:4435j
   975 locret_4441:
   976 		ret
   976 		ret
   977 
   977 
   978 ; =============== S U B	R O U T	I N E =======================================
   978 ; =============== S U B	R O U T	I N E =======================================
   979 
   979 
   980 
   980 
   981 p7Dsub_4442:				; CODE XREF: seg001:43A5p p7Dsub_4490+2p	...
   981 p7Dsub_4442:
   982 
   982 
   983 ; FUNCTION CHUNK AT 43DF SIZE 00000017 BYTES
   983 
   984 
   984 
   985 		push	hl
   985 		push	hl
   986 		push	bc
   986 		push	bc
   987 		call	p7Dsub_70D1
   987 		call	p7Dsub_70D1
   988 		ld	de, 800h
   988 		ld	de, 800h
   989 		call	p7Dsub_777E
   989 		call	p7Dsub_777E
   990 		call	p7Dsub_4574
   990 		call	p7Dsub_4574
   991 		pop	bc
   991 		pop	bc
   992 		pop	de
   992 		pop	de
   993 
   993 
   994 p7Dloc_4452:				; CODE XREF: p7Dsub_4442+45j
   994 p7Dloc_4452:
   995 		push	de
   995 		push	de
   996 		push	bc
   996 		push	bc
   997 		push	bc
   997 		push	bc
   998 		push	de
   998 		push	de
   999 		ld	de, 810h
   999 		ld	de, 810h
  1012 		ld	b, 0
  1012 		ld	b, 0
  1013 		push	bc
  1013 		push	bc
  1014 		jr	nz, p7Dloc_4482
  1014 		jr	nz, p7Dloc_4482
  1015 		ld	b, c
  1015 		ld	b, c
  1016 
  1016 
  1017 p7Dloc_446D:				; CODE XREF: p7Dsub_4442+35j
  1017 p7Dloc_446D:
  1018 		call	p7Dsub_7700
  1018 		call	p7Dsub_7700
  1019 		call	p7Dsub_4C73
  1019 		call	p7Dsub_4C73
  1020 		jr	nz, p7Dloc_4482
  1020 		jr	nz, p7Dloc_4482
  1021 		inc	de
  1021 		inc	de
  1022 		inc	hl
  1022 		inc	hl
  1028 		ld	a, 0
  1028 		ld	a, 0
  1029 		bit	7, a
  1029 		bit	7, a
  1030 		ret
  1030 		ret
  1031 ; ---------------------------------------------------------------------------
  1031 ; ---------------------------------------------------------------------------
  1032 
  1032 
  1033 p7Dloc_4482:				; CODE XREF: p7Dsub_4442+28j p7Dsub_4442+31j
  1033 p7Dloc_4482:
  1034 		pop	bc
  1034 		pop	bc
  1035 		pop	hl
  1035 		pop	hl
  1036 		add	hl, bc
  1036 		add	hl, bc
  1037 		pop	bc
  1037 		pop	bc
  1038 		pop	de
  1038 		pop	de
  1039 		jr	p7Dloc_4452
  1039 		jr	p7Dloc_4452
  1040 ; ---------------------------------------------------------------------------
  1040 ; ---------------------------------------------------------------------------
  1041 
  1041 
  1042 p7Dloc_4489:				; CODE XREF: p7Dsub_4442+20j
  1042 p7Dloc_4489:
  1043 		pop	bc
  1043 		pop	bc
  1044 		pop	de
  1044 		pop	de
  1045 		ld	a, 0FFh
  1045 		ld	a, 0FFh
  1046 		bit	7, a
  1046 		bit	7, a
  1047 		ret
  1047 		ret
  1049 
  1049 
  1050 
  1050 
  1051 ; =============== S U B	R O U T	I N E =======================================
  1051 ; =============== S U B	R O U T	I N E =======================================
  1052 
  1052 
  1053 
  1053 
  1054 p7Dsub_4490:				; CODE XREF: seg001:4722p
  1054 p7Dsub_4490:
  1055 		push	hl
  1055 		push	hl
  1056 		push	bc
  1056 		push	bc
  1057 		call	p7Dsub_4442
  1057 		call	p7Dsub_4442
  1058 		pop	bc
  1058 		pop	bc
  1059 		pop	hl
  1059 		pop	hl
  1062 
  1062 
  1063 
  1063 
  1064 ; =============== S U B	R O U T	I N E =======================================
  1064 ; =============== S U B	R O U T	I N E =======================================
  1065 
  1065 
  1066 
  1066 
  1067 p7Dsub_4498:				; CODE XREF: seg001:45A1p
  1067 p7Dsub_4498:
  1068 		call	p7Dsub_7700
  1068 		call	p7Dsub_7700
  1069 		call	p7Dsub_4894
  1069 		call	p7Dsub_4894
  1070 		call	p7Dsub_7700
  1070 		call	p7Dsub_7700
  1071 		call	p7Dsub_4873
  1071 		call	p7Dsub_4873
  1072 		call	p7Dsub_70D1
  1072 		call	p7Dsub_70D1
  1079 		pop	bc
  1079 		pop	bc
  1080 		or	a
  1080 		or	a
  1081 		sbc	hl, bc
  1081 		sbc	hl, bc
  1082 		jr	nc, p7Dloc_44BE
  1082 		jr	nc, p7Dloc_44BE
  1083 
  1083 
  1084 p7Dloc_44B8:				; CODE XREF: p7Dsub_4498+Fj
  1084 p7Dloc_44B8:
  1085 		ld	a, 0
  1085 		ld	a, 0
  1086 		bit	7, a
  1086 		bit	7, a
  1087 		jr	locret_44C2
  1087 		jr	locret_44C2
  1088 ; ---------------------------------------------------------------------------
  1088 ; ---------------------------------------------------------------------------
  1089 
  1089 
  1090 p7Dloc_44BE:				; CODE XREF: p7Dsub_4498+1Ej
  1090 p7Dloc_44BE:
  1091 		ld	a, 0FFh
  1091 		ld	a, 0FFh
  1092 		bit	7, a
  1092 		bit	7, a
  1093 
  1093 
  1094 locret_44C2:				; CODE XREF: p7Dsub_4498+24j
  1094 locret_44C2:
  1095 		ret
  1095 		ret
  1096 ; End of function p7Dsub_4498
  1096 ; End of function p7Dsub_4498
  1097 
  1097 
  1098 ; ---------------------------------------------------------------------------
  1098 ; ---------------------------------------------------------------------------
  1099 
  1099 
  1100 p7Dloc_44C3:				; CODE XREF: seg001:459Cp
  1100 p7Dloc_44C3:
  1101 		call	p7Dsub_4894
  1101 		call	p7Dsub_4894
  1102 		call	p7Dsub_7700
  1102 		call	p7Dsub_7700
  1103 		call	p7Dloc_442C
  1103 		call	p7Dloc_442C
  1104 		push	de
  1104 		push	de
  1105 		push	bc
  1105 		push	bc
  1117 		jr	nz, p7Dloc_44F7
  1117 		jr	nz, p7Dloc_44F7
  1118 		ex	de, hl
  1118 		ex	de, hl
  1119 		pop	hl
  1119 		pop	hl
  1120 		ld	b, c
  1120 		ld	b, c
  1121 
  1121 
  1122 p7Dloc_44E1:				; CODE XREF: seg001:44F5j
  1122 p7Dloc_44E1:
  1123 		ex	de, hl
  1123 		ex	de, hl
  1124 		call	p7Dsub_4566
  1124 		call	p7Dsub_4566
  1125 		ld	c, a
  1125 		ld	c, a
  1126 		ex	de, hl
  1126 		ex	de, hl
  1127 		call	p7Dsub_4566
  1127 		call	p7Dsub_4566
  1134 		inc	hl
  1134 		inc	hl
  1135 		inc	de
  1135 		inc	de
  1136 		jr	p7Dloc_44E1
  1136 		jr	p7Dloc_44E1
  1137 ; ---------------------------------------------------------------------------
  1137 ; ---------------------------------------------------------------------------
  1138 
  1138 
  1139 p7Dloc_44F7:				; CODE XREF: seg001:44DCj
  1139 p7Dloc_44F7:
  1140 		pop	bc
  1140 		pop	bc
  1141 
  1141 
  1142 locret_44F8:				; CODE XREF: seg001:44EBj seg001:44F1j
  1142 locret_44F8:
  1143 		ret
  1143 		ret
  1144 ; ---------------------------------------------------------------------------
  1144 ; ---------------------------------------------------------------------------
  1145 
  1145 
  1146 Page7D_2BFE:
  1146 Page7D_2BFE:
  1147 		push	af
  1147 		push	af
  1172 		rst	28h
  1172 		rst	28h
  1173 ; ---------------------------------------------------------------------------
  1173 ; ---------------------------------------------------------------------------
  1174 		.dw 802Ah
  1174 		.dw 802Ah
  1175 ; ---------------------------------------------------------------------------
  1175 ; ---------------------------------------------------------------------------
  1176 
  1176 
  1177 p7Dloc_4529:				; CODE XREF: seg001:4521j
  1177 p7Dloc_4529:
  1178 		call	p7Dsub_4894
  1178 		call	p7Dsub_4894
  1179 		call	p7Dsub_5083
  1179 		call	p7Dsub_5083
  1180 		xor	a
  1180 		xor	a
  1181 
  1181 
  1182 p7Dloc_4530:				; CODE XREF: seg001:4519j
  1182 p7Dloc_4530:
  1183 		jp	relockFlashBack
  1183 		jp	relockFlashBack
  1184 
  1184 
  1185 ; =============== S U B	R O U T	I N E =======================================
  1185 ; =============== S U B	R O U T	I N E =======================================
  1186 
  1186 
  1187 
  1187 
  1188 p7Dsub_4533:				; CODE XREF: seg001:4599p
  1188 p7Dsub_4533:
  1189 		call	Page7D_2B80
  1189 		call	Page7D_2B80
  1190 		call	p7Dsub_4566
  1190 		call	p7Dsub_4566
  1191 		ld	(unk_8439+1), a
  1191 		ld	(unk_8439+1), a
  1192 		inc	hl
  1192 		inc	hl
  1193 		call	p7Dsub_4566
  1193 		call	p7Dsub_4566
  1208 
  1208 
  1209 
  1209 
  1210 ; =============== S U B	R O U T	I N E =======================================
  1210 ; =============== S U B	R O U T	I N E =======================================
  1211 
  1211 
  1212 
  1212 
  1213 p7Dsub_455C:				; CODE XREF: p7Dsub_7D67+5Cp p7Dsub_7D67+8Ap
  1213 p7Dsub_455C:
  1214 		call	p7Dsub_4565
  1214 		call	p7Dsub_4565
  1215 		ld	e, a
  1215 		ld	e, a
  1216 		call	p7Dsub_4565
  1216 		call	p7Dsub_4565
  1217 		ld	d, a
  1217 		ld	d, a
  1218 		ret
  1218 		ret
  1220 
  1220 
  1221 
  1221 
  1222 ; =============== S U B	R O U T	I N E =======================================
  1222 ; =============== S U B	R O U T	I N E =======================================
  1223 
  1223 
  1224 
  1224 
  1225 p7Dsub_4565:				; CODE XREF: p7Dsub_455Cp	p7Dsub_455C+4p ...
  1225 p7Dsub_4565:
  1226 		inc	hl
  1226 		inc	hl
  1227 ; End of function p7Dsub_4565
  1227 ; End of function p7Dsub_4565
  1228 
  1228 
  1229 
  1229 
  1230 ; =============== S U B	R O U T	I N E =======================================
  1230 ; =============== S U B	R O U T	I N E =======================================
  1231 
  1231 
  1232 
  1232 
  1233 p7Dsub_4566:				; CODE XREF: Page7D_2B62+9p
  1233 p7Dsub_4566:
  1234 		; Page7D_2B62:p7Dloc_4117p ...
  1234 		; Page7D_2B62:p7Dloc_4117p ...
  1235 		call	p7Dsub_7700
  1235 		call	p7Dsub_7700
  1236 		call	Page7D_2CD0
  1236 		call	Page7D_2CD0
  1237 		ret
  1237 		ret
  1238 ; End of function p7Dsub_4566
  1238 ; End of function p7Dsub_4566
  1239 
  1239 
  1240 
  1240 
  1241 ; =============== S U B	R O U T	I N E =======================================
  1241 ; =============== S U B	R O U T	I N E =======================================
  1242 
  1242 
  1243 
  1243 
  1244 p7Dsub_456D:				; CODE XREF: Page7D_2B62+11Cp
  1244 p7Dsub_456D:
  1245 		; Page7D_2B62+12Cp ...
  1245 		; Page7D_2B62+12Cp ...
  1246 		call	p7Dsub_7700
  1246 		call	p7Dsub_7700
  1247 		rst	28h
  1247 		rst	28h
  1248 ; ---------------------------------------------------------------------------
  1248 ; ---------------------------------------------------------------------------
  1249 		.dw 8021h
  1249 		.dw 8021h
  1253 
  1253 
  1254 
  1254 
  1255 ; =============== S U B	R O U T	I N E =======================================
  1255 ; =============== S U B	R O U T	I N E =======================================
  1256 
  1256 
  1257 
  1257 
  1258 p7Dsub_4574:				; CODE XREF: Page7D_2B62+21p
  1258 p7Dsub_4574:
  1259 		; Page7D_2B62+25p ...
  1259 		; Page7D_2B62+25p ...
  1260 		inc	hl
  1260 		inc	hl
  1261 
  1261 
  1262 p7Dloc_4575:				; CODE XREF: p7Dsub_4F95+47p seg001:5F60p
  1262 p7Dloc_4575:
  1263 		call	p7Dsub_7700
  1263 		call	p7Dsub_7700
  1264 		rst	28h
  1264 		rst	28h
  1265 ; ---------------------------------------------------------------------------
  1265 ; ---------------------------------------------------------------------------
  1266 		.dw 805Ah
  1266 		.dw 805Ah
  1267 ; ---------------------------------------------------------------------------
  1267 ; ---------------------------------------------------------------------------
  1270 
  1270 
  1271 
  1271 
  1272 ; =============== S U B	R O U T	I N E =======================================
  1272 ; =============== S U B	R O U T	I N E =======================================
  1273 
  1273 
  1274 
  1274 
  1275 p7Dsub_457C:				; CODE XREF: Page7D_2BB0+4p
  1275 p7Dsub_457C:
  1276 		; Page7D_2B62+126p ...
  1276 		; Page7D_2B62+126p ...
  1277 		call	p7Dsub_7700
  1277 		call	p7Dsub_7700
  1278 		rst	28h
  1278 		rst	28h
  1279 ; ---------------------------------------------------------------------------
  1279 ; ---------------------------------------------------------------------------
  1280 		.dw 8024h
  1280 		.dw 8024h
  1319 		rst	28h
  1319 		rst	28h
  1320 ; ---------------------------------------------------------------------------
  1320 ; ---------------------------------------------------------------------------
  1321 		.dw 802Ah
  1321 		.dw 802Ah
  1322 ; ---------------------------------------------------------------------------
  1322 ; ---------------------------------------------------------------------------
  1323 
  1323 
  1324 p7Dloc_45BF:				; CODE XREF: seg001:45BAj
  1324 p7Dloc_45BF:
  1325 		call	p7Dsub_468A
  1325 		call	p7Dsub_468A
  1326 		call	p7Dsub_70D1
  1326 		call	p7Dsub_70D1
  1327 		call	p7Dsub_45E4
  1327 		call	p7Dsub_45E4
  1328 		ld	a, 0
  1328 		ld	a, 0
  1329 		bit	7, a
  1329 		bit	7, a
  1330 
  1330 
  1331 p7Dloc_45CC:				; CODE XREF: seg001:45E2j
  1331 p7Dloc_45CC:
  1332 		push	af
  1332 		push	af
  1333 		call	p7Dsub_4926
  1333 		call	p7Dsub_4926
  1334 		pop	af
  1334 		pop	af
  1335 		pop	ix
  1335 		pop	ix
  1336 		pop	hl
  1336 		pop	hl
  1337 		pop	de
  1337 		pop	de
  1338 		pop	bc
  1338 		pop	bc
  1339 		jp	relockFlashBack
  1339 		jp	relockFlashBack
  1340 ; ---------------------------------------------------------------------------
  1340 ; ---------------------------------------------------------------------------
  1341 
  1341 
  1342 p7Dloc_45D9:				; CODE XREF: seg001:459Fj seg001:45A4j
  1342 p7Dloc_45D9:
  1343 		call	p7Dsub_4894
  1343 		call	p7Dsub_4894
  1344 		rst	28h
  1344 		rst	28h
  1345 ; ---------------------------------------------------------------------------
  1345 ; ---------------------------------------------------------------------------
  1346 		.dw 8060h
  1346 		.dw 8060h
  1347 ; ---------------------------------------------------------------------------
  1347 ; ---------------------------------------------------------------------------
  1350 		jr	p7Dloc_45CC
  1350 		jr	p7Dloc_45CC
  1351 
  1351 
  1352 ; =============== S U B	R O U T	I N E =======================================
  1352 ; =============== S U B	R O U T	I N E =======================================
  1353 
  1353 
  1354 
  1354 
  1355 p7Dsub_45E4:				; CODE XREF: seg001:45C5p seg001:4794p
  1355 p7Dsub_45E4:
  1356 		push	bc
  1356 		push	bc
  1357 		push	de
  1357 		push	de
  1358 		ld	a, (unk_8439+1)
  1358 		ld	a, (unk_8439+1)
  1359 		ld	b, a
  1359 		ld	b, a
  1360 		call	Page7D_2B80
  1360 		call	Page7D_2B80
  1371 		rst	28h
  1371 		rst	28h
  1372 ; ---------------------------------------------------------------------------
  1372 ; ---------------------------------------------------------------------------
  1373 		.dw 8087h
  1373 		.dw 8087h
  1374 ; ---------------------------------------------------------------------------
  1374 ; ---------------------------------------------------------------------------
  1375 
  1375 
  1376 p7Dloc_4609:				; CODE XREF: p7Dsub_45E4+17j
  1376 p7Dloc_4609:
  1377 		call	p7Dsub_70D1
  1377 		call	p7Dsub_70D1
  1378 		jr	nz, p7Dloc_464B
  1378 		jr	nz, p7Dloc_464B
  1379 		call	p7Dsub_464E
  1379 		call	p7Dsub_464E
  1380 		call	p7Dsub_4574
  1380 		call	p7Dsub_4574
  1381 		add	hl, bc
  1381 		add	hl, bc
  1382 		call	p7Dsub_70D1
  1382 		call	p7Dsub_70D1
  1383 		ld	de, 800h
  1383 		ld	de, 800h
  1384 		call	p7Dsub_777E
  1384 		call	p7Dsub_777E
  1385 		call	p7Dsub_4574
  1385 		call	p7Dsub_4574
  1386 
  1386 
  1387 p7Dloc_4621:				; CODE XREF: p7Dsub_45E4+65j
  1387 p7Dloc_4621:
  1388 		ld	de, 810h
  1388 		ld	de, 810h
  1389 		call	p7Dsub_7700
  1389 		call	p7Dsub_7700
  1390 		rst	28h
  1390 		rst	28h
  1391 ; ---------------------------------------------------------------------------
  1391 ; ---------------------------------------------------------------------------
  1392 		.dw 8030h
  1392 		.dw 8030h
  1408 		.dw 8066h
  1408 		.dw 8066h
  1409 ; ---------------------------------------------------------------------------
  1409 ; ---------------------------------------------------------------------------
  1410 		jr	nz, p7Dloc_4646
  1410 		jr	nz, p7Dloc_4646
  1411 		call	p7Dsub_464E
  1411 		call	p7Dsub_464E
  1412 
  1412 
  1413 p7Dloc_4646:				; CODE XREF: p7Dsub_45E4+5Dj
  1413 p7Dloc_4646:
  1414 		pop	bc
  1414 		pop	bc
  1415 		pop	hl
  1415 		pop	hl
  1416 		add	hl, bc
  1416 		add	hl, bc
  1417 		jr	p7Dloc_4621
  1417 		jr	p7Dloc_4621
  1418 ; ---------------------------------------------------------------------------
  1418 ; ---------------------------------------------------------------------------
  1419 
  1419 
  1420 p7Dloc_464B:				; CODE XREF: p7Dsub_45E4+28j p7Dsub_45E4+46j
  1420 p7Dloc_464B:
  1421 		pop	de
  1421 		pop	de
  1422 		pop	bc
  1422 		pop	bc
  1423 		ret
  1423 		ret
  1424 ; End of function p7Dsub_45E4
  1424 ; End of function p7Dsub_45E4
  1425 
  1425 
  1426 
  1426 
  1427 ; =============== S U B	R O U T	I N E =======================================
  1427 ; =============== S U B	R O U T	I N E =======================================
  1428 
  1428 
  1429 
  1429 
  1430 p7Dsub_464E:				; CODE XREF: p7Dsub_45E4+2Ap p7Dsub_45E4+5Fp
  1430 p7Dsub_464E:
  1431 		push	af
  1431 		push	af
  1432 		push	bc
  1432 		push	bc
  1433 		push	de
  1433 		push	de
  1434 		push	hl
  1434 		push	hl
  1435 		push	ix
  1435 		push	ix
  1439 ; ---------------------------------------------------------------------------
  1439 ; ---------------------------------------------------------------------------
  1440 		ld	de, 700h
  1440 		ld	de, 700h
  1441 		call	p7Dsub_777E
  1441 		call	p7Dsub_777E
  1442 		call	p7Dsub_4574
  1442 		call	p7Dsub_4574
  1443 
  1443 
  1444 p7Dloc_4660:				; CODE XREF: p7Dsub_464E+33j
  1444 p7Dloc_4660:
  1445 		ld	de, 710h
  1445 		ld	de, 710h
  1446 		call	p7Dsub_705E
  1446 		call	p7Dsub_705E
  1447 		jr	nz, p7Dloc_4683
  1447 		jr	nz, p7Dloc_4683
  1448 		call	p7Dsub_4574
  1448 		call	p7Dsub_4574
  1449 		push	bc
  1449 		push	bc
  1459 		.dw 80A8h
  1459 		.dw 80A8h
  1460 ; ---------------------------------------------------------------------------
  1460 ; ---------------------------------------------------------------------------
  1461 		jr	z, p7Dloc_467E
  1461 		jr	z, p7Dloc_467E
  1462 		call	p7Dsub_51C3
  1462 		call	p7Dsub_51C3
  1463 
  1463 
  1464 p7Dloc_467E:				; CODE XREF: p7Dsub_464E+2Bj
  1464 p7Dloc_467E:
  1465 		pop	hl
  1465 		pop	hl
  1466 		pop	bc
  1466 		pop	bc
  1467 		add	hl, bc
  1467 		add	hl, bc
  1468 		jr	p7Dloc_4660
  1468 		jr	p7Dloc_4660
  1469 ; ---------------------------------------------------------------------------
  1469 ; ---------------------------------------------------------------------------
  1470 
  1470 
  1471 p7Dloc_4683:				; CODE XREF: p7Dsub_464E+18j
  1471 p7Dloc_4683:
  1472 		pop	ix
  1472 		pop	ix
  1473 		pop	hl
  1473 		pop	hl
  1474 		pop	de
  1474 		pop	de
  1475 		pop	bc
  1475 		pop	bc
  1476 		pop	af
  1476 		pop	af
  1479 
  1479 
  1480 
  1480 
  1481 ; =============== S U B	R O U T	I N E =======================================
  1481 ; =============== S U B	R O U T	I N E =======================================
  1482 
  1482 
  1483 
  1483 
  1484 p7Dsub_468A:				; CODE XREF: seg001:p7Dloc_45BFp
  1484 p7Dsub_468A:
  1485 		; seg001:477Cp
  1485 
  1486 		call	p7Dsub_4894
  1486 		call	p7Dsub_4894
  1487 		push	hl
  1487 		push	hl
  1488 		call	p7Dsub_4574
  1488 		call	p7Dsub_4574
  1489 		add	hl, bc
  1489 		add	hl, bc
  1490 		call	p7Dsub_4574
  1490 		call	p7Dsub_4574
  1521 		ret	z
  1521 		ret	z
  1522 ; End of function p7Dsub_468A
  1522 ; End of function p7Dsub_468A
  1523 
  1523 
  1524 ; START	OF FUNCTION CHUNK FOR p7Dsub_5083
  1524 ; START	OF FUNCTION CHUNK FOR p7Dsub_5083
  1525 
  1525 
  1526 p7Dloc_46C1:				; CODE XREF: p7Dsub_5083-Cj
  1526 p7Dloc_46C1:
  1527 		call	relockFlashBack
  1527 		call	relockFlashBack
  1528 		jp	JErrorNo
  1528 		jp	JErrorNo
  1529 ; END OF FUNCTION CHUNK	FOR p7Dsub_5083
  1529 ; END OF FUNCTION CHUNK	FOR p7Dsub_5083
  1530 ; ---------------------------------------------------------------------------
  1530 ; ---------------------------------------------------------------------------
  1531 
  1531 
  1532 p7Dloc_46C7:				; CODE XREF: seg001:4728p seg001:4738p
  1532 p7Dloc_46C7:
  1533 		push	de
  1533 		push	de
  1534 		push	bc
  1534 		push	bc
  1535 		call	p7Dsub_762A
  1535 		call	p7Dsub_762A
  1536 		ld	(OP2), bc
  1536 		ld	(OP2), bc
  1537 		ld	de, 8484h
  1537 		ld	de, 8484h
  1568 		or	a
  1568 		or	a
  1569 		sbc	hl, bc
  1569 		sbc	hl, bc
  1570 		ld	a, 0
  1570 		ld	a, 0
  1571 		bit	7, a
  1571 		bit	7, a
  1572 
  1572 
  1573 p7Dloc_4714:				; CODE XREF: seg001:46E5j
  1573 p7Dloc_4714:
  1574 		pop	hl
  1574 		pop	hl
  1575 
  1575 
  1576 p7Dloc_4715:				; CODE XREF: seg001:46DCj
  1576 p7Dloc_4715:
  1577 		pop	bc
  1577 		pop	bc
  1578 		pop	de
  1578 		pop	de
  1579 		ret
  1579 		ret
  1580 ; ---------------------------------------------------------------------------
  1580 ; ---------------------------------------------------------------------------
  1581 
  1581 
  1611 		.dw 802Ah
  1611 		.dw 802Ah
  1612 ; ---------------------------------------------------------------------------
  1612 ; ---------------------------------------------------------------------------
  1613 		jr	p7Dloc_474C
  1613 		jr	p7Dloc_474C
  1614 ; ---------------------------------------------------------------------------
  1614 ; ---------------------------------------------------------------------------
  1615 
  1615 
  1616 p7Dloc_4746:				; CODE XREF: seg001:472Bj seg001:4733j
  1616 p7Dloc_4746:
  1617 		call	p7Dsub_50A8
  1617 		call	p7Dsub_50A8
  1618 		call	p7Dsub_5124
  1618 		call	p7Dsub_5124
  1619 
  1619 
  1620 p7Dloc_474C:				; CODE XREF: seg001:4744j
  1620 p7Dloc_474C:
  1621 		ld	de, 836Dh
  1621 		ld	de, 836Dh
  1622 		call	Page7D_2B80
  1622 		call	Page7D_2B80
  1623 		ld	bc, 20h	; ' '
  1623 		ld	bc, 20h	; ' '
  1624 		call	p7Dsub_7700
  1624 		call	p7Dsub_7700
  1625 		rst	28h
  1625 		rst	28h
  1668 		pop	bc
  1668 		pop	bc
  1669 		xor	a
  1669 		xor	a
  1670 		ret
  1670 		ret
  1671 ; ---------------------------------------------------------------------------
  1671 ; ---------------------------------------------------------------------------
  1672 
  1672 
  1673 p7Dloc_47A5:				; CODE XREF: seg001:4725j seg001:472Dj
  1673 p7Dloc_47A5:
  1674 		call	p7Dsub_4894
  1674 		call	p7Dsub_4894
  1675 		rst	28h
  1675 		rst	28h
  1676 ; ---------------------------------------------------------------------------
  1676 ; ---------------------------------------------------------------------------
  1677 		.dw 8060h
  1677 		.dw 8060h
  1678 ; ---------------------------------------------------------------------------
  1678 ; ---------------------------------------------------------------------------
  1685 		ret
  1685 		ret
  1686 
  1686 
  1687 ; =============== S U B	R O U T	I N E =======================================
  1687 ; =============== S U B	R O U T	I N E =======================================
  1688 
  1688 
  1689 
  1689 
  1690 p7Dsub_47B5:				; CODE XREF: p7Dsub_47E3+4p p7Dsub_5124+4p
  1690 p7Dsub_47B5:
  1691 		xor	a
  1691 		xor	a
  1692 ; End of function p7Dsub_47B5
  1692 ; End of function p7Dsub_47B5
  1693 
  1693 
  1694 
  1694 
  1695 ; =============== S U B	R O U T	I N E =======================================
  1695 ; =============== S U B	R O U T	I N E =======================================
  1696 
  1696 
  1697 
  1697 
  1698 Page7D_2B86:				; CODE XREF: p7Dsub_5185+12p p7Dsub_576D+3p
  1698 Page7D_2B86:
  1699 		push	af
  1699 		push	af
  1700 		push	bc
  1700 		push	bc
  1701 		push	de
  1701 		push	de
  1702 		push	hl
  1702 		push	hl
  1703 		push	ix
  1703 		push	ix
  1710 		call	p7Dsub_4243
  1710 		call	p7Dsub_4243
  1711 		call	p7Dsub_4253
  1711 		call	p7Dsub_4253
  1712 		jr	p7Dloc_47DC
  1712 		jr	p7Dloc_47DC
  1713 ; ---------------------------------------------------------------------------
  1713 ; ---------------------------------------------------------------------------
  1714 
  1714 
  1715 p7Dloc_47D1:				; CODE XREF: Page7D_2B86+Dj
  1715 p7Dloc_47D1:
  1716 		call	p7Dsub_4274
  1716 		call	p7Dsub_4274
  1717 		call	p7Dsub_4253
  1717 		call	p7Dsub_4253
  1718 		jr	p7Dloc_47DC
  1718 		jr	p7Dloc_47DC
  1719 ; ---------------------------------------------------------------------------
  1719 ; ---------------------------------------------------------------------------
  1720 
  1720 
  1721 p7Dloc_47D9:				; CODE XREF: Page7D_2B86+9j
  1721 p7Dloc_47D9:
  1722 		; Page7D_2B86+11j
  1722 		; Page7D_2B86+11j
  1723 		call	p7Dsub_4287
  1723 		call	p7Dsub_4287
  1724 
  1724 
  1725 p7Dloc_47DC:				; CODE XREF: Page7D_2B86+19j
  1725 p7Dloc_47DC:
  1726 		; Page7D_2B86+21j
  1726 		; Page7D_2B86+21j
  1727 		pop	ix
  1727 		pop	ix
  1728 		pop	hl
  1728 		pop	hl
  1729 		pop	de
  1729 		pop	de
  1730 		pop	bc
  1730 		pop	bc
  1734 
  1734 
  1735 
  1735 
  1736 ; =============== S U B	R O U T	I N E =======================================
  1736 ; =============== S U B	R O U T	I N E =======================================
  1737 
  1737 
  1738 
  1738 
  1739 p7Dsub_47E3:				; CODE XREF: seg001:473Ep
  1739 p7Dsub_47E3:
  1740 		push	hl
  1740 		push	hl
  1741 		push	bc
  1741 		push	bc
  1742 		push	de
  1742 		push	de
  1743 		push	af
  1743 		push	af
  1744 		call	p7Dsub_47B5
  1744 		call	p7Dsub_47B5
  1772 		jr	nz, p7Dloc_4825
  1772 		jr	nz, p7Dloc_4825
  1773 		call	p7Dsub_484E
  1773 		call	p7Dsub_484E
  1774 		jr	p7Dloc_483E
  1774 		jr	p7Dloc_483E
  1775 ; ---------------------------------------------------------------------------
  1775 ; ---------------------------------------------------------------------------
  1776 
  1776 
  1777 p7Dloc_4825:				; CODE XREF: p7Dsub_47E3+3Bj
  1777 p7Dloc_4825:
  1778 		ld	hl, appID
  1778 		ld	hl, appID
  1779 		ld	a, 0FFh
  1779 		ld	a, 0FFh
  1780 		ld	b, 5
  1780 		ld	b, 5
  1781 
  1781 
  1782 p7Dloc_482C:				; CODE XREF: p7Dsub_47E3+4Bj
  1782 p7Dloc_482C:
  1783 		ld	(hl), a
  1783 		ld	(hl), a
  1784 		inc	hl
  1784 		inc	hl
  1785 		djnz	p7Dloc_482C
  1785 		djnz	p7Dloc_482C
  1786 		ld	hl, OP6
  1786 		ld	hl, OP6
  1787 		ld	(hl), 1
  1787 		ld	(hl), 1
  1791 ; ---------------------------------------------------------------------------
  1791 ; ---------------------------------------------------------------------------
  1792 		call	p7Dsub_764E
  1792 		call	p7Dsub_764E
  1793 		push	hl
  1793 		push	hl
  1794 		pop	ix
  1794 		pop	ix
  1795 
  1795 
  1796 p7Dloc_483E:				; CODE XREF: p7Dsub_47E3+40j
  1796 p7Dloc_483E:
  1797 		push	ix
  1797 		push	ix
  1798 		pop	bc
  1798 		pop	bc
  1799 		pop	ix
  1799 		pop	ix
  1800 		pop	hl
  1800 		pop	hl
  1801 		pop	de
  1801 		pop	de
  1807 
  1807 
  1808 
  1808 
  1809 ; =============== S U B	R O U T	I N E =======================================
  1809 ; =============== S U B	R O U T	I N E =======================================
  1810 
  1810 
  1811 
  1811 
  1812 p7Dsub_484E:				; CODE XREF: p7Dsub_47E3+25p p7Dsub_47E3+3Dp ...
  1812 p7Dsub_484E:
  1813 		ld	d, c
  1813 		ld	d, c
  1814 		set	4, d
  1814 		set	4, d
  1815 		ld	e, 7
  1815 		ld	e, 7
  1816 		ld	(appID), de
  1816 		ld	(appID), de
  1817 		ld	de, 838Fh
  1817 		ld	de, 838Fh
  1827 		.dw 8069h
  1827 		.dw 8069h
  1828 ; ---------------------------------------------------------------------------
  1828 ; ---------------------------------------------------------------------------
  1829 		jr	z, p7Dloc_486C
  1829 		jr	z, p7Dloc_486C
  1830 		dec	ix
  1830 		dec	ix
  1831 
  1831 
  1832 p7Dloc_486C:				; CODE XREF: p7Dsub_484E+1Aj
  1832 p7Dloc_486C:
  1833 		call	p7Dsub_764E
  1833 		call	p7Dsub_764E
  1834 		push	hl
  1834 		push	hl
  1835 		pop	ix
  1835 		pop	ix
  1836 		ret
  1836 		ret
  1837 ; End of function p7Dsub_484E
  1837 ; End of function p7Dsub_484E
  1838 
  1838 
  1839 
  1839 
  1840 ; =============== S U B	R O U T	I N E =======================================
  1840 ; =============== S U B	R O U T	I N E =======================================
  1841 
  1841 
  1842 
  1842 
  1843 p7Dsub_4873:				; CODE XREF: p7Dsub_4498+9p p7Dsub_4498+15p	...
  1843 p7Dsub_4873:
  1844 		push	hl
  1844 		push	hl
  1845 		push	af
  1845 		push	af
  1846 		push	de
  1846 		push	de
  1847 		push	af
  1847 		push	af
  1848 		ld	de, 100h
  1848 		ld	de, 100h
  1861 		call	p7Dsub_5CFF
  1861 		call	p7Dsub_5CFF
  1862 		call	p7Dsub_5D43
  1862 		call	p7Dsub_5D43
  1863 		jr	p7Dloc_4890
  1863 		jr	p7Dloc_4890
  1864 ; ---------------------------------------------------------------------------
  1864 ; ---------------------------------------------------------------------------
  1865 
  1865 
  1866 p7Dloc_488F:				; CODE XREF: p7Dsub_4873+Aj
  1866 p7Dloc_488F:
  1867 		pop	af
  1867 		pop	af
  1868 
  1868 
  1869 p7Dloc_4890:				; CODE XREF: p7Dsub_4873+1Aj
  1869 p7Dloc_4890:
  1870 		pop	de
  1870 		pop	de
  1871 		pop	af
  1871 		pop	af
  1872 		pop	hl
  1872 		pop	hl
  1873 		ret
  1873 		ret
  1874 ; End of function p7Dsub_4873
  1874 ; End of function p7Dsub_4873
  1875 
  1875 
  1876 
  1876 
  1877 ; =============== S U B	R O U T	I N E =======================================
  1877 ; =============== S U B	R O U T	I N E =======================================
  1878 
  1878 
  1879 
  1879 
  1880 p7Dsub_4894:				; CODE XREF: Page7D_2BB0+1p
  1880 p7Dsub_4894:
  1881 		; Page7D_2B62+6p ...
  1881 		; Page7D_2B62+6p ...
  1882 		rst	28h
  1882 		rst	28h
  1883 ; ---------------------------------------------------------------------------
  1883 ; ---------------------------------------------------------------------------
  1884 		.dw 8057h
  1884 		.dw 8057h
  1885 ; End of function p7Dsub_4894
  1885 ; End of function p7Dsub_4894
  1886 
  1886 
  1887 
  1887 
  1888 ; =============== S U B	R O U T	I N E =======================================
  1888 ; =============== S U B	R O U T	I N E =======================================
  1889 
  1889 
  1890 
  1890 
  1891 Page7D_2BEC:				; CODE XREF: Page7D_2B62+44p
  1891 Page7D_2BEC:
  1892 		; p7Dsub_4214:p7Dloc_421Dp ...
  1892 		; p7Dsub_4214:p7Dloc_421Dp ...
  1893 		push	af
  1893 		push	af
  1894 		ld	a, h
  1894 		ld	a, h
  1895 		xor	20h ; ' '
  1895 		xor	20h ; ' '
  1896 		ld	h, a
  1896 		ld	h, a
  1917 		jp	relockFlashBack
  1917 		jp	relockFlashBack
  1918 
  1918 
  1919 ; =============== S U B	R O U T	I N E =======================================
  1919 ; =============== S U B	R O U T	I N E =======================================
  1920 
  1920 
  1921 
  1921 
  1922 p7Dsub_48B5:				; CODE XREF: seg001:48AFp p7Dsub_4A5A+4Fp ...
  1922 p7Dsub_48B5:
  1923 		call	Page7D_2B68
  1923 		call	Page7D_2B68
  1924 		call	p7Dsub_48BC
  1924 		call	p7Dsub_48BC
  1925 		ret
  1925 		ret
  1926 ; End of function p7Dsub_48B5
  1926 ; End of function p7Dsub_48B5
  1927 
  1927 
  1928 
  1928 
  1929 ; =============== S U B	R O U T	I N E =======================================
  1929 ; =============== S U B	R O U T	I N E =======================================
  1930 
  1930 
  1931 
  1931 
  1932 p7Dsub_48BC:				; CODE XREF: p7Dsub_48B5+3p
  1932 p7Dsub_48BC:
  1933 		push	ix
  1933 		push	ix
  1934 		push	hl
  1934 		push	hl
  1935 		push	de
  1935 		push	de
  1936 		push	bc
  1936 		push	bc
  1937 		push	hl
  1937 		push	hl
  1954 
  1954 
  1955 
  1955 
  1956 ; =============== S U B	R O U T	I N E =======================================
  1956 ; =============== S U B	R O U T	I N E =======================================
  1957 
  1957 
  1958 
  1958 
  1959 p7Dsub_48DE:				; CODE XREF: p7Dsub_4AC9+44p seg001:4BABp ...
  1959 p7Dsub_48DE:
  1960 		push	ix
  1960 		push	ix
  1961 		push	hl
  1961 		push	hl
  1962 		push	de
  1962 		push	de
  1963 		push	bc
  1963 		push	bc
  1964 		call	p7Dsub_521D
  1964 		call	p7Dsub_521D
  1965 		ld	bc, 0Dh
  1965 		ld	bc, 0Dh
  1966 		add	ix, bc
  1966 		add	ix, bc
  1967 
  1967 
  1968 p7Dloc_48EB:				; CODE XREF: p7Dsub_48BC+1Fj
  1968 p7Dloc_48EB:
  1969 		push	ix
  1969 		push	ix
  1970 		pop	bc
  1970 		pop	bc
  1971 		sla	c
  1971 		sla	c
  1972 		add	hl, bc
  1972 		add	hl, bc
  1973 		call	p7Dsub_4566
  1973 		call	p7Dsub_4566
  1977 		cp	0
  1977 		cp	0
  1978 		jr	nz, p7Dloc_4902
  1978 		jr	nz, p7Dloc_4902
  1979 		call	p7Dsub_4565
  1979 		call	p7Dsub_4565
  1980 		cp	0
  1980 		cp	0
  1981 
  1981 
  1982 p7Dloc_4902:				; CODE XREF: p7Dsub_48DE+19j p7Dsub_48DE+1Dj
  1982 p7Dloc_4902:
  1983 		pop	bc
  1983 		pop	bc
  1984 		pop	de
  1984 		pop	de
  1985 		pop	hl
  1985 		pop	hl
  1986 		pop	ix
  1986 		pop	ix
  1987 		ret
  1987 		ret
  2012 		jp	relockFlashBack
  2012 		jp	relockFlashBack
  2013 
  2013 
  2014 ; =============== S U B	R O U T	I N E =======================================
  2014 ; =============== S U B	R O U T	I N E =======================================
  2015 
  2015 
  2016 
  2016 
  2017 p7Dsub_4926:				; CODE XREF: seg001:45CDp
  2017 p7Dsub_4926:
  2018 		; seg001:p7Dloc_479Dp ...
  2018 
  2019 		push	af
  2019 		push	af
  2020 		push	bc
  2020 		push	bc
  2021 		push	hl
  2021 		push	hl
  2022 		push	de
  2022 		push	de
  2023 		push	ix
  2023 		push	ix
  2025 		ld	(ioFlag), a
  2025 		ld	(ioFlag), a
  2026 		call	p7Dsub_4AC9
  2026 		call	p7Dsub_4AC9
  2027 		jr	nz, p7Dloc_4939
  2027 		jr	nz, p7Dloc_4939
  2028 		call	p7Dloc_4B82
  2028 		call	p7Dloc_4B82
  2029 
  2029 
  2030 p7Dloc_4939:				; CODE XREF: p7Dsub_4926+Ej
  2030 p7Dloc_4939:
  2031 		call	p7Dsub_4A5A
  2031 		call	p7Dsub_4A5A
  2032 		ld	a, (ioFlag)
  2032 		ld	a, (ioFlag)
  2033 		cp	0
  2033 		cp	0
  2034 		jr	z, p7Dloc_498B
  2034 		jr	z, p7Dloc_498B
  2035 		ld	hl, aHaveExpired_
  2035 		ld	hl, aHaveExpired_
  2045 		call	p7Dsub_7045
  2045 		call	p7Dsub_7045
  2046 		call	Page0Call_3CD5
  2046 		call	Page0Call_3CD5
  2047 		call	page0_B93
  2047 		call	page0_B93
  2048 		ld	b, 5
  2048 		ld	b, 5
  2049 
  2049 
  2050 p7Dloc_496C:				; CODE XREF: p7Dsub_4926+54j
  2050 p7Dloc_496C:
  2051 		ld	c, b
  2051 		ld	c, b
  2052 		ld	b, 0FFh
  2052 		ld	b, 0FFh
  2053 
  2053 
  2054 p7Dloc_496F:				; CODE XREF: p7Dsub_4926+51j
  2054 p7Dloc_496F:
  2055 		ld	a, 0FFh
  2055 		ld	a, 0FFh
  2056 
  2056 
  2057 p7Dloc_4971:				; CODE XREF: p7Dsub_4926+4Fj
  2057 p7Dloc_4971:
  2058 		call	page0_AC4
  2058 		call	page0_AC4
  2059 		dec	a
  2059 		dec	a
  2060 		jr	nz, p7Dloc_4971
  2060 		jr	nz, p7Dloc_4971
  2061 		djnz	p7Dloc_496F
  2061 		djnz	p7Dloc_496F
  2062 		ld	b, c
  2062 		ld	b, c
  2065 		call	Page0Call_2E65
  2065 		call	Page0Call_2E65
  2066 		ld	hl, 0
  2066 		ld	hl, 0
  2067 		ld	(curRow), hl
  2067 		ld	(curRow), hl
  2068 		call	Page0Call_3D05
  2068 		call	Page0Call_3D05
  2069 
  2069 
  2070 p7Dloc_498B:				; CODE XREF: p7Dsub_4926+1Bj
  2070 p7Dloc_498B:
  2071 		pop	ix
  2071 		pop	ix
  2072 		pop	de
  2072 		pop	de
  2073 		pop	hl
  2073 		pop	hl
  2074 		pop	bc
  2074 		pop	bc
  2075 		pop	af
  2075 		pop	af
  2078 
  2078 
  2079 
  2079 
  2080 ; =============== S U B	R O U T	I N E =======================================
  2080 ; =============== S U B	R O U T	I N E =======================================
  2081 
  2081 
  2082 
  2082 
  2083 p7Dsub_4992:				; CODE XREF: p7Dsub_4AC9+52p
  2083 p7Dsub_4992:
  2084 		push	af
  2084 		push	af
  2085 		push	bc
  2085 		push	bc
  2086 		push	de
  2086 		push	de
  2087 		push	hl
  2087 		push	hl
  2088 		call	p7Dsub_4565
  2088 		call	p7Dsub_4565
  2103 ; ---------------------------------------------------------------------------
  2103 ; ---------------------------------------------------------------------------
  2104 		call	p7Dsub_6021
  2104 		call	p7Dsub_6021
  2105 		jr	c, p7Dloc_49B7
  2105 		jr	c, p7Dloc_49B7
  2106 		call	Page7D_2BE6
  2106 		call	Page7D_2BE6
  2107 
  2107 
  2108 p7Dloc_49B7:				; CODE XREF: p7Dsub_4992+20j
  2108 p7Dloc_49B7:
  2109 		pop	hl
  2109 		pop	hl
  2110 		pop	de
  2110 		pop	de
  2111 		pop	bc
  2111 		pop	bc
  2112 		pop	af
  2112 		pop	af
  2113 		ret
  2113 		ret
  2114 ; End of function p7Dsub_4992
  2114 ; End of function p7Dsub_4992
  2115 
  2115 
  2116 ; ---------------------------------------------------------------------------
  2116 ; ---------------------------------------------------------------------------
  2117 
  2117 
  2118 p7Dloc_49BC:				; CODE XREF: seg001:49D1j
  2118 p7Dloc_49BC:
  2119 		push	bc
  2119 		push	bc
  2120 		push	af
  2120 		push	af
  2121 		call	p7Dsub_4A21
  2121 		call	p7Dsub_4A21
  2122 		jr	nz, p7Dloc_49D5
  2122 		jr	nz, p7Dloc_49D5
  2123 		pop	af
  2123 		pop	af
  2131 		pop	af
  2131 		pop	af
  2132 		inc	a
  2132 		inc	a
  2133 		jr	p7Dloc_49BC
  2133 		jr	p7Dloc_49BC
  2134 ; ---------------------------------------------------------------------------
  2134 ; ---------------------------------------------------------------------------
  2135 
  2135 
  2136 p7Dloc_49D3:				; CODE XREF: seg001:49CDj
  2136 p7Dloc_49D3:
  2137 		pop	af
  2137 		pop	af
  2138 		ret
  2138 		ret
  2139 ; ---------------------------------------------------------------------------
  2139 ; ---------------------------------------------------------------------------
  2140 
  2140 
  2141 p7Dloc_49D5:				; CODE XREF: seg001:49C1j
  2141 p7Dloc_49D5:
  2142 		pop	bc
  2142 		pop	bc
  2143 		pop	bc
  2143 		pop	bc
  2144 		ret
  2144 		ret
  2145 
  2145 
  2146 ; =============== S U B	R O U T	I N E =======================================
  2146 ; =============== S U B	R O U T	I N E =======================================
  2147 
  2147 
  2148 
  2148 
  2149 CopyFlashPage:				; CODE XREF: seg001:49C4p
  2149 CopyFlashPage:
  2150 		push	hl
  2150 		push	hl
  2151 		ld	hl, 4000h
  2151 		ld	hl, 4000h
  2152 		push	af
  2152 		push	af
  2153 		call	Page7D_2CD0
  2153 		call	Page7D_2CD0
  2154 		cp	0FFh
  2154 		cp	0FFh
  2164 		jr	z, p7Dloc_4A1E
  2164 		jr	z, p7Dloc_4A1E
  2165 		cp	7Fh ; ''
  2165 		cp	7Fh ; ''
  2166 		jr	z, p7Dloc_4A1E
  2166 		jr	z, p7Dloc_4A1E
  2167 		pop	af
  2167 		pop	af
  2168 
  2168 
  2169 p7Dloc_49F8:				; CODE XREF: CopyFlashPage+44j
  2169 p7Dloc_49F8:
  2170 		push	bc
  2170 		push	bc
  2171 		ld	bc, 100h
  2171 		ld	bc, 100h
  2172 		ld	de, ramStart
  2172 		ld	de, ramStart
  2173 		push	hl
  2173 		push	hl
  2174 		push	de
  2174 		push	de
  2192 		jr	z, p7Dloc_4A1E
  2192 		jr	z, p7Dloc_4A1E
  2193 		pop	af
  2193 		pop	af
  2194 		jr	p7Dloc_49F8
  2194 		jr	p7Dloc_49F8
  2195 ; ---------------------------------------------------------------------------
  2195 ; ---------------------------------------------------------------------------
  2196 
  2196 
  2197 p7Dloc_4A1E:				; CODE XREF: CopyFlashPage+Aj
  2197 p7Dloc_4A1E:
  2198 		; CopyFlashPage+10j ...
  2198 		; CopyFlashPage+10j ...
  2199 		pop	af
  2199 		pop	af
  2200 		pop	hl
  2200 		pop	hl
  2201 		ret
  2201 		ret
  2202 ; End of function CopyFlashPage
  2202 ; End of function CopyFlashPage
  2203 
  2203 
  2204 
  2204 
  2205 ; =============== S U B	R O U T	I N E =======================================
  2205 ; =============== S U B	R O U T	I N E =======================================
  2206 
  2206 
  2207 
  2207 
  2208 p7Dsub_4A21:				; CODE XREF: seg001:49BEp
  2208 p7Dsub_4A21:
  2209 		push	hl
  2209 		push	hl
  2210 		ld	a, 8
  2210 		ld	a, 8
  2211 		ld	hl, 4000h
  2211 		ld	hl, 4000h
  2212 
  2212 
  2213 p7Dloc_4A27:				; CODE XREF: p7Dsub_4A21+13j
  2213 p7Dloc_4A27:
  2214 		push	af
  2214 		push	af
  2215 		rst	28h
  2215 		rst	28h
  2216 ; ---------------------------------------------------------------------------
  2216 ; ---------------------------------------------------------------------------
  2217 		.dw 8051h
  2217 		.dw 8051h
  2218 ; ---------------------------------------------------------------------------
  2218 ; ---------------------------------------------------------------------------
  2226 		bit	7, a
  2226 		bit	7, a
  2227 		pop	hl
  2227 		pop	hl
  2228 		ret
  2228 		ret
  2229 ; ---------------------------------------------------------------------------
  2229 ; ---------------------------------------------------------------------------
  2230 
  2230 
  2231 p7Dloc_4A3C:				; CODE XREF: p7Dsub_4A21+Cj
  2231 p7Dloc_4A3C:
  2232 		pop	bc
  2232 		pop	bc
  2233 		pop	hl
  2233 		pop	hl
  2234 		ret
  2234 		ret
  2235 ; End of function p7Dsub_4A21
  2235 ; End of function p7Dsub_4A21
  2236 
  2236 
  2237 
  2237 
  2238 ; =============== S U B	R O U T	I N E =======================================
  2238 ; =============== S U B	R O U T	I N E =======================================
  2239 
  2239 
  2240 
  2240 
  2241 FindAppNumPages:			; CODE XREF: Page7D_2BE6+Cp
  2241 FindAppNumPages:
  2242 		; Page7D_2B56+1Cp ...
  2242 		; Page7D_2B56+1Cp ...
  2243 		push	hl
  2243 		push	hl
  2244 		push	af
  2244 		push	af
  2245 		ld	hl, 4000h
  2245 		ld	hl, 4000h
  2246 		ld	de, 8080h
  2246 		ld	de, 8080h
  2259 ; ---------------------------------------------------------------------------
  2259 ; ---------------------------------------------------------------------------
  2260 		.dw 8051h
  2260 		.dw 8051h
  2261 ; ---------------------------------------------------------------------------
  2261 ; ---------------------------------------------------------------------------
  2262 		ld	c, a
  2262 		ld	c, a
  2263 
  2263 
  2264 p7Dloc_4A57:				; CODE XREF: FindAppNumPages+Ej
  2264 p7Dloc_4A57:
  2265 		pop	af
  2265 		pop	af
  2266 		pop	hl
  2266 		pop	hl
  2267 		ret
  2267 		ret
  2268 ; End of function FindAppNumPages
  2268 ; End of function FindAppNumPages
  2269 
  2269 
  2270 
  2270 
  2271 ; =============== S U B	R O U T	I N E =======================================
  2271 ; =============== S U B	R O U T	I N E =======================================
  2272 
  2272 
  2273 
  2273 
  2274 p7Dsub_4A5A:				; CODE XREF: p7Dsub_4926:p7Dloc_4939p
  2274 p7Dsub_4A5A:
  2275 		call	p7Dsub_7643
  2275 		call	p7Dsub_7643
  2276 		ld	b, c
  2276 		ld	b, c
  2277 		call	p7Dsub_75EC
  2277 		call	p7Dsub_75EC
  2278 
  2278 
  2279 p7Dloc_4A61:				; CODE XREF: p7Dsub_4A5A+1Fj
  2279 p7Dloc_4A61:
  2280 		push	af
  2280 		push	af
  2281 		ld	hl, 4000h
  2281 		ld	hl, 4000h
  2282 		rst	28h
  2282 		rst	28h
  2283 ; ---------------------------------------------------------------------------
  2283 ; ---------------------------------------------------------------------------
  2284 		.dw 8051h
  2284 		.dw 8051h
  2291 		jr	nz, p7Dloc_4A77
  2291 		jr	nz, p7Dloc_4A77
  2292 		pop	af
  2292 		pop	af
  2293 		jr	p7Dloc_4A80
  2293 		jr	p7Dloc_4A80
  2294 ; ---------------------------------------------------------------------------
  2294 ; ---------------------------------------------------------------------------
  2295 
  2295 
  2296 p7Dloc_4A77:				; CODE XREF: p7Dsub_4A5A+10j p7Dsub_4A5A+14j ...
  2296 p7Dloc_4A77:
  2297 		pop	af
  2297 		pop	af
  2298 
  2298 
  2299 p7Dloc_4A78:				; CODE XREF: p7Dsub_4A5A+6Dj
  2299 p7Dloc_4A78:
  2300 		dec	a
  2300 		dec	a
  2301 		djnz	p7Dloc_4A61
  2301 		djnz	p7Dloc_4A61
  2302 		ret
  2302 		ret
  2303 ; ---------------------------------------------------------------------------
  2303 ; ---------------------------------------------------------------------------
  2304 
  2304 
  2305 p7Dloc_4A7C:				; CODE XREF: p7Dsub_4A5A+2Cj
  2305 p7Dloc_4A7C:
  2306 		pop	af
  2306 		pop	af
  2307 		pop	bc
  2307 		pop	bc
  2308 		jr	p7Dloc_4A77
  2308 		jr	p7Dloc_4A77
  2309 ; ---------------------------------------------------------------------------
  2309 ; ---------------------------------------------------------------------------
  2310 
  2310 
  2311 p7Dloc_4A80:				; CODE XREF: p7Dsub_4A5A+1Bj
  2311 p7Dloc_4A80:
  2312 		push	af
  2312 		push	af
  2313 		push	bc
  2313 		push	bc
  2314 		push	af
  2314 		push	af
  2315 		call	Page0Call_3E31
  2315 		call	Page0Call_3E31
  2316 		jr	nz, p7Dloc_4A7C
  2316 		jr	nz, p7Dloc_4A7C
  2344 		jr	nz, p7Dloc_4ABF
  2344 		jr	nz, p7Dloc_4ABF
  2345 		call	Page0Call_2C7F
  2345 		call	Page0Call_2C7F
  2346 		ld	a, 0FFh
  2346 		ld	a, 0FFh
  2347 		ld	(ioFlag), a
  2347 		ld	(ioFlag), a
  2348 
  2348 
  2349 p7Dloc_4ABF:				; CODE XREF: p7Dsub_4A5A+5Bj
  2349 p7Dloc_4ABF:
  2350 		pop	af
  2350 		pop	af
  2351 		push	af
  2351 		push	af
  2352 		call	Page7D_2BE6
  2352 		call	Page7D_2BE6
  2353 
  2353 
  2354 p7Dloc_4AC4:				; CODE XREF: p7Dsub_4A5A+36j p7Dsub_4A5A+3Dj ...
  2354 p7Dloc_4AC4:
  2355 		pop	af
  2355 		pop	af
  2356 		pop	bc
  2356 		pop	bc
  2357 		pop	af
  2357 		pop	af
  2358 		jr	p7Dloc_4A78
  2358 		jr	p7Dloc_4A78
  2359 ; End of function p7Dsub_4A5A
  2359 ; End of function p7Dsub_4A5A
  2360 
  2360 
  2361 
  2361 
  2362 ; =============== S U B	R O U T	I N E =======================================
  2362 ; =============== S U B	R O U T	I N E =======================================
  2363 
  2363 
  2364 
  2364 
  2365 p7Dsub_4AC9:				; CODE XREF: p7Dsub_4926+Bp
  2365 p7Dsub_4AC9:
  2366 		call	p7Dsub_70D1
  2366 		call	p7Dsub_70D1
  2367 		jp	nz, p7Dloc_4B69
  2367 		jp	nz, p7Dloc_4B69
  2368 		ld	de, 700h
  2368 		ld	de, 700h
  2369 		call	p7Dsub_777E
  2369 		call	p7Dsub_777E
  2370 		call	p7Dsub_4574
  2370 		call	p7Dsub_4574
  2371 		ld	ix, 0
  2371 		ld	ix, 0
  2372 
  2372 
  2373 p7Dloc_4ADC:				; CODE XREF: p7Dsub_4AC9+93j p7Dsub_4AC9+9Dj
  2373 p7Dloc_4ADC:
  2374 		ld	de, 710h
  2374 		ld	de, 710h
  2375 		call	p7Dsub_705E
  2375 		call	p7Dsub_705E
  2376 		jp	nz, p7Dloc_4B6E
  2376 		jp	nz, p7Dloc_4B6E
  2377 		push	hl
  2377 		push	hl
  2378 		call	p7Dsub_4574
  2378 		call	p7Dsub_4574
  2396 		call	p7Dsub_536F
  2396 		call	p7Dsub_536F
  2397 		call	p7Dsub_48DE
  2397 		call	p7Dsub_48DE
  2398 		jr	c, p7Dloc_4B14
  2398 		jr	c, p7Dloc_4B14
  2399 		jr	z, p7Dloc_4B20
  2399 		jr	z, p7Dloc_4B20
  2400 
  2400 
  2401 p7Dloc_4B14:				; CODE XREF: p7Dsub_4AC9+37j p7Dsub_4AC9+3Fj ...
  2401 p7Dloc_4B14:
  2402 		call	p7Dsub_540C
  2402 		call	p7Dsub_540C
  2403 		jr	z, p7Dloc_4B5F
  2403 		jr	z, p7Dloc_4B5F
  2404 		pop	hl
  2404 		pop	hl
  2405 		push	hl
  2405 		push	hl
  2406 		call	p7Dsub_4992
  2406 		call	p7Dsub_4992
  2407 		jr	p7Dloc_4B5F
  2407 		jr	p7Dloc_4B5F
  2408 ; ---------------------------------------------------------------------------
  2408 ; ---------------------------------------------------------------------------
  2409 
  2409 
  2410 p7Dloc_4B20:				; CODE XREF: p7Dsub_4AC9+49j
  2410 p7Dloc_4B20:
  2411 		ld	a, (ioFlag)
  2411 		ld	a, (ioFlag)
  2412 		cp	0
  2412 		cp	0
  2413 		jr	nz, p7Dloc_4B3D
  2413 		jr	nz, p7Dloc_4B3D
  2414 		pop	de
  2414 		pop	de
  2415 		push	de
  2415 		push	de
  2422 		push	de
  2422 		push	de
  2423 		call	Page0Call_2C7F
  2423 		call	Page0Call_2C7F
  2424 		ld	a, 0FFh
  2424 		ld	a, 0FFh
  2425 		ld	(ioFlag), a
  2425 		ld	(ioFlag), a
  2426 
  2426 
  2427 p7Dloc_4B3D:				; CODE XREF: p7Dsub_4AC9+5Cj
  2427 p7Dloc_4B3D:
  2428 		pop	de
  2428 		pop	de
  2429 		push	de
  2429 		push	de
  2430 		push	hl
  2430 		push	hl
  2431 		call	p7Dsub_4B73
  2431 		call	p7Dsub_4B73
  2432 		call	p7Dsub_6021
  2432 		call	p7Dsub_6021
  2433 		jr	c, p7Dloc_4B51
  2433 		jr	c, p7Dloc_4B51
  2434 		call	Page0Call_2C8B
  2434 		call	Page0Call_2C8B
  2435 		call	Page0Call_3CD5
  2435 		call	Page0Call_3CD5
  2436 		call	Page7D_2BE6
  2436 		call	Page7D_2BE6
  2437 
  2437 
  2438 p7Dloc_4B51:				; CODE XREF: p7Dsub_4AC9+67j p7Dsub_4AC9+7Dj
  2438 p7Dloc_4B51:
  2439 		pop	hl
  2439 		pop	hl
  2440 		pop	de
  2440 		pop	de
  2441 		ex	de, hl
  2441 		ex	de, hl
  2442 		push	de
  2442 		push	de
  2443 		call	p7Dsub_4574
  2443 		call	p7Dsub_4574
  2445 		add	hl, bc
  2445 		add	hl, bc
  2446 		inc	ix
  2446 		inc	ix
  2447 		jp	p7Dloc_4ADC
  2447 		jp	p7Dloc_4ADC
  2448 ; ---------------------------------------------------------------------------
  2448 ; ---------------------------------------------------------------------------
  2449 
  2449 
  2450 p7Dloc_4B5F:				; CODE XREF: p7Dsub_4AC9+2Fj p7Dsub_4AC9+4Ej ...
  2450 p7Dloc_4B5F:
  2451 		pop	hl
  2451 		pop	hl
  2452 		call	p7Dsub_4574
  2452 		call	p7Dsub_4574
  2453 		add	hl, bc
  2453 		add	hl, bc
  2454 		inc	ix
  2454 		inc	ix
  2455 		jp	p7Dloc_4ADC
  2455 		jp	p7Dloc_4ADC
  2456 ; ---------------------------------------------------------------------------
  2456 ; ---------------------------------------------------------------------------
  2457 
  2457 
  2458 p7Dloc_4B69:				; CODE XREF: p7Dsub_4AC9+3j
  2458 p7Dloc_4B69:
  2459 		ld	a, 0FFh
  2459 		ld	a, 0FFh
  2460 		bit	7, a
  2460 		bit	7, a
  2461 		ret
  2461 		ret
  2462 ; ---------------------------------------------------------------------------
  2462 ; ---------------------------------------------------------------------------
  2463 
  2463 
  2464 p7Dloc_4B6E:				; CODE XREF: p7Dsub_4AC9+19j
  2464 p7Dloc_4B6E:
  2465 		ld	a, 0
  2465 		ld	a, 0
  2466 		bit	7, a
  2466 		bit	7, a
  2467 		ret
  2467 		ret
  2468 ; End of function p7Dsub_4AC9
  2468 ; End of function p7Dsub_4AC9
  2469 
  2469 
  2470 
  2470 
  2471 ; =============== S U B	R O U T	I N E =======================================
  2471 ; =============== S U B	R O U T	I N E =======================================
  2472 
  2472 
  2473 
  2473 
  2474 p7Dsub_4B73:				; CODE XREF: p7Dsub_4AC9+61p p7Dsub_4AC9+77p
  2474 p7Dsub_4B73:
  2475 		ex	de, hl
  2475 		ex	de, hl
  2476 		call	p7Dsub_4574
  2476 		call	p7Dsub_4574
  2477 		ld	a, c
  2477 		ld	a, c
  2478 		ld	(appID), a
  2478 		ld	(appID), a
  2479 		ld	de, 838Eh
  2479 		ld	de, 838Eh
  2481 		ret
  2481 		ret
  2482 ; End of function p7Dsub_4B73
  2482 ; End of function p7Dsub_4B73
  2483 
  2483 
  2484 ; ---------------------------------------------------------------------------
  2484 ; ---------------------------------------------------------------------------
  2485 
  2485 
  2486 p7Dloc_4B82:				; CODE XREF: p7Dsub_4926+10p
  2486 p7Dloc_4B82:
  2487 		call	p7Dsub_70D1
  2487 		call	p7Dsub_70D1
  2488 		ld	de, 800h
  2488 		ld	de, 800h
  2489 		call	p7Dsub_777E
  2489 		call	p7Dsub_777E
  2490 		call	p7Dsub_4574
  2490 		call	p7Dsub_4574
  2491 
  2491 
  2492 p7Dloc_4B8E:				; CODE XREF: seg001:4C08j
  2492 p7Dloc_4B8E:
  2493 		ld	de, 810h
  2493 		ld	de, 810h
  2494 		call	p7Dsub_705E
  2494 		call	p7Dsub_705E
  2495 		jp	nz, locret_4C0B
  2495 		jp	nz, locret_4C0B
  2496 		push	hl
  2496 		push	hl
  2497 		ld	de, 840h
  2497 		ld	de, 840h
  2513 		pop	de
  2513 		pop	de
  2514 		push	de
  2514 		push	de
  2515 		call	Page0Call_2C85
  2515 		call	Page0Call_2C85
  2516 		call	Page0Call_3CD5
  2516 		call	Page0Call_3CD5
  2517 
  2517 
  2518 p7Dloc_4BC9:				; CODE XREF: seg001:4B9Ej seg001:4BAEj ...
  2518 p7Dloc_4BC9:
  2519 		pop	de
  2519 		pop	de
  2520 		ex	de, hl
  2520 		ex	de, hl
  2521 		push	hl
  2521 		push	hl
  2522 		call	p7Dsub_4574
  2522 		call	p7Dsub_4574
  2523 		ld	de, 8484h
  2523 		ld	de, 8484h
  2535 		rst	28h
  2535 		rst	28h
  2536 ; ---------------------------------------------------------------------------
  2536 ; ---------------------------------------------------------------------------
  2537 		.dw 802Ah
  2537 		.dw 802Ah
  2538 ; ---------------------------------------------------------------------------
  2538 ; ---------------------------------------------------------------------------
  2539 
  2539 
  2540 p7Dloc_4BE4:				; CODE XREF: seg001:4BA6j seg001:4BB0j ...
  2540 p7Dloc_4BE4:
  2541 		pop	de
  2541 		pop	de
  2542 		ex	de, hl
  2542 		ex	de, hl
  2543 		push	hl
  2543 		push	hl
  2544 		call	p7Dsub_4574
  2544 		call	p7Dsub_4574
  2545 		ld	de, 8484h
  2545 		ld	de, 8484h
  2555 ; ---------------------------------------------------------------------------
  2555 ; ---------------------------------------------------------------------------
  2556 		jr	nz, p7Dloc_4C01
  2556 		jr	nz, p7Dloc_4C01
  2557 		inc	ix
  2557 		inc	ix
  2558 		call	p7Dsub_4C0C
  2558 		call	p7Dsub_4C0C
  2559 
  2559 
  2560 p7Dloc_4C01:				; CODE XREF: seg001:4BFAj
  2560 p7Dloc_4C01:
  2561 		pop	hl
  2561 		pop	hl
  2562 		call	p7Dsub_4574
  2562 		call	p7Dsub_4574
  2563 		add	hl, bc
  2563 		add	hl, bc
  2564 		inc	ix
  2564 		inc	ix
  2565 		jp	p7Dloc_4B8E
  2565 		jp	p7Dloc_4B8E
  2566 ; ---------------------------------------------------------------------------
  2566 ; ---------------------------------------------------------------------------
  2567 
  2567 
  2568 locret_4C0B:				; CODE XREF: seg001:4B94j
  2568 locret_4C0B:
  2569 		ret
  2569 		ret
  2570 
  2570 
  2571 ; =============== S U B	R O U T	I N E =======================================
  2571 ; =============== S U B	R O U T	I N E =======================================
  2572 
  2572 
  2573 
  2573 
  2574 p7Dsub_4C0C:				; CODE XREF: seg001:4BFEp
  2574 p7Dsub_4C0C:
  2575 		ld	de, 700h
  2575 		ld	de, 700h
  2576 		call	p7Dsub_777E
  2576 		call	p7Dsub_777E
  2577 		call	p7Dsub_4574
  2577 		call	p7Dsub_4574
  2578 
  2578 
  2579 p7Dloc_4C15:				; CODE XREF: p7Dsub_4C0C+62j
  2579 p7Dloc_4C15:
  2580 		ld	de, 710h
  2580 		ld	de, 710h
  2581 		call	p7Dsub_705E
  2581 		call	p7Dsub_705E
  2582 		jr	nz, p7Dloc_4C70
  2582 		jr	nz, p7Dloc_4C70
  2583 		push	hl
  2583 		push	hl
  2584 		ld	de, 740h
  2584 		ld	de, 740h
  2590 		call	p7Dsub_536F
  2590 		call	p7Dsub_536F
  2591 		call	p7Dsub_48DE
  2591 		call	p7Dsub_48DE
  2592 		jr	c, p7Dloc_4C38
  2592 		jr	c, p7Dloc_4C38
  2593 		jr	z, p7Dloc_4C3B
  2593 		jr	z, p7Dloc_4C3B
  2594 
  2594 
  2595 p7Dloc_4C38:				; CODE XREF: p7Dsub_4C0C+18j p7Dsub_4C0C+20j ...
  2595 p7Dloc_4C38:
  2596 		pop	hl
  2596 		pop	hl
  2597 		jr	p7Dloc_4C68
  2597 		jr	p7Dloc_4C68
  2598 ; ---------------------------------------------------------------------------
  2598 ; ---------------------------------------------------------------------------
  2599 
  2599 
  2600 p7Dloc_4C3B:				; CODE XREF: p7Dsub_4C0C+2Aj
  2600 p7Dloc_4C3B:
  2601 		ld	a, (ioFlag)
  2601 		ld	a, (ioFlag)
  2602 		cp	0
  2602 		cp	0
  2603 		jr	nz, p7Dloc_4C55
  2603 		jr	nz, p7Dloc_4C55
  2604 		pop	de
  2604 		pop	de
  2605 		push	de
  2605 		push	de
  2611 		push	de
  2611 		push	de
  2612 		call	Page0Call_2C7F
  2612 		call	Page0Call_2C7F
  2613 		ld	a, 0FFh
  2613 		ld	a, 0FFh
  2614 		ld	(ioFlag), a
  2614 		ld	(ioFlag), a
  2615 
  2615 
  2616 p7Dloc_4C55:				; CODE XREF: p7Dsub_4C0C+34j
  2616 p7Dloc_4C55:
  2617 		pop	de
  2617 		pop	de
  2618 		push	de
  2618 		push	de
  2619 		push	hl
  2619 		push	hl
  2620 		call	p7Dsub_6021
  2620 		call	p7Dsub_6021
  2621 		jr	c, p7Dloc_4C66
  2621 		jr	c, p7Dloc_4C66
  2622 		call	Page0Call_2C8B
  2622 		call	Page0Call_2C8B
  2623 		call	Page0Call_3CD5
  2623 		call	Page0Call_3CD5
  2624 		call	Page7D_2BE6
  2624 		call	Page7D_2BE6
  2625 
  2625 
  2626 p7Dloc_4C66:				; CODE XREF: p7Dsub_4C0C+3Cj p7Dsub_4C0C+4Fj
  2626 p7Dloc_4C66:
  2627 		pop	hl
  2627 		pop	hl
  2628 		pop	de
  2628 		pop	de
  2629 
  2629 
  2630 p7Dloc_4C68:				; CODE XREF: p7Dsub_4C0C+2Dj
  2630 p7Dloc_4C68:
  2631 		call	p7Dsub_4574
  2631 		call	p7Dsub_4574
  2632 		add	hl, bc
  2632 		add	hl, bc
  2633 		inc	ix
  2633 		inc	ix
  2634 		jr	p7Dloc_4C15
  2634 		jr	p7Dloc_4C15
  2635 ; ---------------------------------------------------------------------------
  2635 ; ---------------------------------------------------------------------------
  2636 
  2636 
  2637 p7Dloc_4C70:				; CODE XREF: p7Dsub_4C0C+Fj
  2637 p7Dloc_4C70:
  2638 		dec	ix
  2638 		dec	ix
  2639 		ret
  2639 		ret
  2640 ; End of function p7Dsub_4C0C
  2640 ; End of function p7Dsub_4C0C
  2641 
  2641 
  2642 
  2642 
  2643 ; =============== S U B	R O U T	I N E =======================================
  2643 ; =============== S U B	R O U T	I N E =======================================
  2644 
  2644 
  2645 
  2645 
  2646 p7Dsub_4C73:				; CODE XREF: p7Dsub_4442+2Ep p7Dsub_4F95+27p
  2646 p7Dsub_4C73:
  2647 		push	bc
  2647 		push	bc
  2648 		push	de
  2648 		push	de
  2649 		push	hl
  2649 		push	hl
  2650 		push	af
  2650 		push	af
  2651 		rst	28h
  2651 		rst	28h
  2669 
  2669 
  2670 
  2670 
  2671 ; =============== S U B	R O U T	I N E =======================================
  2671 ; =============== S U B	R O U T	I N E =======================================
  2672 
  2672 
  2673 
  2673 
  2674 p7Dsub_4C8B:				; CODE XREF: seg001:p7Dloc_45A9p
  2674 p7Dsub_4C8B:
  2675 		push	hl
  2675 		push	hl
  2676 		push	de
  2676 		push	de
  2677 		push	bc
  2677 		push	bc
  2678 		push	af
  2678 		push	af
  2679 		call	p7Dsub_4F62
  2679 		call	p7Dsub_4F62
  2697 
  2697 
  2698 
  2698 
  2699 ; =============== S U B	R O U T	I N E =======================================
  2699 ; =============== S U B	R O U T	I N E =======================================
  2700 
  2700 
  2701 
  2701 
  2702 p7Dsub_4CAE:				; CODE XREF: p7Dsub_4C8B+Ap
  2702 p7Dsub_4CAE:
  2703 		call	p7Dsub_70D1
  2703 		call	p7Dsub_70D1
  2704 		jr	nz, p7Dloc_4CF7
  2704 		jr	nz, p7Dloc_4CF7
  2705 		ld	de, 800h
  2705 		ld	de, 800h
  2706 		call	p7Dsub_777E
  2706 		call	p7Dsub_777E
  2707 		jr	nz, p7Dloc_4CF7
  2707 		jr	nz, p7Dloc_4CF7
  2714 		call	p7Dsub_4574
  2714 		call	p7Dsub_4574
  2715 		pop	de
  2715 		pop	de
  2716 		ex	de, hl
  2716 		ex	de, hl
  2717 		inc	ix
  2717 		inc	ix
  2718 
  2718 
  2719 p7Dloc_4CD2:				; CODE XREF: p7Dsub_4CAE+85j
  2719 p7Dloc_4CD2:
  2720 		push	hl
  2720 		push	hl
  2721 
  2721 
  2722 p7Dloc_4CD3:				; CODE XREF: p7Dsub_4CAE+47j
  2722 p7Dloc_4CD3:
  2723 		call	p7Dsub_4F95
  2723 		call	p7Dsub_4F95
  2724 		jr	nz, p7Dloc_4CDD
  2724 		jr	nz, p7Dloc_4CDD
  2725 		call	p7Dsub_4F10
  2725 		call	p7Dsub_4F10
  2726 		jr	p7Dloc_4D1D
  2726 		jr	p7Dloc_4D1D
  2727 ; ---------------------------------------------------------------------------
  2727 ; ---------------------------------------------------------------------------
  2728 
  2728 
  2729 p7Dloc_4CDD:				; CODE XREF: p7Dsub_4CAE+28j
  2729 p7Dloc_4CDD:
  2730 		push	de
  2730 		push	de
  2731 		push	ix
  2731 		push	ix
  2732 		ld	de, 810h
  2732 		ld	de, 810h
  2733 		call	p7Dsub_7700
  2733 		call	p7Dsub_7700
  2734 		rst	28h
  2734 		rst	28h
  2744 		call	nz, p7Dsub_4E44
  2744 		call	nz, p7Dsub_4E44
  2745 		jr	nz, p7Dloc_4D1D
  2745 		jr	nz, p7Dloc_4D1D
  2746 		jr	p7Dloc_4CD3
  2746 		jr	p7Dloc_4CD3
  2747 ; ---------------------------------------------------------------------------
  2747 ; ---------------------------------------------------------------------------
  2748 
  2748 
  2749 p7Dloc_4CF7:				; CODE XREF: p7Dsub_4CAE+3j p7Dsub_4CAE+Bj
  2749 p7Dloc_4CF7:
  2750 		call	p7Dsub_4894
  2750 		call	p7Dsub_4894
  2751 		ld	de, 800h
  2751 		ld	de, 800h
  2752 		call	p7Dsub_777E
  2752 		call	p7Dsub_777E
  2753 		jr	nz, locret_4D35
  2753 		jr	nz, locret_4D35
  2754 		inc	ix
  2754 		inc	ix
  2755 		call	p7Dsub_4574
  2755 		call	p7Dsub_4574
  2756 
  2756 
  2757 p7Dloc_4D07:				; CODE XREF: p7Dsub_4CAE+6Dj
  2757 p7Dloc_4D07:
  2758 		ld	de, 810h
  2758 		ld	de, 810h
  2759 		call	p7Dsub_705E
  2759 		call	p7Dsub_705E
  2760 		jr	nz, locret_4D35
  2760 		jr	nz, locret_4D35
  2761 		push	hl
  2761 		push	hl
  2762 		ex	de, hl
  2762 		ex	de, hl
  2766 		add	hl, bc
  2766 		add	hl, bc
  2767 		inc	ix
  2767 		inc	ix
  2768 		jr	p7Dloc_4D07
  2768 		jr	p7Dloc_4D07
  2769 ; ---------------------------------------------------------------------------
  2769 ; ---------------------------------------------------------------------------
  2770 
  2770 
  2771 p7Dloc_4D1D:				; CODE XREF: p7Dsub_4CAE+2Dj p7Dsub_4CAE+45j
  2771 p7Dloc_4D1D:
  2772 		pop	hl
  2772 		pop	hl
  2773 		ex	de, hl
  2773 		ex	de, hl
  2774 		push	de
  2774 		push	de
  2775 		call	p7Dsub_7700
  2775 		call	p7Dsub_7700
  2776 		ld	de, 810h
  2776 		ld	de, 810h
  2785 		jr	nz, locret_4D35
  2785 		jr	nz, locret_4D35
  2786 		ex	de, hl
  2786 		ex	de, hl
  2787 		jr	p7Dloc_4CD2
  2787 		jr	p7Dloc_4CD2
  2788 ; ---------------------------------------------------------------------------
  2788 ; ---------------------------------------------------------------------------
  2789 
  2789 
  2790 locret_4D35:				; CODE XREF: p7Dsub_4CAE+52j p7Dsub_4CAE+5Fj ...
  2790 locret_4D35:
  2791 		ret
  2791 		ret
  2792 ; ---------------------------------------------------------------------------
  2792 ; ---------------------------------------------------------------------------
  2793 
  2793 
  2794 p7Dloc_4D36:				; CODE XREF: p7Dsub_4CAE+1Aj
  2794 p7Dloc_4D36:
  2795 		pop	hl
  2795 		pop	hl
  2796 		ret
  2796 		ret
  2797 ; End of function p7Dsub_4CAE
  2797 ; End of function p7Dsub_4CAE
  2798 
  2798 
  2799 ; ---------------------------------------------------------------------------
  2799 ; ---------------------------------------------------------------------------
  2800 
  2800 
  2801 p7Dloc_4D38:				; CODE XREF: p7Dsub_4C8B+7p
  2801 p7Dloc_4D38:
  2802 		call	p7Dsub_70D1
  2802 		call	p7Dsub_70D1
  2803 		jr	nz, p7Dloc_4D82
  2803 		jr	nz, p7Dloc_4D82
  2804 		ld	de, 700h
  2804 		ld	de, 700h
  2805 		call	p7Dsub_777E
  2805 		call	p7Dsub_777E
  2806 		jr	nz, p7Dloc_4D82
  2806 		jr	nz, p7Dloc_4D82
  2816 		ld	ix, 0Dh
  2816 		ld	ix, 0Dh
  2817 
  2817 
  2818 ; =============== S U B	R O U T	I N E =======================================
  2818 ; =============== S U B	R O U T	I N E =======================================
  2819 
  2819 
  2820 
  2820 
  2821 p7Dsub_4D5E:				; CODE XREF: p7Dsub_47E3+63p
  2821 p7Dsub_4D5E:
  2822 		; seg001:p7Dloc_4D80j
  2822 
  2823 		push	hl
  2823 		push	hl
  2824 
  2824 
  2825 p7Dloc_4D5F:				; CODE XREF: p7Dsub_4D5E+20j
  2825 p7Dloc_4D5F:
  2826 		call	p7Dsub_4F6E
  2826 		call	p7Dsub_4F6E
  2827 		call	z, p7Dsub_4EBD
  2827 		call	z, p7Dsub_4EBD
  2828 		jr	z, p7Dloc_4DAF
  2828 		jr	z, p7Dloc_4DAF
  2829 		push	de
  2829 		push	de
  2830 		push	ix
  2830 		push	ix
  2843 		jr	p7Dloc_4D5F
  2843 		jr	p7Dloc_4D5F
  2844 ; End of function p7Dsub_4D5E
  2844 ; End of function p7Dsub_4D5E
  2845 
  2845 
  2846 ; ---------------------------------------------------------------------------
  2846 ; ---------------------------------------------------------------------------
  2847 
  2847 
  2848 p7Dloc_4D80:				; CODE XREF: p7Dsub_4DCD-7j
  2848 p7Dloc_4D80:
  2849 		jr	p7Dsub_4D5E
  2849 		jr	p7Dsub_4D5E
  2850 ; ---------------------------------------------------------------------------
  2850 ; ---------------------------------------------------------------------------
  2851 
  2851 
  2852 p7Dloc_4D82:				; CODE XREF: seg001:4D3Bj seg001:4D43j
  2852 p7Dloc_4D82:
  2853 		ld	ix, 0Ch
  2853 		ld	ix, 0Ch
  2854 		call	p7Dsub_4894
  2854 		call	p7Dsub_4894
  2855 		ld	de, 700h
  2855 		ld	de, 700h
  2856 		call	p7Dsub_777E
  2856 		call	p7Dsub_777E
  2857 		jp	nz, locret_4DCA
  2857 		jp	nz, locret_4DCA
  2858 		inc	ix
  2858 		inc	ix
  2859 		call	p7Dsub_4574
  2859 		call	p7Dsub_4574
  2860 
  2860 
  2861 p7Dloc_4D97:				; CODE XREF: seg001:4DADj
  2861 p7Dloc_4D97:
  2862 		ld	de, 710h
  2862 		ld	de, 710h
  2863 		call	p7Dsub_705E
  2863 		call	p7Dsub_705E
  2864 		jr	nz, p7Dloc_4DC8
  2864 		jr	nz, p7Dloc_4DC8
  2865 		push	hl
  2865 		push	hl
  2866 		ex	de, hl
  2866 		ex	de, hl
  2872 		inc	ix
  2872 		inc	ix
  2873 		jr	p7Dloc_4D97
  2873 		jr	p7Dloc_4D97
  2874 ; ---------------------------------------------------------------------------
  2874 ; ---------------------------------------------------------------------------
  2875 ; START	OF FUNCTION CHUNK FOR p7Dsub_4DCD
  2875 ; START	OF FUNCTION CHUNK FOR p7Dsub_4DCD
  2876 
  2876 
  2877 p7Dloc_4DAF:				; CODE XREF: p7Dsub_4D5E+7j p7Dsub_4D5E+1Ej
  2877 p7Dloc_4DAF:
  2878 		pop	hl
  2878 		pop	hl
  2879 		ex	de, hl
  2879 		ex	de, hl
  2880 		push	de
  2880 		push	de
  2881 		ld	a, 7Eh ; '~'
  2881 		ld	a, 7Eh ; '~'
  2882 		ld	de, 710h
  2882 		ld	de, 710h
  2893 		inc	ix
  2893 		inc	ix
  2894 		jr	p7Dloc_4D80
  2894 		jr	p7Dloc_4D80
  2895 ; END OF FUNCTION CHUNK	FOR p7Dsub_4DCD
  2895 ; END OF FUNCTION CHUNK	FOR p7Dsub_4DCD
  2896 ; ---------------------------------------------------------------------------
  2896 ; ---------------------------------------------------------------------------
  2897 
  2897 
  2898 p7Dloc_4DC8:				; CODE XREF: seg001:4D9Dj
  2898 p7Dloc_4DC8:
  2899 		dec	ix
  2899 		dec	ix
  2900 ; START	OF FUNCTION CHUNK FOR p7Dsub_4DCD
  2900 ; START	OF FUNCTION CHUNK FOR p7Dsub_4DCD
  2901 
  2901 
  2902 locret_4DCA:				; CODE XREF: seg001:4D8Fj p7Dsub_4DCD-Cj
  2902 locret_4DCA:
  2903 		ret
  2903 		ret
  2904 ; END OF FUNCTION CHUNK	FOR p7Dsub_4DCD
  2904 ; END OF FUNCTION CHUNK	FOR p7Dsub_4DCD
  2905 ; ---------------------------------------------------------------------------
  2905 ; ---------------------------------------------------------------------------
  2906 
  2906 
  2907 p7Dloc_4DCB:				; CODE XREF: seg001:4D52j
  2907 p7Dloc_4DCB:
  2908 		pop	hl
  2908 		pop	hl
  2909 		ret
  2909 		ret
  2910 
  2910 
  2911 ; =============== S U B	R O U T	I N E =======================================
  2911 ; =============== S U B	R O U T	I N E =======================================
  2912 
  2912 
  2913 
  2913 
  2914 p7Dsub_4DCD:				; CODE XREF: p7Dsub_4D5E+1Bp seg001:4DA1p ...
  2914 p7Dsub_4DCD:
  2915 
  2915 
  2916 ; FUNCTION CHUNK AT 4DAF SIZE 00000019 BYTES
  2916 
  2917 ; FUNCTION CHUNK AT 4DCA SIZE 00000001 BYTES
  2917 
  2918 
  2918 
  2919 		push	bc
  2919 		push	bc
  2920 		push	hl
  2920 		push	hl
  2921 		push	de
  2921 		push	de
  2922 		push	ix
  2922 		push	ix
  2932 		.dw 8030h
  2932 		.dw 8030h
  2933 ; ---------------------------------------------------------------------------
  2933 ; ---------------------------------------------------------------------------
  2934 		jr	nz, p7Dloc_4DE6
  2934 		jr	nz, p7Dloc_4DE6
  2935 		set	7, (iy+25h)
  2935 		set	7, (iy+25h)
  2936 
  2936 
  2937 p7Dloc_4DE6:				; CODE XREF: p7Dsub_4DCD+13j
  2937 p7Dloc_4DE6:
  2938 		pop	hl
  2938 		pop	hl
  2939 		ld	a, 7Eh ; '~'
  2939 		ld	a, 7Eh ; '~'
  2940 		ld	de, 760h
  2940 		ld	de, 760h
  2941 		rst	28h
  2941 		rst	28h
  2942 ; ---------------------------------------------------------------------------
  2942 ; ---------------------------------------------------------------------------
  2947 		jr	z, p7Dloc_4DFC
  2947 		jr	z, p7Dloc_4DFC
  2948 		ld	de, 0
  2948 		ld	de, 0
  2949 		jr	p7Dloc_4E27
  2949 		jr	p7Dloc_4E27
  2950 ; ---------------------------------------------------------------------------
  2950 ; ---------------------------------------------------------------------------
  2951 
  2951 
  2952 p7Dloc_4DFC:				; CODE XREF: p7Dsub_4DCD+28j
  2952 p7Dloc_4DFC:
  2953 		ld	de, 80h	; '�'
  2953 		ld	de, 80h	; '�'
  2954 		jr	p7Dloc_4E27
  2954 		jr	p7Dloc_4E27
  2955 ; ---------------------------------------------------------------------------
  2955 ; ---------------------------------------------------------------------------
  2956 
  2956 
  2957 p7Dloc_4E01:				; CODE XREF: p7Dsub_4DCD+22j
  2957 p7Dloc_4E01:
  2958 		ld	a, c
  2958 		ld	a, c
  2959 		or	b
  2959 		or	b
  2960 		ld	a, 0
  2960 		ld	a, 0
  2961 		jr	z, p7Dloc_4E0A
  2961 		jr	z, p7Dloc_4E0A
  2962 		call	p7Dsub_4566
  2962 		call	p7Dsub_4566
  2963 
  2963 
  2964 p7Dloc_4E0A:				; CODE XREF: p7Dsub_4DCD+38j
  2964 p7Dloc_4E0A:
  2965 		push	af
  2965 		push	af
  2966 		ld	b, 9
  2966 		ld	b, 9
  2967 		sub	b
  2967 		sub	b
  2968 		jr	c, p7Dloc_4E20
  2968 		jr	c, p7Dloc_4E20
  2969 		pop	af
  2969 		pop	af
  2975 		call	p7Dsub_4E9B
  2975 		call	p7Dsub_4E9B
  2976 		ld	e, a
  2976 		ld	e, a
  2977 		jr	p7Dloc_4E27
  2977 		jr	p7Dloc_4E27
  2978 ; ---------------------------------------------------------------------------
  2978 ; ---------------------------------------------------------------------------
  2979 
  2979 
  2980 p7Dloc_4E20:				; CODE XREF: p7Dsub_4DCD+41j
  2980 p7Dloc_4E20:
  2981 		ld	d, 0
  2981 		ld	d, 0
  2982 		pop	af
  2982 		pop	af
  2983 		call	p7Dsub_4E9B
  2983 		call	p7Dsub_4E9B
  2984 		ld	e, a
  2984 		ld	e, a
  2985 
  2985 
  2986 p7Dloc_4E27:				; CODE XREF: p7Dsub_4DCD+2Dj p7Dsub_4DCD+32j ...
  2986 p7Dloc_4E27:
  2987 		ld	hl, tempSwapArea
  2987 		ld	hl, tempSwapArea
  2988 		push	ix
  2988 		push	ix
  2989 		pop	bc
  2989 		pop	bc
  2990 		sla	c
  2990 		sla	c
  2991 		ld	b, 0
  2991 		ld	b, 0
  3006 
  3006 
  3007 
  3007 
  3008 ; =============== S U B	R O U T	I N E =======================================
  3008 ; =============== S U B	R O U T	I N E =======================================
  3009 
  3009 
  3010 
  3010 
  3011 p7Dsub_4E44:				; CODE XREF: p7Dsub_4CAE:p7Dloc_4CF0p
  3011 p7Dsub_4E44:
  3012 		; p7Dsub_4CAE+63p
  3012 		; p7Dsub_4CAE+63p
  3013 		push	af
  3013 		push	af
  3014 		push	bc
  3014 		push	bc
  3015 		push	hl
  3015 		push	hl
  3016 		push	de
  3016 		push	de
  3025 		jr	z, p7Dloc_4E5A
  3025 		jr	z, p7Dloc_4E5A
  3026 		ld	de, 80h	; '�'
  3026 		ld	de, 80h	; '�'
  3027 		jr	p7Dloc_4E80
  3027 		jr	p7Dloc_4E80
  3028 ; ---------------------------------------------------------------------------
  3028 ; ---------------------------------------------------------------------------
  3029 
  3029 
  3030 p7Dloc_4E5A:				; CODE XREF: p7Dsub_4E44+Fj
  3030 p7Dloc_4E5A:
  3031 		ld	a, c
  3031 		ld	a, c
  3032 		or	b
  3032 		or	b
  3033 		ld	a, 0
  3033 		ld	a, 0
  3034 		jr	z, p7Dloc_4E63
  3034 		jr	z, p7Dloc_4E63
  3035 		call	p7Dsub_4566
  3035 		call	p7Dsub_4566
  3036 
  3036 
  3037 p7Dloc_4E63:				; CODE XREF: p7Dsub_4E44+1Aj
  3037 p7Dloc_4E63:
  3038 		push	af
  3038 		push	af
  3039 		ld	b, 9
  3039 		ld	b, 9
  3040 		sub	b
  3040 		sub	b
  3041 		jr	c, p7Dloc_4E79
  3041 		jr	c, p7Dloc_4E79
  3042 		pop	af
  3042 		pop	af
  3048 		call	p7Dsub_4E9B
  3048 		call	p7Dsub_4E9B
  3049 		ld	e, a
  3049 		ld	e, a
  3050 		jr	p7Dloc_4E80
  3050 		jr	p7Dloc_4E80
  3051 ; ---------------------------------------------------------------------------
  3051 ; ---------------------------------------------------------------------------
  3052 
  3052 
  3053 p7Dloc_4E79:				; CODE XREF: p7Dsub_4E44+23j
  3053 p7Dloc_4E79:
  3054 		ld	d, 0
  3054 		ld	d, 0
  3055 		pop	af
  3055 		pop	af
  3056 		call	p7Dsub_4E9B
  3056 		call	p7Dsub_4E9B
  3057 		ld	e, a
  3057 		ld	e, a
  3058 
  3058 
  3059 p7Dloc_4E80:				; CODE XREF: p7Dsub_4E44+14j p7Dsub_4E44+33j
  3059 p7Dloc_4E80:
  3060 		ld	hl, tempSwapArea
  3060 		ld	hl, tempSwapArea
  3061 		push	ix
  3061 		push	ix
  3062 		pop	bc
  3062 		pop	bc
  3063 		sla	c
  3063 		sla	c
  3064 		ld	b, 0
  3064 		ld	b, 0
  3079 
  3079 
  3080 
  3080 
  3081 ; =============== S U B	R O U T	I N E =======================================
  3081 ; =============== S U B	R O U T	I N E =======================================
  3082 
  3082 
  3083 
  3083 
  3084 p7Dsub_4E9B:				; CODE XREF: p7Dsub_4DCD+47p p7Dsub_4DCD+4Dp ...
  3084 p7Dsub_4E9B:
  3085 		push	bc
  3085 		push	bc
  3086 		ld	c, 11h
  3086 		ld	c, 11h
  3087 		sub	c
  3087 		sub	c
  3088 		jp	nc, p7Dloc_4EB9
  3088 		jp	nc, p7Dloc_4EB9
  3089 		or	a
  3089 		or	a
  3094 		jr	z, p7Dloc_4EBB
  3094 		jr	z, p7Dloc_4EBB
  3095 		ld	b, a
  3095 		ld	b, a
  3096 		dec	b
  3096 		dec	b
  3097 		ld	a, 2
  3097 		ld	a, 2
  3098 
  3098 
  3099 p7Dloc_4EB0:				; CODE XREF: p7Dsub_4E9B+17j
  3099 p7Dloc_4EB0:
  3100 		sla	a
  3100 		sla	a
  3101 		djnz	p7Dloc_4EB0
  3101 		djnz	p7Dloc_4EB0
  3102 		ld	b, 1
  3102 		ld	b, 1
  3103 		sub	b
  3103 		sub	b
  3104 		jr	p7Dloc_4EBB
  3104 		jr	p7Dloc_4EBB
  3105 ; ---------------------------------------------------------------------------
  3105 ; ---------------------------------------------------------------------------
  3106 
  3106 
  3107 p7Dloc_4EB9:				; CODE XREF: p7Dsub_4E9B+4j p7Dsub_4E9B+Bj
  3107 p7Dloc_4EB9:
  3108 		ld	a, 0
  3108 		ld	a, 0
  3109 
  3109 
  3110 p7Dloc_4EBB:				; CODE XREF: p7Dsub_4E9B+Fj p7Dsub_4E9B+1Cj
  3110 p7Dloc_4EBB:
  3111 		pop	bc
  3111 		pop	bc
  3112 		ret
  3112 		ret
  3113 ; End of function p7Dsub_4E9B
  3113 ; End of function p7Dsub_4E9B
  3114 
  3114 
  3115 
  3115 
  3116 ; =============== S U B	R O U T	I N E =======================================
  3116 ; =============== S U B	R O U T	I N E =======================================
  3117 
  3117 
  3118 
  3118 
  3119 p7Dsub_4EBD:				; CODE XREF: p7Dsub_4D5E+4p
  3119 p7Dsub_4EBD:
  3120 		; p7Dsub_4F10:p7Dloc_4F47p
  3120 		; p7Dsub_4F10:p7Dloc_4F47p
  3121 		push	af
  3121 		push	af
  3122 		push	hl
  3122 		push	hl
  3123 		push	de
  3123 		push	de
  3124 		push	ix
  3124 		push	ix
  3133 
  3133 
  3134 
  3134 
  3135 ; =============== S U B	R O U T	I N E =======================================
  3135 ; =============== S U B	R O U T	I N E =======================================
  3136 
  3136 
  3137 
  3137 
  3138 p7Dsub_4ECE:				; CODE XREF: p7Dsub_4EBD+8p p7Dsub_4F10+8p
  3138 p7Dsub_4ECE:
  3139 		call	p7Dsub_705E
  3139 		call	p7Dsub_705E
  3140 		call	p7Dsub_4574
  3140 		call	p7Dsub_4574
  3141 		ld	de, 838Fh
  3141 		ld	de, 838Fh
  3142 		call	p7Dsub_424C
  3142 		call	p7Dsub_424C
  3143 		push	hl
  3143 		push	hl
  3149 		.dw 8069h
  3149 		.dw 8069h
  3150 ; ---------------------------------------------------------------------------
  3150 ; ---------------------------------------------------------------------------
  3151 		jr	z, p7Dloc_4EE8
  3151 		jr	z, p7Dloc_4EE8
  3152 		dec	ix
  3152 		dec	ix
  3153 
  3153 
  3154 p7Dloc_4EE8:				; CODE XREF: p7Dsub_4ECE+16j
  3154 p7Dloc_4EE8:
  3155 		call	p7Dsub_764E
  3155 		call	p7Dsub_764E
  3156 		push	hl
  3156 		push	hl
  3157 		pop	ix
  3157 		pop	ix
  3158 		push	ix
  3158 		push	ix
  3159 		pop	bc
  3159 		pop	bc
  3180 
  3180 
  3181 
  3181 
  3182 ; =============== S U B	R O U T	I N E =======================================
  3182 ; =============== S U B	R O U T	I N E =======================================
  3183 
  3183 
  3184 
  3184 
  3185 p7Dsub_4F10:				; CODE XREF: p7Dsub_4CAE+2Ap
  3185 p7Dsub_4F10:
  3186 		push	af
  3186 		push	af
  3187 		push	hl
  3187 		push	hl
  3188 		push	de
  3188 		push	de
  3189 		push	ix
  3189 		push	ix
  3190 		ld	de, 810h
  3190 		ld	de, 810h
  3213 		inc	ix
  3213 		inc	ix
  3214 		ld	de, 700h
  3214 		ld	de, 700h
  3215 		call	p7Dsub_777E
  3215 		call	p7Dsub_777E
  3216 		call	p7Dsub_4574
  3216 		call	p7Dsub_4574
  3217 
  3217 
  3218 p7Dloc_4F47:				; CODE XREF: p7Dsub_4F10+4Aj
  3218 p7Dloc_4F47:
  3219 		call	p7Dsub_4EBD
  3219 		call	p7Dsub_4EBD
  3220 		inc	ix
  3220 		inc	ix
  3221 		ld	a, 7Eh ; '~'
  3221 		ld	a, 7Eh ; '~'
  3222 		ld	de, 710h
  3222 		ld	de, 710h
  3223 		rst	28h
  3223 		rst	28h
  3228 		adc	hl, bc
  3228 		adc	hl, bc
  3229 		call	p7Dsub_705E
  3229 		call	p7Dsub_705E
  3230 		jr	z, p7Dloc_4F47
  3230 		jr	z, p7Dloc_4F47
  3231 		dec	ix
  3231 		dec	ix
  3232 
  3232 
  3233 p7Dloc_4F5E:				; CODE XREF: p7Dsub_4F10+2Aj
  3233 p7Dloc_4F5E:
  3234 		pop	de
  3234 		pop	de
  3235 		pop	hl
  3235 		pop	hl
  3236 		pop	af
  3236 		pop	af
  3237 		ret
  3237 		ret
  3238 ; End of function p7Dsub_4F10
  3238 ; End of function p7Dsub_4F10
  3239 
  3239 
  3240 
  3240 
  3241 ; =============== S U B	R O U T	I N E =======================================
  3241 ; =============== S U B	R O U T	I N E =======================================
  3242 
  3242 
  3243 
  3243 
  3244 p7Dsub_4F62:				; CODE XREF: p7Dsub_4C8B+4p
  3244 p7Dsub_4F62:
  3245 		ld	hl, tempSwapArea
  3245 		ld	hl, tempSwapArea
  3246 		ld	a, 0FFh
  3246 		ld	a, 0FFh
  3247 		ld	b, 0E8h	; '�'
  3247 		ld	b, 0E8h	; '�'
  3248 
  3248 
  3249 p7Dloc_4F69:				; CODE XREF: p7Dsub_4F62+9j
  3249 p7Dloc_4F69:
  3250 		ld	(hl), a
  3250 		ld	(hl), a
  3251 		inc	hl
  3251 		inc	hl
  3252 		djnz	p7Dloc_4F69
  3252 		djnz	p7Dloc_4F69
  3253 		ret
  3253 		ret
  3254 ; End of function p7Dsub_4F62
  3254 ; End of function p7Dsub_4F62
  3255 
  3255 
  3256 
  3256 
  3257 ; =============== S U B	R O U T	I N E =======================================
  3257 ; =============== S U B	R O U T	I N E =======================================
  3258 
  3258 
  3259 
  3259 
  3260 p7Dsub_4F6E:				; CODE XREF: p7Dsub_4D5E:p7Dloc_4D5Fp
  3260 p7Dsub_4F6E:
  3261 		push	hl
  3261 		push	hl
  3262 		push	de
  3262 		push	de
  3263 		push	bc
  3263 		push	bc
  3264 		push	ix
  3264 		push	ix
  3265 		push	de
  3265 		push	de
  3292 
  3292 
  3293 
  3293 
  3294 ; =============== S U B	R O U T	I N E =======================================
  3294 ; =============== S U B	R O U T	I N E =======================================
  3295 
  3295 
  3296 
  3296 
  3297 p7Dsub_4F95:				; CODE XREF: p7Dsub_4CAE:p7Dloc_4CD3p
  3297 p7Dsub_4F95:
  3298 		push	hl
  3298 		push	hl
  3299 		push	de
  3299 		push	de
  3300 		push	bc
  3300 		push	bc
  3301 		push	ix
  3301 		push	ix
  3302 		push	de
  3302 		push	de
  3323 		jr	nz, p7Dloc_4FE9
  3323 		jr	nz, p7Dloc_4FE9
  3324 		ld	a, c
  3324 		ld	a, c
  3325 		or	b
  3325 		or	b
  3326 		jr	z, p7Dloc_4FEF
  3326 		jr	z, p7Dloc_4FEF
  3327 
  3327 
  3328 p7Dloc_4FB9:				; CODE XREF: p7Dsub_4F6E+24j
  3328 p7Dloc_4FB9:
  3329 		ld	b, c
  3329 		ld	b, c
  3330 
  3330 
  3331 p7Dloc_4FBA:				; CODE XREF: p7Dsub_4F95+2Ej p7Dsub_4F95+52j
  3331 p7Dloc_4FBA:
  3332 		ld	a, 7Eh ; '~'
  3332 		ld	a, 7Eh ; '~'
  3333 		call	p7Dsub_4C73
  3333 		call	p7Dsub_4C73
  3334 		jr	nz, p7Dloc_4FE9
  3334 		jr	nz, p7Dloc_4FE9
  3335 		inc	hl
  3335 		inc	hl
  3336 		inc	de
  3336 		inc	de
  3358 		jr	nz, p7Dloc_4FE9
  3358 		jr	nz, p7Dloc_4FE9
  3359 		ld	b, c
  3359 		ld	b, c
  3360 		jr	p7Dloc_4FBA
  3360 		jr	p7Dloc_4FBA
  3361 ; ---------------------------------------------------------------------------
  3361 ; ---------------------------------------------------------------------------
  3362 
  3362 
  3363 p7Dloc_4FE9:				; CODE XREF: p7Dsub_4F6E+1Ej p7Dsub_4F95+1Ej ...
  3363 p7Dloc_4FE9:
  3364 		ld	a, 0FFh
  3364 		ld	a, 0FFh
  3365 		bit	7, a
  3365 		bit	7, a
  3366 		jr	p7Dloc_4FF3
  3366 		jr	p7Dloc_4FF3
  3367 ; ---------------------------------------------------------------------------
  3367 ; ---------------------------------------------------------------------------
  3368 
  3368 
  3369 p7Dloc_4FEF:				; CODE XREF: p7Dsub_4F6E+22j p7Dsub_4F95+22j ...
  3369 p7Dloc_4FEF:
  3370 		ld	a, 0
  3370 		ld	a, 0
  3371 		bit	7, a
  3371 		bit	7, a
  3372 
  3372 
  3373 p7Dloc_4FF3:				; CODE XREF: p7Dsub_4F95+58j
  3373 p7Dloc_4FF3:
  3374 		pop	ix
  3374 		pop	ix
  3375 		pop	bc
  3375 		pop	bc
  3376 		pop	de
  3376 		pop	de
  3377 		pop	hl
  3377 		pop	hl
  3378 		ret
  3378 		ret
  3379 ; End of function p7Dsub_4F95
  3379 ; End of function p7Dsub_4F95
  3380 
  3380 
  3381 ; ---------------------------------------------------------------------------
  3381 ; ---------------------------------------------------------------------------
  3382 
  3382 
  3383 p7Dloc_4FF9:				; CODE XREF: p7Dsub_533B+24p
  3383 p7Dloc_4FF9:
  3384 		push	af
  3384 		push	af
  3385 		push	de
  3385 		push	de
  3386 		push	hl
  3386 		push	hl
  3387 		push	bc
  3387 		push	bc
  3388 		push	af
  3388 		push	af
  3442 		rst	28h
  3442 		rst	28h
  3443 ; ---------------------------------------------------------------------------
  3443 ; ---------------------------------------------------------------------------
  3444 		.dw 802Ah
  3444 		.dw 802Ah
  3445 ; ---------------------------------------------------------------------------
  3445 ; ---------------------------------------------------------------------------
  3446 
  3446 
  3447 p7Dloc_503E:				; CODE XREF: seg001:5039j
  3447 p7Dloc_503E:
  3448 		pop	hl
  3448 		pop	hl
  3449 ; START	OF FUNCTION CHUNK FOR p7Dsub_5083
  3449 ; START	OF FUNCTION CHUNK FOR p7Dsub_5083
  3450 
  3450 
  3451 p7Dloc_503F:				; CODE XREF: p7Dsub_5083+4j
  3451 p7Dloc_503F:
  3452 		scf
  3452 		scf
  3453 
  3453 
  3454 p7Dloc_5040:				; CODE XREF: p7Dsub_508A+1Cj
  3454 p7Dloc_5040:
  3455 		ld	a, 7Eh ; '~'
  3455 		ld	a, 7Eh ; '~'
  3456 		push	af
  3456 		push	af
  3457 		push	af
  3457 		push	af
  3458 		push	hl
  3458 		push	hl
  3459 		push	hl
  3459 		push	hl
  3507 ; END OF FUNCTION CHUNK	FOR p7Dsub_5083
  3507 ; END OF FUNCTION CHUNK	FOR p7Dsub_5083
  3508 
  3508 
  3509 ; =============== S U B	R O U T	I N E =======================================
  3509 ; =============== S U B	R O U T	I N E =======================================
  3510 
  3510 
  3511 
  3511 
  3512 p7Dsub_5083:				; CODE XREF: seg001:452Cp
  3512 p7Dsub_5083:
  3513 
  3513 
  3514 ; FUNCTION CHUNK AT 46C1 SIZE 00000006 BYTES
  3514 
  3515 ; FUNCTION CHUNK AT 503F SIZE 00000044 BYTES
  3515 
  3516 
  3516 
  3517 		push	af
  3517 		push	af
  3518 		push	de
  3518 		push	de
  3519 		push	hl
  3519 		push	hl
  3520 		push	bc
  3520 		push	bc
  3523 
  3523 
  3524 
  3524 
  3525 ; =============== S U B	R O U T	I N E =======================================
  3525 ; =============== S U B	R O U T	I N E =======================================
  3526 
  3526 
  3527 
  3527 
  3528 p7Dsub_508A:				; CODE XREF: p7Dsub_50A8+15p
  3528 p7Dsub_508A:
  3529 		push	af
  3529 		push	af
  3530 		push	de
  3530 		push	de
  3531 		push	hl
  3531 		push	hl
  3532 		push	bc
  3532 		push	bc
  3533 		call	p7Dsub_4894
  3533 		call	p7Dsub_4894
  3543 		rst	28h
  3543 		rst	28h
  3544 ; ---------------------------------------------------------------------------
  3544 ; ---------------------------------------------------------------------------
  3545 		.dw 802Ah
  3545 		.dw 802Ah
  3546 ; ---------------------------------------------------------------------------
  3546 ; ---------------------------------------------------------------------------
  3547 
  3547 
  3548 p7Dloc_50A3:				; CODE XREF: p7Dsub_508A+14j
  3548 p7Dloc_50A3:
  3549 		pop	hl
  3549 		pop	hl
  3550 		scf
  3550 		scf
  3551 		ccf
  3551 		ccf
  3552 		jr	p7Dloc_5040
  3552 		jr	p7Dloc_5040
  3553 ; End of function p7Dsub_508A
  3553 ; End of function p7Dsub_508A
  3554 
  3554 
  3555 
  3555 
  3556 ; =============== S U B	R O U T	I N E =======================================
  3556 ; =============== S U B	R O U T	I N E =======================================
  3557 
  3557 
  3558 
  3558 
  3559 p7Dsub_50A8:				; CODE XREF: seg001:45A6p seg001:4735p ...
  3559 p7Dsub_50A8:
  3560 		push	af
  3560 		push	af
  3561 		push	bc
  3561 		push	bc
  3562 		push	hl
  3562 		push	hl
  3563 		push	de
  3563 		push	de
  3564 		call	p7Dsub_4894
  3564 		call	p7Dsub_4894
  3577 
  3577 
  3578 
  3578 
  3579 ; =============== S U B	R O U T	I N E =======================================
  3579 ; =============== S U B	R O U T	I N E =======================================
  3580 
  3580 
  3581 
  3581 
  3582 p7Dsub_50C5:				; CODE XREF: seg001:4516p p7Dsub_4AC9+3Cp ...
  3582 p7Dsub_50C5:
  3583 		push	ix
  3583 		push	ix
  3584 		push	hl
  3584 		push	hl
  3585 		push	de
  3585 		push	de
  3586 		push	af
  3586 		push	af
  3587 		push	hl
  3587 		push	hl
  3615 		sub	c
  3615 		sub	c
  3616 		jr	z, p7Dloc_50F3
  3616 		jr	z, p7Dloc_50F3
  3617 		jr	nc, p7Dloc_511B
  3617 		jr	nc, p7Dloc_511B
  3618 		jr	c, p7Dloc_5113
  3618 		jr	c, p7Dloc_5113
  3619 
  3619 
  3620 p7Dloc_50F3:				; CODE XREF: p7Dsub_50C5+28j
  3620 p7Dloc_50F3:
  3621 		ld	a, b
  3621 		ld	a, b
  3622 		inc	de
  3622 		inc	de
  3623 		inc	hl
  3623 		inc	hl
  3624 		ld	b, c
  3624 		ld	b, c
  3625 		ex	de, hl
  3625 		ex	de, hl
  3626 
  3626 
  3627 p7Dloc_50F8:				; CODE XREF: p7Dsub_50C5+49j
  3627 p7Dloc_50F8:
  3628 		push	af
  3628 		push	af
  3629 		rst	28h
  3629 		rst	28h
  3630 ; ---------------------------------------------------------------------------
  3630 ; ---------------------------------------------------------------------------
  3631 		.dw 8051h
  3631 		.dw 8051h
  3632 ; ---------------------------------------------------------------------------
  3632 ; ---------------------------------------------------------------------------
  3638 		sub	c
  3638 		sub	c
  3639 		jr	z, p7Dloc_510A
  3639 		jr	z, p7Dloc_510A
  3640 		jr	nc, p7Dloc_511A
  3640 		jr	nc, p7Dloc_511A
  3641 		jr	c, p7Dloc_5112
  3641 		jr	c, p7Dloc_5112
  3642 
  3642 
  3643 p7Dloc_510A:				; CODE XREF: p7Dsub_50C5+3Fj
  3643 p7Dloc_510A:
  3644 		pop	af
  3644 		pop	af
  3645 		inc	de
  3645 		inc	de
  3646 		inc	hl
  3646 		inc	hl
  3647 		ex	de, hl
  3647 		ex	de, hl
  3648 		djnz	p7Dloc_50F8
  3648 		djnz	p7Dloc_50F8
  3649 		jr	p7Dloc_5113
  3649 		jr	p7Dloc_5113
  3650 ; ---------------------------------------------------------------------------
  3650 ; ---------------------------------------------------------------------------
  3651 
  3651 
  3652 p7Dloc_5112:				; CODE XREF: p7Dsub_50C5+43j
  3652 p7Dloc_5112:
  3653 		pop	af
  3653 		pop	af
  3654 
  3654 
  3655 p7Dloc_5113:				; CODE XREF: p7Dsub_50C5+2Cj p7Dsub_50C5+4Bj
  3655 p7Dloc_5113:
  3656 		ld	a, 0FFh
  3656 		ld	a, 0FFh
  3657 		bit	7, a
  3657 		bit	7, a
  3658 		jr	p7Dloc_511F
  3658 		jr	p7Dloc_511F
  3659 ; ---------------------------------------------------------------------------
  3659 ; ---------------------------------------------------------------------------
  3660 
  3660 
  3661 p7Dloc_5119:				; CODE XREF: p7Dsub_50C5+Cj
  3661 p7Dloc_5119:
  3662 		pop	af
  3662 		pop	af
  3663 
  3663 
  3664 p7Dloc_511A:				; CODE XREF: p7Dsub_50C5+41j
  3664 p7Dloc_511A:
  3665 		pop	af
  3665 		pop	af
  3666 
  3666 
  3667 p7Dloc_511B:				; CODE XREF: p7Dsub_50C5+2Aj
  3667 p7Dloc_511B:
  3668 		ld	a, 0
  3668 		ld	a, 0
  3669 		bit	7, a
  3669 		bit	7, a
  3670 
  3670 
  3671 p7Dloc_511F:				; CODE XREF: p7Dsub_50C5+52j
  3671 p7Dloc_511F:
  3672 		pop	de
  3672 		pop	de
  3673 		pop	hl
  3673 		pop	hl
  3674 		pop	ix
  3674 		pop	ix
  3675 		ret
  3675 		ret
  3676 ; End of function p7Dsub_50C5
  3676 ; End of function p7Dsub_50C5
  3677 
  3677 
  3678 
  3678 
  3679 ; =============== S U B	R O U T	I N E =======================================
  3679 ; =============== S U B	R O U T	I N E =======================================
  3680 
  3680 
  3681 
  3681 
  3682 p7Dsub_5124:				; CODE XREF: seg001:4749p
  3682 p7Dsub_5124:
  3683 		push	hl
  3683 		push	hl
  3684 		push	bc
  3684 		push	bc
  3685 		push	de
  3685 		push	de
  3686 		push	af
  3686 		push	af
  3687 		call	p7Dsub_47B5
  3687 		call	p7Dsub_47B5
  3692 		call	p7Dsub_4894
  3692 		call	p7Dsub_4894
  3693 		ld	de, 700h
  3693 		ld	de, 700h
  3694 		call	p7Dsub_777E
  3694 		call	p7Dsub_777E
  3695 		call	p7Dsub_4574
  3695 		call	p7Dsub_4574
  3696 
  3696 
  3697 p7Dloc_5141:				; CODE XREF: p7Dsub_5124+30j
  3697 p7Dloc_5141:
  3698 		ld	de, 710h
  3698 		ld	de, 710h
  3699 		call	p7Dsub_705E
  3699 		call	p7Dsub_705E
  3700 		jr	nz, p7Dloc_5156
  3700 		jr	nz, p7Dloc_5156
  3701 		ex	de, hl
  3701 		ex	de, hl
  3702 		call	p7Dsub_4DCD
  3702 		call	p7Dsub_4DCD
  3705 		call	p7Dsub_4574
  3705 		call	p7Dsub_4574
  3706 		add	hl, bc
  3706 		add	hl, bc
  3707 		jr	p7Dloc_5141
  3707 		jr	p7Dloc_5141
  3708 ; ---------------------------------------------------------------------------
  3708 ; ---------------------------------------------------------------------------
  3709 
  3709 
  3710 p7Dloc_5156:				; CODE XREF: p7Dsub_47E3+68j p7Dsub_5124+23j
  3710 p7Dloc_5156:
  3711 		ld	hl, tempSwapArea
  3711 		ld	hl, tempSwapArea
  3712 		push	ix
  3712 		push	ix
  3713 		pop	bc
  3713 		pop	bc
  3714 		sla	c
  3714 		sla	c
  3715 		add	hl, bc
  3715 		add	hl, bc
  3724 		jr	nc, p7Dloc_516F
  3724 		jr	nc, p7Dloc_516F
  3725 		ld	a, e
  3725 		ld	a, e
  3726 		ld	e, c
  3726 		ld	e, c
  3727 		sub	e
  3727 		sub	e
  3728 
  3728 
  3729 p7Dloc_516F:				; CODE XREF: p7Dsub_5124+46j
  3729 p7Dloc_516F:
  3730 		ld	c, a
  3730 		ld	c, a
  3731 		ld	hl, 0C8h ; '�'
  3731 		ld	hl, 0C8h ; '�'
  3732 		sbc	hl, de
  3732 		sbc	hl, de
  3733 		sbc	hl, bc
  3733 		sbc	hl, bc
  3734 		push	hl
  3734 		push	hl
  3749 
  3749 
  3750 
  3750 
  3751 ; =============== S U B	R O U T	I N E =======================================
  3751 ; =============== S U B	R O U T	I N E =======================================
  3752 
  3752 
  3753 
  3753 
  3754 p7Dsub_5185:				; CODE XREF: p7Dsub_519D+14p
  3754 p7Dsub_5185:
  3755 		push	bc
  3755 		push	bc
  3756 		push	hl
  3756 		push	hl
  3757 		call	p7Dsub_521D
  3757 		call	p7Dsub_521D
  3758 		pop	de
  3758 		pop	de
  3759 		ex	de, hl
  3759 		ex	de, hl
  3771 
  3771 
  3772 
  3772 
  3773 ; =============== S U B	R O U T	I N E =======================================
  3773 ; =============== S U B	R O U T	I N E =======================================
  3774 
  3774 
  3775 
  3775 
  3776 p7Dsub_519D:				; CODE XREF: p7Dsub_7240+227p
  3776 p7Dsub_519D:
  3777 		push	af
  3777 		push	af
  3778 		push	bc
  3778 		push	bc
  3779 		push	hl
  3779 		push	hl
  3780 		call	p7Dsub_51DB
  3780 		call	p7Dsub_51DB
  3781 		call	p7Dsub_7BCC
  3781 		call	p7Dsub_7BCC
  3791 		ld	a, 5
  3791 		ld	a, 5
  3792 		call	Page7D_2B62
  3792 		call	Page7D_2B62
  3793 		jr	p7Dloc_51BF
  3793 		jr	p7Dloc_51BF
  3794 ; ---------------------------------------------------------------------------
  3794 ; ---------------------------------------------------------------------------
  3795 
  3795 
  3796 p7Dloc_51BB:				; CODE XREF: p7Dsub_519D+12j
  3796 p7Dloc_51BB:
  3797 		ex	de, hl
  3797 		ex	de, hl
  3798 		call	p7Dsub_456D
  3798 		call	p7Dsub_456D
  3799 
  3799 
  3800 p7Dloc_51BF:				; CODE XREF: p7Dsub_519D+1Cj
  3800 p7Dloc_51BF:
  3801 		pop	hl
  3801 		pop	hl
  3802 		pop	bc
  3802 		pop	bc
  3803 		pop	af
  3803 		pop	af
  3804 		ret
  3804 		ret
  3805 ; End of function p7Dsub_519D
  3805 ; End of function p7Dsub_519D
  3806 
  3806 
  3807 
  3807 
  3808 ; =============== S U B	R O U T	I N E =======================================
  3808 ; =============== S U B	R O U T	I N E =======================================
  3809 
  3809 
  3810 
  3810 
  3811 p7Dsub_51C3:				; CODE XREF: p7Dsub_464E+2Dp seg001:7758p
  3811 p7Dsub_51C3:
  3812 		push	af
  3812 		push	af
  3813 		push	bc
  3813 		push	bc
  3814 		push	hl
  3814 		push	hl
  3815 		call	p7Dsub_51DB
  3815 		call	p7Dsub_51DB
  3816 		call	p7Dsub_7BCC
  3816 		call	p7Dsub_7BCC
  3829 
  3829 
  3830 
  3830 
  3831 ; =============== S U B	R O U T	I N E =======================================
  3831 ; =============== S U B	R O U T	I N E =======================================
  3832 
  3832 
  3833 
  3833 
  3834 p7Dsub_51DB:				; CODE XREF: p7Dsub_519D+3p p7Dsub_51C3+3p
  3834 p7Dsub_51DB:
  3835 		push	de
  3835 		push	de
  3836 		push	af
  3836 		push	af
  3837 		ld	b, a
  3837 		ld	b, a
  3838 		rst	28h
  3838 		rst	28h
  3839 ; ---------------------------------------------------------------------------
  3839 ; ---------------------------------------------------------------------------
  3846 		ld	c, a
  3846 		ld	c, a
  3847 		ld	b, 0
  3847 		ld	b, 0
  3848 		jr	p7Dloc_5202
  3848 		jr	p7Dloc_5202
  3849 ; ---------------------------------------------------------------------------
  3849 ; ---------------------------------------------------------------------------
  3850 
  3850 
  3851 p7Dloc_51ED:				; CODE XREF: p7Dsub_51DB+6j
  3851 p7Dloc_51ED:
  3852 		push	hl
  3852 		push	hl
  3853 		ld	hl, OP6
  3853 		ld	hl, OP6
  3854 		ld	(hl), 0
  3854 		ld	(hl), 0
  3855 		pop	hl
  3855 		pop	hl
  3856 		rst	28h
  3856 		rst	28h
  3863 		call	p7Dsub_7643
  3863 		call	p7Dsub_7643
  3864 		add	hl, bc
  3864 		add	hl, bc
  3865 		push	hl
  3865 		push	hl
  3866 		pop	bc
  3866 		pop	bc
  3867 
  3867 
  3868 p7Dloc_5202:				; CODE XREF: p7Dsub_51DB+10j
  3868 p7Dloc_5202:
  3869 		push	bc
  3869 		push	bc
  3870 		call	Page7D_2B80
  3870 		call	Page7D_2B80
  3871 		sra	c
  3871 		sra	c
  3872 		sra	c
  3872 		sra	c
  3873 		sra	c
  3873 		sra	c
  3884 
  3884 
  3885 
  3885 
  3886 ; =============== S U B	R O U T	I N E =======================================
  3886 ; =============== S U B	R O U T	I N E =======================================
  3887 
  3887 
  3888 
  3888 
  3889 Page7D_2B80:				; CODE XREF: p7Dsub_4253p	p7Dsub_4533p ...
  3889 Page7D_2B80:
  3890 		push	bc
  3890 		push	bc
  3891 		ld	bc, 1FE0h
  3891 		ld	bc, 1FE0h
  3892 		jr	p7Dloc_5221
  3892 		jr	p7Dloc_5221
  3893 ; End of function Page7D_2B80
  3893 ; End of function Page7D_2B80
  3894 
  3894 
  3895 
  3895 
  3896 ; =============== S U B	R O U T	I N E =======================================
  3896 ; =============== S U B	R O U T	I N E =======================================
  3897 
  3897 
  3898 
  3898 
  3899 p7Dsub_521D:				; CODE XREF: Page7D_2B62+5Ap p7Dsub_4228p ...
  3899 p7Dsub_521D:
  3900 		push	bc
  3900 		push	bc
  3901 		ld	bc, 1F18h
  3901 		ld	bc, 1F18h
  3902 
  3902 
  3903 p7Dloc_5221:				; CODE XREF: Page7D_2B80+4j
  3903 p7Dloc_5221:
  3904 		; p7Dsub_522B+4j ...
  3904 		; p7Dsub_522B+4j ...
  3905 		push	ix
  3905 		push	ix
  3906 		rst	28h
  3906 		rst	28h
  3907 ; ---------------------------------------------------------------------------
  3907 ; ---------------------------------------------------------------------------
  3908 		.dw 8057h
  3908 		.dw 8057h
  3915 
  3915 
  3916 
  3916 
  3917 ; =============== S U B	R O U T	I N E =======================================
  3917 ; =============== S U B	R O U T	I N E =======================================
  3918 
  3918 
  3919 
  3919 
  3920 p7Dsub_522B:				; CODE XREF: Page7D_2B62+62p p7Dsub_4214p ...
  3920 p7Dsub_522B:
  3921 		push	bc
  3921 		push	bc
  3922 		ld	bc, 1DEAh
  3922 		ld	bc, 1DEAh
  3923 		jr	p7Dloc_5221
  3923 		jr	p7Dloc_5221
  3924 ; End of function p7Dsub_522B
  3924 ; End of function p7Dsub_522B
  3925 
  3925 
  3926 
  3926 
  3927 ; =============== S U B	R O U T	I N E =======================================
  3927 ; =============== S U B	R O U T	I N E =======================================
  3928 
  3928 
  3929 
  3929 
  3930 Page7D_2B68:				; CODE XREF: p7Dsub_48B5p	p7Dsub_5365+5p ...
  3930 Page7D_2B68:
  3931 		call	NZIf83Plus
  3931 		call	NZIf83Plus
  3932 		jr	nz, p7Dsub_521D
  3932 		jr	nz, p7Dsub_521D
  3933 ; End of function Page7D_2B68
  3933 ; End of function Page7D_2B68
  3934 
  3934 
  3935 
  3935 
  3936 ; =============== S U B	R O U T	I N E =======================================
  3936 ; =============== S U B	R O U T	I N E =======================================
  3937 
  3937 
  3938 
  3938 
  3939 p7Dsub_5236:				; CODE XREF: p7Dsub_4230p	p7Dsub_4261p ...
  3939 p7Dsub_5236:
  3940 		push	bc
  3940 		push	bc
  3941 		ld	bc, 1E50h
  3941 		ld	bc, 1E50h
  3942 		jr	p7Dloc_5221
  3942 		jr	p7Dloc_5221
  3943 ; End of function p7Dsub_5236
  3943 ; End of function p7Dsub_5236
  3944 
  3944 
  3945 
  3945 
  3946 ; =============== S U B	R O U T	I N E =======================================
  3946 ; =============== S U B	R O U T	I N E =======================================
  3947 
  3947 
  3948 
  3948 
  3949 p7Dsub_523C:				; CODE XREF: p7Dsub_42A2p
  3949 p7Dsub_523C:
  3950 		push	bc
  3950 		push	bc
  3951 		ld	bc, 1FE0h
  3951 		ld	bc, 1FE0h
  3952 		jr	p7Dloc_5221
  3952 		jr	p7Dloc_5221
  3953 ; End of function p7Dsub_523C
  3953 ; End of function p7Dsub_523C
  3954 
  3954 
  3955 
  3955 
  3956 ; =============== S U B	R O U T	I N E =======================================
  3956 ; =============== S U B	R O U T	I N E =======================================
  3957 
  3957 
  3958 
  3958 
  3959 FindSwapSector:				; CODE XREF: p7Dsub_42AE+3p p7Dsub_42D3p ...
  3959 FindSwapSector:
  3960 		push	hl
  3960 		push	hl
  3961 		push	bc
  3961 		push	bc
  3962 		push	ix
  3962 		push	ix
  3963 		ld	a, (OP1)
  3963 		ld	a, (OP1)
  3964 		push	af
  3964 		push	af
  3965 		ld	a, 8
  3965 		ld	a, 8
  3966 
  3966 
  3967 p7Dloc_524C:				; CODE XREF: FindSwapSector+1Bj
  3967 p7Dloc_524C:
  3968 		push	af
  3968 		push	af
  3969 		ld	hl, 4000h
  3969 		ld	hl, 4000h
  3970 		rst	28h
  3970 		rst	28h
  3971 ; ---------------------------------------------------------------------------
  3971 ; ---------------------------------------------------------------------------
  3972 		.dw 8051h
  3972 		.dw 8051h
  3977 		add	a, 4
  3977 		add	a, 4
  3978 		call	p7Dsub_75E1
  3978 		call	p7Dsub_75E1
  3979 		jr	c, p7Dloc_524C
  3979 		jr	c, p7Dloc_524C
  3980 		ld	a, 8
  3980 		ld	a, 8
  3981 
  3981 
  3982 p7Dloc_5261:				; CODE XREF: FindSwapSector+30j
  3982 p7Dloc_5261:
  3983 		push	af
  3983 		push	af
  3984 		ld	hl, 4000h
  3984 		ld	hl, 4000h
  3985 		rst	28h
  3985 		rst	28h
  3986 ; ---------------------------------------------------------------------------
  3986 ; ---------------------------------------------------------------------------
  3987 		.dw 8051h
  3987 		.dw 8051h
  3994 		jr	c, p7Dloc_5261
  3994 		jr	c, p7Dloc_5261
  3995 		ld	a, 8
  3995 		ld	a, 8
  3996 		jr	p7Dloc_5279
  3996 		jr	p7Dloc_5279
  3997 ; ---------------------------------------------------------------------------
  3997 ; ---------------------------------------------------------------------------
  3998 
  3998 
  3999 p7Dloc_5278:				; CODE XREF: FindSwapSector+28j
  3999 p7Dloc_5278:
  4000 		pop	af
  4000 		pop	af
  4001 
  4001 
  4002 p7Dloc_5279:				; CODE XREF: FindSwapSector+34j
  4002 p7Dloc_5279:
  4003 		jr	p7Dloc_527C
  4003 		jr	p7Dloc_527C
  4004 ; ---------------------------------------------------------------------------
  4004 ; ---------------------------------------------------------------------------
  4005 
  4005 
  4006 p7Dloc_527B:				; CODE XREF: FindSwapSector+13j
  4006 p7Dloc_527B:
  4007 		pop	af
  4007 		pop	af
  4008 
  4008 
  4009 p7Dloc_527C:				; CODE XREF: FindSwapSector:p7Dloc_5279j
  4009 p7Dloc_527C:
  4010 		ld	b, a
  4010 		ld	b, a
  4011 		pop	af
  4011 		pop	af
  4012 		ld	(OP1), a
  4012 		ld	(OP1), a
  4013 		ld	a, b
  4013 		ld	a, b
  4014 		pop	ix
  4014 		pop	ix
  4019 
  4019 
  4020 
  4020 
  4021 ; =============== S U B	R O U T	I N E =======================================
  4021 ; =============== S U B	R O U T	I N E =======================================
  4022 
  4022 
  4023 
  4023 
  4024 Page7D_2C40:				; CODE XREF: p7Dsub_42D3+8p
  4024 Page7D_2C40:
  4025 		push	af
  4025 		push	af
  4026 		push	hl
  4026 		push	hl
  4027 		push	bc
  4027 		push	bc
  4028 		push	de
  4028 		push	de
  4029 		ld	b, 0FEh	; '�'
  4029 		ld	b, 0FEh	; '�'
  4047 		.dw 8066h
  4047 		.dw 8066h
  4048 ; ---------------------------------------------------------------------------
  4048 ; ---------------------------------------------------------------------------
  4049 		jr	nz, locret_52D8
  4049 		jr	nz, locret_52D8
  4050 		ld	a, 7Eh ; '~'
  4050 		ld	a, 7Eh ; '~'
  4051 
  4051 
  4052 p7Dloc_529F:				; CODE XREF: seg001:5BDAp
  4052 p7Dloc_529F:
  4053 		ld	(appSearchPage), a
  4053 		ld	(appSearchPage), a
  4054 		push	hl
  4054 		push	hl
  4055 		push	hl
  4055 		push	hl
  4056 		ld	a, (appSearchPage)
  4056 		ld	a, (appSearchPage)
  4057 		inc	hl
  4057 		inc	hl
  4075 		pop	bc
  4075 		pop	bc
  4076 		call	p7Dsub_4894
  4076 		call	p7Dsub_4894
  4077 		ex	de, hl
  4077 		ex	de, hl
  4078 		pop	hl
  4078 		pop	hl
  4079 
  4079 
  4080 p7Dloc_52C2:				; CODE XREF: seg001:52D6j
  4080 p7Dloc_52C2:
  4081 		push	bc
  4081 		push	bc
  4082 		ld	a, (appSearchPage)
  4082 		ld	a, (appSearchPage)
  4083 		rst	28h
  4083 		rst	28h
  4084 ; ---------------------------------------------------------------------------
  4084 ; ---------------------------------------------------------------------------
  4085 		.dw 8051h
  4085 		.dw 8051h
  4095 		jr	z, locret_52D8
  4095 		jr	z, locret_52D8
  4096 		inc	hl
  4096 		inc	hl
  4097 		jr	p7Dloc_52C2
  4097 		jr	p7Dloc_52C2
  4098 ; ---------------------------------------------------------------------------
  4098 ; ---------------------------------------------------------------------------
  4099 
  4099 
  4100 locret_52D8:				; CODE XREF: seg001:529Bj seg001:52D3j
  4100 locret_52D8:
  4101 		ret
  4101 		ret
  4102 
  4102 
  4103 ; =============== S U B	R O U T	I N E =======================================
  4103 ; =============== S U B	R O U T	I N E =======================================
  4104 
  4104 
  4105 
  4105 
  4106 p7Dsub_52D9:				; CODE XREF: p7Dsub_4A5A+3Ap seg001:630Dp ...
  4106 p7Dsub_52D9:
  4107 		ld	de, 8050h
  4107 		ld	de, 8050h
  4108 		ld	hl, 4000h
  4108 		ld	hl, 4000h
  4109 		push	af
  4109 		push	af
  4110 		or	a
  4110 		or	a
  4111 		rst	28h
  4111 		rst	28h
  4118 		scf
  4118 		scf
  4119 		ccf
  4119 		ccf
  4120 		ret
  4120 		ret
  4121 ; ---------------------------------------------------------------------------
  4121 ; ---------------------------------------------------------------------------
  4122 
  4122 
  4123 p7Dloc_52ED:				; CODE XREF: p7Dsub_52D9+Bj
  4123 p7Dloc_52ED:
  4124 		pop	af
  4124 		pop	af
  4125 		scf
  4125 		scf
  4126 		ret
  4126 		ret
  4127 ; End of function p7Dsub_52D9
  4127 ; End of function p7Dsub_52D9
  4128 
  4128 
  4129 ; ---------------------------------------------------------------------------
  4129 ; ---------------------------------------------------------------------------
  4130 
  4130 
  4131 Page7D_2CA0:				; CODE XREF: seg001:6221p seg001:626Bp
  4131 Page7D_2CA0:
  4132 		ld	de, 8050h
  4132 		ld	de, 8050h
  4133 		push	de
  4133 		push	de
  4134 		jp	p7Dloc_52F7
  4134 		jp	p7Dloc_52F7
  4135 
  4135 
  4136 p7Dloc_52F7:
  4136 p7Dloc_52F7:
  4167 		ld	(Abackup), a
  4167 		ld	(Abackup), a
  4168 		pop	af
  4168 		pop	af
  4169 		jp	po, p7Dloc_532F
  4169 		jp	po, p7Dloc_532F
  4170 		ei
  4170 		ei
  4171 
  4171 
  4172 p7Dloc_532F:				; CODE XREF: seg001:532Bj
  4172 p7Dloc_532F:
  4173 		ld	a, (Abackup)
  4173 		ld	a, (Abackup)
  4174 		call	p7Dsub_6011
  4174 		call	p7Dsub_6011
  4175 		scf
  4175 		scf
  4176 		ccf
  4176 		ccf
  4177 		ret
  4177 		ret
  4178 ; ---------------------------------------------------------------------------
  4178 ; ---------------------------------------------------------------------------
  4179 ; START	OF FUNCTION CHUNK FOR p7Dsub_533B
  4179 ; START	OF FUNCTION CHUNK FOR p7Dsub_533B
  4180 
  4180 
  4181 p7Dloc_5338:				; CODE XREF: seg001:5300j p7Dsub_533B+4j	...
  4181 p7Dloc_5338:
  4182 		pop	af
  4182 		pop	af
  4183 		scf
  4183 		scf
  4184 		ret
  4184 		ret
  4185 ; END OF FUNCTION CHUNK	FOR p7Dsub_533B
  4185 ; END OF FUNCTION CHUNK	FOR p7Dsub_533B
  4186 
  4186 
  4187 ; =============== S U B	R O U T	I N E =======================================
  4187 ; =============== S U B	R O U T	I N E =======================================
  4188 
  4188 
  4189 
  4189 
  4190 p7Dsub_533B:				; CODE XREF: seg001:7764p
  4190 p7Dsub_533B:
  4191 
  4191 
  4192 ; FUNCTION CHUNK AT 5338 SIZE 00000003 BYTES
  4192 
  4193 
  4193 
  4194 		push	af
  4194 		push	af
  4195 		call	p7Dsub_6021
  4195 		call	p7Dsub_6021
  4196 		jr	c, p7Dloc_5338
  4196 		jr	c, p7Dloc_5338
  4197 		ld	hl, 4000h
  4197 		ld	hl, 4000h
  4218 		pop	af
  4218 		pop	af
  4219 		push	af
  4219 		push	af
  4220 		push	hl
  4220 		push	hl
  4221 		call	p7Dloc_4FF9
  4221 		call	p7Dloc_4FF9
  4222 
  4222 
  4223 p7Dloc_5362:				; CODE XREF: p7Dsub_533B+1Ej
  4223 p7Dloc_5362:
  4224 		pop	hl
  4224 		pop	hl
  4225 		pop	af
  4225 		pop	af
  4226 		ret
  4226 		ret
  4227 ; End of function p7Dsub_533B
  4227 ; End of function p7Dsub_533B
  4228 
  4228 
  4229 
  4229 
  4230 ; =============== S U B	R O U T	I N E =======================================
  4230 ; =============== S U B	R O U T	I N E =======================================
  4231 
  4231 
  4232 
  4232 
  4233 p7Dsub_5365:				; CODE XREF: p7Dsub_5E78+13p
  4233 p7Dsub_5365:
  4234 		push	ix
  4234 		push	ix
  4235 		push	hl
  4235 		push	hl
  4236 		push	de
  4236 		push	de
  4237 		push	bc
  4237 		push	bc
  4238 		call	Page7D_2B68
  4238 		call	Page7D_2B68
  4241 
  4241 
  4242 
  4242 
  4243 ; =============== S U B	R O U T	I N E =======================================
  4243 ; =============== S U B	R O U T	I N E =======================================
  4244 
  4244 
  4245 
  4245 
  4246 p7Dsub_536F:				; CODE XREF: p7Dsub_4AC9+41p seg001:4BA8p ...
  4246 p7Dsub_536F:
  4247 		push	ix
  4247 		push	ix
  4248 		push	hl
  4248 		push	hl
  4249 		push	de
  4249 		push	de
  4250 		push	bc
  4250 		push	bc
  4251 		call	p7Dsub_521D
  4251 		call	p7Dsub_521D
  4252 		ld	bc, 0Dh
  4252 		ld	bc, 0Dh
  4253 		add	ix, bc
  4253 		add	ix, bc
  4254 
  4254 
  4255 p7Dloc_537C:				; CODE XREF: p7Dsub_5365+8j
  4255 p7Dloc_537C:
  4256 		push	ix
  4256 		push	ix
  4257 		pop	bc
  4257 		pop	bc
  4258 		sla	c
  4258 		sla	c
  4259 		or	a
  4259 		or	a
  4260 		adc	hl, bc
  4260 		adc	hl, bc
  4269 		jr	z, p7Dloc_5399
  4269 		jr	z, p7Dloc_5399
  4270 		srl	a
  4270 		srl	a
  4271 		jr	p7Dloc_539B
  4271 		jr	p7Dloc_539B
  4272 ; ---------------------------------------------------------------------------
  4272 ; ---------------------------------------------------------------------------
  4273 
  4273 
  4274 p7Dloc_5399:				; CODE XREF: p7Dsub_536F+24j
  4274 p7Dloc_5399:
  4275 		srl	b
  4275 		srl	b
  4276 
  4276 
  4277 p7Dloc_539B:				; CODE XREF: p7Dsub_536F+28j
  4277 p7Dloc_539B:
  4278 		pop	de
  4278 		pop	de
  4279 		ld	c, a
  4279 		ld	c, a
  4280 		push	bc
  4280 		push	bc
  4281 		call	p7Dsub_456D
  4281 		call	p7Dsub_456D
  4282 		pop	bc
  4282 		pop	bc
  4287 		pop	hl
  4287 		pop	hl
  4288 		pop	ix
  4288 		pop	ix
  4289 		ret
  4289 		ret
  4290 ; ---------------------------------------------------------------------------
  4290 ; ---------------------------------------------------------------------------
  4291 
  4291 
  4292 p7Dloc_53AC:				; CODE XREF: p7Dsub_536F+1Bj
  4292 p7Dloc_53AC:
  4293 		pop	de
  4293 		pop	de
  4294 		pop	bc
  4294 		pop	bc
  4295 		pop	de
  4295 		pop	de
  4296 		pop	hl
  4296 		pop	hl
  4297 		pop	ix
  4297 		pop	ix
  4300 
  4300 
  4301 
  4301 
  4302 ; =============== S U B	R O U T	I N E =======================================
  4302 ; =============== S U B	R O U T	I N E =======================================
  4303 
  4303 
  4304 
  4304 
  4305 p7Dsub_53B3:				; CODE XREF: p7Dsub_638B+72p
  4305 p7Dsub_53B3:
  4306 		ld	(Abackup), a
  4306 		ld	(Abackup), a
  4307 		ld	a, i
  4307 		ld	a, i
  4308 		di
  4308 		di
  4309 		push	af
  4309 		push	af
  4310 		ld	a, (Abackup)
  4310 		ld	a, (Abackup)
  4320 		di
  4320 		di
  4321 		call	checkForFlashTrickery
  4321 		call	checkForFlashTrickery
  4322 		pop	af
  4322 		pop	af
  4323 		call	Page7D_2B5C
  4323 		call	Page7D_2B5C
  4324 
  4324 
  4325 p7Dloc_53D1:				; CODE XREF: seg001:5522j
  4325 p7Dloc_53D1:
  4326 		call	p7Dsub_6006
  4326 		call	p7Dsub_6006
  4327 		call	relockFlashBack
  4327 		call	relockFlashBack
  4328 		ld	(Abackup), a
  4328 		ld	(Abackup), a
  4329 		pop	af
  4329 		pop	af
  4330 		jp	po, p7Dloc_53DF
  4330 		jp	po, p7Dloc_53DF
  4331 		ei
  4331 		ei
  4332 
  4332 
  4333 p7Dloc_53DF:				; CODE XREF: p7Dsub_53B3+28j
  4333 p7Dloc_53DF:
  4334 		ld	a, (Abackup)
  4334 		ld	a, (Abackup)
  4335 		jp	p7Dsub_6011
  4335 		jp	p7Dsub_6011
  4336 ; End of function p7Dsub_53B3
  4336 ; End of function p7Dsub_53B3
  4337 
  4337 
  4338 
  4338 
  4339 ; =============== S U B	R O U T	I N E =======================================
  4339 ; =============== S U B	R O U T	I N E =======================================
  4340 
  4340 
  4341 
  4341 
  4342 Page7D_2B5C:				; CODE XREF: p7Dsub_53B3+1Bp p7Dsub_607A+3Fp ...
  4342 Page7D_2B5C:
  4343 		push	de
  4343 		push	de
  4344 		push	hl
  4344 		push	hl
  4345 		push	bc
  4345 		push	bc
  4346 		push	ix
  4346 		push	ix
  4347 		ld	b, a
  4347 		ld	b, a
  4356 		ld	c, a
  4356 		ld	c, a
  4357 		ld	b, 0
  4357 		ld	b, 0
  4358 		jr	p7Dloc_541E
  4358 		jr	p7Dloc_541E
  4359 ; ---------------------------------------------------------------------------
  4359 ; ---------------------------------------------------------------------------
  4360 
  4360 
  4361 p7Dloc_53FA:				; CODE XREF: Page7D_2B5C+9j
  4361 p7Dloc_53FA:
  4362 		ld	hl, OP6
  4362 		ld	hl, OP6
  4363 		ld	(hl), 0
  4363 		ld	(hl), 0
  4364 		ld	a, (appSearchPage)
  4364 		ld	a, (appSearchPage)
  4365 		push	af
  4365 		push	af
  4366 		rst	28h
  4366 		rst	28h
  4374 
  4374 
  4375 
  4375 
  4376 ; =============== S U B	R O U T	I N E =======================================
  4376 ; =============== S U B	R O U T	I N E =======================================
  4377 
  4377 
  4378 
  4378 
  4379 p7Dsub_540C:				; CODE XREF: p7Dsub_4AC9:p7Dloc_4B14p
  4379 p7Dsub_540C:
  4380 		push	de
  4380 		push	de
  4381 		push	hl
  4381 		push	hl
  4382 		push	bc
  4382 		push	bc
  4383 		push	ix
  4383 		push	ix
  4384 
  4384 
  4385 p7Dloc_5411:				; CODE XREF: Page7D_2B5C+25j
  4385 p7Dloc_5411:
  4386 		inc	ix
  4386 		inc	ix
  4387 		push	ix
  4387 		push	ix
  4388 		pop	hl
  4388 		pop	hl
  4389 		call	p7Dsub_7643
  4389 		call	p7Dsub_7643
  4390 		or	a
  4390 		or	a
  4391 		adc	hl, bc
  4391 		adc	hl, bc
  4392 		push	hl
  4392 		push	hl
  4393 		pop	bc
  4393 		pop	bc
  4394 
  4394 
  4395 p7Dloc_541E:				; CODE XREF: Page7D_2B5C+13j
  4395 p7Dloc_541E:
  4396 		push	bc
  4396 		push	bc
  4397 		call	Page7D_2B80
  4397 		call	Page7D_2B80
  4398 		sra	c
  4398 		sra	c
  4399 		sra	c
  4399 		sra	c
  4400 		sra	c
  4400 		sra	c
  4414 		ret
  4414 		ret
  4415 ; End of function p7Dsub_540C
  4415 ; End of function p7Dsub_540C
  4416 
  4416 
  4417 ; ---------------------------------------------------------------------------
  4417 ; ---------------------------------------------------------------------------
  4418 
  4418 
  4419 p7Dloc_543D:				; CODE XREF: seg001:6272p
  4419 p7Dloc_543D:
  4420 		push	af
  4420 		push	af
  4421 		ld	a, 1
  4421 		ld	a, 1
  4422 		nop
  4422 		nop
  4423 		di
  4423 		di
  4424 		nop
  4424 		nop
  4455 		.dw 8054h
  4455 		.dw 8054h
  4456 ; ---------------------------------------------------------------------------
  4456 ; ---------------------------------------------------------------------------
  4457 		ld	a, (OP1)
  4457 		ld	a, (OP1)
  4458 		ld	bc, 0
  4458 		ld	bc, 0
  4459 
  4459 
  4460 p7Dloc_547D:				; CODE XREF: seg001:5484j
  4460 p7Dloc_547D:
  4461 		cp	0
  4461 		cp	0
  4462 		jr	z, p7Dloc_5486
  4462 		jr	z, p7Dloc_5486
  4463 		srl	a
  4463 		srl	a
  4464 		inc	c
  4464 		inc	c
  4465 		jr	p7Dloc_547D
  4465 		jr	p7Dloc_547D
  4466 ; ---------------------------------------------------------------------------
  4466 ; ---------------------------------------------------------------------------
  4467 
  4467 
  4468 p7Dloc_5486:				; CODE XREF: seg001:547Fj
  4468 p7Dloc_5486:
  4469 		ld	a, (OP1+1)
  4469 		ld	a, (OP1+1)
  4470 
  4470 
  4471 p7Dloc_5489:				; CODE XREF: seg001:5490j
  4471 p7Dloc_5489:
  4472 		cp	0
  4472 		cp	0
  4473 		jr	z, p7Dloc_5492
  4473 		jr	z, p7Dloc_5492
  4474 		srl	a
  4474 		srl	a
  4475 		inc	c
  4475 		inc	c
  4476 		jr	p7Dloc_5489
  4476 		jr	p7Dloc_5489
  4477 ; ---------------------------------------------------------------------------
  4477 ; ---------------------------------------------------------------------------
  4478 
  4478 
  4479 p7Dloc_5492:				; CODE XREF: seg001:548Bj
  4479 p7Dloc_5492:
  4480 		ld	a, c
  4480 		ld	a, c
  4481 		ld	(OP1), a
  4481 		ld	(OP1), a
  4482 		ld	a, 0
  4482 		ld	a, 0
  4483 		ld	(OP1+1), a
  4483 		ld	(OP1+1), a
  4484 		bit	7, a
  4484 		bit	7, a
  4485 
  4485 
  4486 p7Dloc_549D:				; CODE XREF: seg001:5459j
  4486 p7Dloc_549D:
  4487 		jp	relockFlashBack
  4487 		jp	relockFlashBack
  4488 ; ---------------------------------------------------------------------------
  4488 ; ---------------------------------------------------------------------------
  4489 
  4489 
  4490 p7Dloc_54A0:				; CODE XREF: seg001:621Ap seg001:6248p
  4490 p7Dloc_54A0:
  4491 		ld	b, a
  4491 		ld	b, a
  4492 		ld	de, 8050h
  4492 		ld	de, 8050h
  4493 		ld	hl, 4000h
  4493 		ld	hl, 4000h
  4494 		or	a
  4494 		or	a
  4495 		rst	28h
  4495 		rst	28h
  4511 		.dw 8054h
  4511 		.dw 8054h
  4512 ; ---------------------------------------------------------------------------
  4512 ; ---------------------------------------------------------------------------
  4513 		ld	a, 0
  4513 		ld	a, 0
  4514 		bit	7, a
  4514 		bit	7, a
  4515 
  4515 
  4516 locret_54BE:				; CODE XREF: seg001:54ABj
  4516 locret_54BE:
  4517 		ret
  4517 		ret
  4518 ; ---------------------------------------------------------------------------
  4518 ; ---------------------------------------------------------------------------
  4519 		push	hl
  4519 		push	hl
  4520 		ld	de, 8020h
  4520 		ld	de, 8020h
  4521 		ld	hl, 4000h
  4521 		ld	hl, 4000h
  4583 		ld	b, c
  4583 		ld	b, c
  4584 		push	bc
  4584 		push	bc
  4585 		ld	a, 7Eh ; '~'
  4585 		ld	a, 7Eh ; '~'
  4586 		call	p7Dsub_761F
  4586 		call	p7Dsub_761F
  4587 
  4587 
  4588 p7Dloc_551F:				; CODE XREF: seg001:5500j seg001:5508j
  4588 p7Dloc_551F:
  4589 		pop	bc
  4589 		pop	bc
  4590 
  4590 
  4591 p7Dloc_5520:				; CODE XREF: seg001:5513j
  4591 p7Dloc_5520:
  4592 		pop	de
  4592 		pop	de
  4593 		pop	hl
  4593 		pop	hl
  4594 		jp	p7Dloc_53D1
  4594 		jp	p7Dloc_53D1
  4595 
  4595 
  4596 ; =============== S U B	R O U T	I N E =======================================
  4596 ; =============== S U B	R O U T	I N E =======================================
  4597 
  4597 
  4598 
  4598 
  4599 p7Dsub_5525:				; CODE XREF: p7Dsub_43F6+1p seg001:5703p	...
  4599 p7Dsub_5525:
  4600 		push	af
  4600 		push	af
  4601 		ld	hl, 4000h
  4601 		ld	hl, 4000h
  4602 		inc	hl
  4602 		inc	hl
  4603 		rst	28h
  4603 		rst	28h
  4604 ; ---------------------------------------------------------------------------
  4604 ; ---------------------------------------------------------------------------
  4645 		push	af
  4645 		push	af
  4646 		ld	hl, (unk_83A1)
  4646 		ld	hl, (unk_83A1)
  4647 		call	p7Dsub_57C5
  4647 		call	p7Dsub_57C5
  4648 		ld	b, c
  4648 		ld	b, c
  4649 
  4649 
  4650 p7Dloc_5564:				; CODE XREF: p7Dsub_5525+47j
  4650 p7Dloc_5564:
  4651 		push	bc
  4651 		push	bc
  4652 		ld	bc, 4000h
  4652 		ld	bc, 4000h
  4653 		or	a
  4653 		or	a
  4654 		sbc	hl, bc
  4654 		sbc	hl, bc
  4655 		pop	bc
  4655 		pop	bc
  4656 		djnz	p7Dloc_5564
  4656 		djnz	p7Dloc_5564
  4657 		call	p7Dsub_57C5
  4657 		call	p7Dsub_57C5
  4658 		ld	(unk_83A1), hl
  4658 		ld	(unk_83A1), hl
  4659 
  4659 
  4660 p7Dloc_5574:				; CODE XREF: p7Dsub_5525+32j
  4660 p7Dloc_5574:
  4661 		ld	hl, (unk_83A1)
  4661 		ld	hl, (unk_83A1)
  4662 		call	p7Dsub_57C5
  4662 		call	p7Dsub_57C5
  4663 		push	hl
  4663 		push	hl
  4664 		pop	bc
  4664 		pop	bc
  4665 		ld	hl, 4000h
  4665 		ld	hl, 4000h
  4669 		pop	bc
  4669 		pop	bc
  4670 		or	a
  4670 		or	a
  4671 		adc	hl, bc
  4671 		adc	hl, bc
  4672 		push	af
  4672 		push	af
  4673 
  4673 
  4674 p7Dloc_5588:				; CODE XREF: p7Dsub_5525+81j
  4674 p7Dloc_5588:
  4675 		rst	28h
  4675 		rst	28h
  4676 ; ---------------------------------------------------------------------------
  4676 ; ---------------------------------------------------------------------------
  4677 		.dw 8051h
  4677 		.dw 8051h
  4678 ; ---------------------------------------------------------------------------
  4678 ; ---------------------------------------------------------------------------
  4679 		cp	2
  4679 		cp	2
  4700 		or	a
  4700 		or	a
  4701 		adc	hl, bc
  4701 		adc	hl, bc
  4702 		jr	p7Dloc_5588
  4702 		jr	p7Dloc_5588
  4703 ; ---------------------------------------------------------------------------
  4703 ; ---------------------------------------------------------------------------
  4704 
  4704 
  4705 p7Dloc_55A8:				; CODE XREF: p7Dsub_5525+75j
  4705 p7Dloc_55A8:
  4706 		pop	af
  4706 		pop	af
  4707 		push	af
  4707 		push	af
  4708 		rst	28h
  4708 		rst	28h
  4709 ; ---------------------------------------------------------------------------
  4709 ; ---------------------------------------------------------------------------
  4710 		.dw 805Ah
  4710 		.dw 805Ah
  4711 ; ---------------------------------------------------------------------------
  4711 ; ---------------------------------------------------------------------------
  4712 		dec	hl
  4712 		dec	hl
  4713 		inc	bc
  4713 		inc	bc
  4714 		ld	de, tempSwapArea
  4714 		ld	de, tempSwapArea
  4715 
  4715 
  4716 p7Dloc_55B2:				; CODE XREF: p7Dsub_5525+98j
  4716 p7Dloc_55B2:
  4717 		pop	af
  4717 		pop	af
  4718 		push	af
  4718 		push	af
  4719 		rst	28h
  4719 		rst	28h
  4720 ; ---------------------------------------------------------------------------
  4720 ; ---------------------------------------------------------------------------
  4721 		.dw 8051h
  4721 		.dw 8051h
  4734 		bit	7, a
  4734 		bit	7, a
  4735 		ld	a, b
  4735 		ld	a, b
  4736 		ret
  4736 		ret
  4737 ; ---------------------------------------------------------------------------
  4737 ; ---------------------------------------------------------------------------
  4738 
  4738 
  4739 p7Dloc_55C8:				; CODE XREF: p7Dsub_5525+Bj p7Dsub_5525+68j
  4739 p7Dloc_55C8:
  4740 		pop	af
  4740 		pop	af
  4741 		ld	a, 0FFh
  4741 		ld	a, 0FFh
  4742 		bit	7, a
  4742 		bit	7, a
  4743 		ret
  4743 		ret
  4744 ; End of function p7Dsub_5525
  4744 ; End of function p7Dsub_5525
  4745 
  4745 
  4746 
  4746 
  4747 ; =============== S U B	R O U T	I N E =======================================
  4747 ; =============== S U B	R O U T	I N E =======================================
  4748 
  4748 
  4749 
  4749 
  4750 p7Dsub_55CE:				; CODE XREF: seg001:4383p
  4750 p7Dsub_55CE:
  4751 		inc	hl
  4751 		inc	hl
  4752 		push	af
  4752 		push	af
  4753 		rst	28h
  4753 		rst	28h
  4754 ; ---------------------------------------------------------------------------
  4754 ; ---------------------------------------------------------------------------
  4755 		.dw 805Ah
  4755 		.dw 805Ah
  4756 ; ---------------------------------------------------------------------------
  4756 ; ---------------------------------------------------------------------------
  4757 		or	a
  4757 		or	a
  4758 		adc	hl, bc
  4758 		adc	hl, bc
  4759 
  4759 
  4760 p7Dloc_55D6:				; CODE XREF: p7Dsub_55CE+25j
  4760 p7Dloc_55D6:
  4761 		pop	af
  4761 		pop	af
  4762 		push	af
  4762 		push	af
  4763 		rst	28h
  4763 		rst	28h
  4764 ; ---------------------------------------------------------------------------
  4764 ; ---------------------------------------------------------------------------
  4765 		.dw 8051h
  4765 		.dw 8051h
  4785 		or	a
  4785 		or	a
  4786 		adc	hl, bc
  4786 		adc	hl, bc
  4787 		jr	p7Dloc_55D6
  4787 		jr	p7Dloc_55D6
  4788 ; ---------------------------------------------------------------------------
  4788 ; ---------------------------------------------------------------------------
  4789 
  4789 
  4790 p7Dloc_55F5:				; CODE XREF: p7Dsub_55CE+1Bj
  4790 p7Dloc_55F5:
  4791 		pop	af
  4791 		pop	af
  4792 		rst	28h
  4792 		rst	28h
  4793 ; ---------------------------------------------------------------------------
  4793 ; ---------------------------------------------------------------------------
  4794 		.dw 805Ah
  4794 		.dw 805Ah
  4795 ; ---------------------------------------------------------------------------
  4795 ; ---------------------------------------------------------------------------
  4805 		ld	a, 0
  4805 		ld	a, 0
  4806 		bit	7, a
  4806 		bit	7, a
  4807 		ret
  4807 		ret
  4808 ; ---------------------------------------------------------------------------
  4808 ; ---------------------------------------------------------------------------
  4809 
  4809 
  4810 p7Dloc_5609:				; CODE XREF: p7Dsub_55CE+Fj
  4810 p7Dloc_5609:
  4811 		pop	af
  4811 		pop	af
  4812 		ret
  4812 		ret
  4813 ; End of function p7Dsub_55CE
  4813 ; End of function p7Dsub_55CE
  4814 
  4814 
  4815 ; ---------------------------------------------------------------------------
  4815 ; ---------------------------------------------------------------------------
  4816 
  4816 
  4817 p7Dloc_560B:				; CODE XREF: seg001:p7Dloc_5650p
  4817 p7Dloc_560B:
  4818 		; seg001:5661p
  4818 
  4819 		push	de
  4819 		push	de
  4820 		push	hl
  4820 		push	hl
  4821 		push	bc
  4821 		push	bc
  4822 		rst	28h
  4822 		rst	28h
  4823 ; ---------------------------------------------------------------------------
  4823 ; ---------------------------------------------------------------------------
  4855 		.dw 8054h
  4855 		.dw 8054h
  4856 ; ---------------------------------------------------------------------------
  4856 ; ---------------------------------------------------------------------------
  4857 		ld	a, 0
  4857 		ld	a, 0
  4858 		bit	7, a
  4858 		bit	7, a
  4859 
  4859 
  4860 p7Dloc_5640:				; CODE XREF: seg001:5611j seg001:562Fj
  4860 p7Dloc_5640:
  4861 		pop	bc
  4861 		pop	bc
  4862 		pop	hl
  4862 		pop	hl
  4863 		pop	de
  4863 		pop	de
  4864 		jp	relockFlashBack
  4864 		jp	relockFlashBack
  4865 ; ---------------------------------------------------------------------------
  4865 ; ---------------------------------------------------------------------------
  4869 		jr	nc, p7Dloc_5650
  4869 		jr	nc, p7Dloc_5650
  4870 		call	Page0Call_23E3
  4870 		call	Page0Call_23E3
  4871 		jr	p7Dloc_565A
  4871 		jr	p7Dloc_565A
  4872 ; ---------------------------------------------------------------------------
  4872 ; ---------------------------------------------------------------------------
  4873 
  4873 
  4874 p7Dloc_5650:				; CODE XREF: seg001:5649j
  4874 p7Dloc_5650:
  4875 		call	p7Dloc_560B
  4875 		call	p7Dloc_560B
  4876 		jr	nz, p7Dloc_5695
  4876 		jr	nz, p7Dloc_5695
  4877 		call	Page7D_2C34
  4877 		call	Page7D_2C34
  4878 		jr	nz, p7Dloc_5695
  4878 		jr	nz, p7Dloc_5695
  4879 
  4879 
  4880 p7Dloc_565A:				; CODE XREF: seg001:564Ej
  4880 p7Dloc_565A:
  4881 		ld	a, 1
  4881 		ld	a, 1
  4882 		call	Page0Call_38EB
  4882 		call	Page0Call_38EB
  4883 		push	de
  4883 		push	de
  4884 		push	hl
  4884 		push	hl
  4885 		call	p7Dloc_560B
  4885 		call	p7Dloc_560B
  4902 		ld	a, 0
  4902 		ld	a, 0
  4903 		bit	7, a
  4903 		bit	7, a
  4904 		ret
  4904 		ret
  4905 ; ---------------------------------------------------------------------------
  4905 ; ---------------------------------------------------------------------------
  4906 
  4906 
  4907 p7Dloc_5689:				; CODE XREF: seg001:5664j
  4907 p7Dloc_5689:
  4908 		pop	hl
  4908 		pop	hl
  4909 		pop	hl
  4909 		pop	hl
  4910 		push	bc
  4910 		push	bc
  4911 		push	de
  4911 		push	de
  4912 		push	hl
  4912 		push	hl
  4918 		pop	de
  4918 		pop	de
  4919 		pop	bc
  4919 		pop	bc
  4920 		ret
  4920 		ret
  4921 ; ---------------------------------------------------------------------------
  4921 ; ---------------------------------------------------------------------------
  4922 
  4922 
  4923 p7Dloc_5695:				; CODE XREF: seg001:5653j seg001:5658j
  4923 p7Dloc_5695:
  4924 		push	bc
  4924 		push	bc
  4925 		push	de
  4925 		push	de
  4926 		push	hl
  4926 		push	hl
  4927 		rst	28h
  4927 		rst	28h
  4928 ; ---------------------------------------------------------------------------
  4928 ; ---------------------------------------------------------------------------
  4935 		ret
  4935 		ret
  4936 
  4936 
  4937 ; =============== S U B	R O U T	I N E =======================================
  4937 ; =============== S U B	R O U T	I N E =======================================
  4938 
  4938 
  4939 
  4939 
  4940 Page7D_2C34:				; CODE XREF: seg001:5655p
  4940 Page7D_2C34:
  4941 		push	bc
  4941 		push	bc
  4942 		push	hl
  4942 		push	hl
  4943 		push	de
  4943 		push	de
  4944 		call	Page0Call_23DE
  4944 		call	Page0Call_23DE
  4945 		ex	de, hl
  4945 		ex	de, hl
  4951 		ld	a, b
  4951 		ld	a, b
  4952 		or	c
  4952 		or	c
  4953 		jr	z, p7Dloc_56D6
  4953 		jr	z, p7Dloc_56D6
  4954 		ld	hl, 1
  4954 		ld	hl, 1
  4955 
  4955 
  4956 p7Dloc_56B3:				; CODE XREF: Page7D_2C34+34j
  4956 p7Dloc_56B3:
  4957 		push	de
  4957 		push	de
  4958 		push	hl
  4958 		push	hl
  4959 		push	bc
  4959 		push	bc
  4960 		call	Page0Call_3B07
  4960 		call	Page0Call_3B07
  4961 		ld	de, OP4
  4961 		ld	de, OP4
  4962 		ld	hl, OP2M
  4962 		ld	hl, OP2M
  4963 		ld	b, 7
  4963 		ld	b, 7
  4964 
  4964 
  4965 p7Dloc_56C1:				; CODE XREF: Page7D_2C34+27j
  4965 p7Dloc_56C1:
  4966 		ld	a, (de)
  4966 		ld	a, (de)
  4967 		cp	(hl)
  4967 		cp	(hl)
  4968 		jr	nz, p7Dloc_56CB
  4968 		jr	nz, p7Dloc_56CB
  4969 		inc	de
  4969 		inc	de
  4970 		inc	hl
  4970 		inc	hl
  4971 		djnz	p7Dloc_56C1
  4971 		djnz	p7Dloc_56C1
  4972 		jr	p7Dloc_56DA
  4972 		jr	p7Dloc_56DA
  4973 ; ---------------------------------------------------------------------------
  4973 ; ---------------------------------------------------------------------------
  4974 
  4974 
  4975 p7Dloc_56CB:				; CODE XREF: Page7D_2C34+23j
  4975 p7Dloc_56CB:
  4976 		pop	bc
  4976 		pop	bc
  4977 		pop	hl
  4977 		pop	hl
  4978 		pop	de
  4978 		pop	de
  4979 		inc	hl
  4979 		inc	hl
  4980 		dec	bc
  4980 		dec	bc
  4982 		or	b
  4982 		or	b
  4983 		jr	z, p7Dloc_56D6
  4983 		jr	z, p7Dloc_56D6
  4984 		jr	p7Dloc_56B3
  4984 		jr	p7Dloc_56B3
  4985 ; ---------------------------------------------------------------------------
  4985 ; ---------------------------------------------------------------------------
  4986 
  4986 
  4987 p7Dloc_56D6:				; CODE XREF: Page7D_2C34+Ej
  4987 p7Dloc_56D6:
  4988 		; Page7D_2C34+32j
  4988 		; Page7D_2C34+32j
  4989 		pop	de
  4989 		pop	de
  4990 		pop	hl
  4990 		pop	hl
  4991 		pop	bc
  4991 		pop	bc
  4992 		ret
  4992 		ret
  4993 ; ---------------------------------------------------------------------------
  4993 ; ---------------------------------------------------------------------------
  4994 
  4994 
  4995 p7Dloc_56DA:				; CODE XREF: Page7D_2C34+29j
  4995 p7Dloc_56DA:
  4996 		ld	a, 0FFh
  4996 		ld	a, 0FFh
  4997 		bit	7, a
  4997 		bit	7, a
  4998 		pop	bc
  4998 		pop	bc
  4999 		pop	hl
  4999 		pop	hl
  5000 		pop	hl
  5000 		pop	hl
  5061 		pop	bc
  5061 		pop	bc
  5062 		inc	bc
  5062 		inc	bc
  5063 		inc	bc
  5063 		inc	bc
  5064 		call	p7Dsub_573C
  5064 		call	p7Dsub_573C
  5065 
  5065 
  5066 p7Dloc_5737:				; CODE XREF: seg001:56F3j
  5066 p7Dloc_5737:
  5067 		pop	af
  5067 		pop	af
  5068 		pop	bc
  5068 		pop	bc
  5069 		pop	de
  5069 		pop	de
  5070 		pop	hl
  5070 		pop	hl
  5071 		ret
  5071 		ret
  5072 
  5072 
  5073 ; =============== S U B	R O U T	I N E =======================================
  5073 ; =============== S U B	R O U T	I N E =======================================
  5074 
  5074 
  5075 
  5075 
  5076 p7Dsub_573C:				; CODE XREF: seg001:572Ep seg001:5734p
  5076 p7Dsub_573C:
  5077 		ld	hl, (unk_83A1)
  5077 		ld	hl, (unk_83A1)
  5078 		call	p7Dsub_57C5
  5078 		call	p7Dsub_57C5
  5079 		or	a
  5079 		or	a
  5080 		adc	hl, bc
  5080 		adc	hl, bc
  5081 		call	p7Dsub_57C5
  5081 		call	p7Dsub_57C5
  5084 		ld	hl, (unk_839F)
  5084 		ld	hl, (unk_839F)
  5085 		inc	h
  5085 		inc	h
  5086 		jr	nz, p7Dloc_5753
  5086 		jr	nz, p7Dloc_5753
  5087 		inc	l
  5087 		inc	l
  5088 
  5088 
  5089 p7Dloc_5753:				; CODE XREF: p7Dsub_573C+14j
  5089 p7Dloc_5753:
  5090 		ld	(unk_839F), hl
  5090 		ld	(unk_839F), hl
  5091 		ret
  5091 		ret
  5092 ; End of function p7Dsub_573C
  5092 ; End of function p7Dsub_573C
  5093 
  5093 
  5094 
  5094 
  5095 ; =============== S U B	R O U T	I N E =======================================
  5095 ; =============== S U B	R O U T	I N E =======================================
  5096 
  5096 
  5097 
  5097 
  5098 p7Dsub_5757:				; CODE XREF: p7Dsub_7240+230p
  5098 p7Dsub_5757:
  5099 		push	hl
  5099 		push	hl
  5100 		push	de
  5100 		push	de
  5101 		push	bc
  5101 		push	bc
  5102 		push	af
  5102 		push	af
  5103 		inc	hl
  5103 		inc	hl
  5104 		ld	a, (hl)
  5104 		ld	a, (hl)
  5105 		call	p7Dsub_75FD
  5105 		call	p7Dsub_75FD
  5106 		jr	nz, p7Dloc_5768
  5106 		jr	nz, p7Dloc_5768
  5107 
  5107 
  5108 p7Dloc_5762:				; CODE XREF: p7Dsub_5757+Fj
  5108 p7Dloc_5762:
  5109 		inc	hl
  5109 		inc	hl
  5110 		ld	a, (hl)
  5110 		ld	a, (hl)
  5111 		ld	(de), a
  5111 		ld	(de), a
  5112 		inc	de
  5112 		inc	de
  5113 		djnz	p7Dloc_5762
  5113 		djnz	p7Dloc_5762
  5114 
  5114 
  5115 p7Dloc_5768:				; CODE XREF: p7Dsub_5757+9j
  5115 p7Dloc_5768:
  5116 		pop	af
  5116 		pop	af
  5117 		pop	bc
  5117 		pop	bc
  5118 		pop	de
  5118 		pop	de
  5119 		pop	hl
  5119 		pop	hl
  5120 		ret
  5120 		ret
  5122 
  5122 
  5123 
  5123 
  5124 ; =============== S U B	R O U T	I N E =======================================
  5124 ; =============== S U B	R O U T	I N E =======================================
  5125 
  5125 
  5126 
  5126 
  5127 p7Dsub_576D:				; CODE XREF: seg001:4018p seg001:632Fp
  5127 p7Dsub_576D:
  5128 		push	af
  5128 		push	af
  5129 		ld	a, 1
  5129 		ld	a, 1
  5130 		call	Page7D_2B86
  5130 		call	Page7D_2B86
  5131 		ld	b, a
  5131 		ld	b, a
  5132 		call	p7Dsub_75EC
  5132 		call	p7Dsub_75EC
  5148 
  5148 
  5149 
  5149 
  5150 ; =============== S U B	R O U T	I N E =======================================
  5150 ; =============== S U B	R O U T	I N E =======================================
  5151 
  5151 
  5152 
  5152 
  5153 p7Dsub_578D:				; CODE XREF: seg001:58DFp p7Dsub_7CBB+7p
  5153 p7Dsub_578D:
  5154 		push	af
  5154 		push	af
  5155 		ld	a, (unk_83A4)
  5155 		ld	a, (unk_83A4)
  5156 		or	a
  5156 		or	a
  5157 		jr	z, p7Dloc_57C3
  5157 		jr	z, p7Dloc_57C3
  5158 		ld	hl, (unk_83A1)
  5158 		ld	hl, (unk_83A1)
  5168 		dec	hl
  5168 		dec	hl
  5169 		call	p7Dsub_57C5
  5169 		call	p7Dsub_57C5
  5170 		ld	(unk_839F), hl
  5170 		ld	(unk_839F), hl
  5171 		ld	hl, 0
  5171 		ld	hl, 0
  5172 
  5172 
  5173 p7Dloc_57B2:				; CODE XREF: p7Dsub_578D+Fj
  5173 p7Dloc_57B2:
  5174 		dec	hl
  5174 		dec	hl
  5175 		call	p7Dsub_57C5
  5175 		call	p7Dsub_57C5
  5176 		ld	(unk_83A1), hl
  5176 		ld	(unk_83A1), hl
  5177 		ld	hl, (unk_839F)
  5177 		ld	hl, (unk_839F)
  5178 		ld	a, l
  5178 		ld	a, l
  5179 		or	h
  5179 		or	h
  5180 		jr	nz, p7Dloc_57C3
  5180 		jr	nz, p7Dloc_57C3
  5181 		ld	hl, (unk_83A1)
  5181 		ld	hl, (unk_83A1)
  5182 
  5182 
  5183 p7Dloc_57C3:				; CODE XREF: p7Dsub_578D+5j p7Dsub_578D+16j	...
  5183 p7Dloc_57C3:
  5184 		pop	af
  5184 		pop	af
  5185 		ret
  5185 		ret
  5186 ; End of function p7Dsub_578D
  5186 ; End of function p7Dsub_578D
  5187 
  5187 
  5188 
  5188 
  5189 ; =============== S U B	R O U T	I N E =======================================
  5189 ; =============== S U B	R O U T	I N E =======================================
  5190 
  5190 
  5191 
  5191 
  5192 p7Dsub_57C5:				; CODE XREF: p7Dsub_5525+3Bp p7Dsub_5525+49p ...
  5192 p7Dsub_57C5:
  5193 		push	af
  5193 		push	af
  5194 		ld	a, l
  5194 		ld	a, l
  5195 		ld	l, h
  5195 		ld	l, h
  5196 		ld	h, a
  5196 		ld	h, a
  5197 		pop	af
  5197 		pop	af
  5257 		rst	28h
  5257 		rst	28h
  5258 ; ---------------------------------------------------------------------------
  5258 ; ---------------------------------------------------------------------------
  5259 		.dw 805Ah
  5259 		.dw 805Ah
  5260 ; ---------------------------------------------------------------------------
  5260 ; ---------------------------------------------------------------------------
  5261 
  5261 
  5262 p7Dloc_5823:				; CODE XREF: seg001:5830j
  5262 p7Dloc_5823:
  5263 		ld	b, 0
  5263 		ld	b, 0
  5264 		push	bc
  5264 		push	bc
  5265 		call	p7Dsub_597A
  5265 		call	p7Dsub_597A
  5266 		ex	de, hl
  5266 		ex	de, hl
  5267 		rst	28h
  5267 		rst	28h
  5271 		ex	de, hl
  5271 		ex	de, hl
  5272 		pop	bc
  5272 		pop	bc
  5273 		dec	c
  5273 		dec	c
  5274 		jr	nz, p7Dloc_5823
  5274 		jr	nz, p7Dloc_5823
  5275 
  5275 
  5276 p7Dloc_5832:				; CODE XREF: seg001:5815j
  5276 p7Dloc_5832:
  5277 		call	p7Dsub_5980
  5277 		call	p7Dsub_5980
  5278 		jp	z, p7Dloc_5972
  5278 		jp	z, p7Dloc_5972
  5279 		ld	hl, 4000h
  5279 		ld	hl, 4000h
  5280 		ld	a, 7Ah ; 'z'
  5280 		ld	a, 7Ah ; 'z'
  5281 		ld	de, 8070h
  5281 		ld	de, 8070h
  5317 		or	a
  5317 		or	a
  5318 		adc	hl, bc
  5318 		adc	hl, bc
  5319 		ld	(appInfo), hl
  5319 		ld	(appInfo), hl
  5320 		call	p7Dsub_75F5
  5320 		call	p7Dsub_75F5
  5321 
  5321 
  5322 p7Dloc_5877:				; CODE XREF: seg001:58ABj
  5322 p7Dloc_5877:
  5323 		call	ZeroOP1
  5323 		call	ZeroOP1
  5324 		call	p7Dsub_638B
  5324 		call	p7Dsub_638B
  5325 		call	OP2ToOP1
  5325 		call	OP2ToOP1
  5326 		jr	c, p7Dloc_58AD
  5326 		jr	c, p7Dloc_58AD
  5327 		call	p7Dloc_61A4
  5327 		call	p7Dloc_61A4
  5347 		ex	de, hl
  5347 		ex	de, hl
  5348 		push	de
  5348 		push	de
  5349 		jr	p7Dloc_5877
  5349 		jr	p7Dloc_5877
  5350 ; ---------------------------------------------------------------------------
  5350 ; ---------------------------------------------------------------------------
  5351 
  5351 
  5352 p7Dloc_58AD:				; CODE XREF: seg001:5880j
  5352 p7Dloc_58AD:
  5353 		pop	de
  5353 		pop	de
  5354 		rst	28h
  5354 		rst	28h
  5355 ; ---------------------------------------------------------------------------
  5355 ; ---------------------------------------------------------------------------
  5356 		.dw 808Dh
  5356 		.dw 808Dh
  5357 ; ---------------------------------------------------------------------------
  5357 ; ---------------------------------------------------------------------------
  5364 		ld	(unk_83A1), hl
  5364 		ld	(unk_83A1), hl
  5365 		pop	hl
  5365 		pop	hl
  5366 		ld	a, 1
  5366 		ld	a, 1
  5367 		ld	(unk_83A4), a
  5367 		ld	(unk_83A4), a
  5368 
  5368 
  5369 p7Dloc_58CA:				; CODE XREF: seg001:58E6j
  5369 p7Dloc_58CA:
  5370 		ld	a, 1
  5370 		ld	a, 1
  5371 		ld	(unk_83A3), a
  5371 		ld	(unk_83A3), a
  5372 		call	p7Dsub_597A
  5372 		call	p7Dsub_597A
  5373 		ld	de, ramStart
  5373 		ld	de, ramStart
  5374 		ld	bc, 1
  5374 		ld	bc, 1
  5468 		pop	de
  5468 		pop	de
  5469 		pop	bc
  5469 		pop	bc
  5470 		ret
  5470 		ret
  5471 ; ---------------------------------------------------------------------------
  5471 ; ---------------------------------------------------------------------------
  5472 
  5472 
  5473 p7Dloc_5972:				; CODE XREF: seg001:57EDj seg001:57FBj ...
  5473 p7Dloc_5972:
  5474 		pop	hl
  5474 		pop	hl
  5475 
  5475 
  5476 p7Dloc_5973:				; CODE XREF: seg001:57D0j
  5476 p7Dloc_5973:
  5477 		pop	de
  5477 		pop	de
  5478 		pop	bc
  5478 		pop	bc
  5479 		ld	a, 0FFh
  5479 		ld	a, 0FFh
  5480 		bit	7, a
  5480 		bit	7, a
  5481 		ret
  5481 		ret
  5482 
  5482 
  5483 ; =============== S U B	R O U T	I N E =======================================
  5483 ; =============== S U B	R O U T	I N E =======================================
  5484 
  5484 
  5485 
  5485 
  5486 p7Dsub_597A:				; CODE XREF: seg001:5801p seg001:581Dp ...
  5486 p7Dsub_597A:
  5487 		call	FindSwapSector
  5487 		call	FindSwapSector
  5488 		inc	a
  5488 		inc	a
  5489 		inc	a
  5489 		inc	a
  5490 		ret
  5490 		ret
  5491 ; End of function p7Dsub_597A
  5491 ; End of function p7Dsub_597A
  5492 
  5492 
  5493 
  5493 
  5494 ; =============== S U B	R O U T	I N E =======================================
  5494 ; =============== S U B	R O U T	I N E =======================================
  5495 
  5495 
  5496 
  5496 
  5497 p7Dsub_5980:				; CODE XREF: seg001:57CDp seg001:57F8p ...
  5497 p7Dsub_5980:
  5498 		set	2, (iy+16h)
  5498 		set	2, (iy+16h)
  5499 		in	a, (2)
  5499 		in	a, (2)
  5500 		bit	0, a
  5500 		bit	0, a
  5501 		ret	nz
  5501 		ret	nz
  5502 		res	2, (iy+16h)
  5502 		res	2, (iy+16h)
  5505 
  5505 
  5506 
  5506 
  5507 ; =============== S U B	R O U T	I N E =======================================
  5507 ; =============== S U B	R O U T	I N E =======================================
  5508 
  5508 
  5509 
  5509 
  5510 p7Dsub_598E:				; CODE XREF: seg001:6252p seg001:625Cp ...
  5510 p7Dsub_598E:
  5511 		push	bc
  5511 		push	bc
  5512 		ld	de, 847Ch
  5512 		ld	de, 847Ch
  5513 		ld	b, 5
  5513 		ld	b, 5
  5514 
  5514 
  5515 p7Dloc_5994:				; CODE XREF: p7Dsub_598E+Dj
  5515 p7Dloc_5994:
  5516 		call	DivHLBy10
  5516 		call	DivHLBy10
  5517 		add	a, 30h ; '0'
  5517 		add	a, 30h ; '0'
  5518 		ld	(de), a
  5518 		ld	(de), a
  5519 		dec	de
  5519 		dec	de
  5520 		djnz	p7Dloc_5994
  5520 		djnz	p7Dloc_5994
  5522 		ld	(unk_847C+1), a
  5522 		ld	(unk_847C+1), a
  5523 		ex	de, hl
  5523 		ex	de, hl
  5524 		ld	a, 30h ; '0'
  5524 		ld	a, 30h ; '0'
  5525 		ld	b, 4
  5525 		ld	b, 4
  5526 
  5526 
  5527 p7Dloc_59A6:				; CODE XREF: p7Dsub_598E+1Ej
  5527 p7Dloc_59A6:
  5528 		inc	hl
  5528 		inc	hl
  5529 		cp	(hl)
  5529 		cp	(hl)
  5530 		jr	nz, p7Dloc_59AE
  5530 		jr	nz, p7Dloc_59AE
  5531 		ld	(hl), 20h ; ' '
  5531 		ld	(hl), 20h ; ' '
  5532 		djnz	p7Dloc_59A6
  5532 		djnz	p7Dloc_59A6
  5533 
  5533 
  5534 p7Dloc_59AE:				; CODE XREF: p7Dsub_598E+1Aj
  5534 p7Dloc_59AE:
  5535 		pop	bc
  5535 		pop	bc
  5536 		call	Page0Call_3D4D
  5536 		call	Page0Call_3D4D
  5537 		ret
  5537 		ret
  5538 ; End of function p7Dsub_598E
  5538 ; End of function p7Dsub_598E
  5539 
  5539 
  5540 ; ---------------------------------------------------------------------------
  5540 ; ---------------------------------------------------------------------------
  5541 
  5541 
  5542 p7Dloc_59B3:				; CODE XREF: seg001:624Bp
  5542 p7Dloc_59B3:
  5543 		push	af
  5543 		push	af
  5544 		ld	de, 0E10h
  5544 		ld	de, 0E10h
  5545 		rst	28h
  5545 		rst	28h
  5546 ; ---------------------------------------------------------------------------
  5546 ; ---------------------------------------------------------------------------
  5547 		.dw 80B1h
  5547 		.dw 80B1h
  5595 		call	p7Dsub_57C5
  5595 		call	p7Dsub_57C5
  5596 		or	a
  5596 		or	a
  5597 		sbc	hl, bc
  5597 		sbc	hl, bc
  5598 		ld	bc, 0
  5598 		ld	bc, 0
  5599 
  5599 
  5600 p7Dloc_5A10:				; CODE XREF: seg001:5A3Aj
  5600 p7Dloc_5A10:
  5601 		push	hl
  5601 		push	hl
  5602 		ld	a, 2
  5602 		ld	a, 2
  5603 		cp	c
  5603 		cp	c
  5604 		jr	nz, p7Dloc_5A26
  5604 		jr	nz, p7Dloc_5A26
  5605 		ld	hl, (tempSwapArea)
  5605 		ld	hl, (tempSwapArea)
  5610 		inc	hl
  5610 		inc	hl
  5611 		ld	d, (hl)
  5611 		ld	d, (hl)
  5612 		jr	p7Dloc_5A31
  5612 		jr	p7Dloc_5A31
  5613 ; ---------------------------------------------------------------------------
  5613 ; ---------------------------------------------------------------------------
  5614 
  5614 
  5615 p7Dloc_5A26:				; CODE XREF: seg001:5A14j seg001:5A1Cj
  5615 p7Dloc_5A26:
  5616 		or	a
  5616 		or	a
  5617 		ld	hl, start_of_7D_table
  5617 		ld	hl, start_of_7D_table
  5618 		adc	hl, bc
  5618 		adc	hl, bc
  5619 		adc	hl, bc
  5619 		adc	hl, bc
  5620 		ld	e, (hl)
  5620 		ld	e, (hl)
  5621 		inc	hl
  5621 		inc	hl
  5622 		ld	d, (hl)
  5622 		ld	d, (hl)
  5623 
  5623 
  5624 p7Dloc_5A31:				; CODE XREF: seg001:5A24j
  5624 p7Dloc_5A31:
  5625 		or	a
  5625 		or	a
  5626 		pop	hl
  5626 		pop	hl
  5627 		push	hl
  5627 		push	hl
  5628 		sbc	hl, de
  5628 		sbc	hl, de
  5629 		jr	c, p7Dloc_5A3C
  5629 		jr	c, p7Dloc_5A3C
  5630 		pop	hl
  5630 		pop	hl
  5631 		inc	bc
  5631 		inc	bc
  5632 		jr	p7Dloc_5A10
  5632 		jr	p7Dloc_5A10
  5633 ; ---------------------------------------------------------------------------
  5633 ; ---------------------------------------------------------------------------
  5634 
  5634 
  5635 p7Dloc_5A3C:				; CODE XREF: seg001:5A36j
  5635 p7Dloc_5A3C:
  5636 		pop	hl
  5636 		pop	hl
  5637 		push	hl
  5637 		push	hl
  5638 		dec	bc
  5638 		dec	bc
  5639 		ld	a, 2
  5639 		ld	a, 2
  5640 		cp	c
  5640 		cp	c
  5647 		inc	hl
  5647 		inc	hl
  5648 		ld	d, (hl)
  5648 		ld	d, (hl)
  5649 		jr	p7Dloc_5A5F
  5649 		jr	p7Dloc_5A5F
  5650 ; ---------------------------------------------------------------------------
  5650 ; ---------------------------------------------------------------------------
  5651 
  5651 
  5652 p7Dloc_5A54:				; CODE XREF: seg001:5A42j seg001:5A4Aj
  5652 p7Dloc_5A54:
  5653 		ld	hl, start_of_7D_table
  5653 		ld	hl, start_of_7D_table
  5654 		or	a
  5654 		or	a
  5655 		adc	hl, bc
  5655 		adc	hl, bc
  5656 		adc	hl, bc
  5656 		adc	hl, bc
  5657 		ld	e, (hl)
  5657 		ld	e, (hl)
  5658 		inc	hl
  5658 		inc	hl
  5659 		ld	d, (hl)
  5659 		ld	d, (hl)
  5660 
  5660 
  5661 p7Dloc_5A5F:				; CODE XREF: seg001:5A52j
  5661 p7Dloc_5A5F:
  5662 		pop	hl
  5662 		pop	hl
  5663 		or	a
  5663 		or	a
  5664 		sbc	hl, de
  5664 		sbc	hl, de
  5665 		pop	de
  5665 		pop	de
  5666 		inc	hl
  5666 		inc	hl
  5669 		ret
  5669 		ret
  5670 
  5670 
  5671 ; =============== S U B	R O U T	I N E =======================================
  5671 ; =============== S U B	R O U T	I N E =======================================
  5672 
  5672 
  5673 
  5673 
  5674 p7Dsub_5A68:				; CODE XREF: seg001:59D4p
  5674 p7Dsub_5A68:
  5675 		push	af
  5675 		push	af
  5676 		push	hl
  5676 		push	hl
  5677 		push	de
  5677 		push	de
  5678 		push	hl
  5678 		push	hl
  5679 		ld	bc, 7CDh
  5679 		ld	bc, 7CDh
  5682 		pop	hl
  5682 		pop	hl
  5683 		ret	c
  5683 		ret	c
  5684 		jr	z, p7Dloc_5A77
  5684 		jr	z, p7Dloc_5A77
  5685 		dec	hl
  5685 		dec	hl
  5686 
  5686 
  5687 p7Dloc_5A77:				; CODE XREF: p7Dsub_5A68+Cj
  5687 p7Dloc_5A77:
  5688 		push	hl
  5688 		push	hl
  5689 		ld	de, 4
  5689 		ld	de, 4
  5690 		rst	28h
  5690 		rst	28h
  5691 ; ---------------------------------------------------------------------------
  5691 ; ---------------------------------------------------------------------------
  5692 		.dw 804Bh
  5692 		.dw 804Bh
  5727 
  5727 
  5728 
  5728 
  5729 ; =============== S U B	R O U T	I N E =======================================
  5729 ; =============== S U B	R O U T	I N E =======================================
  5730 
  5730 
  5731 
  5731 
  5732 p7Dsub_5AA5:				; CODE XREF: seg001:5A19p seg001:5A47p
  5732 p7Dsub_5AA5:
  5733 		push	hl
  5733 		push	hl
  5734 		ld	de, 4
  5734 		ld	de, 4
  5735 		rst	28h
  5735 		rst	28h
  5736 ; ---------------------------------------------------------------------------
  5736 ; ---------------------------------------------------------------------------
  5737 		.dw 804Bh
  5737 		.dw 804Bh
  5756 ; ---------------------------------------------------------------------------
  5756 ; ---------------------------------------------------------------------------
  5757 		.dw 804Bh
  5757 		.dw 804Bh
  5758 ; ---------------------------------------------------------------------------
  5758 ; ---------------------------------------------------------------------------
  5759 		jr	nz, p7Dloc_5ACA
  5759 		jr	nz, p7Dloc_5ACA
  5760 
  5760 
  5761 p7Dloc_5AC6:				; CODE XREF: p7Dsub_5AA5+15j
  5761 p7Dloc_5AC6:
  5762 		ld	a, 0
  5762 		ld	a, 0
  5763 		bit	7, a
  5763 		bit	7, a
  5764 
  5764 
  5765 p7Dloc_5ACA:				; CODE XREF: p7Dsub_5AA5+9j p7Dsub_5AA5+1Fj
  5765 p7Dloc_5ACA:
  5766 		pop	hl
  5766 		pop	hl
  5767 		ret
  5767 		ret
  5768 ; End of function p7Dsub_5AA5
  5768 ; End of function p7Dsub_5AA5
  5769 
  5769 
  5770 ; ---------------------------------------------------------------------------
  5770 ; ---------------------------------------------------------------------------
  5807 		ld	(curRow+1), hl
  5807 		ld	(curRow+1), hl
  5808 		ld	l, a
  5808 		ld	l, a
  5809 		ld	h, 0
  5809 		ld	h, 0
  5810 		call	Page0Call_3C7B
  5810 		call	Page0Call_3C7B
  5811 
  5811 
  5812 p7Dloc_5B0D:				; CODE XREF: seg001:5AF9j
  5812 p7Dloc_5B0D:
  5813 		pop	af
  5813 		pop	af
  5814 		pop	bc
  5814 		pop	bc
  5815 		pop	hl
  5815 		pop	hl
  5816 		ret
  5816 		ret
  5817 ; ---------------------------------------------------------------------------
  5817 ; ---------------------------------------------------------------------------
  5818 
  5818 
  5819 Page7D_2E56:				; CODE XREF: seg001:5B28j
  5819 Page7D_2E56:
  5820 		call	Page0Call_23DE
  5820 		call	Page0Call_23DE
  5821 		jr	c, locret_5B2E
  5821 		jr	c, locret_5B2E
  5822 		push	af
  5822 		push	af
  5823 		ld	a, (de)
  5823 		ld	a, (de)
  5824 		ld	l, a
  5824 		ld	l, a
  5833 		ld	bc, 1
  5833 		ld	bc, 1
  5834 		call	Page0Call_31D7
  5834 		call	Page0Call_31D7
  5835 		jr	Page7D_2E56
  5835 		jr	Page7D_2E56
  5836 ; ---------------------------------------------------------------------------
  5836 ; ---------------------------------------------------------------------------
  5837 
  5837 
  5838 p7Dloc_5B2A:				; CODE XREF: seg001:5B1Fj
  5838 p7Dloc_5B2A:
  5839 		pop	af
  5839 		pop	af
  5840 		call	Page0Call_23D4
  5840 		call	Page0Call_23D4
  5841 
  5841 
  5842 locret_5B2E:				; CODE XREF: seg001:5B14j
  5842 locret_5B2E:
  5843 		ret
  5843 		ret
  5844 ; ---------------------------------------------------------------------------
  5844 ; ---------------------------------------------------------------------------
  5845 
  5845 
  5846 Page7D_2BC2:
  5846 Page7D_2BC2:
  5847 		push	af
  5847 		push	af
  5859 		pop	af
  5859 		pop	af
  5860 		call	p7Dsub_5B4D
  5860 		call	p7Dsub_5B4D
  5861 		ret
  5861 		ret
  5862 ; ---------------------------------------------------------------------------
  5862 ; ---------------------------------------------------------------------------
  5863 
  5863 
  5864 p7Dloc_5B49:				; CODE XREF: seg001:5B36j
  5864 p7Dloc_5B49:
  5865 		pop	af
  5865 		pop	af
  5866 		scf
  5866 		scf
  5867 		ccf
  5867 		ccf
  5868 		ret
  5868 		ret
  5869 
  5869 
  5870 ; =============== S U B	R O U T	I N E =======================================
  5870 ; =============== S U B	R O U T	I N E =======================================
  5871 
  5871 
  5872 
  5872 
  5873 p7Dsub_5B4D:				; CODE XREF: seg001:5B45p
  5873 p7Dsub_5B4D:
  5874 		push	bc
  5874 		push	bc
  5875 		push	de
  5875 		push	de
  5876 		call	p7Dsub_7656
  5876 		call	p7Dsub_7656
  5877 		ld	hl, 4003h
  5877 		ld	hl, 4003h
  5878 		ld	(appSearchPage), a
  5878 		ld	(appSearchPage), a
  5879 
  5879 
  5880 p7Dloc_5B58:				; CODE XREF: p7Dsub_5B4D+59j p7Dsub_5B4D+73j
  5880 p7Dloc_5B58:
  5881 		push	hl
  5881 		push	hl
  5882 		rst	28h
  5882 		rst	28h
  5883 ; ---------------------------------------------------------------------------
  5883 ; ---------------------------------------------------------------------------
  5884 		.dw 8051h
  5884 		.dw 8051h
  5885 ; ---------------------------------------------------------------------------
  5885 ; ---------------------------------------------------------------------------
  5889 		jr	z, p7Dloc_5BA8
  5889 		jr	z, p7Dloc_5BA8
  5890 		pop	hl
  5890 		pop	hl
  5891 		jr	p7Dloc_5BC2
  5891 		jr	p7Dloc_5BC2
  5892 ; ---------------------------------------------------------------------------
  5892 ; ---------------------------------------------------------------------------
  5893 
  5893 
  5894 p7Dloc_5B67:				; CODE XREF: p7Dsub_5B4D+11j
  5894 p7Dloc_5B67:
  5895 		ld	a, (appSearchPage)
  5895 		ld	a, (appSearchPage)
  5896 		call	p7Dloc_442C
  5896 		call	p7Dloc_442C
  5897 		push	bc
  5897 		push	bc
  5898 		push	de
  5898 		push	de
  5899 		ld	hl, OP2
  5899 		ld	hl, OP2
  5900 		pop	de
  5900 		pop	de
  5901 		pop	bc
  5901 		pop	bc
  5902 		jr	nz, p7Dloc_5BC2
  5902 		jr	nz, p7Dloc_5BC2
  5903 		ld	b, c
  5903 		ld	b, c
  5904 
  5904 
  5905 p7Dloc_5B77:				; CODE XREF: p7Dsub_5B4D+39j
  5905 p7Dloc_5B77:
  5906 		ld	a, (hl)
  5906 		ld	a, (hl)
  5907 		ld	c, a
  5907 		ld	c, a
  5908 		ex	de, hl
  5908 		ex	de, hl
  5909 		ld	a, (appSearchPage)
  5909 		ld	a, (appSearchPage)
  5910 		rst	28h
  5910 		rst	28h
  5920 		pop	hl
  5920 		pop	hl
  5921 		ld	a, (appSearchPage)
  5921 		ld	a, (appSearchPage)
  5922 		jr	p7Dloc_5BC6
  5922 		jr	p7Dloc_5BC6
  5923 ; ---------------------------------------------------------------------------
  5923 ; ---------------------------------------------------------------------------
  5924 
  5924 
  5925 p7Dloc_5B8E:				; CODE XREF: p7Dsub_5B4D+35j
  5925 p7Dloc_5B8E:
  5926 		pop	hl
  5926 		pop	hl
  5927 		inc	hl
  5927 		inc	hl
  5928 		ld	a, (appSearchPage)
  5928 		ld	a, (appSearchPage)
  5929 		push	de
  5929 		push	de
  5930 		rst	28h
  5930 		rst	28h
  5944 		pop	de
  5944 		pop	de
  5945 		adc	hl, bc
  5945 		adc	hl, bc
  5946 		jr	p7Dloc_5B58
  5946 		jr	p7Dloc_5B58
  5947 ; ---------------------------------------------------------------------------
  5947 ; ---------------------------------------------------------------------------
  5948 
  5948 
  5949 p7Dloc_5BA8:				; CODE XREF: p7Dsub_5B4D+15j
  5949 p7Dloc_5BA8:
  5950 		pop	hl
  5950 		pop	hl
  5951 		ld	a, (appSearchPage)
  5951 		ld	a, (appSearchPage)
  5952 		inc	a
  5952 		inc	a
  5953 		ld	(appSearchPage), a
  5953 		ld	(appSearchPage), a
  5954 		call	NZIf83Plus
  5954 		call	NZIf83Plus
  5955 		jr	nz, p7Dloc_5BB9
  5955 		jr	nz, p7Dloc_5BB9
  5956 		cp	6Ch ; 'l'
  5956 		cp	6Ch ; 'l'
  5957 		jr	p7Dloc_5BBB
  5957 		jr	p7Dloc_5BBB
  5958 ; ---------------------------------------------------------------------------
  5958 ; ---------------------------------------------------------------------------
  5959 
  5959 
  5960 p7Dloc_5BB9:				; CODE XREF: p7Dsub_5B4D+66j
  5960 p7Dloc_5BB9:
  5961 		cp	18h
  5961 		cp	18h
  5962 
  5962 
  5963 p7Dloc_5BBB:				; CODE XREF: p7Dsub_5B4D+6Aj
  5963 p7Dloc_5BBB:
  5964 		jr	z, p7Dloc_5BC2
  5964 		jr	z, p7Dloc_5BC2
  5965 		ld	hl, 4000h
  5965 		ld	hl, 4000h
  5966 		jr	p7Dloc_5B58
  5966 		jr	p7Dloc_5B58
  5967 ; ---------------------------------------------------------------------------
  5967 ; ---------------------------------------------------------------------------
  5968 
  5968 
  5969 p7Dloc_5BC2:				; CODE XREF: p7Dsub_5B4D+18j p7Dsub_5B4D+27j ...
  5969 p7Dloc_5BC2:
  5970 		scf
  5970 		scf
  5971 		ccf
  5971 		ccf
  5972 		jr	p7Dloc_5BC7
  5972 		jr	p7Dloc_5BC7
  5973 ; ---------------------------------------------------------------------------
  5973 ; ---------------------------------------------------------------------------
  5974 
  5974 
  5975 p7Dloc_5BC6:				; CODE XREF: p7Dsub_5B4D+3Fj
  5975 p7Dloc_5BC6:
  5976 		scf
  5976 		scf
  5977 
  5977 
  5978 p7Dloc_5BC7:				; CODE XREF: p7Dsub_5B4D+77j
  5978 p7Dloc_5BC7:
  5979 		pop	de
  5979 		pop	de
  5980 		pop	bc
  5980 		pop	bc
  5981 		ret
  5981 		ret
  5982 ; End of function p7Dsub_5B4D
  5982 ; End of function p7Dsub_5B4D
  5983 
  5983 
  6017 		call	checkForFlashTrickery
  6017 		call	checkForFlashTrickery
  6018 		pop	af
  6018 		pop	af
  6019 		push	de
  6019 		push	de
  6020 		push	bc
  6020 		push	bc
  6021 
  6021 
  6022 p7Dloc_5BFD:				; CODE XREF: seg001:5C08j
  6022 p7Dloc_5BFD:
  6023 		ld	de, 410h
  6023 		ld	de, 410h
  6024 		rst	28h
  6024 		rst	28h
  6025 ; ---------------------------------------------------------------------------
  6025 ; ---------------------------------------------------------------------------
  6026 		.dw 8027h
  6026 		.dw 8027h
  6027 ; ---------------------------------------------------------------------------
  6027 ; ---------------------------------------------------------------------------
  6031 		.dw 80AEh
  6031 		.dw 80AEh
  6032 ; ---------------------------------------------------------------------------
  6032 ; ---------------------------------------------------------------------------
  6033 		jr	p7Dloc_5BFD
  6033 		jr	p7Dloc_5BFD
  6034 ; ---------------------------------------------------------------------------
  6034 ; ---------------------------------------------------------------------------
  6035 
  6035 
  6036 p7Dloc_5C0A:				; CODE XREF: seg001:5C03j
  6036 p7Dloc_5C0A:
  6037 		call	p7Dsub_4574
  6037 		call	p7Dsub_4574
  6038 		ld	de, OP2
  6038 		ld	de, OP2
  6039 		rst	28h
  6039 		rst	28h
  6040 ; ---------------------------------------------------------------------------
  6040 ; ---------------------------------------------------------------------------
  6041 		.dw 8051h
  6041 		.dw 8051h
  6051 		ld	(Abackup), a
  6051 		ld	(Abackup), a
  6052 		pop	af
  6052 		pop	af
  6053 		jp	po, p7Dloc_5C29
  6053 		jp	po, p7Dloc_5C29
  6054 		ei
  6054 		ei
  6055 
  6055 
  6056 p7Dloc_5C29:				; CODE XREF: seg001:5C25j
  6056 p7Dloc_5C29:
  6057 		ld	a, (Abackup)
  6057 		ld	a, (Abackup)
  6058 		ret
  6058 		ret
  6059 ; ---------------------------------------------------------------------------
  6059 ; ---------------------------------------------------------------------------
  6060 
  6060 
  6061 p7Dloc_5C2D:				; CODE XREF: seg001:635Bp
  6061 p7Dloc_5C2D:
  6062 		ld	hl, 4000h
  6062 		ld	hl, 4000h
  6063 		ld	de, 8090h
  6063 		ld	de, 8090h
  6064 		rst	28h
  6064 		rst	28h
  6065 ; ---------------------------------------------------------------------------
  6065 ; ---------------------------------------------------------------------------
  6066 		.dw 8075h
  6066 		.dw 8075h
  6127 ; ---------------------------------------------------------------------------
  6127 ; ---------------------------------------------------------------------------
  6128 
  6128 
  6129 Page7D_3C4E:
  6129 Page7D_3C4E:
  6130 		push	hl
  6130 		push	hl
  6131 
  6131 
  6132 p7Dloc_5C7D:				; CODE XREF: seg001:5C87j
  6132 p7Dloc_5C7D:
  6133 		ld	a, (ix+0)
  6133 		ld	a, (ix+0)
  6134 		push	bc
  6134 		push	bc
  6135 		call	p7Dsub_5C8E
  6135 		call	p7Dsub_5C8E
  6136 		pop	bc
  6136 		pop	bc
  6137 		inc	ix
  6137 		inc	ix
  6141 		ret
  6141 		ret
  6142 
  6142 
  6143 ; =============== S U B	R O U T	I N E =======================================
  6143 ; =============== S U B	R O U T	I N E =======================================
  6144 
  6144 
  6145 
  6145 
  6146 p7Dsub_5C8E:				; CODE XREF: seg001:5C81p
  6146 p7Dsub_5C8E:
  6147 		ld	a, (ix+0)
  6147 		ld	a, (ix+0)
  6148 		push	af
  6148 		push	af
  6149 		and	0F0h ; '�'
  6149 		and	0F0h ; '�'
  6150 		srl	a
  6150 		srl	a
  6151 		srl	a
  6151 		srl	a
  6152 		srl	a
  6152 		srl	a
  6153 		srl	a
  6153 		srl	a
  6154 		ld	b, 2
  6154 		ld	b, 2
  6155 
  6155 
  6156 p7Dloc_5C9E:				; CODE XREF: p7Dsub_5C8E+22j p7Dsub_5C8E+31j
  6156 p7Dloc_5C9E:
  6157 		push	af
  6157 		push	af
  6158 		sub	0Ah
  6158 		sub	0Ah
  6159 		jr	c, p7Dloc_5CB2
  6159 		jr	c, p7Dloc_5CB2
  6160 		pop	af
  6160 		pop	af
  6161 		add	a, 37h ; '7'
  6161 		add	a, 37h ; '7'
  6168 		pop	af
  6168 		pop	af
  6169 		and	0Fh
  6169 		and	0Fh
  6170 		jr	p7Dloc_5C9E
  6170 		jr	p7Dloc_5C9E
  6171 ; ---------------------------------------------------------------------------
  6171 ; ---------------------------------------------------------------------------
  6172 
  6172 
  6173 p7Dloc_5CB2:				; CODE XREF: p7Dsub_5C8E+13j
  6173 p7Dloc_5CB2:
  6174 		pop	af
  6174 		pop	af
  6175 		add	a, 30h ; '0'
  6175 		add	a, 30h ; '0'
  6176 		ld	(hl), a
  6176 		ld	(hl), a
  6177 		inc	hl
  6177 		inc	hl
  6178 		dec	b
  6178 		dec	b
  6182 		pop	af
  6182 		pop	af
  6183 		and	0Fh
  6183 		and	0Fh
  6184 		jr	p7Dloc_5C9E
  6184 		jr	p7Dloc_5C9E
  6185 ; ---------------------------------------------------------------------------
  6185 ; ---------------------------------------------------------------------------
  6186 
  6186 
  6187 p7Dloc_5CC1:				; CODE XREF: p7Dsub_5C8E+1Dj p7Dsub_5C8E+2Cj
  6187 p7Dloc_5CC1:
  6188 		ld	a, 0
  6188 		ld	a, 0
  6189 		ld	(hl), a
  6189 		ld	(hl), a
  6190 		ret
  6190 		ret
  6191 ; End of function p7Dsub_5C8E
  6191 ; End of function p7Dsub_5C8E
  6192 
  6192 
  6203 		srl	a
  6203 		srl	a
  6204 		srl	a
  6204 		srl	a
  6205 		srl	a
  6205 		srl	a
  6206 		ld	b, 2
  6206 		ld	b, 2
  6207 
  6207 
  6208 p7Dloc_5CD6:				; CODE XREF: seg001:5CE9j seg001:5CF9j
  6208 p7Dloc_5CD6:
  6209 		push	af
  6209 		push	af
  6210 		sub	0Ah
  6210 		sub	0Ah
  6211 		jr	c, p7Dloc_5CEB
  6211 		jr	c, p7Dloc_5CEB
  6212 		pop	af
  6212 		pop	af
  6213 		add	a, 37h ; '7'
  6213 		add	a, 37h ; '7'
  6219 		pop	af
  6219 		pop	af
  6220 		and	0Fh
  6220 		and	0Fh
  6221 		jr	p7Dloc_5CD6
  6221 		jr	p7Dloc_5CD6
  6222 ; ---------------------------------------------------------------------------
  6222 ; ---------------------------------------------------------------------------
  6223 
  6223 
  6224 p7Dloc_5CEB:				; CODE XREF: seg001:5CD9j
  6224 p7Dloc_5CEB:
  6225 		pop	af
  6225 		pop	af
  6226 		add	a, 30h ; '0'
  6226 		add	a, 30h ; '0'
  6227 		call	Page0Call_3D47
  6227 		call	Page0Call_3D47
  6228 		dec	b
  6228 		dec	b
  6229 		ld	a, b
  6229 		ld	a, b
  6232 		pop	af
  6232 		pop	af
  6233 		and	0Fh
  6233 		and	0Fh
  6234 		jr	p7Dloc_5CD6
  6234 		jr	p7Dloc_5CD6
  6235 ; ---------------------------------------------------------------------------
  6235 ; ---------------------------------------------------------------------------
  6236 
  6236 
  6237 p7Dloc_5CFB:				; CODE XREF: seg001:5CE4j seg001:5CF4j
  6237 p7Dloc_5CFB:
  6238 		pop	de
  6238 		pop	de
  6239 		pop	bc
  6239 		pop	bc
  6240 		pop	hl
  6240 		pop	hl
  6241 		ret
  6241 		ret
  6242 
  6242 
  6243 ; =============== S U B	R O U T	I N E =======================================
  6243 ; =============== S U B	R O U T	I N E =======================================
  6244 
  6244 
  6245 
  6245 
  6246 p7Dsub_5CFF:				; CODE XREF: seg001:46FCp seg001:4706p ...
  6246 p7Dsub_5CFF:
  6247 		push	af
  6247 		push	af
  6248 		push	bc
  6248 		push	bc
  6249 		push	hl
  6249 		push	hl
  6250 		push	de
  6250 		push	de
  6251 		push	af
  6251 		push	af
  6252 		ld	a, c
  6252 		ld	a, c
  6253 		or	b
  6253 		or	b
  6254 		jr	z, p7Dloc_5D18
  6254 		jr	z, p7Dloc_5D18
  6255 		ld	de, MD5Buffer
  6255 		ld	de, MD5Buffer
  6256 
  6256 
  6257 p7Dloc_5D0B:				; CODE XREF: p7Dsub_5CFF+17j
  6257 p7Dloc_5D0B:
  6258 		pop	af
  6258 		pop	af
  6259 		push	af
  6259 		push	af
  6260 		rst	28h
  6260 		rst	28h
  6261 ; ---------------------------------------------------------------------------
  6261 ; ---------------------------------------------------------------------------
  6262 		.dw 8051h
  6262 		.dw 8051h
  6267 		dec	bc
  6267 		dec	bc
  6268 		ld	a, c
  6268 		ld	a, c
  6269 		or	b
  6269 		or	b
  6270 		jr	nz, p7Dloc_5D0B
  6270 		jr	nz, p7Dloc_5D0B
  6271 
  6271 
  6272 p7Dloc_5D18:				; CODE XREF: p7Dsub_5CFF+7j
  6272 p7Dloc_5D18:
  6273 		pop	af
  6273 		pop	af
  6274 		pop	de
  6274 		pop	de
  6275 		pop	hl
  6275 		pop	hl
  6276 		pop	bc
  6276 		pop	bc
  6277 		pop	af
  6277 		pop	af
  6280 
  6280 
  6281 
  6281 
  6282 ; =============== S U B	R O U T	I N E =======================================
  6282 ; =============== S U B	R O U T	I N E =======================================
  6283 
  6283 
  6284 
  6284 
  6285 p7Dsub_5D1E:				; CODE XREF: seg001:46FFp
  6285 p7Dsub_5D1E:
  6286 		push	bc
  6286 		push	bc
  6287 		push	de
  6287 		push	de
  6288 		push	af
  6288 		push	af
  6289 		ld	b, a
  6289 		ld	b, a
  6290 		ld	a, 0
  6290 		ld	a, 0
  6306 		ld	a, (de)
  6306 		ld	a, (de)
  6307 		ld	h, a
  6307 		ld	h, a
  6308 		jr	p7Dloc_5D3F
  6308 		jr	p7Dloc_5D3F
  6309 ; ---------------------------------------------------------------------------
  6309 ; ---------------------------------------------------------------------------
  6310 
  6310 
  6311 p7Dloc_5D3D:				; CODE XREF: p7Dsub_5D1E+7j
  6311 p7Dloc_5D3D:
  6312 		ld	h, a
  6312 		ld	h, a
  6313 		ld	l, a
  6313 		ld	l, a
  6314 
  6314 
  6315 p7Dloc_5D3F:				; CODE XREF: p7Dsub_5D1E+16j p7Dsub_5D1E+1Dj
  6315 p7Dloc_5D3F:
  6316 		pop	af
  6316 		pop	af
  6317 		pop	de
  6317 		pop	de
  6318 		pop	bc
  6318 		pop	bc
  6319 		ret
  6319 		ret
  6320 ; End of function p7Dsub_5D1E
  6320 ; End of function p7Dsub_5D1E
  6321 
  6321 
  6322 
  6322 
  6323 ; =============== S U B	R O U T	I N E =======================================
  6323 ; =============== S U B	R O U T	I N E =======================================
  6324 
  6324 
  6325 
  6325 
  6326 p7Dsub_5D43:				; CODE XREF: seg001:4709p p7Dsub_4873+17p
  6326 p7Dsub_5D43:
  6327 		push	hl
  6327 		push	hl
  6328 		push	de
  6328 		push	de
  6329 		push	af
  6329 		push	af
  6330 		ld	b, a
  6330 		ld	b, a
  6331 		ld	a, 0
  6331 		ld	a, 0
  6347 		ld	a, (hl)
  6347 		ld	a, (hl)
  6348 		ld	c, a
  6348 		ld	c, a
  6349 		jr	p7Dloc_5D64
  6349 		jr	p7Dloc_5D64
  6350 ; ---------------------------------------------------------------------------
  6350 ; ---------------------------------------------------------------------------
  6351 
  6351 
  6352 p7Dloc_5D62:				; CODE XREF: p7Dsub_5D43+7j
  6352 p7Dloc_5D62:
  6353 		ld	b, a
  6353 		ld	b, a
  6354 		ld	c, a
  6354 		ld	c, a
  6355 
  6355 
  6356 p7Dloc_5D64:				; CODE XREF: p7Dsub_5D43+16j p7Dsub_5D43+1Dj
  6356 p7Dloc_5D64:
  6357 		pop	af
  6357 		pop	af
  6358 		pop	de
  6358 		pop	de
  6359 		pop	hl
  6359 		pop	hl
  6360 		ret
  6360 		ret
  6361 ; End of function p7Dsub_5D43
  6361 ; End of function p7Dsub_5D43
  6362 
  6362 
  6363 
  6363 
  6364 ; =============== S U B	R O U T	I N E =======================================
  6364 ; =============== S U B	R O U T	I N E =======================================
  6365 
  6365 
  6366 
  6366 
  6367 Page7D_2E44:				; CODE XREF: p7Dsub_5DC7p
  6367 Page7D_2E44:
  6368 		push	af
  6368 		push	af
  6369 		push	hl
  6369 		push	hl
  6370 		call	Page7D_2B56
  6370 		call	Page7D_2B56
  6371 		ld	e, b
  6371 		ld	e, b
  6372 		ld	d, 0
  6372 		ld	d, 0
  6373 		push	de
  6373 		push	de
  6374 		inc	b
  6374 		inc	b
  6375 		ld	c, 0
  6375 		ld	c, 0
  6376 		ld	a, 8
  6376 		ld	a, 8
  6377 
  6377 
  6378 p7Dloc_5D76:				; CODE XREF: Page7D_2E44+23j
  6378 p7Dloc_5D76:
  6379 		cp	b
  6379 		cp	b
  6380 		jr	z, p7Dloc_5DC2
  6380 		jr	z, p7Dloc_5DC2
  6381 		jr	nc, p7Dloc_5DC0
  6381 		jr	nc, p7Dloc_5DC0
  6382 		push	bc
  6382 		push	bc
  6383 		ld	hl, 4000h
  6383 		ld	hl, 4000h
  6386 		cp	0FEh ; '�'
  6386 		cp	0FEh ; '�'
  6387 		jr	nz, p7Dloc_5D8D
  6387 		jr	nz, p7Dloc_5D8D
  6388 		pop	af
  6388 		pop	af
  6389 		add	a, 4
  6389 		add	a, 4
  6390 
  6390 
  6391 p7Dloc_5D8A:				; CODE XREF: Page7D_2E44+51j
  6391 p7Dloc_5D8A:
  6392 		pop	bc
  6392 		pop	bc
  6393 		jr	p7Dloc_5D76
  6393 		jr	p7Dloc_5D76
  6394 ; ---------------------------------------------------------------------------
  6394 ; ---------------------------------------------------------------------------
  6395 
  6395 
  6396 p7Dloc_5D8D:				; CODE XREF: Page7D_2E44+1Dj
  6396 p7Dloc_5D8D:
  6397 		cp	0FFh
  6397 		cp	0FFh
  6398 		jr	z, p7Dloc_5D9F
  6398 		jr	z, p7Dloc_5D9F
  6399 		pop	af
  6399 		pop	af
  6400 		pop	bc
  6400 		pop	bc
  6401 		pop	de
  6401 		pop	de
  6408 		ld	c, 0
  6408 		ld	c, 0
  6409 		push	bc
  6409 		push	bc
  6410 		push	af
  6410 		push	af
  6411 		inc	hl
  6411 		inc	hl
  6412 
  6412 
  6413 p7Dloc_5D9F:				; CODE XREF: Page7D_2E44+27j
  6413 p7Dloc_5D9F:
  6414 		pop	af
  6414 		pop	af
  6415 		ld	c, 0FFh
  6415 		ld	c, 0FFh
  6416 		call	Page7D_2B6E
  6416 		call	Page7D_2B6E
  6417 		ld	bc, 4000h
  6417 		ld	bc, 4000h
  6418 		or	a
  6418 		or	a
  6420 		jr	nz, p7Dloc_5DB0
  6420 		jr	nz, p7Dloc_5DB0
  6421 		pop	bc
  6421 		pop	bc
  6422 		inc	c
  6422 		inc	c
  6423 		push	bc
  6423 		push	bc
  6424 
  6424 
  6425 p7Dloc_5DB0:				; CODE XREF: Page7D_2E44+43j
  6425 p7Dloc_5DB0:
  6426 		; Page7D_2E44+56j
  6426 		; Page7D_2E44+56j
  6427 		inc	a
  6427 		inc	a
  6428 		pop	bc
  6428 		pop	bc
  6429 		cp	b
  6429 		cp	b
  6430 		jr	z, p7Dloc_5DC2
  6430 		jr	z, p7Dloc_5DC2
  6435 		inc	c
  6435 		inc	c
  6436 		push	bc
  6436 		push	bc
  6437 		jr	p7Dloc_5DB0
  6437 		jr	p7Dloc_5DB0
  6438 ; ---------------------------------------------------------------------------
  6438 ; ---------------------------------------------------------------------------
  6439 
  6439 
  6440 p7Dloc_5DC0:				; CODE XREF: Page7D_2E44+11j
  6440 p7Dloc_5DC0:
  6441 		xor	a
  6441 		xor	a
  6442 		ld	c, a
  6442 		ld	c, a
  6443 
  6443 
  6444 p7Dloc_5DC2:				; CODE XREF: Page7D_2E44+Fj
  6444 p7Dloc_5DC2:
  6445 		; Page7D_2E44+4Bj
  6445 		; Page7D_2E44+4Bj
  6446 		ld	b, c
  6446 		ld	b, c
  6447 		pop	de
  6447 		pop	de
  6448 		pop	hl
  6448 		pop	hl
  6449 		pop	af
  6449 		pop	af
  6452 
  6452 
  6453 
  6453 
  6454 ; =============== S U B	R O U T	I N E =======================================
  6454 ; =============== S U B	R O U T	I N E =======================================
  6455 
  6455 
  6456 
  6456 
  6457 p7Dsub_5DC7:				; CODE XREF: p7Dsub_7BEA+9p p7Dsub_7BEA+21p
  6457 p7Dsub_5DC7:
  6458 		call	Page7D_2E44
  6458 		call	Page7D_2E44
  6459 		ld	c, e
  6459 		ld	c, e
  6460 		push	bc
  6460 		push	bc
  6461 		push	de
  6461 		push	de
  6462 		ld	a, 1
  6462 		ld	a, 1
  6504 		ld	hl, 1F18h
  6504 		ld	hl, 1F18h
  6505 		call	NZIf83Plus
  6505 		call	NZIf83Plus
  6506 		jr	nz, p7Dloc_5E00
  6506 		jr	nz, p7Dloc_5E00
  6507 		ld	hl, 1DEAh
  6507 		ld	hl, 1DEAh
  6508 
  6508 
  6509 p7Dloc_5E00:				; CODE XREF: seg001:5DFBj
  6509 p7Dloc_5E00:
  6510 		or	a
  6510 		or	a
  6511 		sbc	hl, de
  6511 		sbc	hl, de
  6512 		pop	bc
  6512 		pop	bc
  6513 		sbc	hl, bc
  6513 		sbc	hl, bc
  6514 		pop	de
  6514 		pop	de
  6517 		ret
  6517 		ret
  6518 
  6518 
  6519 ; =============== S U B	R O U T	I N E =======================================
  6519 ; =============== S U B	R O U T	I N E =======================================
  6520 
  6520 
  6521 
  6521 
  6522 p7Dsub_5E0A:				; CODE XREF: seg001:58DCp
  6522 p7Dsub_5E0A:
  6523 		; p7Dsub_7240:p7Dloc_739Bp
  6523 		; p7Dsub_7240:p7Dloc_739Bp
  6524 		ld	a, (unk_83A3)
  6524 		ld	a, (unk_83A3)
  6525 		ld	b, a
  6525 		ld	b, a
  6526 		ld	c, 0
  6526 		ld	c, 0
  6527 		or	c
  6527 		or	c
  6528 		jr	z, p7Dloc_5E23
  6528 		jr	z, p7Dloc_5E23
  6529 		ld	hl, ramStart
  6529 		ld	hl, ramStart
  6530 
  6530 
  6531 p7Dloc_5E16:				; CODE XREF: p7Dsub_5E0A+17j
  6531 p7Dloc_5E16:
  6532 		push	bc
  6532 		push	bc
  6533 		push	hl
  6533 		push	hl
  6534 		ld	bc, 1
  6534 		ld	bc, 1
  6535 		rst	28h
  6535 		rst	28h
  6536 ; ---------------------------------------------------------------------------
  6536 ; ---------------------------------------------------------------------------
  6539 		pop	hl
  6539 		pop	hl
  6540 		inc	hl
  6540 		inc	hl
  6541 		pop	bc
  6541 		pop	bc
  6542 		djnz	p7Dloc_5E16
  6542 		djnz	p7Dloc_5E16
  6543 
  6543 
  6544 p7Dloc_5E23:				; CODE XREF: p7Dsub_5E0A+7j
  6544 p7Dloc_5E23:
  6545 		ld	a, 0
  6545 		ld	a, 0
  6546 		ld	(unk_83A3), a
  6546 		ld	(unk_83A3), a
  6547 		ret
  6547 		ret
  6548 ; End of function p7Dsub_5E0A
  6548 ; End of function p7Dsub_5E0A
  6549 
  6549 
  6550 ; ---------------------------------------------------------------------------
  6550 ; ---------------------------------------------------------------------------
  6551 ; START	OF FUNCTION CHUNK FOR Page7D_2C9A
  6551 ; START	OF FUNCTION CHUNK FOR Page7D_2C9A
  6552 
  6552 
  6553 p7Dloc_5E29:				; CODE XREF: Page7D_2C9A+9j
  6553 p7Dloc_5E29:
  6554 		; p7Dsub_5E59+9j
  6554 		; p7Dsub_5E59+9j
  6555 		ld	a, 0Ch
  6555 		ld	a, 0Ch
  6556 		call	Page0Call_2C49
  6556 		call	Page0Call_2C49
  6557 		jp	JErrorNo
  6557 		jp	JErrorNo
  6558 ; END OF FUNCTION CHUNK	FOR Page7D_2C9A
  6558 ; END OF FUNCTION CHUNK	FOR Page7D_2C9A
  6559 
  6559 
  6560 ; =============== S U B	R O U T	I N E =======================================
  6560 ; =============== S U B	R O U T	I N E =======================================
  6561 
  6561 
  6562 
  6562 
  6563 p7Dsub_5E31:				; CODE XREF: p7Dsub_4A5A+30p p7Dsub_607A+3Cp ...
  6563 p7Dsub_5E31:
  6564 		ld	hl, 4000h
  6564 		ld	hl, 4000h
  6565 ; End of function p7Dsub_5E31
  6565 ; End of function p7Dsub_5E31
  6566 
  6566 
  6567 
  6567 
  6568 ; =============== S U B	R O U T	I N E =======================================
  6568 ; =============== S U B	R O U T	I N E =======================================
  6569 
  6569 
  6570 
  6570 
  6571 Page7D_2C9A:				; CODE XREF: Page7D_2C10+3Cp
  6571 Page7D_2C9A:
  6572 		; p7Dsub_7240+1FBp ...
  6572 		; p7Dsub_7240+1FBp ...
  6573 
  6573 
  6574 ; FUNCTION CHUNK AT 5E29 SIZE 00000008 BYTES
  6574 
  6575 
  6575 
  6576 		push	af
  6576 		push	af
  6577 		ld	de, 8010h
  6577 		ld	de, 8010h
  6578 		push	af
  6578 		push	af
  6579 		or	a
  6579 		or	a
  6605 
  6605 
  6606 
  6606 
  6607 ; =============== S U B	R O U T	I N E =======================================
  6607 ; =============== S U B	R O U T	I N E =======================================
  6608 
  6608 
  6609 
  6609 
  6610 p7Dsub_5E59:				; CODE XREF: seg001:630Ap seg001:7744p ...
  6610 p7Dsub_5E59:
  6611 		push	af
  6611 		push	af
  6612 		ld	de, 8010h
  6612 		ld	de, 8010h
  6613 		push	af
  6613 		push	af
  6614 		or	a
  6614 		or	a
  6615 		rst	28h
  6615 		rst	28h
  6637 
  6637 
  6638 
  6638 
  6639 ; =============== S U B	R O U T	I N E =======================================
  6639 ; =============== S U B	R O U T	I N E =======================================
  6640 
  6640 
  6641 
  6641 
  6642 p7Dsub_5E78:				; CODE XREF: seg001:6316p
  6642 p7Dsub_5E78:
  6643 		ld	b, a
  6643 		ld	b, a
  6644 		call	p7Dsub_75EC
  6644 		call	p7Dsub_75EC
  6645 		sub	b
  6645 		sub	b
  6646 		ld	b, 0
  6646 		ld	b, 0
  6647 		ld	c, a
  6647 		ld	c, a
  6652 		jr	z, locret_5E8F
  6652 		jr	z, locret_5E8F
  6653 		push	af
  6653 		push	af
  6654 		call	p7Dsub_5365
  6654 		call	p7Dsub_5365
  6655 		pop	af
  6655 		pop	af
  6656 
  6656 
  6657 locret_5E8F:				; CODE XREF: p7Dsub_5E78+Ej p7Dsub_5E78+10j
  6657 locret_5E8F:
  6658 		ret
  6658 		ret
  6659 ; End of function p7Dsub_5E78
  6659 ; End of function p7Dsub_5E78
  6660 
  6660 
  6661 
  6661 
  6662 ; =============== S U B	R O U T	I N E =======================================
  6662 ; =============== S U B	R O U T	I N E =======================================
  6663 
  6663 
  6664 
  6664 
  6665 p7Dsub_5E90:				; CODE XREF: p7Dsub_7240+22Ap
  6665 p7Dsub_5E90:
  6666 		push	af
  6666 		push	af
  6667 		push	af
  6667 		push	af
  6668 		ld	a, 1
  6668 		ld	a, 1
  6669 		or	a
  6669 		or	a
  6670 		ld	hl, ramStart
  6670 		ld	hl, ramStart
  6683 		jr	z, p7Dloc_5EB0
  6683 		jr	z, p7Dloc_5EB0
  6684 		ld	de, 80h	; '�'
  6684 		ld	de, 80h	; '�'
  6685 		jr	p7Dloc_5EDD
  6685 		jr	p7Dloc_5EDD
  6686 ; ---------------------------------------------------------------------------
  6686 ; ---------------------------------------------------------------------------
  6687 
  6687 
  6688 p7Dloc_5EB0:				; CODE XREF: p7Dsub_5E90+19j
  6688 p7Dloc_5EB0:
  6689 		ld	de, 0
  6689 		ld	de, 0
  6690 		jr	p7Dloc_5EDD
  6690 		jr	p7Dloc_5EDD
  6691 ; ---------------------------------------------------------------------------
  6691 ; ---------------------------------------------------------------------------
  6692 
  6692 
  6693 p7Dloc_5EB5:				; CODE XREF: p7Dsub_5E90+Ej
  6693 p7Dloc_5EB5:
  6694 		inc	hl
  6694 		inc	hl
  6695 		ld	a, 1
  6695 		ld	a, 1
  6696 		rst	28h
  6696 		rst	28h
  6697 ; ---------------------------------------------------------------------------
  6697 ; ---------------------------------------------------------------------------
  6698 		.dw 805Ah
  6698 		.dw 805Ah
  6715 		call	p7Dsub_4E9B
  6715 		call	p7Dsub_4E9B
  6716 		ld	e, a
  6716 		ld	e, a
  6717 		jr	p7Dloc_5EDD
  6717 		jr	p7Dloc_5EDD
  6718 ; ---------------------------------------------------------------------------
  6718 ; ---------------------------------------------------------------------------
  6719 
  6719 
  6720 p7Dloc_5ED6:				; CODE XREF: p7Dsub_5E90+34j
  6720 p7Dloc_5ED6:
  6721 		ld	d, 0
  6721 		ld	d, 0
  6722 		pop	af
  6722 		pop	af
  6723 		call	p7Dsub_4E9B
  6723 		call	p7Dsub_4E9B
  6724 		ld	e, a
  6724 		ld	e, a
  6725 
  6725 
  6726 p7Dloc_5EDD:				; CODE XREF: p7Dsub_5E90+1Ej p7Dsub_5E90+23j ...
  6726 p7Dloc_5EDD:
  6727 		pop	af
  6727 		pop	af
  6728 		ld	b, a
  6728 		ld	b, a
  6729 		call	p7Dsub_75EC
  6729 		call	p7Dsub_75EC
  6730 		sub	b
  6730 		sub	b
  6731 		ld	bc, 0
  6731 		ld	bc, 0
  6748 
  6748 
  6749 
  6749 
  6750 ; =============== S U B	R O U T	I N E =======================================
  6750 ; =============== S U B	R O U T	I N E =======================================
  6751 
  6751 
  6752 
  6752 
  6753 p7Dsub_5EFC:				; CODE XREF: seg001:7137p seg001:71DDp
  6753 p7Dsub_5EFC:
  6754 		push	hl
  6754 		push	hl
  6755 		push	bc
  6755 		push	bc
  6756 		push	de
  6756 		push	de
  6757 		push	hl
  6757 		push	hl
  6758 		pop	de
  6758 		pop	de
  6778 		jr	nc, p7Dloc_5F25
  6778 		jr	nc, p7Dloc_5F25
  6779 		or	a
  6779 		or	a
  6780 		jr	p7Dloc_5F26
  6780 		jr	p7Dloc_5F26
  6781 ; ---------------------------------------------------------------------------
  6781 ; ---------------------------------------------------------------------------
  6782 
  6782 
  6783 p7Dloc_5F25:				; CODE XREF: p7Dsub_5EFC+9j p7Dsub_5EFC+12j	...
  6783 p7Dloc_5F25:
  6784 		scf
  6784 		scf
  6785 
  6785 
  6786 p7Dloc_5F26:				; CODE XREF: p7Dsub_5EFC+27j
  6786 p7Dloc_5F26:
  6787 		pop	de
  6787 		pop	de
  6788 		pop	bc
  6788 		pop	bc
  6789 		pop	hl
  6789 		pop	hl
  6790 		ret
  6790 		ret
  6791 ; End of function p7Dsub_5EFC
  6791 ; End of function p7Dsub_5EFC
  6813 ; ---------------------------------------------------------------------------
  6813 ; ---------------------------------------------------------------------------
  6814 		pop	de
  6814 		pop	de
  6815 		ld	bc, 2
  6815 		ld	bc, 2
  6816 		ex	de, hl
  6816 		ex	de, hl
  6817 
  6817 
  6818 p7Dloc_5F4B:				; CODE XREF: seg001:5F9Cj
  6818 p7Dloc_5F4B:
  6819 		push	bc
  6819 		push	bc
  6820 		call	p7Dsub_4566
  6820 		call	p7Dsub_4566
  6821 		ld	b, a
  6821 		ld	b, a
  6822 		push	hl
  6822 		push	hl
  6823 		call	p7Dsub_456D
  6823 		call	p7Dsub_456D
  6839 		pop	hl
  6839 		pop	hl
  6840 		ld	a, 0
  6840 		ld	a, 0
  6841 		cp	b
  6841 		cp	b
  6842 		jr	z, p7Dloc_5F74
  6842 		jr	z, p7Dloc_5F74
  6843 
  6843 
  6844 p7Dloc_5F70:				; CODE XREF: seg001:5F72j
  6844 p7Dloc_5F70:
  6845 		inc	a
  6845 		inc	a
  6846 		dec	hl
  6846 		dec	hl
  6847 		djnz	p7Dloc_5F70
  6847 		djnz	p7Dloc_5F70
  6848 
  6848 
  6849 p7Dloc_5F74:				; CODE XREF: seg001:5F6Ej
  6849 p7Dloc_5F74:
  6850 		pop	bc
  6850 		pop	bc
  6851 		pop	de
  6851 		pop	de
  6852 		or	a
  6852 		or	a
  6853 		adc	a, c
  6853 		adc	a, c
  6854 		ld	c, a
  6854 		ld	c, a
  6882 		ret
  6882 		ret
  6883 
  6883 
  6884 ; =============== S U B	R O U T	I N E =======================================
  6884 ; =============== S U B	R O U T	I N E =======================================
  6885 
  6885 
  6886 
  6886 
  6887 p7Dsub_5F9F:				; CODE XREF: seg001:5F87p
  6887 p7Dsub_5F9F:
  6888 		push	hl
  6888 		push	hl
  6889 		ld	a, (hl)
  6889 		ld	a, (hl)
  6890 		cp	0
  6890 		cp	0
  6891 		jr	nz, p7Dloc_5FBD
  6891 		jr	nz, p7Dloc_5FBD
  6892 		push	hl
  6892 		push	hl
  6912 		pop	hl
  6912 		pop	hl
  6913 		ld	(hl), e
  6913 		ld	(hl), e
  6914 		inc	hl
  6914 		inc	hl
  6915 		ld	(hl), d
  6915 		ld	(hl), d
  6916 
  6916 
  6917 p7Dloc_5FBD:				; CODE XREF: p7Dsub_5F9F+4j
  6917 p7Dloc_5FBD:
  6918 		pop	hl
  6918 		pop	hl
  6919 		ret
  6919 		ret
  6920 ; End of function p7Dsub_5F9F
  6920 ; End of function p7Dsub_5F9F
  6921 
  6921 
  6922 ; ---------------------------------------------------------------------------
  6922 ; ---------------------------------------------------------------------------
  6952 		.db    0
  6952 		.db    0
  6953 
  6953 
  6954 ; =============== S U B	R O U T	I N E =======================================
  6954 ; =============== S U B	R O U T	I N E =======================================
  6955 
  6955 
  6956 
  6956 
  6957 relockFlashBack:			; CODE XREF: seg001:4014j seg001:401Fj ...
  6957 relockFlashBack:
  6958 		push	af
  6958 		push	af
  6959 		xor	a
  6959 		xor	a
  6960 		nop
  6960 		nop
  6961 		di
  6961 		di
  6962 		nop
  6962 		nop
  6973 
  6973 
  6974 
  6974 
  6975 ; =============== S U B	R O U T	I N E =======================================
  6975 ; =============== S U B	R O U T	I N E =======================================
  6976 
  6976 
  6977 
  6977 
  6978 Page7D_3E10:				; CODE XREF: seg001:70CDp
  6978 Page7D_3E10:
  6979 		ld	(Abackup), a
  6979 		ld	(Abackup), a
  6980 		ld	a, i
  6980 		ld	a, i
  6981 		di
  6981 		di
  6982 		push	af
  6982 		push	af
  6983 		ld	a, (Abackup)
  6983 		ld	a, (Abackup)
  6985 		ld	(Abackup), a
  6985 		ld	(Abackup), a
  6986 		pop	af
  6986 		pop	af
  6987 		jp	po, p7Dloc_6002
  6987 		jp	po, p7Dloc_6002
  6988 		ei
  6988 		ei
  6989 
  6989 
  6990 p7Dloc_6002:				; CODE XREF: Page7D_3E10+11j
  6990 p7Dloc_6002:
  6991 		ld	a, (Abackup)
  6991 		ld	a, (Abackup)
  6992 		ret
  6992 		ret
  6993 ; End of function Page7D_3E10
  6993 ; End of function Page7D_3E10
  6994 
  6994 
  6995 
  6995 
  6996 ; =============== S U B	R O U T	I N E =======================================
  6996 ; =============== S U B	R O U T	I N E =======================================
  6997 
  6997 
  6998 
  6998 
  6999 p7Dsub_6006:				; CODE XREF: seg001:5321p
  6999 p7Dsub_6006:
  7000 		; p7Dsub_53B3:p7Dloc_53D1p
  7000 		; p7Dsub_53B3:p7Dloc_53D1p
  7001 		push	af
  7001 		push	af
  7002 		push	bc
  7002 		push	bc
  7003 		push	af
  7003 		push	af
  7004 		pop	bc
  7004 		pop	bc
  7011 
  7011 
  7012 
  7012 
  7013 ; =============== S U B	R O U T	I N E =======================================
  7013 ; =============== S U B	R O U T	I N E =======================================
  7014 
  7014 
  7015 
  7015 
  7016 p7Dsub_6011:				; CODE XREF: seg001:5332p p7Dsub_53B3+2Fj
  7016 p7Dsub_6011:
  7017 		ld	(unk_83EC), a
  7017 		ld	(unk_83EC), a
  7018 		push	bc
  7018 		push	bc
  7019 		ld	b, a
  7019 		ld	b, a
  7020 		ld	a, (unk_83EA)
  7020 		ld	a, (unk_83EA)
  7021 		ld	c, a
  7021 		ld	c, a
  7028 
  7028 
  7029 
  7029 
  7030 ; =============== S U B	R O U T	I N E =======================================
  7030 ; =============== S U B	R O U T	I N E =======================================
  7031 
  7031 
  7032 
  7032 
  7033 p7Dsub_6021:				; CODE XREF: p7Dsub_4992+1Dp p7Dsub_4AC9+64p ...
  7033 p7Dsub_6021:
  7034 		call	p7Dsub_75F5
  7034 		call	p7Dsub_75F5
  7035 
  7035 
  7036 p7Dloc_6024:				; CODE XREF: p7Dsub_6021+44j
  7036 p7Dloc_6024:
  7037 		ld	a, (appID)
  7037 		ld	a, (appID)
  7038 		ld	c, a
  7038 		ld	c, a
  7039 		ld	b, 0
  7039 		ld	b, 0
  7040 		ld	hl, 838Eh
  7040 		ld	hl, 838Eh
  7041 		ld	de, ramStart
  7041 		ld	de, ramStart
  7058 		jr	nz, p7Dloc_6053
  7058 		jr	nz, p7Dloc_6053
  7059 		or	a
  7059 		or	a
  7060 		jp	p7Dloc_61A4
  7060 		jp	p7Dloc_61A4
  7061 ; ---------------------------------------------------------------------------
  7061 ; ---------------------------------------------------------------------------
  7062 
  7062 
  7063 p7Dloc_6053:				; CODE XREF: p7Dsub_6021+2Cj
  7063 p7Dloc_6053:
  7064 		push	af
  7064 		push	af
  7065 		ld	a, (ramStart)
  7065 		ld	a, (ramStart)
  7066 		ld	c, a
  7066 		ld	c, a
  7067 		ld	b, 0
  7067 		ld	b, 0
  7068 		ld	hl, 8001h
  7068 		ld	hl, 8001h
  7076 
  7076 
  7077 
  7077 
  7078 ; =============== S U B	R O U T	I N E =======================================
  7078 ; =============== S U B	R O U T	I N E =======================================
  7079 
  7079 
  7080 
  7080 
  7081 p7Dsub_6067:				; CODE XREF: p7Dsub_6021+29p
  7081 p7Dsub_6067:
  7082 		ld	de, OP2
  7082 		ld	de, OP2
  7083 		ld	hl, appID
  7083 		ld	hl, appID
  7084 		ld	a, (de)
  7084 		ld	a, (de)
  7085 		ld	c, (hl)
  7085 		ld	c, (hl)
  7086 		cp	c
  7086 		cp	c
  7087 		ret	nz
  7087 		ret	nz
  7088 		ld	b, c
  7088 		ld	b, c
  7089 
  7089 
  7090 p7Dloc_6072:				; CODE XREF: p7Dsub_6067+10j
  7090 p7Dloc_6072:
  7091 		inc	hl
  7091 		inc	hl
  7092 		inc	de
  7092 		inc	de
  7093 		ld	a, (de)
  7093 		ld	a, (de)
  7094 		cp	(hl)
  7094 		cp	(hl)
  7095 		ret	nz
  7095 		ret	nz
  7099 
  7099 
  7100 
  7100 
  7101 ; =============== S U B	R O U T	I N E =======================================
  7101 ; =============== S U B	R O U T	I N E =======================================
  7102 
  7102 
  7103 
  7103 
  7104 p7Dsub_607A:				; CODE XREF: p7Dsub_6021+13p p7Dsub_607A+19j ...
  7104 p7Dsub_607A:
  7105 		ld	de, appSearchPage
  7105 		ld	de, appSearchPage
  7106 		ld	a, (de)
  7106 		ld	a, (de)
  7107 		or	a
  7107 		or	a
  7108 		jr	z, locret_60E4
  7108 		jr	z, locret_60E4
  7109 		dec	a
  7109 		dec	a
  7112 		jr	nz, p7Dloc_608A
  7112 		jr	nz, p7Dloc_608A
  7113 		scf
  7113 		scf
  7114 		jr	locret_60E4
  7114 		jr	locret_60E4
  7115 ; ---------------------------------------------------------------------------
  7115 ; ---------------------------------------------------------------------------
  7116 
  7116 
  7117 p7Dloc_608A:				; CODE XREF: p7Dsub_607A+Bj
  7117 p7Dloc_608A:
  7118 		ld	a, (appSearchPage)
  7118 		ld	a, (appSearchPage)
  7119 		ld	hl, 4000h
  7119 		ld	hl, 4000h
  7120 		call	Page0Call_3E31
  7120 		call	Page0Call_3E31
  7121 		jr	nz, p7Dsub_607A
  7121 		jr	nz, p7Dsub_607A
  7122 		ld	de, 8010h
  7122 		ld	de, 8010h
  7150 		pop	bc
  7150 		pop	bc
  7151 		pop	hl
  7151 		pop	hl
  7152 		jr	p7Dsub_607A
  7152 		jr	p7Dsub_607A
  7153 ; ---------------------------------------------------------------------------
  7153 ; ---------------------------------------------------------------------------
  7154 
  7154 
  7155 p7Dloc_60C2:				; CODE XREF: p7Dsub_607A+42j
  7155 p7Dloc_60C2:
  7156 		call	ZeroOP2
  7156 		call	ZeroOP2
  7157 		pop	bc
  7157 		pop	bc
  7158 		pop	hl
  7158 		pop	hl
  7159 		ld	a, b
  7159 		ld	a, b
  7160 		or	a
  7160 		or	a
  7163 		ld	a, c
  7163 		ld	a, c
  7164 		ld	e, 9
  7164 		ld	e, 9
  7165 		sub	e
  7165 		sub	e
  7166 		jr	c, p7Dloc_60D5
  7166 		jr	c, p7Dloc_60D5
  7167 
  7167 
  7168 p7Dloc_60D2:				; CODE XREF: p7Dsub_607A+4Fj
  7168 p7Dloc_60D2:
  7169 		ld	bc, 8
  7169 		ld	bc, 8
  7170 
  7170 
  7171 p7Dloc_60D5:				; CODE XREF: p7Dsub_607A+56j
  7171 p7Dloc_60D5:
  7172 		ld	a, c
  7172 		ld	a, c
  7173 		ld	(OP2), a
  7173 		ld	(OP2), a
  7174 		ld	a, (appSearchPage)
  7174 		ld	a, (appSearchPage)
  7175 		ld	de, 8484h
  7175 		ld	de, 8484h
  7176 		rst	28h
  7176 		rst	28h
  7178 		.dw 8054h
  7178 		.dw 8054h
  7179 ; ---------------------------------------------------------------------------
  7179 ; ---------------------------------------------------------------------------
  7180 		scf
  7180 		scf
  7181 		ccf
  7181 		ccf
  7182 
  7182 
  7183 locret_60E4:				; CODE XREF: p7Dsub_607A+5j p7Dsub_607A+Ej
  7183 locret_60E4:
  7184 		ret
  7184 		ret
  7185 ; End of function p7Dsub_607A
  7185 ; End of function p7Dsub_607A
  7186 
  7186 
  7187 ; ---------------------------------------------------------------------------
  7187 ; ---------------------------------------------------------------------------
  7188 
  7188 
  7192 ; ---------------------------------------------------------------------------
  7192 ; ---------------------------------------------------------------------------
  7193 
  7193 
  7194 FindAppDn:
  7194 FindAppDn:
  7195 		xor	a
  7195 		xor	a
  7196 
  7196 
  7197 p7Dloc_60EA:				; CODE XREF: seg001:60E7j
  7197 p7Dloc_60EA:
  7198 		ld	bc, 0
  7198 		ld	bc, 0
  7199 		push	bc
  7199 		push	bc
  7200 		call	OP1ToOP3
  7200 		call	OP1ToOP3
  7201 		push	af
  7201 		push	af
  7202 		ld	a, (unk_9C87)
  7202 		ld	a, (unk_9C87)
  7203 		cp	69h ; 'i'
  7203 		cp	69h ; 'i'
  7204 		call	nz, p7Dsub_7BA4
  7204 		call	nz, p7Dsub_7BA4
  7205 		call	p7Dsub_75F5
  7205 		call	p7Dsub_75F5
  7206 		pop	af
  7206 		pop	af
  7207 
  7207 
  7208 p7Dloc_60FE:				; CODE XREF: seg001:611Aj seg001:6121j ...
  7208 p7Dloc_60FE:
  7209 		push	af
  7209 		push	af
  7210 		call	p7Dsub_6388
  7210 		call	p7Dsub_6388
  7211 		pop	hl
  7211 		pop	hl
  7212 		ld	a, h
  7212 		ld	a, h
  7213 		jr	c, p7Dloc_6140
  7213 		jr	c, p7Dloc_6140
  7231 		call	p7Dloc_6177
  7231 		call	p7Dloc_6177
  7232 		jr	c, p7Dloc_6165
  7232 		jr	c, p7Dloc_6165
  7233 		jr	p7Dloc_60FE
  7233 		jr	p7Dloc_60FE
  7234 ; ---------------------------------------------------------------------------
  7234 ; ---------------------------------------------------------------------------
  7235 
  7235 
  7236 p7Dloc_612E:				; CODE XREF: seg001:6116j
  7236 p7Dloc_612E:
  7237 		pop	bc
  7237 		pop	bc
  7238 		inc	c
  7238 		inc	c
  7239 		push	bc
  7239 		push	bc
  7240 		bit	0, a
  7240 		bit	0, a
  7241 		jr	z, p7Dloc_60FE
  7241 		jr	z, p7Dloc_60FE
  7244 		call	p7Dloc_6177
  7244 		call	p7Dloc_6177
  7245 		jr	c, p7Dloc_60FE
  7245 		jr	c, p7Dloc_60FE
  7246 		jr	p7Dloc_6165
  7246 		jr	p7Dloc_6165
  7247 ; ---------------------------------------------------------------------------
  7247 ; ---------------------------------------------------------------------------
  7248 
  7248 
  7249 p7Dloc_6140:				; CODE XREF: seg001:6104j
  7249 p7Dloc_6140:
  7250 		call	OP3ToOP1
  7250 		call	OP3ToOP1
  7251 		res	0, a
  7251 		res	0, a
  7252 		sub	2
  7252 		sub	2
  7253 		pop	bc
  7253 		pop	bc
  7254 		push	af
  7254 		push	af
  7261 		cp	1
  7261 		cp	1
  7262 		ld	a, 69h ; 'i'
  7262 		ld	a, 69h ; 'i'
  7263 		jr	nz, p7Dloc_615E
  7263 		jr	nz, p7Dloc_615E
  7264 		xor	a
  7264 		xor	a
  7265 
  7265 
  7266 p7Dloc_615E:				; CODE XREF: seg001:615Bj
  7266 p7Dloc_615E:
  7267 		ld	(unk_9C87), a
  7267 		ld	(unk_9C87), a
  7268 		pop	af
  7268 		pop	af
  7269 		ret
  7269 		ret
  7270 ; ---------------------------------------------------------------------------
  7270 ; ---------------------------------------------------------------------------
  7271 
  7271 
  7272 p7Dloc_6163:				; CODE XREF: seg001:6125j seg001:6137j
  7272 p7Dloc_6163:
  7273 		set	1, a
  7273 		set	1, a
  7274 
  7274 
  7275 p7Dloc_6165:				; CODE XREF: seg001:612Aj seg001:613Ej
  7275 p7Dloc_6165:
  7276 		call	OP2ToOP3
  7276 		call	OP2ToOP3
  7277 		push	af
  7277 		push	af
  7278 		ld	a, (appSearchPage)
  7278 		ld	a, (appSearchPage)
  7279 		ld	(unk_8497), a
  7279 		ld	(unk_8497), a
  7280 		pop	af
  7280 		pop	af
  7281 		jr	p7Dloc_60FE
  7281 		jr	p7Dloc_60FE
  7282 
  7282 
  7283 ; =============== S U B	R O U T	I N E =======================================
  7283 ; =============== S U B	R O U T	I N E =======================================
  7284 
  7284 
  7285 
  7285 
  7286 p7Dsub_6172:				; CODE XREF: seg001:6113p p7Dsub_6186+7p	...
  7286 p7Dsub_6172:
  7287 		ld	de, 8480h
  7287 		ld	de, 8480h
  7288 		jr	p7Dloc_617A
  7288 		jr	p7Dloc_617A
  7289 ; ---------------------------------------------------------------------------
  7289 ; ---------------------------------------------------------------------------
  7290 
  7290 
  7291 p7Dloc_6177:				; CODE XREF: seg001:6127p seg001:6139p
  7291 p7Dloc_6177:
  7292 		ld	de, 8496h
  7292 		ld	de, 8496h
  7293 
  7293 
  7294 p7Dloc_617A:				; CODE XREF: p7Dsub_6172+3j
  7294 p7Dloc_617A:
  7295 		push	af
  7295 		push	af
  7296 		ld	hl, 848Bh
  7296 		ld	hl, 848Bh
  7297 		ld	b, 8
  7297 		ld	b, 8
  7298 		call	Page0Call_3E3D
  7298 		call	Page0Call_3E3D
  7299 		pop	hl
  7299 		pop	hl
  7303 
  7303 
  7304 
  7304 
  7305 ; =============== S U B	R O U T	I N E =======================================
  7305 ; =============== S U B	R O U T	I N E =======================================
  7306 
  7306 
  7307 
  7307 
  7308 p7Dsub_6186:				; CODE XREF: p7Dsub_6428+3p p7Dsub_7B41+21p
  7308 p7Dsub_6186:
  7309 		call	p7Dsub_75F5
  7309 		call	p7Dsub_75F5
  7310 
  7310 
  7311 p7Dloc_6189:				; CODE XREF: p7Dsub_6186+Cj
  7311 p7Dloc_6189:
  7312 		call	p7Dsub_638B
  7312 		call	p7Dsub_638B
  7313 		ret	c
  7313 		ret	c
  7314 		call	p7Dsub_6172
  7314 		call	p7Dsub_6172
  7315 		bit	3, c
  7315 		bit	3, c
  7316 		jr	z, p7Dloc_6189
  7316 		jr	z, p7Dloc_6189
  7317 		jr	p7Dloc_61A4
  7317 		jr	p7Dloc_61A4
  7318 ; ---------------------------------------------------------------------------
  7318 ; ---------------------------------------------------------------------------
  7319 
  7319 
  7320 FindApp:				; CODE XREF: seg001:62CEp
  7320 FindApp:
  7321 		call	p7Dsub_75F5
  7321 		call	p7Dsub_75F5
  7322 
  7322 
  7323 p7Dloc_6199:				; CODE XREF: p7Dsub_6186+1Cj
  7323 p7Dloc_6199:
  7324 		call	p7Dsub_6388
  7324 		call	p7Dsub_6388
  7325 		ret	c
  7325 		ret	c
  7326 		call	p7Dsub_6172
  7326 		call	p7Dsub_6172
  7327 		bit	3, c
  7327 		bit	3, c
  7328 		jr	z, p7Dloc_6199
  7328 		jr	z, p7Dloc_6199
  7329 
  7329 
  7330 p7Dloc_61A4:				; CODE XREF: seg001:5882p p7Dsub_6021+2Fj ...
  7330 p7Dloc_61A4:
  7331 		ld	a, (appSearchPage)
  7331 		ld	a, (appSearchPage)
  7332 		or	a
  7332 		or	a
  7333 		push	bc
  7333 		push	bc
  7334 		ld	de, 8070h
  7334 		ld	de, 8070h
  7335 		ld	hl, 4000h
  7335 		ld	hl, 4000h
  7350 		ret
  7350 		ret
  7351 ; End of function p7Dsub_6186
  7351 ; End of function p7Dsub_6186
  7352 
  7352 
  7353 ; ---------------------------------------------------------------------------
  7353 ; ---------------------------------------------------------------------------
  7354 
  7354 
  7355 p7Dloc_61BC:				; CODE XREF: seg001:6363p
  7355 p7Dloc_61BC:
  7356 		call	Page0Call_2D2D
  7356 		call	Page0Call_2D2D
  7357 		res	1, (iy+5)
  7357 		res	1, (iy+5)
  7358 		push	af
  7358 		push	af
  7359 		call	Page0Call_3CFF
  7359 		call	Page0Call_3CFF
  7360 		pop	af
  7360 		pop	af
  7390 		jr	z, p7Dloc_6201
  7390 		jr	z, p7Dloc_6201
  7391 		ld	a, 50h ; 'P'
  7391 		ld	a, 50h ; 'P'
  7392 		call	Page0Call_3C45
  7392 		call	Page0Call_3C45
  7393 		jr	z, p7Dloc_620C
  7393 		jr	z, p7Dloc_620C
  7394 
  7394 
  7395 p7Dloc_6201:				; CODE XREF: seg001:61F8j
  7395 p7Dloc_6201:
  7396 		ld	hl, aCCopyright1998-2
  7396 		ld	hl, aCCopyright1998-2
  7397 		ld	de, tempSwapArea
  7397 		ld	de, tempSwapArea
  7398 		ld	bc, 19h
  7398 		ld	bc, 19h
  7399 		ldir
  7399 		ldir
  7400 
  7400 
  7401 p7Dloc_620C:				; CODE XREF: seg001:61FFj
  7401 p7Dloc_620C:
  7402 		ld	hl, tempSwapArea
  7402 		ld	hl, tempSwapArea
  7403 		call	p7Dsub_62B3
  7403 		call	p7Dsub_62B3
  7404 		ld	hl, aTexasInstrumentsInc-2
  7404 		ld	hl, aTexasInstrumentsInc-2
  7405 		call	p7Dsub_62B3
  7405 		call	p7Dsub_62B3
  7406 		pop	af
  7406 		pop	af
  7417 		call	nz, Page0Call_3C45
  7417 		call	nz, Page0Call_3C45
  7418 		call	p7Dsub_62B3
  7418 		call	p7Dsub_62B3
  7419 		jr	p7Dloc_6246
  7419 		jr	p7Dloc_6246
  7420 ; ---------------------------------------------------------------------------
  7420 ; ---------------------------------------------------------------------------
  7421 
  7421 
  7422 p7Dloc_6237:				; CODE XREF: seg001:6224j
  7422 p7Dloc_6237:
  7423 		ld	hl, aExpirationDate-2
  7423 		ld	hl, aExpirationDate-2
  7424 		ld	a, 52h ; 'R'
  7424 		ld	a, 52h ; 'R'
  7425 		bit	1, (iy+35h)
  7425 		bit	1, (iy+35h)
  7426 		call	nz, Page0Call_3C45
  7426 		call	nz, Page0Call_3C45
  7427 		call	p7Dsub_62B3
  7427 		call	p7Dsub_62B3
  7428 
  7428 
  7429 p7Dloc_6246:				; CODE XREF: seg001:6235j
  7429 p7Dloc_6246:
  7430 		pop	af
  7430 		pop	af
  7431 		push	af
  7431 		push	af
  7432 		call	p7Dloc_54A0
  7432 		call	p7Dloc_54A0
  7433 		call	p7Dloc_59B3
  7433 		call	p7Dloc_59B3
  7434 		push	de
  7434 		push	de
  7447 		pop	af
  7447 		pop	af
  7448 		push	af
  7448 		push	af
  7449 		call	Page7D_2CA0
  7449 		call	Page7D_2CA0
  7450 		jr	z, p7Dloc_629B
  7450 		jr	z, p7Dloc_629B
  7451 
  7451 
  7452 p7Dloc_6270:				; CODE XREF: seg001:621Dj
  7452 p7Dloc_6270:
  7453 		pop	af
  7453 		pop	af
  7454 		push	af
  7454 		push	af
  7455 		call	p7Dloc_543D
  7455 		call	p7Dloc_543D
  7456 		jr	nz, p7Dloc_629B
  7456 		jr	nz, p7Dloc_629B
  7457 		ld	hl, aTrialsRemaining-2
  7457 		ld	hl, aTrialsRemaining-2
  7465 		ld	a, (OP1)
  7465 		ld	a, (OP1)
  7466 		call	Page0Call_3D47
  7466 		call	Page0Call_3D47
  7467 		ld	a, (OP1+1)
  7467 		ld	a, (OP1+1)
  7468 		call	Page0Call_3D47
  7468 		call	Page0Call_3D47
  7469 
  7469 
  7470 p7Dloc_629B:				; CODE XREF: seg001:626Ej seg001:6275j
  7470 p7Dloc_629B:
  7471 		pop	af
  7471 		pop	af
  7472 		ld	hl, aPressAnyKey___-2
  7472 		ld	hl, aPressAnyKey___-2
  7473 		ld	a, 54h ; 'T'
  7473 		ld	a, 54h ; 'T'
  7474 		bit	1, (iy+35h)
  7474 		bit	1, (iy+35h)
  7475 		call	nz, Page0Call_3C45
  7475 		call	nz, Page0Call_3C45
  7480 		ret
  7480 		ret
  7481 
  7481 
  7482 ; =============== S U B	R O U T	I N E =======================================
  7482 ; =============== S U B	R O U T	I N E =======================================
  7483 
  7483 
  7484 
  7484 
  7485 p7Dsub_62B3:				; CODE XREF: seg001:620Fp seg001:6215p ...
  7485 p7Dsub_62B3:
  7486 		push	hl
  7486 		push	hl
  7487 		call	ldHLind
  7487 		call	ldHLind
  7488 		ld	(penCol), hl
  7488 		ld	(penCol), hl
  7489 		pop	hl
  7489 		pop	hl
  7490 		inc	hl
  7490 		inc	hl
  7538 ; ---------------------------------------------------------------------------
  7538 ; ---------------------------------------------------------------------------
  7539 		.dw 8096h
  7539 		.dw 8096h
  7540 ; ---------------------------------------------------------------------------
  7540 ; ---------------------------------------------------------------------------
  7541 		jr	z, p7Dloc_6348
  7541 		jr	z, p7Dloc_6348
  7542 
  7542 
  7543 p7Dloc_6305:				; CODE XREF: seg001:62FCj
  7543 p7Dloc_6305:
  7544 		pop	af
  7544 		pop	af
  7545 		push	af
  7545 		push	af
  7546 		ld	hl, 4000h
  7546 		ld	hl, 4000h
  7547 		call	p7Dsub_5E59
  7547 		call	p7Dsub_5E59
  7548 		call	p7Dsub_52D9
  7548 		call	p7Dsub_52D9
  7549 		jr	c, p7Dloc_6314
  7549 		jr	c, p7Dloc_6314
  7550 		jr	z, p7Dloc_6348
  7550 		jr	z, p7Dloc_6348
  7551 
  7551 
  7552 p7Dloc_6314:				; CODE XREF: seg001:6310j
  7552 p7Dloc_6314:
  7553 		pop	af
  7553 		pop	af
  7554 		push	af
  7554 		push	af
  7555 		call	p7Dsub_5E78
  7555 		call	p7Dsub_5E78
  7556 		jr	c, p7Dloc_6348
  7556 		jr	c, p7Dloc_6348
  7557 		jr	nz, p7Dloc_6348
  7557 		jr	nz, p7Dloc_6348
  7558 
  7558 
  7559 p7Dloc_631D:				; CODE XREF: seg001:62F5j
  7559 p7Dloc_631D:
  7560 		pop	af
  7560 		pop	af
  7561 		pop	hl
  7561 		pop	hl
  7562 		push	af
  7562 		push	af
  7563 		call	p7Dsub_5E31
  7563 		call	p7Dsub_5E31
  7564 		call	Chk_Batt_Low
  7564 		call	Chk_Batt_Low
  7570 		jr	nz, p7Dloc_6332
  7570 		jr	nz, p7Dloc_6332
  7571 		pop	af
  7571 		pop	af
  7572 		push	af
  7572 		push	af
  7573 		call	p7Dsub_576D
  7573 		call	p7Dsub_576D
  7574 
  7574 
  7575 p7Dloc_6332:				; CODE XREF: seg001:632Bj
  7575 p7Dloc_6332:
  7576 		pop	af
  7576 		pop	af
  7577 		call	Page7D_2BE6
  7577 		call	Page7D_2BE6
  7578 		call	Page0Call_2E65
  7578 		call	Page0Call_2E65
  7579 		call	Page0Call_3E8B
  7579 		call	Page0Call_3E8B
  7580 		ld	hl, 0
  7580 		ld	hl, 0
  7581 		ld	(curRow), hl
  7581 		ld	(curRow), hl
  7582 		jr	p7Dloc_6345
  7582 		jr	p7Dloc_6345
  7583 ; ---------------------------------------------------------------------------
  7583 ; ---------------------------------------------------------------------------
  7584 
  7584 
  7585 p7Dloc_6344:				; CODE XREF: seg001:6326j
  7585 p7Dloc_6344:
  7586 		pop	af
  7586 		pop	af
  7587 
  7587 
  7588 p7Dloc_6345:				; CODE XREF: seg001:62D1j seg001:6342j
  7588 p7Dloc_6345:
  7589 		jp	Page0Call_2539
  7589 		jp	Page0Call_2539
  7590 ; ---------------------------------------------------------------------------
  7590 ; ---------------------------------------------------------------------------
  7591 
  7591 
  7592 p7Dloc_6348:				; CODE XREF: seg001:6303j seg001:6312j ...
  7592 p7Dloc_6348:
  7593 		pop	af
  7593 		pop	af
  7594 		ld	(appPage), a
  7594 		ld	(appPage), a
  7595 		call	p7Dsub_6FC0
  7595 		call	p7Dsub_6FC0
  7596 		jp	nz, Page0Call_2555
  7596 		jp	nz, Page0Call_2555
  7597 		call	NZIf83Plus
  7597 		call	NZIf83Plus
  7600 		call	p7Dloc_5C2D
  7600 		call	p7Dloc_5C2D
  7601 		jr	z, p7Dloc_6366
  7601 		jr	z, p7Dloc_6366
  7602 		ld	a, (appPage)
  7602 		ld	a, (appPage)
  7603 		call	p7Dloc_61BC
  7603 		call	p7Dloc_61BC
  7604 
  7604 
  7605 p7Dloc_6366:				; CODE XREF: seg001:635Ej
  7605 p7Dloc_6366:
  7606 		call	relockFlashBack
  7606 		call	relockFlashBack
  7607 		ld	a, (appPage)
  7607 		ld	a, (appPage)
  7608 		pop	hl
  7608 		pop	hl
  7609 		ei
  7609 		ei
  7610 		ret
  7610 		ret
  7622 		nop
  7622 		nop
  7623 
  7623 
  7624 ; =============== S U B	R O U T	I N E =======================================
  7624 ; =============== S U B	R O U T	I N E =======================================
  7625 
  7625 
  7626 
  7626 
  7627 p7Dsub_6388:				; CODE XREF: seg001:60FFp
  7627 p7Dsub_6388:
  7628 		; p7Dsub_6186:p7Dloc_6199p
  7628 		; p7Dsub_6186:p7Dloc_6199p
  7629 		scf
  7629 		scf
  7630 		jr	p7Dloc_638D
  7630 		jr	p7Dloc_638D
  7631 ; End of function p7Dsub_6388
  7631 ; End of function p7Dsub_6388
  7632 
  7632 
  7633 
  7633 
  7634 ; =============== S U B	R O U T	I N E =======================================
  7634 ; =============== S U B	R O U T	I N E =======================================
  7635 
  7635 
  7636 
  7636 
  7637 p7Dsub_638B:				; CODE XREF: seg001:587Ap
  7637 p7Dsub_638B:
  7638 		; p7Dsub_6186:p7Dloc_6189p ...
  7638 		; p7Dsub_6186:p7Dloc_6189p ...
  7639 		scf
  7639 		scf
  7640 		ccf
  7640 		ccf
  7641 
  7641 
  7642 p7Dloc_638D:				; CODE XREF: p7Dsub_6388+1j
  7642 p7Dloc_638D:
  7643 		push	af
  7643 		push	af
  7644 
  7644 
  7645 p7Dloc_638E:				; CODE XREF: p7Dsub_638B+1Dj p7Dsub_638B+32j ...
  7645 p7Dloc_638E:
  7646 		ld	de, appSearchPage
  7646 		ld	de, appSearchPage
  7647 		ld	a, (de)
  7647 		ld	a, (de)
  7648 		dec	a
  7648 		dec	a
  7649 		ld	(de), a
  7649 		ld	(de), a
  7650 		cp	7
  7650 		cp	7
  7652 		pop	af
  7652 		pop	af
  7653 		scf
  7653 		scf
  7654 		ret
  7654 		ret
  7655 ; ---------------------------------------------------------------------------
  7655 ; ---------------------------------------------------------------------------
  7656 
  7656 
  7657 p7Dloc_639B:				; CODE XREF: p7Dsub_638B+Bj
  7657 p7Dloc_639B:
  7658 		ld	a, (unk_9C87)
  7658 		ld	a, (unk_9C87)
  7659 		cp	69h ; 'i'
  7659 		cp	69h ; 'i'
  7660 		jr	nz, p7Dloc_63C8
  7660 		jr	nz, p7Dloc_63C8
  7661 		ld	a, (appSearchPage)
  7661 		ld	a, (appSearchPage)
  7662 		call	p7Dsub_7BB5
  7662 		call	p7Dsub_7BB5
  7676 		ld	a, 1
  7676 		ld	a, 1
  7677 		ld	(unk_9C87), a
  7677 		ld	(unk_9C87), a
  7678 		jr	p7Dloc_638E
  7678 		jr	p7Dloc_638E
  7679 ; ---------------------------------------------------------------------------
  7679 ; ---------------------------------------------------------------------------
  7680 
  7680 
  7681 p7Dloc_63BF:				; CODE XREF: p7Dsub_638B+2Bj
  7681 p7Dloc_63BF:
  7682 		inc	hl
  7682 		inc	hl
  7683 		ld	a, (appSearchPage)
  7683 		ld	a, (appSearchPage)
  7684 		rst	28h
  7684 		rst	28h
  7685 ; ---------------------------------------------------------------------------
  7685 ; ---------------------------------------------------------------------------
  7686 		.dw 805Ah
  7686 		.dw 805Ah
  7687 ; ---------------------------------------------------------------------------
  7687 ; ---------------------------------------------------------------------------
  7688 		jr	p7Dloc_6407
  7688 		jr	p7Dloc_6407
  7689 ; ---------------------------------------------------------------------------
  7689 ; ---------------------------------------------------------------------------
  7690 
  7690 
  7691 p7Dloc_63C8:				; CODE XREF: p7Dsub_638B+15j
  7691 p7Dloc_63C8:
  7692 		ld	a, (de)
  7692 		ld	a, (de)
  7693 		ld	hl, 4000h
  7693 		ld	hl, 4000h
  7694 		call	Page0Call_3E31
  7694 		call	Page0Call_3E31
  7695 		jr	nz, p7Dloc_638E
  7695 		jr	nz, p7Dloc_638E
  7696 		ld	de, 8040h
  7696 		ld	de, 8040h
  7728 		jr	nc, p7Dloc_6402
  7728 		jr	nc, p7Dloc_6402
  7729 		call	p7Dsub_53B3
  7729 		call	p7Dsub_53B3
  7730 		jr	p7Dloc_6405
  7730 		jr	p7Dloc_6405
  7731 ; ---------------------------------------------------------------------------
  7731 ; ---------------------------------------------------------------------------
  7732 
  7732 
  7733 p7Dloc_6402:				; CODE XREF: p7Dsub_638B+70j
  7733 p7Dloc_6402:
  7734 		call	Page7D_2B5C
  7734 		call	Page7D_2B5C
  7735 
  7735 
  7736 p7Dloc_6405:				; CODE XREF: p7Dsub_638B+75j
  7736 p7Dloc_6405:
  7737 		jr	nz, p7Dloc_638E
  7737 		jr	nz, p7Dloc_638E
  7738 
  7738 
  7739 p7Dloc_6407:				; CODE XREF: p7Dsub_638B+3Bj
  7739 p7Dloc_6407:
  7740 		pop	af
  7740 		pop	af
  7741 		push	hl
  7741 		push	hl
  7742 		push	bc
  7742 		push	bc
  7743 		call	ZeroOP2
  7743 		call	ZeroOP2
  7744 		pop	bc
  7744 		pop	bc
  7749 		ld	a, c
  7749 		ld	a, c
  7750 		ld	e, 9
  7750 		ld	e, 9
  7751 		sub	e
  7751 		sub	e
  7752 		jr	c, p7Dloc_641C
  7752 		jr	c, p7Dloc_641C
  7753 
  7753 
  7754 p7Dloc_6419:				; CODE XREF: p7Dsub_638B+86j
  7754 p7Dloc_6419:
  7755 		ld	bc, 8
  7755 		ld	bc, 8
  7756 
  7756 
  7757 p7Dloc_641C:				; CODE XREF: p7Dsub_638B+8Cj
  7757 p7Dloc_641C:
  7758 		ld	de, 8484h
  7758 		ld	de, 8484h
  7759 		ld	a, (appSearchPage)
  7759 		ld	a, (appSearchPage)
  7760 		rst	28h
  7760 		rst	28h
  7761 ; ---------------------------------------------------------------------------
  7761 ; ---------------------------------------------------------------------------
  7762 		.dw 8054h
  7762 		.dw 8054h
  7768 
  7768 
  7769 
  7769 
  7770 ; =============== S U B	R O U T	I N E =======================================
  7770 ; =============== S U B	R O U T	I N E =======================================
  7771 
  7771 
  7772 
  7772 
  7773 p7Dsub_6428:				; CODE XREF: p7Dsub_75B8+21p
  7773 p7Dsub_6428:
  7774 		push	hl
  7774 		push	hl
  7775 		push	bc
  7775 		push	bc
  7776 		push	de
  7776 		push	de
  7777 		call	p7Dsub_6186
  7777 		call	p7Dsub_6186
  7778 		jr	c, p7Dloc_6468
  7778 		jr	c, p7Dloc_6468
  7788 		call	relockFlashBack
  7788 		call	relockFlashBack
  7789 		call	Page0Call_2C67
  7789 		call	Page0Call_2C67
  7790 		jr	p7Dloc_646B
  7790 		jr	p7Dloc_646B
  7791 ; ---------------------------------------------------------------------------
  7791 ; ---------------------------------------------------------------------------
  7792 
  7792 
  7793 p7Dloc_644E:				; CODE XREF: p7Dsub_6428+13j
  7793 p7Dloc_644E:
  7794 		ld	de, 5
  7794 		ld	de, 5
  7795 		ld	a, 2
  7795 		ld	a, 2
  7796 		ld	(unk_867E), a
  7796 		ld	(unk_867E), a
  7797 		call	Page0Call_2C4F
  7797 		call	Page0Call_2C4F
  7798 		call	Page0Call_2C6D
  7798 		call	Page0Call_2C6D
  7799 		ld	a, (appInfo)
  7799 		ld	a, (appInfo)
  7800 		or	a
  7800 		or	a
  7801 		jr	nz, p7Dloc_6468
  7801 		jr	nz, p7Dloc_6468
  7802 
  7802 
  7803 p7Dloc_6462:				; CODE XREF: p7Dsub_6428+Ej
  7803 p7Dloc_6462:
  7804 		ld	a, (appInfo+1)
  7804 		ld	a, (appInfo+1)
  7805 		call	Page7D_2BE6
  7805 		call	Page7D_2BE6
  7806 
  7806 
  7807 p7Dloc_6468:				; CODE XREF: p7Dsub_6428+6j p7Dsub_6428+38j
  7807 p7Dloc_6468:
  7808 		call	relockFlashBack
  7808 		call	relockFlashBack
  7809 
  7809 
  7810 p7Dloc_646B:				; CODE XREF: p7Dsub_6428+24j
  7810 p7Dloc_646B:
  7811 		pop	de
  7811 		pop	de
  7812 		pop	bc
  7812 		pop	bc
  7813 		pop	hl
  7813 		pop	hl
  7814 		ret
  7814 		ret
  7815 ; End of function p7Dsub_6428
  7815 ; End of function p7Dsub_6428
  7846 		ld	hl, 4000h
  7846 		ld	hl, 4000h
  7847 		call	p7Dsub_4566
  7847 		call	p7Dsub_4566
  7848 		cp	8Fh ; '�'
  7848 		cp	8Fh ; '�'
  7849 		jr	z, p7Dloc_64A6
  7849 		jr	z, p7Dloc_64A6
  7850 
  7850 
  7851 p7Dloc_64A6:				; CODE XREF: seg001:649Aj
  7851 p7Dloc_64A6:
  7852 		ld	b, 0
  7852 		ld	b, 0
  7853 		ex	de, hl
  7853 		ex	de, hl
  7854 		call	p7Dsub_456D
  7854 		call	p7Dsub_456D
  7855 		jr	p7Dloc_64CE
  7855 		jr	p7Dloc_64CE
  7856 ; ---------------------------------------------------------------------------
  7856 ; ---------------------------------------------------------------------------
  7857 
  7857 
  7858 p7Dloc_64AE:				; CODE XREF: seg001:648Cj seg001:6496j
  7858 p7Dloc_64AE:
  7859 		ld	a, h
  7859 		ld	a, h
  7860 		xor	20h ; ' '
  7860 		xor	20h ; ' '
  7861 		ld	h, a
  7861 		ld	h, a
  7862 		call	p7Dsub_4566
  7862 		call	p7Dsub_4566
  7863 		cp	8Fh ; '�'
  7863 		cp	8Fh ; '�'
  7865 		cp	0
  7865 		cp	0
  7866 		jp	z, p7Dloc_64E1
  7866 		jp	z, p7Dloc_64E1
  7867 		jr	p7Dloc_64CE
  7867 		jr	p7Dloc_64CE
  7868 ; ---------------------------------------------------------------------------
  7868 ; ---------------------------------------------------------------------------
  7869 
  7869 
  7870 p7Dloc_64C0:				; CODE XREF: seg001:64B7j
  7870 p7Dloc_64C0:
  7871 		push	hl
  7871 		push	hl
  7872 		ld	a, h
  7872 		ld	a, h
  7873 		xor	20h ; ' '
  7873 		xor	20h ; ' '
  7874 		ld	h, a
  7874 		ld	h, a
  7875 		call	p7Dsub_457C
  7875 		call	p7Dsub_457C
  7876 		pop	de
  7876 		pop	de
  7877 		ld	b, 0
  7877 		ld	b, 0
  7878 		call	p7Dsub_456D
  7878 		call	p7Dsub_456D
  7879 
  7879 
  7880 p7Dloc_64CE:				; CODE XREF: seg001:64ACj seg001:64BEj ...
  7880 p7Dloc_64CE:
  7881 		pop	af
  7881 		pop	af
  7882 		cp	0Fh
  7882 		cp	0Fh
  7883 		jr	nz, p7Dloc_64D8
  7883 		jr	nz, p7Dloc_64D8
  7884 		call	Page0Call_2B8F
  7884 		call	Page0Call_2B8F
  7885 		jr	p7Dloc_64DB
  7885 		jr	p7Dloc_64DB
  7886 ; ---------------------------------------------------------------------------
  7886 ; ---------------------------------------------------------------------------
  7887 
  7887 
  7888 p7Dloc_64D8:				; CODE XREF: seg001:64D1j
  7888 p7Dloc_64D8:
  7889 		call	Page0Call_2B89
  7889 		call	Page0Call_2B89
  7890 
  7890 
  7891 p7Dloc_64DB:				; CODE XREF: seg001:64D6j
  7891 p7Dloc_64DB:
  7892 		pop	bc
  7892 		pop	bc
  7893 		pop	de
  7893 		pop	de
  7894 		pop	hl
  7894 		pop	hl
  7895 		jp	relockFlashBack
  7895 		jp	relockFlashBack
  7896 ; ---------------------------------------------------------------------------
  7896 ; ---------------------------------------------------------------------------
  7897 
  7897 
  7898 p7Dloc_64E1:				; CODE XREF: seg001:64BBj
  7898 p7Dloc_64E1:
  7899 		ld	hl, 4001h
  7899 		ld	hl, 4001h
  7900 		ld	de, 6001h
  7900 		ld	de, 6001h
  7901 
  7901 
  7902 p7Dloc_64E7:				; CODE XREF: seg001:64F4j
  7902 p7Dloc_64E7:
  7903 		call	p7Dsub_4566
  7903 		call	p7Dsub_4566
  7904 		cp	0
  7904 		cp	0
  7905 		jr	z, p7Dloc_64F2
  7905 		jr	z, p7Dloc_64F2
  7906 		cp	0FFh
  7906 		cp	0FFh
  7907 		jr	nz, p7Dloc_64F6
  7907 		jr	nz, p7Dloc_64F6
  7908 
  7908 
  7909 p7Dloc_64F2:				; CODE XREF: seg001:64ECj
  7909 p7Dloc_64F2:
  7910 		inc	hl
  7910 		inc	hl
  7911 		ex	de, hl
  7911 		ex	de, hl
  7912 		jr	p7Dloc_64E7
  7912 		jr	p7Dloc_64E7
  7913 ; ---------------------------------------------------------------------------
  7913 ; ---------------------------------------------------------------------------
  7914 
  7914 
  7915 p7Dloc_64F6:				; CODE XREF: seg001:64F0j
  7915 p7Dloc_64F6:
  7916 		ld	a, h
  7916 		ld	a, h
  7917 		xor	20h ; ' '
  7917 		xor	20h ; ' '
  7918 		and	0F0h ; '�'
  7918 		and	0F0h ; '�'
  7919 		ld	h, a
  7919 		ld	h, a
  7920 		xor	a
  7920 		xor	a
  7923 		jr	p7Dloc_64CE
  7923 		jr	p7Dloc_64CE
  7924 
  7924 
  7925 ; =============== S U B	R O U T	I N E =======================================
  7925 ; =============== S U B	R O U T	I N E =======================================
  7926 
  7926 
  7927 
  7927 
  7928 p7Dsub_6503:				; CODE XREF: seg001:5C89p
  7928 p7Dsub_6503:
  7929 		ld	a, d
  7929 		ld	a, d
  7930 		or	a
  7930 		or	a
  7931 		jr	nz, p7Dloc_650A
  7931 		jr	nz, p7Dloc_650A
  7932 		call	p7Dsub_651E
  7932 		call	p7Dsub_651E
  7933 
  7933 
  7934 p7Dloc_650A:				; CODE XREF: p7Dsub_6503+2j
  7934 p7Dloc_650A:
  7935 		xor	a
  7935 		xor	a
  7936 		ld	(hl), a
  7936 		ld	(hl), a
  7937 		ret
  7937 		ret
  7938 ; End of function p7Dsub_6503
  7938 ; End of function p7Dsub_6503
  7939 
  7939 
  7940 
  7940 
  7941 ; =============== S U B	R O U T	I N E =======================================
  7941 ; =============== S U B	R O U T	I N E =======================================
  7942 
  7942 
  7943 
  7943 
  7944 p7Dsub_650D:				; CODE XREF: seg001:628Cp
  7944 p7Dsub_650D:
  7945 		call	Page0Call_32E5
  7945 		call	Page0Call_32E5
  7946 		call	p7Dsub_6523
  7946 		call	p7Dsub_6523
  7947 		jr	z, p7Dloc_6519
  7947 		jr	z, p7Dloc_6519
  7948 		add	a, 30h ; '0'
  7948 		add	a, 30h ; '0'
  7949 		ld	(hl), a
  7949 		ld	(hl), a
  7950 		inc	hl
  7950 		inc	hl
  7951 
  7951 
  7952 p7Dloc_6519:				; CODE XREF: p7Dsub_650D+6j
  7952 p7Dloc_6519:
  7953 		ld	a, b
  7953 		ld	a, b
  7954 		call	p7Dsub_6523
  7954 		call	p7Dsub_6523
  7955 		ret	z
  7955 		ret	z
  7956 ; End of function p7Dsub_650D
  7956 ; End of function p7Dsub_650D
  7957 
  7957 
  7958 
  7958 
  7959 ; =============== S U B	R O U T	I N E =======================================
  7959 ; =============== S U B	R O U T	I N E =======================================
  7960 
  7960 
  7961 
  7961 
  7962 p7Dsub_651E:				; CODE XREF: p7Dsub_6503+4p
  7962 p7Dsub_651E:
  7963 		add	a, 30h ; '0'
  7963 		add	a, 30h ; '0'
  7964 		ld	(hl), a
  7964 		ld	(hl), a
  7965 		inc	hl
  7965 		inc	hl
  7966 		ret
  7966 		ret
  7967 ; End of function p7Dsub_651E
  7967 ; End of function p7Dsub_651E
  7968 
  7968 
  7969 
  7969 
  7970 ; =============== S U B	R O U T	I N E =======================================
  7970 ; =============== S U B	R O U T	I N E =======================================
  7971 
  7971 
  7972 
  7972 
  7973 p7Dsub_6523:				; CODE XREF: p7Dsub_650D+3p p7Dsub_650D+Dp
  7973 p7Dsub_6523:
  7974 		or	a
  7974 		or	a
  7975 		jr	z, p7Dloc_6529
  7975 		jr	z, p7Dloc_6529
  7976 		ld	d, 1
  7976 		ld	d, 1
  7977 		ret
  7977 		ret
  7978 ; ---------------------------------------------------------------------------
  7978 ; ---------------------------------------------------------------------------
  7979 
  7979 
  7980 p7Dloc_6529:				; CODE XREF: p7Dsub_6523+1j
  7980 p7Dloc_6529:
  7981 		ld	e, a
  7981 		ld	e, a
  7982 		ld	a, d
  7982 		ld	a, d
  7983 		or	a
  7983 		or	a
  7984 		ld	a, e
  7984 		ld	a, e
  7985 		ret
  7985 		ret
  7987 
  7987 
  7988 
  7988 
  7989 ; =============== S U B	R O U T	I N E =======================================
  7989 ; =============== S U B	R O U T	I N E =======================================
  7990 
  7990 
  7991 
  7991 
  7992 p7Dsub_652E:				; CODE XREF: p7Dsub_662F+22p p7Dsub_662F+28p ...
  7992 p7Dsub_652E:
  7993 		push	af
  7993 		push	af
  7994 		push	bc
  7994 		push	bc
  7995 		push	de
  7995 		push	de
  7996 		ld	hl, (unk_83A1)
  7996 		ld	hl, (unk_83A1)
  7997 		call	p7Dsub_57C5
  7997 		call	p7Dsub_57C5
  8003 		ld	hl, (unk_839F)
  8003 		ld	hl, (unk_839F)
  8004 		inc	h
  8004 		inc	h
  8005 		jr	nz, p7Dloc_6549
  8005 		jr	nz, p7Dloc_6549
  8006 		inc	l
  8006 		inc	l
  8007 
  8007 
  8008 p7Dloc_6549:				; CODE XREF: p7Dsub_652E+18j
  8008 p7Dloc_6549:
  8009 		ld	(unk_839F), hl
  8009 		ld	(unk_839F), hl
  8010 
  8010 
  8011 p7Dloc_654C:				; CODE XREF: p7Dsub_652E+12j
  8011 p7Dloc_654C:
  8012 		pop	de
  8012 		pop	de
  8013 		pop	bc
  8013 		pop	bc
  8014 		pop	af
  8014 		pop	af
  8015 		ret
  8015 		ret
  8016 ; End of function p7Dsub_652E
  8016 ; End of function p7Dsub_652E
  8017 
  8017 
  8018 
  8018 
  8019 ; =============== S U B	R O U T	I N E =======================================
  8019 ; =============== S U B	R O U T	I N E =======================================
  8020 
  8020 
  8021 
  8021 
  8022 Page7D_2CE2:				; CODE XREF: seg001:6706p
  8022 Page7D_2CE2:
  8023 		; Page7D_2B6E+32p ...
  8023 		; Page7D_2B6E+32p ...
  8024 		push	de
  8024 		push	de
  8025 		ld	de, 1
  8025 		ld	de, 1
  8026 		call	Page7D_2CCA
  8026 		call	Page7D_2CCA
  8027 		pop	de
  8027 		pop	de
  8030 
  8030 
  8031 
  8031 
  8032 ; =============== S U B	R O U T	I N E =======================================
  8032 ; =============== S U B	R O U T	I N E =======================================
  8033 
  8033 
  8034 
  8034 
  8035 Page7D_2CCA:				; CODE XREF: Page7D_2CE2+4p
  8035 Page7D_2CCA:
  8036 		; p7Dsub_662F+58p	...
  8036 		; p7Dsub_662F+58p	...
  8037 		push	af
  8037 		push	af
  8038 		push	bc
  8038 		push	bc
  8039 		push	de
  8039 		push	de
  8040 		push	de
  8040 		push	de
  8070 		ld	(arcPage), a
  8070 		ld	(arcPage), a
  8071 		ld	bc, 4000h
  8071 		ld	bc, 4000h
  8072 		or	a
  8072 		or	a
  8073 		sbc	hl, bc
  8073 		sbc	hl, bc
  8074 
  8074 
  8075 p7Dloc_6591:				; CODE XREF: Page7D_2CCA+29j
  8075 p7Dloc_6591:
  8076 		ld	(arcPtr), hl
  8076 		ld	(arcPtr), hl
  8077 		pop	de
  8077 		pop	de
  8078 		pop	bc
  8078 		pop	bc
  8079 		pop	af
  8079 		pop	af
  8080 		ret
  8080 		ret
  8082 
  8082 
  8083 
  8083 
  8084 ; =============== S U B	R O U T	I N E =======================================
  8084 ; =============== S U B	R O U T	I N E =======================================
  8085 
  8085 
  8086 
  8086 
  8087 p7Dsub_6598:				; CODE XREF: Page7D_2B6Ep
  8087 p7Dsub_6598:
  8088 		push	af
  8088 		push	af
  8089 		push	bc
  8089 		push	bc
  8090 		push	hl
  8090 		push	hl
  8091 		ld	hl, arcPage
  8091 		ld	hl, arcPage
  8092 		jr	p7Dloc_65A6
  8092 		jr	p7Dloc_65A6
  8093 ; ---------------------------------------------------------------------------
  8093 ; ---------------------------------------------------------------------------
  8094 
  8094 
  8095 p7Dloc_65A0:				; CODE XREF: seg001:65B9p seg001:65F8p
  8095 p7Dloc_65A0:
  8096 		push	af
  8096 		push	af
  8097 		push	bc
  8097 		push	bc
  8098 		push	hl
  8098 		push	hl
  8099 		ld	hl, 839Fh
  8099 		ld	hl, 839Fh
  8100 
  8100 
  8101 p7Dloc_65A6:				; CODE XREF: p7Dsub_6598+6j
  8101 p7Dloc_65A6:
  8102 		xor	a
  8102 		xor	a
  8103 		ld	b, 4
  8103 		ld	b, 4
  8104 
  8104 
  8105 p7Dloc_65A9:				; CODE XREF: p7Dsub_6598+13j
  8105 p7Dloc_65A9:
  8106 		ld	(hl), a
  8106 		ld	(hl), a
  8107 		inc	hl
  8107 		inc	hl
  8108 		djnz	p7Dloc_65A9
  8108 		djnz	p7Dloc_65A9
  8109 		pop	hl
  8109 		pop	hl
  8110 		pop	bc
  8110 		pop	bc
  8142 		ld	(Abackup), a
  8142 		ld	(Abackup), a
  8143 		pop	af
  8143 		pop	af
  8144 		jp	po, p7Dloc_65E5
  8144 		jp	po, p7Dloc_65E5
  8145 		ei
  8145 		ei
  8146 
  8146 
  8147 p7Dloc_65E5:				; CODE XREF: seg001:65E1j
  8147 p7Dloc_65E5:
  8148 		ld	a, (Abackup)
  8148 		ld	a, (Abackup)
  8149 		ld	de, 9C96h
  8149 		ld	de, 9C96h
  8150 		call	p7Dsub_6621
  8150 		call	p7Dsub_6621
  8151 		set	6, (iy+24h)
  8151 		set	6, (iy+24h)
  8152 
  8152 
  8153 p7Dloc_65F2:				; CODE XREF: seg001:65B7j
  8153 p7Dloc_65F2:
  8154 		bit	7, (iy+24h)
  8154 		bit	7, (iy+24h)
  8155 		jr	nz, p7Dloc_6608
  8155 		jr	nz, p7Dloc_6608
  8156 		call	p7Dloc_65A0
  8156 		call	p7Dloc_65A0
  8157 		call	p7Dsub_662F
  8157 		call	p7Dsub_662F
  8158 		ld	de, 9C9Ah
  8158 		ld	de, 9C9Ah
  8159 		call	p7Dsub_6621
  8159 		call	p7Dsub_6621
  8160 		set	7, (iy+24h)
  8160 		set	7, (iy+24h)
  8161 
  8161 
  8162 p7Dloc_6608:				; CODE XREF: seg001:65F6j
  8162 p7Dloc_6608:
  8163 		ld	hl, 9C9Ah
  8163 		ld	hl, 9C9Ah
  8164 		call	p7Dsub_6626
  8164 		call	p7Dsub_6626
  8165 		ld	de, 83A2h
  8165 		ld	de, 83A2h
  8166 		ld	hl, 9C99h
  8166 		ld	hl, 9C99h
  8167 		ld	b, 4
  8167 		ld	b, 4
  8168 		or	a
  8168 		or	a
  8169 
  8169 
  8170 p7Dloc_6617:				; CODE XREF: seg001:661Cj
  8170 p7Dloc_6617:
  8171 		ld	a, (de)
  8171 		ld	a, (de)
  8172 		adc	a, (hl)
  8172 		adc	a, (hl)
  8173 		ld	(de), a
  8173 		ld	(de), a
  8174 		dec	hl
  8174 		dec	hl
  8175 		dec	de
  8175 		dec	de
  8179 		ret
  8179 		ret
  8180 
  8180 
  8181 ; =============== S U B	R O U T	I N E =======================================
  8181 ; =============== S U B	R O U T	I N E =======================================
  8182 
  8182 
  8183 
  8183 
  8184 p7Dsub_6621:				; CODE XREF: seg001:65EBp seg001:6601p
  8184 p7Dsub_6621:
  8185 		ld	hl, 839Fh
  8185 		ld	hl, 839Fh
  8186 		jr	p7Dloc_6629
  8186 		jr	p7Dloc_6629
  8187 ; End of function p7Dsub_6621
  8187 ; End of function p7Dsub_6621
  8188 
  8188 
  8189 
  8189 
  8190 ; =============== S U B	R O U T	I N E =======================================
  8190 ; =============== S U B	R O U T	I N E =======================================
  8191 
  8191 
  8192 
  8192 
  8193 p7Dsub_6626:				; CODE XREF: seg001:660Bp
  8193 p7Dsub_6626:
  8194 		ld	de, 839Fh
  8194 		ld	de, 839Fh
  8195 
  8195 
  8196 p7Dloc_6629:				; CODE XREF: p7Dsub_6621+3j
  8196 p7Dloc_6629:
  8197 		ld	bc, 4
  8197 		ld	bc, 4
  8198 		ldir
  8198 		ldir
  8199 		ret
  8199 		ret
  8200 ; End of function p7Dsub_6626
  8200 ; End of function p7Dsub_6626
  8201 
  8201 
  8202 
  8202 
  8203 ; =============== S U B	R O U T	I N E =======================================
  8203 ; =============== S U B	R O U T	I N E =======================================
  8204 
  8204 
  8205 
  8205 
  8206 p7Dsub_662F:				; CODE XREF: seg001:65FBp
  8206 p7Dsub_662F:
  8207 		call	Page7D_2B56
  8207 		call	Page7D_2B56
  8208 		inc	b
  8208 		inc	b
  8209 		ld	a, 8
  8209 		ld	a, 8
  8210 		ld	de, 0
  8210 		ld	de, 0
  8211 
  8211 
  8212 p7Dloc_6638:				; CODE XREF: p7Dsub_662F+33j p7Dsub_662F+38j
  8212 p7Dloc_6638:
  8213 		call	p7Dsub_7BD4
  8213 		call	p7Dsub_7BD4
  8214 		cp	b
  8214 		cp	b
  8215 		ret	nc
  8215 		ret	nc
  8216 		ld	hl, 4000h
  8216 		ld	hl, 4000h
  8217 		push	af
  8217 		push	af
  8227 		ld	de, 1
  8227 		ld	de, 1
  8228 		call	p7Dsub_652E
  8228 		call	p7Dsub_652E
  8229 		jr	p7Dloc_6664
  8229 		jr	p7Dloc_6664
  8230 ; ---------------------------------------------------------------------------
  8230 ; ---------------------------------------------------------------------------
  8231 
  8231 
  8232 p7Dloc_665C:				; CODE XREF: p7Dsub_662F+1Bj
  8232 p7Dloc_665C:
  8233 		cp	0F0h ; '�'
  8233 		cp	0F0h ; '�'
  8234 		jr	z, p7Dloc_6669
  8234 		jr	z, p7Dloc_6669
  8235 		pop	af
  8235 		pop	af
  8236 		inc	a
  8236 		inc	a
  8237 		jr	p7Dloc_6638
  8237 		jr	p7Dloc_6638
  8238 ; ---------------------------------------------------------------------------
  8238 ; ---------------------------------------------------------------------------
  8239 
  8239 
  8240 p7Dloc_6664:				; CODE XREF: p7Dsub_662F+17j p7Dsub_662F+2Bj ...
  8240 p7Dloc_6664:
  8241 		pop	af
  8241 		pop	af
  8242 		add	a, 4
  8242 		add	a, 4
  8243 		jr	p7Dloc_6638
  8243 		jr	p7Dloc_6638
  8244 ; ---------------------------------------------------------------------------
  8244 ; ---------------------------------------------------------------------------
  8245 
  8245 
  8246 p7Dloc_6669:				; CODE XREF: p7Dsub_662F+2Fj
  8246 p7Dloc_6669:
  8247 		inc	hl
  8247 		inc	hl
  8248 		pop	af
  8248 		pop	af
  8249 		push	af
  8249 		push	af
  8250 
  8250 
  8251 p7Dloc_666C:				; CODE XREF: p7Dsub_662F+65j
  8251 p7Dloc_666C:
  8252 		push	af
  8252 		push	af
  8253 		push	hl
  8253 		push	hl
  8254 		ld	c, 0F0h	; '�'
  8254 		ld	c, 0F0h	; '�'
  8255 		push	bc
  8255 		push	bc
  8256 		call	Page7D_2B6E
  8256 		call	Page7D_2B6E
  8274 		ld	a, (arcPage)
  8274 		ld	a, (arcPage)
  8275 		ld	hl, (arcPtr)
  8275 		ld	hl, (arcPtr)
  8276 		jr	p7Dloc_666C
  8276 		jr	p7Dloc_666C
  8277 ; ---------------------------------------------------------------------------
  8277 ; ---------------------------------------------------------------------------
  8278 
  8278 
  8279 p7Dloc_6696:				; CODE XREF: p7Dsub_662F+48j
  8279 p7Dloc_6696:
  8280 		pop	hl
  8280 		pop	hl
  8281 		pop	af
  8281 		pop	af
  8282 		ld	c, 0FFh
  8282 		ld	c, 0FFh
  8283 		push	bc
  8283 		push	bc
  8284 		call	Page7D_2B6E
  8284 		call	Page7D_2B6E
  8285 		pop	bc
  8285 		pop	bc
  8286 		jr	z, p7Dloc_66A7
  8286 		jr	z, p7Dloc_66A7
  8287 		call	Page7D_2B74
  8287 		call	Page7D_2B74
  8288 		call	p7Dsub_652E
  8288 		call	p7Dsub_652E
  8289 
  8289 
  8290 p7Dloc_66A7:				; CODE XREF: p7Dsub_662F+70j
  8290 p7Dloc_66A7:
  8291 		jr	p7Dloc_6664
  8291 		jr	p7Dloc_6664
  8292 ; End of function p7Dsub_662F
  8292 ; End of function p7Dsub_662F
  8293 
  8293 
  8294 
  8294 
  8295 ; =============== S U B	R O U T	I N E =======================================
  8295 ; =============== S U B	R O U T	I N E =======================================
  8296 
  8296 
  8297 
  8297 
  8298 p7Dsub_66A9:				; CODE XREF: seg001:6723p
  8298 p7Dsub_66A9:
  8299 		push	af
  8299 		push	af
  8300 		push	bc
  8300 		push	bc
  8301 		push	hl
  8301 		push	hl
  8302 		ld	bc, (freeArcBlock)
  8302 		ld	bc, (freeArcBlock)
  8303 		or	a
  8303 		or	a
  8305 		jr	c, p7Dloc_66BB
  8305 		jr	c, p7Dloc_66BB
  8306 		or	a
  8306 		or	a
  8307 		adc	hl, bc
  8307 		adc	hl, bc
  8308 		ld	(freeArcBlock), hl
  8308 		ld	(freeArcBlock), hl
  8309 
  8309 
  8310 p7Dloc_66BB:				; CODE XREF: p7Dsub_66A9+Aj
  8310 p7Dloc_66BB:
  8311 		pop	hl
  8311 		pop	hl
  8312 		pop	bc
  8312 		pop	bc
  8313 		pop	af
  8313 		pop	af
  8314 		ret
  8314 		ret
  8315 ; End of function p7Dsub_66A9
  8315 ; End of function p7Dsub_66A9
  8328 		ld	a, b
  8328 		ld	a, b
  8329 		ld	(unk_83FF), a
  8329 		ld	(unk_83FF), a
  8330 		pop	bc
  8330 		pop	bc
  8331 		ld	a, 8
  8331 		ld	a, 8
  8332 
  8332 
  8333 p7Dloc_66D7:				; CODE XREF: seg001:66F9j
  8333 p7Dloc_66D7:
  8334 		push	af
  8334 		push	af
  8335 		ld	hl, 4000h
  8335 		ld	hl, 4000h
  8336 		call	Page7D_2CD0
  8336 		call	Page7D_2CD0
  8337 		cp	0FEh ; '�'
  8337 		cp	0FEh ; '�'
  8338 		jr	nz, p7Dloc_66E7
  8338 		jr	nz, p7Dloc_66E7
  8339 
  8339 
  8340 p7Dloc_66E2:				; CODE XREF: seg001:670Dj
  8340 p7Dloc_66E2:
  8341 		pop	af
  8341 		pop	af
  8342 		add	a, 3
  8342 		add	a, 3
  8343 		jr	p7Dloc_66F0
  8343 		jr	p7Dloc_66F0
  8344 ; ---------------------------------------------------------------------------
  8344 ; ---------------------------------------------------------------------------
  8345 
  8345 
  8346 p7Dloc_66E7:				; CODE XREF: seg001:66E0j
  8346 p7Dloc_66E7:
  8347 		cp	0F0h ; '�'
  8347 		cp	0F0h ; '�'
  8348 		jr	z, p7Dloc_66FB
  8348 		jr	z, p7Dloc_66FB
  8349 		cp	0FFh
  8349 		cp	0FFh
  8350 		jr	z, p7Dloc_6711
  8350 		jr	z, p7Dloc_6711
  8351 		pop	af
  8351 		pop	af
  8352 
  8352 
  8353 p7Dloc_66F0:				; CODE XREF: seg001:66E5j seg001:672Dj
  8353 p7Dloc_66F0:
  8354 		push	hl
  8354 		push	hl
  8355 		ld	hl, 83FFh
  8355 		ld	hl, 83FFh
  8356 		cp	(hl)
  8356 		cp	(hl)
  8357 		pop	hl
  8357 		pop	hl
  8358 		jr	nc, p7Dloc_672F
  8358 		jr	nc, p7Dloc_672F
  8359 		inc	a
  8359 		inc	a
  8360 		jr	p7Dloc_66D7
  8360 		jr	p7Dloc_66D7
  8361 ; ---------------------------------------------------------------------------
  8361 ; ---------------------------------------------------------------------------
  8362 
  8362 
  8363 p7Dloc_66FB:				; CODE XREF: seg001:66E9j
  8363 p7Dloc_66FB:
  8364 		pop	af
  8364 		pop	af
  8365 		push	af
  8365 		push	af
  8366 		push	bc
  8366 		push	bc
  8367 		ld	c, 0FFh
  8367 		ld	c, 0FFh
  8368 		ld	(arcPage), a
  8368 		ld	(arcPage), a
  8372 		pop	bc
  8372 		pop	bc
  8373 		jr	z, p7Dloc_66E2
  8373 		jr	z, p7Dloc_66E2
  8374 		pop	de
  8374 		pop	de
  8375 		push	af
  8375 		push	af
  8376 
  8376 
  8377 p7Dloc_6711:				; CODE XREF: seg001:66EDj
  8377 p7Dloc_6711:
  8378 		pop	af
  8378 		pop	af
  8379 		ld	(tempSwapArea), hl
  8379 		ld	(tempSwapArea), hl
  8380 		push	bc
  8380 		push	bc
  8381 		push	af
  8381 		push	af
  8382 		ld	a, (unk_83FF)
  8382 		ld	a, (unk_83FF)
  8392 		ld	hl, (tempSwapArea)
  8392 		ld	hl, (tempSwapArea)
  8393 		jr	nc, p7Dloc_6733
  8393 		jr	nc, p7Dloc_6733
  8394 		jr	p7Dloc_66F0
  8394 		jr	p7Dloc_66F0
  8395 ; ---------------------------------------------------------------------------
  8395 ; ---------------------------------------------------------------------------
  8396 
  8396 
  8397 p7Dloc_672F:				; CODE XREF: seg001:66F6j
  8397 p7Dloc_672F:
  8398 		ld	a, 0FFh
  8398 		ld	a, 0FFh
  8399 		add	a, 10h
  8399 		add	a, 10h
  8400 
  8400 
  8401 p7Dloc_6733:				; CODE XREF: seg001:672Bj
  8401 p7Dloc_6733:
  8402 		pop	bc
  8402 		pop	bc
  8403 		ld	c, a
  8403 		ld	c, a
  8404 		ld	a, b
  8404 		ld	a, b
  8405 		ld	(OP1), a
  8405 		ld	(OP1), a
  8406 		ld	a, c
  8406 		ld	a, c
  8409 		ret
  8409 		ret
  8410 
  8410 
  8411 ; =============== S U B	R O U T	I N E =======================================
  8411 ; =============== S U B	R O U T	I N E =======================================
  8412 
  8412 
  8413 
  8413 
  8414 Page7D_2B74:				; CODE XREF: p7Dsub_662F+1Fp p7Dsub_662F+72p ...
  8414 Page7D_2B74:
  8415 		push	hl
  8415 		push	hl
  8416 		push	bc
  8416 		push	bc
  8417 		push	af
  8417 		push	af
  8418 		push	hl
  8418 		push	hl
  8419 		pop	de
  8419 		pop	de
  8420 		ld	hl, 7FFFh
  8420 		ld	hl, 7FFFh
  8421 		or	a
  8421 		or	a
  8422 		sbc	hl, de
  8422 		sbc	hl, de
  8423 
  8423 
  8424 p7Dloc_6748:				; CODE XREF: Page7D_2B74+25j
  8424 p7Dloc_6748:
  8425 		ex	de, hl
  8425 		ex	de, hl
  8426 		inc	a
  8426 		inc	a
  8427 		call	p7Dsub_67EC
  8427 		call	p7Dsub_67EC
  8428 		jr	z, p7Dloc_6765
  8428 		jr	z, p7Dloc_6765
  8429 		cp	b
  8429 		cp	b
  8437 		add	hl, de
  8437 		add	hl, de
  8438 		pop	af
  8438 		pop	af
  8439 		jr	p7Dloc_6748
  8439 		jr	p7Dloc_6748
  8440 ; ---------------------------------------------------------------------------
  8440 ; ---------------------------------------------------------------------------
  8441 
  8441 
  8442 p7Dloc_6764:				; CODE XREF: Page7D_2B74+1Ej
  8442 p7Dloc_6764:
  8443 		pop	af
  8443 		pop	af
  8444 
  8444 
  8445 p7Dloc_6765:				; CODE XREF: Page7D_2B74+10j
  8445 p7Dloc_6765:
  8446 		; Page7D_2B74+13j
  8446 		; Page7D_2B74+13j
  8447 		pop	af
  8447 		pop	af
  8448 		pop	bc
  8448 		pop	bc
  8449 		pop	hl
  8449 		pop	hl
  8450 		ret
  8450 		ret
  8452 
  8452 
  8453 
  8453 
  8454 ; =============== S U B	R O U T	I N E =======================================
  8454 ; =============== S U B	R O U T	I N E =======================================
  8455 
  8455 
  8456 
  8456 
  8457 Page7D_2B6E:				; CODE XREF: Page7D_2E44+3Ap
  8457 Page7D_2B6E:
  8458 		; p7Dsub_662F+42p	...
  8458 		; p7Dsub_662F+42p	...
  8459 		call	p7Dsub_6598
  8459 		call	p7Dsub_6598
  8460 		ld	(arcPage), a
  8460 		ld	(arcPage), a
  8461 		ld	(arcPtr), hl
  8461 		ld	(arcPtr), hl
  8462 		push	bc
  8462 		push	bc
  8466 		ld	b, 15h
  8466 		ld	b, 15h
  8467 		call	NZIf83Plus
  8467 		call	NZIf83Plus
  8468 		jr	nz, p7Dloc_6780
  8468 		jr	nz, p7Dloc_6780
  8469 		ld	b, 69h ; 'i'
  8469 		ld	b, 69h ; 'i'
  8470 
  8470 
  8471 p7Dloc_6780:				; CODE XREF: Page7D_2B6E+13j
  8471 p7Dloc_6780:
  8472 		cp	b
  8472 		cp	b
  8473 		jr	c, p7Dloc_6784
  8473 		jr	c, p7Dloc_6784
  8474 		ld	a, b
  8474 		ld	a, b
  8475 
  8475 
  8476 p7Dloc_6784:				; CODE XREF: Page7D_2B6E+18j
  8476 p7Dloc_6784:
  8477 		ld	(unk_8390), a
  8477 		ld	(unk_8390), a
  8478 		pop	af
  8478 		pop	af
  8479 		pop	hl
  8479 		pop	hl
  8480 		pop	bc
  8480 		pop	bc
  8481 
  8481 
  8482 p7Dloc_678A:				; CODE XREF: Page7D_2B6E+57j
  8482 p7Dloc_678A:
  8483 		push	bc
  8483 		push	bc
  8484 		ld	a, (arcPage)
  8484 		ld	a, (arcPage)
  8485 		call	Page7D_2CD0
  8485 		call	Page7D_2CD0
  8486 		cp	c
  8486 		cp	c
  8487 		jr	z, p7Dloc_67C8
  8487 		jr	z, p7Dloc_67C8
  8503 		ld	a, (arcPage)
  8503 		ld	a, (arcPage)
  8504 		cp	b
  8504 		cp	b
  8505 		jr	c, p7Dloc_67BF
  8505 		jr	c, p7Dloc_67BF
  8506 		jr	nz, p7Dloc_67C2
  8506 		jr	nz, p7Dloc_67C2
  8507 
  8507 
  8508 p7Dloc_67BF:				; CODE XREF: Page7D_2B6E+52j
  8508 p7Dloc_67BF:
  8509 		pop	bc
  8509 		pop	bc
  8510 		jr	p7Dloc_678A
  8510 		jr	p7Dloc_678A
  8511 ; ---------------------------------------------------------------------------
  8511 ; ---------------------------------------------------------------------------
  8512 
  8512 
  8513 p7Dloc_67C2:				; CODE XREF: Page7D_2B6E+2Dj
  8513 p7Dloc_67C2:
  8514 		; Page7D_2B6E+54j
  8514 		; Page7D_2B6E+54j
  8515 		xor	a
  8515 		xor	a
  8516 		ld	a, (arcPage)
  8516 		ld	a, (arcPage)
  8517 		pop	bc
  8517 		pop	bc
  8518 		ret
  8518 		ret
  8519 ; ---------------------------------------------------------------------------
  8519 ; ---------------------------------------------------------------------------
  8520 
  8520 
  8521 p7Dloc_67C8:				; CODE XREF: Page7D_2B6E+29j
  8521 p7Dloc_67C8:
  8522 		pop	bc
  8522 		pop	bc
  8523 		ld	a, (arcPage)
  8523 		ld	a, (arcPage)
  8524 		push	af
  8524 		push	af
  8525 		push	hl
  8525 		push	hl
  8526 		ld	(arcPtr), hl
  8526 		ld	(arcPtr), hl
  8541 
  8541 
  8542 
  8542 
  8543 ; =============== S U B	R O U T	I N E =======================================
  8543 ; =============== S U B	R O U T	I N E =======================================
  8544 
  8544 
  8545 
  8545 
  8546 p7Dsub_67EC:				; CODE XREF: Page7D_2E44+4Ep
  8546 p7Dsub_67EC:
  8547 		; Page7D_2B74+Dp
  8547 		; Page7D_2B74+Dp
  8548 		push	bc
  8548 		push	bc
  8549 		ld	b, a
  8549 		ld	b, a
  8550 		and	3
  8550 		and	3
  8551 		ld	a, b
  8551 		ld	a, b
  8554 		jr	nz, p7Dloc_67FC
  8554 		jr	nz, p7Dloc_67FC
  8555 		cp	6Ah ; 'j'
  8555 		cp	6Ah ; 'j'
  8556 		jr	p7Dloc_67FE
  8556 		jr	p7Dloc_67FE
  8557 ; ---------------------------------------------------------------------------
  8557 ; ---------------------------------------------------------------------------
  8558 
  8558 
  8559 p7Dloc_67FC:				; CODE XREF: p7Dsub_67EC+Aj
  8559 p7Dloc_67FC:
  8560 		cp	16h
  8560 		cp	16h
  8561 
  8561 
  8562 p7Dloc_67FE:				; CODE XREF: p7Dsub_67EC+5j p7Dsub_67EC+Ej
  8562 p7Dloc_67FE:
  8563 		pop	bc
  8563 		pop	bc
  8564 		ret
  8564 		ret
  8565 ; End of function p7Dsub_67EC
  8565 ; End of function p7Dsub_67EC
  8566 
  8566 
  8567 
  8567 
  8568 ; =============== S U B	R O U T	I N E =======================================
  8568 ; =============== S U B	R O U T	I N E =======================================
  8569 
  8569 
  8570 
  8570 
  8571 Page7D_2B56:				; CODE XREF: seg001:4919p
  8571 Page7D_2B56:
  8572 		; Page7D_2E44+2p ...
  8572 		; Page7D_2E44+2p ...
  8573 		push	af
  8573 		push	af
  8574 		push	hl
  8574 		push	hl
  8575 		push	de
  8575 		push	de
  8576 		call	p7Dsub_75EC
  8576 		call	p7Dsub_75EC
  8577 		ld	hl, 4000h
  8577 		ld	hl, 4000h
  8578 
  8578 
  8579 p7Dloc_6809:				; CODE XREF: Page7D_2B56+25j
  8579 p7Dloc_6809:
  8580 		push	af
  8580 		push	af
  8581 		call	Page7D_2CD0
  8581 		call	Page7D_2CD0
  8582 		cp	80h ; '�'
  8582 		cp	80h ; '�'
  8583 		jr	z, p7Dloc_6815
  8583 		jr	z, p7Dloc_6815
  8584 		cp	0
  8584 		cp	0
  8585 		jr	nz, p7Dloc_6827
  8585 		jr	nz, p7Dloc_6827
  8586 
  8586 
  8587 p7Dloc_6815:				; CODE XREF: Page7D_2B56+Fj
  8587 p7Dloc_6815:
  8588 		pop	af
  8588 		pop	af
  8589 		push	af
  8589 		push	af
  8590 		call	Page0Call_3E31
  8590 		call	Page0Call_3E31
  8591 		jr	nz, p7Dloc_6827
  8591 		jr	nz, p7Dloc_6827
  8592 		call	FindAppNumPages
  8592 		call	FindAppNumPages
  8596 		pop	af
  8596 		pop	af
  8597 		sub	c
  8597 		sub	c
  8598 		jr	p7Dloc_6809
  8598 		jr	p7Dloc_6809
  8599 ; ---------------------------------------------------------------------------
  8599 ; ---------------------------------------------------------------------------
  8600 
  8600 
  8601 p7Dloc_6827:				; CODE XREF: Page7D_2B56+13j
  8601 p7Dloc_6827:
  8602 		; Page7D_2B56+1Aj ...
  8602 		; Page7D_2B56+1Aj ...
  8603 		pop	af
  8603 		pop	af
  8604 		ld	b, a
  8604 		ld	b, a
  8605 		pop	de
  8605 		pop	de
  8606 		pop	hl
  8606 		pop	hl
  8669 		jp	p7Dloc_692E
  8669 		jp	p7Dloc_692E
  8670 
  8670 
  8671 ; =============== S U B	R O U T	I N E =======================================
  8671 ; =============== S U B	R O U T	I N E =======================================
  8672 
  8672 
  8673 
  8673 
  8674 Page7D_2EB0:				; CODE XREF: p7Dsub_7CDA+84p
  8674 Page7D_2EB0:
  8675 		res	7, (iy+24h)
  8675 		res	7, (iy+24h)
  8676 		push	af
  8676 		push	af
  8677 		ld	a, 1
  8677 		ld	a, 1
  8678 		nop
  8678 		nop
  8679 		di
  8679 		di
  8702 		inc	hl
  8702 		inc	hl
  8703 		ld	(arcInfo+1), hl
  8703 		ld	(arcInfo+1), hl
  8704 		jr	p7Dloc_68D6
  8704 		jr	p7Dloc_68D6
  8705 ; ---------------------------------------------------------------------------
  8705 ; ---------------------------------------------------------------------------
  8706 
  8706 
  8707 p7Dloc_68D2:				; CODE XREF: Page7D_2EB0+1Ej
  8707 p7Dloc_68D2:
  8708 		ld	de, (arcInfo+1)
  8708 		ld	de, (arcInfo+1)
  8709 
  8709 
  8710 p7Dloc_68D6:				; CODE XREF: Page7D_2EB0+39j
  8710 p7Dloc_68D6:
  8711 		ld	b, 0FEh	; '�'
  8711 		ld	b, 0FEh	; '�'
  8712 		ld	a, (arcInfo)
  8712 		ld	a, (arcInfo)
  8713 		ld	(unk_8404), a
  8713 		ld	(unk_8404), a
  8714 		ld	(unk_8402), de
  8714 		ld	(unk_8402), de
  8715 		call	p7Dsub_6F82
  8715 		call	p7Dsub_6F82
  8741 		ld	hl, (unk_83F1)
  8741 		ld	hl, (unk_83F1)
  8742 		call	Page0Call_2EDD
  8742 		call	Page0Call_2EDD
  8743 		ld	a, (arcPage)
  8743 		ld	a, (arcPage)
  8744 		ld	(arcInfo), a
  8744 		ld	(arcInfo), a
  8745 
  8745 
  8746 p7Dloc_692E:				; CODE XREF: seg001:6894j
  8746 p7Dloc_692E:
  8747 		ld	hl, (unk_83F1)
  8747 		ld	hl, (unk_83F1)
  8748 		ld	bc, (unk_83F5)
  8748 		ld	bc, (unk_83F5)
  8749 		push	de
  8749 		push	de
  8750 		ld	de, OP1
  8750 		ld	de, OP1
  8751 		ld	b, c
  8751 		ld	b, c
  8752 
  8752 
  8753 p7Dloc_693A:				; CODE XREF: Page7D_2EB0+A7j
  8753 p7Dloc_693A:
  8754 		ld	a, (hl)
  8754 		ld	a, (hl)
  8755 		ld	(de), a
  8755 		ld	(de), a
  8756 		inc	de
  8756 		inc	de
  8757 		dec	hl
  8757 		dec	hl
  8758 		djnz	p7Dloc_693A
  8758 		djnz	p7Dloc_693A
  8783 		bit	5, (iy+26h)
  8783 		bit	5, (iy+26h)
  8784 		ld	bc, 2
  8784 		ld	bc, 2
  8785 		jr	nz, p7Dloc_698F
  8785 		jr	nz, p7Dloc_698F
  8786 		ld	bc, (unk_83F7)
  8786 		ld	bc, (unk_83F7)
  8787 
  8787 
  8788 p7Dloc_698F:				; CODE XREF: Page7D_2EB0+F2j
  8788 p7Dloc_698F:
  8789 		ld	(arcPtr), de
  8789 		ld	(arcPtr), de
  8790 		ld	(arcPage), a
  8790 		ld	(arcPage), a
  8791 		call	Page7D_2C46
  8791 		call	Page7D_2C46
  8792 		jp	c, Page0Call_2541
  8792 		jp	c, Page0Call_2541
  8793 		call	p7Dsub_7666
  8793 		call	p7Dsub_7666
  8794 		bit	5, (iy+26h)
  8794 		bit	5, (iy+26h)
  8795 		ld	de, 2
  8795 		ld	de, 2
  8796 		jr	nz, p7Dloc_69AC
  8796 		jr	nz, p7Dloc_69AC
  8797 		ld	de, (unk_83F7)
  8797 		ld	de, (unk_83F7)
  8798 
  8798 
  8799 p7Dloc_69AC:				; CODE XREF: Page7D_2EB0+10Fj
  8799 p7Dloc_69AC:
  8800 		call	Page7D_2CCA
  8800 		call	Page7D_2CCA
  8801 		ld	a, (arcPage)
  8801 		ld	a, (arcPage)
  8802 		ld	(arcInfo), a
  8802 		ld	(arcInfo), a
  8803 		ld	de, (arcPtr)
  8803 		ld	de, (arcPtr)
  8804 		bit	2, (iy+26h)
  8804 		bit	2, (iy+26h)
  8811 		rst	28h
  8811 		rst	28h
  8812 ; ---------------------------------------------------------------------------
  8812 ; ---------------------------------------------------------------------------
  8813 		.dw 8021h
  8813 		.dw 8021h
  8814 ; ---------------------------------------------------------------------------
  8814 ; ---------------------------------------------------------------------------
  8815 
  8815 
  8816 p7Dloc_69D1:				; CODE XREF: Page7D_2EB0+E3j
  8816 p7Dloc_69D1:
  8817 		; Page7D_2EB0+126j
  8817 		; Page7D_2EB0+126j
  8818 		jp	relockFlashBack
  8818 		jp	relockFlashBack
  8819 ; End of function Page7D_2EB0
  8819 ; End of function Page7D_2EB0
  8820 
  8820 
  8821 
  8821 
  8822 ; =============== S U B	R O U T	I N E =======================================
  8822 ; =============== S U B	R O U T	I N E =======================================
  8823 
  8823 
  8824 
  8824 
  8825 p7Dsub_69D4:				; CODE XREF: Page7D_2EB0+1Bp
  8825 p7Dsub_69D4:
  8826 		; p7Dsub_7CDA+39p
  8826 		; p7Dsub_7CDA+39p
  8827 		push	hl
  8827 		push	hl
  8828 		ld	bc, 4000h
  8828 		ld	bc, 4000h
  8829 		or	a
  8829 		or	a
  8830 		sbc	hl, bc
  8830 		sbc	hl, bc
  8831 		pop	hl
  8831 		pop	hl
  8832 		jr	z, p7Dloc_69DF
  8832 		jr	z, p7Dloc_69DF
  8833 		ret	nc
  8833 		ret	nc
  8834 
  8834 
  8835 p7Dloc_69DF:				; CODE XREF: p7Dsub_69D4+8j
  8835 p7Dloc_69DF:
  8836 		ld	b, a
  8836 		ld	b, a
  8837 		and	3
  8837 		and	3
  8838 		ld	a, b
  8838 		ld	a, b
  8839 		ret
  8839 		ret
  8840 ; End of function p7Dsub_69D4
  8840 ; End of function p7Dsub_69D4
  8846 		ret
  8846 		ret
  8847 
  8847 
  8848 ; =============== S U B	R O U T	I N E =======================================
  8848 ; =============== S U B	R O U T	I N E =======================================
  8849 
  8849 
  8850 
  8850 
  8851 p7Dsub_69E8:				; CODE XREF: seg001:6848p
  8851 p7Dsub_69E8:
  8852 		; seg001:Page7D_326Ap
  8852 
  8853 		call	p7Dsub_6A07
  8853 		call	p7Dsub_6A07
  8854 		push	af
  8854 		push	af
  8855 		push	hl
  8855 		push	hl
  8856 		push	af
  8856 		push	af
  8857 		call	Page7D_2CD0
  8857 		call	Page7D_2CD0
  8860 		inc	hl
  8860 		inc	hl
  8861 		call	Page0Call_23FC
  8861 		call	Page0Call_23FC
  8862 		jr	nc, p7Dloc_69FA
  8862 		jr	nc, p7Dloc_69FA
  8863 		inc	a
  8863 		inc	a
  8864 
  8864 
  8865 p7Dloc_69FA:				; CODE XREF: p7Dsub_69E8+Fj
  8865 p7Dloc_69FA:
  8866 		call	Page7D_2CD0
  8866 		call	Page7D_2CD0
  8867 		ld	d, a
  8867 		ld	d, a
  8868 		push	de
  8868 		push	de
  8869 		pop	bc
  8869 		pop	bc
  8870 		pop	hl
  8870 		pop	hl
  8879 		ret
  8879 		ret
  8880 
  8880 
  8881 ; =============== S U B	R O U T	I N E =======================================
  8881 ; =============== S U B	R O U T	I N E =======================================
  8882 
  8882 
  8883 
  8883 
  8884 p7Dsub_6A07:				; CODE XREF: p7Dsub_69E8p
  8884 p7Dsub_6A07:
  8885 		; seg001:Page7D_2F88p
  8885 
  8886 		inc	hl
  8886 		inc	hl
  8887 		inc	hl
  8887 		inc	hl
  8888 		inc	hl
  8888 		inc	hl
  8889 		call	Page0Call_23FC
  8889 		call	Page0Call_23FC
  8890 		jr	nc, Page7D_2CD6
  8890 		jr	nc, Page7D_2CD6
  8891 		inc	a
  8891 		inc	a
  8892 
  8892 
  8893 Page7D_2CD6:				; CODE XREF: p7Dsub_6A07+6j
  8893 Page7D_2CD6:
  8894 		push	af
  8894 		push	af
  8895 		call	Page7D_2CD0
  8895 		call	Page7D_2CD0
  8896 		and	1Fh
  8896 		and	1Fh
  8897 		or	a
  8897 		or	a
  8898 		call	Page0Call_23F6
  8898 		call	Page0Call_23F6
  8901 		pop	af
  8901 		pop	af
  8902 		inc	a
  8902 		inc	a
  8903 		push	af
  8903 		push	af
  8904 		ld	a, d
  8904 		ld	a, d
  8905 
  8905 
  8906 p7Dloc_6A21:				; CODE XREF: p7Dsub_6A07+13j
  8906 p7Dloc_6A21:
  8907 		ld	de, 3
  8907 		ld	de, 3
  8908 		call	page0_17B3
  8908 		call	page0_17B3
  8909 		jr	z, p7Dloc_6A3D
  8909 		jr	z, p7Dloc_6A3D
  8910 		call	IS_A_LSTorCLST
  8910 		call	IS_A_LSTorCLST
  8911 		jr	z, p7Dloc_6A3D
  8911 		jr	z, p7Dloc_6A3D
  8915 		cp	5Dh ; ']'
  8915 		cp	5Dh ; ']'
  8916 		ld	a, (arcPage)
  8916 		ld	a, (arcPage)
  8917 		jr	nz, p7Dloc_6A45
  8917 		jr	nz, p7Dloc_6A45
  8918 		push	af
  8918 		push	af
  8919 
  8919 
  8920 p7Dloc_6A3D:				; CODE XREF: p7Dsub_6A07+20j p7Dsub_6A07+25j
  8920 p7Dloc_6A3D:
  8921 		pop	af
  8921 		pop	af
  8922 		push	af
  8922 		push	af
  8923 		call	Page7D_2CD0
  8923 		call	Page7D_2CD0
  8924 		ld	e, a
  8924 		ld	e, a
  8925 		pop	af
  8925 		pop	af
  8926 		inc	e
  8926 		inc	e
  8927 
  8927 
  8928 p7Dloc_6A45:				; CODE XREF: p7Dsub_6A07+33j
  8928 p7Dloc_6A45:
  8929 		ld	(arcPage), a
  8929 		ld	(arcPage), a
  8930 		ld	(arcPtr), hl
  8930 		ld	(arcPtr), hl
  8931 		call	Page7D_2CCA
  8931 		call	Page7D_2CCA
  8932 		ld	a, (arcPage)
  8932 		ld	a, (arcPage)
  8933 		ld	hl, (arcPtr)
  8933 		ld	hl, (arcPtr)
  8941 		call	p7Dsub_75EC
  8941 		call	p7Dsub_75EC
  8942 		cp	b
  8942 		cp	b
  8943 		jr	c, p7Dloc_6A6D
  8943 		jr	c, p7Dloc_6A6D
  8944 		jr	z, p7Dloc_6A6D
  8944 		jr	z, p7Dloc_6A6D
  8945 
  8945 
  8946 p7Dloc_6A60:				; CODE XREF: seg001:6A6Bj
  8946 p7Dloc_6A60:
  8947 		push	bc
  8947 		push	bc
  8948 		call	DeleteApp
  8948 		call	DeleteApp
  8949 		pop	bc
  8949 		pop	bc
  8950 		ld	a, (appSearchPage+1)
  8950 		ld	a, (appSearchPage+1)
  8951 		cp	b
  8951 		cp	b
  8952 		jr	c, p7Dloc_6A6D
  8952 		jr	c, p7Dloc_6A6D
  8953 		jr	nz, p7Dloc_6A60
  8953 		jr	nz, p7Dloc_6A60
  8954 
  8954 
  8955 p7Dloc_6A6D:				; CODE XREF: seg001:6A5Cj seg001:6A5Ej ...
  8955 p7Dloc_6A6D:
  8956 		res	2, (iy+25h)
  8956 		res	2, (iy+25h)
  8957 		ld	a, 4
  8957 		ld	a, 4
  8958 		call	Page0Call_2EB9
  8958 		call	Page0Call_2EB9
  8959 		ret
  8959 		ret
  8960 ; ---------------------------------------------------------------------------
  8960 ; ---------------------------------------------------------------------------
  8985 ; ---------------------------------------------------------------------------
  8985 ; ---------------------------------------------------------------------------
  8986 		.dw 8021h
  8986 		.dw 8021h
  8987 ; ---------------------------------------------------------------------------
  8987 ; ---------------------------------------------------------------------------
  8988 		ld	a, 0Ch
  8988 		ld	a, 0Ch
  8989 
  8989 
  8990 p7Dloc_6A9C:				; CODE XREF: seg001:6AABj
  8990 p7Dloc_6A9C:
  8991 		push	af
  8991 		push	af
  8992 		call	p7Dsub_7BD4
  8992 		call	p7Dsub_7BD4
  8993 		pop	af
  8993 		pop	af
  8994 		push	af
  8994 		push	af
  8995 		rst	28h
  8995 		rst	28h
  9003 		call	p7Dsub_75E1
  9003 		call	p7Dsub_75E1
  9004 		jr	c, p7Dloc_6A9C
  9004 		jr	c, p7Dloc_6A9C
  9005 		ld	hl, tempSwapArea
  9005 		ld	hl, tempSwapArea
  9006 		ld	b, 0E8h	; '�'
  9006 		ld	b, 0E8h	; '�'
  9007 
  9007 
  9008 p7Dloc_6AB2:				; CODE XREF: seg001:6AB6j
  9008 p7Dloc_6AB2:
  9009 		ld	a, 0FFh
  9009 		ld	a, 0FFh
  9010 		ld	(hl), a
  9010 		ld	(hl), a
  9011 		inc	hl
  9011 		inc	hl
  9012 		djnz	p7Dloc_6AB2
  9012 		djnz	p7Dloc_6AB2
  9013 		ld	a, 0FEh	; '�'
  9013 		ld	a, 0FEh	; '�'
  9017 		jr	z, p7Dloc_6AC9
  9017 		jr	z, p7Dloc_6AC9
  9018 		ld	a, 7Fh ; ''
  9018 		ld	a, 7Fh ; ''
  9019 		ld	hl, 836Eh
  9019 		ld	hl, 836Eh
  9020 		ld	(hl), a
  9020 		ld	(hl), a
  9021 
  9021 
  9022 p7Dloc_6AC9:				; CODE XREF: seg001:6AC1j
  9022 p7Dloc_6AC9:
  9023 		ld	a, 0
  9023 		ld	a, 0
  9024 		call	Page7D_2B62
  9024 		call	Page7D_2B62
  9025 		jp	relockFlashBack
  9025 		jp	relockFlashBack
  9026 ; ---------------------------------------------------------------------------
  9026 ; ---------------------------------------------------------------------------
  9027 
  9027 
  9029 		res	6, (iy+24h)
  9029 		res	6, (iy+24h)
  9030 		res	7, (iy+24h)
  9030 		res	7, (iy+24h)
  9031 		res	4, (iy+26h)
  9031 		res	4, (iy+26h)
  9032 		ld	a, 8
  9032 		ld	a, 8
  9033 
  9033 
  9034 p7Dloc_6ADF:				; CODE XREF: seg001:6B05j
  9034 p7Dloc_6ADF:
  9035 		push	af
  9035 		push	af
  9036 		ld	hl, 4000h
  9036 		ld	hl, 4000h
  9037 		call	Page7D_2CD0
  9037 		call	Page7D_2CD0
  9038 		cp	0FEh ; '�'
  9038 		cp	0FEh ; '�'
  9039 		jr	nz, p7Dloc_6AF3
  9039 		jr	nz, p7Dloc_6AF3
  9040 
  9040 
  9041 p7Dloc_6AEA:				; CODE XREF: seg001:6AF9j seg001:6B17j
  9041 p7Dloc_6AEA:
  9042 		pop	af
  9042 		pop	af
  9043 		push	bc
  9043 		push	bc
  9044 		ld	c, 3
  9044 		ld	c, 3
  9045 		add	a, c
  9045 		add	a, c
  9046 		pop	bc
  9046 		pop	bc
  9047 		push	af
  9047 		push	af
  9048 		jr	p7Dloc_6AFB
  9048 		jr	p7Dloc_6AFB
  9049 ; ---------------------------------------------------------------------------
  9049 ; ---------------------------------------------------------------------------
  9050 
  9050 
  9051 p7Dloc_6AF3:				; CODE XREF: seg001:6AE8j
  9051 p7Dloc_6AF3:
  9052 		cp	0F0h ; '�'
  9052 		cp	0F0h ; '�'
  9053 		jr	z, p7Dloc_6B07
  9053 		jr	z, p7Dloc_6B07
  9054 		cp	0FFh
  9054 		cp	0FFh
  9055 		jr	z, p7Dloc_6AEA
  9055 		jr	z, p7Dloc_6AEA
  9056 
  9056 
  9057 p7Dloc_6AFB:				; CODE XREF: seg001:6AF1j
  9057 p7Dloc_6AFB:
  9058 		pop	af
  9058 		pop	af
  9059 		push	hl
  9059 		push	hl
  9060 		call	Page7D_2B56
  9060 		call	Page7D_2B56
  9061 		cp	b
  9061 		cp	b
  9062 		pop	hl
  9062 		pop	hl
  9063 		jr	nc, locret_6B35
  9063 		jr	nc, locret_6B35
  9064 		inc	a
  9064 		inc	a
  9065 		jr	p7Dloc_6ADF
  9065 		jr	p7Dloc_6ADF
  9066 ; ---------------------------------------------------------------------------
  9066 ; ---------------------------------------------------------------------------
  9067 
  9067 
  9068 p7Dloc_6B07:				; CODE XREF: seg001:6AF5j
  9068 p7Dloc_6B07:
  9069 		pop	af
  9069 		pop	af
  9070 		push	af
  9070 		push	af
  9071 		ld	(arcPage), a
  9071 		ld	(arcPage), a
  9072 		ld	(arcPtr), hl
  9072 		ld	(arcPtr), hl
  9073 		call	Page7D_2CE2
  9073 		call	Page7D_2CE2
  9074 
  9074 
  9075 p7Dloc_6B12:				; CODE XREF: seg001:6B33j
  9075 p7Dloc_6B12:
  9076 		ld	c, 0FCh	; '�'
  9076 		ld	c, 0FCh	; '�'
  9077 		call	Page7D_2B6E
  9077 		call	Page7D_2B6E
  9078 		jr	z, p7Dloc_6AEA
  9078 		jr	z, p7Dloc_6AEA
  9079 		ld	(arcPage), a
  9079 		ld	(arcPage), a
  9080 		ld	(arcPtr), hl
  9080 		ld	(arcPtr), hl
  9089 		call	Page7D_2CCA
  9089 		call	Page7D_2CCA
  9090 		ld	a, (arcPage)
  9090 		ld	a, (arcPage)
  9091 		jr	p7Dloc_6B12
  9091 		jr	p7Dloc_6B12
  9092 ; ---------------------------------------------------------------------------
  9092 ; ---------------------------------------------------------------------------
  9093 
  9093 
  9094 locret_6B35:				; CODE XREF: seg001:6B02j
  9094 locret_6B35:
  9095 		ret
  9095 		ret
  9096 
  9096 
  9097 ; =============== S U B	R O U T	I N E =======================================
  9097 ; =============== S U B	R O U T	I N E =======================================
  9098 
  9098 
  9099 
  9099 
  9100 Page7D_2CD0:				; CODE XREF: p7Dsub_4083+Bp p7Dsub_4566+3p ...
  9100 Page7D_2CD0:
  9101 		push	hl
  9101 		push	hl
  9102 		push	bc
  9102 		push	bc
  9103 		push	de
  9103 		push	de
  9104 		ld	bc, 1
  9104 		ld	bc, 1
  9105 		ld	de, flashByte1
  9105 		ld	de, flashByte1
  9113 
  9113 
  9114 
  9114 
  9115 ; =============== S U B	R O U T	I N E =======================================
  9115 ; =============== S U B	R O U T	I N E =======================================
  9116 
  9116 
  9117 
  9117 
  9118 FlashToRam:				; CODE XREF: p7Dsub_424C+3p p7Dsub_42AE+Dp ...
  9118 FlashToRam:
  9119 		call	NZIf83Plus
  9119 		call	NZIf83Plus
  9120 		jr	z, p7Dloc_6B50
  9120 		jr	z, p7Dloc_6B50
  9121 		and	1Fh
  9121 		and	1Fh
  9122 
  9122 
  9123 p7Dloc_6B50:				; CODE XREF: FlashToRam+3j
  9123 p7Dloc_6B50:
  9124 		push	ix
  9124 		push	ix
  9125 		ld	ix, FlashToRamPrivilegedCopy
  9125 		ld	ix, FlashToRamPrivilegedCopy
  9126 		call	p7Dsub_6B87
  9126 		call	p7Dsub_6B87
  9127 		pop	ix
  9127 		pop	ix
  9128 		ret
  9128 		ret
  9136 		ld	a, (flashByte2)
  9136 		ld	a, (flashByte2)
  9137 		out	(6), a
  9137 		out	(6), a
  9138 		bit	7, h
  9138 		bit	7, h
  9139 		jr	nz, p7Dloc_6B83
  9139 		jr	nz, p7Dloc_6B83
  9140 
  9140 
  9141 p7Dloc_6B6D:				; CODE XREF: seg001:6B7Dj
  9141 p7Dloc_6B6D:
  9142 		bit	7, h
  9142 		bit	7, h
  9143 		jr	z, p7Dloc_6B79
  9143 		jr	z, p7Dloc_6B79
  9144 		in	a, (6)
  9144 		in	a, (6)
  9145 		inc	a
  9145 		inc	a
  9146 		out	(6), a
  9146 		out	(6), a
  9147 		ld	hl, 4000h
  9147 		ld	hl, 4000h
  9148 
  9148 
  9149 p7Dloc_6B79:				; CODE XREF: seg001:6B6Fj
  9149 p7Dloc_6B79:
  9150 		ldi
  9150 		ldi
  9151 		ld	a, b
  9151 		ld	a, b
  9152 		or	c
  9152 		or	c
  9153 		jr	nz, p7Dloc_6B6D
  9153 		jr	nz, p7Dloc_6B6D
  9154 
  9154 
  9155 p7Dloc_6B7F:				; CODE XREF: seg001:6B85j
  9155 p7Dloc_6B7F:
  9156 		pop	af
  9156 		pop	af
  9157 		out	(6), a
  9157 		out	(6), a
  9158 		ret
  9158 		ret
  9159 p7Dloc_6B83:				; CODE XREF: seg001:6B6Bj
  9159 p7Dloc_6B83:
  9160 		ldir
  9160 		ldir
  9161 		jr	p7Dloc_6B7F
  9161 		jr	p7Dloc_6B7F
  9162 
  9162 
  9163 ; =============== S U B	R O U T	I N E =======================================
  9163 ; =============== S U B	R O U T	I N E =======================================
  9164 
  9164 
  9165 
  9165 
  9166 p7Dsub_6B87:				; CODE XREF: FlashToRam+Dp
  9166 p7Dsub_6B87:
  9167 		; p7Dsub_7666+11p
  9167 		; p7Dsub_7666+11p
  9168 		call	p7Dsub_6BB0
  9168 		call	p7Dsub_6BB0
  9169 		push	bc
  9169 		push	bc
  9170 		push	de
  9170 		push	de
  9171 		push	hl
  9171 		push	hl
  9187 		ld	a, (unk_82A2)
  9187 		ld	a, (unk_82A2)
  9188 		bit	2, a
  9188 		bit	2, a
  9189 		jr	z, p7Dloc_6BAB
  9189 		jr	z, p7Dloc_6BAB
  9190 		ei
  9190 		ei
  9191 
  9191 
  9192 p7Dloc_6BAB:				; CODE XREF: p7Dsub_6B87+21j
  9192 p7Dloc_6BAB:
  9193 		pop	af
  9193 		pop	af
  9194 		ret
  9194 		ret
  9195 ; End of function p7Dsub_6B87
  9195 ; End of function p7Dsub_6B87
  9196 
  9196 
  9197 
  9197 
  9198 ; =============== S U B	R O U T	I N E =======================================
  9198 ; =============== S U B	R O U T	I N E =======================================
  9199 
  9199 
  9200 
  9200 
  9201 p7Dsub_6BAD:				; CODE XREF: p7Dsub_6B87+18p
  9201 p7Dsub_6BAD:
  9202 		jp	ramCode
  9202 		jp	ramCode
  9203 ; End of function p7Dsub_6BAD
  9203 ; End of function p7Dsub_6BAD
  9204 
  9204 
  9205 
  9205 
  9206 ; =============== S U B	R O U T	I N E =======================================
  9206 ; =============== S U B	R O U T	I N E =======================================
  9207 
  9207 
  9208 
  9208 
  9209 p7Dsub_6BB0:				; CODE XREF: p7Dsub_6B87p
  9209 p7Dsub_6BB0:
  9210 		push	af
  9210 		push	af
  9211 		push	bc
  9211 		push	bc
  9212 		ld	a, i
  9212 		ld	a, i
  9213 		push	af
  9213 		push	af
  9214 		di
  9214 		di
  9249 
  9249 
  9250 Page7D_2D3C:
  9250 Page7D_2D3C:
  9251 		res	7, (iy+24h)
  9251 		res	7, (iy+24h)
  9252 		ld	a, 8
  9252 		ld	a, 8
  9253 
  9253 
  9254 p7Dloc_6BE8:				; CODE XREF: seg001:6C0Cj
  9254 p7Dloc_6BE8:
  9255 		push	af
  9255 		push	af
  9256 		ld	hl, 4000h
  9256 		ld	hl, 4000h
  9257 		call	Page7D_2CD0
  9257 		call	Page7D_2CD0
  9258 		cp	0FEh ; '�'
  9258 		cp	0FEh ; '�'
  9259 		jr	nz, p7Dloc_6BF9
  9259 		jr	nz, p7Dloc_6BF9
  9260 
  9260 
  9261 p7Dloc_6BF3:				; CODE XREF: seg001:6BFFj seg001:6C1Ej
  9261 p7Dloc_6BF3:
  9262 		pop	af
  9262 		pop	af
  9263 		add	a, 3
  9263 		add	a, 3
  9264 		push	af
  9264 		push	af
  9265 		jr	p7Dloc_6C01
  9265 		jr	p7Dloc_6C01
  9266 ; ---------------------------------------------------------------------------
  9266 ; ---------------------------------------------------------------------------
  9267 
  9267 
  9268 p7Dloc_6BF9:				; CODE XREF: seg001:6BF1j
  9268 p7Dloc_6BF9:
  9269 		cp	0F0h ; '�'
  9269 		cp	0F0h ; '�'
  9270 		jr	z, p7Dloc_6C0E
  9270 		jr	z, p7Dloc_6C0E
  9271 		cp	0FFh
  9271 		cp	0FFh
  9272 		jr	z, p7Dloc_6BF3
  9272 		jr	z, p7Dloc_6BF3
  9273 
  9273 
  9274 p7Dloc_6C01:				; CODE XREF: seg001:6BF7j
  9274 p7Dloc_6C01:
  9275 		pop	af
  9275 		pop	af
  9276 		push	hl
  9276 		push	hl
  9277 		call	Page7D_2B56
  9277 		call	Page7D_2B56
  9278 		cp	b
  9278 		cp	b
  9279 		pop	hl
  9279 		pop	hl
  9280 		jp	nc, p7Dloc_6CAB
  9280 		jp	nc, p7Dloc_6CAB
  9281 		inc	a
  9281 		inc	a
  9282 		jr	p7Dloc_6BE8
  9282 		jr	p7Dloc_6BE8
  9283 ; ---------------------------------------------------------------------------
  9283 ; ---------------------------------------------------------------------------
  9284 
  9284 
  9285 p7Dloc_6C0E:				; CODE XREF: seg001:6BFBj
  9285 p7Dloc_6C0E:
  9286 		pop	af
  9286 		pop	af
  9287 		push	af
  9287 		push	af
  9288 		ld	(arcPage), a
  9288 		ld	(arcPage), a
  9289 		ld	(arcPtr), hl
  9289 		ld	(arcPtr), hl
  9290 		call	Page7D_2CE2
  9290 		call	Page7D_2CE2
  9291 
  9291 
  9292 p7Dloc_6C19:				; CODE XREF: seg001:6CA8j
  9292 p7Dloc_6C19:
  9293 		ld	c, 0FCh	; '�'
  9293 		ld	c, 0FCh	; '�'
  9294 		call	Page7D_2B6E
  9294 		call	Page7D_2B6E
  9295 		jr	z, p7Dloc_6BF3
  9295 		jr	z, p7Dloc_6BF3
  9296 		ld	(arcPage), a
  9296 		ld	(arcPage), a
  9297 		ld	(arcPtr), hl
  9297 		ld	(arcPtr), hl
  9308 		call	page0_17B3
  9308 		call	page0_17B3
  9309 		jr	z, p7Dloc_6C49
  9309 		jr	z, p7Dloc_6C49
  9310 		call	IS_A_LSTorCLST
  9310 		call	IS_A_LSTorCLST
  9311 		jr	nz, p7Dloc_6C6A
  9311 		jr	nz, p7Dloc_6C6A
  9312 
  9312 
  9313 p7Dloc_6C49:				; CODE XREF: seg001:6C42j
  9313 p7Dloc_6C49:
  9314 		or	a
  9314 		or	a
  9315 		call	Page0Call_23F6
  9315 		call	Page0Call_23F6
  9316 		jr	nc, p7Dloc_6C52
  9316 		jr	nc, p7Dloc_6C52
  9317 		pop	af
  9317 		pop	af
  9318 		inc	a
  9318 		inc	a
  9319 		push	af
  9319 		push	af
  9320 
  9320 
  9321 p7Dloc_6C52:				; CODE XREF: seg001:6C4Dj
  9321 p7Dloc_6C52:
  9322 		pop	af
  9322 		pop	af
  9323 		push	af
  9323 		push	af
  9324 		call	Page7D_2CD0
  9324 		call	Page7D_2CD0
  9325 		ld	c, a
  9325 		ld	c, a
  9326 		ld	b, 0
  9326 		ld	b, 0
  9331 		ld	a, (arcPage)
  9331 		ld	a, (arcPage)
  9332 		push	af
  9332 		push	af
  9333 		jr	p7Dloc_6C76
  9333 		jr	p7Dloc_6C76
  9334 ; ---------------------------------------------------------------------------
  9334 ; ---------------------------------------------------------------------------
  9335 
  9335 
  9336 p7Dloc_6C6A:				; CODE XREF: seg001:6C47j
  9336 p7Dloc_6C6A:
  9337 		or	a
  9337 		or	a
  9338 		call	Page0Call_23F6
  9338 		call	Page0Call_23F6
  9339 		jr	nc, p7Dloc_6C73
  9339 		jr	nc, p7Dloc_6C73
  9340 		pop	af
  9340 		pop	af
  9341 		inc	a
  9341 		inc	a
  9342 		push	af
  9342 		push	af
  9343 
  9343 
  9344 p7Dloc_6C73:				; CODE XREF: seg001:6C6Ej
  9344 p7Dloc_6C73:
  9345 		ld	bc, 3
  9345 		ld	bc, 3
  9346 
  9346 
  9347 p7Dloc_6C76:				; CODE XREF: seg001:6C68j
  9347 p7Dloc_6C76:
  9348 		ld	de, 8479h
  9348 		ld	de, 8479h
  9349 		push	hl
  9349 		push	hl
  9350 		ld	a, (OP1)
  9350 		ld	a, (OP1)
  9351 		push	af
  9351 		push	af
  9352 		call	ZeroOP1
  9352 		call	ZeroOP1
  9368 		call	Page7D_2CE2
  9368 		call	Page7D_2CE2
  9369 		ld	a, (arcPage)
  9369 		ld	a, (arcPage)
  9370 		jp	p7Dloc_6C19
  9370 		jp	p7Dloc_6C19
  9371 ; ---------------------------------------------------------------------------
  9371 ; ---------------------------------------------------------------------------
  9372 
  9372 
  9373 p7Dloc_6CAB:				; CODE XREF: seg001:6C08j
  9373 p7Dloc_6CAB:
  9374 		res	2, (iy+25h)
  9374 		res	2, (iy+25h)
  9375 		ld	a, 3
  9375 		ld	a, 3
  9376 		call	Page0Call_2EB9
  9376 		call	Page0Call_2EB9
  9377 		ret
  9377 		ret
  9378 
  9378 
  9379 ; =============== S U B	R O U T	I N E =======================================
  9379 ; =============== S U B	R O U T	I N E =======================================
  9380 
  9380 
  9381 
  9381 
  9382 Page7D_2C16:				; CODE XREF: p7Dsub_7240+1F3p
  9382 Page7D_2C16:
  9383 		; seg001:77F3p
  9383 
  9384 		ld	hl, 8697h
  9384 		ld	hl, 8697h
  9385 		call	NZIf83Plus
  9385 		call	NZIf83Plus
  9386 		jr	z, p7Dloc_6CC4
  9386 		jr	z, p7Dloc_6CC4
  9387 		ld	c, a
  9387 		ld	c, a
  9388 		ld	b, 0
  9388 		ld	b, 0
  9389 		add	hl, bc
  9389 		add	hl, bc
  9390 		set	7, (hl)
  9390 		set	7, (hl)
  9391 		ret
  9391 		ret
  9392 ; ---------------------------------------------------------------------------
  9392 ; ---------------------------------------------------------------------------
  9393 
  9393 
  9394 p7Dloc_6CC4:				; CODE XREF: Page7D_2C16+6j
  9394 p7Dloc_6CC4:
  9395 		ld	b, a
  9395 		ld	b, a
  9396 		call	Page0Call_2DB1
  9396 		call	Page0Call_2DB1
  9397 		or	(hl)
  9397 		or	(hl)
  9398 		ld	(hl), a
  9398 		ld	(hl), a
  9399 		ret
  9399 		ret
  9401 
  9401 
  9402 
  9402 
  9403 ; =============== S U B	R O U T	I N E =======================================
  9403 ; =============== S U B	R O U T	I N E =======================================
  9404 
  9404 
  9405 
  9405 
  9406 p7Dsub_6CCB:				; CODE XREF: seg001:6D56p
  9406 p7Dsub_6CCB:
  9407 		ld	(arcPage), a
  9407 		ld	(arcPage), a
  9408 		ld	(arcPtr), hl
  9408 		ld	(arcPtr), hl
  9409 		ld	de, 3
  9409 		ld	de, 3
  9410 		call	Page7D_2CCA
  9410 		call	Page7D_2CCA
  9411 		call	ZeroOP1
  9411 		call	ZeroOP1
  9417 		jr	nc, p7Dloc_6CF2
  9417 		jr	nc, p7Dloc_6CF2
  9418 		ld	a, (arcPage)
  9418 		ld	a, (arcPage)
  9419 		inc	a
  9419 		inc	a
  9420 		ld	(arcPage), a
  9420 		ld	(arcPage), a
  9421 
  9421 
  9422 p7Dloc_6CF2:				; CODE XREF: p7Dsub_6CCB+1Ej
  9422 p7Dloc_6CF2:
  9423 		ld	(arcPtr), hl
  9423 		ld	(arcPtr), hl
  9424 		ld	a, (OP1)
  9424 		ld	a, (OP1)
  9425 		ld	b, 3
  9425 		ld	b, 3
  9426 		call	page0_17B3
  9426 		call	page0_17B3
  9427 		jr	z, p7Dloc_6D11
  9427 		jr	z, p7Dloc_6D11
  9431 		call	Page7D_2CD0
  9431 		call	Page7D_2CD0
  9432 		cp	5Dh ; ']'
  9432 		cp	5Dh ; ']'
  9433 		ld	a, (arcPage)
  9433 		ld	a, (arcPage)
  9434 		jr	nz, p7Dloc_6D21
  9434 		jr	nz, p7Dloc_6D21
  9435 
  9435 
  9436 p7Dloc_6D11:				; CODE XREF: p7Dsub_6CCB+32j p7Dsub_6CCB+37j
  9436 p7Dloc_6D11:
  9437 		ld	a, (arcPage)
  9437 		ld	a, (arcPage)
  9438 		ld	hl, (arcPtr)
  9438 		ld	hl, (arcPtr)
  9439 		call	Page7D_2CD0
  9439 		call	Page7D_2CD0
  9440 		ld	b, a
  9440 		ld	b, a
  9441 		ld	a, (arcPage)
  9441 		ld	a, (arcPage)
  9442 		call	Page7D_2CE2
  9442 		call	Page7D_2CE2
  9443 
  9443 
  9444 p7Dloc_6D21:				; CODE XREF: p7Dsub_6CCB+44j
  9444 p7Dloc_6D21:
  9445 		ld	de, 8479h
  9445 		ld	de, 8479h
  9446 
  9446 
  9447 p7Dloc_6D24:				; CODE XREF: p7Dsub_6CCB+69j
  9447 p7Dloc_6D24:
  9448 		ld	a, (arcPage)
  9448 		ld	a, (arcPage)
  9449 		ld	hl, (arcPtr)
  9449 		ld	hl, (arcPtr)
  9450 		push	bc
  9450 		push	bc
  9451 		call	Page7D_2CD0
  9451 		call	Page7D_2CD0
  9452 		pop	bc
  9452 		pop	bc
  9571 		or	a
  9571 		or	a
  9572 		sbc	hl, bc
  9572 		sbc	hl, bc
  9573 		push	hl
  9573 		push	hl
  9574 		pop	bc
  9574 		pop	bc
  9575 
  9575 
  9576 p7Dloc_6E40:				; CODE XREF: seg001:6EA4j
  9576 p7Dloc_6E40:
  9577 		ld	hl, 0
  9577 		ld	hl, 0
  9578 		ld	(unk_83F3+1), hl
  9578 		ld	(unk_83F3+1), hl
  9579 		ld	de, ramStart
  9579 		ld	de, ramStart
  9580 
  9580 
  9581 p7Dloc_6E49:				; CODE XREF: seg001:6E75j
  9581 p7Dloc_6E49:
  9582 		push	bc
  9582 		push	bc
  9583 		ld	a, (arcInfo)
  9583 		ld	a, (arcInfo)
  9584 		ld	b, a
  9584 		ld	b, a
  9585 		ld	hl, (arcInfo+1)
  9585 		ld	hl, (arcInfo+1)
  9586 		call	LoadCIndPaged
  9586 		call	LoadCIndPaged
  9591 		bit	7, h
  9591 		bit	7, h
  9592 		jr	z, p7Dloc_6E60
  9592 		jr	z, p7Dloc_6E60
  9593 		inc	b
  9593 		inc	b
  9594 		ld	hl, 4000h
  9594 		ld	hl, 4000h
  9595 
  9595 
  9596 p7Dloc_6E60:				; CODE XREF: seg001:6E5Aj
  9596 p7Dloc_6E60:
  9597 		call	p7Dsub_6ECE
  9597 		call	p7Dsub_6ECE
  9598 		ld	a, b
  9598 		ld	a, b
  9599 		ld	(arcInfo), a
  9599 		ld	(arcInfo), a
  9600 		ld	(arcInfo+1), hl
  9600 		ld	(arcInfo+1), hl
  9601 		pop	bc
  9601 		pop	bc
  9606 		call	p7Dsub_6ED5
  9606 		call	p7Dsub_6ED5
  9607 		jr	z, p7Dloc_6E77
  9607 		jr	z, p7Dloc_6E77
  9608 		jr	p7Dloc_6E49
  9608 		jr	p7Dloc_6E49
  9609 ; ---------------------------------------------------------------------------
  9609 ; ---------------------------------------------------------------------------
  9610 
  9610 
  9611 p7Dloc_6E77:				; CODE XREF: seg001:6E73j
  9611 p7Dloc_6E77:
  9612 		push	bc
  9612 		push	bc
  9613 		ld	hl, ramStart
  9613 		ld	hl, ramStart
  9614 		ld	de, (unk_83F1+1)
  9614 		ld	de, (unk_83F1+1)
  9615 		ld	a, (unk_83F1)
  9615 		ld	a, (unk_83F1)
  9616 		ld	(arcPtr), de
  9616 		ld	(arcPtr), de
  9628 		ld	(unk_83F1+1), hl
  9628 		ld	(unk_83F1+1), hl
  9629 		pop	bc
  9629 		pop	bc
  9630 		jp	p7Dloc_6E40
  9630 		jp	p7Dloc_6E40
  9631 ; ---------------------------------------------------------------------------
  9631 ; ---------------------------------------------------------------------------
  9632 
  9632 
  9633 p7Dloc_6EA7:				; CODE XREF: seg001:6E6Ej
  9633 p7Dloc_6EA7:
  9634 		ld	hl, ramStart
  9634 		ld	hl, ramStart
  9635 		ld	de, (unk_83F1+1)
  9635 		ld	de, (unk_83F1+1)
  9636 		ld	a, (unk_83F1)
  9636 		ld	a, (unk_83F1)
  9637 		ld	bc, (unk_83F3+1)
  9637 		ld	bc, (unk_83F3+1)
  9638 		rst	28h
  9638 		rst	28h
  9657 		ret
  9657 		ret
  9658 
  9658 
  9659 ; =============== S U B	R O U T	I N E =======================================
  9659 ; =============== S U B	R O U T	I N E =======================================
  9660 
  9660 
  9661 
  9661 
  9662 p7Dsub_6ECE:				; CODE XREF: seg001:p7Dloc_6E60p
  9662 p7Dsub_6ECE:
  9663 		push	hl
  9663 		push	hl
  9664 		ld	hl, 83F4h
  9664 		ld	hl, 83F4h
  9665 		inc	(hl)
  9665 		inc	(hl)
  9666 		pop	hl
  9666 		pop	hl
  9667 		ret
  9667 		ret
  9669 
  9669 
  9670 
  9670 
  9671 ; =============== S U B	R O U T	I N E =======================================
  9671 ; =============== S U B	R O U T	I N E =======================================
  9672 
  9672 
  9673 
  9673 
  9674 p7Dsub_6ED5:				; CODE XREF: seg001:6E70p
  9674 p7Dsub_6ED5:
  9675 		ld	a, (unk_83F3+1)
  9675 		ld	a, (unk_83F3+1)
  9676 		cp	0FFh
  9676 		cp	0FFh
  9677 		ret
  9677 		ret
  9678 ; End of function p7Dsub_6ED5
  9678 ; End of function p7Dsub_6ED5
  9679 
  9679 
  9680 
  9680 
  9681 ; =============== S U B	R O U T	I N E =======================================
  9681 ; =============== S U B	R O U T	I N E =======================================
  9682 
  9682 
  9683 
  9683 
  9684 Page7D_2C10:				; CODE XREF: seg001:65D7p
  9684 Page7D_2C10:
  9685 		call	p7Dsub_75EC
  9685 		call	p7Dsub_75EC
  9686 
  9686 
  9687 p7Dloc_6EDE:				; CODE XREF: Page7D_2C10+2Dj
  9687 p7Dloc_6EDE:
  9688 		; Page7D_2C10+75j
  9688 		; Page7D_2C10+75j
  9689 		call	p7Dsub_7BD4
  9689 		call	p7Dsub_7BD4
  9690 		call	Page7D_2B56
  9690 		call	Page7D_2B56
  9691 		cp	b
  9691 		cp	b
  9692 		jr	c, locret_6F53
  9692 		jr	c, locret_6F53
  9703 		or	c
  9703 		or	c
  9704 		jr	z, p7Dloc_6F52
  9704 		jr	z, p7Dloc_6F52
  9705 		ld	b, c
  9705 		ld	b, c
  9706 		ld	de, 4000h
  9706 		ld	de, 4000h
  9707 
  9707 
  9708 p7Dloc_6F01:				; CODE XREF: Page7D_2C10+29j
  9708 p7Dloc_6F01:
  9709 		call	p7Dsub_652E
  9709 		call	p7Dsub_652E
  9710 		djnz	p7Dloc_6F01
  9710 		djnz	p7Dloc_6F01
  9711 
  9711 
  9712 p7Dloc_6F06:				; CODE XREF: Page7D_2C10+71j
  9712 p7Dloc_6F06:
  9713 		pop	af
  9713 		pop	af
  9714 		sub	c
  9714 		sub	c
  9715 		jr	p7Dloc_6EDE
  9715 		jr	p7Dloc_6EDE
  9716 ; ---------------------------------------------------------------------------
  9716 ; ---------------------------------------------------------------------------
  9717 
  9717 
  9718 p7Dloc_6F0A:				; CODE XREF: Page7D_2C10+17j
  9718 p7Dloc_6F0A:
  9719 		cp	80h ; '�'
  9719 		cp	80h ; '�'
  9720 		jr	nz, p7Dloc_6F52
  9720 		jr	nz, p7Dloc_6F52
  9721 		pop	af
  9721 		pop	af
  9722 		push	af
  9722 		push	af
  9723 		call	Page0Call_3E31
  9723 		call	Page0Call_3E31
  9733 		ld	a, c
  9733 		ld	a, c
  9734 		or	c
  9734 		or	c
  9735 		jr	z, p7Dloc_6F52
  9735 		jr	z, p7Dloc_6F52
  9736 		ld	b, c
  9736 		ld	b, c
  9737 
  9737 
  9738 p7Dloc_6F29:				; CODE XREF: Page7D_2C10+66j
  9738 p7Dloc_6F29:
  9739 		pop	af
  9739 		pop	af
  9740 		push	af
  9740 		push	af
  9741 		push	bc
  9741 		push	bc
  9742 		ld	de, 4000h
  9742 		ld	de, 4000h
  9743 		ld	b, 0
  9743 		ld	b, 0
  9754 		dec	a
  9754 		dec	a
  9755 		push	af
  9755 		push	af
  9756 		jr	p7Dloc_6F29
  9756 		jr	p7Dloc_6F29
  9757 ; ---------------------------------------------------------------------------
  9757 ; ---------------------------------------------------------------------------
  9758 
  9758 
  9759 p7Dloc_6F43:				; CODE XREF: Page7D_2C10+42j
  9759 p7Dloc_6F43:
  9760 		pop	af
  9760 		pop	af
  9761 		push	af
  9761 		push	af
  9762 		call	FindAppNumPages
  9762 		call	FindAppNumPages
  9763 		ld	a, c
  9763 		ld	a, c
  9764 		or	a
  9764 		or	a
  9765 		jr	z, p7Dloc_6F52
  9765 		jr	z, p7Dloc_6F52
  9766 		jr	p7Dloc_6F06
  9766 		jr	p7Dloc_6F06
  9767 ; ---------------------------------------------------------------------------
  9767 ; ---------------------------------------------------------------------------
  9768 
  9768 
  9769 p7Dloc_6F4E:				; CODE XREF: Page7D_2C10+61j
  9769 p7Dloc_6F4E:
  9770 		pop	af
  9770 		pop	af
  9771 		dec	a
  9771 		dec	a
  9772 		jr	p7Dloc_6EDE
  9772 		jr	p7Dloc_6EDE
  9773 ; ---------------------------------------------------------------------------
  9773 ; ---------------------------------------------------------------------------
  9774 
  9774 
  9775 p7Dloc_6F52:				; CODE XREF: Page7D_2C10+20j
  9775 p7Dloc_6F52:
  9776 		; Page7D_2C10+31j ...
  9776 		; Page7D_2C10+31j ...
  9777 		pop	af
  9777 		pop	af
  9778 
  9778 
  9779 locret_6F53:				; CODE XREF: Page7D_2C10+Aj
  9779 locret_6F53:
  9780 		; Page7D_2C10+Cj
  9780 		; Page7D_2C10+Cj
  9781 		ret
  9781 		ret
  9782 ; End of function Page7D_2C10
  9782 ; End of function Page7D_2C10
  9783 
  9783 
  9784 
  9784 
  9785 ; =============== S U B	R O U T	I N E =======================================
  9785 ; =============== S U B	R O U T	I N E =======================================
  9786 
  9786 
  9787 
  9787 
  9788 Page7D_2C46:				; CODE XREF: seg001:6853p
  9788 Page7D_2C46:
  9789 		; Page7D_2EB0+72p ...
  9789 		; Page7D_2EB0+72p ...
  9790 		push	hl
  9790 		push	hl
  9791 		push	de
  9791 		push	de
  9792 		push	bc
  9792 		push	bc
  9793 		cp	8
  9793 		cp	8
  9801 		pop	af
  9801 		pop	af
  9802 		cp	b
  9802 		cp	b
  9803 		jr	z, p7Dloc_6F6E
  9803 		jr	z, p7Dloc_6F6E
  9804 		jr	nc, p7Dloc_6F7D
  9804 		jr	nc, p7Dloc_6F7D
  9805 
  9805 
  9806 p7Dloc_6F6E:				; CODE XREF: Page7D_2C46+16j
  9806 p7Dloc_6F6E:
  9807 		ld	bc, 4000h
  9807 		ld	bc, 4000h
  9808 		sbc	hl, bc
  9808 		sbc	hl, bc
  9809 		jr	c, p7Dloc_6F7D
  9809 		jr	c, p7Dloc_6F7D
  9810 		ex	de, hl
  9810 		ex	de, hl
  9811 		or	a
  9811 		or	a
  9812 		sbc	hl, bc
  9812 		sbc	hl, bc
  9813 		jr	c, p7Dloc_6F7D
  9813 		jr	c, p7Dloc_6F7D
  9814 		jr	p7Dloc_6F7E
  9814 		jr	p7Dloc_6F7E
  9815 ; ---------------------------------------------------------------------------
  9815 ; ---------------------------------------------------------------------------
  9816 
  9816 
  9817 p7Dloc_6F7D:				; CODE XREF: Page7D_2C46+5j
  9817 p7Dloc_6F7D:
  9818 		; Page7D_2C46+18j ...
  9818 		; Page7D_2C46+18j ...
  9819 		scf
  9819 		scf
  9820 
  9820 
  9821 p7Dloc_6F7E:				; CODE XREF: Page7D_2C46+27j
  9821 p7Dloc_6F7E:
  9822 		pop	bc
  9822 		pop	bc
  9823 		pop	de
  9823 		pop	de
  9824 		pop	hl
  9824 		pop	hl
  9825 		ret
  9825 		ret
  9826 ; End of function Page7D_2C46
  9826 ; End of function Page7D_2C46
  9827 
  9827 
  9828 
  9828 
  9829 ; =============== S U B	R O U T	I N E =======================================
  9829 ; =============== S U B	R O U T	I N E =======================================
  9830 
  9830 
  9831 
  9831 
  9832 p7Dsub_6F82:				; CODE XREF: Page7D_2EB0+29p
  9832 p7Dsub_6F82:
  9833 		; Page7D_2EB0+4Bp ...
  9833 		; Page7D_2EB0+4Bp ...
  9834 		push	hl
  9834 		push	hl
  9835 		push	de
  9835 		push	de
  9836 		push	bc
  9836 		push	bc
  9837 		cp	8
  9837 		cp	8
  9845 		pop	af
  9845 		pop	af
  9846 		cp	b
  9846 		cp	b
  9847 		jr	z, p7Dloc_6F9C
  9847 		jr	z, p7Dloc_6F9C
  9848 		jr	nc, p7Dloc_6FA7
  9848 		jr	nc, p7Dloc_6FA7
  9849 
  9849 
  9850 p7Dloc_6F9C:				; CODE XREF: p7Dsub_6F82+16j
  9850 p7Dloc_6F9C:
  9851 		ld	bc, 4000h
  9851 		ld	bc, 4000h
  9852 		ex	de, hl
  9852 		ex	de, hl
  9853 		or	a
  9853 		or	a
  9854 		sbc	hl, bc
  9854 		sbc	hl, bc
  9855 		jr	c, p7Dloc_6FA7
  9855 		jr	c, p7Dloc_6FA7
  9856 		jr	p7Dloc_6FA8
  9856 		jr	p7Dloc_6FA8
  9857 ; ---------------------------------------------------------------------------
  9857 ; ---------------------------------------------------------------------------
  9858 
  9858 
  9859 p7Dloc_6FA7:				; CODE XREF: p7Dsub_6F82+5j p7Dsub_6F82+18j	...
  9859 p7Dloc_6FA7:
  9860 		scf
  9860 		scf
  9861 
  9861 
  9862 p7Dloc_6FA8:				; CODE XREF: p7Dsub_6F82+23j
  9862 p7Dloc_6FA8:
  9863 		pop	bc
  9863 		pop	bc
  9864 		pop	de
  9864 		pop	de
  9865 		pop	hl
  9865 		pop	hl
  9866 		ret
  9866 		ret
  9867 ; End of function p7Dsub_6F82
  9867 ; End of function p7Dsub_6F82
  9868 
  9868 
  9869 
  9869 
  9870 ; =============== S U B	R O U T	I N E =======================================
  9870 ; =============== S U B	R O U T	I N E =======================================
  9871 
  9871 
  9872 
  9872 
  9873 p7Dsub_6FAC:				; CODE XREF: seg001:4011p
  9873 p7Dsub_6FAC:
  9874 		; DeleteApp+11p
  9874 		; DeleteApp+11p
  9875 		push	hl
  9875 		push	hl
  9876 		push	bc
  9876 		push	bc
  9877 		call	p7Dsub_75E1
  9877 		call	p7Dsub_75E1
  9878 		jr	nc, p7Dloc_6FBD
  9878 		jr	nc, p7Dloc_6FBD
  9879 		call	Page7D_2B56
  9879 		call	Page7D_2B56
  9880 		cp	b
  9880 		cp	b
  9881 		jr	c, p7Dloc_6FBA
  9881 		jr	c, p7Dloc_6FBA
  9882 		or	a
  9882 		or	a
  9883 
  9883 
  9884 p7Dloc_6FBA:				; CODE XREF: p7Dsub_6FAC+Bj p7Dsub_6FAC+12j
  9884 p7Dloc_6FBA:
  9885 		pop	bc
  9885 		pop	bc
  9886 		pop	hl
  9886 		pop	hl
  9887 		ret
  9887 		ret
  9888 ; ---------------------------------------------------------------------------
  9888 ; ---------------------------------------------------------------------------
  9889 
  9889 
  9890 p7Dloc_6FBD:				; CODE XREF: p7Dsub_6FAC+5j
  9890 p7Dloc_6FBD:
  9891 		scf
  9891 		scf
  9892 		jr	p7Dloc_6FBA
  9892 		jr	p7Dloc_6FBA
  9893 ; End of function p7Dsub_6FAC
  9893 ; End of function p7Dsub_6FAC
  9894 
  9894 
  9895 
  9895 
  9896 ; =============== S U B	R O U T	I N E =======================================
  9896 ; =============== S U B	R O U T	I N E =======================================
  9897 
  9897 
  9898 
  9898 
  9899 p7Dsub_6FC0:				; CODE XREF: seg001:634Cp
  9899 p7Dsub_6FC0:
  9900 		push	hl
  9900 		push	hl
  9901 		push	bc
  9901 		push	bc
  9902 		push	de
  9902 		push	de
  9903 		ld	hl, 4000h
  9903 		ld	hl, 4000h
  9904 		ld	de, 80C0h
  9904 		ld	de, 80C0h
  9922 		jr	z, p7Dloc_6FE9
  9922 		jr	z, p7Dloc_6FE9
  9923 		jr	c, p7Dloc_6FF4
  9923 		jr	c, p7Dloc_6FF4
  9924 		jr	p7Dloc_6FF5
  9924 		jr	p7Dloc_6FF5
  9925 ; ---------------------------------------------------------------------------
  9925 ; ---------------------------------------------------------------------------
  9926 
  9926 
  9927 p7Dloc_6FE9:				; CODE XREF: p7Dsub_6FC0+23j
  9927 p7Dloc_6FE9:
  9928 		call	GetBaseVer
  9928 		call	GetBaseVer
  9929 		ld	a, (unk_83A6)
  9929 		ld	a, (unk_83A6)
  9930 		cp	b
  9930 		cp	b
  9931 		jr	z, p7Dloc_6FF4
  9931 		jr	z, p7Dloc_6FF4
  9932 		jr	nc, p7Dloc_6FF5
  9932 		jr	nc, p7Dloc_6FF5
  9933 
  9933 
  9934 p7Dloc_6FF4:				; CODE XREF: p7Dsub_6FC0+Cj p7Dsub_6FC0+25j	...
  9934 p7Dloc_6FF4:
  9935 		xor	a
  9935 		xor	a
  9936 
  9936 
  9937 p7Dloc_6FF5:				; CODE XREF: p7Dsub_6FC0+27j p7Dsub_6FC0+32j
  9937 p7Dloc_6FF5:
  9938 		pop	de
  9938 		pop	de
  9939 		pop	bc
  9939 		pop	bc
  9940 		pop	hl
  9940 		pop	hl
  9941 		ret
  9941 		ret
  9942 ; End of function p7Dsub_6FC0
  9942 ; End of function p7Dsub_6FC0
  9943 
  9943 
  9944 
  9944 
  9945 ; =============== S U B	R O U T	I N E =======================================
  9945 ; =============== S U B	R O U T	I N E =======================================
  9946 
  9946 
  9947 
  9947 
  9948 p7Dsub_6FF9:				; CODE XREF: seg001:6355p
  9948 p7Dsub_6FF9:
  9949 		push	hl
  9949 		push	hl
  9950 		push	bc
  9950 		push	bc
  9951 		push	de
  9951 		push	de
  9952 		bit	5, (iy+24h)
  9952 		bit	5, (iy+24h)
  9953 		jr	nz, p7Dloc_701F
  9953 		jr	nz, p7Dloc_701F
  9970 		jr	z, p7Dloc_7024
  9970 		jr	z, p7Dloc_7024
  9971 		ld	a, (hl)
  9971 		ld	a, (hl)
  9972 		or	a
  9972 		or	a
  9973 		jr	z, p7Dloc_7024
  9973 		jr	z, p7Dloc_7024
  9974 
  9974 
  9975 p7Dloc_701F:				; CODE XREF: p7Dsub_6FF9+7j
  9975 p7Dloc_701F:
  9976 		call	page0_BB1
  9976 		call	page0_BB1
  9977 		jr	p7Dloc_7027
  9977 		jr	p7Dloc_7027
  9978 ; ---------------------------------------------------------------------------
  9978 ; ---------------------------------------------------------------------------
  9979 
  9979 
  9980 p7Dloc_7024:				; CODE XREF: p7Dsub_6FF9+15j p7Dsub_6FF9+20j ...
  9980 p7Dloc_7024:
  9981 		call	page0_B8D
  9981 		call	page0_B8D
  9982 
  9982 
  9983 p7Dloc_7027:				; CODE XREF: p7Dsub_6FF9+29j
  9983 p7Dloc_7027:
  9984 		pop	de
  9984 		pop	de
  9985 		pop	bc
  9985 		pop	bc
  9986 		pop	hl
  9986 		pop	hl
  9987 		ret
  9987 		ret
  9988 ; End of function p7Dsub_6FF9
  9988 ; End of function p7Dsub_6FF9
  9992 aHaveExpired_:	.asc 'Have Expired.',0
  9992 aHaveExpired_:	.asc 'Have Expired.',0
  9993 
  9993 
  9994 ; =============== S U B	R O U T	I N E =======================================
  9994 ; =============== S U B	R O U T	I N E =======================================
  9995 
  9995 
  9996 
  9996 
  9997 p7Dsub_7045:				; CODE XREF: p7Dsub_4926+29p p7Dsub_4926+3Bp ...
  9997 p7Dsub_7045:
  9998 		push	bc
  9998 		push	bc
  9999 		push	af
  9999 		push	af
 10000 		ld	a, (winBtm)
 10000 		ld	a, (winBtm)
 10001 		ld	b, a
 10001 		ld	b, a
 10002 
 10002 
 10003 p7Dloc_704B:				; CODE XREF: p7Dsub_7045+13j
 10003 p7Dloc_704B:
 10004 		ld	a, (hl)
 10004 		ld	a, (hl)
 10005 		inc	hl
 10005 		inc	hl
 10006 		or	a
 10006 		or	a
 10007 		scf
 10007 		scf
 10008 		jr	z, p7Dloc_705A
 10008 		jr	z, p7Dloc_705A
 10009 		call	Page0Call_3F9F
 10009 		call	Page0Call_3F9F
 10010 		ld	a, (curRow)
 10010 		ld	a, (curRow)
 10011 		cp	b
 10011 		cp	b
 10012 		jr	c, p7Dloc_704B
 10012 		jr	c, p7Dloc_704B
 10013 
 10013 
 10014 p7Dloc_705A:				; CODE XREF: p7Dsub_7045+Aj
 10014 p7Dloc_705A:
 10015 		pop	bc
 10015 		pop	bc
 10016 		ld	a, b
 10016 		ld	a, b
 10017 		pop	bc
 10017 		pop	bc
 10018 		ret
 10018 		ret
 10019 ; End of function p7Dsub_7045
 10019 ; End of function p7Dsub_7045
 10020 
 10020 
 10021 
 10021 
 10022 ; =============== S U B	R O U T	I N E =======================================
 10022 ; =============== S U B	R O U T	I N E =======================================
 10023 
 10023 
 10024 
 10024 
 10025 p7Dsub_705E:				; CODE XREF: p7Dsub_464E+15p p7Dsub_4AC9+16p ...
 10025 p7Dsub_705E:
 10026 		ld	a, 7Eh ; '~'
 10026 		ld	a, 7Eh ; '~'
 10027 ; End of function p7Dsub_705E
 10027 ; End of function p7Dsub_705E
 10028 
 10028 
 10029 
 10029 
 10030 ; =============== S U B	R O U T	I N E =======================================
 10030 ; =============== S U B	R O U T	I N E =======================================
 10031 
 10031 
 10032 
 10032 
 10033 p7Dsub_7060:				; CODE XREF: p7Dsub_7240+17Bp
 10033 p7Dsub_7060:
 10034 		; seg001:7790p
 10034 
 10035 		push	ix
 10035 		push	ix
 10036 
 10036 
 10037 p7Dloc_7062:				; CODE XREF: p7Dsub_7060+35j
 10037 p7Dloc_7062:
 10038 		push	af
 10038 		push	af
 10039 		rst	28h
 10039 		rst	28h
 10040 ; ---------------------------------------------------------------------------
 10040 ; ---------------------------------------------------------------------------
 10041 		.dw 8051h
 10041 		.dw 8051h
 10042 ; ---------------------------------------------------------------------------
 10042 ; ---------------------------------------------------------------------------
 10055 		pop	af
 10055 		pop	af
 10056 		dec	hl
 10056 		dec	hl
 10057 		jr	p7Dloc_70A2
 10057 		jr	p7Dloc_70A2
 10058 ; ---------------------------------------------------------------------------
 10058 ; ---------------------------------------------------------------------------
 10059 
 10059 
 10060 p7Dloc_7078:				; CODE XREF: p7Dsub_7060+12j
 10060 p7Dloc_7078:
 10061 		pop	af
 10061 		pop	af
 10062 		push	af
 10062 		push	af
 10063 		push	de
 10063 		push	de
 10064 		rst	28h
 10064 		rst	28h
 10065 ; ---------------------------------------------------------------------------
 10065 ; ---------------------------------------------------------------------------
 10080 		cp	e
 10080 		cp	e
 10081 		jr	z, p7Dloc_7093
 10081 		jr	z, p7Dloc_7093
 10082 		cp	10h
 10082 		cp	10h
 10083 		jr	z, p7Dloc_7097
 10083 		jr	z, p7Dloc_7097
 10084 
 10084 
 10085 p7Dloc_7093:				; CODE XREF: p7Dsub_7060+2Dj
 10085 p7Dloc_7093:
 10086 		pop	hl
 10086 		pop	hl
 10087 		pop	af
 10087 		pop	af
 10088 		jr	p7Dloc_7062
 10088 		jr	p7Dloc_7062
 10089 ; ---------------------------------------------------------------------------
 10089 ; ---------------------------------------------------------------------------
 10090 
 10090 
 10091 p7Dloc_7097:				; CODE XREF: p7Dsub_7060+31j
 10091 p7Dloc_7097:
 10092 		pop	hl
 10092 		pop	hl
 10093 		ld	hl, (arcInfo)
 10093 		ld	hl, (arcInfo)
 10094 		ld	a, 1
 10094 		ld	a, 1
 10095 		or	a
 10095 		or	a
 10096 
 10096 
 10097 p7Dloc_709E:				; CODE XREF: p7Dsub_7060+7j
 10097 p7Dloc_709E:
 10098 		pop	bc
 10098 		pop	bc
 10099 		pop	ix
 10099 		pop	ix
 10100 		ret
 10100 		ret
 10101 ; ---------------------------------------------------------------------------
 10101 ; ---------------------------------------------------------------------------
 10102 
 10102 
 10103 p7Dloc_70A2:				; CODE XREF: p7Dsub_7060+16j
 10103 p7Dloc_70A2:
 10104 		ld	a, 0
 10104 		ld	a, 0
 10105 		bit	7, a
 10105 		bit	7, a
 10106 		pop	ix
 10106 		pop	ix
 10107 		ret
 10107 		ret
 10108 ; End of function p7Dsub_7060
 10108 ; End of function p7Dsub_7060
 10139 		ret
 10139 		ret
 10140 
 10140 
 10141 ; =============== S U B	R O U T	I N E =======================================
 10141 ; =============== S U B	R O U T	I N E =======================================
 10142 
 10142 
 10143 
 10143 
 10144 p7Dsub_70D1:				; CODE XREF: p7Dsub_4442+2p p7Dsub_4498+Cp ...
 10144 p7Dsub_70D1:
 10145 		ld	de, 300h
 10145 		ld	de, 300h
 10146 		rst	28h
 10146 		rst	28h
 10147 ; ---------------------------------------------------------------------------
 10147 ; ---------------------------------------------------------------------------
 10148 		.dw 8027h
 10148 		.dw 8027h
 10149 ; ---------------------------------------------------------------------------
 10149 ; ---------------------------------------------------------------------------
 10172 		push	hl
 10172 		push	hl
 10173 		ld	hl, aCert_Revision
 10173 		ld	hl, aCert_Revision
 10174 		ld	de, OP1
 10174 		ld	de, OP1
 10175 		ld	bc, 12h
 10175 		ld	bc, 12h
 10176 
 10176 
 10177 p7Dloc_710A:				; CODE XREF: seg001:710Ej
 10177 p7Dloc_710A:
 10178 		ld	a, (hl)
 10178 		ld	a, (hl)
 10179 		ld	(de), a
 10179 		ld	(de), a
 10180 		inc	hl
 10180 		inc	hl
 10181 		inc	de
 10181 		inc	de
 10182 		djnz	p7Dloc_710A
 10182 		djnz	p7Dloc_710A
 10191 		jp	relockFlashBack
 10191 		jp	relockFlashBack
 10192 
 10192 
 10193 ; =============== S U B	R O U T	I N E =======================================
 10193 ; =============== S U B	R O U T	I N E =======================================
 10194 
 10194 
 10195 
 10195 
 10196 p7Dsub_7124:				; CODE XREF: p7Dsub_6428+10p p7Dsub_7240-EDp ...
 10196 p7Dsub_7124:
 10197 		ld	a, (header)
 10197 		ld	a, (header)
 10198 		cp	23h ; '#'
 10198 		cp	23h ; '#'
 10199 		ret
 10199 		ret
 10200 ; End of function p7Dsub_7124
 10200 ; End of function p7Dsub_7124
 10201 
 10201 
 10223 		call	p7Dsub_7240
 10223 		call	p7Dsub_7240
 10224 		ret
 10224 		ret
 10225 ; ---------------------------------------------------------------------------
 10225 ; ---------------------------------------------------------------------------
 10226 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
 10226 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
 10227 
 10227 
 10228 p7Dloc_7150:				; CODE XREF: seg001:713Aj
 10228 p7Dloc_7150:
 10229 		; p7Dsub_7240:p7Dloc_74EDj ...
 10229 		; p7Dsub_7240:p7Dloc_74EDj ...
 10230 		call	relockFlashBack
 10230 		call	relockFlashBack
 10231 		call	p7Dsub_7124
 10231 		call	p7Dsub_7124
 10232 		push	af
 10232 		push	af
 10233 		jr	z, p7Dloc_715C
 10233 		jr	z, p7Dloc_715C
 10234 		call	popErrorHandleR
 10234 		call	popErrorHandleR
 10235 
 10235 
 10236 p7Dloc_715C:				; CODE XREF: p7Dsub_7240-E9j
 10236 p7Dloc_715C:
 10237 		pop	af
 10237 		pop	af
 10238 		push	af
 10238 		push	af
 10239 		jr	z, p7Dloc_7166
 10239 		jr	z, p7Dloc_7166
 10240 		ld	hl, Page0Call_2C79
 10240 		ld	hl, Page0Call_2C79
 10241 		call	pushErrorHandleR
 10241 		call	pushErrorHandleR
 10242 
 10242 
 10243 p7Dloc_7166:				; CODE XREF: p7Dsub_7240-E2j
 10243 p7Dloc_7166:
 10244 		call	Page0Call_3D2F
 10244 		call	Page0Call_3D2F
 10245 		ld	a, 0Bh
 10245 		ld	a, 0Bh
 10246 		call	Page0Call_2C49
 10246 		call	Page0Call_2C49
 10247 		pop	af
 10247 		pop	af
 10248 		jr	z, p7Dloc_7174
 10248 		jr	z, p7Dloc_7174
 10249 		call	popErrorHandleR
 10249 		call	popErrorHandleR
 10250 
 10250 
 10251 p7Dloc_7174:				; CODE XREF: p7Dsub_7240-D1j
 10251 p7Dloc_7174:
 10252 		call	Page0Call_3D05
 10252 		call	Page0Call_3D05
 10253 		jp	Page0Call_2541
 10253 		jp	Page0Call_2541
 10254 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
 10254 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
 10255 
 10255 
 10256 ; =============== S U B	R O U T	I N E =======================================
 10256 ; =============== S U B	R O U T	I N E =======================================
 10257 
 10257 
 10258 
 10258 
 10259 p7Dsub_717A:				; CODE XREF: p7Dsub_7240+19Dp
 10259 p7Dsub_717A:
 10260 		; seg001:77ABp
 10260 
 10261 		ld	hl, ramStart
 10261 		ld	hl, ramStart
 10262 		ld	de, 81AFh
 10262 		ld	de, 81AFh
 10263 		jr	p7Dloc_7188
 10263 		jr	p7Dloc_7188
 10264 ; End of function p7Dsub_717A
 10264 ; End of function p7Dsub_717A
 10265 
 10265 
 10266 
 10266 
 10267 ; =============== S U B	R O U T	I N E =======================================
 10267 ; =============== S U B	R O U T	I N E =======================================
 10268 
 10268 
 10269 
 10269 
 10270 p7Dsub_7182:				; CODE XREF: p7Dsub_7240+1B1p
 10270 p7Dsub_7182:
 10271 		; p7Dsub_7240+1EDp ...
 10271 		; p7Dsub_7240+1EDp ...
 10272 		ld	hl, 81AFh
 10272 		ld	hl, 81AFh
 10273 		ld	de, ramStart
 10273 		ld	de, ramStart
 10274 
 10274 
 10275 p7Dloc_7188:				; CODE XREF: p7Dsub_717A+6j
 10275 p7Dloc_7188:
 10276 		ld	bc, 80h	; '�'
 10276 		ld	bc, 80h	; '�'
 10277 		ldir
 10277 		ldir
 10278 		ret
 10278 		ret
 10279 ; End of function p7Dsub_7182
 10279 ; End of function p7Dsub_7182
 10280 
 10280 
 10296 		cp	6
 10296 		cp	6
 10297 		jp	z, p7Dloc_7E91
 10297 		jp	z, p7Dloc_7E91
 10298 		jp	ErrInvalid
 10298 		jp	ErrInvalid
 10299 ; ---------------------------------------------------------------------------
 10299 ; ---------------------------------------------------------------------------
 10300 
 10300 
 10301 p7Dloc_71B3:				; CODE XREF: seg001:7190j
 10301 p7Dloc_71B3:
 10302 		push	ix
 10302 		push	ix
 10303 		ld	a, (ramCodeEnd)
 10303 		ld	a, (ramCodeEnd)
 10304 		or	a
 10304 		or	a
 10305 		ld	a, e
 10305 		ld	a, e
 10306 		jr	nz, p7Dloc_71D9
 10306 		jr	nz, p7Dloc_71D9
 10318 		ld	hl, 7Fh	; ''
 10318 		ld	hl, 7Fh	; ''
 10319 		sbc	hl, bc
 10319 		sbc	hl, bc
 10320 		jp	nc, Page0Call_2541
 10320 		jp	nc, Page0Call_2541
 10321 		pop	hl
 10321 		pop	hl
 10322 
 10322 
 10323 p7Dloc_71D9:				; CODE XREF: seg001:71BAj
 10323 p7Dloc_71D9:
 10324 		push	af
 10324 		push	af
 10325 		ld	(appSearchPage+1), a
 10325 		ld	(appSearchPage+1), a
 10326 		call	p7Dsub_5EFC
 10326 		call	p7Dsub_5EFC
 10327 		jp	c, Page0Call_2541
 10327 		jp	c, Page0Call_2541
 10328 		push	hl
 10328 		push	hl
 10337 		ld	e, a
 10337 		ld	e, a
 10338 		ld	a, (appSearchPage+1)
 10338 		ld	a, (appSearchPage+1)
 10339 		cp	e
 10339 		cp	e
 10340 		jp	z, Page0Call_2541
 10340 		jp	z, Page0Call_2541
 10341 
 10341 
 10342 p7Dloc_71FD:				; CODE XREF: seg001:71EAj seg001:71F0j
 10342 p7Dloc_71FD:
 10343 		xor	a
 10343 		xor	a
 10344 		ld	(appInfo), a
 10344 		ld	(appInfo), a
 10345 		ld	(unk_843B), hl
 10345 		ld	(unk_843B), hl
 10346 		ld	(unk_8439), bc
 10346 		ld	(unk_8439), bc
 10347 		push	af
 10347 		push	af
 10359 		res	6, (iy+24h)
 10359 		res	6, (iy+24h)
 10360 		res	7, (iy+24h)
 10360 		res	7, (iy+24h)
 10361 		xor	a
 10361 		xor	a
 10362 		ld	(unk_9C87), a
 10362 		ld	(unk_9C87), a
 10363 
 10363 
 10364 p7Dloc_7225:				; CODE XREF: seg001:723Bj
 10364 p7Dloc_7225:
 10365 		push	bc
 10365 		push	bc
 10366 		ld	a, (unk_83A4)
 10366 		ld	a, (unk_83A4)
 10367 		cp	0
 10367 		cp	0
 10368 		jr	z, p7Dloc_7234
 10368 		jr	z, p7Dloc_7234
 10369 		ld	a, (unk_83A3)
 10369 		ld	a, (unk_83A3)
 10370 		inc	a
 10370 		inc	a
 10371 		ld	(unk_83A3), a
 10371 		ld	(unk_83A3), a
 10372 
 10372 
 10373 p7Dloc_7234:				; CODE XREF: seg001:722Bj
 10373 p7Dloc_7234:
 10374 		call	p7Dsub_7CBB
 10374 		call	p7Dsub_7CBB
 10375 		pop	bc
 10375 		pop	bc
 10376 		dec	bc
 10376 		dec	bc
 10377 		ld	a, b
 10377 		ld	a, b
 10378 		or	c
 10378 		or	c
 10380 		jp	p7Dloc_739B
 10380 		jp	p7Dloc_739B
 10381 
 10381 
 10382 ; =============== S U B	R O U T	I N E =======================================
 10382 ; =============== S U B	R O U T	I N E =======================================
 10383 
 10383 
 10384 
 10384 
 10385 p7Dsub_7240:				; CODE XREF: seg001:714Cp
 10385 p7Dsub_7240:
 10386 
 10386 
 10387 ; FUNCTION CHUNK AT 7150 SIZE 0000002A BYTES
 10387 
 10388 ; FUNCTION CHUNK AT 72D2 SIZE 0000005D BYTES
 10388 
 10389 ; FUNCTION CHUNK AT 7336 SIZE 00000005 BYTES
 10389 
 10390 ; FUNCTION CHUNK AT 7345 SIZE 0000022A BYTES
 10390 
 10391 ; FUNCTION CHUNK AT 75A5 SIZE 0000000C BYTES
 10391 
 10392 ; FUNCTION CHUNK AT 75B4 SIZE 00000004 BYTES
 10392 
 10393 
 10393 
 10394 		push	ix
 10394 		push	ix
 10395 		push	af
 10395 		push	af
 10396 		ld	(appSearchPage+1), a
 10396 		ld	(appSearchPage+1), a
 10397 		xor	a
 10397 		xor	a
 10432 		or	b
 10432 		or	b
 10433 		jp	z, p7Dloc_7363
 10433 		jp	z, p7Dloc_7363
 10434 		ld	hl, ramStart
 10434 		ld	hl, ramStart
 10435 		ld	(unk_8439), bc
 10435 		ld	(unk_8439), bc
 10436 
 10436 
 10437 p7Dloc_729C:				; CODE XREF: p7Dsub_7240+120j
 10437 p7Dloc_729C:
 10438 		call	CHKERRBREAK
 10438 		call	CHKERRBREAK
 10439 		jp	z, p7Dloc_7345
 10439 		jp	z, p7Dloc_7345
 10440 		jp	JErrorNo
 10440 		jp	JErrorNo
 10441 ; End of function p7Dsub_7240
 10441 ; End of function p7Dsub_7240
 10442 
 10442 
 10443 ; ---------------------------------------------------------------------------
 10443 ; ---------------------------------------------------------------------------
 10444 ; START	OF FUNCTION CHUNK FOR p7Dsub_7BEA
 10444 ; START	OF FUNCTION CHUNK FOR p7Dsub_7BEA
 10445 
 10445 
 10446 Page7D_2BBC:				; CODE XREF: seg001:71C4j
 10446 Page7D_2BBC:
 10447 		; p7Dsub_7240+1C0j ...
 10447 		; p7Dsub_7240+1C0j ...
 10448 		call	p7Dsub_733B
 10448 		call	p7Dsub_733B
 10449 		call	relockFlashBack
 10449 		call	relockFlashBack
 10450 		call	p7Dsub_7124
 10450 		call	p7Dsub_7124
 10451 		push	af
 10451 		push	af
 10452 		jr	z, p7Dloc_72B4
 10452 		jr	z, p7Dloc_72B4
 10453 		call	popErrorHandleR
 10453 		call	popErrorHandleR
 10454 
 10454 
 10455 p7Dloc_72B4:				; CODE XREF: p7Dsub_7BEA-93Bj
 10455 p7Dloc_72B4:
 10456 		pop	af
 10456 		pop	af
 10457 		push	af
 10457 		push	af
 10458 		jr	z, p7Dloc_72BE
 10458 		jr	z, p7Dloc_72BE
 10459 		ld	hl, Page0Call_2C79
 10459 		ld	hl, Page0Call_2C79
 10460 		call	pushErrorHandleR
 10460 		call	pushErrorHandleR
 10461 
 10461 
 10462 p7Dloc_72BE:				; CODE XREF: p7Dsub_7BEA-934j
 10462 p7Dloc_72BE:
 10463 		call	Page0Call_3D2F
 10463 		call	Page0Call_3D2F
 10464 		ld	a, 1
 10464 		ld	a, 1
 10465 		call	Page0Call_2C49
 10465 		call	Page0Call_2C49
 10466 		pop	af
 10466 		pop	af
 10467 		jr	z, p7Dloc_72CC
 10467 		jr	z, p7Dloc_72CC
 10468 		call	popErrorHandleR
 10468 		call	popErrorHandleR
 10469 
 10469 
 10470 p7Dloc_72CC:				; CODE XREF: p7Dsub_7BEA-923j
 10470 p7Dloc_72CC:
 10471 		call	Page0Call_3D05
 10471 		call	Page0Call_3D05
 10472 		jp	ErrMemory
 10472 		jp	ErrMemory
 10473 ; END OF FUNCTION CHUNK	FOR p7Dsub_7BEA
 10473 ; END OF FUNCTION CHUNK	FOR p7Dsub_7BEA
 10474 ; ---------------------------------------------------------------------------
 10474 ; ---------------------------------------------------------------------------
 10475 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
 10475 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
 10476 
 10476 
 10477 p7Dloc_72D2:				; CODE XREF: p7Dsub_7240+173j
 10477 p7Dloc_72D2:
 10478 		call	p7Dsub_733B
 10478 		call	p7Dsub_733B
 10479 		call	relockFlashBack
 10479 		call	relockFlashBack
 10480 		call	p7Dsub_7124
 10480 		call	p7Dsub_7124
 10481 		push	af
 10481 		push	af
 10482 		jr	z, p7Dloc_72E1
 10482 		jr	z, p7Dloc_72E1
 10483 		call	popErrorHandleR
 10483 		call	popErrorHandleR
 10484 
 10484 
 10485 p7Dloc_72E1:				; CODE XREF: p7Dsub_7240+9Cj
 10485 p7Dloc_72E1:
 10486 		pop	af
 10486 		pop	af
 10487 		push	af
 10487 		push	af
 10488 		jr	z, p7Dloc_72EB
 10488 		jr	z, p7Dloc_72EB
 10489 		ld	hl, Page0Call_2C79
 10489 		ld	hl, Page0Call_2C79
 10490 		call	pushErrorHandleR
 10490 		call	pushErrorHandleR
 10491 
 10491 
 10492 p7Dloc_72EB:				; CODE XREF: p7Dsub_7240+A3j
 10492 p7Dloc_72EB:
 10493 		call	Page0Call_3D2F
 10493 		call	Page0Call_3D2F
 10494 		ld	a, 7
 10494 		ld	a, 7
 10495 		call	Page0Call_2C49
 10495 		call	Page0Call_2C49
 10496 		pop	af
 10496 		pop	af
 10497 		jr	z, p7Dloc_72F9
 10497 		jr	z, p7Dloc_72F9
 10498 		call	popErrorHandleR
 10498 		call	popErrorHandleR
 10499 
 10499 
 10500 p7Dloc_72F9:				; CODE XREF: p7Dsub_7240+B4j
 10500 p7Dloc_72F9:
 10501 		call	Page0Call_2C55
 10501 		call	Page0Call_2C55
 10502 		call	Page0Call_3D05
 10502 		call	Page0Call_3D05
 10503 		jp	Page0Call_2539
 10503 		jp	Page0Call_2539
 10504 ; ---------------------------------------------------------------------------
 10504 ; ---------------------------------------------------------------------------
 10505 
 10505 
 10506 p7Dloc_7302:				; CODE XREF: p7Dsub_7240+183j
 10506 p7Dloc_7302:
 10507 		call	p7Dsub_733B
 10507 		call	p7Dsub_733B
 10508 		call	relockFlashBack
 10508 		call	relockFlashBack
 10509 		call	p7Dsub_7124
 10509 		call	p7Dsub_7124
 10510 		push	af
 10510 		push	af
 10511 		jr	z, p7Dloc_7311
 10511 		jr	z, p7Dloc_7311
 10512 		call	popErrorHandleR
 10512 		call	popErrorHandleR
 10513 
 10513 
 10514 p7Dloc_7311:				; CODE XREF: p7Dsub_7240+CCj
 10514 p7Dloc_7311:
 10515 		pop	af
 10515 		pop	af
 10516 		push	af
 10516 		push	af
 10517 		jr	z, p7Dloc_731B
 10517 		jr	z, p7Dloc_731B
 10518 		ld	hl, Page0Call_2C79
 10518 		ld	hl, Page0Call_2C79
 10519 		call	pushErrorHandleR
 10519 		call	pushErrorHandleR
 10520 
 10520 
 10521 p7Dloc_731B:				; CODE XREF: p7Dsub_7240+D3j
 10521 p7Dloc_731B:
 10522 		call	Page0Call_3D2F
 10522 		call	Page0Call_3D2F
 10523 		ld	a, 9
 10523 		ld	a, 9
 10524 		call	Page0Call_2C49
 10524 		call	Page0Call_2C49
 10525 		pop	af
 10525 		pop	af
 10526 		jr	z, p7Dloc_7329
 10526 		jr	z, p7Dloc_7329
 10527 		call	popErrorHandleR
 10527 		call	popErrorHandleR
 10528 
 10528 
 10529 p7Dloc_7329:				; CODE XREF: p7Dsub_7240+E4j
 10529 p7Dloc_7329:
 10530 		call	Page0Call_3D05
 10530 		call	Page0Call_3D05
 10531 		jp	Page0Call_253D
 10531 		jp	Page0Call_253D
 10532 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
 10532 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
 10533 ; ---------------------------------------------------------------------------
 10533 ; ---------------------------------------------------------------------------
 10534 ; START	OF FUNCTION CHUNK FOR p7Dsub_75B8
 10534 ; START	OF FUNCTION CHUNK FOR p7Dsub_75B8
 10535 
 10535 
 10536 p7Dloc_732F:				; CODE XREF: p7Dsub_75B8:p7Dloc_75B1j
 10536 p7Dloc_732F:
 10537 		call	p7Dsub_733B
 10537 		call	p7Dsub_733B
 10538 		call	Page0Call_2C49
 10538 		call	Page0Call_2C49
 10539 		ret
 10539 		ret
 10540 ; END OF FUNCTION CHUNK	FOR p7Dsub_75B8
 10540 ; END OF FUNCTION CHUNK	FOR p7Dsub_75B8
 10541 ; ---------------------------------------------------------------------------
 10541 ; ---------------------------------------------------------------------------
 10542 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
 10542 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
 10543 
 10543 
 10544 p7Dloc_7336:				; CODE XREF: p7Dsub_7240+36Ej
 10544 p7Dloc_7336:
 10545 		ld	h, 36h ; '6'
 10545 		ld	h, 36h ; '6'
 10546 		jp	Page0Call_2C73
 10546 		jp	Page0Call_2C73
 10547 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
 10547 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
 10548 
 10548 
 10549 ; =============== S U B	R O U T	I N E =======================================
 10549 ; =============== S U B	R O U T	I N E =======================================
 10550 
 10550 
 10551 
 10551 
 10552 p7Dsub_733B:				; CODE XREF: p7Dsub_7BEA:Page7D_2BBCp
 10552 p7Dsub_733B:
 10553 		; p7Dsub_7240:p7Dloc_72D2p ...
 10553 		; p7Dsub_7240:p7Dloc_72D2p ...
 10554 		call	p7Dsub_7CB2
 10554 		call	p7Dsub_7CB2
 10555 		ret	nz
 10555 		ret	nz
 10556 
 10556 
 10557 p7Dloc_733F:				; CODE XREF: p7Dsub_7240+1Cj p7Dsub_7240+36j
 10557 p7Dloc_733F:
 10558 		call	relockFlashBack
 10558 		call	relockFlashBack
 10559 		jp	JErrorNo
 10559 		jp	JErrorNo
 10560 ; End of function p7Dsub_733B
 10560 ; End of function p7Dsub_733B
 10561 
 10561 
 10562 ; ---------------------------------------------------------------------------
 10562 ; ---------------------------------------------------------------------------
 10563 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
 10563 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
 10564 
 10564 
 10565 p7Dloc_7345:				; CODE XREF: p7Dsub_7240+5Fj
 10565 p7Dloc_7345:
 10566 		push	bc
 10566 		push	bc
 10567 		call	j_RecAByteIO
 10567 		call	j_RecAByteIO
 10568 		ld	(hl), a
 10568 		ld	(hl), a
 10569 		call	p7Dsub_7CA5
 10569 		call	p7Dsub_7CA5
 10570 		inc	hl
 10570 		inc	hl
 10579 		dec	bc
 10579 		dec	bc
 10580 		ld	a, b
 10580 		ld	a, b
 10581 		or	c
 10581 		or	c
 10582 		jp	nz, p7Dloc_729C
 10582 		jp	nz, p7Dloc_729C
 10583 
 10583 
 10584 p7Dloc_7363:				; CODE XREF: p7Dsub_7240+52j
 10584 p7Dloc_7363:
 10585 		call	j_RecAByteIO
 10585 		call	j_RecAByteIO
 10586 		push	af
 10586 		push	af
 10587 		call	j_RecAByteIO
 10587 		call	j_RecAByteIO
 10588 		ld	b, a
 10588 		ld	b, a
 10589 		pop	af
 10589 		pop	af
 10596 		jr	z, p7Dloc_738A
 10596 		jr	z, p7Dloc_738A
 10597 		xor	a
 10597 		xor	a
 10598 		out	(20h), a
 10598 		out	(20h), a
 10599 		ld	de, 0FEh ; '�'
 10599 		ld	de, 0FEh ; '�'
 10600 
 10600 
 10601 p7Dloc_737F:				; CODE XREF: p7Dsub_7240+142j
 10601 p7Dloc_737F:
 10602 		dec	de
 10602 		dec	de
 10603 		ld	a, d
 10603 		ld	a, d
 10604 		or	e
 10604 		or	e
 10605 		jr	nz, p7Dloc_737F
 10605 		jr	nz, p7Dloc_737F
 10606 		ld	a, 1
 10606 		ld	a, 1
 10607 		out	(20h), a
 10607 		out	(20h), a
 10608 		jr	p7Dloc_7392
 10608 		jr	p7Dloc_7392
 10609 ; ---------------------------------------------------------------------------
 10609 ; ---------------------------------------------------------------------------
 10610 
 10610 
 10611 p7Dloc_738A:				; CODE XREF: p7Dsub_7240+131j
 10611 p7Dloc_738A:
 10612 		; p7Dsub_7240+137j
 10612 		; p7Dsub_7240+137j
 10613 		ld	de, 100h
 10613 		ld	de, 100h
 10614 
 10614 
 10615 p7Dloc_738D:				; CODE XREF: p7Dsub_7240+150j
 10615 p7Dloc_738D:
 10616 		dec	de
 10616 		dec	de
 10617 		ld	a, d
 10617 		ld	a, d
 10618 		or	e
 10618 		or	e
 10619 		jr	nz, p7Dloc_738D
 10619 		jr	nz, p7Dloc_738D
 10620 
 10620 
 10621 p7Dloc_7392:				; CODE XREF: p7Dsub_7240+148j
 10621 p7Dloc_7392:
 10622 		ld	hl, (unk_8678)
 10622 		ld	hl, (unk_8678)
 10623 		or	a
 10623 		or	a
 10624 		sbc	hl, bc
 10624 		sbc	hl, bc
 10625 		jp	nz, p7Dloc_75A5
 10625 		jp	nz, p7Dloc_75A5
 10626 
 10626 
 10627 p7Dloc_739B:				; CODE XREF: seg001:723Dj
 10627 p7Dloc_739B:
 10628 		call	p7Dsub_5E0A
 10628 		call	p7Dsub_5E0A
 10629 		ld	a, (ramCodeEnd)
 10629 		ld	a, (ramCodeEnd)
 10630 		cp	0
 10630 		cp	0
 10631 		jp	nz, p7Dloc_74BC
 10631 		jp	nz, p7Dloc_74BC
 10632 		ld	de, (unk_843B)
 10632 		ld	de, (unk_843B)
 10643 		call	p7Dsub_7060
 10643 		call	p7Dsub_7060
 10644 		jr	nz, p7Dloc_73C6
 10644 		jr	nz, p7Dloc_73C6
 10645 		call	p7Dsub_50C5
 10645 		call	p7Dsub_50C5
 10646 		jp	nz, p7Dloc_7302
 10646 		jp	nz, p7Dloc_7302
 10647 
 10647 
 10648 p7Dloc_73C6:				; CODE XREF: p7Dsub_7240+17Ej
 10648 p7Dloc_73C6:
 10649 		call	p7Dsub_75B8
 10649 		call	p7Dsub_75B8
 10650 		ld	a, (appInfo)
 10650 		ld	a, (appInfo)
 10651 		cp	0
 10651 		cp	0
 10652 		jp	nz, p7Dloc_75B4
 10652 		jp	nz, p7Dloc_75B4
 10653 		di
 10653 		di
 10673 		jp	z, Page7D_2BBC
 10673 		jp	z, Page7D_2BBC
 10674 		push	af
 10674 		push	af
 10675 		call	p7Dsub_7BEA
 10675 		call	p7Dsub_7BEA
 10676 		jr	c, p7Dloc_740C
 10676 		jr	c, p7Dloc_740C
 10677 
 10677 
 10678 p7Dloc_7409:				; CODE XREF: p7Dsub_7240+1EBj
 10678 p7Dloc_7409:
 10679 		jp	nz, Page7D_2BBC
 10679 		jp	nz, Page7D_2BBC
 10680 
 10680 
 10681 p7Dloc_740C:				; CODE XREF: p7Dsub_7240+1C7j
 10681 p7Dloc_740C:
 10682 		xor	a
 10682 		xor	a
 10683 		cp	d
 10683 		cp	d
 10684 		jp	z, ErrInvalid
 10684 		jp	z, ErrInvalid
 10685 		push	de
 10685 		push	de
 10686 		call	FindSwapSector
 10686 		call	FindSwapSector
 10697 		call	FindSwapSector
 10697 		call	FindSwapSector
 10698 		cp	8
 10698 		cp	8
 10699 		jr	nz, p7Dloc_7409
 10699 		jr	nz, p7Dloc_7409
 10700 		call	p7Dsub_7182
 10700 		call	p7Dsub_7182
 10701 
 10701 
 10702 p7Dloc_7430:				; CODE XREF: p7Dsub_7240+1D7j
 10702 p7Dloc_7430:
 10703 		; p7Dsub_7240+1DFj
 10703 		; p7Dsub_7240+1DFj
 10704 		ld	a, (appSearchPage)
 10704 		ld	a, (appSearchPage)
 10705 		call	Page7D_2C16
 10705 		call	Page7D_2C16
 10706 		ld	a, 1
 10706 		ld	a, 1
 10707 		ld	hl, ramStart
 10707 		ld	hl, ramStart
 10714 		call	Page0Call_2DE7
 10714 		call	Page0Call_2DE7
 10715 		di
 10715 		di
 10716 		xor	a
 10716 		xor	a
 10717 		ld	(sndRecState), a
 10717 		ld	(sndRecState), a
 10718 
 10718 
 10719 p7Dloc_7453:				; CODE XREF: p7Dsub_7240+201j
 10719 p7Dloc_7453:
 10720 		pop	de
 10720 		pop	de
 10721 		pop	af
 10721 		pop	af
 10722 		push	de
 10722 		push	de
 10723 		push	af
 10723 		push	af
 10724 		ld	a, 1
 10724 		ld	a, 1
 10760 		call	p7Dsub_57C5
 10760 		call	p7Dsub_57C5
 10761 		ld	(unk_83A1), hl
 10761 		ld	(unk_83A1), hl
 10762 		jr	c, p7Dloc_749D
 10762 		jr	c, p7Dloc_749D
 10763 		jr	nz, p7Dloc_74F0
 10763 		jr	nz, p7Dloc_74F0
 10764 
 10764 
 10765 p7Dloc_749D:				; CODE XREF: p7Dsub_7240+259j
 10765 p7Dloc_749D:
 10766 		ld	hl, (unk_839F)
 10766 		ld	hl, (unk_839F)
 10767 		call	p7Dsub_57C5
 10767 		call	p7Dsub_57C5
 10768 		dec	hl
 10768 		dec	hl
 10769 		call	p7Dsub_57C5
 10769 		call	p7Dsub_57C5
 10770 		ld	(unk_839F), hl
 10770 		ld	(unk_839F), hl
 10776 		or	h
 10776 		or	h
 10777 		jr	nz, p7Dloc_74BA
 10777 		jr	nz, p7Dloc_74BA
 10778 		ld	a, 0
 10778 		ld	a, 0
 10779 		ld	(unk_83A4), a
 10779 		ld	(unk_83A4), a
 10780 
 10780 
 10781 p7Dloc_74BA:				; CODE XREF: p7Dsub_7240+26Cj
 10781 p7Dloc_74BA:
 10782 		; p7Dsub_7240+273j
 10782 		; p7Dsub_7240+273j
 10783 		jr	p7Dloc_74F0
 10783 		jr	p7Dloc_74F0
 10784 ; ---------------------------------------------------------------------------
 10784 ; ---------------------------------------------------------------------------
 10785 
 10785 
 10786 p7Dloc_74BC:				; CODE XREF: p7Dsub_7240+163j
 10786 p7Dloc_74BC:
 10787 		push	de
 10787 		push	de
 10788 		call	p7Dsub_7CB2
 10788 		call	p7Dsub_7CB2
 10789 		jr	nz, p7Dloc_74F0
 10789 		jr	nz, p7Dloc_74F0
 10790 		ld	a, (appSearchPage+1)
 10790 		ld	a, (appSearchPage+1)
 10791 		call	p7Dsub_7CCF
 10791 		call	p7Dsub_7CCF
 10806 		ld	a, (appSearchPage+1)
 10806 		ld	a, (appSearchPage+1)
 10807 		inc	b
 10807 		inc	b
 10808 		cp	b
 10808 		cp	b
 10809 		jr	nc, p7Dloc_74F0
 10809 		jr	nc, p7Dloc_74F0
 10810 
 10810 
 10811 p7Dloc_74ED:				; CODE XREF: p7Dsub_7240+28Dj
 10811 p7Dloc_74ED:
 10812 		; p7Dsub_7240+294j ...
 10812 		; p7Dsub_7240+294j ...
 10813 		jp	p7Dloc_7150
 10813 		jp	p7Dloc_7150
 10814 ; ---------------------------------------------------------------------------
 10814 ; ---------------------------------------------------------------------------
 10815 
 10815 
 10816 p7Dloc_74F0:				; CODE XREF: p7Dsub_7240+25Bj
 10816 p7Dloc_74F0:
 10817 		; p7Dsub_7240:p7Dloc_74BAj ...
 10817 		; p7Dsub_7240:p7Dloc_74BAj ...
 10818 		ld	bc, (unk_8439)
 10818 		ld	bc, (unk_8439)
 10819 		ld	hl, ramStart
 10819 		ld	hl, ramStart
 10820 		ld	de, (unk_843B)
 10820 		ld	de, (unk_843B)
 10821 		ld	a, (appSearchPage+1)
 10821 		ld	a, (appSearchPage+1)
 10835 		call	p7Dsub_7CB2
 10835 		call	p7Dsub_7CB2
 10836 		jr	z, p7Dloc_752A
 10836 		jr	z, p7Dloc_752A
 10837 		call	relockFlashBack
 10837 		call	relockFlashBack
 10838 		call	Page0Call_3F1B
 10838 		call	Page0Call_3F1B
 10839 
 10839 
 10840 p7Dloc_7524:				; CODE XREF: p7Dsub_7240+2F3j
 10840 p7Dloc_7524:
 10841 		pop	de
 10841 		pop	de
 10842 
 10842 
 10843 p7Dloc_7525:				; CODE XREF: p7Dsub_7240+32Dj
 10843 p7Dloc_7525:
 10844 		pop	af
 10844 		pop	af
 10845 		pop	ix
 10845 		pop	ix
 10846 		xor	a
 10846 		xor	a
 10847 		ret
 10847 		ret
 10848 ; ---------------------------------------------------------------------------
 10848 ; ---------------------------------------------------------------------------
 10849 
 10849 
 10850 p7Dloc_752A:				; CODE XREF: p7Dsub_7240+2DCj
 10850 p7Dloc_752A:
 10851 		ld	a, (ramCodeEnd)
 10851 		ld	a, (ramCodeEnd)
 10852 		or	a
 10852 		or	a
 10853 		jr	z, p7Dloc_7535
 10853 		jr	z, p7Dloc_7535
 10854 		call	relockFlashBack
 10854 		call	relockFlashBack
 10855 		jr	p7Dloc_7524
 10855 		jr	p7Dloc_7524
 10856 ; ---------------------------------------------------------------------------
 10856 ; ---------------------------------------------------------------------------
 10857 
 10857 
 10858 p7Dloc_7535:				; CODE XREF: p7Dsub_7240+2EEj
 10858 p7Dloc_7535:
 10859 		call	p7Dsub_7CCF
 10859 		call	p7Dsub_7CCF
 10860 		pop	de
 10860 		pop	de
 10861 		push	hl
 10861 		push	hl
 10862 		push	de
 10862 		push	de
 10863 		ld	b, 4
 10863 		ld	b, 4
 10864 
 10864 
 10865 p7Dloc_753D:				; CODE XREF: p7Dsub_7240+305j
 10865 p7Dloc_753D:
 10866 		call	p7Dsub_4566
 10866 		call	p7Dsub_4566
 10867 		cp	0FFh
 10867 		cp	0FFh
 10868 		jr	nz, p7Dloc_7549
 10868 		jr	nz, p7Dloc_7549
 10869 		inc	hl
 10869 		inc	hl
 10870 		djnz	p7Dloc_753D
 10870 		djnz	p7Dloc_753D
 10871 		jr	p7Dloc_754C
 10871 		jr	p7Dloc_754C
 10872 ; ---------------------------------------------------------------------------
 10872 ; ---------------------------------------------------------------------------
 10873 
 10873 
 10874 p7Dloc_7549:				; CODE XREF: p7Dsub_7240+302j
 10874 p7Dloc_7549:
 10875 		call	Page7D_2BB0
 10875 		call	Page7D_2BB0
 10876 
 10876 
 10877 p7Dloc_754C:				; CODE XREF: p7Dsub_7240+307j
 10877 p7Dloc_754C:
 10878 		ld	hl, 0BFFEh
 10878 		ld	hl, 0BFFEh
 10879 		ld	(OP1+1), hl
 10879 		ld	(OP1+1), hl
 10880 		ld	a, (appSearchPage)
 10880 		ld	a, (appSearchPage)
 10881 		ld	(unk_847B), a
 10881 		ld	(unk_847B), a
 10882 		pop	de
 10882 		pop	de
 10895 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
 10895 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
 10896 
 10896 
 10897 ; =============== S U B	R O U T	I N E =======================================
 10897 ; =============== S U B	R O U T	I N E =======================================
 10898 
 10898 
 10899 
 10899 
 10900 p7Dsub_756F:				; CODE XREF: p7Dsub_7240+2D3p
 10900 p7Dsub_756F:
 10901 		ld	h, d
 10901 		ld	h, d
 10902 		ld	l, e
 10902 		ld	l, e
 10903 		dec	hl
 10903 		dec	hl
 10904 		add	hl, bc
 10904 		add	hl, bc
 10905 		bit	7, h
 10905 		bit	7, h
 10930 		add	hl, de
 10930 		add	hl, de
 10931 		ld	de, 4000h
 10931 		ld	de, 4000h
 10932 		ret
 10932 		ret
 10933 ; ---------------------------------------------------------------------------
 10933 ; ---------------------------------------------------------------------------
 10934 
 10934 
 10935 p7Dloc_75A1:				; CODE XREF: p7Dsub_756F+6j
 10935 p7Dloc_75A1:
 10936 		ld	hl, ramStart
 10936 		ld	hl, ramStart
 10937 		ret
 10937 		ret
 10938 ; End of function p7Dsub_756F
 10938 ; End of function p7Dsub_756F
 10939 
 10939 
 10940 ; ---------------------------------------------------------------------------
 10940 ; ---------------------------------------------------------------------------
 10941 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
 10941 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
 10942 
 10942 
 10943 p7Dloc_75A5:				; CODE XREF: p7Dsub_7240+158j
 10943 p7Dloc_75A5:
 10944 		ld	hl, (unk_8439)
 10944 		ld	hl, (unk_8439)
 10945 		push	hl
 10945 		push	hl
 10946 		ld	h, 5Ah ; 'Z'
 10946 		ld	h, 5Ah ; 'Z'
 10947 		call	Page0Call_2C5B
 10947 		call	Page0Call_2C5B
 10948 		jp	p7Dloc_7336
 10948 		jp	p7Dloc_7336
 10949 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
 10949 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
 10950 ; ---------------------------------------------------------------------------
 10950 ; ---------------------------------------------------------------------------
 10951 ; START	OF FUNCTION CHUNK FOR p7Dsub_75B8
 10951 ; START	OF FUNCTION CHUNK FOR p7Dsub_75B8
 10952 
 10952 
 10953 p7Dloc_75B1:				; CODE XREF: p7Dsub_75B8+Fj p7Dsub_7B41+Fj
 10953 p7Dloc_75B1:
 10954 		jp	p7Dloc_732F
 10954 		jp	p7Dloc_732F
 10955 ; END OF FUNCTION CHUNK	FOR p7Dsub_75B8
 10955 ; END OF FUNCTION CHUNK	FOR p7Dsub_75B8
 10956 ; ---------------------------------------------------------------------------
 10956 ; ---------------------------------------------------------------------------
 10957 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
 10957 ; START	OF FUNCTION CHUNK FOR p7Dsub_7240
 10958 
 10958 
 10959 p7Dloc_75B4:				; CODE XREF: p7Dsub_7240+18Ej
 10959 p7Dloc_75B4:
 10960 		; seg001:77A3j
 10960 
 10961 		pop	af
 10961 		pop	af
 10962 		pop	ix
 10962 		pop	ix
 10963 		ret
 10963 		ret
 10964 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
 10964 ; END OF FUNCTION CHUNK	FOR p7Dsub_7240
 10965 
 10965 
 10966 ; =============== S U B	R O U T	I N E =======================================
 10966 ; =============== S U B	R O U T	I N E =======================================
 10967 
 10967 
 10968 
 10968 
 10969 p7Dsub_75B8:				; CODE XREF: p7Dsub_7240:p7Dloc_73C6p
 10969 p7Dsub_75B8:
 10970 
 10970 
 10971 ; FUNCTION CHUNK AT 732F SIZE 00000007 BYTES
 10971 
 10972 ; FUNCTION CHUNK AT 75B1 SIZE 00000003 BYTES
 10972 
 10973 
 10973 
 10974 		call	ZeroOP1
 10974 		call	ZeroOP1
 10975 		ld	a, 1
 10975 		ld	a, 1
 10976 		or	a
 10976 		or	a
 10977 		ld	hl, ramStart
 10977 		ld	hl, ramStart
 10999 
 10999 
 11000 
 11000 
 11001 ; =============== S U B	R O U T	I N E =======================================
 11001 ; =============== S U B	R O U T	I N E =======================================
 11002 
 11002 
 11003 
 11003 
 11004 p7Dsub_75E1:				; CODE XREF: p7Dsub_4A21+10p
 11004 p7Dsub_75E1:
 11005 		; FindSwapSector+18p ...
 11005 		; FindSwapSector+18p ...
 11006 		call	NZIf83Plus
 11006 		call	NZIf83Plus
 11007 		jr	nz, p7Dloc_75E9
 11007 		jr	nz, p7Dloc_75E9
 11008 		cp	6Ah ; 'j'
 11008 		cp	6Ah ; 'j'
 11009 		ret
 11009 		ret
 11010 ; ---------------------------------------------------------------------------
 11010 ; ---------------------------------------------------------------------------
 11011 
 11011 
 11012 p7Dloc_75E9:				; CODE XREF: p7Dsub_75E1+3j
 11012 p7Dloc_75E9:
 11013 		cp	16h
 11013 		cp	16h
 11014 		ret
 11014 		ret
 11015 ; End of function p7Dsub_75E1
 11015 ; End of function p7Dsub_75E1
 11016 
 11016 
 11017 
 11017 
 11018 ; =============== S U B	R O U T	I N E =======================================
 11018 ; =============== S U B	R O U T	I N E =======================================
 11019 
 11019 
 11020 
 11020 
 11021 p7Dsub_75EC:				; CODE XREF: p7Dsub_4A5A+4p p7Dsub_4A5A+44p	...
 11021 p7Dsub_75EC:
 11022 		ld	a, 15h
 11022 		ld	a, 15h
 11023 		call	NZIf83Plus
 11023 		call	NZIf83Plus
 11024 		ret	nz
 11024 		ret	nz
 11025 		ld	a, 69h ; 'i'
 11025 		ld	a, 69h ; 'i'
 11026 		ret
 11026 		ret
 11028 
 11028 
 11029 
 11029 
 11030 ; =============== S U B	R O U T	I N E =======================================
 11030 ; =============== S U B	R O U T	I N E =======================================
 11031 
 11031 
 11032 
 11032 
 11033 p7Dsub_75F5:				; CODE XREF: seg001:5874p p7Dsub_6021p ...
 11033 p7Dsub_75F5:
 11034 		call	p7Dsub_75EC
 11034 		call	p7Dsub_75EC
 11035 		inc	a
 11035 		inc	a
 11036 		ld	(appSearchPage), a
 11036 		ld	(appSearchPage), a
 11037 		ret
 11037 		ret
 11038 ; End of function p7Dsub_75F5
 11038 ; End of function p7Dsub_75F5
 11039 
 11039 
 11040 
 11040 
 11041 ; =============== S U B	R O U T	I N E =======================================
 11041 ; =============== S U B	R O U T	I N E =======================================
 11042 
 11042 
 11043 
 11043 
 11044 p7Dsub_75FD:				; CODE XREF: p7Dsub_5525+8p seg001:56F0p	...
 11044 p7Dsub_75FD:
 11045 		ld	de, 839Fh
 11045 		ld	de, 839Fh
 11046 		and	0Fh
 11046 		and	0Fh
 11047 		cp	0Fh
 11047 		cp	0Fh
 11048 		jr	nz, p7Dloc_7609
 11048 		jr	nz, p7Dloc_7609
 11049 		ld	b, 4
 11049 		ld	b, 4
 11050 		ret
 11050 		ret
 11051 ; ---------------------------------------------------------------------------
 11051 ; ---------------------------------------------------------------------------
 11052 
 11052 
 11053 p7Dloc_7609:				; CODE XREF: p7Dsub_75FD+7j
 11053 p7Dloc_7609:
 11054 		cp	0Eh
 11054 		cp	0Eh
 11055 		jr	nz, p7Dloc_7612
 11055 		jr	nz, p7Dloc_7612
 11056 		ld	b, 2
 11056 		ld	b, 2
 11057 		xor	a
 11057 		xor	a
 11058 		jr	p7Dloc_761A
 11058 		jr	p7Dloc_761A
 11059 ; ---------------------------------------------------------------------------
 11059 ; ---------------------------------------------------------------------------
 11060 
 11060 
 11061 p7Dloc_7612:				; CODE XREF: p7Dsub_75FD+Ej
 11061 p7Dloc_7612:
 11062 		cp	0Dh
 11062 		cp	0Dh
 11063 		ret	nz
 11063 		ret	nz
 11064 		ld	b, 1
 11064 		ld	b, 1
 11065 		xor	a
 11065 		xor	a
 11066 		ld	(de), a
 11066 		ld	(de), a
 11067 		inc	de
 11067 		inc	de
 11068 
 11068 
 11069 p7Dloc_761A:				; CODE XREF: p7Dsub_75FD+13j
 11069 p7Dloc_761A:
 11070 		ld	(de), a
 11070 		ld	(de), a
 11071 		inc	de
 11071 		inc	de
 11072 		ld	(de), a
 11072 		ld	(de), a
 11073 		inc	de
 11073 		inc	de
 11074 		ret
 11074 		ret
 11076 
 11076 
 11077 
 11077 
 11078 ; =============== S U B	R O U T	I N E =======================================
 11078 ; =============== S U B	R O U T	I N E =======================================
 11079 
 11079 
 11080 
 11080 
 11081 p7Dsub_761F:				; CODE XREF: seg001:551Cp p7Dsub_5525+10p ...
 11081 p7Dsub_761F:
 11082 		push	af
 11082 		push	af
 11083 		call	Page7D_2CD0
 11083 		call	Page7D_2CD0
 11084 		ld	(de), a
 11084 		ld	(de), a
 11085 		inc	de
 11085 		inc	de
 11086 		inc	hl
 11086 		inc	hl
 11091 
 11091 
 11092 
 11092 
 11093 ; =============== S U B	R O U T	I N E =======================================
 11093 ; =============== S U B	R O U T	I N E =======================================
 11094 
 11094 
 11095 
 11095 
 11096 p7Dsub_762A:				; CODE XREF: seg001:43A2p seg001:46C9p ...
 11096 p7Dsub_762A:
 11097 		call	p7Dsub_7634
 11097 		call	p7Dsub_7634
 11098 		ld	de, 610h
 11098 		ld	de, 610h
 11099 		rst	28h
 11099 		rst	28h
 11100 ; ---------------------------------------------------------------------------
 11100 ; ---------------------------------------------------------------------------
 11101 		.dw 8030h
 11101 		.dw 8030h
 11105 
 11105 
 11106 
 11106 
 11107 ; =============== S U B	R O U T	I N E =======================================
 11107 ; =============== S U B	R O U T	I N E =======================================
 11108 
 11108 
 11109 
 11109 
 11110 p7Dsub_7634:				; CODE XREF: seg001:471Bp p7Dsub_762Ap
 11110 p7Dsub_7634:
 11111 		call	p7Dsub_4894
 11111 		call	p7Dsub_4894
 11112 		ld	de, 600h
 11112 		ld	de, 600h
 11113 		call	p7Dsub_777E
 11113 		call	p7Dsub_777E
 11114 		call	p7Dsub_4574
 11114 		call	p7Dsub_4574
 11115 		ld	a, 7Eh ; '~'
 11115 		ld	a, 7Eh ; '~'
 11118 
 11118 
 11119 
 11119 
 11120 ; =============== S U B	R O U T	I N E =======================================
 11120 ; =============== S U B	R O U T	I N E =======================================
 11121 
 11121 
 11122 
 11122 
 11123 p7Dsub_7643:				; CODE XREF: p7Dsub_4A5Ap	p7Dsub_51DB+21p ...
 11123 p7Dsub_7643:
 11124 		ld	bc, 0Dh
 11124 		ld	bc, 0Dh
 11125 		call	NZIf83Plus
 11125 		call	NZIf83Plus
 11126 		ret	nz
 11126 		ret	nz
 11127 		ld	bc, 61h	; 'a'
 11127 		ld	bc, 61h	; 'a'
 11128 		ret
 11128 		ret
 11130 
 11130 
 11131 
 11131 
 11132 ; =============== S U B	R O U T	I N E =======================================
 11132 ; =============== S U B	R O U T	I N E =======================================
 11133 
 11133 
 11134 
 11134 
 11135 p7Dsub_764E:				; CODE XREF: p7Dsub_47E3+55p
 11135 p7Dsub_764E:
 11136 		; p7Dsub_484E:p7Dloc_486Cp ...
 11136 		; p7Dsub_484E:p7Dloc_486Cp ...
 11137 		push	ix
 11137 		push	ix
 11138 		pop	hl
 11138 		pop	hl
 11139 		ld	bc, 0Dh
 11139 		ld	bc, 0Dh
 11140 		add	hl, bc
 11140 		add	hl, bc
 11143 
 11143 
 11144 
 11144 
 11145 ; =============== S U B	R O U T	I N E =======================================
 11145 ; =============== S U B	R O U T	I N E =======================================
 11146 
 11146 
 11147 
 11147 
 11148 p7Dsub_7656:				; CODE XREF: p7Dsub_5B4D+2p seg001:5C38p	...
 11148 p7Dsub_7656:
 11149 		ld	a, 16h
 11149 		ld	a, 16h
 11150 		call	NZIf83Plus
 11150 		call	NZIf83Plus
 11151 		ret	nz
 11151 		ret	nz
 11152 		ld	a, 6Ah ; 'j'
 11152 		ld	a, 6Ah ; 'j'
 11153 		ret
 11153 		ret
 11158 		ld	(hl), b
 11158 		ld	(hl), b
 11159 
 11159 
 11160 ; =============== S U B	R O U T	I N E =======================================
 11160 ; =============== S U B	R O U T	I N E =======================================
 11161 
 11161 
 11162 
 11162 
 11163 p7Dsub_7663:				; CODE XREF: p7Dsub_42AE+18p
 11163 p7Dsub_7663:
 11164 		ld	bc, 1
 11164 		ld	bc, 1
 11165 ; End of function p7Dsub_7663
 11165 ; End of function p7Dsub_7663
 11166 
 11166 
 11167 
 11167 
 11168 ; =============== S U B	R O U T	I N E =======================================
 11168 ; =============== S U B	R O U T	I N E =======================================
 11169 
 11169 
 11170 
 11170 
 11171 p7Dsub_7666:				; CODE XREF: p7Dsub_4214+10p
 11171 p7Dsub_7666:
 11172 		; CopyFlashPage+38p ...
 11172 		; CopyFlashPage+38p ...
 11173 		res	1, (iy+25h)
 11173 		res	1, (iy+25h)
 11174 		call	NZIf83Plus
 11174 		call	NZIf83Plus
 11175 		jr	z, p7Dloc_7671
 11175 		jr	z, p7Dloc_7671
 11176 		and	1Fh
 11176 		and	1Fh
 11177 
 11177 
 11178 p7Dloc_7671:				; CODE XREF: p7Dsub_7666+7j
 11178 p7Dloc_7671:
 11179 		push	ix
 11179 		push	ix
 11180 		ld	ix, WriteFlashPrivilegedCopy
 11180 		ld	ix, WriteFlashPrivilegedCopy
 11181 		call	p7Dsub_6B87
 11181 		call	p7Dsub_6B87
 11182 		pop	ix
 11182 		pop	ix
 11183 		ret
 11183 		ret
 11192 		out	(6), a
 11192 		out	(6), a
 11193 		bit	7, h
 11193 		bit	7, h
 11194 		jr	nz, p7Dloc_7692
 11194 		jr	nz, p7Dloc_7692
 11195 		set	1, (iy+25h)
 11195 		set	1, (iy+25h)
 11196 
 11196 
 11197 p7Dloc_7692:				; CODE XREF: seg001:768Cj seg001:76ECj
 11197 p7Dloc_7692:
 11198 		bit	1, (iy+25h)
 11198 		bit	1, (iy+25h)
 11199 		push	hl
 11199 		push	hl
 11200 		jr	nz, p7Dloc_76AD
 11200 		jr	nz, p7Dloc_76AD
 11201 		ld	hl, 7FFFh
 11201 		ld	hl, 7FFFh
 11202 		or	a
 11202 		or	a
 11206 		inc	a
 11206 		inc	a
 11207 		cp	7Eh ; '~'
 11207 		cp	7Eh ; '~'
 11208 		jr	z, p7Dloc_76AA
 11208 		jr	z, p7Dloc_76AA
 11209 		out	(6), a
 11209 		out	(6), a
 11210 
 11210 
 11211 p7Dloc_76AA:				; CODE XREF: seg001:76A6j
 11211 p7Dloc_76AA:
 11212 		ld	de, 4000h
 11212 		ld	de, 4000h
 11213 
 11213 
 11214 p7Dloc_76AD:				; CODE XREF: seg001:7697j seg001:769Fj
 11214 p7Dloc_76AD:
 11215 		pop	hl
 11215 		pop	hl
 11216 		in	a, (6)
 11216 		in	a, (6)
 11217 		push	af
 11217 		push	af
 11218 		ld	a, 2
 11218 		ld	a, 2
 11219 		out	(6), a
 11219 		out	(6), a
 11231 		out	(6), a
 11231 		out	(6), a
 11232 		ld	a, (hl)
 11232 		ld	a, (hl)
 11233 		ld	a, (hl)
 11233 		ld	a, (hl)
 11234 		ld	(de), a
 11234 		ld	(de), a
 11235 
 11235 
 11236 p7Dloc_76D2:				; CODE XREF: seg001:76DCj
 11236 p7Dloc_76D2:
 11237 		ld	a, (de)
 11237 		ld	a, (de)
 11238 		push	af
 11238 		push	af
 11239 		xor	(hl)
 11239 		xor	(hl)
 11240 		and	80h ; '�'
 11240 		and	80h ; '�'
 11241 		jr	z, p7Dloc_76E6
 11241 		jr	z, p7Dloc_76E6
 11247 		and	80h ; '�'
 11247 		and	80h ; '�'
 11248 		jr	nz, p7Dloc_76F8
 11248 		jr	nz, p7Dloc_76F8
 11249 		jr	p7Dloc_76E7
 11249 		jr	p7Dloc_76E7
 11250 ; ---------------------------------------------------------------------------
 11250 ; ---------------------------------------------------------------------------
 11251 
 11251 
 11252 p7Dloc_76E6:				; CODE XREF: seg001:76D7j
 11252 p7Dloc_76E6:
 11253 		pop	af
 11253 		pop	af
 11254 
 11254 
 11255 p7Dloc_76E7:				; CODE XREF: seg001:76E4j
 11255 p7Dloc_76E7:
 11256 		inc	de
 11256 		inc	de
 11257 		inc	hl
 11257 		inc	hl
 11258 		dec	bc
 11258 		dec	bc
 11259 		ld	a, b
 11259 		ld	a, b
 11260 		or	c
 11260 		or	c
 11267 		out	(6), a
 11267 		out	(6), a
 11268 		xor	a
 11268 		xor	a
 11269 		ret
 11269 		ret
 11270 ; ---------------------------------------------------------------------------
 11270 ; ---------------------------------------------------------------------------
 11271 
 11271 
 11272 p7Dloc_76F8:				; CODE XREF: seg001:76E2j
 11272 p7Dloc_76F8:
 11273 		ld	a, 0F0h	; '�'
 11273 		ld	a, 0F0h	; '�'
 11274 		ld	(de), a
 11274 		ld	(de), a
 11275 		pop	af
 11275 		pop	af
 11276 		out	(6), a
 11276 		out	(6), a
 11277 		or	a
 11277 		or	a
 11278 		ret
 11278 		ret
 11279 
 11279 
 11280 ; =============== S U B	R O U T	I N E =======================================
 11280 ; =============== S U B	R O U T	I N E =======================================
 11281 
 11281 
 11282 
 11282 
 11283 p7Dsub_7700:				; CODE XREF: p7Dsub_4083p	p7Dsub_40A6p ...
 11283 p7Dsub_7700:
 11284 		in	a, (2)
 11284 		in	a, (2)
 11285 		and	80h ; '�'
 11285 		and	80h ; '�'
 11286 		ld	a, 1Eh
 11286 		ld	a, 1Eh
 11287 		ret	z
 11287 		ret	z
 11288 		ld	a, 7Eh ; '~'
 11288 		ld	a, 7Eh ; '~'
 11304 		ldir
 11304 		ldir
 11305 		pop	af
 11305 		pop	af
 11306 		ret
 11306 		ret
 11307 ; ---------------------------------------------------------------------------
 11307 ; ---------------------------------------------------------------------------
 11308 
 11308 
 11309 Page7D_2BE0:				; CODE XREF: seg001:7194j
 11309 Page7D_2BE0:
 11310 		push	af
 11310 		push	af
 11311 		ld	a, 1
 11311 		ld	a, 1
 11312 		nop
 11312 		nop
 11313 		di
 11313 		di
 11314 		nop
 11314 		nop
 11328 		call	p7Dsub_5E59
 11328 		call	p7Dsub_5E59
 11329 		call	p7Dsub_52D9
 11329 		call	p7Dsub_52D9
 11330 		jp	c, p7Dloc_774F
 11330 		jp	c, p7Dloc_774F
 11331 		jr	nz, ret9
 11331 		jr	nz, ret9
 11332 
 11332 
 11333 p7Dloc_774F:				; CODE XREF: seg001:774Aj
 11333 p7Dloc_774F:
 11334 		ld	a, (unk_8434)
 11334 		ld	a, (unk_8434)
 11335 		ld	hl, 4000h
 11335 		ld	hl, 4000h
 11336 		call	Page7D_2C9A
 11336 		call	Page7D_2C9A
 11337 		call	p7Dsub_51C3
 11337 		call	p7Dsub_51C3
 11338 		ld	a, (unk_8434)
 11338 		ld	a, (unk_8434)
 11350 		call	relockFlashBack
 11350 		call	relockFlashBack
 11351 		xor	a
 11351 		xor	a
 11352 		ret
 11352 		ret
 11353 ; ---------------------------------------------------------------------------
 11353 ; ---------------------------------------------------------------------------
 11354 
 11354 
 11355 ret9:					; CODE XREF: seg001:774Dj
 11355 ret9:
 11356 		ld	a, 9
 11356 		ld	a, 9
 11357 		ret
 11357 		ret
 11358 ; ---------------------------------------------------------------------------
 11358 ; ---------------------------------------------------------------------------
 11359 
 11359 
 11360 ret8:					; CODE XREF: seg001:773Cj
 11360 ret8:
 11361 		ld	a, 8
 11361 		ld	a, 8
 11362 		ret
 11362 		ret
 11363 
 11363 
 11364 ; =============== S U B	R O U T	I N E =======================================
 11364 ; =============== S U B	R O U T	I N E =======================================
 11365 
 11365 
 11366 
 11366 
 11367 p7Dsub_777E:				; CODE XREF: p7Dsub_4442+8p p7Dsub_45E4+37p	...
 11367 p7Dsub_777E:
 11368 		call	p7Dsub_7700
 11368 		call	p7Dsub_7700
 11369 		rst	28h
 11369 		rst	28h
 11370 ; ---------------------------------------------------------------------------
 11370 ; ---------------------------------------------------------------------------
 11371 		.dw 805Dh
 11371 		.dw 805Dh
 11372 ; ---------------------------------------------------------------------------
 11372 ; ---------------------------------------------------------------------------
 11384 		call	p7Dsub_7060
 11384 		call	p7Dsub_7060
 11385 		jr	nz, p7Dloc_779B
 11385 		jr	nz, p7Dloc_779B
 11386 		call	p7Dsub_50C5
 11386 		call	p7Dsub_50C5
 11387 		jp	nz, p7Dloc_7810
 11387 		jp	nz, p7Dloc_7810
 11388 
 11388 
 11389 p7Dloc_779B:				; CODE XREF: seg001:7793j
 11389 p7Dloc_779B:
 11390 		call	p7Dsub_7B41
 11390 		call	p7Dsub_7B41
 11391 		ld	a, (appInfo)
 11391 		ld	a, (appInfo)
 11392 		cp	0
 11392 		cp	0
 11393 		jp	nz, p7Dloc_75B4
 11393 		jp	nz, p7Dloc_75B4
 11394 		di
 11394 		di
 11408 		push	af
 11408 		push	af
 11409 		call	p7Dsub_7BEA
 11409 		call	p7Dsub_7BEA
 11410 		jr	c, p7Dloc_77D2
 11410 		jr	c, p7Dloc_77D2
 11411 		jr	z, p7Dloc_77D2
 11411 		jr	z, p7Dloc_77D2
 11412 
 11412 
 11413 p7Dloc_77CF:				; CODE XREF: seg001:77EBj
 11413 p7Dloc_77CF:
 11414 		jp	p7Dloc_780D
 11414 		jp	p7Dloc_780D
 11415 ; ---------------------------------------------------------------------------
 11415 ; ---------------------------------------------------------------------------
 11416 
 11416 
 11417 p7Dloc_77D2:				; CODE XREF: seg001:77CBj seg001:77CDj
 11417 p7Dloc_77D2:
 11418 		call	FindSwapSector
 11418 		call	FindSwapSector
 11419 		cp	8
 11419 		cp	8
 11420 		jr	z, p7Dloc_77F0
 11420 		jr	z, p7Dloc_77F0
 11421 		add	a, 4
 11421 		add	a, 4
 11422 		ld	b, a
 11422 		ld	b, a
 11429 		call	FindSwapSector
 11429 		call	FindSwapSector
 11430 		cp	8
 11430 		cp	8
 11431 		jr	nz, p7Dloc_77CF
 11431 		jr	nz, p7Dloc_77CF
 11432 		call	p7Dsub_7182
 11432 		call	p7Dsub_7182
 11433 
 11433 
 11434 p7Dloc_77F0:				; CODE XREF: seg001:77D7j seg001:77DFj
 11434 p7Dloc_77F0:
 11435 		ld	a, (appSearchPage)
 11435 		ld	a, (appSearchPage)
 11436 		call	Page7D_2C16
 11436 		call	Page7D_2C16
 11437 		ld	a, 1
 11437 		ld	a, 1
 11438 		ld	hl, ramStart
 11438 		ld	hl, ramStart
 11439 		call	Page7D_2C9A
 11439 		call	Page7D_2C9A
 11448 		ret
 11448 		ret
 11449 ; ---------------------------------------------------------------------------
 11449 ; ---------------------------------------------------------------------------
 11450 		ret
 11450 		ret
 11451 ; ---------------------------------------------------------------------------
 11451 ; ---------------------------------------------------------------------------
 11452 
 11452 
 11453 p7Dloc_780D:				; CODE XREF: seg001:77C4j
 11453 p7Dloc_780D:
 11454 		; seg001:p7Dloc_77CFj
 11454 
 11455 		jp	ErrMemory
 11455 		jp	ErrMemory
 11456 ; ---------------------------------------------------------------------------
 11456 ; ---------------------------------------------------------------------------
 11457 
 11457 
 11458 p7Dloc_7810:				; CODE XREF: seg001:7798j
 11458 p7Dloc_7810:
 11459 		jp	Page0Call_253D
 11459 		jp	Page0Call_253D
 11460 ; ---------------------------------------------------------------------------
 11460 ; ---------------------------------------------------------------------------
 11461 
 11461 
 11462 p7Dloc_7813:				; CODE XREF: seg001:7788j
 11462 p7Dloc_7813:
 11463 		jp	Page0Call_2539
 11463 		jp	Page0Call_2539
 11464 ; ---------------------------------------------------------------------------
 11464 ; ---------------------------------------------------------------------------
 11465 		call	popErrorHandleR
 11465 		call	popErrorHandleR
 11466 		ld	a, 23h ; '#'
 11466 		ld	a, 23h ; '#'
 11467 		ld	(errNo), a
 11467 		ld	(errNo), a
 11478 		push	hl
 11478 		push	hl
 11479 		or	a
 11479 		or	a
 11480 		jr	z, p7Dloc_7855
 11480 		jr	z, p7Dloc_7855
 11481 		push	af
 11481 		push	af
 11482 
 11482 
 11483 p7Dloc_7833:				; CODE XREF: seg001:7849j
 11483 p7Dloc_7833:
 11484 		ld	hl, 4000h
 11484 		ld	hl, 4000h
 11485 		ld	bc, 4000h
 11485 		ld	bc, 4000h
 11486 		call	p7Dsub_7865
 11486 		call	p7Dsub_7865
 11487 		pop	af
 11487 		pop	af
 11488 		dec	a
 11488 		dec	a
 11493 		dec	a
 11493 		dec	a
 11494 		ld	(unk_8439), a
 11494 		ld	(unk_8439), a
 11495 		jr	p7Dloc_7833
 11495 		jr	p7Dloc_7833
 11496 ; ---------------------------------------------------------------------------
 11496 ; ---------------------------------------------------------------------------
 11497 
 11497 
 11498 p7Dloc_784B:				; CODE XREF: seg001:783Fj
 11498 p7Dloc_784B:
 11499 		ld	hl, 4000h
 11499 		ld	hl, 4000h
 11500 		ld	a, (unk_8439)
 11500 		ld	a, (unk_8439)
 11501 		dec	a
 11501 		dec	a
 11502 		ld	(unk_8439), a
 11502 		ld	(unk_8439), a
 11503 
 11503 
 11504 p7Dloc_7855:				; CODE XREF: seg001:7830j
 11504 p7Dloc_7855:
 11505 		pop	hl
 11505 		pop	hl
 11506 		ld	de, 4000h
 11506 		ld	de, 4000h
 11507 		or	a
 11507 		or	a
 11508 		sbc	hl, de
 11508 		sbc	hl, de
 11509 		push	hl
 11509 		push	hl
 11513 		ret
 11513 		ret
 11514 
 11514 
 11515 ; =============== S U B	R O U T	I N E =======================================
 11515 ; =============== S U B	R O U T	I N E =======================================
 11516 
 11516 
 11517 
 11517 
 11518 p7Dsub_7865:				; CODE XREF: seg001:7839p seg001:7861p ...
 11518 p7Dsub_7865:
 11519 		push	hl
 11519 		push	hl
 11520 		push	bc
 11520 		push	bc
 11521 		ld	a, (unk_8439)
 11521 		ld	a, (unk_8439)
 11522 		ld	de, ramStart
 11522 		ld	de, ramStart
 11523 		ld	bc, 100h
 11523 		ld	bc, 100h
 11533 		push	bc
 11533 		push	bc
 11534 		ld	bc, 100h
 11534 		ld	bc, 100h
 11535 		jr	p7Dloc_7883
 11535 		jr	p7Dloc_7883
 11536 ; ---------------------------------------------------------------------------
 11536 ; ---------------------------------------------------------------------------
 11537 
 11537 
 11538 p7Dloc_7882:				; CODE XREF: p7Dsub_7865+15j
 11538 p7Dloc_7882:
 11539 		push	bc
 11539 		push	bc
 11540 
 11540 
 11541 p7Dloc_7883:				; CODE XREF: p7Dsub_7865+1Bj
 11541 p7Dloc_7883:
 11542 		ld	hl, ramStart
 11542 		ld	hl, ramStart
 11543 		rst	28h
 11543 		rst	28h
 11544 ; ---------------------------------------------------------------------------
 11544 ; ---------------------------------------------------------------------------
 11545 		.dw 8090h
 11545 		.dw 8090h
 11546 ; ---------------------------------------------------------------------------
 11546 ; ---------------------------------------------------------------------------
 11560 		add	hl, de
 11560 		add	hl, de
 11561 		pop	bc
 11561 		pop	bc
 11562 		jr	p7Dsub_7865
 11562 		jr	p7Dsub_7865
 11563 ; ---------------------------------------------------------------------------
 11563 ; ---------------------------------------------------------------------------
 11564 
 11564 
 11565 p7Dloc_78A1:				; CODE XREF: p7Dsub_7865+2Fj p7Dsub_7865+31j
 11565 p7Dloc_78A1:
 11566 		pop	hl
 11566 		pop	hl
 11567 		ret
 11567 		ret
 11568 ; End of function p7Dsub_7865
 11568 ; End of function p7Dsub_7865
 11569 
 11569 
 11570 
 11570 
 11571 ; =============== S U B	R O U T	I N E =======================================
 11571 ; =============== S U B	R O U T	I N E =======================================
 11572 
 11572 
 11573 
 11573 
 11574 p7Dsub_78A3:				; CODE XREF: p7Dsub_795C+1Bp p7Dsub_795C+24p ...
 11574 p7Dsub_78A3:
 11575 		push	af
 11575 		push	af
 11576 		push	hl
 11576 		push	hl
 11577 		push	bc
 11577 		push	bc
 11578 		ld	b, 8
 11578 		ld	b, 8
 11579 
 11579 
 11580 p7Dloc_78A8:				; CODE XREF: p7Dsub_78A3+19j
 11580 p7Dloc_78A8:
 11581 		ld	c, a
 11581 		ld	c, a
 11582 		xor	e
 11582 		xor	e
 11583 		rr	d
 11583 		rr	d
 11584 		rr	e
 11584 		rr	e
 11585 		and	1
 11585 		and	1
 11589 		ld	e, a
 11589 		ld	e, a
 11590 		ld	a, 84h ; '�'
 11590 		ld	a, 84h ; '�'
 11591 		xor	d
 11591 		xor	d
 11592 		ld	d, a
 11592 		ld	d, a
 11593 
 11593 
 11594 p7Dloc_78BA:				; CODE XREF: p7Dsub_78A3+Dj
 11594 p7Dloc_78BA:
 11595 		ld	a, c
 11595 		ld	a, c
 11596 		rra
 11596 		rra
 11597 		djnz	p7Dloc_78A8
 11597 		djnz	p7Dloc_78A8
 11598 		pop	bc
 11598 		pop	bc
 11599 		pop	hl
 11599 		pop	hl
 11603 
 11603 
 11604 
 11604 
 11605 ; =============== S U B	R O U T	I N E =======================================
 11605 ; =============== S U B	R O U T	I N E =======================================
 11606 
 11606 
 11607 
 11607 
 11608 p7Dsub_78C2:				; CODE XREF: p7Dsub_795C+7Dp p7Dsub_7AD0+50p
 11608 p7Dsub_78C2:
 11609 		push	hl
 11609 		push	hl
 11610 		push	bc
 11610 		push	bc
 11611 		push	af
 11611 		push	af
 11612 		ld	de, 0FFFFh
 11612 		ld	de, 0FFFFh
 11613 		ld	a, b
 11613 		ld	a, b
 11614 		or	c
 11614 		or	c
 11615 		jr	z, p7Dloc_78F1
 11615 		jr	z, p7Dloc_78F1
 11616 
 11616 
 11617 p7Dloc_78CC:				; CODE XREF: p7Dsub_78C2+2Dj
 11617 p7Dloc_78CC:
 11618 		ld	a, (hl)
 11618 		ld	a, (hl)
 11619 		inc	hl
 11619 		inc	hl
 11620 		push	af
 11620 		push	af
 11621 		push	hl
 11621 		push	hl
 11622 		push	bc
 11622 		push	bc
 11623 		ld	b, 8
 11623 		ld	b, 8
 11624 
 11624 
 11625 p7Dloc_78D3:				; CODE XREF: p7Dsub_78C2+25j
 11625 p7Dloc_78D3:
 11626 		ld	c, a
 11626 		ld	c, a
 11627 		xor	e
 11627 		xor	e
 11628 		rr	d
 11628 		rr	d
 11629 		rr	e
 11629 		rr	e
 11630 		and	1
 11630 		and	1
 11634 		ld	e, a
 11634 		ld	e, a
 11635 		ld	a, 84h ; '�'
 11635 		ld	a, 84h ; '�'
 11636 		xor	d
 11636 		xor	d
 11637 		ld	d, a
 11637 		ld	d, a
 11638 
 11638 
 11639 p7Dloc_78E5:				; CODE XREF: p7Dsub_78C2+19j
 11639 p7Dloc_78E5:
 11640 		ld	a, c
 11640 		ld	a, c
 11641 		rra
 11641 		rra
 11642 		djnz	p7Dloc_78D3
 11642 		djnz	p7Dloc_78D3
 11643 		pop	bc
 11643 		pop	bc
 11644 		pop	hl
 11644 		pop	hl
 11646 		dec	bc
 11646 		dec	bc
 11647 		ld	a, b
 11647 		ld	a, b
 11648 		or	c
 11648 		or	c
 11649 		jr	nz, p7Dloc_78CC
 11649 		jr	nz, p7Dloc_78CC
 11650 
 11650 
 11651 p7Dloc_78F1:				; CODE XREF: p7Dsub_78C2+8j
 11651 p7Dloc_78F1:
 11652 		pop	af
 11652 		pop	af
 11653 		pop	bc
 11653 		pop	bc
 11654 		pop	hl
 11654 		pop	hl
 11655 		ret
 11655 		ret
 11656 ; End of function p7Dsub_78C2
 11656 ; End of function p7Dsub_78C2
 11657 
 11657 
 11658 
 11658 
 11659 ; =============== S U B	R O U T	I N E =======================================
 11659 ; =============== S U B	R O U T	I N E =======================================
 11660 
 11660 
 11661 
 11661 
 11662 p7Dsub_78F5:				; CODE XREF: p7Dsub_7915:p7Dloc_791Fp
 11662 p7Dsub_78F5:
 11663 		; p7Dsub_794D+6p ...
 11663 		; p7Dsub_794D+6p ...
 11664 		push	hl
 11664 		push	hl
 11665 		push	de
 11665 		push	de
 11666 		push	bc
 11666 		push	bc
 11667 		ld	hl, p7Dloc_790F
 11667 		ld	hl, p7Dloc_790F
 11674 		xor	a
 11674 		xor	a
 11675 		ld	a, l
 11675 		ld	a, l
 11676 		jr	p7Dloc_7911
 11676 		jr	p7Dloc_7911
 11677 ; ---------------------------------------------------------------------------
 11677 ; ---------------------------------------------------------------------------
 11678 
 11678 
 11679 p7Dloc_790F:				; CODE XREF: p7Dsub_78F5+14j
 11679 p7Dloc_790F:
 11680 		or	0FFh
 11680 		or	0FFh
 11681 
 11681 
 11682 p7Dloc_7911:				; CODE XREF: p7Dsub_78F5+18j
 11682 p7Dloc_7911:
 11683 		pop	bc
 11683 		pop	bc
 11684 		pop	de
 11684 		pop	de
 11685 		pop	hl
 11685 		pop	hl
 11686 		ret
 11686 		ret
 11687 ; End of function p7Dsub_78F5
 11687 ; End of function p7Dsub_78F5
 11688 
 11688 
 11689 
 11689 
 11690 ; =============== S U B	R O U T	I N E =======================================
 11690 ; =============== S U B	R O U T	I N E =======================================
 11691 
 11691 
 11692 
 11692 
 11693 p7Dsub_7915:				; CODE XREF: p7Dsub_795C+78p
 11693 p7Dsub_7915:
 11694 		push	hl
 11694 		push	hl
 11695 		push	bc
 11695 		push	bc
 11696 		push	af
 11696 		push	af
 11697 		ld	de, 0
 11697 		ld	de, 0
 11698 		ld	a, b
 11698 		ld	a, b
 11699 		or	c
 11699 		or	c
 11700 		jr	z, p7Dloc_792D
 11700 		jr	z, p7Dloc_792D
 11701 
 11701 
 11702 p7Dloc_791F:				; CODE XREF: p7Dsub_7915+15j
 11702 p7Dloc_791F:
 11703 		call	p7Dsub_78F5
 11703 		call	p7Dsub_78F5
 11704 		jr	nz, p7Dloc_792D
 11704 		jr	nz, p7Dloc_792D
 11705 		ld	(hl), a
 11705 		ld	(hl), a
 11706 		inc	hl
 11706 		inc	hl
 11707 		inc	de
 11707 		inc	de
 11709 		ld	a, b
 11709 		ld	a, b
 11710 		or	c
 11710 		or	c
 11711 		jr	nz, p7Dloc_791F
 11711 		jr	nz, p7Dloc_791F
 11712 		xor	a
 11712 		xor	a
 11713 
 11713 
 11714 p7Dloc_792D:				; CODE XREF: p7Dsub_7915+8j p7Dsub_7915+Dj
 11714 p7Dloc_792D:
 11715 		pop	bc
 11715 		pop	bc
 11716 		ld	a, b
 11716 		ld	a, b
 11717 		pop	bc
 11717 		pop	bc
 11718 		pop	hl
 11718 		pop	hl
 11719 		ret
 11719 		ret
 11721 
 11721 
 11722 
 11722 
 11723 ; =============== S U B	R O U T	I N E =======================================
 11723 ; =============== S U B	R O U T	I N E =======================================
 11724 
 11724 
 11725 
 11725 
 11726 LinkStatus:				; CODE XREF: p7Dsub_794D:p7Dloc_794Ep
 11726 LinkStatus:
 11727 		push	bc
 11727 		push	bc
 11728 		push	af
 11728 		push	af
 11729 		call	NZIf83Plus
 11729 		call	NZIf83Plus
 11730 		jr	z, p7Dloc_7945
 11730 		jr	z, p7Dloc_7945
 11731 		in	a, (0)
 11731 		in	a, (0)
 11734 		cp	3
 11734 		cp	3
 11735 		jr	z, p7Dloc_7949
 11735 		jr	z, p7Dloc_7949
 11736 		jr	p7Dloc_7949
 11736 		jr	p7Dloc_7949
 11737 ; ---------------------------------------------------------------------------
 11737 ; ---------------------------------------------------------------------------
 11738 
 11738 
 11739 p7Dloc_7945:				; CODE XREF: LinkStatus+5j
 11739 p7Dloc_7945:
 11740 		in	a, (9)
 11740 		in	a, (9)
 11741 		and	58h ; 'X'
 11741 		and	58h ; 'X'
 11742 
 11742 
 11743 p7Dloc_7949:				; CODE XREF: LinkStatus+Bj
 11743 p7Dloc_7949:
 11744 		; LinkStatus+Fj ...
 11744 		; LinkStatus+Fj ...
 11745 		pop	bc
 11745 		pop	bc
 11746 		ld	a, b
 11746 		ld	a, b
 11747 		pop	bc
 11747 		pop	bc
 11748 		ret
 11748 		ret
 11750 
 11750 
 11751 
 11751 
 11752 ; =============== S U B	R O U T	I N E =======================================
 11752 ; =============== S U B	R O U T	I N E =======================================
 11753 
 11753 
 11754 
 11754 
 11755 p7Dsub_794D:				; CODE XREF: p7Dsub_795C:p7Dloc_79F0p
 11755 p7Dsub_794D:
 11756 		push	af
 11756 		push	af
 11757 
 11757 
 11758 p7Dloc_794E:				; CODE XREF: p7Dsub_794D+Bj
 11758 p7Dloc_794E:
 11759 		call	LinkStatus
 11759 		call	LinkStatus
 11760 		jr	z, p7Dloc_795A
 11760 		jr	z, p7Dloc_795A
 11761 		call	p7Dsub_78F5
 11761 		call	p7Dsub_78F5
 11762 		jr	nz, p7Dloc_795A
 11762 		jr	nz, p7Dloc_795A
 11763 		jr	p7Dloc_794E
 11763 		jr	p7Dloc_794E
 11764 ; ---------------------------------------------------------------------------
 11764 ; ---------------------------------------------------------------------------
 11765 
 11765 
 11766 p7Dloc_795A:				; CODE XREF: p7Dsub_794D+4j p7Dsub_794D+9j
 11766 p7Dloc_795A:
 11767 		pop	af
 11767 		pop	af
 11768 		ret
 11768 		ret
 11769 ; End of function p7Dsub_794D
 11769 ; End of function p7Dsub_794D
 11770 
 11770 
 11771 
 11771 
 11772 ; =============== S U B	R O U T	I N E =======================================
 11772 ; =============== S U B	R O U T	I N E =======================================
 11773 
 11773 
 11774 
 11774 
 11775 p7Dsub_795C:				; CODE XREF: seg001:7A30p
 11775 p7Dsub_795C:
 11776 		push	ix
 11776 		push	ix
 11777 		ld	ix, 0
 11777 		ld	ix, 0
 11778 		add	ix, sp
 11778 		add	ix, sp
 11779 		push	hl
 11779 		push	hl
 11780 		push	de
 11780 		push	de
 11841 		jr	nz, p7Dloc_79F0
 11841 		jr	nz, p7Dloc_79F0
 11842 		xor	a
 11842 		xor	a
 11843 		jr	p7Dloc_79F5
 11843 		jr	p7Dloc_79F5
 11844 ; ---------------------------------------------------------------------------
 11844 ; ---------------------------------------------------------------------------
 11845 
 11845 
 11846 p7Dloc_79F0:				; CODE XREF: p7Dsub_795C+13j p7Dsub_795C+19j ...
 11846 p7Dloc_79F0:
 11847 		call	p7Dsub_794D
 11847 		call	p7Dsub_794D
 11848 		or	0FFh
 11848 		or	0FFh
 11849 
 11849 
 11850 p7Dloc_79F5:				; CODE XREF: p7Dsub_795C+5Fj p7Dsub_795C+92j
 11850 p7Dloc_79F5:
 11851 		pop	bc
 11851 		pop	bc
 11852 		ld	a, b
 11852 		ld	a, b
 11853 		pop	bc
 11853 		pop	bc
 11854 		pop	de
 11854 		pop	de
 11855 		pop	hl
 11855 		pop	hl
 11874 		jr	z, p7Dloc_7A17
 11874 		jr	z, p7Dloc_7A17
 11875 		dec	c
 11875 		dec	c
 11876 		cp	33h ; '3'
 11876 		cp	33h ; '3'
 11877 		jr	c, p7Dloc_7A19
 11877 		jr	c, p7Dloc_7A19
 11878 
 11878 
 11879 p7Dloc_7A17:				; CODE XREF: seg001:7A10j
 11879 p7Dloc_7A17:
 11880 		ld	c, 32h ; '2'
 11880 		ld	c, 32h ; '2'
 11881 
 11881 
 11882 p7Dloc_7A19:				; CODE XREF: seg001:7A15j seg001:7A50j
 11882 p7Dloc_7A19:
 11883 		ld	(ix+0F7h), b
 11883 		ld	(ix+0F7h), b
 11884 		ld	(ix+0F6h), c
 11884 		ld	(ix+0F6h), c
 11885 		call	p7Dsub_7A8D
 11885 		call	p7Dsub_7A8D
 11886 		jr	nz, p7Dloc_7A52
 11886 		jr	nz, p7Dloc_7A52
 11887 		ld	h, (ix+0FFh)
 11887 		ld	h, (ix+0FFh)
 11901 		dec	bc
 11901 		dec	bc
 11902 		ld	a, b
 11902 		ld	a, b
 11903 		or	c
 11903 		or	c
 11904 		jr	nz, p7Dloc_7A19
 11904 		jr	nz, p7Dloc_7A19
 11905 
 11905 
 11906 p7Dloc_7A52:				; CODE XREF: seg001:7A22j seg001:7A4Bj
 11906 p7Dloc_7A52:
 11907 		call	p7Dsub_7A85
 11907 		call	p7Dsub_7A85
 11908 		or	0FFh
 11908 		or	0FFh
 11909 		jr	p7Dloc_7A5D
 11909 		jr	p7Dloc_7A5D
 11910 ; ---------------------------------------------------------------------------
 11910 ; ---------------------------------------------------------------------------
 11911 
 11911 
 11912 p7Dloc_7A59:				; CODE XREF: seg001:7A3Fj
 11912 p7Dloc_7A59:
 11913 		call	p7Dsub_7A75
 11913 		call	p7Dsub_7A75
 11914 		xor	a
 11914 		xor	a
 11915 
 11915 
 11916 p7Dloc_7A5D:				; CODE XREF: seg001:7A57j
 11916 p7Dloc_7A5D:
 11917 		pop	bc
 11917 		pop	bc
 11918 		ld	a, b
 11918 		ld	a, b
 11919 		pop	bc
 11919 		pop	bc
 11920 		pop	bc
 11920 		pop	bc
 11921 		pop	de
 11921 		pop	de
 11925 		ret
 11925 		ret
 11926 
 11926 
 11927 ; =============== S U B	R O U T	I N E =======================================
 11927 ; =============== S U B	R O U T	I N E =======================================
 11928 
 11928 
 11929 
 11929 
 11930 p7Dsub_7A67:				; CODE XREF: p7Dsub_7A75+3p seg001:7A80p	...
 11930 p7Dsub_7A67:
 11931 		push	hl
 11931 		push	hl
 11932 		push	de
 11932 		push	de
 11933 		ld	hl, 0
 11933 		ld	hl, 0
 11934 		ld	de, 0
 11934 		ld	de, 0
 11935 		call	p7Dsub_7AD0
 11935 		call	p7Dsub_7AD0
 11940 
 11940 
 11941 
 11941 
 11942 ; =============== S U B	R O U T	I N E =======================================
 11942 ; =============== S U B	R O U T	I N E =======================================
 11943 
 11943 
 11944 
 11944 
 11945 p7Dsub_7A75:				; CODE XREF: seg001:p7Dloc_7A59p
 11945 p7Dsub_7A75:
 11946 		push	bc
 11946 		push	bc
 11947 		ld	b, 1
 11947 		ld	b, 1
 11948 		call	p7Dsub_7A67
 11948 		call	p7Dsub_7A67
 11949 		pop	bc
 11949 		pop	bc
 11950 		ret
 11950 		ret
 11958 		ret
 11958 		ret
 11959 
 11959 
 11960 ; =============== S U B	R O U T	I N E =======================================
 11960 ; =============== S U B	R O U T	I N E =======================================
 11961 
 11961 
 11962 
 11962 
 11963 p7Dsub_7A85:				; CODE XREF: seg001:p7Dloc_7A52p
 11963 p7Dsub_7A85:
 11964 		push	bc
 11964 		push	bc
 11965 		ld	b, 4
 11965 		ld	b, 4
 11966 		call	p7Dsub_7A67
 11966 		call	p7Dsub_7A67
 11967 		pop	bc
 11967 		pop	bc
 11968 		ret
 11968 		ret
 11970 
 11970 
 11971 
 11971 
 11972 ; =============== S U B	R O U T	I N E =======================================
 11972 ; =============== S U B	R O U T	I N E =======================================
 11973 
 11973 
 11974 
 11974 
 11975 p7Dsub_7A8D:				; CODE XREF: seg001:7A1Fp
 11975 p7Dsub_7A8D:
 11976 		bit	4, (iy+9)
 11976 		bit	4, (iy+9)
 11977 		res	4, (iy+9)
 11977 		res	4, (iy+9)
 11978 		ret
 11978 		ret
 11979 ; End of function p7Dsub_7A8D
 11979 ; End of function p7Dsub_7A8D
 11980 
 11980 
 11981 
 11981 
 11982 ; =============== S U B	R O U T	I N E =======================================
 11982 ; =============== S U B	R O U T	I N E =======================================
 11983 
 11983 
 11984 
 11984 
 11985 p7Dsub_7A96:				; CODE XREF: p7Dsub_7AB7+8p p7Dsub_7AD0+11p	...
 11985 p7Dsub_7A96:
 11986 		push	hl
 11986 		push	hl
 11987 		push	de
 11987 		push	de
 11988 		push	bc
 11988 		push	bc
 11989 		push	af
 11989 		push	af
 11990 		ld	hl, p7Dloc_7AAF
 11990 		ld	hl, p7Dloc_7AAF
 11995 		jr	nz, p7Dloc_7AAF
 11995 		jr	nz, p7Dloc_7AAF
 11996 		xor	a
 11996 		xor	a
 11997 		jr	p7Dloc_7AB1
 11997 		jr	p7Dloc_7AB1
 11998 ; ---------------------------------------------------------------------------
 11998 ; ---------------------------------------------------------------------------
 11999 
 11999 
 12000 p7Dloc_7AAF:				; CODE XREF: p7Dsub_7A96+14j
 12000 p7Dloc_7AAF:
 12001 		or	0FFh
 12001 		or	0FFh
 12002 
 12002 
 12003 p7Dloc_7AB1:				; CODE XREF: p7Dsub_7A96+17j
 12003 p7Dloc_7AB1:
 12004 		pop	bc
 12004 		pop	bc
 12005 		ld	a, b
 12005 		ld	a, b
 12006 		pop	bc
 12006 		pop	bc
 12007 		pop	de
 12007 		pop	de
 12008 		pop	hl
 12008 		pop	hl
 12011 
 12011 
 12012 
 12012 
 12013 ; =============== S U B	R O U T	I N E =======================================
 12013 ; =============== S U B	R O U T	I N E =======================================
 12014 
 12014 
 12015 
 12015 
 12016 p7Dsub_7AB7:				; CODE XREF: p7Dsub_7AD0+53p
 12016 p7Dsub_7AB7:
 12017 		push	hl
 12017 		push	hl
 12018 		push	bc
 12018 		push	bc
 12019 		push	af
 12019 		push	af
 12020 		ld	a, b
 12020 		ld	a, b
 12021 		or	c
 12021 		or	c
 12022 		jr	z, p7Dloc_7ACB
 12022 		jr	z, p7Dloc_7ACB
 12023 
 12023 
 12024 p7Dloc_7ABE:				; CODE XREF: p7Dsub_7AB7+11j
 12024 p7Dloc_7ABE:
 12025 		ld	a, (hl)
 12025 		ld	a, (hl)
 12026 		call	p7Dsub_7A96
 12026 		call	p7Dsub_7A96
 12027 		jr	nz, p7Dloc_7ACB
 12027 		jr	nz, p7Dloc_7ACB
 12028 		inc	hl
 12028 		inc	hl
 12029 		dec	bc
 12029 		dec	bc
 12030 		ld	a, b
 12030 		ld	a, b
 12031 		or	c
 12031 		or	c
 12032 		jr	nz, p7Dloc_7ABE
 12032 		jr	nz, p7Dloc_7ABE
 12033 		xor	a
 12033 		xor	a
 12034 
 12034 
 12035 p7Dloc_7ACB:				; CODE XREF: p7Dsub_7AB7+5j p7Dsub_7AB7+Bj
 12035 p7Dloc_7ACB:
 12036 		pop	bc
 12036 		pop	bc
 12037 		ld	a, b
 12037 		ld	a, b
 12038 		pop	bc
 12038 		pop	bc
 12039 		pop	hl
 12039 		pop	hl
 12040 		ret
 12040 		ret
 12042 
 12042 
 12043 
 12043 
 12044 ; =============== S U B	R O U T	I N E =======================================
 12044 ; =============== S U B	R O U T	I N E =======================================
 12045 
 12045 
 12046 
 12046 
 12047 p7Dsub_7AD0:				; CODE XREF: p7Dsub_7A67+8p
 12047 p7Dsub_7AD0:
 12048 		push	ix
 12048 		push	ix
 12049 		ld	ix, 0
 12049 		ld	ix, 0
 12050 		add	ix, sp
 12050 		add	ix, sp
 12051 		push	hl
 12051 		push	hl
 12052 		push	de
 12052 		push	de
 12091 		jr	nz, p7Dloc_7B37
 12091 		jr	nz, p7Dloc_7B37
 12092 		ld	a, e
 12092 		ld	a, e
 12093 		call	p7Dsub_7A96
 12093 		call	p7Dsub_7A96
 12094 		jr	nz, p7Dloc_7B37
 12094 		jr	nz, p7Dloc_7B37
 12095 
 12095 
 12096 p7Dloc_7B34:				; CODE XREF: p7Dsub_7AD0+4Ej
 12096 p7Dloc_7B34:
 12097 		xor	a
 12097 		xor	a
 12098 		jr	p7Dloc_7B39
 12098 		jr	p7Dloc_7B39
 12099 ; ---------------------------------------------------------------------------
 12099 ; ---------------------------------------------------------------------------
 12100 
 12100 
 12101 p7Dloc_7B37:				; CODE XREF: p7Dsub_7AD0+14j p7Dsub_7AD0+1Dj ...
 12101 p7Dloc_7B37:
 12102 		or	0FFh
 12102 		or	0FFh
 12103 
 12103 
 12104 p7Dloc_7B39:				; CODE XREF: p7Dsub_7AD0+65j
 12104 p7Dloc_7B39:
 12105 		pop	bc
 12105 		pop	bc
 12106 		ld	a, b
 12106 		ld	a, b
 12107 		pop	bc
 12107 		pop	bc
 12108 		pop	de
 12108 		pop	de
 12109 		pop	hl
 12109 		pop	hl
 12113 
 12113 
 12114 
 12114 
 12115 ; =============== S U B	R O U T	I N E =======================================
 12115 ; =============== S U B	R O U T	I N E =======================================
 12116 
 12116 
 12117 
 12117 
 12118 p7Dsub_7B41:				; CODE XREF: seg001:p7Dloc_779Bp
 12118 p7Dsub_7B41:
 12119 		call	ZeroOP1
 12119 		call	ZeroOP1
 12120 		ld	a, 1
 12120 		ld	a, 1
 12121 		or	a
 12121 		or	a
 12122 		ld	hl, ramStart
 12122 		ld	hl, ramStart
 12123 		ld	de, 8040h
 12123 		ld	de, 8040h
 12139 		call	p7Dsub_6186
 12139 		call	p7Dsub_6186
 12140 		jr	c, p7Dloc_7B6D
 12140 		jr	c, p7Dloc_7B6D
 12141 		ld	(appInfo+1), a
 12141 		ld	(appInfo+1), a
 12142 		call	Page7D_2BE6
 12142 		call	Page7D_2BE6
 12143 
 12143 
 12144 p7Dloc_7B6D:				; CODE XREF: p7Dsub_7B41+24j
 12144 p7Dloc_7B6D:
 12145 		pop	hl
 12145 		pop	hl
 12146 		ld	(appSearchPage), hl
 12146 		ld	(appSearchPage), hl
 12147 		ret
 12147 		ret
 12148 ; End of function p7Dsub_7B41
 12148 ; End of function p7Dsub_7B41
 12149 
 12149 
 12150 
 12150 
 12151 ; =============== S U B	R O U T	I N E =======================================
 12151 ; =============== S U B	R O U T	I N E =======================================
 12152 
 12152 
 12153 
 12153 
 12154 p7Dsub_7B72:				; CODE XREF: seg001:71BEp
 12154 p7Dsub_7B72:
 12155 		; p7Dsub_7240+1BCp ...
 12155 		; p7Dsub_7240+1BCp ...
 12156 		call	p7Dsub_75EC
 12156 		call	p7Dsub_75EC
 12157 
 12157 
 12158 p7Dloc_7B75:				; CODE XREF: p7Dsub_7B72+24j
 12158 p7Dloc_7B75:
 12159 		ld	hl, 4000h
 12159 		ld	hl, 4000h
 12160 		push	af
 12160 		push	af
 12161 		call	Page7D_2CD0
 12161 		call	Page7D_2CD0
 12162 		cp	80h ; '�'
 12162 		cp	80h ; '�'
 12163 		jr	z, p7Dloc_7B84
 12163 		jr	z, p7Dloc_7B84
 12164 		cp	0
 12164 		cp	0
 12165 		jr	nz, p7Dloc_7B9C
 12165 		jr	nz, p7Dloc_7B9C
 12166 
 12166 
 12167 p7Dloc_7B84:				; CODE XREF: p7Dsub_7B72+Cj
 12167 p7Dloc_7B84:
 12168 		pop	af
 12168 		pop	af
 12169 		call	Page0Call_3E31
 12169 		call	Page0Call_3E31
 12170 		jr	nz, p7Dloc_7B9A
 12170 		jr	nz, p7Dloc_7B9A
 12171 		call	FindAppNumPages
 12171 		call	FindAppNumPages
 12172 		ld	b, a
 12172 		ld	b, a
 12176 		ld	a, b
 12176 		ld	a, b
 12177 		sub	c
 12177 		sub	c
 12178 		cp	8
 12178 		cp	8
 12179 		jr	nc, p7Dloc_7B75
 12179 		jr	nc, p7Dloc_7B75
 12180 
 12180 
 12181 p7Dloc_7B98:				; CODE XREF: p7Dsub_7B72+1Ej
 12181 p7Dloc_7B98:
 12182 		xor	a
 12182 		xor	a
 12183 		ret
 12183 		ret
 12184 ; ---------------------------------------------------------------------------
 12184 ; ---------------------------------------------------------------------------
 12185 
 12185 
 12186 p7Dloc_7B9A:				; CODE XREF: p7Dsub_7B72+16j p7Dsub_7B72+2Ej
 12186 p7Dloc_7B9A:
 12187 		cp	a
 12187 		cp	a
 12188 		ret
 12188 		ret
 12189 ; ---------------------------------------------------------------------------
 12189 ; ---------------------------------------------------------------------------
 12190 
 12190 
 12191 p7Dloc_7B9C:				; CODE XREF: p7Dsub_7B72+10j
 12191 p7Dloc_7B9C:
 12192 		cp	0FFh
 12192 		cp	0FFh
 12193 		pop	bc
 12193 		pop	bc
 12194 		ld	a, b
 12194 		ld	a, b
 12195 		jr	nz, p7Dloc_7B9A
 12195 		jr	nz, p7Dloc_7B9A
 12196 		or	a
 12196 		or	a
 12199 
 12199 
 12200 
 12200 
 12201 ; =============== S U B	R O U T	I N E =======================================
 12201 ; =============== S U B	R O U T	I N E =======================================
 12202 
 12202 
 12203 
 12203 
 12204 p7Dsub_7BA4:				; CODE XREF: seg001:60F7p
 12204 p7Dsub_7BA4:
 12205 		xor	a
 12205 		xor	a
 12206 		ld	b, 0Eh
 12206 		ld	b, 0Eh
 12207 		ld	hl, 9C88h
 12207 		ld	hl, 9C88h
 12208 
 12208 
 12209 p7Dloc_7BAA:				; CODE XREF: p7Dsub_7BA4+8j
 12209 p7Dloc_7BAA:
 12210 		ld	(hl), a
 12210 		ld	(hl), a
 12211 		inc	hl
 12211 		inc	hl
 12212 		djnz	p7Dloc_7BAA
 12212 		djnz	p7Dloc_7BAA
 12213 		ret
 12213 		ret
 12214 ; End of function p7Dsub_7BA4
 12214 ; End of function p7Dsub_7BA4
 12215 
 12215 
 12216 
 12216 
 12217 ; =============== S U B	R O U T	I N E =======================================
 12217 ; =============== S U B	R O U T	I N E =======================================
 12218 
 12218 
 12219 
 12219 
 12220 p7Dsub_7BAF:				; CODE XREF: seg001:610Fp
 12220 p7Dsub_7BAF:
 12221 		call	p7Dsub_7BBA
 12221 		call	p7Dsub_7BBA
 12222 		or	(hl)
 12222 		or	(hl)
 12223 		ld	(hl), a
 12223 		ld	(hl), a
 12224 		ret
 12224 		ret
 12225 ; End of function p7Dsub_7BAF
 12225 ; End of function p7Dsub_7BAF
 12226 
 12226 
 12227 
 12227 
 12228 ; =============== S U B	R O U T	I N E =======================================
 12228 ; =============== S U B	R O U T	I N E =======================================
 12229 
 12229 
 12230 
 12230 
 12231 p7Dsub_7BB5:				; CODE XREF: p7Dsub_638B+1Ap
 12231 p7Dsub_7BB5:
 12232 		call	p7Dsub_7BBA
 12232 		call	p7Dsub_7BBA
 12233 		and	(hl)
 12233 		and	(hl)
 12234 		ret
 12234 		ret
 12235 ; End of function p7Dsub_7BB5
 12235 ; End of function p7Dsub_7BB5
 12236 
 12236 
 12237 
 12237 
 12238 ; =============== S U B	R O U T	I N E =======================================
 12238 ; =============== S U B	R O U T	I N E =======================================
 12239 
 12239 
 12240 
 12240 
 12241 p7Dsub_7BBA:				; CODE XREF: p7Dsub_7BAFp	p7Dsub_7BB5p
 12241 p7Dsub_7BBA:
 12242 		sub	8
 12242 		sub	8
 12243 		ld	hl, 9C88h
 12243 		ld	hl, 9C88h
 12244 		ld	c, a
 12244 		ld	c, a
 12245 		ld	b, 0
 12245 		ld	b, 0
 12246 		sra	c
 12246 		sra	c
 12253 
 12253 
 12254 
 12254 
 12255 ; =============== S U B	R O U T	I N E =======================================
 12255 ; =============== S U B	R O U T	I N E =======================================
 12256 
 12256 
 12257 
 12257 
 12258 p7Dsub_7BCC:				; CODE XREF: p7Dsub_519D+6p p7Dsub_51C3+6p ...
 12258 p7Dsub_7BCC:
 12259 		ld	b, c
 12259 		ld	b, c
 12260 		ld	a, 80h ; '�'
 12260 		ld	a, 80h ; '�'
 12261 		inc	b
 12261 		inc	b
 12262 
 12262 
 12263 p7Dloc_7BD0:				; CODE XREF: p7Dsub_7BCC+5j
 12263 p7Dloc_7BD0:
 12264 		rlca
 12264 		rlca
 12265 		djnz	p7Dloc_7BD0
 12265 		djnz	p7Dloc_7BD0
 12266 		ret
 12266 		ret
 12267 ; End of function p7Dsub_7BCC
 12267 ; End of function p7Dsub_7BCC
 12268 
 12268 
 12269 
 12269 
 12270 ; =============== S U B	R O U T	I N E =======================================
 12270 ; =============== S U B	R O U T	I N E =======================================
 12271 
 12271 
 12272 
 12272 
 12273 p7Dsub_7BD4:				; CODE XREF: p7Dsub_662F:p7Dloc_6638p
 12273 p7Dsub_7BD4:
 12274 		; seg001:6A9Dp	...
 12274 
 12275 		bit	0, (iy+12h)
 12275 		bit	0, (iy+12h)
 12276 		ret	z
 12276 		ret	z
 12277 		push	af
 12277 		push	af
 12278 		push	bc
 12278 		push	bc
 12279 		push	de
 12279 		push	de
 12290 
 12290 
 12291 
 12291 
 12292 ; =============== S U B	R O U T	I N E =======================================
 12292 ; =============== S U B	R O U T	I N E =======================================
 12293 
 12293 
 12294 
 12294 
 12295 p7Dsub_7BEA:				; CODE XREF: p7Dsub_7240+1C4p
 12295 p7Dsub_7BEA:
 12296 		; seg001:77C8p
 12296 
 12297 
 12297 
 12298 ; FUNCTION CHUNK AT 72A5 SIZE 0000002D BYTES
 12298 
 12299 
 12299 
 12300 		ld	(appSearchPage+1), a
 12300 		ld	(appSearchPage+1), a
 12301 		ld	(appSearchPage), a
 12301 		ld	(appSearchPage), a
 12302 		ld	(unk_8434), a
 12302 		ld	(unk_8434), a
 12303 		call	p7Dsub_5DC7
 12303 		call	p7Dsub_5DC7
 12357 		call	nc, DelVarArc
 12357 		call	nc, DelVarArc
 12358 		call	relockFlashBack
 12358 		call	relockFlashBack
 12359 		jr	p7Dloc_7C61
 12359 		jr	p7Dloc_7C61
 12360 ; ---------------------------------------------------------------------------
 12360 ; ---------------------------------------------------------------------------
 12361 
 12361 
 12362 p7Dloc_7C4D:				; CODE XREF: seg001:7C3Dj
 12362 p7Dloc_7C4D:
 12363 		call	ChkFindSym
 12363 		call	ChkFindSym
 12364 		ex	de, hl
 12364 		ex	de, hl
 12365 		ld	bc, (freeRAM)
 12365 		ld	bc, (freeRAM)
 12366 		dec	bc
 12366 		dec	bc
 12367 		dec	bc
 12367 		dec	bc
 12371 		dec	hl
 12371 		dec	hl
 12372 		ex	de, hl
 12372 		ex	de, hl
 12373 		ld	a, 3
 12373 		ld	a, 3
 12374 		call	DELVARIO
 12374 		call	DELVARIO
 12375 
 12375 
 12376 p7Dloc_7C61:				; CODE XREF: seg001:7C4Bj
 12376 p7Dloc_7C61:
 12377 		or	1
 12377 		or	1
 12378 		ret
 12378 		ret
 12379 
 12379 
 12380 ; =============== S U B	R O U T	I N E =======================================
 12380 ; =============== S U B	R O U T	I N E =======================================
 12381 
 12381 
 12382 
 12382 
 12383 p7Dsub_7C64:				; CODE XREF: seg001:7C3Ap
 12383 p7Dsub_7C64:
 12384 		push	hl
 12384 		push	hl
 12385 		ld	hl, ioNewData
 12385 		ld	hl, ioNewData
 12386 		bit	7, (hl)
 12386 		bit	7, (hl)
 12387 		pop	hl
 12387 		pop	hl
 12388 		ret
 12388 		ret
 12397 		call	CMPPRGNAMLEN
 12397 		call	CMPPRGNAMLEN
 12398 		inc	a
 12398 		inc	a
 12399 		jr	p7Dloc_7C81
 12399 		jr	p7Dloc_7C81
 12400 ; ---------------------------------------------------------------------------
 12400 ; ---------------------------------------------------------------------------
 12401 
 12401 
 12402 p7Dloc_7C7D:				; CODE XREF: seg001:7C6Fj
 12402 p7Dloc_7C7D:
 12403 		push	bc
 12403 		push	bc
 12404 		call	CMPPRGNAMLEN
 12404 		call	CMPPRGNAMLEN
 12405 
 12405 
 12406 p7Dloc_7C81:				; CODE XREF: seg001:7C7Bj
 12406 p7Dloc_7C81:
 12407 		pop	bc
 12407 		pop	bc
 12408 		or	a
 12408 		or	a
 12409 		ret
 12409 		ret
 12410 ; ---------------------------------------------------------------------------
 12410 ; ---------------------------------------------------------------------------
 12411 
 12411 
 12412 p7Dloc_7C84:				; CODE XREF: seg001:7C74j
 12412 p7Dloc_7C84:
 12413 		xor	a
 12413 		xor	a
 12414 		scf
 12414 		scf
 12415 		ret
 12415 		ret
 12416 ; ---------------------------------------------------------------------------
 12416 ; ---------------------------------------------------------------------------
 12417 		push	hl
 12417 		push	hl
 12424 		ret
 12424 		ret
 12425 
 12425 
 12426 ; =============== S U B	R O U T	I N E =======================================
 12426 ; =============== S U B	R O U T	I N E =======================================
 12427 
 12427 
 12428 
 12428 
 12429 p7Dsub_7C96:				; CODE XREF: p7Dsub_7D67+36p
 12429 p7Dsub_7C96:
 12430 		call	NZIf83Plus
 12430 		call	NZIf83Plus
 12431 		jr	nz, p7Dloc_7CA0
 12431 		jr	nz, p7Dloc_7CA0
 12432 		and	7Fh ; ''
 12432 		and	7Fh ; ''
 12433 		cp	6Ah ; 'j'
 12433 		cp	6Ah ; 'j'
 12434 		ret
 12434 		ret
 12435 ; ---------------------------------------------------------------------------
 12435 ; ---------------------------------------------------------------------------
 12436 
 12436 
 12437 p7Dloc_7CA0:				; CODE XREF: p7Dsub_7C96+3j
 12437 p7Dloc_7CA0:
 12438 		and	1Fh
 12438 		and	1Fh
 12439 		cp	16h
 12439 		cp	16h
 12440 		ret
 12440 		ret
 12441 ; End of function p7Dsub_7C96
 12441 ; End of function p7Dsub_7C96
 12442 
 12442 
 12443 
 12443 
 12444 ; =============== S U B	R O U T	I N E =======================================
 12444 ; =============== S U B	R O U T	I N E =======================================
 12445 
 12445 
 12446 
 12446 
 12447 p7Dsub_7CA5:				; CODE XREF: p7Dsub_7240+10Ap
 12447 p7Dsub_7CA5:
 12448 		ld	a, (unk_83A4)
 12448 		ld	a, (unk_83A4)
 12449 		or	a
 12449 		or	a
 12450 		ret	z
 12450 		ret	z
 12451 		ld	a, (unk_83A3)
 12451 		ld	a, (unk_83A3)
 12452 		inc	a
 12452 		inc	a
 12456 
 12456 
 12457 
 12457 
 12458 ; =============== S U B	R O U T	I N E =======================================
 12458 ; =============== S U B	R O U T	I N E =======================================
 12459 
 12459 
 12460 
 12460 
 12461 p7Dsub_7CB2:				; CODE XREF: p7Dsub_6428+Bp p7Dsub_733Bp ...
 12461 p7Dsub_7CB2:
 12462 		push	bc
 12462 		push	bc
 12463 		ld	b, a
 12463 		ld	b, a
 12464 		ld	a, (sndRecState)
 12464 		ld	a, (sndRecState)
 12465 		inc	a
 12465 		inc	a
 12466 		ld	a, b
 12466 		ld	a, b
 12470 
 12470 
 12471 
 12471 
 12472 ; =============== S U B	R O U T	I N E =======================================
 12472 ; =============== S U B	R O U T	I N E =======================================
 12473 
 12473 
 12474 
 12474 
 12475 p7Dsub_7CBB:				; CODE XREF: seg001:p7Dloc_7234p
 12475 p7Dsub_7CBB:
 12476 		; p7Dsub_7240+119p
 12476 		; p7Dsub_7240+119p
 12477 		ld	a, (ramCodeEnd)
 12477 		ld	a, (ramCodeEnd)
 12478 		cp	0
 12478 		cp	0
 12479 		ret	z
 12479 		ret	z
 12480 		push	hl
 12480 		push	hl
 12490 
 12490 
 12491 
 12491 
 12492 ; =============== S U B	R O U T	I N E =======================================
 12492 ; =============== S U B	R O U T	I N E =======================================
 12493 
 12493 
 12494 
 12494 
 12495 p7Dsub_7CCF:				; CODE XREF: p7Dsub_7240+285p
 12495 p7Dsub_7CCF:
 12496 		; p7Dsub_7240:p7Dloc_7535p ...
 12496 		; p7Dsub_7240:p7Dloc_7535p ...
 12497 		rst	28h
 12497 		rst	28h
 12498 ; ---------------------------------------------------------------------------
 12498 ; ---------------------------------------------------------------------------
 12499 		.dw 8057h
 12499 		.dw 8057h
 12500 ; End of function p7Dsub_7CCF
 12500 ; End of function p7Dsub_7CCF
 12506 		ret
 12506 		ret
 12507 
 12507 
 12508 ; =============== S U B	R O U T	I N E =======================================
 12508 ; =============== S U B	R O U T	I N E =======================================
 12509 
 12509 
 12510 
 12510 
 12511 p7Dsub_7CDA:				; CODE XREF: seg001:7E7Dp
 12511 p7Dsub_7CDA:
 12512 		push	af
 12512 		push	af
 12513 		push	af
 12513 		push	af
 12514 		ld	a, 1
 12514 		ld	a, 1
 12515 		nop
 12515 		nop
 12516 		di
 12516 		di
 12525 		call	Page0Call_2ECB
 12525 		call	Page0Call_2ECB
 12526 		call	p7Dsub_7CCF
 12526 		call	p7Dsub_7CCF
 12527 		push	hl
 12527 		push	hl
 12528 		ld	b, 8
 12528 		ld	b, 8
 12529 
 12529 
 12530 p7Dloc_7CF5:				; CODE XREF: p7Dsub_7CDA+23j
 12530 p7Dloc_7CF5:
 12531 		call	p7Dsub_4566
 12531 		call	p7Dsub_4566
 12532 		cp	0FFh
 12532 		cp	0FFh
 12533 		jr	nz, p7Dloc_7D01
 12533 		jr	nz, p7Dloc_7D01
 12534 		inc	hl
 12534 		inc	hl
 12535 		djnz	p7Dloc_7CF5
 12535 		djnz	p7Dloc_7CF5
 12536 		jr	p7Dloc_7D04
 12536 		jr	p7Dloc_7D04
 12537 ; ---------------------------------------------------------------------------
 12537 ; ---------------------------------------------------------------------------
 12538 
 12538 
 12539 p7Dloc_7D01:				; CODE XREF: p7Dsub_7CDA+20j
 12539 p7Dloc_7D01:
 12540 		call	Page7D_2BB0
 12540 		call	Page7D_2BB0
 12541 
 12541 
 12542 p7Dloc_7D04:				; CODE XREF: p7Dsub_7CDA+25j
 12542 p7Dloc_7D04:
 12543 		ld	hl, 7FFEh
 12543 		ld	hl, 7FFEh
 12544 		ld	(OP1+1), hl
 12544 		ld	(OP1+1), hl
 12545 		ld	a, (arcInfo)
 12545 		ld	a, (arcInfo)
 12546 		ld	(unk_847B), a
 12546 		ld	(unk_847B), a
 12547 		ld	hl, (arcInfo+1)
 12547 		ld	hl, (arcInfo+1)
 12548 		call	p7Dsub_69D4
 12548 		call	p7Dsub_69D4
 12549 		jr	nz, p7Dloc_7D19
 12549 		jr	nz, p7Dloc_7D19
 12550 		inc	hl
 12550 		inc	hl
 12551 
 12551 
 12552 p7Dloc_7D19:				; CODE XREF: p7Dsub_7CDA+3Cj
 12552 p7Dloc_7D19:
 12553 		inc	hl
 12553 		inc	hl
 12554 		inc	hl
 12554 		inc	hl
 12555 		inc	hl
 12555 		inc	hl
 12556 		ld	de, (unk_83F5)
 12556 		ld	de, (unk_83F5)
 12557 		add	hl, de
 12557 		add	hl, de
 12562 		jr	z, p7Dloc_7D33
 12562 		jr	z, p7Dloc_7D33
 12563 		inc	a
 12563 		inc	a
 12564 		inc	a
 12564 		inc	a
 12565 		res	7, d
 12565 		res	7, d
 12566 
 12566 
 12567 p7Dloc_7D33:				; CODE XREF: p7Dsub_7CDA+53j
 12567 p7Dloc_7D33:
 12568 		bit	6, d
 12568 		bit	6, d
 12569 		jr	z, p7Dloc_7D3A
 12569 		jr	z, p7Dloc_7D3A
 12570 		inc	a
 12570 		inc	a
 12571 		res	6, d
 12571 		res	6, d
 12572 
 12572 
 12573 p7Dloc_7D3A:				; CODE XREF: p7Dsub_7CDA+5Bj
 12573 p7Dloc_7D3A:
 12574 		add	hl, de
 12574 		add	hl, de
 12575 		bit	7, h
 12575 		bit	7, h
 12576 		jr	z, p7Dloc_7D44
 12576 		jr	z, p7Dloc_7D44
 12577 		inc	a
 12577 		inc	a
 12578 		res	7, h
 12578 		res	7, h
 12579 		set	6, h
 12579 		set	6, h
 12580 
 12580 
 12581 p7Dloc_7D44:				; CODE XREF: p7Dsub_7CDA+63j
 12581 p7Dloc_7D44:
 12582 		ld	(unk_847E), a
 12582 		ld	(unk_847E), a
 12583 		ld	(unk_847F), hl
 12583 		ld	(unk_847F), hl
 12584 		ld	bc, 8
 12584 		ld	bc, 8
 12585 		ld	hl, 8479h
 12585 		ld	hl, 8479h
 12586 		call	p7Dsub_7700
 12586 		call	p7Dsub_7700
 12600 
 12600 
 12601 
 12601 
 12602 ; =============== S U B	R O U T	I N E =======================================
 12602 ; =============== S U B	R O U T	I N E =======================================
 12603 
 12603 
 12604 
 12604 
 12605 p7Dsub_7D67:				; CODE XREF: seg001:71A3j p7Dsub_7E40+13p
 12605 p7Dsub_7D67:
 12606 		ld	a, (pagedCount)
 12606 		ld	a, (pagedCount)
 12607 		or	a
 12607 		or	a
 12608 		ret	z
 12608 		ret	z
 12609 		push	bc
 12609 		push	bc
 12610 		push	de
 12610 		push	de
 12659 		pop	hl
 12659 		pop	hl
 12660 		jr	c, p7Dloc_7E0D
 12660 		jr	c, p7Dloc_7E0D
 12661 		jr	p7Dloc_7DD9
 12661 		jr	p7Dloc_7DD9
 12662 ; ---------------------------------------------------------------------------
 12662 ; ---------------------------------------------------------------------------
 12663 
 12663 
 12664 p7Dloc_7DD3:				; CODE XREF: p7Dsub_7D67+5Aj
 12664 p7Dloc_7DD3:
 12665 		ld	de, (iMathPtr5)
 12665 		ld	de, (iMathPtr5)
 12666 		inc	hl
 12666 		inc	hl
 12667 		inc	hl
 12667 		inc	hl
 12668 
 12668 
 12669 p7Dloc_7DD9:				; CODE XREF: p7Dsub_7D67+6Aj
 12669 p7Dloc_7DD9:
 12670 		ld	a, (arcInfo)
 12670 		ld	a, (arcInfo)
 12671 		ld	b, 0
 12671 		ld	b, 0
 12672 		ex	de, hl
 12672 		ex	de, hl
 12673 		add	hl, bc
 12673 		add	hl, bc
 12674 		call	Page0Call_23FC
 12674 		call	Page0Call_23FC
 12675 		jr	nc, p7Dloc_7DE6
 12675 		jr	nc, p7Dloc_7DE6
 12676 		inc	a
 12676 		inc	a
 12677 
 12677 
 12678 p7Dloc_7DE6:				; CODE XREF: p7Dsub_7D67+7Cj
 12678 p7Dloc_7DE6:
 12679 		ld	b, a
 12679 		ld	b, a
 12680 		ex	de, hl
 12680 		ex	de, hl
 12681 		call	p7Dsub_4565
 12681 		call	p7Dsub_4565
 12682 		cp	b
 12682 		cp	b
 12683 		jr	c, p7Dloc_7E0D
 12683 		jr	c, p7Dloc_7E0D
 12688 		dec	hl
 12688 		dec	hl
 12689 		call	CpHLDE
 12689 		call	CpHLDE
 12690 		ex	de, hl
 12690 		ex	de, hl
 12691 		jr	nc, p7Dloc_7E0D
 12691 		jr	nc, p7Dloc_7E0D
 12692 
 12692 
 12693 p7Dloc_7DFC:				; CODE XREF: p7Dsub_7D67+87j
 12693 p7Dloc_7DFC:
 12694 		ld	de, (iMathPtr5)
 12694 		ld	de, (iMathPtr5)
 12695 		ld	hl, pagedBuf
 12695 		ld	hl, pagedBuf
 12696 		ld	b, 0
 12696 		ld	b, 0
 12697 		ld	a, (arcInfo)
 12697 		ld	a, (arcInfo)
 12698 		rst	28h
 12698 		rst	28h
 12700 		.dw 80C9h
 12700 		.dw 80C9h
 12701 ; ---------------------------------------------------------------------------
 12701 ; ---------------------------------------------------------------------------
 12702 		jr	p7Dloc_7E0E
 12702 		jr	p7Dloc_7E0E
 12703 ; ---------------------------------------------------------------------------
 12703 ; ---------------------------------------------------------------------------
 12704 
 12704 
 12705 p7Dloc_7E0D:				; CODE XREF: p7Dsub_7D67+39j p7Dsub_7D67+3Dj ...
 12705 p7Dloc_7E0D:
 12706 		nop
 12706 		nop
 12707 
 12707 
 12708 p7Dloc_7E0E:				; CODE XREF: p7Dsub_7D67+A4j
 12708 p7Dloc_7E0E:
 12709 		call	relockFlashBack
 12709 		call	relockFlashBack
 12710 		ld	(Abackup), a
 12710 		ld	(Abackup), a
 12711 		pop	af
 12711 		pop	af
 12712 		jp	po, p7Dloc_7E19
 12712 		jp	po, p7Dloc_7E19
 12713 		ei
 12713 		ei
 12714 
 12714 
 12715 p7Dloc_7E19:				; CODE XREF: p7Dsub_7D67+AEj
 12715 p7Dloc_7E19:
 12716 		ld	a, (Abackup)
 12716 		ld	a, (Abackup)
 12717 		ld	(iMathPtr5), de
 12717 		ld	(iMathPtr5), de
 12718 		pop	hl
 12718 		pop	hl
 12719 		or	a
 12719 		or	a
 12720 		sbc	hl, de
 12720 		sbc	hl, de
 12721 		jr	c, p7Dloc_7E2D
 12721 		jr	c, p7Dloc_7E2D
 12722 		ld	a, (arcInfo)
 12722 		ld	a, (arcInfo)
 12723 		inc	a
 12723 		inc	a
 12724 		ld	(arcInfo), a
 12724 		ld	(arcInfo), a
 12725 
 12725 
 12726 p7Dloc_7E2D:				; CODE XREF: p7Dsub_7D67+BDj
 12726 p7Dloc_7E2D:
 12727 		pop	hl
 12727 		pop	hl
 12728 		pop	de
 12728 		pop	de
 12729 		pop	bc
 12729 		pop	bc
 12730 		ret
 12730 		ret
 12731 ; End of function p7Dsub_7D67
 12731 ; End of function p7Dsub_7D67
 12732 
 12732 
 12733 ; ---------------------------------------------------------------------------
 12733 ; ---------------------------------------------------------------------------
 12734 
 12734 
 12735 p7Dloc_7E31:				; CODE XREF: seg001:719Ej seg001:7E3Dj
 12735 p7Dloc_7E31:
 12736 		ld	a, (hl)
 12736 		ld	a, (hl)
 12737 		inc	hl
 12737 		inc	hl
 12738 		push	hl
 12738 		push	hl
 12739 		push	bc
 12739 		push	bc
 12740 		call	p7Dsub_7E40
 12740 		call	p7Dsub_7E40
 12747 		ret
 12747 		ret
 12748 
 12748 
 12749 ; =============== S U B	R O U T	I N E =======================================
 12749 ; =============== S U B	R O U T	I N E =======================================
 12750 
 12750 
 12751 
 12751 
 12752 p7Dsub_7E40:				; CODE XREF: seg001:7E35p
 12752 p7Dsub_7E40:
 12753 		push	hl
 12753 		push	hl
 12754 		ld	hl, (pagedGetPtr)
 12754 		ld	hl, (pagedGetPtr)
 12755 		ld	(hl), a
 12755 		ld	(hl), a
 12756 		inc	hl
 12756 		inc	hl
 12757 		ld	(pagedGetPtr), hl
 12757 		ld	(pagedGetPtr), hl
 12764 		ret
 12764 		ret
 12765 ; End of function p7Dsub_7E40
 12765 ; End of function p7Dsub_7E40
 12766 
 12766 
 12767 ; ---------------------------------------------------------------------------
 12767 ; ---------------------------------------------------------------------------
 12768 
 12768 
 12769 p7Dloc_7E57:				; CODE XREF: seg001:7199j
 12769 p7Dloc_7E57:
 12770 		dec	hl
 12770 		dec	hl
 12771 		dec	hl
 12771 		dec	hl
 12772 		ld	a, (hl)
 12772 		ld	a, (hl)
 12773 		inc	hl
 12773 		inc	hl
 12774 		inc	hl
 12774 		inc	hl
 12776 		jr	c, p7Dloc_7E66
 12776 		jr	c, p7Dloc_7E66
 12777 		call	DelVarArc
 12777 		call	DelVarArc
 12778 		jp	Page0Call_2555
 12778 		jp	Page0Call_2555
 12779 ; ---------------------------------------------------------------------------
 12779 ; ---------------------------------------------------------------------------
 12780 
 12780 
 12781 p7Dloc_7E66:				; CODE XREF: seg001:7E5Ej
 12781 p7Dloc_7E66:
 12782 		ld	a, (OP1+1)
 12782 		ld	a, (OP1+1)
 12783 		cp	24h ; '$'
 12783 		cp	24h ; '$'
 12784 		jp	z, Page0Call_24B5
 12784 		jp	z, Page0Call_24B5
 12785 		call	Page0Call_2EE9
 12785 		call	Page0Call_2EE9
 12786 		jp	z, Page0Call_24B5
 12786 		jp	z, Page0Call_24B5
 12797 		ld	hl, pagedBuf
 12797 		ld	hl, pagedBuf
 12798 		ld	(pagedGetPtr), hl
 12798 		ld	(pagedGetPtr), hl
 12799 		pop	hl
 12799 		pop	hl
 12800 		ret
 12800 		ret
 12801 
 12801 
 12802 p7Dloc_7E8D:				; CODE XREF: seg001:71A8j
 12802 p7Dloc_7E8D:
 12803 		call	Page0Call_2C91
 12803 		call	Page0Call_2C91
 12804 		ret
 12804 		ret
 12805 
 12805 
 12806 p7Dloc_7E91:				; CODE XREF: seg001:71ADj
 12806 p7Dloc_7E91:
 12807 		call	page0_1F38
 12807 		call	page0_1F38
 12808 		ret
 12808 		ret
 12809 
 12809 
 12810 .org	$7FFF
 12810 .org	$7FFF
 12811 		.db  5Dh	; ]
 12811 		.db  5Dh	; ]