source/page7D/initial.asm
changeset 8 795326a8c258
parent 7 89b82476a75f
child 14 d64a3b33607d
equal deleted inserted replaced
7:89b82476a75f 8:795326a8c258
     1 Page7D_2CAC:
     1 Page7D_2CAC:
     2 		push	af
     2 		push	af
     3 		ld	a, 1
     3 		ld		a, 1
     4 		nop
     4 		nop
     5 		di
     5 		di
     6 		nop
     6 		nop
     7 		nop
     7 		nop
     8 		im	1
     8 		im	1
     9 		di
     9 		di
    10 		out	(14h), a
    10 		out		(14h), a
    11 		di
    11 		di
    12 		call	checkForFlashTrickery
    12 		call	checkForFlashTrickery
    13 		pop	af
    13 		pop		af
    14 		call	p7Dsub_6FAC
    14 		call	p7Dsub_6FAC
    15 		jp	c, relockFlashBack
    15 		jp		c, relockFlashBack
    16 		push	af
    16 		push	af
    17 		call	p7Dsub_576D
    17 		call	p7Dsub_576D
    18 		pop	af
    18 		pop		af
    19 		call	Page7D_2BE6
    19 		call	Page7D_2BE6
    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:
    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
    31 		nop
    31 		nop
    32 		im	1
    32 		im	1
    33 		di
    33 		di
    34 		out	(14h), a
    34 		out		(14h), a
    35 		di
    35 		di
    36 		call	checkForFlashTrickery
    36 		call	checkForFlashTrickery
    37 		pop	af
    37 		pop		af
    38 		call	p7Dsub_6FAC
    38 		call	p7Dsub_6FAC
    39 		jp	c, relockFlashBack
    39 		jp		c, relockFlashBack
    40 		call	Page7D_2BE6
    40 		call	Page7D_2BE6
    41 		jp	relockFlashBack
    41 		jp		relockFlashBack
    42 ; End of function DeleteApp
    42 ; End of function DeleteApp
    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:
    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 ; ---------------------------------------------------------------------------
    54 		.dw 8051h
    54 		.dw		8051h
    55 ; ---------------------------------------------------------------------------
    55 ; ---------------------------------------------------------------------------
    56 		cp	0FFh
    56 		cp		0FFh
    57 		ld	a, b
    57 		ld		a, b
    58 		jr	z, locret_4077
    58 		jr		z, locret_4077
    59 		call	FindAppNumPages
    59 		call	FindAppNumPages
    60 		ld	b, c
    60 		ld		b, c
    61 		push	af
    61 		push	af
    62 		ld	a, c
    62 		ld		a, c
    63 		or	a
    63 		or		a
    64 		jr	z, p7Dloc_4078
    64 		jr		z, p7Dloc_4078
    65 		res	6, (iy+24h)
    65 		res		6, (iy+24h)
    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:
    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
    77 		rst	28h
    77 		rst		28h
    78 ; ---------------------------------------------------------------------------
    78 ; ---------------------------------------------------------------------------
    79 		.dw 80C6h
    79 		.dw		80C6h
    80 ; ---------------------------------------------------------------------------
    80 ; ---------------------------------------------------------------------------
    81 		pop	bc
    81 		pop		bc
    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:
    87 locret_4077:
    88 		ret
    88 		ret
    89 ; ---------------------------------------------------------------------------
    89 ; ---------------------------------------------------------------------------
    90 
    90 
    91 p7Dloc_4078:
    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 =======================================
   100 Page7D_2BB0:
   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
   106 		ret
   106 		ret
   107 ; End of function Page7D_2BB0
   107 ; End of function Page7D_2BB0
   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 =======================================
   117 		push	hl
   117 		push	hl
   118 		push	de
   118 		push	de
   119 		push	af
   119 		push	af
   120 
   120 
   121 p7Dloc_408A:
   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
   127 		ld	b, a
   127 		ld		b, a
   128 		pop	af
   128 		pop		af
   129 		push	af
   129 		push	af
   130 		rst	28h
   130 		rst		28h
   131 ; ---------------------------------------------------------------------------
   131 ; ---------------------------------------------------------------------------
   132 		.dw 8021h
   132 		.dw		8021h
   133 ; ---------------------------------------------------------------------------
   133 ; ---------------------------------------------------------------------------
   134 		pop	af
   134 		pop		af
   135 		pop	bc
   135 		pop		bc
   136 		pop	hl
   136 		pop		hl
   137 		inc	hl
   137 		inc		hl
   138 		push	af
   138 		push	af
   139 		dec	bc
   139 		dec		bc
   140 		ld	a, b
   140 		ld		a, b
   141 		or	c
   141 		or		c
   142 		jr	nz, p7Dloc_408A
   142 		jr		nz, p7Dloc_408A
   143 		pop	af
   143 		pop		af
   144 		pop	de
   144 		pop		de
   145 		pop	hl
   145 		pop		hl
   146 		pop	bc
   146 		pop		bc
   147 		ret
   147 		ret
   148 ; End of function p7Dsub_4083
   148 ; End of function p7Dsub_4083
   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 =======================================
   161 		push	hl
   161 		push	hl
   162 		push	de
   162 		push	de
   163 		push	af
   163 		push	af
   164 
   164 
   165 p7Dloc_40AD:
   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
   171 ; ---------------------------------------------------------------------------
   171 ; ---------------------------------------------------------------------------
   172 		.dw 8051h
   172 		.dw		8051h
   173 ; ---------------------------------------------------------------------------
   173 ; ---------------------------------------------------------------------------
   174 		ld	b, a
   174 		ld		b, a
   175 		pop	af
   175 		pop		af
   176 		push	af
   176 		push	af
   177 		ld	a, (OP2)
   177 		ld		a, (OP2)
   178 		rst	28h
   178 		rst		28h
   179 ; ---------------------------------------------------------------------------
   179 ; ---------------------------------------------------------------------------
   180 		.dw 8021h
   180 		.dw		8021h
   181 ; ---------------------------------------------------------------------------
   181 ; ---------------------------------------------------------------------------
   182 		pop	af
   182 		pop		af
   183 		pop	bc
   183 		pop		bc
   184 		pop	hl
   184 		pop		hl
   185 		inc	hl
   185 		inc		hl
   186 		push	af
   186 		push	af
   187 		dec	bc
   187 		dec		bc
   188 		ld	a, b
   188 		ld		a, b
   189 		or	c
   189 		or		c
   190 		jr	nz, p7Dloc_40AD
   190 		jr		nz, p7Dloc_40AD
   191 		pop	af
   191 		pop		af
   192 		pop	de
   192 		pop		de
   193 		pop	hl
   193 		pop		hl
   194 		pop	bc
   194 		pop		bc
   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:
   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
   206 		call	p7Dsub_4566
   206 		call	p7Dsub_4566
   207 		cp	0FFh
   207 		cp		0FFh
   208 		jr	nz, p7Dloc_40E5
   208 		jr		nz, p7Dloc_40E5
   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:
   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
   220 		call	p7Dsub_4574
   220 		call	p7Dsub_4574
   221 		add	hl, bc
   221 		add		hl, bc
   222 		pop	bc
   222 		pop		bc
   223 		sbc	hl, bc
   223 		sbc		hl, bc
   224 		push	hl
   224 		push	hl
   225 		pop	bc
   225 		pop		bc
   226 		call	p7Dsub_4894
   226 		call	p7Dsub_4894
   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:
   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 ; ---------------------------------------------------------------------------
   238 		rst	28h
   238 		rst		28h
   239 ; ---------------------------------------------------------------------------
   239 ; ---------------------------------------------------------------------------
   240 		.dw 8057h
   240 		.dw		8057h
   241 ; ---------------------------------------------------------------------------
   241 ; ---------------------------------------------------------------------------
   242 		push	hl
   242 		push	hl
   243 		push	hl
   243 		push	hl
   244 		call	Page7D_2BEC
   244 		call	Page7D_2BEC
   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:
   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
   256 		jp	z, p7Dloc_417B
   256 		jp		z, p7Dloc_417B
   257 		push	hl
   257 		push	hl
   258 		push	bc
   258 		push	bc
   259 		push	hl
   259 		push	hl
   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:
   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
   271 		pop	bc
   271 		pop		bc
   272 		pop	hl
   272 		pop		hl
   273 		push	hl
   273 		push	hl
   274 		ld	(arcInfo), de
   274 		ld		(arcInfo), de
   275 		call	p7Dsub_4574
   275 		call	p7Dsub_4574
   276 		pop	de
   276 		pop		de
   277 		push	de
   277 		push	de
   278 		or	a
   278 		or		a
   279 		sbc	hl, de
   279 		sbc		hl, de
   280 		ld	a, l
   280 		ld		a, l
   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:
   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:
   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
   303 		cp	2
   303 		cp		2
   304 		jr	nz, p7Dloc_4178
   304 		jr		nz, p7Dloc_4178
   305 		push	de
   305 		push	de
   306 		push	hl
   306 		push	hl
   307 		call	p7Dsub_4574
   307 		call	p7Dsub_4574
   308 		pop	de
   308 		pop		de
   309 		sbc	hl, de
   309 		sbc		hl, de
   310 		adc	hl, bc
   310 		adc	hl, bc
   311 		push	hl
   311 		push	hl
   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:
   317 p7Dloc_4178:
   318 		jp	p7Dloc_4117
   318 		jp		p7Dloc_4117
   319 ; ---------------------------------------------------------------------------
   319 ; ---------------------------------------------------------------------------
   320 
   320 
   321 p7Dloc_417B:
   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
   327 		jr	z, p7Dloc_41DF
   327 		jr		z, p7Dloc_41DF
   328 		cp	1
   328 		cp		1
   329 		jr	z, p7Dloc_41A4
   329 		jr		z, p7Dloc_41A4
   330 		cp	3
   330 		cp		3
   331 		jr	z, p7Dloc_41B2
   331 		jr		z, p7Dloc_41B2
   332 		cp	4
   332 		cp		4
   333 		jr	z, p7Dloc_41C0
   333 		jr		z, p7Dloc_41C0
   334 		cp	5
   334 		cp		5
   335 		jr	z, p7Dloc_41D1
   335 		jr		z, p7Dloc_41D1
   336 		call	p7Dsub_427F
   336 		call	p7Dsub_427F
   337 		call	p7Dsub_4211
   337 		call	p7Dsub_4211
   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:
   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:
   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:
   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:
   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:
   376 p7Dloc_41DF:
   377 		; Page7D_2B62+B8j
   377 		; Page7D_2B62+B8j
   378 		call	p7Dsub_427F
   378 		call	p7Dsub_427F
   379 
   379 
   380 p7Dloc_41E2:
   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
   386 		pop	hl
   386 		pop		hl
   387 		ex	de, hl
   387 		ex		de, hl
   388 		call	p7Dsub_4894
   388 		call	p7Dsub_4894
   389 		ex	de, hl
   389 		ex		de, hl
   390 		push	de
   390 		push	de
   391 		call	p7Dsub_457C
   391 		call	p7Dsub_457C
   392 		pop	de
   392 		pop		de
   393 		ld	b, 0
   393 		ld		b, 0
   394 		call	p7Dsub_456D
   394 		call	p7Dsub_456D
   395 		ld	bc, (OP6)
   395 		ld		bc, (OP6)
   396 		ld	a, c
   396 		ld		a, c
   397 		cp	1
   397 		cp		1
   398 		jr	nz, p7Dloc_420D
   398 		jr		nz, p7Dloc_420D
   399 		call	p7Dsub_4894
   399 		call	p7Dsub_4894
   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:
   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 =======================================
   423 
   423 
   424 
   424 
   425 p7Dsub_4214:
   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:
   430 p7Dloc_421A:
   431 		ld	de, tempSwapArea
   431 		ld		de, tempSwapArea
   432 
   432 
   433 p7Dloc_421D:
   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
   439 ; End of function p7Dsub_4214
   439 ; End of function p7Dsub_4214
   440 
   440 
   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:
   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:
   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:
   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:
   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:
   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:
   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 
   499 
   499 
   500 
   500 
   501 p7Dsub_4253:
   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
   507 ; End of function p7Dsub_4253
   507 ; End of function p7Dsub_4253
   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 
   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:
   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:
   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:
   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 
   561 
   561 
   562 
   562 
   563 p7Dsub_427F:
   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:
   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:
   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
   591 ; End of function p7Dsub_428F
   591 ; End of function p7Dsub_428F
   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:
   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:
   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
   613 ; End of function p7Dsub_42A2
   613 ; End of function p7Dsub_42A2
   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 
   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
   625 		inc	a
   625 		inc		a
   626 		ld	de, OP1
   626 		ld		de, OP1
   627 		ld	bc, 1
   627 		ld		bc, 1
   628 		call	FlashToRam
   628 		call	FlashToRam
   629 		pop	de
   629 		pop		de
   630 		push	de
   630 		push	de
   631 		ld	hl, OP1
   631 		ld		hl, OP1
   632 		call	p7Dsub_7700
   632 		call	p7Dsub_7700
   633 		call	p7Dsub_7663
   633 		call	p7Dsub_7663
   634 		pop	de
   634 		pop		de
   635 		pop	hl
   635 		pop		hl
   636 		inc	hl
   636 		inc		hl
   637 		inc	de
   637 		inc		de
   638 		pop	bc
   638 		pop		bc
   639 		dec	bc
   639 		dec		bc
   640 		ld	a, c
   640 		ld		a, c
   641 		or	b
   641 		or		b
   642 		jr	nz, p7Dsub_42AE
   642 		jr		nz, p7Dsub_42AE
   643 ; End of function p7Dsub_42AE
   643 ; End of function p7Dsub_42AE
   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:
   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
   655 ; ---------------------------------------------------------------------------
   655 ; ---------------------------------------------------------------------------
   656 		pop	af
   656 		pop		af
   657 		call	Page7D_2C40
   657 		call	Page7D_2C40
   658 		ret
   658 		ret
   659 ; End of function p7Dsub_42D3
   659 ; End of function p7Dsub_42D3
   660 
   660 
   661 
   661 
   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:
   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
   681 		call	p7Dsub_424C
   681 		call	p7Dsub_424C
   682 		pop	de
   682 		pop		de
   683 		push	de
   683 		push	de
   684 		ld	hl, OP1
   684 		ld		hl, OP1
   685 		call	FindSwapSector
   685 		call	FindSwapSector
   686 		inc	a
   686 		inc		a
   687 		ld	bc, 1
   687 		ld		bc, 1
   688 		rst	28h
   688 		rst		28h
   689 ; ---------------------------------------------------------------------------
   689 ; ---------------------------------------------------------------------------
   690 		.dw 8087h
   690 		.dw		8087h
   691 ; ---------------------------------------------------------------------------
   691 ; ---------------------------------------------------------------------------
   692 		pop	de
   692 		pop		de
   693 		pop	hl
   693 		pop		hl
   694 		inc	hl
   694 		inc		hl
   695 		inc	de
   695 		inc		de
   696 		pop	bc
   696 		pop		bc
   697 		dec	bc
   697 		dec		bc
   698 		ld	a, c
   698 		ld		a, c
   699 		or	b
   699 		or		b
   700 		jr	nz, p7Dloc_42E8
   700 		jr		nz, p7Dloc_42E8
   701 		ret
   701 		ret
   702 ; End of function p7Dsub_42DF
   702 ; End of function p7Dsub_42DF
   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:
   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
   714 ; ---------------------------------------------------------------------------
   714 ; ---------------------------------------------------------------------------
   715 		.dw 802Dh
   715 		.dw		802Dh
   716 ; ---------------------------------------------------------------------------
   716 ; ---------------------------------------------------------------------------
   717 		push	hl
   717 		push	hl
   718 		rst	28h
   718 		rst		28h
   719 ; ---------------------------------------------------------------------------
   719 ; ---------------------------------------------------------------------------
   720 		.dw 8057h
   720 		.dw		8057h
   721 ; ---------------------------------------------------------------------------
   721 ; ---------------------------------------------------------------------------
   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:
   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
   733 		sbc	hl, bc
   733 		sbc		hl, bc
   734 		jr	c, p7Dloc_433D
   734 		jr		c, p7Dloc_433D
   735 		rst	28h
   735 		rst		28h
   736 ; ---------------------------------------------------------------------------
   736 ; ---------------------------------------------------------------------------
   737 		.dw 802Dh
   737 		.dw		802Dh
   738 ; ---------------------------------------------------------------------------
   738 ; ---------------------------------------------------------------------------
   739 		pop	de
   739 		pop		de
   740 		ex	de, hl
   740 		ex		de, hl
   741 		pop	bc
   741 		pop		bc
   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:
   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 
   753 ; ---------------------------------------------------------------------------
   753 ; ---------------------------------------------------------------------------
   754 
   754 
   758 		call	p7Dsub_4574
   758 		call	p7Dsub_4574
   759 		push	bc
   759 		push	bc
   760 		push	hl
   760 		push	hl
   761 		call	p7Dsub_4894
   761 		call	p7Dsub_4894
   762 		push	hl
   762 		push	hl
   763 		pop	bc
   763 		pop		bc
   764 		pop	hl
   764 		pop		hl
   765 		sbc	hl, bc
   765 		sbc		hl, bc
   766 		push	hl
   766 		push	hl
   767 		pop	bc
   767 		pop		bc
   768 		pop	hl
   768 		pop		hl
   769 		adc	hl, bc
   769 		adc	hl, bc
   770 		push	hl
   770 		push	hl
   771 		pop	bc
   771 		pop		bc
   772 		call	p7Dsub_4894
   772 		call	p7Dsub_4894
   773 		rst	28h
   773 		rst		28h
   774 ; ---------------------------------------------------------------------------
   774 ; ---------------------------------------------------------------------------
   775 		.dw 808Dh
   775 		.dw		808Dh
   776 ; ---------------------------------------------------------------------------
   776 ; ---------------------------------------------------------------------------
   777 
   777 
   778 p7Dloc_435E:
   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
   784 		ld	bc, 1
   784 		ld		bc, 1
   785 		ld	hl, tempSwapArea
   785 		ld		hl, tempSwapArea
   786 		rst	28h
   786 		rst		28h
   787 ; ---------------------------------------------------------------------------
   787 ; ---------------------------------------------------------------------------
   788 		.dw 8090h
   788 		.dw		8090h
   789 ; ---------------------------------------------------------------------------
   789 ; ---------------------------------------------------------------------------
   790 		pop	bc
   790 		pop		bc
   791 		pop	hl
   791 		pop		hl
   792 		inc	hl
   792 		inc		hl
   793 		dec	bc
   793 		dec		bc
   794 		ld	a, b
   794 		ld		a, b
   795 		or	c
   795 		or		c
   796 		jr	nz, p7Dloc_435E
   796 		jr		nz, p7Dloc_435E
   797 		rst	28h
   797 		rst		28h
   798 ; ---------------------------------------------------------------------------
   798 ; ---------------------------------------------------------------------------
   799 		.dw 8018h
   799 		.dw		8018h
   800 ; ---------------------------------------------------------------------------
   800 ; ---------------------------------------------------------------------------
   801 		call	p7Dsub_4894
   801 		call	p7Dsub_4894
   802 		call	p7Dsub_7700
   802 		call	p7Dsub_7700
   803 		call	p7Dsub_55CE
   803 		call	p7Dsub_55CE
   804 		jp	nz, p7Dloc_43EC
   804 		jp		nz, p7Dloc_43EC
   805 		ld	hl, tempSwapArea
   805 		ld		hl, tempSwapArea
   806 		push	af
   806 		push	af
   807 		push	bc
   807 		push	bc
   808 		push	de
   808 		push	de
   809 		push	hl
   809 		push	hl
   810 		call	p7Dsub_4894
   810 		call	p7Dsub_4894
   811 		inc	hl
   811 		inc		hl
   812 		call	p7Dsub_4566
   812 		call	p7Dsub_4566
   813 		and	0F0h ; '�'
   813 		and		0F0h ; '�'
   814 		ld	hl, 310h
   814 		ld		hl, 310h
   815 		cp	l
   815 		cp		l
   816 		jr	nz, p7Dloc_43B9
   816 		jr		nz, p7Dloc_43B9
   817 		call	p7Dsub_7700
   817 		call	p7Dsub_7700
   818 		call	p7Dsub_762A
   818 		call	p7Dsub_762A
   819 		call	p7Dsub_4442
   819 		call	p7Dsub_4442
   820 		jr	nz, p7Dloc_43DA
   820 		jr		nz, p7Dloc_43DA
   821 		adc	hl, bc
   821 		adc	hl, bc
   822 		call	p7Dsub_7700
   822 		call	p7Dsub_7700
   823 		ld	de, 830h
   823 		ld		de, 830h
   824 		rst	28h
   824 		rst		28h
   825 ; ---------------------------------------------------------------------------
   825 ; ---------------------------------------------------------------------------
   826 		.dw 8030h
   826 		.dw		8030h
   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:
   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:
   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:
   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:
   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
   868 ; ---------------------------------------------------------------------------
   868 ; ---------------------------------------------------------------------------
   869 ; START	OF FUNCTION CHUNK FOR p7Dsub_4442
   869 ; START	OF FUNCTION CHUNK FOR p7Dsub_4442
   870 		.dw 801Bh
   870 		.dw		801Bh
   871 ; ---------------------------------------------------------------------------
   871 ; ---------------------------------------------------------------------------
   872 		ld	de, OP1
   872 		ld		de, OP1
   873 		ld	hl, 8291h
   873 		ld		hl, 8291h
   874 		rst	28h
   874 		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:
   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:
   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:
   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
   903 		rst	28h
   903 		rst		28h
   904 ; ---------------------------------------------------------------------------
   904 ; ---------------------------------------------------------------------------
   905 		.dw 805Ah
   905 		.dw		805Ah
   906 ; ---------------------------------------------------------------------------
   906 ; ---------------------------------------------------------------------------
   907 		add	hl, bc
   907 		add		hl, bc
   908 		pop	af
   908 		pop		af
   909 		push	af
   909 		push	af
   910 		rst	28h
   910 		rst		28h
   911 ; ---------------------------------------------------------------------------
   911 ; ---------------------------------------------------------------------------
   912 		.dw 8051h
   912 		.dw		8051h
   913 ; ---------------------------------------------------------------------------
   913 ; ---------------------------------------------------------------------------
   914 		ld	(unk_83E6), a
   914 		ld		(unk_83E6), a
   915 		inc	hl
   915 		inc		hl
   916 		pop	af
   916 		pop		af
   917 		rst	28h
   917 		rst		28h
   918 ; ---------------------------------------------------------------------------
   918 ; ---------------------------------------------------------------------------
   919 		.dw 8051h
   919 		.dw		8051h
   920 ; ---------------------------------------------------------------------------
   920 ; ---------------------------------------------------------------------------
   921 		ld	(unk_83E7), a
   921 		ld		(unk_83E7), a
   922 		pop	af
   922 		pop		af
   923 		rst	28h
   923 		rst		28h
   924 ; ---------------------------------------------------------------------------
   924 ; ---------------------------------------------------------------------------
   925 		.dw 809Fh
   925 		.dw		809Fh
   926 ; ---------------------------------------------------------------------------
   926 ; ---------------------------------------------------------------------------
   927 		ld	hl, tempSwapArea
   927 		ld		hl, tempSwapArea
   928 		rst	28h
   928 		rst		28h
   929 ; ---------------------------------------------------------------------------
   929 ; ---------------------------------------------------------------------------
   930 		.dw 80A2h
   930 		.dw		80A2h
   931 ; ---------------------------------------------------------------------------
   931 ; ---------------------------------------------------------------------------
   932 		rst	28h
   932 		rst		28h
   933 ; ---------------------------------------------------------------------------
   933 ; ---------------------------------------------------------------------------
   934 		.dw 80A5h
   934 		.dw		80A5h
   935 ; ---------------------------------------------------------------------------
   935 ; ---------------------------------------------------------------------------
   936 		ld	de, MD5Buffer
   936 		ld		de, MD5Buffer
   937 		ld	hl, OP1
   937 		ld		hl, OP1
   938 		rst	28h
   938 		rst		28h
   939 ; ---------------------------------------------------------------------------
   939 ; ---------------------------------------------------------------------------
   940 		.dw 801Eh
   940 		.dw		801Eh
   941 ; ---------------------------------------------------------------------------
   941 ; ---------------------------------------------------------------------------
   942 		ret
   942 		ret
   943 ; ---------------------------------------------------------------------------
   943 ; ---------------------------------------------------------------------------
   944 
   944 
   945 P1orAret:
   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:
   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
   959 ; ---------------------------------------------------------------------------
   959 ; ---------------------------------------------------------------------------
   960 		.dw 805Dh
   960 		.dw		805Dh
   961 ; ---------------------------------------------------------------------------
   961 ; ---------------------------------------------------------------------------
   962 		jr	nz, locret_4441
   962 		jr		nz, locret_4441
   963 		inc	hl
   963 		inc		hl
   964 		ld	a, c
   964 		ld		a, c
   965 		push	de
   965 		push	de
   966 		rst	28h
   966 		rst		28h
   967 ; ---------------------------------------------------------------------------
   967 ; ---------------------------------------------------------------------------
   968 		.dw 805Ah
   968 		.dw		805Ah
   969 ; ---------------------------------------------------------------------------
   969 ; ---------------------------------------------------------------------------
   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:
   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 =======================================
   983 
   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:
   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
  1000 		call	p7Dsub_7700
  1000 		call	p7Dsub_7700
  1001 		rst	28h
  1001 		rst		28h
  1002 ; ---------------------------------------------------------------------------
  1002 ; ---------------------------------------------------------------------------
  1003 		.dw 8030h
  1003 		.dw		8030h
  1004 ; ---------------------------------------------------------------------------
  1004 ; ---------------------------------------------------------------------------
  1005 		pop	de
  1005 		pop		de
  1006 		ld	a, c
  1006 		ld		a, c
  1007 		pop	bc
  1007 		pop		bc
  1008 		jr	nz, p7Dloc_4489
  1008 		jr		nz, p7Dloc_4489
  1009 		cp	c
  1009 		cp		c
  1010 		push	hl
  1010 		push	hl
  1011 		ld	c, a
  1011 		ld		c, a
  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:
  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
  1023 		djnz	p7Dloc_446D
  1023 		djnz	p7Dloc_446D
  1024 		pop	bc
  1024 		pop		bc
  1025 		pop	hl
  1025 		pop		hl
  1026 		pop	bc
  1026 		pop		bc
  1027 		pop	de
  1027 		pop		de
  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:
  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:
  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
  1048 ; End of function p7Dsub_4442
  1048 ; End of function p7Dsub_4442
  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 =======================================
  1053 
  1053 
  1054 p7Dsub_4490:
  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
  1060 		ret
  1060 		ret
  1061 ; End of function p7Dsub_4490
  1061 ; End of function p7Dsub_4490
  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 =======================================
  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
  1073 		jr	nz, p7Dloc_44B8
  1073 		jr		nz, p7Dloc_44B8
  1074 		call	p7Dsub_7700
  1074 		call	p7Dsub_7700
  1075 		push	bc
  1075 		push	bc
  1076 		call	p7Dsub_4873
  1076 		call	p7Dsub_4873
  1077 		push	bc
  1077 		push	bc
  1078 		pop	hl
  1078 		pop		hl
  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:
  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:
  1090 p7Dloc_44BE:
  1091 		ld	a, 0FFh
  1091 		ld		a, 0FFh
  1092 		bit	7, a
  1092 		bit		7, a
  1093 
  1093 
  1094 locret_44C2:
  1094 locret_44C2:
  1095 		ret
  1095 		ret
  1096 ; End of function p7Dsub_4498
  1096 ; End of function p7Dsub_4498
  1097 
  1097 
  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
  1106 		ld	de, 0A10h
  1106 		ld		de, 0A10h
  1107 		rst	28h
  1107 		rst		28h
  1108 ; ---------------------------------------------------------------------------
  1108 ; ---------------------------------------------------------------------------
  1109 		.dw 8027h
  1109 		.dw		8027h
  1110 ; ---------------------------------------------------------------------------
  1110 ; ---------------------------------------------------------------------------
  1111 		push	de
  1111 		push	de
  1112 		call	p7Dsub_4574
  1112 		call	p7Dsub_4574
  1113 		pop	de
  1113 		pop		de
  1114 		ld	a, c
  1114 		ld		a, c
  1115 		pop	bc
  1115 		pop		bc
  1116 		cp	c
  1116 		cp		c
  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:
  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
  1128 		cp	c
  1128 		cp		c
  1129 		jr	nz, locret_44F8
  1129 		jr		nz, locret_44F8
  1130 		dec	b
  1130 		dec		b
  1131 		ld	a, b
  1131 		ld		a, b
  1132 		cp	0
  1132 		cp		0
  1133 		jr	z, locret_44F8
  1133 		jr		z, locret_44F8
  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:
  1139 p7Dloc_44F7:
  1140 		pop	bc
  1140 		pop		bc
  1141 
  1141 
  1142 locret_44F8:
  1142 locret_44F8:
  1143 		ret
  1143 		ret
  1144 ; ---------------------------------------------------------------------------
  1144 ; ---------------------------------------------------------------------------
  1145 
  1145 
  1146 Page7D_2BFE:
  1146 Page7D_2BFE:
  1147 		push	af
  1147 		push	af
  1148 		ld	a, 1
  1148 		ld		a, 1
  1149 		nop
  1149 		nop
  1150 		di
  1150 		di
  1151 		nop
  1151 		nop
  1152 		nop
  1152 		nop
  1153 		im	1
  1153 		im	1
  1154 		di
  1154 		di
  1155 		out	(14h), a
  1155 		out		(14h), a
  1156 		di
  1156 		di
  1157 		call	checkForFlashTrickery
  1157 		call	checkForFlashTrickery
  1158 		pop	af
  1158 		pop		af
  1159 		call	p7Dsub_7700
  1159 		call	p7Dsub_7700
  1160 		call	p7Dsub_4894
  1160 		call	p7Dsub_4894
  1161 		call	p7Dsub_4574
  1161 		call	p7Dsub_4574
  1162 		call	p7Dsub_7700
  1162 		call	p7Dsub_7700
  1163 		call	p7Dsub_50C5
  1163 		call	p7Dsub_50C5
  1164 		jr	nz, p7Dloc_4530
  1164 		jr		nz, p7Dloc_4530
  1165 		ld	de, 320h
  1165 		ld		de, 320h
  1166 		rst	28h
  1166 		rst		28h
  1167 ; ---------------------------------------------------------------------------
  1167 ; ---------------------------------------------------------------------------
  1168 		.dw 8027h
  1168 		.dw		8027h
  1169 ; ---------------------------------------------------------------------------
  1169 ; ---------------------------------------------------------------------------
  1170 		jr	nz, p7Dloc_4529
  1170 		jr		nz, p7Dloc_4529
  1171 		call	p7Dsub_7700
  1171 		call	p7Dsub_7700
  1172 		rst	28h
  1172 		rst		28h
  1173 ; ---------------------------------------------------------------------------
  1173 ; ---------------------------------------------------------------------------
  1174 		.dw 802Ah
  1174 		.dw		802Ah
  1175 ; ---------------------------------------------------------------------------
  1175 ; ---------------------------------------------------------------------------
  1176 
  1176 
  1177 p7Dloc_4529:
  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:
  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:
  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
  1194 		ld	(unk_843B), a
  1194 		ld		(unk_843B), a
  1195 		call	NZIf83Plus
  1195 		call	NZIf83Plus
  1196 		ret	nz
  1196 		ret		nz
  1197 		inc	hl
  1197 		inc		hl
  1198 		call	p7Dsub_7700
  1198 		call	p7Dsub_7700
  1199 		ld	bc, 0Bh
  1199 		ld		bc, 0Bh
  1200 		ld	de, 9C9Eh
  1200 		ld		de, 9C9Eh
  1201 		call	FlashToRam
  1201 		call	FlashToRam
  1202 		ld	hl, 9CA8h
  1202 		ld		hl, 9CA8h
  1203 		ld	a, 0FEh	; '�'
  1203 		ld		a, 0FEh	; '�'
  1204 		or	(hl)
  1204 		or		(hl)
  1205 		ld	(hl), a
  1205 		ld		(hl), a
  1206 		ret
  1206 		ret
  1207 ; End of function p7Dsub_4533
  1207 ; End of function p7Dsub_4533
  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:
  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
  1219 ; End of function p7Dsub_455C
  1219 ; End of function p7Dsub_455C
  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:
  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 
  1242 
  1242 
  1243 
  1243 
  1244 p7Dsub_456D:
  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
  1250 ; ---------------------------------------------------------------------------
  1250 ; ---------------------------------------------------------------------------
  1251 		ret
  1251 		ret
  1252 ; End of function p7Dsub_456D
  1252 ; End of function p7Dsub_456D
  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:
  1258 p7Dsub_4574:
  1259 		; Page7D_2B62+25p ...
  1259 		; Page7D_2B62+25p ...
  1260 		inc	hl
  1260 		inc		hl
  1261 
  1261 
  1262 p7Dloc_4575:
  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 ; ---------------------------------------------------------------------------
  1268 		ret
  1268 		ret
  1269 ; End of function p7Dsub_4574
  1269 ; End of function p7Dsub_4574
  1270 
  1270 
  1271 
  1271 
  1273 
  1273 
  1274 
  1274 
  1275 p7Dsub_457C:
  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
  1281 ; ---------------------------------------------------------------------------
  1281 ; ---------------------------------------------------------------------------
  1282 		ret
  1282 		ret
  1283 ; End of function p7Dsub_457C
  1283 ; End of function p7Dsub_457C
  1284 
  1284 
  1285 ; ---------------------------------------------------------------------------
  1285 ; ---------------------------------------------------------------------------
  1286 
  1286 
  1287 Page7D_2BD4:
  1287 Page7D_2BD4:
  1288 		push	af
  1288 		push	af
  1289 		ld	a, 1
  1289 		ld		a, 1
  1290 		nop
  1290 		nop
  1291 		di
  1291 		di
  1292 		nop
  1292 		nop
  1293 		nop
  1293 		nop
  1294 		im	1
  1294 		im	1
  1295 		di
  1295 		di
  1296 		out	(14h), a
  1296 		out		(14h), a
  1297 		di
  1297 		di
  1298 		call	checkForFlashTrickery
  1298 		call	checkForFlashTrickery
  1299 		pop	af
  1299 		pop		af
  1300 		push	bc
  1300 		push	bc
  1301 		push	de
  1301 		push	de
  1302 		push	hl
  1302 		push	hl
  1303 		push	ix
  1303 		push	ix
  1304 		call	p7Dsub_4533
  1304 		call	p7Dsub_4533
  1305 		call	p7Dloc_44C3
  1305 		call	p7Dloc_44C3
  1306 		jr	nz, p7Dloc_45D9
  1306 		jr		nz, p7Dloc_45D9
  1307 		call	p7Dsub_4498
  1307 		call	p7Dsub_4498
  1308 		jr	nz, p7Dloc_45D9
  1308 		jr		nz, p7Dloc_45D9
  1309 		call	p7Dsub_50A8
  1309 		call	p7Dsub_50A8
  1310 
  1310 
  1311 p7Dloc_45A9:
  1311 p7Dloc_45A9:
  1312 		call	p7Dsub_4C8B
  1312 		call	p7Dsub_4C8B
  1313 		res	6, (iy+24h)
  1313 		res		6, (iy+24h)
  1314 		xor	a
  1314 		xor		a
  1315 		ld	(unk_9C87), a
  1315 		ld		(unk_9C87), a
  1316 		call	p7Dsub_70D1
  1316 		call	p7Dsub_70D1
  1317 		ld	bc, 0
  1317 		ld		bc, 0
  1318 		jr	nz, p7Dloc_45BF
  1318 		jr		nz, p7Dloc_45BF
  1319 		rst	28h
  1319 		rst		28h
  1320 ; ---------------------------------------------------------------------------
  1320 ; ---------------------------------------------------------------------------
  1321 		.dw 802Ah
  1321 		.dw		802Ah
  1322 ; ---------------------------------------------------------------------------
  1322 ; ---------------------------------------------------------------------------
  1323 
  1323 
  1324 p7Dloc_45BF:
  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:
  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:
  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 ; ---------------------------------------------------------------------------
  1348 		ld	a, 0FFh
  1348 		ld		a, 0FFh
  1349 		or	a
  1349 		or		a
  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:
  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
  1361 		ex	de, hl
  1361 		ex		de, hl
  1362 		call	p7Dsub_456D
  1362 		call	p7Dsub_456D
  1363 		ld	a, (unk_843B)
  1363 		ld		a, (unk_843B)
  1364 		ld	b, a
  1364 		ld		b, a
  1365 		call	p7Dsub_456D
  1365 		call	p7Dsub_456D
  1366 		call	NZIf83Plus
  1366 		call	NZIf83Plus
  1367 		jr	nz, p7Dloc_4609
  1367 		jr		nz, p7Dloc_4609
  1368 		call	p7Dsub_7700
  1368 		call	p7Dsub_7700
  1369 		ld	bc, 0Bh
  1369 		ld		bc, 0Bh
  1370 		ld	hl, 9C9Eh
  1370 		ld		hl, 9C9Eh
  1371 		rst	28h
  1371 		rst		28h
  1372 ; ---------------------------------------------------------------------------
  1372 ; ---------------------------------------------------------------------------
  1373 		.dw 8087h
  1373 		.dw		8087h
  1374 ; ---------------------------------------------------------------------------
  1374 ; ---------------------------------------------------------------------------
  1375 
  1375 
  1376 p7Dloc_4609:
  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:
  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
  1393 ; ---------------------------------------------------------------------------
  1393 ; ---------------------------------------------------------------------------
  1394 		jr	nz, p7Dloc_464B
  1394 		jr		nz, p7Dloc_464B
  1395 		push	hl
  1395 		push	hl
  1396 		push	bc
  1396 		push	bc
  1397 		ld	b, c
  1397 		ld		b, c
  1398 		ld	(OP2), bc
  1398 		ld		(OP2), bc
  1399 		ld	b, 0
  1399 		ld		b, 0
  1400 		call	p7Dsub_7700
  1400 		call	p7Dsub_7700
  1401 		ld	de, 8484h
  1401 		ld		de, 8484h
  1402 		rst	28h
  1402 		rst		28h
  1403 ; ---------------------------------------------------------------------------
  1403 ; ---------------------------------------------------------------------------
  1404 		.dw 8054h
  1404 		.dw		8054h
  1405 ; ---------------------------------------------------------------------------
  1405 ; ---------------------------------------------------------------------------
  1406 		rst	28h
  1406 		rst		28h
  1407 ; ---------------------------------------------------------------------------
  1407 ; ---------------------------------------------------------------------------
  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:
  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:
  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 =======================================
  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
  1436 		rst	28h
  1436 		rst		28h
  1437 ; ---------------------------------------------------------------------------
  1437 ; ---------------------------------------------------------------------------
  1438 		.dw 8099h
  1438 		.dw		8099h
  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:
  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
  1450 		push	hl
  1450 		push	hl
  1451 		call	p7Dsub_7700
  1451 		call	p7Dsub_7700
  1452 		ld	de, 838Fh
  1452 		ld		de, 838Fh
  1453 		rst	28h
  1453 		rst		28h
  1454 ; ---------------------------------------------------------------------------
  1454 ; ---------------------------------------------------------------------------
  1455 		.dw 8054h
  1455 		.dw		8054h
  1456 ; ---------------------------------------------------------------------------
  1456 ; ---------------------------------------------------------------------------
  1457 		rst	28h
  1457 		rst		28h
  1458 ; ---------------------------------------------------------------------------
  1458 ; ---------------------------------------------------------------------------
  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:
  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:
  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
  1477 		ret
  1477 		ret
  1478 ; End of function p7Dsub_464E
  1478 ; End of function p7Dsub_464E
  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 =======================================
  1484 p7Dsub_468A:
  1484 p7Dsub_468A:
  1485 
  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
  1491 		add	hl, bc
  1491 		add		hl, bc
  1492 		pop	bc
  1492 		pop		bc
  1493 		push	bc
  1493 		push	bc
  1494 		or	a
  1494 		or		a
  1495 		sbc	hl, bc
  1495 		sbc		hl, bc
  1496 		push	hl
  1496 		push	hl
  1497 		pop	bc
  1497 		pop		bc
  1498 		pop	hl
  1498 		pop		hl
  1499 		push	bc
  1499 		push	bc
  1500 		push	hl
  1500 		push	hl
  1501 		ld	de, 4000h
  1501 		ld		de, 4000h
  1502 		call	p7Dsub_42DF
  1502 		call	p7Dsub_42DF
  1503 		pop	hl
  1503 		pop		hl
  1504 		push	hl
  1504 		push	hl
  1505 		rst	28h
  1505 		rst		28h
  1506 ; ---------------------------------------------------------------------------
  1506 ; ---------------------------------------------------------------------------
  1507 		.dw 8060h
  1507 		.dw		8060h
  1508 ; ---------------------------------------------------------------------------
  1508 ; ---------------------------------------------------------------------------
  1509 		pop	de
  1509 		pop		de
  1510 		pop	bc
  1510 		pop		bc
  1511 		ld	hl, 4000h
  1511 		ld		hl, 4000h
  1512 		push	bc
  1512 		push	bc
  1513 		call	p7Dsub_42AE
  1513 		call	p7Dsub_42AE
  1514 		call	p7Dsub_4894
  1514 		call	p7Dsub_4894
  1515 		pop	bc
  1515 		pop		bc
  1516 		ex	de, hl
  1516 		ex		de, hl
  1517 		ld	a, d
  1517 		ld		a, d
  1518 		xor	20h ; ' '
  1518 		xor		20h ; ' '
  1519 		ld	d, a
  1519 		ld		d, a
  1520 		call	p7Dsub_430E
  1520 		call	p7Dsub_430E
  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:
  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:
  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
  1538 		call	p7Dsub_7700
  1538 		call	p7Dsub_7700
  1539 		rst	28h
  1539 		rst		28h
  1540 ; ---------------------------------------------------------------------------
  1540 ; ---------------------------------------------------------------------------
  1541 		.dw 8054h
  1541 		.dw		8054h
  1542 ; ---------------------------------------------------------------------------
  1542 ; ---------------------------------------------------------------------------
  1543 		rst	28h
  1543 		rst		28h
  1544 ; ---------------------------------------------------------------------------
  1544 ; ---------------------------------------------------------------------------
  1545 		.dw 8066h
  1545 		.dw		8066h
  1546 ; ---------------------------------------------------------------------------
  1546 ; ---------------------------------------------------------------------------
  1547 		jr	nz, p7Dloc_4715
  1547 		jr		nz, p7Dloc_4715
  1548 		push	hl
  1548 		push	hl
  1549 		ld	de, 100h
  1549 		ld		de, 100h
  1550 		call	p7Dsub_777E
  1550 		call	p7Dsub_777E
  1551 		jr	nz, p7Dloc_4714
  1551 		jr		nz, p7Dloc_4714
  1552 		call	p7Dsub_4574
  1552 		call	p7Dsub_4574
  1553 		push	hl
  1553 		push	hl
  1554 		call	p7Dsub_4894
  1554 		call	p7Dsub_4894
  1555 		ld	de, 100h
  1555 		ld		de, 100h
  1556 		call	p7Dsub_777E
  1556 		call	p7Dsub_777E
  1557 		call	p7Dsub_4574
  1557 		call	p7Dsub_4574
  1558 		pop	de
  1558 		pop		de
  1559 		ex	de, hl
  1559 		ex		de, hl
  1560 		call	p7Dsub_7700
  1560 		call	p7Dsub_7700
  1561 		call	p7Dsub_5CFF
  1561 		call	p7Dsub_5CFF
  1562 		call	p7Dsub_5D1E
  1562 		call	p7Dsub_5D1E
  1563 		ex	de, hl
  1563 		ex		de, hl
  1564 		call	p7Dsub_7700
  1564 		call	p7Dsub_7700
  1565 		call	p7Dsub_5CFF
  1565 		call	p7Dsub_5CFF
  1566 		call	p7Dsub_5D43
  1566 		call	p7Dsub_5D43
  1567 		ex	de, hl
  1567 		ex		de, hl
  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:
  1573 p7Dloc_4714:
  1574 		pop	hl
  1574 		pop		hl
  1575 
  1575 
  1576 p7Dloc_4715:
  1576 p7Dloc_4715:
  1577 		pop	bc
  1577 		pop		bc
  1578 		pop	de
  1578 		pop		de
  1579 		ret
  1579 		ret
  1580 ; ---------------------------------------------------------------------------
  1580 ; ---------------------------------------------------------------------------
  1581 
  1581 
  1582 Page7D_2C04:
  1582 Page7D_2C04:
  1583 		push	bc
  1583 		push	bc
  1584 		push	de
  1584 		push	de
  1585 		push	hl
  1585 		push	hl
  1586 		call	p7Dsub_7634
  1586 		call	p7Dsub_7634
  1587 		inc	hl
  1587 		inc		hl
  1588 		rst	28h
  1588 		rst		28h
  1589 ; ---------------------------------------------------------------------------
  1589 ; ---------------------------------------------------------------------------
  1590 		.dw 805Ah
  1590 		.dw		805Ah
  1591 ; ---------------------------------------------------------------------------
  1591 ; ---------------------------------------------------------------------------
  1592 		call	p7Dsub_4490
  1592 		call	p7Dsub_4490
  1593 		jp	nz, p7Dloc_47A5
  1593 		jp		nz, p7Dloc_47A5
  1594 		call	p7Dloc_46C7
  1594 		call	p7Dloc_46C7
  1595 		jr	nz, p7Dloc_4746
  1595 		jr		nz, p7Dloc_4746
  1596 		jp	nc, p7Dloc_47A5
  1596 		jp		nc, p7Dloc_47A5
  1597 		rst	28h
  1597 		rst		28h
  1598 ; ---------------------------------------------------------------------------
  1598 ; ---------------------------------------------------------------------------
  1599 		.dw 8066h
  1599 		.dw		8066h
  1600 ; ---------------------------------------------------------------------------
  1600 ; ---------------------------------------------------------------------------
  1601 		jr	nz, p7Dloc_4746
  1601 		jr		nz, p7Dloc_4746
  1602 		call	p7Dsub_50A8
  1602 		call	p7Dsub_50A8
  1603 		call	p7Dloc_46C7
  1603 		call	p7Dloc_46C7
  1604 		rst	28h
  1604 		rst		28h
  1605 ; ---------------------------------------------------------------------------
  1605 ; ---------------------------------------------------------------------------
  1606 		.dw 8066h
  1606 		.dw		8066h
  1607 ; ---------------------------------------------------------------------------
  1607 ; ---------------------------------------------------------------------------
  1608 		call	p7Dsub_47E3
  1608 		call	p7Dsub_47E3
  1609 		rst	28h
  1609 		rst		28h
  1610 ; ---------------------------------------------------------------------------
  1610 ; ---------------------------------------------------------------------------
  1611 		.dw 802Ah
  1611 		.dw		802Ah
  1612 ; ---------------------------------------------------------------------------
  1612 ; ---------------------------------------------------------------------------
  1613 		jr	p7Dloc_474C
  1613 		jr		p7Dloc_474C
  1614 ; ---------------------------------------------------------------------------
  1614 ; ---------------------------------------------------------------------------
  1615 
  1615 
  1616 p7Dloc_4746:
  1616 p7Dloc_4746:
  1617 		call	p7Dsub_50A8
  1617 		call	p7Dsub_50A8
  1618 		call	p7Dsub_5124
  1618 		call	p7Dsub_5124
  1619 
  1619 
  1620 p7Dloc_474C:
  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
  1626 ; ---------------------------------------------------------------------------
  1626 ; ---------------------------------------------------------------------------
  1627 		.dw 8054h
  1627 		.dw		8054h
  1628 ; ---------------------------------------------------------------------------
  1628 ; ---------------------------------------------------------------------------
  1629 		call	p7Dsub_521D
  1629 		call	p7Dsub_521D
  1630 		ld	bc, 0Dh
  1630 		ld		bc, 0Dh
  1631 		sla	c
  1631 		sla	c
  1632 		call	p7Dsub_7700
  1632 		call	p7Dsub_7700
  1633 		ld	de, tempSwapArea
  1633 		ld		de, tempSwapArea
  1634 		rst	28h
  1634 		rst		28h
  1635 ; ---------------------------------------------------------------------------
  1635 ; ---------------------------------------------------------------------------
  1636 		.dw 8054h
  1636 		.dw		8054h
  1637 ; ---------------------------------------------------------------------------
  1637 ; ---------------------------------------------------------------------------
  1638 		call	p7Dsub_762A
  1638 		call	p7Dsub_762A
  1639 		ld	(appID), bc
  1639 		ld		(appID), bc
  1640 		ld	de, 838Eh
  1640 		ld		de, 838Eh
  1641 		call	p7Dsub_7700
  1641 		call	p7Dsub_7700
  1642 		rst	28h
  1642 		rst		28h
  1643 ; ---------------------------------------------------------------------------
  1643 ; ---------------------------------------------------------------------------
  1644 		.dw 8054h
  1644 		.dw		8054h
  1645 ; ---------------------------------------------------------------------------
  1645 ; ---------------------------------------------------------------------------
  1646 		call	p7Dsub_468A
  1646 		call	p7Dsub_468A
  1647 		ld	bc, (appID)
  1647 		ld		bc, (appID)
  1648 		ld	b, 0
  1648 		ld		b, 0
  1649 		ld	(OP2), bc
  1649 		ld		(OP2), bc
  1650 		ld	hl, 838Eh
  1650 		ld		hl, 838Eh
  1651 		ld	de, 8484h
  1651 		ld		de, 8484h
  1652 		ldir
  1652 		ldir
  1653 		rst	28h
  1653 		rst		28h
  1654 ; ---------------------------------------------------------------------------
  1654 ; ---------------------------------------------------------------------------
  1655 		.dw 8066h
  1655 		.dw		8066h
  1656 ; ---------------------------------------------------------------------------
  1656 ; ---------------------------------------------------------------------------
  1657 		call	p7Dsub_45E4
  1657 		call	p7Dsub_45E4
  1658 		call	p7Dsub_4894
  1658 		call	p7Dsub_4894
  1659 		rst	28h
  1659 		rst		28h
  1660 ; ---------------------------------------------------------------------------
  1660 ; ---------------------------------------------------------------------------
  1661 		.dw 8060h
  1661 		.dw		8060h
  1662 ; ---------------------------------------------------------------------------
  1662 ; ---------------------------------------------------------------------------
  1663 
  1663 
  1664 p7Dloc_479D:
  1664 p7Dloc_479D:
  1665 		call	p7Dsub_4926
  1665 		call	p7Dsub_4926
  1666 		pop	hl
  1666 		pop		hl
  1667 		pop	de
  1667 		pop		de
  1668 		pop	bc
  1668 		pop		bc
  1669 		xor	a
  1669 		xor		a
  1670 		ret
  1670 		ret
  1671 ; ---------------------------------------------------------------------------
  1671 ; ---------------------------------------------------------------------------
  1672 
  1672 
  1673 p7Dloc_47A5:
  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 ; ---------------------------------------------------------------------------
  1679 		call	p7Dsub_4926
  1679 		call	p7Dsub_4926
  1680 		pop	hl
  1680 		pop		hl
  1681 		pop	de
  1681 		pop		de
  1682 		pop	bc
  1682 		pop		bc
  1683 		ld	a, 0FFh
  1683 		ld		a, 0FFh
  1684 		or	a
  1684 		or		a
  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:
  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 
  1700 		push	bc
  1700 		push	bc
  1701 		push	de
  1701 		push	de
  1702 		push	hl
  1702 		push	hl
  1703 		push	ix
  1703 		push	ix
  1704 		call	NZIf83Plus
  1704 		call	NZIf83Plus
  1705 		jr	nz, p7Dloc_47D9
  1705 		jr		nz, p7Dloc_47D9
  1706 		cp	1
  1706 		cp		1
  1707 		jr	z, p7Dloc_47D1
  1707 		jr		z, p7Dloc_47D1
  1708 		cp	3
  1708 		cp		3
  1709 		jr	nz, p7Dloc_47D9
  1709 		jr		nz, p7Dloc_47D9
  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:
  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:
  1721 p7Dloc_47D9:
  1722 		; Page7D_2B86+11j
  1722 		; Page7D_2B86+11j
  1723 		call	p7Dsub_4287
  1723 		call	p7Dsub_4287
  1724 
  1724 
  1725 p7Dloc_47DC:
  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
  1731 		pop	af
  1731 		pop		af
  1732 		ret
  1732 		ret
  1733 ; End of function Page7D_2B86
  1733 ; End of function Page7D_2B86
  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 =======================================
  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
  1745 		ld	de, 700h
  1745 		ld		de, 700h
  1746 		call	p7Dsub_777E
  1746 		call	p7Dsub_777E
  1747 		call	p7Dsub_4574
  1747 		call	p7Dsub_4574
  1748 		push	hl
  1748 		push	hl
  1749 		call	p7Dsub_4894
  1749 		call	p7Dsub_4894
  1750 		ld	de, 700h
  1750 		ld		de, 700h
  1751 		call	p7Dsub_777E
  1751 		call	p7Dsub_777E
  1752 		call	p7Dsub_4574
  1752 		call	p7Dsub_4574
  1753 		pop	de
  1753 		pop		de
  1754 		push	hl
  1754 		push	hl
  1755 		push	de
  1755 		push	de
  1756 		call	p7Dsub_762A
  1756 		call	p7Dsub_762A
  1757 		push	hl
  1757 		push	hl
  1758 		push	bc
  1758 		push	bc
  1759 		call	p7Dsub_484E
  1759 		call	p7Dsub_484E
  1760 		inc	ix
  1760 		inc		ix
  1761 		pop	bc
  1761 		pop		bc
  1762 		pop	hl
  1762 		pop		hl
  1763 		push	ix
  1763 		push	ix
  1764 		call	p7Dsub_4442
  1764 		call	p7Dsub_4442
  1765 		add	hl, bc
  1765 		add		hl, bc
  1766 		call	p7Dsub_7700
  1766 		call	p7Dsub_7700
  1767 		ld	de, 810h
  1767 		ld		de, 810h
  1768 		rst	28h
  1768 		rst		28h
  1769 ; ---------------------------------------------------------------------------
  1769 ; ---------------------------------------------------------------------------
  1770 		.dw 8030h
  1770 		.dw		8030h
  1771 ; ---------------------------------------------------------------------------
  1771 ; ---------------------------------------------------------------------------
  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:
  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:
  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
  1788 		rst	28h
  1788 		rst		28h
  1789 ; ---------------------------------------------------------------------------
  1789 ; ---------------------------------------------------------------------------
  1790 		.dw 8069h
  1790 		.dw		8069h
  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:
  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
  1802 		push	bc
  1802 		push	bc
  1803 		call	p7Dsub_4D5E
  1803 		call	p7Dsub_4D5E
  1804 		inc	ix
  1804 		inc		ix
  1805 		jp	p7Dloc_5156
  1805 		jp		p7Dloc_5156
  1806 ; End of function p7Dsub_47E3
  1806 ; End of function p7Dsub_47E3
  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:
  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
  1818 		call	p7Dsub_7700
  1818 		call	p7Dsub_7700
  1819 		rst	28h
  1819 		rst		28h
  1820 ; ---------------------------------------------------------------------------
  1820 ; ---------------------------------------------------------------------------
  1821 		.dw 8054h
  1821 		.dw		8054h
  1822 ; ---------------------------------------------------------------------------
  1822 ; ---------------------------------------------------------------------------
  1823 		ld	hl, OP6
  1823 		ld		hl, OP6
  1824 		ld	(hl), 1
  1824 		ld		(hl), 1
  1825 		rst	28h
  1825 		rst		28h
  1826 ; ---------------------------------------------------------------------------
  1826 ; ---------------------------------------------------------------------------
  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:
  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 =======================================
  1843 p7Dsub_4873:
  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
  1849 		rst	28h
  1849 		rst		28h
  1850 ; ---------------------------------------------------------------------------
  1850 ; ---------------------------------------------------------------------------
  1851 		.dw 805Dh
  1851 		.dw		805Dh
  1852 ; ---------------------------------------------------------------------------
  1852 ; ---------------------------------------------------------------------------
  1853 		jr	nz, p7Dloc_488F
  1853 		jr		nz, p7Dloc_488F
  1854 		pop	af
  1854 		pop		af
  1855 		inc	hl
  1855 		inc		hl
  1856 		rst	28h
  1856 		rst		28h
  1857 ; ---------------------------------------------------------------------------
  1857 ; ---------------------------------------------------------------------------
  1858 		.dw 805Ah
  1858 		.dw		805Ah
  1859 ; ---------------------------------------------------------------------------
  1859 ; ---------------------------------------------------------------------------
  1860 		call	p7Dsub_7700
  1860 		call	p7Dsub_7700
  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:
  1866 p7Dloc_488F:
  1867 		pop	af
  1867 		pop		af
  1868 
  1868 
  1869 p7Dloc_4890:
  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:
  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:
  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
  1897 		pop	af
  1897 		pop		af
  1898 		ret
  1898 		ret
  1899 ; End of function Page7D_2BEC
  1899 ; End of function Page7D_2BEC
  1900 
  1900 
  1901 ; ---------------------------------------------------------------------------
  1901 ; ---------------------------------------------------------------------------
  1902 
  1902 
  1903 Page7D_2CA6:
  1903 Page7D_2CA6:
  1904 		push	af
  1904 		push	af
  1905 		ld	a, 1
  1905 		ld		a, 1
  1906 		nop
  1906 		nop
  1907 		di
  1907 		di
  1908 		nop
  1908 		nop
  1909 		nop
  1909 		nop
  1910 		im	1
  1910 		im	1
  1911 		di
  1911 		di
  1912 		out	(14h), a
  1912 		out		(14h), a
  1913 		di
  1913 		di
  1914 		call	checkForFlashTrickery
  1914 		call	checkForFlashTrickery
  1915 		pop	af
  1915 		pop		af
  1916 		call	p7Dsub_48B5
  1916 		call	p7Dsub_48B5
  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:
  1922 p7Dsub_48B5:
  1935 		push	de
  1935 		push	de
  1936 		push	bc
  1936 		push	bc
  1937 		push	hl
  1937 		push	hl
  1938 		push	bc
  1938 		push	bc
  1939 		push	ix
  1939 		push	ix
  1940 		pop	hl
  1940 		pop		hl
  1941 		ld	bc, 0C9h ; '�'
  1941 		ld		bc, 0C9h ; '�'
  1942 		or	a
  1942 		or		a
  1943 		sbc	hl, bc
  1943 		sbc		hl, bc
  1944 		jp	nc, Page0Call_2541
  1944 		jp		nc, Page0Call_2541
  1945 		add	hl, bc
  1945 		add		hl, bc
  1946 		ld	bc, 0
  1946 		ld		bc, 0
  1947 		or	a
  1947 		or		a
  1948 		sbc	hl, bc
  1948 		sbc		hl, bc
  1949 		jp	m, Page0Call_2541
  1949 		jp		m, Page0Call_2541
  1950 		pop	bc
  1950 		pop		bc
  1951 		pop	hl
  1951 		pop		hl
  1952 		jp	p7Dloc_48EB
  1952 		jp		p7Dloc_48EB
  1953 ; End of function p7Dsub_48BC
  1953 ; End of function p7Dsub_48BC
  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 
  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:
  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
  1974 		cp	80h ; '�'
  1974 		cp		80h ; '�'
  1975 		scf
  1975 		scf
  1976 		jr	z, p7Dloc_4902
  1976 		jr		z, p7Dloc_4902
  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:
  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
  1988 ; End of function p7Dsub_48DE
  1988 ; End of function p7Dsub_48DE
  1989 
  1989 
  1990 ; ---------------------------------------------------------------------------
  1990 ; ---------------------------------------------------------------------------
  1991 
  1991 
  1992 Page7D_3E9A:
  1992 Page7D_3E9A:
  1993 		push	af
  1993 		push	af
  1994 		ld	a, 1
  1994 		ld		a, 1
  1995 		nop
  1995 		nop
  1996 		di
  1996 		di
  1997 		nop
  1997 		nop
  1998 		nop
  1998 		nop
  1999 		im	1
  1999 		im	1
  2000 		di
  2000 		di
  2001 		out	(14h), a
  2001 		out		(14h), a
  2002 		di
  2002 		di
  2003 		call	checkForFlashTrickery
  2003 		call	checkForFlashTrickery
  2004 		pop	af
  2004 		pop		af
  2005 		call	Page7D_2B56
  2005 		call	Page7D_2B56
  2006 		ld	a, b
  2006 		ld		a, b
  2007 		rst	28h
  2007 		rst		28h
  2008 ; ---------------------------------------------------------------------------
  2008 ; ---------------------------------------------------------------------------
  2009 		.dw 80CFh
  2009 		.dw		80CFh
  2010 ; ---------------------------------------------------------------------------
  2010 ; ---------------------------------------------------------------------------
  2011 		call	p7Dsub_4926
  2011 		call	p7Dsub_4926
  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:
  2017 p7Dsub_4926:
  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
  2024 		ld	a, 0
  2024 		ld		a, 0
  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:
  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_
  2036 		ld	a, 4Dh ; 'M'
  2036 		ld		a, 4Dh ; 'M'
  2037 		bit	1, (iy+35h)
  2037 		bit		1, (iy+35h)
  2038 		call	nz, Page0Call_3C45
  2038 		call	nz, Page0Call_3C45
  2039 		call	p7Dsub_7045
  2039 		call	p7Dsub_7045
  2040 		call	Page0Call_3CD5
  2040 		call	Page0Call_3CD5
  2041 		ld	hl, aDeleting___
  2041 		ld		hl, aDeleting___
  2042 		ld	a, 4Eh ; 'N'
  2042 		ld		a, 4Eh ; 'N'
  2043 		bit	1, (iy+35h)
  2043 		bit		1, (iy+35h)
  2044 		call	nz, Page0Call_3C45
  2044 		call	nz, Page0Call_3C45
  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:
  2050 p7Dloc_496C:
  2051 		ld	c, b
  2051 		ld		c, b
  2052 		ld	b, 0FFh
  2052 		ld		b, 0FFh
  2053 
  2053 
  2054 p7Dloc_496F:
  2054 p7Dloc_496F:
  2055 		ld	a, 0FFh
  2055 		ld		a, 0FFh
  2056 
  2056 
  2057 p7Dloc_4971:
  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
  2063 		djnz	p7Dloc_496C
  2063 		djnz	p7Dloc_496C
  2064 		call	page0_BA2
  2064 		call	page0_BA2
  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:
  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
  2076 		ret
  2076 		ret
  2077 ; End of function p7Dsub_4926
  2077 ; End of function p7Dsub_4926
  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 =======================================
  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
  2089 		push	af
  2089 		push	af
  2090 		and	0F0h ; '�'
  2090 		and		0F0h ; '�'
  2091 		ld	c, a
  2091 		ld		c, a
  2092 		pop	af
  2092 		pop		af
  2093 		xor	c
  2093 		xor		c
  2094 		ld	(appID), a
  2094 		ld		(appID), a
  2095 		inc	hl
  2095 		inc		hl
  2096 		ld	c, a
  2096 		ld		c, a
  2097 		ld	b, 0
  2097 		ld		b, 0
  2098 		call	p7Dsub_7700
  2098 		call	p7Dsub_7700
  2099 		ld	de, 838Eh
  2099 		ld		de, 838Eh
  2100 		rst	28h
  2100 		rst		28h
  2101 ; ---------------------------------------------------------------------------
  2101 ; ---------------------------------------------------------------------------
  2102 		.dw 8054h
  2102 		.dw		8054h
  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:
  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:
  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
  2124 		call	CopyFlashPage
  2124 		call	CopyFlashPage
  2125 		pop	bc
  2125 		pop		bc
  2126 		push	af
  2126 		push	af
  2127 		ld	a, 0
  2127 		ld		a, 0
  2128 		dec	c
  2128 		dec		c
  2129 		or	c
  2129 		or		c
  2130 		jr	z, p7Dloc_49D3
  2130 		jr		z, p7Dloc_49D3
  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:
  2136 p7Dloc_49D3:
  2137 		pop	af
  2137 		pop		af
  2138 		ret
  2138 		ret
  2139 ; ---------------------------------------------------------------------------
  2139 ; ---------------------------------------------------------------------------
  2140 
  2140 
  2141 p7Dloc_49D5:
  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:
  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
  2155 		jr	z, p7Dloc_4A1E
  2155 		jr		z, p7Dloc_4A1E
  2156 		pop	af
  2156 		pop		af
  2157 		push	af
  2157 		push	af
  2158 		cp	7Eh ; '~'
  2158 		cp		7Eh ; '~'
  2159 		jr	z, p7Dloc_4A1E
  2159 		jr		z, p7Dloc_4A1E
  2160 		cp	7Fh ; ''
  2160 		cp		7Fh ; ''
  2161 		jr	z, p7Dloc_4A1E
  2161 		jr		z, p7Dloc_4A1E
  2162 		ld	a, b
  2162 		ld		a, b
  2163 		cp	7Eh ; '~'
  2163 		cp		7Eh ; '~'
  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:
  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
  2175 		push	af
  2175 		push	af
  2176 		call	FlashToRam
  2176 		call	FlashToRam
  2177 		pop	af
  2177 		pop		af
  2178 		pop	de
  2178 		pop		de
  2179 		pop	hl
  2179 		pop		hl
  2180 		pop	bc
  2180 		pop		bc
  2181 		push	af
  2181 		push	af
  2182 		ld	a, b
  2182 		ld		a, b
  2183 		ld	bc, 100h
  2183 		ld		bc, 100h
  2184 		ex	de, hl
  2184 		ex		de, hl
  2185 		push	af
  2185 		push	af
  2186 		call	p7Dsub_7666
  2186 		call	p7Dsub_7666
  2187 		pop	af
  2187 		pop		af
  2188 		ex	de, hl
  2188 		ex		de, hl
  2189 		ld	b, a
  2189 		ld		b, a
  2190 		ld	a, 80h ; '�'
  2190 		ld		a, 80h ; '�'
  2191 		cp	h
  2191 		cp		h
  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:
  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:
  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:
  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 ; ---------------------------------------------------------------------------
  2219 		cp	0FEh ; '�'
  2219 		cp		0FEh ; '�'
  2220 		jr	z, p7Dloc_4A3C
  2220 		jr		z, p7Dloc_4A3C
  2221 		pop	af
  2221 		pop		af
  2222 		inc	a
  2222 		inc		a
  2223 		call	p7Dsub_75E1
  2223 		call	p7Dsub_75E1
  2224 		jr	nz, p7Dloc_4A27
  2224 		jr		nz, p7Dloc_4A27
  2225 		ld	a, 0FFh
  2225 		ld		a, 0FFh
  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:
  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 =======================================
  2240 
  2240 
  2241 FindAppNumPages:
  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
  2247 		or	a
  2247 		or		a
  2248 		rst	28h
  2248 		rst		28h
  2249 ; ---------------------------------------------------------------------------
  2249 ; ---------------------------------------------------------------------------
  2250 		.dw 80ABh
  2250 		.dw		80ABh
  2251 ; ---------------------------------------------------------------------------
  2251 ; ---------------------------------------------------------------------------
  2252 		ld	c, 0
  2252 		ld		c, 0
  2253 		jr	nz, p7Dloc_4A57
  2253 		jr		nz, p7Dloc_4A57
  2254 		inc	hl
  2254 		inc		hl
  2255 		inc	hl
  2255 		inc		hl
  2256 		pop	af
  2256 		pop		af
  2257 		push	af
  2257 		push	af
  2258 		rst	28h
  2258 		rst		28h
  2259 ; ---------------------------------------------------------------------------
  2259 ; ---------------------------------------------------------------------------
  2260 		.dw 8051h
  2260 		.dw		8051h
  2261 ; ---------------------------------------------------------------------------
  2261 ; ---------------------------------------------------------------------------
  2262 		ld	c, a
  2262 		ld		c, a
  2263 
  2263 
  2264 p7Dloc_4A57:
  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:
  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:
  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
  2285 ; ---------------------------------------------------------------------------
  2285 ; ---------------------------------------------------------------------------
  2286 		cp	0FFh
  2286 		cp		0FFh
  2287 		jr	z, p7Dloc_4A77
  2287 		jr		z, p7Dloc_4A77
  2288 		cp	0
  2288 		cp		0
  2289 		jr	z, p7Dloc_4A77
  2289 		jr		z, p7Dloc_4A77
  2290 		cp	80h ; '�'
  2290 		cp		80h ; '�'
  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:
  2296 p7Dloc_4A77:
  2297 		pop	af
  2297 		pop		af
  2298 
  2298 
  2299 p7Dloc_4A78:
  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:
  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:
  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
  2317 		pop	af
  2317 		pop		af
  2318 		push	af
  2318 		push	af
  2319 		call	p7Dsub_5E31
  2319 		call	p7Dsub_5E31
  2320 		rst	28h
  2320 		rst		28h
  2321 ; ---------------------------------------------------------------------------
  2321 ; ---------------------------------------------------------------------------
  2322 		.dw 80A8h
  2322 		.dw		80A8h
  2323 ; ---------------------------------------------------------------------------
  2323 ; ---------------------------------------------------------------------------
  2324 		jr	nz, p7Dloc_4AC4
  2324 		jr		nz, p7Dloc_4AC4
  2325 		pop	af
  2325 		pop		af
  2326 		push	af
  2326 		push	af
  2327 		call	p7Dsub_52D9
  2327 		call	p7Dsub_52D9
  2328 		jr	c, p7Dloc_4AC4
  2328 		jr		c, p7Dloc_4AC4
  2329 		jr	z, p7Dloc_4AC4
  2329 		jr		z, p7Dloc_4AC4
  2330 		pop	af
  2330 		pop		af
  2331 		push	af
  2331 		push	af
  2332 		ld	b, a
  2332 		ld		b, a
  2333 		call	p7Dsub_75EC
  2333 		call	p7Dsub_75EC
  2334 		sub	b
  2334 		sub		b
  2335 		ld	bc, 0
  2335 		ld		bc, 0
  2336 		ld	c, a
  2336 		ld		c, a
  2337 		push	bc
  2337 		push	bc
  2338 		pop	ix
  2338 		pop		ix
  2339 		call	p7Dsub_48B5
  2339 		call	p7Dsub_48B5
  2340 		jr	c, p7Dloc_4AC4
  2340 		jr		c, p7Dloc_4AC4
  2341 		jr	nz, p7Dloc_4AC4
  2341 		jr		nz, p7Dloc_4AC4
  2342 		ld	a, (ioFlag)
  2342 		ld		a, (ioFlag)
  2343 		cp	0
  2343 		cp		0
  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:
  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:
  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:
  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:
  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
  2379 		ld	a, c
  2379 		ld		a, c
  2380 		ld	(appID+1), a
  2380 		ld		(appID+1), a
  2381 		ld	de, 838Fh
  2381 		ld		de, 838Fh
  2382 		call	p7Dsub_424C
  2382 		call	p7Dsub_424C
  2383 		rst	28h
  2383 		rst		28h
  2384 ; ---------------------------------------------------------------------------
  2384 ; ---------------------------------------------------------------------------
  2385 		.dw 80A8h
  2385 		.dw		80A8h
  2386 ; ---------------------------------------------------------------------------
  2386 ; ---------------------------------------------------------------------------
  2387 		pop	hl
  2387 		pop		hl
  2388 		push	hl
  2388 		push	hl
  2389 		jr	z, p7Dloc_4B5F
  2389 		jr		z, p7Dloc_4B5F
  2390 		ld	de, 740h
  2390 		ld		de, 740h
  2391 		call	p7Dsub_705E
  2391 		call	p7Dsub_705E
  2392 		jr	nz, p7Dloc_4B14
  2392 		jr		nz, p7Dloc_4B14
  2393 		call	p7Dsub_7700
  2393 		call	p7Dsub_7700
  2394 		call	p7Dsub_50C5
  2394 		call	p7Dsub_50C5
  2395 		jr	z, p7Dloc_4B14
  2395 		jr		z, p7Dloc_4B14
  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:
  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:
  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
  2416 		push	hl
  2416 		push	hl
  2417 		call	p7Dsub_4B73
  2417 		call	p7Dsub_4B73
  2418 		call	p7Dsub_6021
  2418 		call	p7Dsub_6021
  2419 		jr	c, p7Dloc_4B51
  2419 		jr		c, p7Dloc_4B51
  2420 		pop	hl
  2420 		pop		hl
  2421 		pop	de
  2421 		pop		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:
  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:
  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
  2444 		pop	de
  2444 		pop		de
  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:
  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:
  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:
  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:
  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
  2480 		call	p7Dsub_424C
  2480 		call	p7Dsub_424C
  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:
  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:
  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
  2498 		call	p7Dsub_705E
  2498 		call	p7Dsub_705E
  2499 		jr	nz, p7Dloc_4BC9
  2499 		jr		nz, p7Dloc_4BC9
  2500 		call	p7Dsub_7700
  2500 		call	p7Dsub_7700
  2501 		call	p7Dsub_50C5
  2501 		call	p7Dsub_50C5
  2502 		jr	z, p7Dloc_4BE4
  2502 		jr		z, p7Dloc_4BE4
  2503 		call	p7Dsub_536F
  2503 		call	p7Dsub_536F
  2504 		call	p7Dsub_48DE
  2504 		call	p7Dsub_48DE
  2505 		jr	c, p7Dloc_4BC9
  2505 		jr		c, p7Dloc_4BC9
  2506 		jr	nz, p7Dloc_4BE4
  2506 		jr		nz, p7Dloc_4BE4
  2507 		ld	a, (ioFlag)
  2507 		ld		a, (ioFlag)
  2508 		cp	0
  2508 		cp		0
  2509 		jr	nz, p7Dloc_4BC9
  2509 		jr		nz, p7Dloc_4BC9
  2510 		call	Page0Call_2C7F
  2510 		call	Page0Call_2C7F
  2511 		ld	a, 0FFh
  2511 		ld		a, 0FFh
  2512 		ld	(ioFlag), a
  2512 		ld		(ioFlag), a
  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:
  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
  2524 		ld	(OP2), bc
  2524 		ld		(OP2), bc
  2525 		call	p7Dsub_7700
  2525 		call	p7Dsub_7700
  2526 		rst	28h
  2526 		rst		28h
  2527 ; ---------------------------------------------------------------------------
  2527 ; ---------------------------------------------------------------------------
  2528 		.dw 8054h
  2528 		.dw		8054h
  2529 ; ---------------------------------------------------------------------------
  2529 ; ---------------------------------------------------------------------------
  2530 		rst	28h
  2530 		rst		28h
  2531 ; ---------------------------------------------------------------------------
  2531 ; ---------------------------------------------------------------------------
  2532 		.dw 8066h
  2532 		.dw		8066h
  2533 ; ---------------------------------------------------------------------------
  2533 ; ---------------------------------------------------------------------------
  2534 		jr	nz, p7Dloc_4BE4
  2534 		jr		nz, p7Dloc_4BE4
  2535 		rst	28h
  2535 		rst		28h
  2536 ; ---------------------------------------------------------------------------
  2536 ; ---------------------------------------------------------------------------
  2537 		.dw 802Ah
  2537 		.dw		802Ah
  2538 ; ---------------------------------------------------------------------------
  2538 ; ---------------------------------------------------------------------------
  2539 
  2539 
  2540 p7Dloc_4BE4:
  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
  2546 		ld	(OP2), bc
  2546 		ld		(OP2), bc
  2547 		call	p7Dsub_7700
  2547 		call	p7Dsub_7700
  2548 		rst	28h
  2548 		rst		28h
  2549 ; ---------------------------------------------------------------------------
  2549 ; ---------------------------------------------------------------------------
  2550 		.dw 8054h
  2550 		.dw		8054h
  2551 ; ---------------------------------------------------------------------------
  2551 ; ---------------------------------------------------------------------------
  2552 		rst	28h
  2552 		rst		28h
  2553 ; ---------------------------------------------------------------------------
  2553 ; ---------------------------------------------------------------------------
  2554 		.dw 8066h
  2554 		.dw		8066h
  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:
  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:
  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:
  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:
  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
  2585 		call	p7Dsub_705E
  2585 		call	p7Dsub_705E
  2586 		jr	nz, p7Dloc_4C38
  2586 		jr		nz, p7Dloc_4C38
  2587 		call	p7Dsub_7700
  2587 		call	p7Dsub_7700
  2588 		call	p7Dsub_50C5
  2588 		call	p7Dsub_50C5
  2589 		jr	z, p7Dloc_4C38
  2589 		jr		z, p7Dloc_4C38
  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:
  2595 p7Dloc_4C38:
  2596 		pop	hl
  2596 		pop		hl
  2597 		jr	p7Dloc_4C68
  2597 		jr		p7Dloc_4C68
  2598 ; ---------------------------------------------------------------------------
  2598 ; ---------------------------------------------------------------------------
  2599 
  2599 
  2600 p7Dloc_4C3B:
  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
  2606 		push	hl
  2606 		push	hl
  2607 		call	p7Dsub_6021
  2607 		call	p7Dsub_6021
  2608 		jr	c, p7Dloc_4C66
  2608 		jr		c, p7Dloc_4C66
  2609 		pop	hl
  2609 		pop		hl
  2610 		pop	de
  2610 		pop		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:
  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:
  2626 p7Dloc_4C66:
  2627 		pop	hl
  2627 		pop		hl
  2628 		pop	de
  2628 		pop		de
  2629 
  2629 
  2630 p7Dloc_4C68:
  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:
  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 =======================================
  2646 p7Dsub_4C73:
  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
  2652 ; ---------------------------------------------------------------------------
  2652 ; ---------------------------------------------------------------------------
  2653 		.dw 8051h
  2653 		.dw		8051h
  2654 ; ---------------------------------------------------------------------------
  2654 ; ---------------------------------------------------------------------------
  2655 		ld	(OP2), a
  2655 		ld		(OP2), a
  2656 		ex	de, hl
  2656 		ex		de, hl
  2657 		pop	af
  2657 		pop		af
  2658 		rst	28h
  2658 		rst		28h
  2659 ; ---------------------------------------------------------------------------
  2659 ; ---------------------------------------------------------------------------
  2660 		.dw 8051h
  2660 		.dw		8051h
  2661 ; ---------------------------------------------------------------------------
  2661 ; ---------------------------------------------------------------------------
  2662 		ld	bc, (OP2)
  2662 		ld		bc, (OP2)
  2663 		cp	c
  2663 		cp		c
  2664 		pop	hl
  2664 		pop		hl
  2665 		pop	de
  2665 		pop		de
  2666 		pop	bc
  2666 		pop		bc
  2667 		ret
  2667 		ret
  2668 ; End of function p7Dsub_4C73
  2668 ; End of function p7Dsub_4C73
  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 =======================================
  2678 		push	af
  2678 		push	af
  2679 		call	p7Dsub_4F62
  2679 		call	p7Dsub_4F62
  2680 		call	p7Dloc_4D38
  2680 		call	p7Dloc_4D38
  2681 		call	p7Dsub_4CAE
  2681 		call	p7Dsub_4CAE
  2682 		call	p7Dsub_521D
  2682 		call	p7Dsub_521D
  2683 		ld	bc, 0Dh
  2683 		ld		bc, 0Dh
  2684 		sla	c
  2684 		sla	c
  2685 		call	p7Dsub_7700
  2685 		call	p7Dsub_7700
  2686 		ld	de, tempSwapArea
  2686 		ld		de, tempSwapArea
  2687 		rst	28h
  2687 		rst		28h
  2688 ; ---------------------------------------------------------------------------
  2688 ; ---------------------------------------------------------------------------
  2689 		.dw 8054h
  2689 		.dw		8054h
  2690 ; ---------------------------------------------------------------------------
  2690 ; ---------------------------------------------------------------------------
  2691 		pop	af
  2691 		pop		af
  2692 		pop	bc
  2692 		pop		bc
  2693 		pop	de
  2693 		pop		de
  2694 		pop	hl
  2694 		pop		hl
  2695 		ret
  2695 		ret
  2696 ; End of function p7Dsub_4C8B
  2696 ; End of function p7Dsub_4C8B
  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:
  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
  2708 		call	p7Dsub_4574
  2708 		call	p7Dsub_4574
  2709 		push	hl
  2709 		push	hl
  2710 		call	p7Dsub_4894
  2710 		call	p7Dsub_4894
  2711 		ld	de, 800h
  2711 		ld		de, 800h
  2712 		call	p7Dsub_777E
  2712 		call	p7Dsub_777E
  2713 		jp	nz, p7Dloc_4D36
  2713 		jp		nz, p7Dloc_4D36
  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:
  2719 p7Dloc_4CD2:
  2720 		push	hl
  2720 		push	hl
  2721 
  2721 
  2722 p7Dloc_4CD3:
  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:
  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
  2735 ; ---------------------------------------------------------------------------
  2735 ; ---------------------------------------------------------------------------
  2736 		.dw 8030h
  2736 		.dw		8030h
  2737 ; ---------------------------------------------------------------------------
  2737 ; ---------------------------------------------------------------------------
  2738 		add	hl, bc
  2738 		add		hl, bc
  2739 		call	p7Dsub_705E
  2739 		call	p7Dsub_705E
  2740 		pop	ix
  2740 		pop		ix
  2741 		pop	de
  2741 		pop		de
  2742 
  2742 
  2743 p7Dloc_4CF0:
  2743 p7Dloc_4CF0:
  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:
  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:
  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
  2763 		call	p7Dsub_4E44
  2763 		call	p7Dsub_4E44
  2764 		pop	hl
  2764 		pop		hl
  2765 		call	p7Dsub_4574
  2765 		call	p7Dsub_4574
  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:
  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
  2777 		rst	28h
  2777 		rst		28h
  2778 ; ---------------------------------------------------------------------------
  2778 ; ---------------------------------------------------------------------------
  2779 		.dw 8030h
  2779 		.dw		8030h
  2780 ; ---------------------------------------------------------------------------
  2780 ; ---------------------------------------------------------------------------
  2781 		add	hl, bc
  2781 		add		hl, bc
  2782 		call	p7Dsub_705E
  2782 		call	p7Dsub_705E
  2783 		pop	de
  2783 		pop		de
  2784 		inc	ix
  2784 		inc		ix
  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:
  2790 locret_4D35:
  2791 		ret
  2791 		ret
  2792 ; ---------------------------------------------------------------------------
  2792 ; ---------------------------------------------------------------------------
  2793 
  2793 
  2794 p7Dloc_4D36:
  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:
  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
  2807 		call	p7Dsub_4574
  2807 		call	p7Dsub_4574
  2808 		push	hl
  2808 		push	hl
  2809 		call	p7Dsub_4894
  2809 		call	p7Dsub_4894
  2810 		ld	de, 700h
  2810 		ld		de, 700h
  2811 		call	p7Dsub_777E
  2811 		call	p7Dsub_777E
  2812 		jp	nz, p7Dloc_4DCB
  2812 		jp		nz, p7Dloc_4DCB
  2813 		call	p7Dsub_4574
  2813 		call	p7Dsub_4574
  2814 		pop	de
  2814 		pop		de
  2815 		ex	de, hl
  2815 		ex		de, hl
  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:
  2821 p7Dsub_4D5E:
  2823 		push	hl
  2823 		push	hl
  2824 
  2824 
  2825 p7Dloc_4D5F:
  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
  2831 		ld	de, 710h
  2831 		ld		de, 710h
  2832 		ld	a, 7Eh ; '~'
  2832 		ld		a, 7Eh ; '~'
  2833 		rst	28h
  2833 		rst		28h
  2834 ; ---------------------------------------------------------------------------
  2834 ; ---------------------------------------------------------------------------
  2835 		.dw 8030h
  2835 		.dw		8030h
  2836 ; ---------------------------------------------------------------------------
  2836 ; ---------------------------------------------------------------------------
  2837 		add	hl, bc
  2837 		add		hl, bc
  2838 		call	p7Dsub_705E
  2838 		call	p7Dsub_705E
  2839 		pop	ix
  2839 		pop		ix
  2840 		pop	de
  2840 		pop		de
  2841 		call	nz, p7Dsub_4DCD
  2841 		call	nz, p7Dsub_4DCD
  2842 		jr	nz, p7Dloc_4DAF
  2842 		jr		nz, p7Dloc_4DAF
  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:
  2848 p7Dloc_4D80:
  2849 		jr	p7Dsub_4D5E
  2849 		jr		p7Dsub_4D5E
  2850 ; ---------------------------------------------------------------------------
  2850 ; ---------------------------------------------------------------------------
  2851 
  2851 
  2852 p7Dloc_4D82:
  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:
  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
  2867 		call	p7Dsub_4DCD
  2867 		call	p7Dsub_4DCD
  2868 		pop	hl
  2868 		pop		hl
  2869 		call	p7Dsub_4574
  2869 		call	p7Dsub_4574
  2870 		or	a
  2870 		or		a
  2871 		adc	hl, bc
  2871 		adc	hl, bc
  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:
  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
  2883 		rst	28h
  2883 		rst		28h
  2884 ; ---------------------------------------------------------------------------
  2884 ; ---------------------------------------------------------------------------
  2885 		.dw 8030h
  2885 		.dw		8030h
  2886 ; ---------------------------------------------------------------------------
  2886 ; ---------------------------------------------------------------------------
  2887 		or	a
  2887 		or		a
  2888 		adc	hl, bc
  2888 		adc	hl, bc
  2889 		call	p7Dsub_705E
  2889 		call	p7Dsub_705E
  2890 		pop	de
  2890 		pop		de
  2891 		jr	nz, locret_4DCA
  2891 		jr		nz, locret_4DCA
  2892 		ex	de, hl
  2892 		ex		de, hl
  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:
  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:
  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:
  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 
  2920 		push	hl
  2920 		push	hl
  2921 		push	de
  2921 		push	de
  2922 		push	ix
  2922 		push	ix
  2923 
  2923 
  2924 p7Dloc_4DD2:
  2924 p7Dloc_4DD2:
  2925 		res	7, (iy+25h)
  2925 		res		7, (iy+25h)
  2926 		ex	de, hl
  2926 		ex		de, hl
  2927 		push	hl
  2927 		push	hl
  2928 		ld	a, 7Eh ; '~'
  2928 		ld		a, 7Eh ; '~'
  2929 		ld	de, 740h
  2929 		ld		de, 740h
  2930 		rst	28h
  2930 		rst		28h
  2931 ; ---------------------------------------------------------------------------
  2931 ; ---------------------------------------------------------------------------
  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:
  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 ; ---------------------------------------------------------------------------
  2943 		.dw 8030h
  2943 		.dw		8030h
  2944 ; ---------------------------------------------------------------------------
  2944 ; ---------------------------------------------------------------------------
  2945 		jr	z, p7Dloc_4E01
  2945 		jr		z, p7Dloc_4E01
  2946 		bit	7, (iy+25h)
  2946 		bit		7, (iy+25h)
  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:
  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:
  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:
  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
  2970 		ld	b, 8
  2970 		ld		b, 8
  2971 		sub	b
  2971 		sub		b
  2972 		call	p7Dsub_4E9B
  2972 		call	p7Dsub_4E9B
  2973 		ld	d, a
  2973 		ld		d, a
  2974 		ld	a, 8
  2974 		ld		a, 8
  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:
  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:
  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
  2992 		or	a
  2992 		or		a
  2993 		adc	hl, bc
  2993 		adc	hl, bc
  2994 		ld	(hl), e
  2994 		ld		(hl), e
  2995 		inc	hl
  2995 		inc		hl
  2996 		ld	(hl), d
  2996 		ld		(hl), d
  2997 		ld	a, 0FFh
  2997 		ld		a, 0FFh
  2998 		or	a
  2998 		or		a
  2999 		res	7, (iy+25h)
  2999 		res		7, (iy+25h)
  3000 		pop	ix
  3000 		pop		ix
  3001 		pop	de
  3001 		pop		de
  3002 		pop	hl
  3002 		pop		hl
  3003 		pop	bc
  3003 		pop		bc
  3004 		ret
  3004 		ret
  3005 ; End of function p7Dsub_4DCD
  3005 ; End of function p7Dsub_4DCD
  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 =======================================
  3013 		push	af
  3013 		push	af
  3014 		push	bc
  3014 		push	bc
  3015 		push	hl
  3015 		push	hl
  3016 		push	de
  3016 		push	de
  3017 		push	ix
  3017 		push	ix
  3018 		ex	de, hl
  3018 		ex		de, hl
  3019 		ld	a, 7Eh ; '~'
  3019 		ld		a, 7Eh ; '~'
  3020 		ld	de, 860h
  3020 		ld		de, 860h
  3021 		rst	28h
  3021 		rst		28h
  3022 ; ---------------------------------------------------------------------------
  3022 ; ---------------------------------------------------------------------------
  3023 		.dw 8030h
  3023 		.dw		8030h
  3024 ; ---------------------------------------------------------------------------
  3024 ; ---------------------------------------------------------------------------
  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:
  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:
  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
  3043 		ld	b, 8
  3043 		ld		b, 8
  3044 		sub	b
  3044 		sub		b
  3045 		call	p7Dsub_4E9B
  3045 		call	p7Dsub_4E9B
  3046 		ld	d, a
  3046 		ld		d, a
  3047 		ld	a, 8
  3047 		ld		a, 8
  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:
  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:
  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
  3065 		or	a
  3065 		or		a
  3066 		adc	hl, bc
  3066 		adc	hl, bc
  3067 		ld	(hl), e
  3067 		ld		(hl), e
  3068 		inc	hl
  3068 		inc		hl
  3069 		ld	(hl), d
  3069 		ld		(hl), d
  3070 		ld	a, 0FFh
  3070 		ld		a, 0FFh
  3071 		bit	7, a
  3071 		bit		7, a
  3072 		pop	ix
  3072 		pop		ix
  3073 		pop	de
  3073 		pop		de
  3074 		pop	hl
  3074 		pop		hl
  3075 		pop	bc
  3075 		pop		bc
  3076 		pop	af
  3076 		pop		af
  3077 		ret
  3077 		ret
  3078 ; End of function p7Dsub_4E44
  3078 ; End of function p7Dsub_4E44
  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:
  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
  3090 		adc	a, c
  3090 		adc	a, c
  3091 		cp	0
  3091 		cp		0
  3092 		jr	z, p7Dloc_4EB9
  3092 		jr		z, p7Dloc_4EB9
  3093 		cp	1
  3093 		cp		1
  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:
  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:
  3107 p7Dloc_4EB9:
  3108 		ld	a, 0
  3108 		ld		a, 0
  3109 
  3109 
  3110 p7Dloc_4EBB:
  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 =======================================
  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
  3125 		ld	de, 710h
  3125 		ld		de, 710h
  3126 		call	p7Dsub_4ECE
  3126 		call	p7Dsub_4ECE
  3127 		pop	ix
  3127 		pop		ix
  3128 		pop	de
  3128 		pop		de
  3129 		pop	hl
  3129 		pop		hl
  3130 		pop	af
  3130 		pop		af
  3131 		ret
  3131 		ret
  3132 ; End of function p7Dsub_4EBD
  3132 ; End of function p7Dsub_4EBD
  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:
  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
  3144 		ld	hl, OP6
  3144 		ld		hl, OP6
  3145 		ld	(hl), 1
  3145 		ld		(hl), 1
  3146 		pop	hl
  3146 		pop		hl
  3147 		rst	28h
  3147 		rst		28h
  3148 ; ---------------------------------------------------------------------------
  3148 ; ---------------------------------------------------------------------------
  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:
  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
  3160 		sla	c
  3160 		sla	c
  3161 		call	p7Dsub_521D
  3161 		call	p7Dsub_521D
  3162 		or	a
  3162 		or		a
  3163 		adc	hl, bc
  3163 		adc	hl, bc
  3164 		ld	a, 7Eh ; '~'
  3164 		ld		a, 7Eh ; '~'
  3165 
  3165 
  3166 p7Dloc_4EFB:
  3166 p7Dloc_4EFB:
  3167 		ld	de, tempSwapArea
  3167 		ld		de, tempSwapArea
  3168 		ex	de, hl
  3168 		ex		de, hl
  3169 		pop	bc
  3169 		pop		bc
  3170 		push	bc
  3170 		push	bc
  3171 		sla	c
  3171 		sla	c
  3172 		ld	b, 0
  3172 		ld		b, 0
  3173 		or	a
  3173 		or		a
  3174 		adc	hl, bc
  3174 		adc	hl, bc
  3175 		ex	de, hl
  3175 		ex		de, hl
  3176 		ld	bc, 2
  3176 		ld		bc, 2
  3177 		call	FlashToRam
  3177 		call	FlashToRam
  3178 		ret
  3178 		ret
  3179 ; End of function p7Dsub_4ECE
  3179 ; End of function p7Dsub_4ECE
  3180 
  3180 
  3181 
  3181 
  3185 p7Dsub_4F10:
  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
  3191 		call	p7Dsub_4ECE
  3191 		call	p7Dsub_4ECE
  3192 		ld	bc, (appID+1)
  3192 		ld		bc, (appID+1)
  3193 		ld	b, 0
  3193 		ld		b, 0
  3194 		ld	a, c
  3194 		ld		a, c
  3195 		push	af
  3195 		push	af
  3196 		and	0F0h ; '�'
  3196 		and		0F0h ; '�'
  3197 		ld	c, a
  3197 		ld		c, a
  3198 		pop	af
  3198 		pop		af
  3199 		xor	c
  3199 		xor		c
  3200 		ld	c, a
  3200 		ld		c, a
  3201 		ld	(OP2), bc
  3201 		ld		(OP2), bc
  3202 
  3202 
  3203 p7Dloc_4F2D:
  3203 p7Dloc_4F2D:
  3204 		ld	hl, 838Fh
  3204 		ld		hl, 838Fh
  3205 		ld	de, 8484h
  3205 		ld		de, 8484h
  3206 		ldir
  3206 		ldir
  3207 		rst	28h
  3207 		rst		28h
  3208 ; ---------------------------------------------------------------------------
  3208 ; ---------------------------------------------------------------------------
  3209 		.dw 8066h
  3209 		.dw		8066h
  3210 ; ---------------------------------------------------------------------------
  3210 ; ---------------------------------------------------------------------------
  3211 		pop	ix
  3211 		pop		ix
  3212 		jr	nz, p7Dloc_4F5E
  3212 		jr		nz, p7Dloc_4F5E
  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:
  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
  3224 ; ---------------------------------------------------------------------------
  3224 ; ---------------------------------------------------------------------------
  3225 		.dw 8030h
  3225 		.dw		8030h
  3226 ; ---------------------------------------------------------------------------
  3226 ; ---------------------------------------------------------------------------
  3227 		or	a
  3227 		or		a
  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:
  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:
  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:
  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 
  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
  3266 		ld	a, 7Eh ; '~'
  3266 		ld		a, 7Eh ; '~'
  3267 		ld	de, 710h
  3267 		ld		de, 710h
  3268 		rst	28h
  3268 		rst		28h
  3269 ; ---------------------------------------------------------------------------
  3269 ; ---------------------------------------------------------------------------
  3270 		.dw 8030h
  3270 		.dw		8030h
  3271 ; ---------------------------------------------------------------------------
  3271 ; ---------------------------------------------------------------------------
  3272 		pop	de
  3272 		pop		de
  3273 		push	hl
  3273 		push	hl
  3274 		push	bc
  3274 		push	bc
  3275 		ex	de, hl
  3275 		ex		de, hl
  3276 		ld	a, 7Eh ; '~'
  3276 		ld		a, 7Eh ; '~'
  3277 		ld	de, 710h
  3277 		ld		de, 710h
  3278 		rst	28h
  3278 		rst		28h
  3279 ; ---------------------------------------------------------------------------
  3279 ; ---------------------------------------------------------------------------
  3280 		.dw 8030h
  3280 		.dw		8030h
  3281 ; ---------------------------------------------------------------------------
  3281 ; ---------------------------------------------------------------------------
  3282 		pop	de
  3282 		pop		de
  3283 		ld	a, e
  3283 		ld		a, e
  3284 		pop	de
  3284 		pop		de
  3285 		cp	c
  3285 		cp		c
  3286 		jr	nz, p7Dloc_4FE9
  3286 		jr		nz, p7Dloc_4FE9
  3287 		ld	a, c
  3287 		ld		a, c
  3288 		or	b
  3288 		or		b
  3289 		jr	z, p7Dloc_4FEF
  3289 		jr		z, p7Dloc_4FEF
  3290 		jp	p7Dloc_4FB9
  3290 		jp		p7Dloc_4FB9
  3291 ; End of function p7Dsub_4F6E
  3291 ; End of function p7Dsub_4F6E
  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 
  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
  3303 		ld	a, 7Eh ; '~'
  3303 		ld		a, 7Eh ; '~'
  3304 		ld	de, 810h
  3304 		ld		de, 810h
  3305 		rst	28h
  3305 		rst		28h
  3306 ; ---------------------------------------------------------------------------
  3306 ; ---------------------------------------------------------------------------
  3307 		.dw 8030h
  3307 		.dw		8030h
  3308 ; ---------------------------------------------------------------------------
  3308 ; ---------------------------------------------------------------------------
  3309 		pop	de
  3309 		pop		de
  3310 		push	hl
  3310 		push	hl
  3311 		push	bc
  3311 		push	bc
  3312 		ex	de, hl
  3312 		ex		de, hl
  3313 		ld	a, 7Eh ; '~'
  3313 		ld		a, 7Eh ; '~'
  3314 		ld	de, 810h
  3314 		ld		de, 810h
  3315 		rst	28h
  3315 		rst		28h
  3316 ; ---------------------------------------------------------------------------
  3316 ; ---------------------------------------------------------------------------
  3317 		.dw 8030h
  3317 		.dw		8030h
  3318 ; ---------------------------------------------------------------------------
  3318 ; ---------------------------------------------------------------------------
  3319 		pop	de
  3319 		pop		de
  3320 		ld	a, e
  3320 		ld		a, e
  3321 		pop	de
  3321 		pop		de
  3322 		cp	c
  3322 		cp		c
  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:
  3328 p7Dloc_4FB9:
  3329 		ld	b, c
  3329 		ld		b, c
  3330 
  3330 
  3331 p7Dloc_4FBA:
  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
  3337 		djnz	p7Dloc_4FBA
  3337 		djnz	p7Dloc_4FBA
  3338 		call	p7Dsub_4565
  3338 		call	p7Dsub_4565
  3339 		and	0F0h ; '�'
  3339 		and		0F0h ; '�'
  3340 		cp	10h
  3340 		cp		10h
  3341 		jr	z, p7Dloc_4FEF
  3341 		jr		z, p7Dloc_4FEF
  3342 		cp	0
  3342 		cp		0
  3343 		jr	z, p7Dloc_4FEF
  3343 		jr		z, p7Dloc_4FEF
  3344 		dec	hl
  3344 		dec		hl
  3345 		inc	de
  3345 		inc		de
  3346 		push	de
  3346 		push	de
  3347 		call	p7Dsub_4574
  3347 		call	p7Dsub_4574
  3348 		pop	de
  3348 		pop		de
  3349 		ex	de, hl
  3349 		ex		de, hl
  3350 		push	bc
  3350 		push	bc
  3351 		push	de
  3351 		push	de
  3352 		call	p7Dloc_4575
  3352 		call	p7Dloc_4575
  3353 		pop	de
  3353 		pop		de
  3354 		ex	de, hl
  3354 		ex		de, hl
  3355 		ld	a, c
  3355 		ld		a, c
  3356 		pop	bc
  3356 		pop		bc
  3357 		cp	c
  3357 		cp		c
  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:
  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:
  3369 p7Dloc_4FEF:
  3370 		ld	a, 0
  3370 		ld		a, 0
  3371 		bit	7, a
  3371 		bit		7, a
  3372 
  3372 
  3373 p7Dloc_4FF3:
  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 
  3386 		push	hl
  3386 		push	hl
  3387 		push	bc
  3387 		push	bc
  3388 		push	af
  3388 		push	af
  3389 		push	hl
  3389 		push	hl
  3390 		push	af
  3390 		push	af
  3391 		inc	hl
  3391 		inc		hl
  3392 		rst	28h
  3392 		rst		28h
  3393 ; ---------------------------------------------------------------------------
  3393 ; ---------------------------------------------------------------------------
  3394 		.dw 805Ah
  3394 		.dw		805Ah
  3395 ; ---------------------------------------------------------------------------
  3395 ; ---------------------------------------------------------------------------
  3396 		or	a
  3396 		or		a
  3397 		adc	hl, bc
  3397 		adc	hl, bc
  3398 		pop	af
  3398 		pop		af
  3399 		inc	hl
  3399 		inc		hl
  3400 		rst	28h
  3400 		rst		28h
  3401 ; ---------------------------------------------------------------------------
  3401 ; ---------------------------------------------------------------------------
  3402 		.dw 805Ah
  3402 		.dw		805Ah
  3403 ; ---------------------------------------------------------------------------
  3403 ; ---------------------------------------------------------------------------
  3404 		or	a
  3404 		or		a
  3405 		adc	hl, bc
  3405 		adc	hl, bc
  3406 		pop	de
  3406 		pop		de
  3407 		or	a
  3407 		or		a
  3408 		sbc	hl, de
  3408 		sbc		hl, de
  3409 		push	hl
  3409 		push	hl
  3410 		pop	bc
  3410 		pop		bc
  3411 		ex	de, hl
  3411 		ex		de, hl
  3412 		pop	af
  3412 		pop		af
  3413 		ld	de, tempSwapArea
  3413 		ld		de, tempSwapArea
  3414 		push	bc
  3414 		push	bc
  3415 		rst	28h
  3415 		rst		28h
  3416 ; ---------------------------------------------------------------------------
  3416 ; ---------------------------------------------------------------------------
  3417 		.dw 8054h
  3417 		.dw		8054h
  3418 ; ---------------------------------------------------------------------------
  3418 ; ---------------------------------------------------------------------------
  3419 		pop	bc
  3419 		pop		bc
  3420 		ld	a, 7Eh ; '~'
  3420 		ld		a, 7Eh ; '~'
  3421 		call	p7Dsub_4894
  3421 		call	p7Dsub_4894
  3422 		push	hl
  3422 		push	hl
  3423 		push	hl
  3423 		push	hl
  3424 		rst	28h
  3424 		rst		28h
  3425 ; ---------------------------------------------------------------------------
  3425 ; ---------------------------------------------------------------------------
  3426 		.dw 8060h
  3426 		.dw		8060h
  3427 ; ---------------------------------------------------------------------------
  3427 ; ---------------------------------------------------------------------------
  3428 		pop	hl
  3428 		pop		hl
  3429 		ex	de, hl
  3429 		ex		de, hl
  3430 		ld	hl, tempSwapArea
  3430 		ld		hl, tempSwapArea
  3431 		ld	a, 7Eh ; '~'
  3431 		ld		a, 7Eh ; '~'
  3432 		rst	28h
  3432 		rst		28h
  3433 ; ---------------------------------------------------------------------------
  3433 ; ---------------------------------------------------------------------------
  3434 		.dw 8087h
  3434 		.dw		8087h
  3435 ; ---------------------------------------------------------------------------
  3435 ; ---------------------------------------------------------------------------
  3436 		ld	de, 320h
  3436 		ld		de, 320h
  3437 		rst	28h
  3437 		rst		28h
  3438 ; ---------------------------------------------------------------------------
  3438 ; ---------------------------------------------------------------------------
  3439 		.dw 8027h
  3439 		.dw		8027h
  3440 ; ---------------------------------------------------------------------------
  3440 ; ---------------------------------------------------------------------------
  3441 		jr	nz, p7Dloc_503E
  3441 		jr		nz, p7Dloc_503E
  3442 		rst	28h
  3442 		rst		28h
  3443 ; ---------------------------------------------------------------------------
  3443 ; ---------------------------------------------------------------------------
  3444 		.dw 802Ah
  3444 		.dw		802Ah
  3445 ; ---------------------------------------------------------------------------
  3445 ; ---------------------------------------------------------------------------
  3446 
  3446 
  3447 p7Dloc_503E:
  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:
  3451 p7Dloc_503F:
  3452 		scf
  3452 		scf
  3453 
  3453 
  3454 p7Dloc_5040:
  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
  3460 		push	af
  3460 		push	af
  3461 		inc	hl
  3461 		inc		hl
  3462 		rst	28h
  3462 		rst		28h
  3463 ; ---------------------------------------------------------------------------
  3463 ; ---------------------------------------------------------------------------
  3464 		.dw 805Ah
  3464 		.dw		805Ah
  3465 ; ---------------------------------------------------------------------------
  3465 ; ---------------------------------------------------------------------------
  3466 		or	a
  3466 		or		a
  3467 		adc	hl, bc
  3467 		adc	hl, bc
  3468 		pop	af
  3468 		pop		af
  3469 		inc	hl
  3469 		inc		hl
  3470 		rst	28h
  3470 		rst		28h
  3471 ; ---------------------------------------------------------------------------
  3471 ; ---------------------------------------------------------------------------
  3472 		.dw 805Ah
  3472 		.dw		805Ah
  3473 ; ---------------------------------------------------------------------------
  3473 ; ---------------------------------------------------------------------------
  3474 		or	a
  3474 		or		a
  3475 		adc	hl, bc
  3475 		adc	hl, bc
  3476 		pop	de
  3476 		pop		de
  3477 		or	a
  3477 		or		a
  3478 		sbc	hl, de
  3478 		sbc		hl, de
  3479 		push	hl
  3479 		push	hl
  3480 		pop	bc
  3480 		pop		bc
  3481 		pop	hl
  3481 		pop		hl
  3482 		pop	af
  3482 		pop		af
  3483 		push	bc
  3483 		push	bc
  3484 		push	hl
  3484 		push	hl
  3485 		call	p7Dsub_521D
  3485 		call	p7Dsub_521D
  3486 		ld	bc, 0E8h ; '�'
  3486 		ld		bc, 0E8h ; '�'
  3487 		ld	a, 7Eh ; '~'
  3487 		ld		a, 7Eh ; '~'
  3488 		ld	de, tempSwapArea
  3488 		ld		de, tempSwapArea
  3489 		rst	28h
  3489 		rst		28h
  3490 ; ---------------------------------------------------------------------------
  3490 ; ---------------------------------------------------------------------------
  3491 		.dw 8054h
  3491 		.dw		8054h
  3492 ; ---------------------------------------------------------------------------
  3492 ; ---------------------------------------------------------------------------
  3493 		pop	de
  3493 		pop		de
  3494 		pop	bc
  3494 		pop		bc
  3495 		ld	a, d
  3495 		ld		a, d
  3496 		xor	20h ; ' '
  3496 		xor		20h ; ' '
  3497 		ld	d, a
  3497 		ld		d, a
  3498 		call	p7Dsub_430E
  3498 		call	p7Dsub_430E
  3499 		jp	nz, p7Dloc_46C1
  3499 		jp		nz, p7Dloc_46C1
  3500 		pop	af
  3500 		pop		af
  3501 		call	c, p7Dsub_4926
  3501 		call	c, p7Dsub_4926
  3502 		pop	bc
  3502 		pop		bc
  3503 		pop	hl
  3503 		pop		hl
  3504 		pop	de
  3504 		pop		de
  3505 		pop	af
  3505 		pop		af
  3506 		ret
  3506 		ret
  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 
  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
  3521 		jp	p7Dloc_503F
  3521 		jp		p7Dloc_503F
  3522 ; End of function p7Dsub_5083
  3522 ; End of function p7Dsub_5083
  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 
  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
  3534 		ld	de, 320h
  3534 		ld		de, 320h
  3535 		call	p7Dsub_777E
  3535 		call	p7Dsub_777E
  3536 		push	hl
  3536 		push	hl
  3537 		ld	de, 320h
  3537 		ld		de, 320h
  3538 		rst	28h
  3538 		rst		28h
  3539 ; ---------------------------------------------------------------------------
  3539 ; ---------------------------------------------------------------------------
  3540 		.dw 8027h
  3540 		.dw		8027h
  3541 ; ---------------------------------------------------------------------------
  3541 ; ---------------------------------------------------------------------------
  3542 		jr	nz, p7Dloc_50A3
  3542 		jr		nz, p7Dloc_50A3
  3543 		rst	28h
  3543 		rst		28h
  3544 ; ---------------------------------------------------------------------------
  3544 ; ---------------------------------------------------------------------------
  3545 		.dw 802Ah
  3545 		.dw		802Ah
  3546 ; ---------------------------------------------------------------------------
  3546 ; ---------------------------------------------------------------------------
  3547 
  3547 
  3548 p7Dloc_50A3:
  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 
  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
  3565 		ld	de, 320h
  3565 		ld		de, 320h
  3566 		call	p7Dsub_777E
  3566 		call	p7Dsub_777E
  3567 		call	p7Dsub_4574
  3567 		call	p7Dsub_4574
  3568 		ld	a, 7Eh ; '~'
  3568 		ld		a, 7Eh ; '~'
  3569 		call	p7Dsub_50C5
  3569 		call	p7Dsub_50C5
  3570 		call	z, p7Dsub_508A
  3570 		call	z, p7Dsub_508A
  3571 		pop	de
  3571 		pop		de
  3572 		pop	hl
  3572 		pop		hl
  3573 		pop	bc
  3573 		pop		bc
  3574 		pop	af
  3574 		pop		af
  3575 		ret
  3575 		ret
  3576 ; End of function p7Dsub_50A8
  3576 ; End of function p7Dsub_50A8
  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 =======================================
  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
  3588 		ld	de, 320h
  3588 		ld		de, 320h
  3589 		rst	28h
  3589 		rst		28h
  3590 ; ---------------------------------------------------------------------------
  3590 ; ---------------------------------------------------------------------------
  3591 		.dw 8027h
  3591 		.dw		8027h
  3592 ; ---------------------------------------------------------------------------
  3592 ; ---------------------------------------------------------------------------
  3593 		jr	nz, p7Dloc_5119
  3593 		jr		nz, p7Dloc_5119
  3594 		call	p7Dsub_4574
  3594 		call	p7Dsub_4574
  3595 		ex	de, hl
  3595 		ex		de, hl
  3596 		pop	hl
  3596 		pop		hl
  3597 		inc	hl
  3597 		inc		hl
  3598 		inc	de
  3598 		inc		de
  3599 		pop	af
  3599 		pop		af
  3600 		ld	b, a
  3600 		ld		b, a
  3601 		rst	28h
  3601 		rst		28h
  3602 ; ---------------------------------------------------------------------------
  3602 ; ---------------------------------------------------------------------------
  3603 		.dw 8051h
  3603 		.dw		8051h
  3604 ; ---------------------------------------------------------------------------
  3604 ; ---------------------------------------------------------------------------
  3605 		push	af
  3605 		push	af
  3606 		and	0F0h ; '�'
  3606 		and		0F0h ; '�'
  3607 		ld	c, a
  3607 		ld		c, a
  3608 		pop	af
  3608 		pop		af
  3609 		xor	c
  3609 		xor		c
  3610 		push	af
  3610 		push	af
  3611 		ex	de, hl
  3611 		ex		de, hl
  3612 		call	p7Dsub_4566
  3612 		call	p7Dsub_4566
  3613 		ld	c, a
  3613 		ld		c, a
  3614 		pop	af
  3614 		pop		af
  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:
  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:
  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 ; ---------------------------------------------------------------------------
  3633 		push	af
  3633 		push	af
  3634 		ex	de, hl
  3634 		ex		de, hl
  3635 		call	p7Dsub_4566
  3635 		call	p7Dsub_4566
  3636 		ld	c, a
  3636 		ld		c, a
  3637 		pop	af
  3637 		pop		af
  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:
  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:
  3652 p7Dloc_5112:
  3653 		pop	af
  3653 		pop		af
  3654 
  3654 
  3655 p7Dloc_5113:
  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:
  3661 p7Dloc_5119:
  3662 		pop	af
  3662 		pop		af
  3663 
  3663 
  3664 p7Dloc_511A:
  3664 p7Dloc_511A:
  3665 		pop	af
  3665 		pop		af
  3666 
  3666 
  3667 p7Dloc_511B:
  3667 p7Dloc_511B:
  3668 		ld	a, 0
  3668 		ld		a, 0
  3669 		bit	7, a
  3669 		bit		7, a
  3670 
  3670 
  3671 p7Dloc_511F:
  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 =======================================
  3685 		push	de
  3685 		push	de
  3686 		push	af
  3686 		push	af
  3687 		call	p7Dsub_47B5
  3687 		call	p7Dsub_47B5
  3688 		call	p7Dsub_762A
  3688 		call	p7Dsub_762A
  3689 		call	p7Dsub_484E
  3689 		call	p7Dsub_484E
  3690 		inc	ix
  3690 		inc		ix
  3691 		push	ix
  3691 		push	ix
  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:
  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
  3703 		ex	de, hl
  3703 		ex		de, hl
  3704 		inc	ix
  3704 		inc		ix
  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:
  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
  3716 		pop	de
  3716 		pop		de
  3717 		push	hl
  3717 		push	hl
  3718 		sla	e
  3718 		sla	e
  3719 		call	p7Dsub_521D
  3719 		call	p7Dsub_521D
  3720 		add	hl, de
  3720 		add		hl, de
  3721 		push	hl
  3721 		push	hl
  3722 		ld	a, c
  3722 		ld		a, c
  3723 		sub	e
  3723 		sub		e
  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:
  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
  3735 		pop	bc
  3735 		pop		bc
  3736 		pop	hl
  3736 		pop		hl
  3737 		pop	de
  3737 		pop		de
  3738 		ld	a, 7Eh ; '~'
  3738 		ld		a, 7Eh ; '~'
  3739 		rst	28h
  3739 		rst		28h
  3740 ; ---------------------------------------------------------------------------
  3740 ; ---------------------------------------------------------------------------
  3741 		.dw 8054h
  3741 		.dw		8054h
  3742 ; ---------------------------------------------------------------------------
  3742 ; ---------------------------------------------------------------------------
  3743 		pop	af
  3743 		pop		af
  3744 		pop	de
  3744 		pop		de
  3745 		pop	bc
  3745 		pop		bc
  3746 		pop	hl
  3746 		pop		hl
  3747 		ret
  3747 		ret
  3748 ; End of function p7Dsub_5124
  3748 ; End of function p7Dsub_5124
  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 =======================================
  3753 
  3753 
  3754 p7Dsub_5185:
  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
  3760 		or	a
  3760 		or		a
  3761 		sbc	hl, de
  3761 		sbc		hl, de
  3762 		ex	de, hl
  3762 		ex		de, hl
  3763 		ld	hl, tempSwapArea
  3763 		ld		hl, tempSwapArea
  3764 		add	hl, de
  3764 		add		hl, de
  3765 		ld	a, (unk_9C20)
  3765 		ld		a, (unk_9C20)
  3766 		call	Page7D_2B86
  3766 		call	Page7D_2B86
  3767 		pop	bc
  3767 		pop		bc
  3768 		ld	(hl), b
  3768 		ld		(hl), b
  3769 		ret
  3769 		ret
  3770 ; End of function p7Dsub_5185
  3770 ; End of function p7Dsub_5185
  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 =======================================
  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
  3782 		ld	c, a
  3782 		ld		c, a
  3783 		call	p7Dsub_4566
  3783 		call	p7Dsub_4566
  3784 		push	af
  3784 		push	af
  3785 		or	c
  3785 		or		c
  3786 		ld	b, a
  3786 		ld		b, a
  3787 		pop	af
  3787 		pop		af
  3788 		and	c
  3788 		and		c
  3789 		jr	nz, p7Dloc_51BB
  3789 		jr		nz, p7Dloc_51BB
  3790 		call	p7Dsub_5185
  3790 		call	p7Dsub_5185
  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:
  3796 p7Dloc_51BB:
  3797 		ex	de, hl
  3797 		ex		de, hl
  3798 		call	p7Dsub_456D
  3798 		call	p7Dsub_456D
  3799 
  3799 
  3800 p7Dloc_51BF:
  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 =======================================
  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
  3817 		cpl
  3817 		cpl
  3818 		ld	c, a
  3818 		ld		c, a
  3819 		call	p7Dsub_4566
  3819 		call	p7Dsub_4566
  3820 		and	c
  3820 		and		c
  3821 		ld	b, a
  3821 		ld		b, a
  3822 		ex	de, hl
  3822 		ex		de, hl
  3823 		call	p7Dsub_456D
  3823 		call	p7Dsub_456D
  3824 		pop	hl
  3824 		pop		hl
  3825 		pop	bc
  3825 		pop		bc
  3826 		pop	af
  3826 		pop		af
  3827 		ret
  3827 		ret
  3828 ; End of function p7Dsub_51C3
  3828 ; End of function p7Dsub_51C3
  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:
  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 ; ---------------------------------------------------------------------------
  3840 		.dw 80A8h
  3840 		.dw		80A8h
  3841 ; ---------------------------------------------------------------------------
  3841 ; ---------------------------------------------------------------------------
  3842 		jr	nz, p7Dloc_51ED
  3842 		jr		nz, p7Dloc_51ED
  3843 		call	p7Dsub_75EC
  3843 		call	p7Dsub_75EC
  3844 		sub	b
  3844 		sub		b
  3845 		inc	a
  3845 		inc		a
  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:
  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
  3857 ; ---------------------------------------------------------------------------
  3857 ; ---------------------------------------------------------------------------
  3858 		.dw 8069h
  3858 		.dw		8069h
  3859 ; ---------------------------------------------------------------------------
  3859 ; ---------------------------------------------------------------------------
  3860 		inc	ix
  3860 		inc		ix
  3861 		push	ix
  3861 		push	ix
  3862 		pop	hl
  3862 		pop		hl
  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:
  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
  3874 		or	a
  3874 		or		a
  3875 		adc	hl, bc
  3875 		adc	hl, bc
  3876 		pop	bc
  3876 		pop		bc
  3877 		ld	a, c
  3877 		ld		a, c
  3878 		and	7
  3878 		and		7
  3879 		ld	c, a
  3879 		ld		c, a
  3880 		pop	af
  3880 		pop		af
  3881 		pop	de
  3881 		pop		de
  3882 		ret
  3882 		ret
  3883 ; End of function p7Dsub_51DB
  3883 ; End of function p7Dsub_51DB
  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:
  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:
  3899 p7Dsub_521D:
  3900 		push	bc
  3900 		push	bc
  3901 		ld	bc, 1F18h
  3901 		ld		bc, 1F18h
  3902 
  3902 
  3903 p7Dloc_5221:
  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
  3909 ; ---------------------------------------------------------------------------
  3909 ; ---------------------------------------------------------------------------
  3910 		add	hl, bc
  3910 		add		hl, bc
  3911 		pop	ix
  3911 		pop		ix
  3912 		pop	bc
  3912 		pop		bc
  3913 		ret
  3913 		ret
  3914 ; End of function p7Dsub_521D
  3914 ; End of function p7Dsub_521D
  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:
  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:
  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:
  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:
  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:
  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:
  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
  3973 ; ---------------------------------------------------------------------------
  3973 ; ---------------------------------------------------------------------------
  3974 		cp	0FEh ; '�'
  3974 		cp		0FEh ; '�'
  3975 		jr	z, p7Dloc_527B
  3975 		jr		z, p7Dloc_527B
  3976 		pop	af
  3976 		pop		af
  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:
  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
  3988 ; ---------------------------------------------------------------------------
  3988 ; ---------------------------------------------------------------------------
  3989 		cp	0FFh
  3989 		cp		0FFh
  3990 		jr	z, p7Dloc_5278
  3990 		jr		z, p7Dloc_5278
  3991 		pop	af
  3991 		pop		af
  3992 		add	a, 4
  3992 		add		a, 4
  3993 		call	p7Dsub_75E1
  3993 		call	p7Dsub_75E1
  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:
  3999 p7Dloc_5278:
  4000 		pop	af
  4000 		pop		af
  4001 
  4001 
  4002 p7Dloc_5279:
  4002 p7Dloc_5279:
  4003 		jr	p7Dloc_527C
  4003 		jr		p7Dloc_527C
  4004 ; ---------------------------------------------------------------------------
  4004 ; ---------------------------------------------------------------------------
  4005 
  4005 
  4006 p7Dloc_527B:
  4006 p7Dloc_527B:
  4007 		pop	af
  4007 		pop		af
  4008 
  4008 
  4009 p7Dloc_527C:
  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
  4015 		pop	bc
  4015 		pop		bc
  4016 		pop	hl
  4016 		pop		hl
  4017 		ret
  4017 		ret
  4018 ; End of function FindSwapSector
  4018 ; End of function FindSwapSector
  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 =======================================
  4024 Page7D_2C40:
  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	; '�'
  4030 		ld	de, 4000h
  4030 		ld		de, 4000h
  4031 		rst	28h
  4031 		rst		28h
  4032 ; ---------------------------------------------------------------------------
  4032 ; ---------------------------------------------------------------------------
  4033 		.dw 8021h
  4033 		.dw		8021h
  4034 ; ---------------------------------------------------------------------------
  4034 ; ---------------------------------------------------------------------------
  4035 		pop	de
  4035 		pop		de
  4036 		pop	bc
  4036 		pop		bc
  4037 		pop	hl
  4037 		pop		hl
  4038 		pop	af
  4038 		pop		af
  4039 		ret
  4039 		ret
  4040 ; End of function Page7D_2C40
  4040 ; End of function Page7D_2C40
  4041 
  4041 
  4042 ; ---------------------------------------------------------------------------
  4042 ; ---------------------------------------------------------------------------
  4043 
  4043 
  4044 Page7D_2C22:
  4044 Page7D_2C22:
  4045 		rst	28h
  4045 		rst		28h
  4046 ; ---------------------------------------------------------------------------
  4046 ; ---------------------------------------------------------------------------
  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:
  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
  4058 		rst	28h
  4058 		rst		28h
  4059 ; ---------------------------------------------------------------------------
  4059 ; ---------------------------------------------------------------------------
  4060 		.dw 805Ah
  4060 		.dw		805Ah
  4061 ; ---------------------------------------------------------------------------
  4061 ; ---------------------------------------------------------------------------
  4062 		or	a
  4062 		or		a
  4063 		adc	hl, bc
  4063 		adc	hl, bc
  4064 		inc	hl
  4064 		inc		hl
  4065 		ld	a, (appSearchPage)
  4065 		ld		a, (appSearchPage)
  4066 		rst	28h
  4066 		rst		28h
  4067 ; ---------------------------------------------------------------------------
  4067 ; ---------------------------------------------------------------------------
  4068 		.dw 805Ah
  4068 		.dw		805Ah
  4069 ; ---------------------------------------------------------------------------
  4069 ; ---------------------------------------------------------------------------
  4070 		or	a
  4070 		or		a
  4071 		adc	hl, bc
  4071 		adc	hl, bc
  4072 		pop	de
  4072 		pop		de
  4073 		sbc	hl, de
  4073 		sbc		hl, de
  4074 		push	hl
  4074 		push	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:
  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
  4086 ; ---------------------------------------------------------------------------
  4086 ; ---------------------------------------------------------------------------
  4087 		ld	b, a
  4087 		ld		b, a
  4088 		push	hl
  4088 		push	hl
  4089 		call	p7Dsub_456D
  4089 		call	p7Dsub_456D
  4090 		pop	hl
  4090 		pop		hl
  4091 		pop	bc
  4091 		pop		bc
  4092 		dec	bc
  4092 		dec		bc
  4093 		ld	a, b
  4093 		ld		a, b
  4094 		or	c
  4094 		or		c
  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:
  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:
  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
  4112 ; ---------------------------------------------------------------------------
  4112 ; ---------------------------------------------------------------------------
  4113 		.dw 8075h
  4113 		.dw		8075h
  4114 ; ---------------------------------------------------------------------------
  4114 ; ---------------------------------------------------------------------------
  4115 		jr	nz, p7Dloc_52ED
  4115 		jr		nz, p7Dloc_52ED
  4116 		pop	af
  4116 		pop		af
  4117 		call	p7Dsub_50C5
  4117 		call	p7Dsub_50C5
  4118 		scf
  4118 		scf
  4119 		ccf
  4119 		ccf
  4120 		ret
  4120 		ret
  4121 ; ---------------------------------------------------------------------------
  4121 ; ---------------------------------------------------------------------------
  4122 
  4122 
  4123 p7Dloc_52ED:
  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:
  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:
  4137 		ld	hl, 4000h
  4137 		ld		hl, 4000h
  4138 		pop	de
  4138 		pop		de
  4139 		push	af
  4139 		push	af
  4140 		or	a
  4140 		or		a
  4141 		rst	28h
  4141 		rst		28h
  4142 ; ---------------------------------------------------------------------------
  4142 ; ---------------------------------------------------------------------------
  4143 		.dw 8075h
  4143 		.dw		8075h
  4144 ; ---------------------------------------------------------------------------
  4144 ; ---------------------------------------------------------------------------
  4145 		jr	nz, p7Dloc_5338
  4145 		jr		nz, p7Dloc_5338
  4146 		pop	af
  4146 		pop		af
  4147 		ld	(Abackup), a
  4147 		ld		(Abackup), a
  4148 		ld	a, i
  4148 		ld		a, i
  4149 		di
  4149 		di
  4150 		push	af
  4150 		push	af
  4151 		ld	a, (Abackup)
  4151 		ld		a, (Abackup)
  4152 		push	af
  4152 		push	af
  4153 		ld	a, 1
  4153 		ld		a, 1
  4154 		nop
  4154 		nop
  4155 		di
  4155 		di
  4156 		nop
  4156 		nop
  4157 		nop
  4157 		nop
  4158 		im	1
  4158 		im	1
  4159 		di
  4159 		di
  4160 		out	(14h), a
  4160 		out		(14h), a
  4161 		di
  4161 		di
  4162 		call	checkForFlashTrickery
  4162 		call	checkForFlashTrickery
  4163 		pop	af
  4163 		pop		af
  4164 		call	p7Dsub_50C5
  4164 		call	p7Dsub_50C5
  4165 		call	p7Dsub_6006
  4165 		call	p7Dsub_6006
  4166 		call	relockFlashBack
  4166 		call	relockFlashBack
  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:
  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:
  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 =======================================
  4191 
  4191 
  4192 
  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
  4198 		ld	de, 320h
  4198 		ld		de, 320h
  4199 		pop	af
  4199 		pop		af
  4200 		push	af
  4200 		push	af
  4201 		or	a
  4201 		or		a
  4202 		rst	28h
  4202 		rst		28h
  4203 ; ---------------------------------------------------------------------------
  4203 ; ---------------------------------------------------------------------------
  4204 		.dw 8075h
  4204 		.dw		8075h
  4205 ; ---------------------------------------------------------------------------
  4205 ; ---------------------------------------------------------------------------
  4206 		jr	nz, p7Dloc_5338
  4206 		jr		nz, p7Dloc_5338
  4207 		pop	af
  4207 		pop		af
  4208 		push	af
  4208 		push	af
  4209 		push	hl
  4209 		push	hl
  4210 		inc	hl
  4210 		inc		hl
  4211 		rst	28h
  4211 		rst		28h
  4212 ; ---------------------------------------------------------------------------
  4212 ; ---------------------------------------------------------------------------
  4213 		.dw 805Ah
  4213 		.dw		805Ah
  4214 ; ---------------------------------------------------------------------------
  4214 ; ---------------------------------------------------------------------------
  4215 		call	p7Dsub_50C5
  4215 		call	p7Dsub_50C5
  4216 		jr	nz, p7Dloc_5362
  4216 		jr		nz, p7Dloc_5362
  4217 		pop	hl
  4217 		pop		hl
  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:
  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 =======================================
  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
  4239 		jr	p7Dloc_537C
  4239 		jr		p7Dloc_537C
  4240 ; End of function p7Dsub_5365
  4240 ; End of function p7Dsub_5365
  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 
  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:
  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
  4261 		push	hl
  4261 		push	hl
  4262 		call	p7Dsub_4566
  4262 		call	p7Dsub_4566
  4263 		cp	80h ; '�'
  4263 		cp		80h ; '�'
  4264 		jr	z, p7Dloc_53AC
  4264 		jr		z, p7Dloc_53AC
  4265 		push	af
  4265 		push	af
  4266 		call	p7Dsub_4565
  4266 		call	p7Dsub_4565
  4267 		cp	0
  4267 		cp		0
  4268 		pop	bc
  4268 		pop		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:
  4274 p7Dloc_5399:
  4275 		srl	b
  4275 		srl	b
  4276 
  4276 
  4277 p7Dloc_539B:
  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
  4283 		ld	b, c
  4283 		ld		b, c
  4284 		call	p7Dsub_456D
  4284 		call	p7Dsub_456D
  4285 		pop	bc
  4285 		pop		bc
  4286 		pop	de
  4286 		pop		de
  4287 		pop	hl
  4287 		pop		hl
  4288 		pop	ix
  4288 		pop		ix
  4289 		ret
  4289 		ret
  4290 ; ---------------------------------------------------------------------------
  4290 ; ---------------------------------------------------------------------------
  4291 
  4291 
  4292 p7Dloc_53AC:
  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
  4298 		ret
  4298 		ret
  4299 ; End of function p7Dsub_536F
  4299 ; End of function p7Dsub_536F
  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:
  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)
  4311 		push	af
  4311 		push	af
  4312 		ld	a, 1
  4312 		ld		a, 1
  4313 		nop
  4313 		nop
  4314 		di
  4314 		di
  4315 		nop
  4315 		nop
  4316 		nop
  4316 		nop
  4317 		im	1
  4317 		im	1
  4318 		di
  4318 		di
  4319 		out	(14h), a
  4319 		out		(14h), a
  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:
  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:
  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 
  4342 Page7D_2B5C:
  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
  4348 		rst	28h
  4348 		rst		28h
  4349 ; ---------------------------------------------------------------------------
  4349 ; ---------------------------------------------------------------------------
  4350 		.dw 80A8h
  4350 		.dw		80A8h
  4351 ; ---------------------------------------------------------------------------
  4351 ; ---------------------------------------------------------------------------
  4352 		jr	nz, p7Dloc_53FA
  4352 		jr		nz, p7Dloc_53FA
  4353 		call	p7Dsub_75EC
  4353 		call	p7Dsub_75EC
  4354 		sub	b
  4354 		sub		b
  4355 		inc	a
  4355 		inc		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:
  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
  4367 ; ---------------------------------------------------------------------------
  4367 ; ---------------------------------------------------------------------------
  4368 		.dw 8069h
  4368 		.dw		8069h
  4369 ; ---------------------------------------------------------------------------
  4369 ; ---------------------------------------------------------------------------
  4370 		pop	af
  4370 		pop		af
  4371 		ld	(appSearchPage), a
  4371 		ld		(appSearchPage), a
  4372 		jr	p7Dloc_5411
  4372 		jr		p7Dloc_5411
  4373 ; End of function Page7D_2B5C
  4373 ; End of function Page7D_2B5C
  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 
  4381 		push	hl
  4381 		push	hl
  4382 		push	bc
  4382 		push	bc
  4383 		push	ix
  4383 		push	ix
  4384 
  4384 
  4385 p7Dloc_5411:
  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:
  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
  4401 		or	a
  4401 		or		a
  4402 		adc	hl, bc
  4402 		adc	hl, bc
  4403 		pop	bc
  4403 		pop		bc
  4404 		ld	a, c
  4404 		ld		a, c
  4405 		and	7
  4405 		and		7
  4406 		call	p7Dsub_7BCC
  4406 		call	p7Dsub_7BCC
  4407 		ld	c, a
  4407 		ld		c, a
  4408 		call	p7Dsub_4566
  4408 		call	p7Dsub_4566
  4409 		and	c
  4409 		and		c
  4410 		pop	ix
  4410 		pop		ix
  4411 		pop	bc
  4411 		pop		bc
  4412 		pop	hl
  4412 		pop		hl
  4413 		pop	de
  4413 		pop		de
  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:
  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
  4425 		nop
  4425 		nop
  4426 		im	1
  4426 		im	1
  4427 		di
  4427 		di
  4428 		out	(14h), a
  4428 		out		(14h), a
  4429 		di
  4429 		di
  4430 		call	checkForFlashTrickery
  4430 		call	checkForFlashTrickery
  4431 		pop	af
  4431 		pop		af
  4432 		ld	b, a
  4432 		ld		b, a
  4433 		ld	de, 8060h
  4433 		ld		de, 8060h
  4434 		ld	hl, 4000h
  4434 		ld		hl, 4000h
  4435 		or	a
  4435 		or		a
  4436 		rst	28h
  4436 		rst		28h
  4437 ; ---------------------------------------------------------------------------
  4437 ; ---------------------------------------------------------------------------
  4438 		.dw 8075h
  4438 		.dw		8075h
  4439 ; ---------------------------------------------------------------------------
  4439 ; ---------------------------------------------------------------------------
  4440 		jr	nz, p7Dloc_549D
  4440 		jr		nz, p7Dloc_549D
  4441 		call	p7Dsub_75EC
  4441 		call	p7Dsub_75EC
  4442 		ld	c, b
  4442 		ld		c, b
  4443 		sub	c
  4443 		sub		c
  4444 		ld	bc, 0
  4444 		ld		bc, 0
  4445 		ld	c, a
  4445 		ld		c, a
  4446 		sla	c
  4446 		sla	c
  4447 		call	Page7D_2B68
  4447 		call	Page7D_2B68
  4448 		or	a
  4448 		or		a
  4449 		adc	hl, bc
  4449 		adc	hl, bc
  4450 		ld	a, 7Eh ; '~'
  4450 		ld		a, 7Eh ; '~'
  4451 		ld	de, OP1
  4451 		ld		de, OP1
  4452 		ld	bc, 2
  4452 		ld		bc, 2
  4453 		rst	28h
  4453 		rst		28h
  4454 ; ---------------------------------------------------------------------------
  4454 ; ---------------------------------------------------------------------------
  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:
  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:
  4468 p7Dloc_5486:
  4469 		ld	a, (OP1+1)
  4469 		ld		a, (OP1+1)
  4470 
  4470 
  4471 p7Dloc_5489:
  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:
  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:
  4486 p7Dloc_549D:
  4487 		jp	relockFlashBack
  4487 		jp		relockFlashBack
  4488 ; ---------------------------------------------------------------------------
  4488 ; ---------------------------------------------------------------------------
  4489 
  4489 
  4490 p7Dloc_54A0:
  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
  4496 ; ---------------------------------------------------------------------------
  4496 ; ---------------------------------------------------------------------------
  4497 		.dw 8075h
  4497 		.dw		8075h
  4498 ; ---------------------------------------------------------------------------
  4498 ; ---------------------------------------------------------------------------
  4499 		jr	nz, locret_54BE
  4499 		jr		nz, locret_54BE
  4500 		ld	a, b
  4500 		ld		a, b
  4501 		push	af
  4501 		push	af
  4502 		inc	hl
  4502 		inc		hl
  4503 		rst	28h
  4503 		rst		28h
  4504 ; ---------------------------------------------------------------------------
  4504 ; ---------------------------------------------------------------------------
  4505 		.dw 805Ah
  4505 		.dw		805Ah
  4506 ; ---------------------------------------------------------------------------
  4506 ; ---------------------------------------------------------------------------
  4507 		pop	af
  4507 		pop		af
  4508 		ld	de, OP1
  4508 		ld		de, OP1
  4509 		rst	28h
  4509 		rst		28h
  4510 ; ---------------------------------------------------------------------------
  4510 ; ---------------------------------------------------------------------------
  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:
  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
  4522 		ld	a, 7Ah ; 'z'
  4522 		ld		a, 7Ah ; 'z'
  4523 		or	a
  4523 		or		a
  4524 		rst	28h
  4524 		rst		28h
  4525 ; ---------------------------------------------------------------------------
  4525 ; ---------------------------------------------------------------------------
  4526 		.dw 8075h
  4526 		.dw		8075h
  4527 ; ---------------------------------------------------------------------------
  4527 ; ---------------------------------------------------------------------------
  4528 		ld	a, 7Ah ; 'z'
  4528 		ld		a, 7Ah ; 'z'
  4529 		rst	28h
  4529 		rst		28h
  4530 ; ---------------------------------------------------------------------------
  4530 ; ---------------------------------------------------------------------------
  4531 		.dw 8051h
  4531 		.dw		8051h
  4532 ; ---------------------------------------------------------------------------
  4532 ; ---------------------------------------------------------------------------
  4533 		ld	d, a
  4533 		ld		d, a
  4534 		ld	a, 7Ah ; 'z'
  4534 		ld		a, 7Ah ; 'z'
  4535 		rst	28h
  4535 		rst		28h
  4536 ; ---------------------------------------------------------------------------
  4536 ; ---------------------------------------------------------------------------
  4537 		.dw 8051h
  4537 		.dw		8051h
  4538 ; ---------------------------------------------------------------------------
  4538 ; ---------------------------------------------------------------------------
  4539 		ld	e, a
  4539 		ld		e, a
  4540 		pop	hl
  4540 		pop		hl
  4541 		ret
  4541 		ret
  4542 ; ---------------------------------------------------------------------------
  4542 ; ---------------------------------------------------------------------------
  4543 
  4543 
  4544 Page7D_3C66:
  4544 Page7D_3C66:
  4545 		ld	(Abackup), a
  4545 		ld		(Abackup), a
  4546 		ld	a, i
  4546 		ld		a, i
  4547 		di
  4547 		di
  4548 		push	af
  4548 		push	af
  4549 		ld	a, (Abackup)
  4549 		ld		a, (Abackup)
  4550 		push	hl
  4550 		push	hl
  4551 		push	de
  4551 		push	de
  4552 		push	af
  4552 		push	af
  4553 		ld	a, 1
  4553 		ld		a, 1
  4554 		nop
  4554 		nop
  4555 		di
  4555 		di
  4556 		nop
  4556 		nop
  4557 		nop
  4557 		nop
  4558 		im	1
  4558 		im	1
  4559 		di
  4559 		di
  4560 		out	(14h), a
  4560 		out		(14h), a
  4561 		di
  4561 		di
  4562 		call	checkForFlashTrickery
  4562 		call	checkForFlashTrickery
  4563 		pop	af
  4563 		pop		af
  4564 		ld	de, 510h
  4564 		ld		de, 510h
  4565 		push	de
  4565 		push	de
  4566 		jr	p7Dloc_54FD
  4566 		jr		p7Dloc_54FD
  4567 
  4567 
  4568 p7Dloc_54FD:
  4568 p7Dloc_54FD:
  4569 		call	p7Dsub_70D1
  4569 		call	p7Dsub_70D1
  4570 		jr	nz, p7Dloc_551F
  4570 		jr		nz, p7Dloc_551F
  4571 		ld	de, 500h
  4571 		ld		de, 500h
  4572 		call	p7Dsub_777E
  4572 		call	p7Dsub_777E
  4573 		jr	nz, p7Dloc_551F
  4573 		jr		nz, p7Dloc_551F
  4574 		call	p7Dsub_4574
  4574 		call	p7Dsub_4574
  4575 		ld	a, 7Eh ; '~'
  4575 		ld		a, 7Eh ; '~'
  4576 		pop	de
  4576 		pop		de
  4577 		rst	28h
  4577 		rst		28h
  4578 ; ---------------------------------------------------------------------------
  4578 ; ---------------------------------------------------------------------------
  4579 		.dw 8030h
  4579 		.dw		8030h
  4580 ; ---------------------------------------------------------------------------
  4580 ; ---------------------------------------------------------------------------
  4581 		jr	nz, p7Dloc_5520
  4581 		jr		nz, p7Dloc_5520
  4582 		ld	de, tempSwapArea
  4582 		ld		de, tempSwapArea
  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:
  4588 p7Dloc_551F:
  4589 		pop	bc
  4589 		pop		bc
  4590 
  4590 
  4591 p7Dloc_5520:
  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:
  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 ; ---------------------------------------------------------------------------
  4605 		.dw _LoadAIndPaged
  4605 		.dw		_LoadAIndPaged
  4606 ; ---------------------------------------------------------------------------
  4606 ; ---------------------------------------------------------------------------
  4607 		call	p7Dsub_75FD
  4607 		call	p7Dsub_75FD
  4608 		jp	nz, p7Dloc_55C8
  4608 		jp		nz, p7Dloc_55C8
  4609 		inc	hl
  4609 		inc		hl
  4610 		pop	af
  4610 		pop		af
  4611 		call	p7Dsub_761F
  4611 		call	p7Dsub_761F
  4612 		ld	bc, 4000h
  4612 		ld		bc, 4000h
  4613 		or	a
  4613 		or		a
  4614 		sbc	hl, bc
  4614 		sbc		hl, bc
  4615 		push	hl
  4615 		push	hl
  4616 		push	af
  4616 		push	af
  4617 		ld	hl, 4000h
  4617 		ld		hl, 4000h
  4618 		ld	de, 8080h
  4618 		ld		de, 8080h
  4619 		or	a
  4619 		or		a
  4620 		rst	28h
  4620 		rst		28h
  4621 ; ---------------------------------------------------------------------------
  4621 ; ---------------------------------------------------------------------------
  4622 		.dw 8075h
  4622 		.dw		8075h
  4623 ; ---------------------------------------------------------------------------
  4623 ; ---------------------------------------------------------------------------
  4624 		inc	hl
  4624 		inc		hl
  4625 		pop	af
  4625 		pop		af
  4626 		push	af
  4626 		push	af
  4627 		rst	28h
  4627 		rst		28h
  4628 ; ---------------------------------------------------------------------------
  4628 ; ---------------------------------------------------------------------------
  4629 		.dw 805Ah
  4629 		.dw		805Ah
  4630 ; ---------------------------------------------------------------------------
  4630 ; ---------------------------------------------------------------------------
  4631 		pop	af
  4631 		pop		af
  4632 		push	af
  4632 		push	af
  4633 		rst	28h
  4633 		rst		28h
  4634 ; ---------------------------------------------------------------------------
  4634 ; ---------------------------------------------------------------------------
  4635 		.dw 8051h
  4635 		.dw		8051h
  4636 ; ---------------------------------------------------------------------------
  4636 ; ---------------------------------------------------------------------------
  4637 
  4637 
  4638 p7Dloc_5555:				; DATA XREF: seg001:76C0w
  4638 p7Dloc_5555:				; DATA XREF: seg001:76C0w
  4639 		dec	a
  4639 		dec		a
  4640 		or	a
  4640 		or		a
  4641 		jr	z, p7Dloc_5574
  4641 		jr		z, p7Dloc_5574
  4642 		ld	c, a
  4642 		ld		c, a
  4643 		pop	af
  4643 		pop		af
  4644 		sub	c
  4644 		sub		c
  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:
  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:
  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
  4666 		or	a
  4666 		or		a
  4667 		adc	hl, bc
  4667 		adc	hl, bc
  4668 		pop	af
  4668 		pop		af
  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:
  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
  4680 		jr	nz, p7Dloc_55C8
  4680 		jr		nz, p7Dloc_55C8
  4681 		pop	af
  4681 		pop		af
  4682 		push	hl
  4682 		push	hl
  4683 		push	af
  4683 		push	af
  4684 		inc	hl
  4684 		inc		hl
  4685 		rst	28h
  4685 		rst		28h
  4686 ; ---------------------------------------------------------------------------
  4686 ; ---------------------------------------------------------------------------
  4687 		.dw 8051h
  4687 		.dw		8051h
  4688 ; ---------------------------------------------------------------------------
  4688 ; ---------------------------------------------------------------------------
  4689 		and	0F0h ; '�'
  4689 		and		0F0h ; '�'
  4690 		cp	20h ; ' '
  4690 		cp		20h ; ' '
  4691 		jr	z, p7Dloc_55A8
  4691 		jr		z, p7Dloc_55A8
  4692 		pop	af
  4692 		pop		af
  4693 		pop	hl
  4693 		pop		hl
  4694 		push	af
  4694 		push	af
  4695 		inc	hl
  4695 		inc		hl
  4696 		rst	28h
  4696 		rst		28h
  4697 ; ---------------------------------------------------------------------------
  4697 ; ---------------------------------------------------------------------------
  4698 		.dw 805Ah
  4698 		.dw		805Ah
  4699 ; ---------------------------------------------------------------------------
  4699 ; ---------------------------------------------------------------------------
  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:
  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:
  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
  4722 ; ---------------------------------------------------------------------------
  4722 ; ---------------------------------------------------------------------------
  4723 		ld	(de), a
  4723 		ld		(de), a
  4724 		inc	hl
  4724 		inc		hl
  4725 		inc	de
  4725 		inc		de
  4726 		dec	bc
  4726 		dec		bc
  4727 		ld	a, c
  4727 		ld		a, c
  4728 		or	b
  4728 		or		b
  4729 		jr	nz, p7Dloc_55B2
  4729 		jr		nz, p7Dloc_55B2
  4730 		pop	af
  4730 		pop		af
  4731 		pop	hl
  4731 		pop		hl
  4732 		ld	b, a
  4732 		ld		b, a
  4733 		ld	a, 0
  4733 		ld		a, 0
  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:
  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:
  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:
  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
  4766 ; ---------------------------------------------------------------------------
  4766 ; ---------------------------------------------------------------------------
  4767 		cp	2
  4767 		cp		2
  4768 		jr	nz, p7Dloc_5609
  4768 		jr		nz, p7Dloc_5609
  4769 		inc	hl
  4769 		inc		hl
  4770 		pop	af
  4770 		pop		af
  4771 		push	af
  4771 		push	af
  4772 		rst	28h
  4772 		rst		28h
  4773 ; ---------------------------------------------------------------------------
  4773 ; ---------------------------------------------------------------------------
  4774 		.dw 8051h
  4774 		.dw		8051h
  4775 ; ---------------------------------------------------------------------------
  4775 ; ---------------------------------------------------------------------------
  4776 		and	0F0h ; '�'
  4776 		and		0F0h ; '�'
  4777 		cp	0
  4777 		cp		0
  4778 		jr	z, p7Dloc_55F5
  4778 		jr		z, p7Dloc_55F5
  4779 		pop	af
  4779 		pop		af
  4780 		push	af
  4780 		push	af
  4781 		rst	28h
  4781 		rst		28h
  4782 ; ---------------------------------------------------------------------------
  4782 ; ---------------------------------------------------------------------------
  4783 		.dw 805Ah
  4783 		.dw		805Ah
  4784 ; ---------------------------------------------------------------------------
  4784 ; ---------------------------------------------------------------------------
  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:
  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 ; ---------------------------------------------------------------------------
  4796 		dec	hl
  4796 		dec		hl
  4797 		inc	bc
  4797 		inc		bc
  4798 		ld	de, tempSwapArea
  4798 		ld		de, tempSwapArea
  4799 		rst	28h
  4799 		rst		28h
  4800 ; ---------------------------------------------------------------------------
  4800 ; ---------------------------------------------------------------------------
  4801 		.dw 8054h
  4801 		.dw		8054h
  4802 ; ---------------------------------------------------------------------------
  4802 ; ---------------------------------------------------------------------------
  4803 		ld	b, c
  4803 		ld		b, c
  4804 		ld	c, 0
  4804 		ld		c, 0
  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:
  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:
  4817 p7Dloc_560B:
  4818 
  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 ; ---------------------------------------------------------------------------
  4824 		.dw 807Eh
  4824 		.dw		807Eh
  4825 ; ---------------------------------------------------------------------------
  4825 ; ---------------------------------------------------------------------------
  4826 		jr	nz, p7Dloc_5640
  4826 		jr		nz, p7Dloc_5640
  4827 		push	af
  4827 		push	af
  4828 		ld	a, 1
  4828 		ld		a, 1
  4829 		nop
  4829 		nop
  4830 		di
  4830 		di
  4831 		nop
  4831 		nop
  4832 		nop
  4832 		nop
  4833 		im	1
  4833 		im	1
  4834 		di
  4834 		di
  4835 		out	(14h), a
  4835 		out		(14h), a
  4836 		di
  4836 		di
  4837 		call	checkForFlashTrickery
  4837 		call	checkForFlashTrickery
  4838 		pop	af
  4838 		pop		af
  4839 		rst	28h
  4839 		rst		28h
  4840 ; ---------------------------------------------------------------------------
  4840 ; ---------------------------------------------------------------------------
  4841 		.dw 8057h
  4841 		.dw		8057h
  4842 ; ---------------------------------------------------------------------------
  4842 ; ---------------------------------------------------------------------------
  4843 		ld	a, 7Eh ; '~'
  4843 		ld		a, 7Eh ; '~'
  4844 		ld	de, 410h
  4844 		ld		de, 410h
  4845 		rst	28h
  4845 		rst		28h
  4846 ; ---------------------------------------------------------------------------
  4846 ; ---------------------------------------------------------------------------
  4847 		.dw 8027h
  4847 		.dw		8027h
  4848 ; ---------------------------------------------------------------------------
  4848 ; ---------------------------------------------------------------------------
  4849 		jr	nz, p7Dloc_5640
  4849 		jr		nz, p7Dloc_5640
  4850 		call	p7Dsub_4574
  4850 		call	p7Dsub_4574
  4851 		ld	a, 7Eh ; '~'
  4851 		ld		a, 7Eh ; '~'
  4852 		ld	de, 849Eh
  4852 		ld		de, 849Eh
  4853 		rst	28h
  4853 		rst		28h
  4854 ; ---------------------------------------------------------------------------
  4854 ; ---------------------------------------------------------------------------
  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:
  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 ; ---------------------------------------------------------------------------
  4866 
  4866 
  4867 Page7D_2B98:
  4867 Page7D_2B98:
  4868 		call	Page0Call_23DE
  4868 		call	Page0Call_23DE
  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:
  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:
  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
  4886 		jr	nz, p7Dloc_5689
  4886 		jr		nz, p7Dloc_5689
  4887 		call	OP1Set0
  4887 		call	OP1Set0
  4888 		ld	de, OP1M
  4888 		ld		de, OP1M
  4889 		ld	hl, OP4
  4889 		ld		hl, OP4
  4890 		ld	c, 7
  4890 		ld		c, 7
  4891 		ld	b, 0
  4891 		ld		b, 0
  4892 		ldir
  4892 		ldir
  4893 		pop	hl
  4893 		pop		hl
  4894 		pop	de
  4894 		pop		de
  4895 		push	de
  4895 		push	de
  4896 		call	Page0Call_3AE9
  4896 		call	Page0Call_3AE9
  4897 		ex	de, hl
  4897 		ex		de, hl
  4898 		ld	hl, OP1
  4898 		ld		hl, OP1
  4899 		ld	a, (hl)
  4899 		ld		a, (hl)
  4900 		call	mov9B2
  4900 		call	mov9B2
  4901 		pop	hl
  4901 		pop		hl
  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:
  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
  4913 		rst	28h
  4913 		rst		28h
  4914 ; ---------------------------------------------------------------------------
  4914 ; ---------------------------------------------------------------------------
  4915 		.dw 807Eh
  4915 		.dw		807Eh
  4916 ; ---------------------------------------------------------------------------
  4916 ; ---------------------------------------------------------------------------
  4917 		pop	hl
  4917 		pop		hl
  4918 		pop	de
  4918 		pop		de
  4919 		pop	bc
  4919 		pop		bc
  4920 		ret
  4920 		ret
  4921 ; ---------------------------------------------------------------------------
  4921 ; ---------------------------------------------------------------------------
  4922 
  4922 
  4923 p7Dloc_5695:
  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 ; ---------------------------------------------------------------------------
  4929 		.dw 807Eh
  4929 		.dw		807Eh
  4930 ; ---------------------------------------------------------------------------
  4930 ; ---------------------------------------------------------------------------
  4931 		pop	hl
  4931 		pop		hl
  4932 		pop	de
  4932 		pop		de
  4933 		pop	bc
  4933 		pop		bc
  4934 		ex	de, hl
  4934 		ex		de, hl
  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:
  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
  4946 		ld	c, (hl)
  4946 		ld		c, (hl)
  4947 		inc	hl
  4947 		inc		hl
  4948 		ld	b, (hl)
  4948 		ld		b, (hl)
  4949 		dec	hl
  4949 		dec		hl
  4950 		ex	de, hl
  4950 		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:
  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:
  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:
  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
  4981 		ld	a, c
  4981 		ld		a, c
  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:
  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:
  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
  5001 		pop	de
  5001 		pop		de
  5002 		pop	hl
  5002 		pop		hl
  5003 		pop	bc
  5003 		pop		bc
  5004 		ret
  5004 		ret
  5005 ; End of function Page7D_2C34
  5005 ; End of function Page7D_2C34
  5006 
  5006 
  5007 ; ---------------------------------------------------------------------------
  5007 ; ---------------------------------------------------------------------------
  5008 
  5008 
  5009 Page7D_2C2E:
  5009 Page7D_2C2E:
  5010 		push	hl
  5010 		push	hl
  5011 		push	de
  5011 		push	de
  5012 		push	bc
  5012 		push	bc
  5013 		push	af
  5013 		push	af
  5014 		ld	hl, 4000h
  5014 		ld		hl, 4000h
  5015 		inc	hl
  5015 		inc		hl
  5016 		rst	28h
  5016 		rst		28h
  5017 ; ---------------------------------------------------------------------------
  5017 ; ---------------------------------------------------------------------------
  5018 		.dw 8051h
  5018 		.dw		8051h
  5019 ; ---------------------------------------------------------------------------
  5019 ; ---------------------------------------------------------------------------
  5020 		call	p7Dsub_75FD
  5020 		call	p7Dsub_75FD
  5021 		jr	nz, p7Dloc_5737
  5021 		jr		nz, p7Dloc_5737
  5022 		inc	hl
  5022 		inc		hl
  5023 		pop	af
  5023 		pop		af
  5024 		call	p7Dsub_761F
  5024 		call	p7Dsub_761F
  5025 		ld	hl, (unk_839F)
  5025 		ld		hl, (unk_839F)
  5026 		push	hl
  5026 		push	hl
  5027 		ld	hl, (unk_83A1)
  5027 		ld		hl, (unk_83A1)
  5028 		push	hl
  5028 		push	hl
  5029 		push	af
  5029 		push	af
  5030 		call	p7Dsub_5525
  5030 		call	p7Dsub_5525
  5031 		push	hl
  5031 		push	hl
  5032 		inc	hl
  5032 		inc		hl
  5033 		rst	28h
  5033 		rst		28h
  5034 ; ---------------------------------------------------------------------------
  5034 ; ---------------------------------------------------------------------------
  5035 		.dw 805Ah
  5035 		.dw		805Ah
  5036 ; ---------------------------------------------------------------------------
  5036 ; ---------------------------------------------------------------------------
  5037 		or	a
  5037 		or		a
  5038 		adc	hl, bc
  5038 		adc	hl, bc
  5039 		pop	bc
  5039 		pop		bc
  5040 		or	a
  5040 		or		a
  5041 		sbc	hl, bc
  5041 		sbc		hl, bc
  5042 		pop	af
  5042 		pop		af
  5043 		pop	bc
  5043 		pop		bc
  5044 		ld	(unk_83A1), bc
  5044 		ld		(unk_83A1), bc
  5045 		pop	bc
  5045 		pop		bc
  5046 		ld	(unk_839F), bc
  5046 		ld		(unk_839F), bc
  5047 		push	af
  5047 		push	af
  5048 		push	hl
  5048 		push	hl
  5049 		ld	hl, 4000h
  5049 		ld		hl, 4000h
  5050 		inc	hl
  5050 		inc		hl
  5051 		rst	28h
  5051 		rst		28h
  5052 ; ---------------------------------------------------------------------------
  5052 ; ---------------------------------------------------------------------------
  5053 		.dw 805Ah
  5053 		.dw		805Ah
  5054 ; ---------------------------------------------------------------------------
  5054 ; ---------------------------------------------------------------------------
  5055 		ld	bc, 4000h
  5055 		ld		bc, 4000h
  5056 		or	a
  5056 		or		a
  5057 		sbc	hl, bc
  5057 		sbc		hl, bc
  5058 		push	hl
  5058 		push	hl
  5059 		pop	bc
  5059 		pop		bc
  5060 		call	p7Dsub_573C
  5060 		call	p7Dsub_573C
  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:
  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:
  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
  5082 		ld	(unk_83A1), hl
  5082 		ld		(unk_83A1), hl
  5083 		ret	nc
  5083 		ret		nc
  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:
  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 =======================================
  5098 p7Dsub_5757:
  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:
  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:
  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
  5121 ; End of function p7Dsub_5757
  5121 ; End of function p7Dsub_5757
  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:
  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
  5133 		sub	b
  5133 		sub		b
  5134 		ld	b, 0
  5134 		ld		b, 0
  5135 		ld	c, a
  5135 		ld		c, a
  5136 		ld	hl, tempSwapArea
  5136 		ld		hl, tempSwapArea
  5137 		sla	c
  5137 		sla	c
  5138 		add	hl, bc
  5138 		add		hl, bc
  5139 		ld	a, 0FFh
  5139 		ld		a, 0FFh
  5140 		ld	(hl), a
  5140 		ld		(hl), a
  5141 		inc	hl
  5141 		inc		hl
  5142 		ld	(hl), a
  5142 		ld		(hl), a
  5143 		ld	a, 1
  5143 		ld		a, 1
  5144 		call	Page7D_2B62
  5144 		call	Page7D_2B62
  5145 		pop	af
  5145 		pop		af
  5146 		ret
  5146 		ret
  5147 ; End of function p7Dsub_576D
  5147 ; End of function p7Dsub_576D
  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:
  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)
  5159 		call	p7Dsub_57C5
  5159 		call	p7Dsub_57C5
  5160 		ld	a, h
  5160 		ld		a, h
  5161 		or	l
  5161 		or		l
  5162 		jr	nz, p7Dloc_57B2
  5162 		jr		nz, p7Dloc_57B2
  5163 		ld	hl, (unk_839F)
  5163 		ld		hl, (unk_839F)
  5164 		ld	a, h
  5164 		ld		a, h
  5165 		or	l
  5165 		or		l
  5166 		jr	z, p7Dloc_57C3
  5166 		jr		z, p7Dloc_57C3
  5167 		call	p7Dsub_57C5
  5167 		call	p7Dsub_57C5
  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:
  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:
  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:
  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
  5198 		ret
  5198 		ret
  5199 ; End of function p7Dsub_57C5
  5199 ; End of function p7Dsub_57C5
  5200 
  5200 
  5201 ; ---------------------------------------------------------------------------
  5201 ; ---------------------------------------------------------------------------
  5202 
  5202 
  5203 Page7D_2B9E:
  5203 Page7D_2B9E:
  5204 		push	bc
  5204 		push	bc
  5205 		push	de
  5205 		push	de
  5206 		call	p7Dsub_5980
  5206 		call	p7Dsub_5980
  5207 		jp	z, p7Dloc_5973
  5207 		jp		z, p7Dloc_5973
  5208 		rst	28h
  5208 		rst		28h
  5209 ; ---------------------------------------------------------------------------
  5209 ; ---------------------------------------------------------------------------
  5210 		.dw 8057h
  5210 		.dw		8057h
  5211 ; ---------------------------------------------------------------------------
  5211 ; ---------------------------------------------------------------------------
  5212 		push	hl
  5212 		push	hl
  5213 		push	hl
  5213 		push	hl
  5214 		pop	bc
  5214 		pop		bc
  5215 		rst	28h
  5215 		rst		28h
  5216 ; ---------------------------------------------------------------------------
  5216 ; ---------------------------------------------------------------------------
  5217 		.dw 802Dh
  5217 		.dw		802Dh
  5218 ; ---------------------------------------------------------------------------
  5218 ; ---------------------------------------------------------------------------
  5219 		or	a
  5219 		or		a
  5220 		sbc	hl, bc
  5220 		sbc		hl, bc
  5221 		dec	hl
  5221 		dec		hl
  5222 		ld	(appInfo), hl
  5222 		ld		(appInfo), hl
  5223 		push	hl
  5223 		push	hl
  5224 		pop	bc
  5224 		pop		bc
  5225 		pop	hl
  5225 		pop		hl
  5226 		push	hl
  5226 		push	hl
  5227 		call	p7Dsub_4565
  5227 		call	p7Dsub_4565
  5228 		dec	hl
  5228 		dec		hl
  5229 		cp	0FFh
  5229 		cp		0FFh
  5230 		jp	z, p7Dloc_5972
  5230 		jp		z, p7Dloc_5972
  5231 		cp	0
  5231 		cp		0
  5232 		jp	z, JErrorNo
  5232 		jp		z, JErrorNo
  5233 		call	p7Dsub_42D3
  5233 		call	p7Dsub_42D3
  5234 		call	p7Dsub_5980
  5234 		call	p7Dsub_5980
  5235 		jp	z, p7Dloc_5972
  5235 		jp		z, p7Dloc_5972
  5236 		pop	de
  5236 		pop		de
  5237 		inc	de
  5237 		inc		de
  5238 		ex	de, hl
  5238 		ex		de, hl
  5239 		call	p7Dsub_597A
  5239 		call	p7Dsub_597A
  5240 		ld	(OP2), a
  5240 		ld		(OP2), a
  5241 		call	p7Dsub_40A6
  5241 		call	p7Dsub_40A6
  5242 		or	a
  5242 		or		a
  5243 		ex	de, hl
  5243 		ex		de, hl
  5244 		adc	hl, bc
  5244 		adc	hl, bc
  5245 		push	hl
  5245 		push	hl
  5246 		ld	de, 0A20h
  5246 		ld		de, 0A20h
  5247 		rst	28h
  5247 		rst		28h
  5248 ; ---------------------------------------------------------------------------
  5248 ; ---------------------------------------------------------------------------
  5249 		.dw 8027h
  5249 		.dw		8027h
  5250 ; ---------------------------------------------------------------------------
  5250 ; ---------------------------------------------------------------------------
  5251 		jr	nz, p7Dloc_5832
  5251 		jr		nz, p7Dloc_5832
  5252 		ld	a, h
  5252 		ld		a, h
  5253 		and	0Fh
  5253 		and		0Fh
  5254 		or	40h ; '@'
  5254 		or		40h ; '@'
  5255 		ld	h, a
  5255 		ld		h, a
  5256 		call	p7Dsub_597A
  5256 		call	p7Dsub_597A
  5257 		rst	28h
  5257 		rst		28h
  5258 ; ---------------------------------------------------------------------------
  5258 ; ---------------------------------------------------------------------------
  5259 		.dw 805Ah
  5259 		.dw		805Ah
  5260 ; ---------------------------------------------------------------------------
  5260 ; ---------------------------------------------------------------------------
  5261 
  5261 
  5262 p7Dloc_5823:
  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
  5268 ; ---------------------------------------------------------------------------
  5268 ; ---------------------------------------------------------------------------
  5269 		.dw 8021h
  5269 		.dw		8021h
  5270 ; ---------------------------------------------------------------------------
  5270 ; ---------------------------------------------------------------------------
  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:
  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
  5282 		rst	28h
  5282 		rst		28h
  5283 ; ---------------------------------------------------------------------------
  5283 ; ---------------------------------------------------------------------------
  5284 		.dw 8075h
  5284 		.dw		8075h
  5285 ; ---------------------------------------------------------------------------
  5285 ; ---------------------------------------------------------------------------
  5286 		inc	hl
  5286 		inc		hl
  5287 		ld	a, 7Ah ; 'z'
  5287 		ld		a, 7Ah ; 'z'
  5288 		rst	28h
  5288 		rst		28h
  5289 ; ---------------------------------------------------------------------------
  5289 ; ---------------------------------------------------------------------------
  5290 		.dw 805Ah
  5290 		.dw		805Ah
  5291 ; ---------------------------------------------------------------------------
  5291 ; ---------------------------------------------------------------------------
  5292 		ld	bc, 4000h
  5292 		ld		bc, 4000h
  5293 		or	a
  5293 		or		a
  5294 		sbc	hl, bc
  5294 		sbc		hl, bc
  5295 		push	hl
  5295 		push	hl
  5296 		pop	bc
  5296 		pop		bc
  5297 		ld	de, ramStart
  5297 		ld		de, ramStart
  5298 		ld	hl, 4000h
  5298 		ld		hl, 4000h
  5299 		ld	a, 7Ah ; 'z'
  5299 		ld		a, 7Ah ; 'z'
  5300 		push	bc
  5300 		push	bc
  5301 		rst	28h
  5301 		rst		28h
  5302 ; ---------------------------------------------------------------------------
  5302 ; ---------------------------------------------------------------------------
  5303 		.dw 8054h
  5303 		.dw		8054h
  5304 ; ---------------------------------------------------------------------------
  5304 ; ---------------------------------------------------------------------------
  5305 		pop	bc
  5305 		pop		bc
  5306 		pop	de
  5306 		pop		de
  5307 		ld	hl, ramStart
  5307 		ld		hl, ramStart
  5308 		call	p7Dsub_597A
  5308 		call	p7Dsub_597A
  5309 		push	bc
  5309 		push	bc
  5310 		rst	28h
  5310 		rst		28h
  5311 ; ---------------------------------------------------------------------------
  5311 ; ---------------------------------------------------------------------------
  5312 		.dw 8087h
  5312 		.dw		8087h
  5313 ; ---------------------------------------------------------------------------
  5313 ; ---------------------------------------------------------------------------
  5314 		pop	bc
  5314 		pop		bc
  5315 		push	de
  5315 		push	de
  5316 		ld	hl, (appInfo)
  5316 		ld		hl, (appInfo)
  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:
  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
  5328 		pop	de
  5328 		pop		de
  5329 		ld	bc, 4000h
  5329 		ld		bc, 4000h
  5330 		or	a
  5330 		or		a
  5331 		sbc	hl, bc
  5331 		sbc		hl, bc
  5332 		push	hl
  5332 		push	hl
  5333 		pop	bc
  5333 		pop		bc
  5334 		or	a
  5334 		or		a
  5335 		ld	hl, (appInfo)
  5335 		ld		hl, (appInfo)
  5336 		adc	hl, bc
  5336 		adc	hl, bc
  5337 		ld	(appInfo), hl
  5337 		ld		(appInfo), hl
  5338 		ld	hl, 4000h
  5338 		ld		hl, 4000h
  5339 		push	af
  5339 		push	af
  5340 		call	p7Dsub_597A
  5340 		call	p7Dsub_597A
  5341 		ld	(OP2), a
  5341 		ld		(OP2), a
  5342 		pop	af
  5342 		pop		af
  5343 		call	p7Dloc_40A9
  5343 		call	p7Dloc_40A9
  5344 		or	a
  5344 		or		a
  5345 		ex	de, hl
  5345 		ex		de, hl
  5346 		adc	hl, bc
  5346 		adc	hl, bc
  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:
  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 ; ---------------------------------------------------------------------------
  5358 		ld	hl, 4000h
  5358 		ld		hl, 4000h
  5359 		push	hl
  5359 		push	hl
  5360 		ld	hl, 0
  5360 		ld		hl, 0
  5361 		ld	(unk_839F), hl
  5361 		ld		(unk_839F), hl
  5362 		ld	hl, (appInfo)
  5362 		ld		hl, (appInfo)
  5363 		call	p7Dsub_57C5
  5363 		call	p7Dsub_57C5
  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:
  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
  5375 		push	hl
  5375 		push	hl
  5376 		call	FlashToRam
  5376 		call	FlashToRam
  5377 		call	p7Dsub_5E0A
  5377 		call	p7Dsub_5E0A
  5378 		call	p7Dsub_578D
  5378 		call	p7Dsub_578D
  5379 		ld	a, h
  5379 		ld		a, h
  5380 		or	l
  5380 		or		l
  5381 		pop	hl
  5381 		pop		hl
  5382 		inc	hl
  5382 		inc		hl
  5383 		jr	nz, p7Dloc_58CA
  5383 		jr		nz, p7Dloc_58CA
  5384 		inc	hl
  5384 		inc		hl
  5385 		inc	hl
  5385 		inc		hl
  5386 		push	hl
  5386 		push	hl
  5387 		rst	28h
  5387 		rst		28h
  5388 ; ---------------------------------------------------------------------------
  5388 ; ---------------------------------------------------------------------------
  5389 		.dw 8018h
  5389 		.dw		8018h
  5390 ; ---------------------------------------------------------------------------
  5390 ; ---------------------------------------------------------------------------
  5391 		ld	hl, 0D02h
  5391 		ld		hl, 0D02h
  5392 		ld	(OP1), hl
  5392 		ld		(OP1), hl
  5393 		ld	hl, OP1
  5393 		ld		hl, OP1
  5394 		pop	de
  5394 		pop		de
  5395 		push	de
  5395 		push	de
  5396 		dec	de
  5396 		dec		de
  5397 		dec	de
  5397 		dec		de
  5398 		ld	bc, 2
  5398 		ld		bc, 2
  5399 		call	p7Dsub_597A
  5399 		call	p7Dsub_597A
  5400 		rst	28h
  5400 		rst		28h
  5401 ; ---------------------------------------------------------------------------
  5401 ; ---------------------------------------------------------------------------
  5402 		.dw 8087h
  5402 		.dw		8087h
  5403 ; ---------------------------------------------------------------------------
  5403 ; ---------------------------------------------------------------------------
  5404 		call	p7Dsub_5980
  5404 		call	p7Dsub_5980
  5405 		jp	z, p7Dloc_5972
  5405 		jp		z, p7Dloc_5972
  5406 		ld	de, 0A20h
  5406 		ld		de, 0A20h
  5407 		rst	28h
  5407 		rst		28h
  5408 ; ---------------------------------------------------------------------------
  5408 ; ---------------------------------------------------------------------------
  5409 		.dw 8027h
  5409 		.dw		8027h
  5410 ; ---------------------------------------------------------------------------
  5410 ; ---------------------------------------------------------------------------
  5411 		call	p7Dsub_4574
  5411 		call	p7Dsub_4574
  5412 		inc	bc
  5412 		inc		bc
  5413 		dec	hl
  5413 		dec		hl
  5414 		ld	de, ramStart
  5414 		ld		de, ramStart
  5415 		rst	28h
  5415 		rst		28h
  5416 ; ---------------------------------------------------------------------------
  5416 ; ---------------------------------------------------------------------------
  5417 		.dw 8054h
  5417 		.dw		8054h
  5418 ; ---------------------------------------------------------------------------
  5418 ; ---------------------------------------------------------------------------
  5419 		ld	de, bigInteger1
  5419 		ld		de, bigInteger1
  5420 		ld	b, 0
  5420 		ld		b, 0
  5421 		ld	a, (unk_8291)
  5421 		ld		a, (unk_8291)
  5422 		ld	c, a
  5422 		ld		c, a
  5423 		ld	hl, 8291h
  5423 		ld		hl, 8291h
  5424 		inc	bc
  5424 		inc		bc
  5425 		ldir
  5425 		ldir
  5426 		rst	28h
  5426 		rst		28h
  5427 ; ---------------------------------------------------------------------------
  5427 ; ---------------------------------------------------------------------------
  5428 		.dw 80C0h
  5428 		.dw		80C0h
  5429 ; ---------------------------------------------------------------------------
  5429 ; ---------------------------------------------------------------------------
  5430 		pop	de
  5430 		pop		de
  5431 		ld	hl, OP1
  5431 		ld		hl, OP1
  5432 		ld	b, 0
  5432 		ld		b, 0
  5433 		ld	a, (hl)
  5433 		ld		a, (hl)
  5434 		ld	c, a
  5434 		ld		c, a
  5435 		inc	bc
  5435 		inc		bc
  5436 		call	p7Dsub_597A
  5436 		call	p7Dsub_597A
  5437 		push	bc
  5437 		push	bc
  5438 		rst	28h
  5438 		rst		28h
  5439 ; ---------------------------------------------------------------------------
  5439 ; ---------------------------------------------------------------------------
  5440 		.dw 8087h
  5440 		.dw		8087h
  5441 ; ---------------------------------------------------------------------------
  5441 ; ---------------------------------------------------------------------------
  5442 		ld	hl, (appInfo)
  5442 		ld		hl, (appInfo)
  5443 		pop	bc
  5443 		pop		bc
  5444 		inc	bc
  5444 		inc		bc
  5445 		inc	bc
  5445 		inc		bc
  5446 		or	a
  5446 		or		a
  5447 		adc	hl, bc
  5447 		adc	hl, bc
  5448 		ld	(unk_839F), hl
  5448 		ld		(unk_839F), hl
  5449 		call	p7Dsub_597A
  5449 		call	p7Dsub_597A
  5450 		ld	(OP2), a
  5450 		ld		(OP2), a
  5451 		call	p7Dsub_7700
  5451 		call	p7Dsub_7700
  5452 		push	de
  5452 		push	de
  5453 		rst	28h
  5453 		rst		28h
  5454 ; ---------------------------------------------------------------------------
  5454 ; ---------------------------------------------------------------------------
  5455 		.dw 8057h
  5455 		.dw		8057h
  5456 ; ---------------------------------------------------------------------------
  5456 ; ---------------------------------------------------------------------------
  5457 		ld	bc, 1D00h
  5457 		ld		bc, 1D00h
  5458 		add	hl, bc
  5458 		add		hl, bc
  5459 		pop	de
  5459 		pop		de
  5460 		ld	bc, 300h
  5460 		ld		bc, 300h
  5461 		call	p7Dsub_40A6
  5461 		call	p7Dsub_40A6
  5462 		ld	hl, (unk_839F)
  5462 		ld		hl, (unk_839F)
  5463 		ld	bc, 300h
  5463 		ld		bc, 300h
  5464 		add	hl, bc
  5464 		add		hl, bc
  5465 		ld	(unk_839F), hl
  5465 		ld		(unk_839F), hl
  5466 		ld	hl, 4000h
  5466 		ld		hl, 4000h
  5467 		xor	a
  5467 		xor		a
  5468 		pop	de
  5468 		pop		de
  5469 		pop	bc
  5469 		pop		bc
  5470 		ret
  5470 		ret
  5471 ; ---------------------------------------------------------------------------
  5471 ; ---------------------------------------------------------------------------
  5472 
  5472 
  5473 p7Dloc_5972:
  5473 p7Dloc_5972:
  5474 		pop	hl
  5474 		pop		hl
  5475 
  5475 
  5476 p7Dloc_5973:
  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:
  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:
  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)
  5503 		ret
  5503 		ret
  5504 ; End of function p7Dsub_5980
  5504 ; End of function p7Dsub_5980
  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:
  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:
  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
  5521 		sub	a
  5521 		sub		a
  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:
  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:
  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:
  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
  5548 ; ---------------------------------------------------------------------------
  5548 ; ---------------------------------------------------------------------------
  5549 		ld	de, 18h
  5549 		ld		de, 18h
  5550 		rst	28h
  5550 		rst		28h
  5551 ; ---------------------------------------------------------------------------
  5551 ; ---------------------------------------------------------------------------
  5552 		.dw 80B1h
  5552 		.dw		80B1h
  5553 ; ---------------------------------------------------------------------------
  5553 ; ---------------------------------------------------------------------------
  5554 		ld	hl, (OP1M)
  5554 		ld		hl, (OP1M)
  5555 		call	p7Dsub_57C5
  5555 		call	p7Dsub_57C5
  5556 		ld	de, 16Dh
  5556 		ld		de, 16Dh
  5557 		rst	28h
  5557 		rst		28h
  5558 ; ---------------------------------------------------------------------------
  5558 ; ---------------------------------------------------------------------------
  5559 		.dw 804Bh
  5559 		.dw		804Bh
  5560 ; ---------------------------------------------------------------------------
  5560 ; ---------------------------------------------------------------------------
  5561 		push	de
  5561 		push	de
  5562 		pop	hl
  5562 		pop		hl
  5563 		ld	bc, 7CDh
  5563 		ld		bc, 7CDh
  5564 		or	a
  5564 		or		a
  5565 		adc	hl, bc
  5565 		adc	hl, bc
  5566 		call	p7Dsub_5A68
  5566 		call	p7Dsub_5A68
  5567 		or	a
  5567 		or		a
  5568 		ld	hl, (OP1M)
  5568 		ld		hl, (OP1M)
  5569 		call	p7Dsub_57C5
  5569 		call	p7Dsub_57C5
  5570 		sbc	hl, bc
  5570 		sbc		hl, bc
  5571 		call	p7Dsub_57C5
  5571 		call	p7Dsub_57C5
  5572 		ld	(OP1M), hl
  5572 		ld		(OP1M), hl
  5573 		call	p7Dsub_57C5
  5573 		call	p7Dsub_57C5
  5574 		ld	de, 16Dh
  5574 		ld		de, 16Dh
  5575 		rst	28h
  5575 		rst		28h
  5576 ; ---------------------------------------------------------------------------
  5576 ; ---------------------------------------------------------------------------
  5577 		.dw 804Bh
  5577 		.dw		804Bh
  5578 ; ---------------------------------------------------------------------------
  5578 ; ---------------------------------------------------------------------------
  5579 		push	de
  5579 		push	de
  5580 		pop	hl
  5580 		pop		hl
  5581 		ld	bc, 7CDh
  5581 		ld		bc, 7CDh
  5582 		or	a
  5582 		or		a
  5583 		adc	hl, bc
  5583 		adc	hl, bc
  5584 		push	hl
  5584 		push	hl
  5585 		ld	(tempSwapArea), hl
  5585 		ld		(tempSwapArea), hl
  5586 		ld	a, e
  5586 		ld		a, e
  5587 		ld	de, 16Dh
  5587 		ld		de, 16Dh
  5588 		rst	28h
  5588 		rst		28h
  5589 ; ---------------------------------------------------------------------------
  5589 ; ---------------------------------------------------------------------------
  5590 		.dw 8045h
  5590 		.dw		8045h
  5591 ; ---------------------------------------------------------------------------
  5591 ; ---------------------------------------------------------------------------
  5592 		push	hl
  5592 		push	hl
  5593 		pop	bc
  5593 		pop		bc
  5594 		ld	hl, (OP1M)
  5594 		ld		hl, (OP1M)
  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:
  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)
  5606 		call	p7Dsub_5AA5
  5606 		call	p7Dsub_5AA5
  5607 		jr	nz, p7Dloc_5A26
  5607 		jr		nz, p7Dloc_5A26
  5608 		ld	hl, end_of_7D_table
  5608 		ld		hl, end_of_7D_table
  5609 		ld	e, (hl)
  5609 		ld		e, (hl)
  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:
  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:
  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:
  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
  5641 		jr	nz, p7Dloc_5A54
  5641 		jr		nz, p7Dloc_5A54
  5642 		ld	hl, (tempSwapArea)
  5642 		ld		hl, (tempSwapArea)
  5643 		call	p7Dsub_5AA5
  5643 		call	p7Dsub_5AA5
  5644 		jr	nz, p7Dloc_5A54
  5644 		jr		nz, p7Dloc_5A54
  5645 		ld	hl, end_of_7D_table
  5645 		ld		hl, end_of_7D_table
  5646 		ld	e, (hl)
  5646 		ld		e, (hl)
  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:
  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:
  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
  5667 		inc	bc
  5667 		inc		bc
  5668 		pop	af
  5668 		pop		af
  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:
  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
  5680 		or	a
  5680 		or		a
  5681 		sbc	hl, bc
  5681 		sbc		hl, bc
  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:
  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
  5693 ; ---------------------------------------------------------------------------
  5693 ; ---------------------------------------------------------------------------
  5694 		pop	hl
  5694 		pop		hl
  5695 		push	de
  5695 		push	de
  5696 		push	hl
  5696 		push	hl
  5697 		ld	de, 64h	; 'd'
  5697 		ld		de, 64h	; 'd'
  5698 		rst	28h
  5698 		rst		28h
  5699 ; ---------------------------------------------------------------------------
  5699 ; ---------------------------------------------------------------------------
  5700 		.dw 804Bh
  5700 		.dw		804Bh
  5701 ; ---------------------------------------------------------------------------
  5701 ; ---------------------------------------------------------------------------
  5702 		pop	hl
  5702 		pop		hl
  5703 		push	de
  5703 		push	de
  5704 		ld	de, 190h
  5704 		ld		de, 190h
  5705 		rst	28h
  5705 		rst		28h
  5706 ; ---------------------------------------------------------------------------
  5706 ; ---------------------------------------------------------------------------
  5707 		.dw 804Bh
  5707 		.dw		804Bh
  5708 ; ---------------------------------------------------------------------------
  5708 ; ---------------------------------------------------------------------------
  5709 		pop	bc
  5709 		pop		bc
  5710 		pop	hl
  5710 		pop		hl
  5711 		push	de
  5711 		push	de
  5712 		or	a
  5712 		or		a
  5713 		sbc	hl, bc
  5713 		sbc		hl, bc
  5714 		pop	bc
  5714 		pop		bc
  5715 		or	a
  5715 		or		a
  5716 		adc	hl, bc
  5716 		adc	hl, bc
  5717 		ld	bc, 1E4h
  5717 		ld		bc, 1E4h
  5718 		or	a
  5718 		or		a
  5719 		sbc	hl, bc
  5719 		sbc		hl, bc
  5720 		push	hl
  5720 		push	hl
  5721 		pop	bc
  5721 		pop		bc
  5722 		pop	de
  5722 		pop		de
  5723 		pop	hl
  5723 		pop		hl
  5724 		pop	af
  5724 		pop		af
  5725 		ret
  5725 		ret
  5726 ; End of function p7Dsub_5A68
  5726 ; End of function p7Dsub_5A68
  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:
  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
  5738 ; ---------------------------------------------------------------------------
  5738 ; ---------------------------------------------------------------------------
  5739 		ld	a, l
  5739 		ld		a, l
  5740 		or	h
  5740 		or		h
  5741 		jr	nz, p7Dloc_5ACA
  5741 		jr		nz, p7Dloc_5ACA
  5742 		pop	hl
  5742 		pop		hl
  5743 		push	hl
  5743 		push	hl
  5744 		ld	de, 64h	; 'd'
  5744 		ld		de, 64h	; 'd'
  5745 		rst	28h
  5745 		rst		28h
  5746 ; ---------------------------------------------------------------------------
  5746 ; ---------------------------------------------------------------------------
  5747 		.dw 804Bh
  5747 		.dw		804Bh
  5748 ; ---------------------------------------------------------------------------
  5748 ; ---------------------------------------------------------------------------
  5749 		ld	a, l
  5749 		ld		a, l
  5750 		or	h
  5750 		or		h
  5751 		jr	nz, p7Dloc_5AC6
  5751 		jr		nz, p7Dloc_5AC6
  5752 		pop	hl
  5752 		pop		hl
  5753 		push	hl
  5753 		push	hl
  5754 		ld	de, 190h
  5754 		ld		de, 190h
  5755 		rst	28h
  5755 		rst		28h
  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:
  5761 p7Dloc_5AC6:
  5762 		ld	a, 0
  5762 		ld		a, 0
  5763 		bit	7, a
  5763 		bit		7, a
  5764 
  5764 
  5765 p7Dloc_5ACA:
  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 ; ---------------------------------------------------------------------------
  5771 
  5771 
  5772 Page7D_2BAA:
  5772 Page7D_2BAA:
  5773 		push	hl
  5773 		push	hl
  5774 		push	bc
  5774 		push	bc
  5775 		push	de
  5775 		push	de
  5776 		push	af
  5776 		push	af
  5777 		ld	de, ramStart
  5777 		ld		de, ramStart
  5778 		ld	bc, 100h
  5778 		ld		bc, 100h
  5779 		rst	28h
  5779 		rst		28h
  5780 ; ---------------------------------------------------------------------------
  5780 ; ---------------------------------------------------------------------------
  5781 		.dw 8054h
  5781 		.dw		8054h
  5782 ; ---------------------------------------------------------------------------
  5782 ; ---------------------------------------------------------------------------
  5783 		pop	af
  5783 		pop		af
  5784 		pop	de
  5784 		pop		de
  5785 		pop	bc
  5785 		pop		bc
  5786 		pop	hl
  5786 		pop		hl
  5787 		ret
  5787 		ret
  5788 ; ---------------------------------------------------------------------------
  5788 ; ---------------------------------------------------------------------------
  5789 
  5789 
  5790 Page7D_2C0A:
  5790 Page7D_2C0A:
  5791 		push	hl
  5791 		push	hl
  5792 		push	bc
  5792 		push	bc
  5793 		push	af
  5793 		push	af
  5794 		call	Page0Call_3D0B
  5794 		call	Page0Call_3D0B
  5795 		call	Page0Call_3D2F
  5795 		call	Page0Call_3D2F
  5796 		ld	hl, aIdlist
  5796 		ld		hl, aIdlist
  5797 		ld	a, 3Dh ; '='
  5797 		ld		a, 3Dh ; '='
  5798 		bit	1, (iy+35h)
  5798 		bit		1, (iy+35h)
  5799 		call	nz, Page0Call_3C45
  5799 		call	nz, Page0Call_3C45
  5800 		call	p7Dsub_7045
  5800 		call	p7Dsub_7045
  5801 		call	Page0Call_23DE
  5801 		call	Page0Call_23DE
  5802 		jr	c, p7Dloc_5B0D
  5802 		jr		c, p7Dloc_5B0D
  5803 		ld	a, (de)
  5803 		ld		a, (de)
  5804 		ld	hl, (curRow+1)
  5804 		ld		hl, (curRow+1)
  5805 		ld	bc, 5
  5805 		ld		bc, 5
  5806 		adc	hl, bc
  5806 		adc	hl, bc
  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:
  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:
  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
  5825 		inc	de
  5825 		inc		de
  5826 		ld	a, (de)
  5826 		ld		a, (de)
  5827 		ld	h, a
  5827 		ld		h, a
  5828 		dec	de
  5828 		dec		de
  5829 		ld	a, l
  5829 		ld		a, l
  5830 		or	h
  5830 		or		h
  5831 		jr	z, p7Dloc_5B2A
  5831 		jr		z, p7Dloc_5B2A
  5832 		pop	af
  5832 		pop		af
  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:
  5838 p7Dloc_5B2A:
  5839 		pop	af
  5839 		pop		af
  5840 		call	Page0Call_23D4
  5840 		call	Page0Call_23D4
  5841 
  5841 
  5842 locret_5B2E:
  5842 locret_5B2E:
  5843 		ret
  5843 		ret
  5844 ; ---------------------------------------------------------------------------
  5844 ; ---------------------------------------------------------------------------
  5845 
  5845 
  5846 Page7D_2BC2:
  5846 Page7D_2BC2:
  5847 		push	af
  5847 		push	af
  5848 		ld	de, 0A10h
  5848 		ld		de, 0A10h
  5849 		rst	28h
  5849 		rst		28h
  5850 ; ---------------------------------------------------------------------------
  5850 ; ---------------------------------------------------------------------------
  5851 		.dw 8027h
  5851 		.dw		8027h
  5852 ; ---------------------------------------------------------------------------
  5852 ; ---------------------------------------------------------------------------
  5853 		jr	nz, p7Dloc_5B49
  5853 		jr		nz, p7Dloc_5B49
  5854 		call	p7Dsub_4574
  5854 		call	p7Dsub_4574
  5855 		ld	de, OP2
  5855 		ld		de, OP2
  5856 		ld	b, c
  5856 		ld		b, c
  5857 		ld	a, 7Eh ; '~'
  5857 		ld		a, 7Eh ; '~'
  5858 		call	p7Dsub_761F
  5858 		call	p7Dsub_761F
  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:
  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 =======================================
  5872 
  5872 
  5873 p7Dsub_5B4D:
  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:
  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 ; ---------------------------------------------------------------------------
  5886 		cp	3
  5886 		cp		3
  5887 		jr	z, p7Dloc_5B67
  5887 		jr		z, p7Dloc_5B67
  5888 		cp	0FFh
  5888 		cp		0FFh
  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:
  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:
  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
  5911 ; ---------------------------------------------------------------------------
  5911 ; ---------------------------------------------------------------------------
  5912 		.dw 8051h
  5912 		.dw		8051h
  5913 ; ---------------------------------------------------------------------------
  5913 ; ---------------------------------------------------------------------------
  5914 		ex	de, hl
  5914 		ex		de, hl
  5915 		cp	c
  5915 		cp		c
  5916 		jr	nz, p7Dloc_5B8E
  5916 		jr		nz, p7Dloc_5B8E
  5917 		inc	de
  5917 		inc		de
  5918 		inc	hl
  5918 		inc		hl
  5919 		djnz	p7Dloc_5B77
  5919 		djnz	p7Dloc_5B77
  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:
  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
  5931 ; ---------------------------------------------------------------------------
  5931 ; ---------------------------------------------------------------------------
  5932 		.dw 805Ah
  5932 		.dw		805Ah
  5933 ; ---------------------------------------------------------------------------
  5933 ; ---------------------------------------------------------------------------
  5934 		pop	de
  5934 		pop		de
  5935 		or	a
  5935 		or		a
  5936 		adc	hl, bc
  5936 		adc	hl, bc
  5937 		inc	hl
  5937 		inc		hl
  5938 		ld	a, (appSearchPage)
  5938 		ld		a, (appSearchPage)
  5939 		push	de
  5939 		push	de
  5940 		rst	28h
  5940 		rst		28h
  5941 ; ---------------------------------------------------------------------------
  5941 ; ---------------------------------------------------------------------------
  5942 		.dw 805Ah
  5942 		.dw		805Ah
  5943 ; ---------------------------------------------------------------------------
  5943 ; ---------------------------------------------------------------------------
  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:
  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:
  5960 p7Dloc_5BB9:
  5961 		cp	18h
  5961 		cp		18h
  5962 
  5962 
  5963 p7Dloc_5BBB:
  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:
  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:
  5975 p7Dloc_5BC6:
  5976 		scf
  5976 		scf
  5977 
  5977 
  5978 p7Dloc_5BC7:
  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 
  5984 ; ---------------------------------------------------------------------------
  5984 ; ---------------------------------------------------------------------------
  5985 
  5985 
  5986 Page7D_2BC8:
  5986 Page7D_2BC8:
  5987 		push	de
  5987 		push	de
  5988 		push	bc
  5988 		push	bc
  5989 		push	hl
  5989 		push	hl
  5990 		ld	(appSearchPage), a
  5990 		ld		(appSearchPage), a
  5991 		call	p7Dsub_4894
  5991 		call	p7Dsub_4894
  5992 		call	p7Dsub_457C
  5992 		call	p7Dsub_457C
  5993 		ld	a, (appSearchPage)
  5993 		ld		a, (appSearchPage)
  5994 		pop	hl
  5994 		pop		hl
  5995 		call	p7Dloc_529F
  5995 		call	p7Dloc_529F
  5996 		pop	bc
  5996 		pop		bc
  5997 		pop	de
  5997 		pop		de
  5998 		ret
  5998 		ret
  5999 ; ---------------------------------------------------------------------------
  5999 ; ---------------------------------------------------------------------------
  6000 
  6000 
  6001 Page7D_3C54:
  6001 Page7D_3C54:
  6002 		ld	(Abackup), a
  6002 		ld		(Abackup), a
  6003 		ld	a, i
  6003 		ld		a, i
  6004 		di
  6004 		di
  6005 		push	af
  6005 		push	af
  6006 		ld	a, (Abackup)
  6006 		ld		a, (Abackup)
  6007 		push	af
  6007 		push	af
  6008 		ld	a, 1
  6008 		ld		a, 1
  6009 		nop
  6009 		nop
  6010 		di
  6010 		di
  6011 		nop
  6011 		nop
  6012 		nop
  6012 		nop
  6013 		im	1
  6013 		im	1
  6014 		di
  6014 		di
  6015 		out	(14h), a
  6015 		out		(14h), a
  6016 		di
  6016 		di
  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:
  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 ; ---------------------------------------------------------------------------
  6028 		jr	z, p7Dloc_5C0A
  6028 		jr		z, p7Dloc_5C0A
  6029 		rst	28h
  6029 		rst		28h
  6030 ; ---------------------------------------------------------------------------
  6030 ; ---------------------------------------------------------------------------
  6031 		.dw 80AEh
  6031 		.dw		80AEh
  6032 ; ---------------------------------------------------------------------------
  6032 ; ---------------------------------------------------------------------------
  6033 		jr	p7Dloc_5BFD
  6033 		jr		p7Dloc_5BFD
  6034 ; ---------------------------------------------------------------------------
  6034 ; ---------------------------------------------------------------------------
  6035 
  6035 
  6036 p7Dloc_5C0A:
  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
  6042 ; ---------------------------------------------------------------------------
  6042 ; ---------------------------------------------------------------------------
  6043 		ld	(de), a
  6043 		ld		(de), a
  6044 		inc	de
  6044 		inc		de
  6045 		call	p7Dsub_4565
  6045 		call	p7Dsub_4565
  6046 		ld	(de), a
  6046 		ld		(de), a
  6047 		ld	hl, OP2
  6047 		ld		hl, OP2
  6048 		pop	bc
  6048 		pop		bc
  6049 		pop	de
  6049 		pop		de
  6050 		call	relockFlashBack
  6050 		call	relockFlashBack
  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:
  6056 p7Dloc_5C29:
  6057 		ld	a, (Abackup)
  6057 		ld		a, (Abackup)
  6058 		ret
  6058 		ret
  6059 ; ---------------------------------------------------------------------------
  6059 ; ---------------------------------------------------------------------------
  6060 
  6060 
  6061 p7Dloc_5C2D:
  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
  6067 ; ---------------------------------------------------------------------------
  6067 ; ---------------------------------------------------------------------------
  6068 		ret
  6068 		ret
  6069 ; ---------------------------------------------------------------------------
  6069 ; ---------------------------------------------------------------------------
  6070 
  6070 
  6071 Page7D_2C1C:
  6071 Page7D_2C1C:
  6072 		push	hl
  6072 		push	hl
  6073 		call	p7Dsub_7656
  6073 		call	p7Dsub_7656
  6074 		ld	hl, 4000h
  6074 		ld		hl, 4000h
  6075 		rst	28h
  6075 		rst		28h
  6076 ; ---------------------------------------------------------------------------
  6076 ; ---------------------------------------------------------------------------
  6077 		.dw 8051h
  6077 		.dw		8051h
  6078 ; ---------------------------------------------------------------------------
  6078 ; ---------------------------------------------------------------------------
  6079 		cp	0
  6079 		cp		0
  6080 		pop	hl
  6080 		pop		hl
  6081 		ret
  6081 		ret
  6082 ; ---------------------------------------------------------------------------
  6082 ; ---------------------------------------------------------------------------
  6083 
  6083 
  6084 Page7D_2BDA:
  6084 Page7D_2BDA:
  6085 		push	de
  6085 		push	de
  6086 		push	bc
  6086 		push	bc
  6087 		push	af
  6087 		push	af
  6088 		push	hl
  6088 		push	hl
  6089 		push	af
  6089 		push	af
  6090 		ld	a, 1
  6090 		ld		a, 1
  6091 		nop
  6091 		nop
  6092 		di
  6092 		di
  6093 		nop
  6093 		nop
  6094 		nop
  6094 		nop
  6095 		im	1
  6095 		im	1
  6096 		di
  6096 		di
  6097 		out	(14h), a
  6097 		out		(14h), a
  6098 		di
  6098 		di
  6099 		call	checkForFlashTrickery
  6099 		call	checkForFlashTrickery
  6100 		pop	af
  6100 		pop		af
  6101 		ld	de, 4000h
  6101 		ld		de, 4000h
  6102 		ld	b, 0
  6102 		ld		b, 0
  6103 		call	p7Dsub_7656
  6103 		call	p7Dsub_7656
  6104 		rst	28h
  6104 		rst		28h
  6105 ; ---------------------------------------------------------------------------
  6105 ; ---------------------------------------------------------------------------
  6106 		.dw 80C6h
  6106 		.dw		80C6h
  6107 ; ---------------------------------------------------------------------------
  6107 ; ---------------------------------------------------------------------------
  6108 		pop	hl
  6108 		pop		hl
  6109 		push	hl
  6109 		push	hl
  6110 		ld	b, l
  6110 		ld		b, l
  6111 		call	p7Dsub_7656
  6111 		call	p7Dsub_7656
  6112 		rst	28h
  6112 		rst		28h
  6113 ; ---------------------------------------------------------------------------
  6113 ; ---------------------------------------------------------------------------
  6114 		.dw 80C6h
  6114 		.dw		80C6h
  6115 ; ---------------------------------------------------------------------------
  6115 ; ---------------------------------------------------------------------------
  6116 		pop	hl
  6116 		pop		hl
  6117 		ld	b, h
  6117 		ld		b, h
  6118 		call	p7Dsub_7656
  6118 		call	p7Dsub_7656
  6119 		rst	28h
  6119 		rst		28h
  6120 ; ---------------------------------------------------------------------------
  6120 ; ---------------------------------------------------------------------------
  6121 		.dw 80C6h
  6121 		.dw		80C6h
  6122 ; ---------------------------------------------------------------------------
  6122 ; ---------------------------------------------------------------------------
  6123 		pop	af
  6123 		pop		af
  6124 		pop	bc
  6124 		pop		bc
  6125 		pop	de
  6125 		pop		de
  6126 		jp	relockFlashBack
  6126 		jp		relockFlashBack
  6127 ; ---------------------------------------------------------------------------
  6127 ; ---------------------------------------------------------------------------
  6128 
  6128 
  6129 Page7D_3C4E:
  6129 Page7D_3C4E:
  6130 		push	hl
  6130 		push	hl
  6131 
  6131 
  6132 p7Dloc_5C7D:
  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
  6138 		djnz	p7Dloc_5C7D
  6138 		djnz	p7Dloc_5C7D
  6139 		call	p7Dsub_6503
  6139 		call	p7Dsub_6503
  6140 		pop	hl
  6140 		pop		hl
  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:
  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:
  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'
  6162 		ld	(hl), a
  6162 		ld		(hl), a
  6163 		inc	hl
  6163 		inc		hl
  6164 		dec	b
  6164 		dec		b
  6165 		ld	a, b
  6165 		ld		a, b
  6166 		or	b
  6166 		or		b
  6167 		jr	z, p7Dloc_5CC1
  6167 		jr		z, p7Dloc_5CC1
  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:
  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
  6179 		ld	a, b
  6179 		ld		a, b
  6180 		or	b
  6180 		or		b
  6181 		jr	z, p7Dloc_5CC1
  6181 		jr		z, p7Dloc_5CC1
  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:
  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 
  6193 ; ---------------------------------------------------------------------------
  6193 ; ---------------------------------------------------------------------------
  6194 
  6194 
  6195 Page7D_3C5A:
  6195 Page7D_3C5A:
  6196 		push	hl
  6196 		push	hl
  6197 		push	bc
  6197 		push	bc
  6198 		push	de
  6198 		push	de
  6199 		ld	a, (hl)
  6199 		ld		a, (hl)
  6200 		push	af
  6200 		push	af
  6201 		and	0F0h ; '�'
  6201 		and		0F0h ; '�'
  6202 		srl	a
  6202 		srl	a
  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:
  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'
  6214 		call	Page0Call_3D47
  6214 		call	Page0Call_3D47
  6215 		dec	b
  6215 		dec		b
  6216 		ld	a, b
  6216 		ld		a, b
  6217 		or	b
  6217 		or		b
  6218 		jr	z, p7Dloc_5CFB
  6218 		jr		z, p7Dloc_5CFB
  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:
  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
  6230 		or	b
  6230 		or		b
  6231 		jr	z, p7Dloc_5CFB
  6231 		jr		z, p7Dloc_5CFB
  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:
  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 
  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:
  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
  6263 ; ---------------------------------------------------------------------------
  6263 ; ---------------------------------------------------------------------------
  6264 		ld	(de), a
  6264 		ld		(de), a
  6265 		inc	de
  6265 		inc		de
  6266 		inc	hl
  6266 		inc		hl
  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:
  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
  6278 		ret
  6278 		ret
  6279 ; End of function p7Dsub_5CFF
  6279 ; End of function p7Dsub_5CFF
  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 =======================================
  6284 
  6284 
  6285 p7Dsub_5D1E:
  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
  6291 		or	c
  6291 		or		c
  6292 		jr	z, p7Dloc_5D3D
  6292 		jr		z, p7Dloc_5D3D
  6293 		ld	a, b
  6293 		ld		a, b
  6294 		ld	de, MD5Buffer
  6294 		ld		de, MD5Buffer
  6295 		ld	b, c
  6295 		ld		b, c
  6296 		ld	hl, 0
  6296 		ld		hl, 0
  6297 		ld	a, (de)
  6297 		ld		a, (de)
  6298 		ld	l, a
  6298 		ld		l, a
  6299 		dec	b
  6299 		dec		b
  6300 		ld	a, b
  6300 		ld		a, b
  6301 		or	b
  6301 		or		b
  6302 		jr	z, p7Dloc_5D3F
  6302 		jr		z, p7Dloc_5D3F
  6303 		inc	de
  6303 		inc		de
  6304 		ld	a, l
  6304 		ld		a, l
  6305 		ld	h, a
  6305 		ld		h, a
  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:
  6311 p7Dloc_5D3D:
  6312 		ld	h, a
  6312 		ld		h, a
  6313 		ld	l, a
  6313 		ld		l, a
  6314 
  6314 
  6315 p7Dloc_5D3F:
  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 =======================================
  6325 
  6325 
  6326 p7Dsub_5D43:
  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
  6332 		or	c
  6332 		or		c
  6333 		jr	z, p7Dloc_5D62
  6333 		jr		z, p7Dloc_5D62
  6334 		ld	a, b
  6334 		ld		a, b
  6335 		ld	hl, MD5Buffer
  6335 		ld		hl, MD5Buffer
  6336 		ld	e, c
  6336 		ld		e, c
  6337 		ld	bc, 0
  6337 		ld		bc, 0
  6338 		ld	a, (hl)
  6338 		ld		a, (hl)
  6339 		ld	c, a
  6339 		ld		c, a
  6340 		dec	e
  6340 		dec		e
  6341 		ld	a, e
  6341 		ld		a, e
  6342 		or	e
  6342 		or		e
  6343 		jr	z, p7Dloc_5D64
  6343 		jr		z, p7Dloc_5D64
  6344 		inc	hl
  6344 		inc		hl
  6345 		ld	a, c
  6345 		ld		a, c
  6346 		ld	b, a
  6346 		ld		b, a
  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:
  6352 p7Dloc_5D62:
  6353 		ld	b, a
  6353 		ld		b, a
  6354 		ld	c, a
  6354 		ld		c, a
  6355 
  6355 
  6356 p7Dloc_5D64:
  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 =======================================
  6366 
  6366 
  6367 Page7D_2E44:
  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:
  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
  6384 		push	af
  6384 		push	af
  6385 		call	Page7D_2CD0
  6385 		call	Page7D_2CD0
  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:
  6391 p7Dloc_5D8A:
  6392 		pop	bc
  6392 		pop		bc
  6393 		jr	p7Dloc_5D76
  6393 		jr		p7Dloc_5D76
  6394 ; ---------------------------------------------------------------------------
  6394 ; ---------------------------------------------------------------------------
  6395 
  6395 
  6396 p7Dloc_5D8D:
  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
  6402 		push	af
  6402 		push	af
  6403 		ld	a, c
  6403 		ld		a, c
  6404 		add	a, d
  6404 		add		a, d
  6405 		ld	d, a
  6405 		ld		d, a
  6406 		pop	af
  6406 		pop		af
  6407 		push	de
  6407 		push	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:
  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
  6419 		sbc	hl, bc
  6419 		sbc		hl, bc
  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:
  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
  6431 		push	bc
  6431 		push	bc
  6432 		call	p7Dsub_67EC
  6432 		call	p7Dsub_67EC
  6433 		jr	z, p7Dloc_5D8A
  6433 		jr		z, p7Dloc_5D8A
  6434 		pop	bc
  6434 		pop		bc
  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:
  6440 p7Dloc_5DC0:
  6441 		xor	a
  6441 		xor		a
  6442 		ld	c, a
  6442 		ld		c, a
  6443 
  6443 
  6444 p7Dloc_5DC2:
  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
  6450 		ret
  6450 		ret
  6451 ; End of function Page7D_2E44
  6451 ; End of function Page7D_2E44
  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:
  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
  6463 		ld	hl, ramStart
  6463 		ld		hl, ramStart
  6464 		ld	de, 8080h
  6464 		ld		de, 8080h
  6465 		rst	28h
  6465 		rst		28h
  6466 ; ---------------------------------------------------------------------------
  6466 ; ---------------------------------------------------------------------------
  6467 		.dw 8075h
  6467 		.dw		8075h
  6468 ; ---------------------------------------------------------------------------
  6468 ; ---------------------------------------------------------------------------
  6469 		inc	hl
  6469 		inc		hl
  6470 		ld	a, 1
  6470 		ld		a, 1
  6471 		rst	28h
  6471 		rst		28h
  6472 ; ---------------------------------------------------------------------------
  6472 ; ---------------------------------------------------------------------------
  6473 		.dw 805Ah
  6473 		.dw		805Ah
  6474 ; ---------------------------------------------------------------------------
  6474 ; ---------------------------------------------------------------------------
  6475 		ld	a, (hl)
  6475 		ld		a, (hl)
  6476 		pop	de
  6476 		pop		de
  6477 		ld	e, d
  6477 		ld		e, d
  6478 		ld	d, a
  6478 		ld		d, a
  6479 		pop	bc
  6479 		pop		bc
  6480 		sub	b
  6480 		sub		b
  6481 		ret
  6481 		ret
  6482 ; End of function p7Dsub_5DC7
  6482 ; End of function p7Dsub_5DC7
  6483 
  6483 
  6484 ; ---------------------------------------------------------------------------
  6484 ; ---------------------------------------------------------------------------
  6485 
  6485 
  6486 Page7D_2BF2:
  6486 Page7D_2BF2:
  6487 		push	hl
  6487 		push	hl
  6488 		push	bc
  6488 		push	bc
  6489 		push	de
  6489 		push	de
  6490 		push	hl
  6490 		push	hl
  6491 		rst	28h
  6491 		rst		28h
  6492 ; ---------------------------------------------------------------------------
  6492 ; ---------------------------------------------------------------------------
  6493 		.dw 802Dh
  6493 		.dw		802Dh
  6494 ; ---------------------------------------------------------------------------
  6494 ; ---------------------------------------------------------------------------
  6495 		ex	de, hl
  6495 		ex		de, hl
  6496 		rst	28h
  6496 		rst		28h
  6497 ; ---------------------------------------------------------------------------
  6497 ; ---------------------------------------------------------------------------
  6498 		.dw 8057h
  6498 		.dw		8057h
  6499 ; ---------------------------------------------------------------------------
  6499 ; ---------------------------------------------------------------------------
  6500 		ex	de, hl
  6500 		ex		de, hl
  6501 		or	a
  6501 		or		a
  6502 		sbc	hl, de
  6502 		sbc		hl, de
  6503 		ex	de, hl
  6503 		ex		de, hl
  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:
  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
  6515 		pop	bc
  6515 		pop		bc
  6516 		pop	hl
  6516 		pop		hl
  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:
  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:
  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 ; ---------------------------------------------------------------------------
  6537 		.dw 8090h
  6537 		.dw		8090h
  6538 ; ---------------------------------------------------------------------------
  6538 ; ---------------------------------------------------------------------------
  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:
  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:
  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:
  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 
  6572 		; p7Dsub_7240+1FBp ...
  6572 		; p7Dsub_7240+1FBp ...
  6573 
  6573 
  6574 
  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
  6580 		rst	28h
  6580 		rst		28h
  6581 ; ---------------------------------------------------------------------------
  6581 ; ---------------------------------------------------------------------------
  6582 		.dw 8075h
  6582 		.dw		8075h
  6583 ; ---------------------------------------------------------------------------
  6583 ; ---------------------------------------------------------------------------
  6584 		jp	nz, p7Dloc_5E29
  6584 		jp		nz, p7Dloc_5E29
  6585 		inc	hl
  6585 		inc		hl
  6586 		pop	af
  6586 		pop		af
  6587 		push	af
  6587 		push	af
  6588 		rst	28h
  6588 		rst		28h
  6589 ; ---------------------------------------------------------------------------
  6589 ; ---------------------------------------------------------------------------
  6590 		.dw 805Ah
  6590 		.dw		805Ah
  6591 ; ---------------------------------------------------------------------------
  6591 ; ---------------------------------------------------------------------------
  6592 		ld	de, appID
  6592 		ld		de, appID
  6593 		ld	a, 7
  6593 		ld		a, 7
  6594 		ld	(de), a
  6594 		ld		(de), a
  6595 		ld	de, 838Fh
  6595 		ld		de, 838Fh
  6596 		ld	(appID+1), bc
  6596 		ld		(appID+1), bc
  6597 		pop	af
  6597 		pop		af
  6598 		rst	28h
  6598 		rst		28h
  6599 ; ---------------------------------------------------------------------------
  6599 ; ---------------------------------------------------------------------------
  6600 		.dw 8054h
  6600 		.dw		8054h
  6601 ; ---------------------------------------------------------------------------
  6601 ; ---------------------------------------------------------------------------
  6602 		pop	af
  6602 		pop		af
  6603 		ret
  6603 		ret
  6604 ; End of function Page7D_2C9A
  6604 ; End of function Page7D_2C9A
  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:
  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
  6616 ; ---------------------------------------------------------------------------
  6616 ; ---------------------------------------------------------------------------
  6617 		.dw 8075h
  6617 		.dw		8075h
  6618 ; ---------------------------------------------------------------------------
  6618 ; ---------------------------------------------------------------------------
  6619 		jp	nz, p7Dloc_5E29
  6619 		jp		nz, p7Dloc_5E29
  6620 		inc	hl
  6620 		inc		hl
  6621 		pop	af
  6621 		pop		af
  6622 		push	af
  6622 		push	af
  6623 		rst	28h
  6623 		rst		28h
  6624 ; ---------------------------------------------------------------------------
  6624 ; ---------------------------------------------------------------------------
  6625 		.dw 805Ah
  6625 		.dw		805Ah
  6626 ; ---------------------------------------------------------------------------
  6626 ; ---------------------------------------------------------------------------
  6627 		ld	de, 838Eh
  6627 		ld		de, 838Eh
  6628 		ld	(appID), bc
  6628 		ld		(appID), bc
  6629 		pop	af
  6629 		pop		af
  6630 		rst	28h
  6630 		rst		28h
  6631 ; ---------------------------------------------------------------------------
  6631 ; ---------------------------------------------------------------------------
  6632 		.dw 8054h
  6632 		.dw		8054h
  6633 ; ---------------------------------------------------------------------------
  6633 ; ---------------------------------------------------------------------------
  6634 		pop	af
  6634 		pop		af
  6635 		ret
  6635 		ret
  6636 ; End of function p7Dsub_5E59
  6636 ; End of function p7Dsub_5E59
  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:
  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
  6648 		push	bc
  6648 		push	bc
  6649 		pop	ix
  6649 		pop		ix
  6650 		call	p7Dsub_48B5
  6650 		call	p7Dsub_48B5
  6651 		jr	c, locret_5E8F
  6651 		jr		c, locret_5E8F
  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:
  6657 locret_5E8F:
  6658 		ret
  6658 		ret
  6659 ; End of function p7Dsub_5E78
  6659 ; End of function p7Dsub_5E78
  6660 
  6660 
  6663 
  6663 
  6664 
  6664 
  6665 p7Dsub_5E90:
  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
  6671 		ld	de, 8060h
  6671 		ld		de, 8060h
  6672 		rst	28h
  6672 		rst		28h
  6673 ; ---------------------------------------------------------------------------
  6673 ; ---------------------------------------------------------------------------
  6674 		.dw 8075h
  6674 		.dw		8075h
  6675 ; ---------------------------------------------------------------------------
  6675 ; ---------------------------------------------------------------------------
  6676 		jr	z, p7Dloc_5EB5
  6676 		jr		z, p7Dloc_5EB5
  6677 		ld	hl, ramStart
  6677 		ld		hl, ramStart
  6678 		ld	de, 8050h
  6678 		ld		de, 8050h
  6679 		rst	28h
  6679 		rst		28h
  6680 ; ---------------------------------------------------------------------------
  6680 ; ---------------------------------------------------------------------------
  6681 		.dw 8075h
  6681 		.dw		8075h
  6682 ; ---------------------------------------------------------------------------
  6682 ; ---------------------------------------------------------------------------
  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:
  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:
  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
  6699 ; ---------------------------------------------------------------------------
  6699 ; ---------------------------------------------------------------------------
  6700 		ld	a, 1
  6700 		ld		a, 1
  6701 		rst	28h
  6701 		rst		28h
  6702 ; ---------------------------------------------------------------------------
  6702 ; ---------------------------------------------------------------------------
  6703 		.dw 8051h
  6703 		.dw		8051h
  6704 ; ---------------------------------------------------------------------------
  6704 ; ---------------------------------------------------------------------------
  6705 		push	af
  6705 		push	af
  6706 		ld	b, 9
  6706 		ld		b, 9
  6707 		sub	b
  6707 		sub		b
  6708 		jr	c, p7Dloc_5ED6
  6708 		jr		c, p7Dloc_5ED6
  6709 		pop	af
  6709 		pop		af
  6710 		ld	b, 8
  6710 		ld		b, 8
  6711 		sub	b
  6711 		sub		b
  6712 		call	p7Dsub_4E9B
  6712 		call	p7Dsub_4E9B
  6713 		ld	d, a
  6713 		ld		d, a
  6714 		ld	a, 8
  6714 		ld		a, 8
  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:
  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:
  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
  6732 		ld	c, a
  6732 		ld		c, a
  6733 		call	Page7D_2B68
  6733 		call	Page7D_2B68
  6734 		sla	c
  6734 		sla	c
  6735 		add	hl, bc
  6735 		add		hl, bc
  6736 		ld	b, e
  6736 		ld		b, e
  6737 		ex	de, hl
  6737 		ex		de, hl
  6738 		push	hl
  6738 		push	hl
  6739 		call	p7Dsub_456D
  6739 		call	p7Dsub_456D
  6740 		pop	hl
  6740 		pop		hl
  6741 		ex	de, hl
  6741 		ex		de, hl
  6742 		ld	b, d
  6742 		ld		b, d
  6743 		ex	de, hl
  6743 		ex		de, hl
  6744 		call	p7Dsub_456D
  6744 		call	p7Dsub_456D
  6745 		pop	af
  6745 		pop		af
  6746 		ret
  6746 		ret
  6747 ; End of function p7Dsub_5E90
  6747 ; End of function p7Dsub_5E90
  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 =======================================
  6753 p7Dsub_5EFC:
  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
  6759 		ld	b, a
  6759 		ld		b, a
  6760 		ld	c, 8
  6760 		ld		c, 8
  6761 		sub	c
  6761 		sub		c
  6762 		jr	c, p7Dloc_5F25
  6762 		jr		c, p7Dloc_5F25
  6763 		call	p7Dsub_75EC
  6763 		call	p7Dsub_75EC
  6764 		inc	a
  6764 		inc		a
  6765 		ld	c, a
  6765 		ld		c, a
  6766 		ld	a, b
  6766 		ld		a, b
  6767 		sub	c
  6767 		sub		c
  6768 		jr	nc, p7Dloc_5F25
  6768 		jr		nc, p7Dloc_5F25
  6769 		ld	bc, 4000h
  6769 		ld		bc, 4000h
  6770 		or	a
  6770 		or		a
  6771 		sbc	hl, bc
  6771 		sbc		hl, bc
  6772 		jr	c, p7Dloc_5F25
  6772 		jr		c, p7Dloc_5F25
  6773 		push	de
  6773 		push	de
  6774 		pop	hl
  6774 		pop		hl
  6775 		or	a
  6775 		or		a
  6776 		ld	bc, ramStart
  6776 		ld		bc, ramStart
  6777 		sbc	hl, bc
  6777 		sbc		hl, bc
  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:
  6783 p7Dloc_5F25:
  6784 		scf
  6784 		scf
  6785 
  6785 
  6786 p7Dloc_5F26:
  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
  6792 
  6792 
  6793 ; ---------------------------------------------------------------------------
  6793 ; ---------------------------------------------------------------------------
  6794 
  6794 
  6795 Page7D_2BF8:
  6795 Page7D_2BF8:
  6796 		push	hl
  6796 		push	hl
  6797 		rst	28h
  6797 		rst		28h
  6798 ; ---------------------------------------------------------------------------
  6798 ; ---------------------------------------------------------------------------
  6799 		.dw 8057h
  6799 		.dw		8057h
  6800 ; ---------------------------------------------------------------------------
  6800 ; ---------------------------------------------------------------------------
  6801 		ld	de, 0A10h
  6801 		ld		de, 0A10h
  6802 		call	p7Dsub_777E
  6802 		call	p7Dsub_777E
  6803 		jp	z, JError
  6803 		jp		z, JError
  6804 		pop	hl
  6804 		pop		hl
  6805 		ld	de, 0A10h
  6805 		ld		de, 0A10h
  6806 		call	p7Dsub_777E
  6806 		call	p7Dsub_777E
  6807 		jp	nz, JError
  6807 		jp		nz, JError
  6808 		ex	de, hl
  6808 		ex		de, hl
  6809 		push	de
  6809 		push	de
  6810 		rst	28h
  6810 		rst		28h
  6811 ; ---------------------------------------------------------------------------
  6811 ; ---------------------------------------------------------------------------
  6812 		.dw 802Dh
  6812 		.dw		802Dh
  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:
  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
  6824 		pop	hl
  6824 		pop		hl
  6825 		call	p7Dsub_4565
  6825 		call	p7Dsub_4565
  6826 		ld	b, a
  6826 		ld		b, a
  6827 		push	hl
  6827 		push	hl
  6828 		call	p7Dsub_456D
  6828 		call	p7Dsub_456D
  6829 		pop	hl
  6829 		pop		hl
  6830 		push	de
  6830 		push	de
  6831 		push	hl
  6831 		push	hl
  6832 		call	p7Dloc_4575
  6832 		call	p7Dloc_4575
  6833 		pop	de
  6833 		pop		de
  6834 		push	bc
  6834 		push	bc
  6835 		push	hl
  6835 		push	hl
  6836 		sbc	hl, de
  6836 		sbc		hl, de
  6837 		ld	b, l
  6837 		ld		b, l
  6838 		dec	b
  6838 		dec		b
  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:
  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:
  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
  6855 		ld	a, 7Eh ; '~'
  6855 		ld		a, 7Eh ; '~'
  6856 		push	de
  6856 		push	de
  6857 		push	bc
  6857 		push	bc
  6858 		ld	de, MD5Buffer
  6858 		ld		de, MD5Buffer
  6859 		rst	28h
  6859 		rst		28h
  6860 ; ---------------------------------------------------------------------------
  6860 ; ---------------------------------------------------------------------------
  6861 		.dw 8054h
  6861 		.dw		8054h
  6862 ; ---------------------------------------------------------------------------
  6862 ; ---------------------------------------------------------------------------
  6863 		push	hl
  6863 		push	hl
  6864 		ld	hl, MD5Buffer
  6864 		ld		hl, MD5Buffer
  6865 		call	p7Dsub_5F9F
  6865 		call	p7Dsub_5F9F
  6866 		pop	hl
  6866 		pop		hl
  6867 		pop	bc
  6867 		pop		bc
  6868 		pop	de
  6868 		pop		de
  6869 		push	hl
  6869 		push	hl
  6870 		ld	hl, MD5Buffer
  6870 		ld		hl, MD5Buffer
  6871 		ld	a, 7Eh ; '~'
  6871 		ld		a, 7Eh ; '~'
  6872 		rst	28h
  6872 		rst		28h
  6873 ; ---------------------------------------------------------------------------
  6873 ; ---------------------------------------------------------------------------
  6874 		.dw 8087h
  6874 		.dw		8087h
  6875 ; ---------------------------------------------------------------------------
  6875 ; ---------------------------------------------------------------------------
  6876 		pop	hl
  6876 		pop		hl
  6877 		pop	bc
  6877 		pop		bc
  6878 		dec	c
  6878 		dec		c
  6879 		ld	a, c
  6879 		ld		a, c
  6880 		cp	0
  6880 		cp		0
  6881 		jr	nz, p7Dloc_5F4B
  6881 		jr		nz, p7Dloc_5F4B
  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:
  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
  6893 		ld	d, (hl)
  6893 		ld		d, (hl)
  6894 		inc	hl
  6894 		inc		hl
  6895 		ld	e, (hl)
  6895 		ld		e, (hl)
  6896 		push	de
  6896 		push	de
  6897 		rst	28h
  6897 		rst		28h
  6898 ; ---------------------------------------------------------------------------
  6898 ; ---------------------------------------------------------------------------
  6899 		.dw 80C3h
  6899 		.dw		80C3h
  6900 ; ---------------------------------------------------------------------------
  6900 ; ---------------------------------------------------------------------------
  6901 		push	de
  6901 		push	de
  6902 		pop	bc
  6902 		pop		bc
  6903 		pop	de
  6903 		pop		de
  6904 		ex	de, hl
  6904 		ex		de, hl
  6905 		ld	h, b
  6905 		ld		h, b
  6906 		ld	a, l
  6906 		ld		a, l
  6907 		and	0Fh
  6907 		and		0Fh
  6908 		or	a
  6908 		or		a
  6909 		adc	a, c
  6909 		adc	a, c
  6910 		ld	l, a
  6910 		ld		l, a
  6911 		ex	de, hl
  6911 		ex		de, 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:
  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 ; ---------------------------------------------------------------------------
  6923 start_of_7D_table:
  6923 start_of_7D_table:
  6924 		.db    0
  6924 		.db		0
  6925 		.db    0
  6925 		.db		0
  6926 		.db  1Fh
  6926 		.db		1Fh
  6927 		.db    0
  6927 		.db		0
  6928 		.db  3Bh	; ;
  6928 		.db		3Bh	; ;
  6929 		.db    0
  6929 		.db		0
  6930 		.db  5Ah	; Z
  6930 		.db		5Ah	; Z
  6931 		.db    0
  6931 		.db		0
  6932 		.db  78h	; x
  6932 		.db		78h	; x
  6933 		.db    0
  6933 		.db		0
  6934 		.db  97h	; �
  6934 		.db		97h	; �
  6935 		.db    0
  6935 		.db		0
  6936 		.db 0B5h	; �
  6936 		.db		0B5h	; �
  6937 		.db    0
  6937 		.db		0
  6938 		.db 0D4h	; �
  6938 		.db		0D4h	; �
  6939 		.db    0
  6939 		.db		0
  6940 		.db 0F3h	; �
  6940 		.db		0F3h	; �
  6941 		.db    0
  6941 		.db		0
  6942 		.db  11h
  6942 		.db		11h
  6943 		.db    1
  6943 		.db		1
  6944 		.db  30h	; 0
  6944 		.db		30h	; 0
  6945 		.db    1
  6945 		.db		1
  6946 		.db  4Eh	; N
  6946 		.db		4Eh	; N
  6947 		.db    1
  6947 		.db		1
  6948 		.db 0FFh
  6948 		.db		0FFh
  6949 		.db 0FFh
  6949 		.db		0FFh
  6950 end_of_7D_table:
  6950 end_of_7D_table:
  6951 		.db  3Ch	; <
  6951 		.db		3Ch	; <
  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:
  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
  6963 		nop
  6963 		nop
  6964 		im	1
  6964 		im	1
  6965 		di
  6965 		di
  6966 		out	(14h), a
  6966 		out		(14h), a
  6967 		di
  6967 		di
  6968 		or	a
  6968 		or		a
  6969 		jp	nz, 0
  6969 		jp		nz, 0
  6970 		pop	af
  6970 		pop		af
  6971 		ret
  6971 		ret
  6972 ; End of function relockFlashBack
  6972 ; End of function relockFlashBack
  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:
  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)
  6984 		call	relockFlashBack
  6984 		call	relockFlashBack
  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:
  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 =======================================
  6999 p7Dsub_6006:
  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
  7005 		ld	a, c
  7005 		ld		a, c
  7006 		ld	(unk_83EA), a
  7006 		ld		(unk_83EA), a
  7007 		pop	bc
  7007 		pop		bc
  7008 		pop	af
  7008 		pop		af
  7009 		ret
  7009 		ret
  7010 ; End of function p7Dsub_6006
  7010 ; End of function p7Dsub_6006
  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:
  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
  7022 		push	bc
  7022 		push	bc
  7023 		pop	af
  7023 		pop		af
  7024 		pop	bc
  7024 		pop		bc
  7025 		ld	a, (unk_83EC)
  7025 		ld		a, (unk_83EC)
  7026 		ret
  7026 		ret
  7027 ; End of function p7Dsub_6011
  7027 ; End of function p7Dsub_6011
  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 =======================================
  7032 
  7032 
  7033 p7Dsub_6021:
  7033 p7Dsub_6021:
  7034 		call	p7Dsub_75F5
  7034 		call	p7Dsub_75F5
  7035 
  7035 
  7036 p7Dloc_6024:
  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
  7042 		ld	(de), a
  7042 		ld		(de), a
  7043 		inc	de
  7043 		inc		de
  7044 		ldir
  7044 		ldir
  7045 		call	p7Dsub_607A
  7045 		call	p7Dsub_607A
  7046 		push	af
  7046 		push	af
  7047 		ld	a, (ramStart)
  7047 		ld		a, (ramStart)
  7048 		ld	c, a
  7048 		ld		c, a
  7049 		ld	b, 0
  7049 		ld		b, 0
  7050 		ld	hl, 8001h
  7050 		ld		hl, 8001h
  7051 		ld	de, appID
  7051 		ld		de, appID
  7052 		ld	(de), a
  7052 		ld		(de), a
  7053 		inc	de
  7053 		inc		de
  7054 		ldir
  7054 		ldir
  7055 		pop	af
  7055 		pop		af
  7056 		ret	c
  7056 		ret		c
  7057 		call	p7Dsub_6067
  7057 		call	p7Dsub_6067
  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:
  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
  7069 		ld	de, appID
  7069 		ld		de, appID
  7070 		ld	(de), a
  7070 		ld		(de), a
  7071 		inc	de
  7071 		inc		de
  7072 		ldir
  7072 		ldir
  7073 		pop	af
  7073 		pop		af
  7074 		jr	p7Dloc_6024
  7074 		jr		p7Dloc_6024
  7075 ; End of function p7Dsub_6021
  7075 ; End of function p7Dsub_6021
  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:
  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:
  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
  7096 		djnz	p7Dloc_6072
  7096 		djnz	p7Dloc_6072
  7097 		ret
  7097 		ret
  7098 ; End of function p7Dsub_6067
  7098 ; End of function p7Dsub_6067
  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:
  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
  7110 		ld	(de), a
  7110 		ld		(de), a
  7111 		cp	7
  7111 		cp		7
  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:
  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
  7123 		or	a
  7123 		or		a
  7124 		rst	28h
  7124 		rst		28h
  7125 ; ---------------------------------------------------------------------------
  7125 ; ---------------------------------------------------------------------------
  7126 		.dw 8075h
  7126 		.dw		8075h
  7127 ; ---------------------------------------------------------------------------
  7127 ; ---------------------------------------------------------------------------
  7128 		jr	nz, p7Dsub_607A
  7128 		jr		nz, p7Dsub_607A
  7129 		ld	a, (appSearchPage)
  7129 		ld		a, (appSearchPage)
  7130 		inc	hl
  7130 		inc		hl
  7131 		rst	28h
  7131 		rst		28h
  7132 ; ---------------------------------------------------------------------------
  7132 ; ---------------------------------------------------------------------------
  7133 		.dw 805Ah
  7133 		.dw		805Ah
  7134 ; ---------------------------------------------------------------------------
  7134 ; ---------------------------------------------------------------------------
  7135 		ld	a, (appSearchPage)
  7135 		ld		a, (appSearchPage)
  7136 		rst	28h
  7136 		rst		28h
  7137 ; ---------------------------------------------------------------------------
  7137 ; ---------------------------------------------------------------------------
  7138 		.dw 8051h
  7138 		.dw		8051h
  7139 ; ---------------------------------------------------------------------------
  7139 ; ---------------------------------------------------------------------------
  7140 		or	a
  7140 		or		a
  7141 		jr	z, p7Dsub_607A
  7141 		jr		z, p7Dsub_607A
  7142 		inc	a
  7142 		inc		a
  7143 		jr	z, p7Dsub_607A
  7143 		jr		z, p7Dsub_607A
  7144 		ld	a, (appSearchPage)
  7144 		ld		a, (appSearchPage)
  7145 		push	hl
  7145 		push	hl
  7146 		push	bc
  7146 		push	bc
  7147 		call	p7Dsub_5E31
  7147 		call	p7Dsub_5E31
  7148 		call	Page7D_2B5C
  7148 		call	Page7D_2B5C
  7149 		jr	z, p7Dloc_60C2
  7149 		jr		z, p7Dloc_60C2
  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:
  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
  7161 		jr	nz, p7Dloc_60D2
  7161 		jr		nz, p7Dloc_60D2
  7162 		xor	a
  7162 		xor		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:
  7168 p7Dloc_60D2:
  7169 		ld	bc, 8
  7169 		ld		bc, 8
  7170 
  7170 
  7171 p7Dloc_60D5:
  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
  7177 ; ---------------------------------------------------------------------------
  7177 ; ---------------------------------------------------------------------------
  7178 		.dw 8054h
  7178 		.dw		8054h
  7179 ; ---------------------------------------------------------------------------
  7179 ; ---------------------------------------------------------------------------
  7180 		scf
  7180 		scf
  7181 		ccf
  7181 		ccf
  7182 
  7182 
  7183 locret_60E4:
  7183 locret_60E4:
  7185 ; End of function p7Dsub_607A
  7185 ; End of function p7Dsub_607A
  7186 
  7186 
  7187 ; ---------------------------------------------------------------------------
  7187 ; ---------------------------------------------------------------------------
  7188 
  7188 
  7189 FindAppUp:
  7189 FindAppUp:
  7190 		ld	a, 1
  7190 		ld		a, 1
  7191 		jr	p7Dloc_60EA
  7191 		jr		p7Dloc_60EA
  7192 ; ---------------------------------------------------------------------------
  7192 ; ---------------------------------------------------------------------------
  7193 
  7193 
  7194 FindAppDn:
  7194 FindAppDn:
  7195 		xor	a
  7195 		xor		a
  7196 
  7196 
  7197 p7Dloc_60EA:
  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:
  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
  7214 		push	af
  7214 		push	af
  7215 		ld	a, (unk_9C87)
  7215 		ld		a, (unk_9C87)
  7216 		cp	69h ; 'i'
  7216 		cp		69h ; 'i'
  7217 		ld	a, (appSearchPage)
  7217 		ld		a, (appSearchPage)
  7218 		call	nz, p7Dsub_7BAF
  7218 		call	nz, p7Dsub_7BAF
  7219 		pop	af
  7219 		pop		af
  7220 		call	p7Dsub_6172
  7220 		call	p7Dsub_6172
  7221 		jr	c, p7Dloc_612E
  7221 		jr		c, p7Dloc_612E
  7222 		bit	3, c
  7222 		bit		3, c
  7223 		jr	nz, p7Dloc_60FE
  7223 		jr		nz, p7Dloc_60FE
  7224 		pop	bc
  7224 		pop		bc
  7225 		inc	b
  7225 		inc		b
  7226 		push	bc
  7226 		push	bc
  7227 		bit	0, a
  7227 		bit		0, a
  7228 		jr	nz, p7Dloc_60FE
  7228 		jr		nz, p7Dloc_60FE
  7229 		bit	1, a
  7229 		bit		1, a
  7230 		jr	z, p7Dloc_6163
  7230 		jr		z, p7Dloc_6163
  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:
  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
  7242 		bit	1, a
  7242 		bit		1, a
  7243 		jr	z, p7Dloc_6163
  7243 		jr		z, p7Dloc_6163
  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:
  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
  7255 		ld	a, (unk_8497)
  7255 		ld		a, (unk_8497)
  7256 		ld	d, a
  7256 		ld		d, a
  7257 		xor	a
  7257 		xor		a
  7258 		ld	(unk_8497), a
  7258 		ld		(unk_8497), a
  7259 		ld	(unk_8481), a
  7259 		ld		(unk_8481), a
  7260 		ld	a, (unk_9C87)
  7260 		ld		a, (unk_9C87)
  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:
  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:
  7272 p7Dloc_6163:
  7273 		set	1, a
  7273 		set		1, a
  7274 
  7274 
  7275 p7Dloc_6165:
  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:
  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:
  7291 p7Dloc_6177:
  7292 		ld	de, 8496h
  7292 		ld		de, 8496h
  7293 
  7293 
  7294 p7Dloc_617A:
  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
  7300 		ld	a, h
  7300 		ld		a, h
  7301 		ret
  7301 		ret
  7302 ; End of function p7Dsub_6172
  7302 ; End of function p7Dsub_6172
  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 =======================================
  7308 p7Dsub_6186:
  7308 p7Dsub_6186:
  7309 		call	p7Dsub_75F5
  7309 		call	p7Dsub_75F5
  7310 
  7310 
  7311 p7Dloc_6189:
  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:
  7320 FindApp:
  7321 		call	p7Dsub_75F5
  7321 		call	p7Dsub_75F5
  7322 
  7322 
  7323 p7Dloc_6199:
  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:
  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
  7336 		push	af
  7336 		push	af
  7337 		rst	28h
  7337 		rst		28h
  7338 ; ---------------------------------------------------------------------------
  7338 ; ---------------------------------------------------------------------------
  7339 		.dw 8075h
  7339 		.dw		8075h
  7340 ; ---------------------------------------------------------------------------
  7340 ; ---------------------------------------------------------------------------
  7341 		pop	af
  7341 		pop		af
  7342 		inc	hl
  7342 		inc		hl
  7343 		push	af
  7343 		push	af
  7344 		rst	28h
  7344 		rst		28h
  7345 ; ---------------------------------------------------------------------------
  7345 ; ---------------------------------------------------------------------------
  7346 		.dw 805Ah
  7346 		.dw		805Ah
  7347 ; ---------------------------------------------------------------------------
  7347 ; ---------------------------------------------------------------------------
  7348 		pop	af
  7348 		pop		af
  7349 		pop	bc
  7349 		pop		bc
  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:
  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
  7361 		push	af
  7361 		push	af
  7362 		ld	hl, 4000h
  7362 		ld		hl, 4000h
  7363 		ld	de, 8040h
  7363 		ld		de, 8040h
  7364 		rst	28h
  7364 		rst		28h
  7365 ; ---------------------------------------------------------------------------
  7365 ; ---------------------------------------------------------------------------
  7366 		.dw 8075h
  7366 		.dw		8075h
  7367 ; ---------------------------------------------------------------------------
  7367 ; ---------------------------------------------------------------------------
  7368 		inc	hl
  7368 		inc		hl
  7369 		pop	af
  7369 		pop		af
  7370 		push	af
  7370 		push	af
  7371 		rst	28h
  7371 		rst		28h
  7372 ; ---------------------------------------------------------------------------
  7372 ; ---------------------------------------------------------------------------
  7373 		.dw 805Ah
  7373 		.dw		805Ah
  7374 ; ---------------------------------------------------------------------------
  7374 ; ---------------------------------------------------------------------------
  7375 		pop	af
  7375 		pop		af
  7376 		push	af
  7376 		push	af
  7377 		call	p7Dsub_5CFF
  7377 		call	p7Dsub_5CFF
  7378 		ld	hl, MD5Buffer
  7378 		ld		hl, MD5Buffer
  7379 		or	a
  7379 		or		a
  7380 		adc	hl, bc
  7380 		adc	hl, bc
  7381 		ld	(hl), 0
  7381 		ld		(hl), 0
  7382 		ld	a, 24h ; '$'
  7382 		ld		a, 24h ; '$'
  7383 		sub	c
  7383 		sub		c
  7384 		ld	l, a
  7384 		ld		l, a
  7385 		ld	h, 5
  7385 		ld		h, 5
  7386 		ld	(penCol), hl
  7386 		ld		(penCol), hl
  7387 		ld	hl, MD5Buffer
  7387 		ld		hl, MD5Buffer
  7388 		call	Page0Call_3D4D
  7388 		call	Page0Call_3D4D
  7389 		bit	1, (iy+35h)
  7389 		bit		1, (iy+35h)
  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:
  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:
  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
  7407 		push	af
  7407 		push	af
  7408 		call	p7Dloc_54A0
  7408 		call	p7Dloc_54A0
  7409 		jr	nz, p7Dloc_6270
  7409 		jr		nz, p7Dloc_6270
  7410 		pop	af
  7410 		pop		af
  7411 		push	af
  7411 		push	af
  7412 		call	Page7D_2CA0
  7412 		call	Page7D_2CA0
  7413 		jr	z, p7Dloc_6237
  7413 		jr		z, p7Dloc_6237
  7414 		ld	hl, aExpiredOn-2
  7414 		ld		hl, aExpiredOn-2
  7415 		ld	a, 51h ; 'Q'
  7415 		ld		a, 51h ; 'Q'
  7416 		bit	1, (iy+35h)
  7416 		bit		1, (iy+35h)
  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:
  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:
  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
  7435 		push	hl
  7435 		push	hl
  7436 		push	bc
  7436 		push	bc
  7437 		pop	hl
  7437 		pop		hl
  7438 		call	p7Dsub_598E
  7438 		call	p7Dsub_598E
  7439 		ld	a, (p7Dloc_6385)
  7439 		ld		a, (p7Dloc_6385)
  7440 		call	Page0Call_3D47
  7440 		call	Page0Call_3D47
  7441 		pop	hl
  7441 		pop		hl
  7442 		call	p7Dsub_598E
  7442 		call	p7Dsub_598E
  7443 		ld	a, (p7Dloc_6385)
  7443 		ld		a, (p7Dloc_6385)
  7444 		call	Page0Call_3D47
  7444 		call	Page0Call_3D47
  7445 		pop	hl
  7445 		pop		hl
  7446 		call	p7Dsub_598E
  7446 		call	p7Dsub_598E
  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:
  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
  7458 		ld	a, 53h ; 'S'
  7458 		ld		a, 53h ; 'S'
  7459 		bit	1, (iy+35h)
  7459 		bit		1, (iy+35h)
  7460 		call	nz, Page0Call_3C45
  7460 		call	nz, Page0Call_3C45
  7461 		call	p7Dsub_62B3
  7461 		call	p7Dsub_62B3
  7462 		ld	a, (OP1)
  7462 		ld		a, (OP1)
  7463 		ld	hl, OP1
  7463 		ld		hl, OP1
  7464 		call	p7Dsub_650D
  7464 		call	p7Dsub_650D
  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:
  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
  7476 		call	p7Dsub_62B3
  7476 		call	p7Dsub_62B3
  7477 		ei
  7477 		ei
  7478 		call	Page0Call_3F21
  7478 		call	Page0Call_3F21
  7479 		call	Page0Call_3837
  7479 		call	Page0Call_3837
  7483 
  7483 
  7484 
  7484 
  7485 p7Dsub_62B3:
  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
  7491 		inc	hl
  7491 		inc		hl
  7492 		call	Page0Call_3D4D
  7492 		call	Page0Call_3D4D
  7493 		ret
  7493 		ret
  7494 ; End of function p7Dsub_62B3
  7494 ; End of function p7Dsub_62B3
  7495 
  7495 
  7496 ; ---------------------------------------------------------------------------
  7496 ; ---------------------------------------------------------------------------
  7497 
  7497 
  7498 Page7D_2CB2:
  7498 Page7D_2CB2:
  7499 		call	Page0Call_2E65
  7499 		call	Page0Call_2E65
  7500 		ld	hl, progToEdit
  7500 		ld		hl, progToEdit
  7501 		ld	de, 8479h
  7501 		ld		de, 8479h
  7502 		call	Mov8B
  7502 		call	Mov8B
  7503 		xor	a
  7503 		xor		a
  7504 		call	FindApp
  7504 		call	FindApp
  7505 		jr	c, p7Dloc_6345
  7505 		jr		c, p7Dloc_6345
  7506 		push	hl
  7506 		push	hl
  7507 		push	af
  7507 		push	af
  7508 		call	FillBasePageTable
  7508 		call	FillBasePageTable
  7509 		call	Page0Call_3F09
  7509 		call	Page0Call_3F09
  7510 		di
  7510 		di
  7511 		push	af
  7511 		push	af
  7512 		ld	a, 1
  7512 		ld		a, 1
  7513 		nop
  7513 		nop
  7514 		di
  7514 		di
  7515 		nop
  7515 		nop
  7516 		nop
  7516 		nop
  7517 		im	1
  7517 		im	1
  7518 		di
  7518 		di
  7519 		out	(14h), a
  7519 		out		(14h), a
  7520 		di
  7520 		di
  7521 		call	checkForFlashTrickery
  7521 		call	checkForFlashTrickery
  7522 		pop	af
  7522 		pop		af
  7523 		pop	af
  7523 		pop		af
  7524 		push	af
  7524 		push	af
  7525 		call	p7Dsub_5E31
  7525 		call	p7Dsub_5E31
  7526 		call	Page7D_2B5C
  7526 		call	Page7D_2B5C
  7527 		jr	nz, p7Dloc_631D
  7527 		jr		nz, p7Dloc_631D
  7528 		pop	af
  7528 		pop		af
  7529 		push	af
  7529 		push	af
  7530 		rst	28h
  7530 		rst		28h
  7531 ; ---------------------------------------------------------------------------
  7531 ; ---------------------------------------------------------------------------
  7532 		.dw 80A8h
  7532 		.dw		80A8h
  7533 ; ---------------------------------------------------------------------------
  7533 ; ---------------------------------------------------------------------------
  7534 		jr	z, p7Dloc_6305
  7534 		jr		z, p7Dloc_6305
  7535 		pop	af
  7535 		pop		af
  7536 		push	af
  7536 		push	af
  7537 		rst	28h
  7537 		rst		28h
  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:
  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:
  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:
  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
  7565 		jr	z, p7Dloc_6344
  7565 		jr		z, p7Dloc_6344
  7566 		rst	28h
  7566 		rst		28h
  7567 ; ---------------------------------------------------------------------------
  7567 ; ---------------------------------------------------------------------------
  7568 		.dw 80A8h
  7568 		.dw		80A8h
  7569 ; ---------------------------------------------------------------------------
  7569 ; ---------------------------------------------------------------------------
  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:
  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:
  7585 p7Dloc_6344:
  7586 		pop	af
  7586 		pop		af
  7587 
  7587 
  7588 p7Dloc_6345:
  7588 p7Dloc_6345:
  7589 		jp	Page0Call_2539
  7589 		jp		Page0Call_2539
  7590 ; ---------------------------------------------------------------------------
  7590 ; ---------------------------------------------------------------------------
  7591 
  7591 
  7592 p7Dloc_6348:
  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
  7598 		call	z, p7Dsub_6FF9
  7598 		call	z, p7Dsub_6FF9
  7599 		ld	a, (appPage)
  7599 		ld		a, (appPage)
  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:
  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
  7611 ; ---------------------------------------------------------------------------
  7611 ; ---------------------------------------------------------------------------
  7612 		.dw 0D14h
  7612 		.dw		0D14h
  7613 aCCopyright1998:.asc '(c) Copyright 1998',0
  7613 aCCopyright1998:.asc '(c) Copyright 1998',0
  7614 ; ---------------------------------------------------------------------------
  7614 ; ---------------------------------------------------------------------------
  7615 
  7615 
  7616 p7Dloc_6384:
  7616 p7Dloc_6384:
  7617 		nop
  7617 		nop
  7625 
  7625 
  7626 
  7626 
  7627 p7Dsub_6388:
  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 
  7641 
  7641 
  7642 p7Dloc_638D:
  7642 p7Dloc_638D:
  7643 		push	af
  7643 		push	af
  7644 
  7644 
  7645 p7Dloc_638E:
  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
  7651 		jr	nz, p7Dloc_639B
  7651 		jr		nz, p7Dloc_639B
  7652 		pop	af
  7652 		pop		af
  7653 		scf
  7653 		scf
  7654 		ret
  7654 		ret
  7655 ; ---------------------------------------------------------------------------
  7655 ; ---------------------------------------------------------------------------
  7656 
  7656 
  7657 p7Dloc_639B:
  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
  7663 		jr	z, p7Dloc_638E
  7663 		jr		z, p7Dloc_638E
  7664 		ld	a, (appSearchPage)
  7664 		ld		a, (appSearchPage)
  7665 		ld	hl, 4000h
  7665 		ld		hl, 4000h
  7666 
  7666 
  7667 p7Dloc_63B0:
  7667 p7Dloc_63B0:
  7668 		ld	de, 8040h
  7668 		ld		de, 8040h
  7669 		rst	28h
  7669 		rst		28h
  7670 ; ---------------------------------------------------------------------------
  7670 ; ---------------------------------------------------------------------------
  7671 		.dw 8075h
  7671 		.dw		8075h
  7672 ; ---------------------------------------------------------------------------
  7672 ; ---------------------------------------------------------------------------
  7673 		jr	z, p7Dloc_63BF
  7673 		jr		z, p7Dloc_63BF
  7674 
  7674 
  7675 p7Dloc_63B8:
  7675 p7Dloc_63B8:
  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:
  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:
  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
  7697 		or	a
  7697 		or		a
  7698 		rst	28h
  7698 		rst		28h
  7699 ; ---------------------------------------------------------------------------
  7699 ; ---------------------------------------------------------------------------
  7700 		.dw 8075h
  7700 		.dw		8075h
  7701 ; ---------------------------------------------------------------------------
  7701 ; ---------------------------------------------------------------------------
  7702 		jr	nz, p7Dloc_638E
  7702 		jr		nz, p7Dloc_638E
  7703 		inc	hl
  7703 		inc		hl
  7704 		ld	a, (appSearchPage)
  7704 		ld		a, (appSearchPage)
  7705 		push	af
  7705 		push	af
  7706 		rst	28h
  7706 		rst		28h
  7707 ; ---------------------------------------------------------------------------
  7707 ; ---------------------------------------------------------------------------
  7708 		.dw 805Ah
  7708 		.dw		805Ah
  7709 ; ---------------------------------------------------------------------------
  7709 ; ---------------------------------------------------------------------------
  7710 		pop	af
  7710 		pop		af
  7711 		rst	28h
  7711 		rst		28h
  7712 ; ---------------------------------------------------------------------------
  7712 ; ---------------------------------------------------------------------------
  7713 		.dw 8051h
  7713 		.dw		8051h
  7714 ; ---------------------------------------------------------------------------
  7714 ; ---------------------------------------------------------------------------
  7715 		or	a
  7715 		or		a
  7716 		jr	z, p7Dloc_638E
  7716 		jr		z, p7Dloc_638E
  7717 		inc	a
  7717 		inc		a
  7718 		jr	z, p7Dloc_638E
  7718 		jr		z, p7Dloc_638E
  7719 		ld	a, (appSearchPage)
  7719 		ld		a, (appSearchPage)
  7720 		push	hl
  7720 		push	hl
  7721 		push	bc
  7721 		push	bc
  7722 		call	p7Dsub_5E31
  7722 		call	p7Dsub_5E31
  7723 		pop	bc
  7723 		pop		bc
  7724 		pop	hl
  7724 		pop		hl
  7725 		pop	af
  7725 		pop		af
  7726 		push	af
  7726 		push	af
  7727 		ld	a, (appSearchPage)
  7727 		ld		a, (appSearchPage)
  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:
  7733 p7Dloc_6402:
  7734 		call	Page7D_2B5C
  7734 		call	Page7D_2B5C
  7735 
  7735 
  7736 p7Dloc_6405:
  7736 p7Dloc_6405:
  7737 		jr	nz, p7Dloc_638E
  7737 		jr		nz, p7Dloc_638E
  7738 
  7738 
  7739 p7Dloc_6407:
  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
  7745 		pop	hl
  7745 		pop		hl
  7746 		ld	a, b
  7746 		ld		a, b
  7747 		or	a
  7747 		or		a
  7748 		jr	nz, p7Dloc_6419
  7748 		jr		nz, p7Dloc_6419
  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:
  7754 p7Dloc_6419:
  7755 		ld	bc, 8
  7755 		ld		bc, 8
  7756 
  7756 
  7757 p7Dloc_641C:
  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
  7763 ; ---------------------------------------------------------------------------
  7763 ; ---------------------------------------------------------------------------
  7764 		scf
  7764 		scf
  7765 		ccf
  7765 		ccf
  7766 		ret
  7766 		ret
  7767 ; End of function p7Dsub_638B
  7767 ; End of function p7Dsub_638B
  7773 p7Dsub_6428:
  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
  7779 		ld	(appInfo+1), a
  7779 		ld		(appInfo+1), a
  7780 		call	p7Dsub_7CB2
  7780 		call	p7Dsub_7CB2
  7781 		jr	z, p7Dloc_6462
  7781 		jr		z, p7Dloc_6462
  7782 		call	p7Dsub_7124
  7782 		call	p7Dsub_7124
  7783 		jr	z, p7Dloc_644E
  7783 		jr		z, p7Dloc_644E
  7784 		call	OP1ToOP4
  7784 		call	OP1ToOP4
  7785 		ld	a, 14h
  7785 		ld		a, 14h
  7786 		ld	(OP4), a
  7786 		ld		(OP4), a
  7787 		rst	18h
  7787 		rst		18h
  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:
  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:
  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:
  7807 p7Dloc_6468:
  7808 		call	relockFlashBack
  7808 		call	relockFlashBack
  7809 
  7809 
  7810 p7Dloc_646B:
  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
  7816 
  7816 
  7817 ; ---------------------------------------------------------------------------
  7817 ; ---------------------------------------------------------------------------
  7818 
  7818 
  7820 		push	hl
  7820 		push	hl
  7821 		push	de
  7821 		push	de
  7822 		push	bc
  7822 		push	bc
  7823 		push	af
  7823 		push	af
  7824 		push	af
  7824 		push	af
  7825 		ld	a, 1
  7825 		ld		a, 1
  7826 		nop
  7826 		nop
  7827 		di
  7827 		di
  7828 		nop
  7828 		nop
  7829 		nop
  7829 		nop
  7830 		im	1
  7830 		im	1
  7831 		di
  7831 		di
  7832 		out	(14h), a
  7832 		out		(14h), a
  7833 		di
  7833 		di
  7834 		call	checkForFlashTrickery
  7834 		call	checkForFlashTrickery
  7835 		pop	af
  7835 		pop		af
  7836 		ld	hl, 4000h
  7836 		ld		hl, 4000h
  7837 		call	p7Dsub_4566
  7837 		call	p7Dsub_4566
  7838 		cp	0
  7838 		cp		0
  7839 		jr	z, p7Dloc_64AE
  7839 		jr		z, p7Dloc_64AE
  7840 		ld	hl, 6000h
  7840 		ld		hl, 6000h
  7841 		call	p7Dsub_4566
  7841 		call	p7Dsub_4566
  7842 		cp	0
  7842 		cp		0
  7843 		jr	z, p7Dloc_64AE
  7843 		jr		z, p7Dloc_64AE
  7844 		cp	8Fh ; '�'
  7844 		cp		8Fh ; '�'
  7845 		jr	z, p7Dloc_64A6
  7845 		jr		z, p7Dloc_64A6
  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:
  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:
  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 ; '�'
  7864 		jr	z, p7Dloc_64C0
  7864 		jr		z, p7Dloc_64C0
  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:
  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:
  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:
  7888 p7Dloc_64D8:
  7889 		call	Page0Call_2B89
  7889 		call	Page0Call_2B89
  7890 
  7890 
  7891 p7Dloc_64DB:
  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:
  7898 p7Dloc_64E1:
  7899 		ld	hl, 4001h
  7899 		ld		hl, 4001h
  7900 		ld	de, 6001h
  7900 		ld		de, 6001h
  7901 
  7901 
  7902 p7Dloc_64E7:
  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:
  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:
  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
  7921 		ld	l, a
  7921 		ld		l, a
  7922 		call	p7Dsub_457C
  7922 		call	p7Dsub_457C
  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:
  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:
  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:
  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:
  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:
  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:
  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:
  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
  7986 ; End of function p7Dsub_6523
  7986 ; End of function p7Dsub_6523
  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 =======================================
  7991 
  7991 
  7992 p7Dsub_652E:
  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
  7998 		or	a
  7998 		or		a
  7999 		adc	hl, de
  7999 		adc	hl, de
  8000 		call	p7Dsub_57C5
  8000 		call	p7Dsub_57C5
  8001 		ld	(unk_83A1), hl
  8001 		ld		(unk_83A1), hl
  8002 		jr	nc, p7Dloc_654C
  8002 		jr		nc, p7Dloc_654C
  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:
  8008 p7Dloc_6549:
  8009 		ld	(unk_839F), hl
  8009 		ld		(unk_839F), hl
  8010 
  8010 
  8011 p7Dloc_654C:
  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:
  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
  8028 		ret
  8028 		ret
  8029 ; End of function Page7D_2CE2
  8029 ; End of function Page7D_2CE2
  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 =======================================
  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
  8041 		ex	de, hl
  8041 		ex		de, hl
  8042 		ld	de, 4000h
  8042 		ld		de, 4000h
  8043 		rst	28h
  8043 		rst		28h
  8044 ; ---------------------------------------------------------------------------
  8044 ; ---------------------------------------------------------------------------
  8045 		.dw 804Bh
  8045 		.dw		804Bh
  8046 ; ---------------------------------------------------------------------------
  8046 ; ---------------------------------------------------------------------------
  8047 		ld	a, (arcPage)
  8047 		ld		a, (arcPage)
  8048 		add	a, e
  8048 		add		a, e
  8049 		ld	(arcPage), a
  8049 		ld		(arcPage), a
  8050 		ld	a, e
  8050 		ld		a, e
  8051 		ld	de, 4000h
  8051 		ld		de, 4000h
  8052 		rst	28h
  8052 		rst		28h
  8053 ; ---------------------------------------------------------------------------
  8053 ; ---------------------------------------------------------------------------
  8054 		.dw 8045h
  8054 		.dw		8045h
  8055 ; ---------------------------------------------------------------------------
  8055 ; ---------------------------------------------------------------------------
  8056 		push	hl
  8056 		push	hl
  8057 		pop	bc
  8057 		pop		bc
  8058 		pop	hl
  8058 		pop		hl
  8059 		or	a
  8059 		or		a
  8060 		sbc	hl, bc
  8060 		sbc		hl, bc
  8061 		push	hl
  8061 		push	hl
  8062 		pop	bc
  8062 		pop		bc
  8063 		ld	hl, (arcPtr)
  8063 		ld		hl, (arcPtr)
  8064 		or	a
  8064 		or		a
  8065 		adc	hl, bc
  8065 		adc	hl, bc
  8066 		bit	7, h
  8066 		bit		7, h
  8067 		jr	z, p7Dloc_6591
  8067 		jr		z, p7Dloc_6591
  8068 		ld	a, (arcPage)
  8068 		ld		a, (arcPage)
  8069 		inc	a
  8069 		inc		a
  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:
  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
  8081 ; End of function Page7D_2CCA
  8081 ; End of function Page7D_2CCA
  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 =======================================
  8086 
  8086 
  8087 p7Dsub_6598:
  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:
  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:
  8101 p7Dloc_65A6:
  8102 		xor	a
  8102 		xor		a
  8103 		ld	b, 4
  8103 		ld		b, 4
  8104 
  8104 
  8105 p7Dloc_65A9:
  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
  8111 		pop	af
  8111 		pop		af
  8112 		ret
  8112 		ret
  8113 ; End of function p7Dsub_6598
  8113 ; End of function p7Dsub_6598
  8114 
  8114 
  8115 ; ---------------------------------------------------------------------------
  8115 ; ---------------------------------------------------------------------------
  8116 
  8116 
  8117 ArcChk:
  8117 ArcChk:
  8118 		push	af
  8118 		push	af
  8119 		push	hl
  8119 		push	hl
  8120 		bit	6, (iy+24h)
  8120 		bit		6, (iy+24h)
  8121 		jr	nz, p7Dloc_65F2
  8121 		jr		nz, p7Dloc_65F2
  8122 		call	p7Dloc_65A0
  8122 		call	p7Dloc_65A0
  8123 		ld	(Abackup), a
  8123 		ld		(Abackup), a
  8124 		ld	a, i
  8124 		ld		a, i
  8125 		di
  8125 		di
  8126 		push	af
  8126 		push	af
  8127 		ld	a, (Abackup)
  8127 		ld		a, (Abackup)
  8128 		push	af
  8128 		push	af
  8129 		ld	a, 1
  8129 		ld		a, 1
  8130 		nop
  8130 		nop
  8131 		di
  8131 		di
  8132 		nop
  8132 		nop
  8133 		nop
  8133 		nop
  8134 		im	1
  8134 		im	1
  8135 		di
  8135 		di
  8136 		out	(14h), a
  8136 		out		(14h), a
  8137 		di
  8137 		di
  8138 		call	checkForFlashTrickery
  8138 		call	checkForFlashTrickery
  8139 		pop	af
  8139 		pop		af
  8140 		call	Page7D_2C10
  8140 		call	Page7D_2C10
  8141 		call	relockFlashBack
  8141 		call	relockFlashBack
  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:
  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:
  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:
  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:
  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
  8176 		djnz	p7Dloc_6617
  8176 		djnz	p7Dloc_6617
  8177 		pop	hl
  8177 		pop		hl
  8178 		pop	af
  8178 		pop		af
  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:
  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:
  8193 p7Dsub_6626:
  8194 		ld	de, 839Fh
  8194 		ld		de, 839Fh
  8195 
  8195 
  8196 p7Dloc_6629:
  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:
  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:
  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
  8218 		call	Page7D_2CD0
  8218 		call	Page7D_2CD0
  8219 		cp	0FEh ; '�'
  8219 		cp		0FEh ; '�'
  8220 		jr	z, p7Dloc_6664
  8220 		jr		z, p7Dloc_6664
  8221 		cp	0FFh
  8221 		cp		0FFh
  8222 		jr	nz, p7Dloc_665C
  8222 		jr		nz, p7Dloc_665C
  8223 		pop	af
  8223 		pop		af
  8224 		push	af
  8224 		push	af
  8225 		call	Page7D_2B74
  8225 		call	Page7D_2B74
  8226 		call	p7Dsub_652E
  8226 		call	p7Dsub_652E
  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:
  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:
  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:
  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:
  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
  8257 		push	bc
  8257 		push	bc
  8258 		pop	de
  8258 		pop		de
  8259 		pop	bc
  8259 		pop		bc
  8260 		jr	z, p7Dloc_6696
  8260 		jr		z, p7Dloc_6696
  8261 		inc	sp
  8261 		inc		sp
  8262 		inc	sp
  8262 		inc		sp
  8263 		inc	sp
  8263 		inc		sp
  8264 		inc	sp
  8264 		inc		sp
  8265 		ld	(arcPage), a
  8265 		ld		(arcPage), a
  8266 		ld	(arcPtr), hl
  8266 		ld		(arcPtr), hl
  8267 		inc	de
  8267 		inc		de
  8268 		inc	de
  8268 		inc		de
  8269 		inc	de
  8269 		inc		de
  8270 		push	de
  8270 		push	de
  8271 		call	Page7D_2CCA
  8271 		call	Page7D_2CCA
  8272 		pop	de
  8272 		pop		de
  8273 		call	p7Dsub_652E
  8273 		call	p7Dsub_652E
  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:
  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:
  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:
  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
  8304 		sbc	hl, bc
  8304 		sbc		hl, bc
  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:
  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
  8316 
  8316 
  8317 ; ---------------------------------------------------------------------------
  8317 ; ---------------------------------------------------------------------------
  8318 
  8318 
  8319 Page7D_2EB6:
  8319 Page7D_2EB6:
  8320 		push	bc
  8320 		push	bc
  8321 		push	de
  8321 		push	de
  8322 		ld	a, (OP1)
  8322 		ld		a, (OP1)
  8323 		push	af
  8323 		push	af
  8324 		push	bc
  8324 		push	bc
  8325 		ld	bc, 0
  8325 		ld		bc, 0
  8326 		ld	(freeArcBlock), bc
  8326 		ld		(freeArcBlock), bc
  8327 		call	Page7D_2B56
  8327 		call	Page7D_2B56
  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:
  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:
  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:
  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:
  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:
  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
  8369 		ld	(arcPtr), hl
  8369 		ld		(arcPtr), hl
  8370 		call	Page7D_2CE2
  8370 		call	Page7D_2CE2
  8371 		call	Page7D_2B6E
  8371 		call	Page7D_2B6E
  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:
  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)
  8383 		ld	b, a
  8383 		ld		b, a
  8384 		inc	b
  8384 		inc		b
  8385 		pop	af
  8385 		pop		af
  8386 		call	Page7D_2B74
  8386 		call	Page7D_2B74
  8387 		ex	de, hl
  8387 		ex		de, hl
  8388 		pop	bc
  8388 		pop		bc
  8389 		or	a
  8389 		or		a
  8390 		call	p7Dsub_66A9
  8390 		call	p7Dsub_66A9
  8391 		sbc	hl, bc
  8391 		sbc		hl, bc
  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:
  8397 p7Dloc_672F:
  8398 		ld	a, 0FFh
  8398 		ld		a, 0FFh
  8399 		add	a, 10h
  8399 		add		a, 10h
  8400 
  8400 
  8401 p7Dloc_6733:
  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
  8407 		pop	de
  8407 		pop		de
  8408 		pop	bc
  8408 		pop		bc
  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:
  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:
  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
  8430 		jr	nc, p7Dloc_6765
  8430 		jr		nc, p7Dloc_6765
  8431 		ld	hl, 4000h
  8431 		ld		hl, 4000h
  8432 		push	af
  8432 		push	af
  8433 		call	Page7D_2CD0
  8433 		call	Page7D_2CD0
  8434 		cp	0FFh
  8434 		cp		0FFh
  8435 		jr	nz, p7Dloc_6764
  8435 		jr		nz, p7Dloc_6764
  8436 		ld	hl, 4000h
  8436 		ld		hl, 4000h
  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:
  8442 p7Dloc_6764:
  8443 		pop	af
  8443 		pop		af
  8444 
  8444 
  8445 p7Dloc_6765:
  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
  8451 ; End of function Page7D_2B74
  8451 ; End of function Page7D_2B74
  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:
  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
  8463 		push	hl
  8463 		push	hl
  8464 		push	af
  8464 		push	af
  8465 		or	3
  8465 		or		3
  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:
  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:
  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:
  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
  8488 		cp	0FFh
  8488 		cp		0FFh
  8489 		jr	z, p7Dloc_67C2
  8489 		jr		z, p7Dloc_67C2
  8490 		ld	(arcPtr), hl
  8490 		ld		(arcPtr), hl
  8491 		call	Page7D_2CE2
  8491 		call	Page7D_2CE2
  8492 		ld	a, (arcPage)
  8492 		ld		a, (arcPage)
  8493 		call	Page7D_2CD0
  8493 		call	Page7D_2CD0
  8494 		ld	e, a
  8494 		ld		e, a
  8495 		call	Page7D_2CE2
  8495 		call	Page7D_2CE2
  8496 		ld	a, (arcPage)
  8496 		ld		a, (arcPage)
  8497 		call	Page7D_2CD0
  8497 		call	Page7D_2CD0
  8498 		ld	d, a
  8498 		ld		d, a
  8499 		inc	de
  8499 		inc		de
  8500 		call	Page7D_2CCA
  8500 		call	Page7D_2CCA
  8501 		ld	a, (unk_8390)
  8501 		ld		a, (unk_8390)
  8502 		ld	b, a
  8502 		ld		b, a
  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:
  8508 p7Dloc_67BF:
  8509 		pop	bc
  8509 		pop		bc
  8510 		jr	p7Dloc_678A
  8510 		jr		p7Dloc_678A
  8511 ; ---------------------------------------------------------------------------
  8511 ; ---------------------------------------------------------------------------
  8512 
  8512 
  8513 p7Dloc_67C2:
  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:
  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
  8527 		call	Page7D_2CE2
  8527 		call	Page7D_2CE2
  8528 		ld	a, (arcPage)
  8528 		ld		a, (arcPage)
  8529 		call	Page7D_2CD0
  8529 		call	Page7D_2CD0
  8530 		ld	c, a
  8530 		ld		c, a
  8531 		ld	a, (arcPage)
  8531 		ld		a, (arcPage)
  8532 		call	Page7D_2CE2
  8532 		call	Page7D_2CE2
  8533 		ld	a, (arcPage)
  8533 		ld		a, (arcPage)
  8534 		call	Page7D_2CD0
  8534 		call	Page7D_2CD0
  8535 		ld	b, a
  8535 		ld		b, a
  8536 		pop	hl
  8536 		pop		hl
  8537 		pop	af
  8537 		pop		af
  8538 		or	a
  8538 		or		a
  8539 		ret
  8539 		ret
  8540 ; End of function Page7D_2B6E
  8540 ; End of function Page7D_2B6E
  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:
  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
  8552 		jr	z, p7Dloc_67FE
  8552 		jr		z, p7Dloc_67FE
  8553 		call	NZIf83Plus
  8553 		call	NZIf83Plus
  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:
  8559 p7Dloc_67FC:
  8560 		cp	16h
  8560 		cp		16h
  8561 
  8561 
  8562 p7Dloc_67FE:
  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 =======================================
  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:
  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:
  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
  8593 		ld	a, c
  8593 		ld		a, c
  8594 		or	c
  8594 		or		c
  8595 		jr	z, p7Dloc_6827
  8595 		jr		z, p7Dloc_6827
  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:
  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
  8607 		pop	af
  8607 		pop		af
  8608 		ret
  8608 		ret
  8609 ; End of function Page7D_2B56
  8609 ; End of function Page7D_2B56
  8610 
  8610 
  8611 ; ---------------------------------------------------------------------------
  8611 ; ---------------------------------------------------------------------------
  8612 
  8612 
  8613 Page7D_2EC2:
  8613 Page7D_2EC2:
  8614 		res	7, (iy+24h)
  8614 		res		7, (iy+24h)
  8615 		push	af
  8615 		push	af
  8616 		ld	a, 1
  8616 		ld		a, 1
  8617 		nop
  8617 		nop
  8618 		di
  8618 		di
  8619 		nop
  8619 		nop
  8620 		nop
  8620 		nop
  8621 		im	1
  8621 		im	1
  8622 		di
  8622 		di
  8623 		out	(14h), a
  8623 		out		(14h), a
  8624 		di
  8624 		di
  8625 		call	checkForFlashTrickery
  8625 		call	checkForFlashTrickery
  8626 		pop	af
  8626 		pop		af
  8627 		ld	a, (arcInfo)
  8627 		ld		a, (arcInfo)
  8628 		ld	hl, (arcInfo+1)
  8628 		ld		hl, (arcInfo+1)
  8629 		call	p7Dsub_69E8
  8629 		call	p7Dsub_69E8
  8630 		ld	de, (unk_83F3)
  8630 		ld		de, (unk_83F3)
  8631 		ld	bc, (unk_83F9)
  8631 		ld		bc, (unk_83F9)
  8632 		call	Page7D_2C46
  8632 		call	Page7D_2C46
  8633 		jp	c, Page0Call_2541
  8633 		jp		c, Page0Call_2541
  8634 		rst	28h
  8634 		rst		28h
  8635 ; ---------------------------------------------------------------------------
  8635 ; ---------------------------------------------------------------------------
  8636 		.dw 8054h
  8636 		.dw		8054h
  8637 ; ---------------------------------------------------------------------------
  8637 ; ---------------------------------------------------------------------------
  8638 		ld	de, (arcInfo+1)
  8638 		ld		de, (arcInfo+1)
  8639 		ld	a, (arcInfo)
  8639 		ld		a, (arcInfo)
  8640 		ld	b, 0F0h	; '�'
  8640 		ld		b, 0F0h	; '�'
  8641 		rst	28h
  8641 		rst		28h
  8642 ; ---------------------------------------------------------------------------
  8642 ; ---------------------------------------------------------------------------
  8643 		.dw 8021h
  8643 		.dw		8021h
  8644 ; ---------------------------------------------------------------------------
  8644 ; ---------------------------------------------------------------------------
  8645 		ld	de, (unk_83F3)
  8645 		ld		de, (unk_83F3)
  8646 		ld	(arcInfo+1), de
  8646 		ld		(arcInfo+1), de
  8647 		ld	a, 0
  8647 		ld		a, 0
  8648 		ld	(arcInfo), a
  8648 		ld		(arcInfo), a
  8649 		ld	hl, (unk_83F1)
  8649 		ld		hl, (unk_83F1)
  8650 		call	Page0Call_2EDD
  8650 		call	Page0Call_2EDD
  8651 		jp	relockFlashBack
  8651 		jp		relockFlashBack
  8652 ; ---------------------------------------------------------------------------
  8652 ; ---------------------------------------------------------------------------
  8653 
  8653 
  8654 Page7D_2D06:
  8654 Page7D_2D06:
  8655 		res	7, (iy+24h)
  8655 		res		7, (iy+24h)
  8656 		push	af
  8656 		push	af
  8657 		ld	a, 1
  8657 		ld		a, 1
  8658 		nop
  8658 		nop
  8659 		di
  8659 		di
  8660 		nop
  8660 		nop
  8661 		nop
  8661 		nop
  8662 		im	1
  8662 		im	1
  8663 		di
  8663 		di
  8664 		out	(14h), a
  8664 		out		(14h), a
  8665 		di
  8665 		di
  8666 		call	checkForFlashTrickery
  8666 		call	checkForFlashTrickery
  8667 		pop	af
  8667 		pop		af
  8668 		ex	de, hl
  8668 		ex		de, 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:
  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
  8680 		nop
  8680 		nop
  8681 		nop
  8681 		nop
  8682 		im	1
  8682 		im	1
  8683 		di
  8683 		di
  8684 		out	(14h), a
  8684 		out		(14h), a
  8685 		di
  8685 		di
  8686 		call	checkForFlashTrickery
  8686 		call	checkForFlashTrickery
  8687 		pop	af
  8687 		pop		af
  8688 		ld	a, (arcInfo)
  8688 		ld		a, (arcInfo)
  8689 		ld	hl, (arcInfo+1)
  8689 		ld		hl, (arcInfo+1)
  8690 		call	p7Dsub_69D4
  8690 		call	p7Dsub_69D4
  8691 		jr	nz, p7Dloc_68D2
  8691 		jr		nz, p7Dloc_68D2
  8692 		ld	b, 0F0h	; '�'
  8692 		ld		b, 0F0h	; '�'
  8693 		ld	a, (arcInfo)
  8693 		ld		a, (arcInfo)
  8694 		ld	de, (arcInfo+1)
  8694 		ld		de, (arcInfo+1)
  8695 		call	p7Dsub_6F82
  8695 		call	p7Dsub_6F82
  8696 		jp	c, Page0Call_2541
  8696 		jp		c, Page0Call_2541
  8697 		rst	28h
  8697 		rst		28h
  8698 ; ---------------------------------------------------------------------------
  8698 ; ---------------------------------------------------------------------------
  8699 		.dw 8021h
  8699 		.dw		8021h
  8700 ; ---------------------------------------------------------------------------
  8700 ; ---------------------------------------------------------------------------
  8701 		ld	hl, (arcInfo+1)
  8701 		ld		hl, (arcInfo+1)
  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:
  8707 p7Dloc_68D2:
  8708 		ld	de, (arcInfo+1)
  8708 		ld		de, (arcInfo+1)
  8709 
  8709 
  8710 p7Dloc_68D6:
  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
  8716 		jp	c, Page0Call_2541
  8716 		jp		c, Page0Call_2541
  8717 		rst	28h
  8717 		rst		28h
  8718 ; ---------------------------------------------------------------------------
  8718 ; ---------------------------------------------------------------------------
  8719 		.dw 8021h
  8719 		.dw		8021h
  8720 ; ---------------------------------------------------------------------------
  8720 ; ---------------------------------------------------------------------------
  8721 		ld	a, (arcInfo)
  8721 		ld		a, (arcInfo)
  8722 		ld	de, (unk_8402)
  8722 		ld		de, (unk_8402)
  8723 		ld	(arcPage), a
  8723 		ld		(arcPage), a
  8724 		ld	(arcPtr), de
  8724 		ld		(arcPtr), de
  8725 		call	Page7D_2CE2
  8725 		call	Page7D_2CE2
  8726 		ld	a, (arcPage)
  8726 		ld		a, (arcPage)
  8727 		ld	de, (arcPtr)
  8727 		ld		de, (arcPtr)
  8728 		ld	hl, 83F9h
  8728 		ld		hl, 83F9h
  8729 		ld	bc, 2
  8729 		ld		bc, 2
  8730 		call	Page7D_2C46
  8730 		call	Page7D_2C46
  8731 		jp	c, Page0Call_2541
  8731 		jp		c, Page0Call_2541
  8732 		rst	28h
  8732 		rst		28h
  8733 ; ---------------------------------------------------------------------------
  8733 ; ---------------------------------------------------------------------------
  8734 		.dw 8087h
  8734 		.dw		8087h
  8735 ; ---------------------------------------------------------------------------
  8735 ; ---------------------------------------------------------------------------
  8736 		ld	de, 2
  8736 		ld		de, 2
  8737 		call	Page7D_2CCA
  8737 		call	Page7D_2CCA
  8738 		ld	a, (unk_8404)
  8738 		ld		a, (unk_8404)
  8739 		ld	(arcInfo), a
  8739 		ld		(arcInfo), a
  8740 		ld	de, (arcPtr)
  8740 		ld		de, (arcPtr)
  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:
  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:
  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
  8759 		pop	de
  8759 		pop		de
  8760 		ld	a, (arcInfo)
  8760 		ld		a, (arcInfo)
  8761 		ld	bc, (unk_83F5)
  8761 		ld		bc, (unk_83F5)
  8762 		ld	hl, OP1
  8762 		ld		hl, OP1
  8763 		res	7, (hl)
  8763 		res		7, (hl)
  8764 		ld	(arcPtr), de
  8764 		ld		(arcPtr), de
  8765 		ld	(arcPage), a
  8765 		ld		(arcPage), a
  8766 		call	Page7D_2C46
  8766 		call	Page7D_2C46
  8767 		jp	c, Page0Call_2541
  8767 		jp		c, Page0Call_2541
  8768 		rst	28h
  8768 		rst		28h
  8769 ; ---------------------------------------------------------------------------
  8769 ; ---------------------------------------------------------------------------
  8770 		.dw 8087h
  8770 		.dw		8087h
  8771 ; ---------------------------------------------------------------------------
  8771 ; ---------------------------------------------------------------------------
  8772 		ld	de, (unk_83F5)
  8772 		ld		de, (unk_83F5)
  8773 		call	Page7D_2CCA
  8773 		call	Page7D_2CCA
  8774 		ld	a, (arcPage)
  8774 		ld		a, (arcPage)
  8775 		ld	(arcInfo), a
  8775 		ld		(arcInfo), a
  8776 		ld	de, (arcPtr)
  8776 		ld		de, (arcPtr)
  8777 		ld	(unk_83FB), de
  8777 		ld		(unk_83FB), de
  8778 		bit	3, (iy+26h)
  8778 		bit		3, (iy+26h)
  8779 		res	3, (iy+26h)
  8779 		res		3, (iy+26h)
  8780 		jr	nz, p7Dloc_69D1
  8780 		jr		nz, p7Dloc_69D1
  8781 		ld	a, (arcInfo)
  8781 		ld		a, (arcInfo)
  8782 		ld	hl, (unk_83F3)
  8782 		ld		hl, (unk_83F3)
  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:
  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:
  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)
  8805 		jr	nz, p7Dloc_69D1
  8805 		jr		nz, p7Dloc_69D1
  8806 		ld	de, (unk_8402)
  8806 		ld		de, (unk_8402)
  8807 		ld	b, 0FCh	; '�'
  8807 		ld		b, 0FCh	; '�'
  8808 		ld	a, (unk_8404)
  8808 		ld		a, (unk_8404)
  8809 		call	p7Dsub_6F82
  8809 		call	p7Dsub_6F82
  8810 		jp	c, Page0Call_2541
  8810 		jp		c, Page0Call_2541
  8811 		rst	28h
  8811 		rst		28h
  8812 ; ---------------------------------------------------------------------------
  8812 ; ---------------------------------------------------------------------------
  8813 		.dw 8021h
  8813 		.dw		8021h
  8814 ; ---------------------------------------------------------------------------
  8814 ; ---------------------------------------------------------------------------
  8815 
  8815 
  8816 p7Dloc_69D1:
  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:
  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:
  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
  8841 
  8841 
  8842 ; ---------------------------------------------------------------------------
  8842 ; ---------------------------------------------------------------------------
  8843 
  8843 
  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
  8858 		ld	e, a
  8858 		ld		e, a
  8859 		pop	af
  8859 		pop		af
  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:
  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
  8871 		pop	af
  8871 		pop		af
  8872 		ret
  8872 		ret
  8873 ; End of function p7Dsub_69E8
  8873 ; End of function p7Dsub_69E8
  8874 
  8874 
  8875 ; ---------------------------------------------------------------------------
  8875 ; ---------------------------------------------------------------------------
  8876 
  8876 
  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:
  8884 p7Dsub_6A07:
  8885 
  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:
  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
  8899 		jr	nc, p7Dloc_6A21
  8899 		jr		nc, p7Dloc_6A21
  8900 		ld	d, a
  8900 		ld		d, a
  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:
  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
  8912 		pop	af
  8912 		pop		af
  8913 		ld	(arcPage), a
  8913 		ld		(arcPage), a
  8914 		call	Page7D_2CD0
  8914 		call	Page7D_2CD0
  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:
  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:
  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)
  8934 		ret
  8934 		ret
  8935 ; End of function p7Dsub_6A07
  8935 ; End of function p7Dsub_6A07
  8936 
  8936 
  8937 ; ---------------------------------------------------------------------------
  8937 ; ---------------------------------------------------------------------------
  8938 
  8938 
  8939 Page7D_2D42:
  8939 Page7D_2D42:
  8940 		call	Page7D_2B56
  8940 		call	Page7D_2B56
  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:
  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:
  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 ; ---------------------------------------------------------------------------
  8961 
  8961 
  8962 Page7D_2D36:
  8962 Page7D_2D36:
  8963 		call	Page0Call_3F2D
  8963 		call	Page0Call_3F2D
  8964 		push	af
  8964 		push	af
  8965 		ld	a, 1
  8965 		ld		a, 1
  8966 		nop
  8966 		nop
  8967 		di
  8967 		di
  8968 		nop
  8968 		nop
  8969 		nop
  8969 		nop
  8970 		im	1
  8970 		im	1
  8971 		di
  8971 		di
  8972 		out	(14h), a
  8972 		out		(14h), a
  8973 		di
  8973 		di
  8974 		call	checkForFlashTrickery
  8974 		call	checkForFlashTrickery
  8975 		pop	af
  8975 		pop		af
  8976 		ld	a, 8
  8976 		ld		a, 8
  8977 		rst	28h
  8977 		rst		28h
  8978 ; ---------------------------------------------------------------------------
  8978 ; ---------------------------------------------------------------------------
  8979 		.dw 8084h
  8979 		.dw		8084h
  8980 ; ---------------------------------------------------------------------------
  8980 ; ---------------------------------------------------------------------------
  8981 		ld	a, 8
  8981 		ld		a, 8
  8982 		ld	de, 4000h
  8982 		ld		de, 4000h
  8983 		ld	b, 0FEh	; '�'
  8983 		ld		b, 0FEh	; '�'
  8984 		rst	28h
  8984 		rst		28h
  8985 ; ---------------------------------------------------------------------------
  8985 ; ---------------------------------------------------------------------------
  8986 		.dw 8021h
  8986 		.dw		8021h
  8987 ; ---------------------------------------------------------------------------
  8987 ; ---------------------------------------------------------------------------
  8988 		ld	a, 0Ch
  8988 		ld		a, 0Ch
  8989 
  8989 
  8990 p7Dloc_6A9C:
  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
  8996 ; ---------------------------------------------------------------------------
  8996 ; ---------------------------------------------------------------------------
  8997 		.dw 8084h
  8997 		.dw		8084h
  8998 ; ---------------------------------------------------------------------------
  8998 ; ---------------------------------------------------------------------------
  8999 		pop	af
  8999 		pop		af
  9000 		add	a, 4
  9000 		add		a, 4
  9001 
  9001 
  9002 p7Dloc_6AA8:				; DATA XREF: seg001:76B7w seg001:76C9w
  9002 p7Dloc_6AA8:				; DATA XREF: seg001:76B7w seg001:76C9w
  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:
  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	; '�'
  9014 		ld	hl, 836Dh
  9014 		ld		hl, 836Dh
  9015 		ld	(hl), a
  9015 		ld		(hl), a
  9016 		call	NZIf83Plus
  9016 		call	NZIf83Plus
  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:
  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 
  9028 Page7D_2D48:
  9028 Page7D_2D48:
  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:
  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:
  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:
  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:
  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:
  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:
  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
  9081 		push	bc
  9081 		push	bc
  9082 		call	Page0Call_2FC7
  9082 		call	Page0Call_2FC7
  9083 		pop	de
  9083 		pop		de
  9084 		inc	de
  9084 		inc		de
  9085 		inc	de
  9085 		inc		de
  9086 		ld	(arcPage), a
  9086 		ld		(arcPage), a
  9087 		ld	(arcPtr), hl
  9087 		ld		(arcPtr), hl
  9088 		inc	de
  9088 		inc		de
  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:
  9094 locret_6B35:
  9095 		ret
  9095 		ret
  9096 
  9096 
  9099 
  9099 
  9100 Page7D_2CD0:
  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
  9106 		call	FlashToRam
  9106 		call	FlashToRam
  9107 		ld	a, (flashByte1)
  9107 		ld		a, (flashByte1)
  9108 		pop	de
  9108 		pop		de
  9109 		pop	bc
  9109 		pop		bc
  9110 		pop	hl
  9110 		pop		hl
  9111 		ret
  9111 		ret
  9112 ; End of function Page7D_2CD0
  9112 ; End of function Page7D_2CD0
  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:
  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:
  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
  9129 ; End of function FlashToRam
  9129 ; End of function FlashToRam
  9130 
  9130 
  9131 FlashToRamPrivilegedCopy:
  9131 FlashToRamPrivilegedCopy:
  9132 		.dw 29h
  9132 		.dw		29h
  9133 		ld	(flashByte2), a
  9133 		ld		(flashByte2), a
  9134 		in	a, (6)
  9134 		in		a, (6)
  9135 		push	af
  9135 		push	af
  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:
  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:
  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:
  9155 p7Dloc_6B7F:
  9156 		pop	af
  9156 		pop		af
  9157 		out	(6), a
  9157 		out		(6), a
  9158 		ret
  9158 		ret
  9159 p7Dloc_6B83:
  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:
  9166 p7Dsub_6B87:
  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
  9172 		push	ix
  9172 		push	ix
  9173 		pop	hl
  9173 		pop		hl
  9174 		ld	c, (hl)
  9174 		ld		c, (hl)
  9175 		inc	hl
  9175 		inc		hl
  9176 		ld	b, (hl)
  9176 		ld		b, (hl)
  9177 		inc	hl
  9177 		inc		hl
  9178 		ld	de, ramCode
  9178 		ld		de, ramCode
  9179 		push	de
  9179 		push	de
  9180 		ldir
  9180 		ldir
  9181 		pop	ix
  9181 		pop		ix
  9182 		pop	hl
  9182 		pop		hl
  9183 		pop	de
  9183 		pop		de
  9184 		pop	bc
  9184 		pop		bc
  9185 		call	p7Dsub_6BAD
  9185 		call	p7Dsub_6BAD
  9186 		push	af
  9186 		push	af
  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:
  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:
  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:
  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
  9215 		pop	bc
  9215 		pop		bc
  9216 		ld	a, c
  9216 		ld		a, c
  9217 		ld	(unk_82A2), a
  9217 		ld		(unk_82A2), a
  9218 		pop	bc
  9218 		pop		bc
  9219 		pop	af
  9219 		pop		af
  9220 		ret
  9220 		ret
  9221 ; End of function p7Dsub_6BB0
  9221 ; End of function p7Dsub_6BB0
  9222 
  9222 
  9223 ; ---------------------------------------------------------------------------
  9223 ; ---------------------------------------------------------------------------
  9224 
  9224 
  9225 Page7D_3E28:
  9225 Page7D_3E28:
  9226 		res	7, (iy+24h)
  9226 		res		7, (iy+24h)
  9227 		push	af
  9227 		push	af
  9228 		ld	a, 1
  9228 		ld		a, 1
  9229 		nop
  9229 		nop
  9230 		di
  9230 		di
  9231 		nop
  9231 		nop
  9232 		nop
  9232 		nop
  9233 		im	1
  9233 		im	1
  9234 		di
  9234 		di
  9235 		out	(14h), a
  9235 		out		(14h), a
  9236 		di
  9236 		di
  9237 		call	checkForFlashTrickery
  9237 		call	checkForFlashTrickery
  9238 		pop	af
  9238 		pop		af
  9239 		ld	a, b
  9239 		ld		a, b
  9240 		ld	b, 0F0h	; '�'
  9240 		ld		b, 0F0h	; '�'
  9241 		call	p7Dsub_6F82
  9241 		call	p7Dsub_6F82
  9242 		jp	c, Page0Call_2541
  9242 		jp		c, Page0Call_2541
  9243 		rst	28h
  9243 		rst		28h
  9244 ; ---------------------------------------------------------------------------
  9244 ; ---------------------------------------------------------------------------
  9245 		.dw 8021h
  9245 		.dw		8021h
  9246 ; ---------------------------------------------------------------------------
  9246 ; ---------------------------------------------------------------------------
  9247 		jp	relockFlashBack
  9247 		jp		relockFlashBack
  9248 ; ---------------------------------------------------------------------------
  9248 ; ---------------------------------------------------------------------------
  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:
  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:
  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:
  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:
  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:
  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:
  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
  9298 		ld	(unk_8404), a
  9298 		ld		(unk_8404), a
  9299 		ld	(unk_8402), hl
  9299 		ld		(unk_8402), hl
  9300 		ld	de, 3
  9300 		ld		de, 3
  9301 		call	Page7D_2CCA
  9301 		call	Page7D_2CCA
  9302 		ld	a, (arcPage)
  9302 		ld		a, (arcPage)
  9303 		push	bc
  9303 		push	bc
  9304 		push	af
  9304 		push	af
  9305 		call	Page7D_2CD0
  9305 		call	Page7D_2CD0
  9306 		and	1Fh
  9306 		and		1Fh
  9307 		ld	(OP1), a
  9307 		ld		(OP1), a
  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:
  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:
  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
  9327 		pop	af
  9327 		pop		af
  9328 		ld	(arcPage), a
  9328 		ld		(arcPage), a
  9329 		ld	(arcPtr), hl
  9329 		ld		(arcPtr), hl
  9330 		call	Page7D_2CE2
  9330 		call	Page7D_2CE2
  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:
  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:
  9344 p7Dloc_6C73:
  9345 		ld	bc, 3
  9345 		ld		bc, 3
  9346 
  9346 
  9347 p7Dloc_6C76:
  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
  9353 		pop	af
  9353 		pop		af
  9354 		ld	(OP1), a
  9354 		ld		(OP1), a
  9355 		pop	hl
  9355 		pop		hl
  9356 		pop	af
  9356 		pop		af
  9357 		call	FlashToRam
  9357 		call	FlashToRam
  9358 		call	ChkFindSym
  9358 		call	ChkFindSym
  9359 		call	page0_1F31
  9359 		call	page0_1F31
  9360 		pop	de
  9360 		pop		de
  9361 		inc	de
  9361 		inc		de
  9362 		inc	de
  9362 		inc		de
  9363 		ld	a, (unk_8404)
  9363 		ld		a, (unk_8404)
  9364 		ld	hl, (unk_8402)
  9364 		ld		hl, (unk_8402)
  9365 		ld	(arcPage), a
  9365 		ld		(arcPage), a
  9366 		ld	(arcPtr), hl
  9366 		ld		(arcPtr), hl
  9367 		call	Page7D_2CCA
  9367 		call	Page7D_2CCA
  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:
  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:
  9382 Page7D_2C16:
  9383 
  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:
  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
  9400 ; End of function Page7D_2C16
  9400 ; End of function Page7D_2C16
  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:
  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
  9412 		ld	a, (arcPage)
  9412 		ld		a, (arcPage)
  9413 		ld	hl, (arcPtr)
  9413 		ld		hl, (arcPtr)
  9414 		call	Page7D_2CD0
  9414 		call	Page7D_2CD0
  9415 		ld	(OP1), a
  9415 		ld		(OP1), a
  9416 		call	Page0Call_23F6
  9416 		call	Page0Call_23F6
  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:
  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
  9428 		call	IS_A_LSTorCLST
  9428 		call	IS_A_LSTorCLST
  9429 		jr	z, p7Dloc_6D11
  9429 		jr		z, p7Dloc_6D11
  9430 		ld	a, (arcPage)
  9430 		ld		a, (arcPage)
  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:
  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:
  9444 p7Dloc_6D21:
  9445 		ld	de, 8479h
  9445 		ld		de, 8479h
  9446 
  9446 
  9447 p7Dloc_6D24:
  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
  9453 		ld	(de), a
  9453 		ld		(de), a
  9454 		inc	de
  9454 		inc		de
  9455 		call	Page7D_2CE2
  9455 		call	Page7D_2CE2
  9456 		djnz	p7Dloc_6D24
  9456 		djnz	p7Dloc_6D24
  9457 		ret
  9457 		ret
  9458 ; End of function p7Dsub_6CCB
  9458 ; End of function p7Dsub_6CCB
  9459 
  9459 
  9462 Page7D_2B7A:
  9462 Page7D_2B7A:
  9463 		push	bc
  9463 		push	bc
  9464 		push	hl
  9464 		push	hl
  9465 		push	de
  9465 		push	de
  9466 		push	af
  9466 		push	af
  9467 		ld	(arcInfo), a
  9467 		ld		(arcInfo), a
  9468 		ld	(arcInfo+1), hl
  9468 		ld		(arcInfo+1), hl
  9469 		ld	a, b
  9469 		ld		a, b
  9470 		ld	(unk_83F1), a
  9470 		ld		(unk_83F1), a
  9471 		ld	(unk_83F1+1), de
  9471 		ld		(unk_83F1+1), de
  9472 		ld	(unk_8404), a
  9472 		ld		(unk_8404), a
  9473 		ld	(unk_8402), de
  9473 		ld		(unk_8402), de
  9474 		ld	a, (arcInfo)
  9474 		ld		a, (arcInfo)
  9475 		ld	hl, (arcInfo+1)
  9475 		ld		hl, (arcInfo+1)
  9476 		call	p7Dsub_6CCB
  9476 		call	p7Dsub_6CCB
  9477 		ld	a, (OP1)
  9477 		ld		a, (OP1)
  9478 		and	1Fh
  9478 		and		1Fh
  9479 		push	af
  9479 		push	af
  9480 		ld	a, (arcInfo)
  9480 		ld		a, (arcInfo)
  9481 		ld	hl, (arcInfo+1)
  9481 		ld		hl, (arcInfo+1)
  9482 		ld	(arcPage), a
  9482 		ld		(arcPage), a
  9483 		ld	(arcPtr), hl
  9483 		ld		(arcPtr), hl
  9484 		call	Page7D_2CE2
  9484 		call	Page7D_2CE2
  9485 		ld	a, (arcPage)
  9485 		ld		a, (arcPage)
  9486 		call	Page7D_2CD0
  9486 		call	Page7D_2CD0
  9487 		ld	c, a
  9487 		ld		c, a
  9488 		call	Page7D_2CE2
  9488 		call	Page7D_2CE2
  9489 		ld	a, (arcPage)
  9489 		ld		a, (arcPage)
  9490 		call	Page7D_2CD0
  9490 		call	Page7D_2CD0
  9491 		ld	b, a
  9491 		ld		b, a
  9492 		call	Page7D_2CE2
  9492 		call	Page7D_2CE2
  9493 		push	bc
  9493 		push	bc
  9494 		ld	a, (arcPage)
  9494 		ld		a, (arcPage)
  9495 		ld	(arcInfo), a
  9495 		ld		(arcInfo), a
  9496 		ld	(arcInfo+1), hl
  9496 		ld		(arcInfo+1), hl
  9497 		ld	a, (unk_83F1)
  9497 		ld		a, (unk_83F1)
  9498 		ld	de, (unk_83F1+1)
  9498 		ld		de, (unk_83F1+1)
  9499 		ld	(arcPage), a
  9499 		ld		(arcPage), a
  9500 		ld	(arcPtr), de
  9500 		ld		(arcPtr), de
  9501 		ld	b, 0FEh	; '�'
  9501 		ld		b, 0FEh	; '�'
  9502 		rst	28h
  9502 		rst		28h
  9503 ; ---------------------------------------------------------------------------
  9503 ; ---------------------------------------------------------------------------
  9504 		.dw 8021h
  9504 		.dw		8021h
  9505 ; ---------------------------------------------------------------------------
  9505 ; ---------------------------------------------------------------------------
  9506 		call	Page7D_2CE2
  9506 		call	Page7D_2CE2
  9507 		ld	a, (arcPage)
  9507 		ld		a, (arcPage)
  9508 		ld	de, (arcPtr)
  9508 		ld		de, (arcPtr)
  9509 		pop	bc
  9509 		pop		bc
  9510 		push	bc
  9510 		push	bc
  9511 		ld	b, c
  9511 		ld		b, c
  9512 		rst	28h
  9512 		rst		28h
  9513 ; ---------------------------------------------------------------------------
  9513 ; ---------------------------------------------------------------------------
  9514 		.dw 8021h
  9514 		.dw		8021h
  9515 ; ---------------------------------------------------------------------------
  9515 ; ---------------------------------------------------------------------------
  9516 		call	Page7D_2CE2
  9516 		call	Page7D_2CE2
  9517 		ld	a, (arcPage)
  9517 		ld		a, (arcPage)
  9518 		ld	de, (arcPtr)
  9518 		ld		de, (arcPtr)
  9519 		pop	bc
  9519 		pop		bc
  9520 		push	bc
  9520 		push	bc
  9521 		rst	28h
  9521 		rst		28h
  9522 ; ---------------------------------------------------------------------------
  9522 ; ---------------------------------------------------------------------------
  9523 		.dw 8021h
  9523 		.dw		8021h
  9524 ; ---------------------------------------------------------------------------
  9524 ; ---------------------------------------------------------------------------
  9525 		call	Page7D_2CE2
  9525 		call	Page7D_2CE2
  9526 		ld	a, (arcPage)
  9526 		ld		a, (arcPage)
  9527 		ld	de, (arcPtr)
  9527 		ld		de, (arcPtr)
  9528 		ld	(unk_83F1), a
  9528 		ld		(unk_83F1), a
  9529 		ld	(unk_83F1+1), de
  9529 		ld		(unk_83F1+1), de
  9530 		ld	a, (arcInfo)
  9530 		ld		a, (arcInfo)
  9531 		ld	hl, (arcInfo+1)
  9531 		ld		hl, (arcInfo+1)
  9532 		ld	(arcPage), a
  9532 		ld		(arcPage), a
  9533 		ld	(arcPtr), hl
  9533 		ld		(arcPtr), hl
  9534 		ld	de, 83FDh
  9534 		ld		de, 83FDh
  9535 		ld	bc, 3
  9535 		ld		bc, 3
  9536 		call	FlashToRam
  9536 		call	FlashToRam
  9537 		ld	de, 6
  9537 		ld		de, 6
  9538 		call	Page7D_2CCA
  9538 		call	Page7D_2CCA
  9539 		ld	a, (arcPage)
  9539 		ld		a, (arcPage)
  9540 		ld	hl, (arcPtr)
  9540 		ld		hl, (arcPtr)
  9541 		ld	(arcInfo), a
  9541 		ld		(arcInfo), a
  9542 		ld	(arcInfo+1), hl
  9542 		ld		(arcInfo+1), hl
  9543 		ld	a, (unk_83F1)
  9543 		ld		a, (unk_83F1)
  9544 		ld	de, (unk_83F1+1)
  9544 		ld		de, (unk_83F1+1)
  9545 		ld	(arcPage), a
  9545 		ld		(arcPage), a
  9546 		ld	(arcPtr), de
  9546 		ld		(arcPtr), de
  9547 		ld	hl, 83FDh
  9547 		ld		hl, 83FDh
  9548 		ld	bc, 3
  9548 		ld		bc, 3
  9549 		rst	28h
  9549 		rst		28h
  9550 ; ---------------------------------------------------------------------------
  9550 ; ---------------------------------------------------------------------------
  9551 		.dw 8087h
  9551 		.dw		8087h
  9552 ; ---------------------------------------------------------------------------
  9552 ; ---------------------------------------------------------------------------
  9553 		ld	de, 3
  9553 		ld		de, 3
  9554 		call	Page7D_2CCA
  9554 		call	Page7D_2CCA
  9555 		ld	a, (arcPage)
  9555 		ld		a, (arcPage)
  9556 		ld	de, (arcPtr)
  9556 		ld		de, (arcPtr)
  9557 		ld	hl, 8402h
  9557 		ld		hl, 8402h
  9558 		ld	bc, 3
  9558 		ld		bc, 3
  9559 		rst	28h
  9559 		rst		28h
  9560 ; ---------------------------------------------------------------------------
  9560 ; ---------------------------------------------------------------------------
  9561 		.dw 8087h
  9561 		.dw		8087h
  9562 ; ---------------------------------------------------------------------------
  9562 ; ---------------------------------------------------------------------------
  9563 		ld	de, 3
  9563 		ld		de, 3
  9564 		call	Page7D_2CCA
  9564 		call	Page7D_2CCA
  9565 		ld	a, (arcPage)
  9565 		ld		a, (arcPage)
  9566 		ld	de, (arcPtr)
  9566 		ld		de, (arcPtr)
  9567 		ld	(unk_83F1), a
  9567 		ld		(unk_83F1), a
  9568 		ld	(unk_83F1+1), de
  9568 		ld		(unk_83F1+1), de
  9569 		pop	hl
  9569 		pop		hl
  9570 		ld	bc, 6
  9570 		ld		bc, 6
  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:
  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:
  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
  9587 		ld	a, c
  9587 		ld		a, c
  9588 		ld	(de), a
  9588 		ld		(de), a
  9589 		inc	de
  9589 		inc		de
  9590 		inc	hl
  9590 		inc		hl
  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:
  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
  9602 		dec	bc
  9602 		dec		bc
  9603 		ld	a, b
  9603 		ld		a, b
  9604 		or	c
  9604 		or		c
  9605 		jr	z, p7Dloc_6EA7
  9605 		jr		z, p7Dloc_6EA7
  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:
  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
  9617 		ld	(arcPage), a
  9617 		ld		(arcPage), a
  9618 		ld	bc, (unk_83F3+1)
  9618 		ld		bc, (unk_83F3+1)
  9619 		rst	28h
  9619 		rst		28h
  9620 ; ---------------------------------------------------------------------------
  9620 ; ---------------------------------------------------------------------------
  9621 		.dw 8087h
  9621 		.dw		8087h
  9622 ; ---------------------------------------------------------------------------
  9622 ; ---------------------------------------------------------------------------
  9623 		ld	de, (unk_83F3+1)
  9623 		ld		de, (unk_83F3+1)
  9624 		call	Page7D_2CCA
  9624 		call	Page7D_2CCA
  9625 		ld	a, (arcPage)
  9625 		ld		a, (arcPage)
  9626 		ld	hl, (arcPtr)
  9626 		ld		hl, (arcPtr)
  9627 		ld	(unk_83F1), a
  9627 		ld		(unk_83F1), a
  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:
  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
  9639 ; ---------------------------------------------------------------------------
  9639 ; ---------------------------------------------------------------------------
  9640 		.dw 8087h
  9640 		.dw		8087h
  9641 ; ---------------------------------------------------------------------------
  9641 ; ---------------------------------------------------------------------------
  9642 		ld	a, (unk_8404)
  9642 		ld		a, (unk_8404)
  9643 		ld	de, (unk_8402)
  9643 		ld		de, (unk_8402)
  9644 		ld	b, 0FCh	; '�'
  9644 		ld		b, 0FCh	; '�'
  9645 		rst	28h
  9645 		rst		28h
  9646 ; ---------------------------------------------------------------------------
  9646 ; ---------------------------------------------------------------------------
  9647 		.dw 8021h
  9647 		.dw		8021h
  9648 ; ---------------------------------------------------------------------------
  9648 ; ---------------------------------------------------------------------------
  9649 		pop	af
  9649 		pop		af
  9650 		ld	(OP1), a
  9650 		ld		(OP1), a
  9651 		pop	af
  9651 		pop		af
  9652 		pop	de
  9652 		pop		de
  9653 		pop	hl
  9653 		pop		hl
  9654 		pop	bc
  9654 		pop		bc
  9655 		ret
  9655 		ret
  9656 ; ---------------------------------------------------------------------------
  9656 ; ---------------------------------------------------------------------------
  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:
  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
  9668 ; End of function p7Dsub_6ECE
  9668 ; End of function p7Dsub_6ECE
  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:
  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 =======================================
  9686 
  9686 
  9687 p7Dloc_6EDE:
  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
  9693 		jr	z, locret_6F53
  9693 		jr		z, locret_6F53
  9694 		ld	hl, 4000h
  9694 		ld		hl, 4000h
  9695 		push	af
  9695 		push	af
  9696 		call	Page7D_2CD0
  9696 		call	Page7D_2CD0
  9697 		cp	0
  9697 		cp		0
  9698 		jr	nz, p7Dloc_6F0A
  9698 		jr		nz, p7Dloc_6F0A
  9699 		pop	af
  9699 		pop		af
  9700 		push	af
  9700 		push	af
  9701 		call	FindAppNumPages
  9701 		call	FindAppNumPages
  9702 		ld	a, c
  9702 		ld		a, c
  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:
  9708 p7Dloc_6F01:
  9709 		call	p7Dsub_652E
  9709 		call	p7Dsub_652E
  9710 		djnz	p7Dloc_6F01
  9710 		djnz	p7Dloc_6F01
  9711 
  9711 
  9712 p7Dloc_6F06:
  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:
  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
  9724 		jr	nz, p7Dloc_6F52
  9724 		jr		nz, p7Dloc_6F52
  9725 		pop	af
  9725 		pop		af
  9726 		push	af
  9726 		push	af
  9727 		call	Page7D_2C9A
  9727 		call	Page7D_2C9A
  9728 		call	Page7D_2B5C
  9728 		call	Page7D_2B5C
  9729 		jr	z, p7Dloc_6F43
  9729 		jr		z, p7Dloc_6F43
  9730 		pop	af
  9730 		pop		af
  9731 		push	af
  9731 		push	af
  9732 		call	FindAppNumPages
  9732 		call	FindAppNumPages
  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:
  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
  9744 		rst	28h
  9744 		rst		28h
  9745 ; ---------------------------------------------------------------------------
  9745 ; ---------------------------------------------------------------------------
  9746 		.dw 8021h
  9746 		.dw		8021h
  9747 ; ---------------------------------------------------------------------------
  9747 ; ---------------------------------------------------------------------------
  9748 		ld	de, 4000h
  9748 		ld		de, 4000h
  9749 		call	p7Dsub_652E
  9749 		call	p7Dsub_652E
  9750 		pop	bc
  9750 		pop		bc
  9751 		dec	b
  9751 		dec		b
  9752 		jr	z, p7Dloc_6F4E
  9752 		jr		z, p7Dloc_6F4E
  9753 		pop	af
  9753 		pop		af
  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:
  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:
  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:
  9775 p7Dloc_6F52:
  9776 		; Page7D_2C10+31j ...
  9776 		; Page7D_2C10+31j ...
  9777 		pop	af
  9777 		pop		af
  9778 
  9778 
  9779 locret_6F53:
  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
  9788 Page7D_2C46:
  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
  9794 		jp	c, p7Dloc_6F7D
  9794 		jp		c, p7Dloc_6F7D
  9795 		push	af
  9795 		push	af
  9796 		ld	a, (OP1)
  9796 		ld		a, (OP1)
  9797 		push	af
  9797 		push	af
  9798 		call	Page7D_2B56
  9798 		call	Page7D_2B56
  9799 		pop	af
  9799 		pop		af
  9800 		ld	(OP1), a
  9800 		ld		(OP1), a
  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:
  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:
  9817 p7Dloc_6F7D:
  9818 		; Page7D_2C46+18j ...
  9818 		; Page7D_2C46+18j ...
  9819 		scf
  9819 		scf
  9820 
  9820 
  9821 p7Dloc_6F7E:
  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 =======================================
  9832 p7Dsub_6F82:
  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
  9838 		jp	c, p7Dloc_6FA7
  9838 		jp		c, p7Dloc_6FA7
  9839 		push	af
  9839 		push	af
  9840 		ld	a, (OP1)
  9840 		ld		a, (OP1)
  9841 		push	af
  9841 		push	af
  9842 		call	Page7D_2B56
  9842 		call	Page7D_2B56
  9843 		pop	af
  9843 		pop		af
  9844 		ld	(OP1), a
  9844 		ld		(OP1), a
  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:
  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:
  9859 p7Dloc_6FA7:
  9860 		scf
  9860 		scf
  9861 
  9861 
  9862 p7Dloc_6FA8:
  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 =======================================
  9873 p7Dsub_6FAC:
  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:
  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:
  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:
  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
  9905 		rst	28h
  9905 		rst		28h
  9906 ; ---------------------------------------------------------------------------
  9906 ; ---------------------------------------------------------------------------
  9907 		.dw 8075h
  9907 		.dw		8075h
  9908 ; ---------------------------------------------------------------------------
  9908 ; ---------------------------------------------------------------------------
  9909 		jr	nz, p7Dloc_6FF4
  9909 		jr		nz, p7Dloc_6FF4
  9910 		inc	hl
  9910 		inc		hl
  9911 		ld	a, (appPage)
  9911 		ld		a, (appPage)
  9912 		rst	28h
  9912 		rst		28h
  9913 ; ---------------------------------------------------------------------------
  9913 ; ---------------------------------------------------------------------------
  9914 		.dw 805Ah
  9914 		.dw		805Ah
  9915 ; ---------------------------------------------------------------------------
  9915 ; ---------------------------------------------------------------------------
  9916 		ld	a, (appPage)
  9916 		ld		a, (appPage)
  9917 		call	p7Dsub_5CFF
  9917 		call	p7Dsub_5CFF
  9918 		call	GetBaseVer
  9918 		call	GetBaseVer
  9919 		ld	b, a
  9919 		ld		b, a
  9920 		ld	a, (MD5Buffer)
  9920 		ld		a, (MD5Buffer)
  9921 		cp	b
  9921 		cp		b
  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:
  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:
  9934 p7Dloc_6FF4:
  9935 		xor	a
  9935 		xor		a
  9936 
  9936 
  9937 p7Dloc_6FF5:
  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 =======================================
  9947 
  9947 
  9948 p7Dsub_6FF9:
  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
  9954 		ld	a, (appPage)
  9954 		ld		a, (appPage)
  9955 		ld	hl, 4000h
  9955 		ld		hl, 4000h
  9956 		ld	de, 80A0h
  9956 		ld		de, 80A0h
  9957 		rst	28h
  9957 		rst		28h
  9958 ; ---------------------------------------------------------------------------
  9958 ; ---------------------------------------------------------------------------
  9959 		.dw 8075h
  9959 		.dw		8075h
  9960 ; ---------------------------------------------------------------------------
  9960 ; ---------------------------------------------------------------------------
  9961 		jr	nz, p7Dloc_7024
  9961 		jr		nz, p7Dloc_7024
  9962 		inc	hl
  9962 		inc		hl
  9963 		ld	a, (appPage)
  9963 		ld		a, (appPage)
  9964 		rst	28h
  9964 		rst		28h
  9965 ; ---------------------------------------------------------------------------
  9965 ; ---------------------------------------------------------------------------
  9966 		.dw 805Ah
  9966 		.dw		805Ah
  9967 ; ---------------------------------------------------------------------------
  9967 ; ---------------------------------------------------------------------------
  9968 		ld	a, b
  9968 		ld		a, b
  9969 		or	c
  9969 		or		c
  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:
  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:
  9980 p7Dloc_7024:
  9981 		call	page0_B8D
  9981 		call	page0_B8D
  9982 
  9982 
  9983 p7Dloc_7027:
  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
  9989 
  9989 
  9990 ; ---------------------------------------------------------------------------
  9990 ; ---------------------------------------------------------------------------
  9991 aDeleting___:	.asc 'Deleting...',0
  9991 aDeleting___:	.asc 'Deleting...',0
  9995 
  9995 
  9996 
  9996 
  9997 p7Dsub_7045:
  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:
 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:
 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:
 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 
 10034 
 10034 
 10035 		push	ix
 10035 		push	ix
 10036 
 10036 
 10037 p7Dloc_7062:
 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 ; ---------------------------------------------------------------------------
 10043 		cp	d
 10043 		cp		d
 10044 		jr	nz, p7Dloc_709E
 10044 		jr		nz, p7Dloc_709E
 10045 		inc	hl
 10045 		inc		hl
 10046 		pop	af
 10046 		pop		af
 10047 		push	af
 10047 		push	af
 10048 		rst	28h
 10048 		rst		28h
 10049 ; ---------------------------------------------------------------------------
 10049 ; ---------------------------------------------------------------------------
 10050 		.dw 8051h
 10050 		.dw		8051h
 10051 ; ---------------------------------------------------------------------------
 10051 ; ---------------------------------------------------------------------------
 10052 		and	0F0h ; '�'
 10052 		and		0F0h ; '�'
 10053 		cp	e
 10053 		cp		e
 10054 		jr	nz, p7Dloc_7078
 10054 		jr		nz, p7Dloc_7078
 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:
 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 ; ---------------------------------------------------------------------------
 10066 		.dw 805Ah
 10066 		.dw		805Ah
 10067 ; ---------------------------------------------------------------------------
 10067 ; ---------------------------------------------------------------------------
 10068 		pop	de
 10068 		pop		de
 10069 		add	hl, bc
 10069 		add		hl, bc
 10070 		ld	(arcInfo), hl
 10070 		ld		(arcInfo), hl
 10071 		pop	af
 10071 		pop		af
 10072 		push	af
 10072 		push	af
 10073 		push	hl
 10073 		push	hl
 10074 		inc	hl
 10074 		inc		hl
 10075 		rst	28h
 10075 		rst		28h
 10076 ; ---------------------------------------------------------------------------
 10076 ; ---------------------------------------------------------------------------
 10077 		.dw 8051h
 10077 		.dw		8051h
 10078 ; ---------------------------------------------------------------------------
 10078 ; ---------------------------------------------------------------------------
 10079 		and	0F0h ; '�'
 10079 		and		0F0h ; '�'
 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:
 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:
 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:
 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:
 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
 10109 
 10109 
 10110 ; ---------------------------------------------------------------------------
 10110 ; ---------------------------------------------------------------------------
 10111 
 10111 
 10112 Page7D_2CFA:
 10112 Page7D_2CFA:
 10113 		push	af
 10113 		push	af
 10114 		ld	a, 1
 10114 		ld		a, 1
 10115 		nop
 10115 		nop
 10116 		di
 10116 		di
 10117 		nop
 10117 		nop
 10118 		nop
 10118 		nop
 10119 		im	1
 10119 		im	1
 10120 		di
 10120 		di
 10121 		out	(14h), a
 10121 		out		(14h), a
 10122 		di
 10122 		di
 10123 		call	checkForFlashTrickery
 10123 		call	checkForFlashTrickery
 10124 		pop	af
 10124 		pop		af
 10125 		call	Page0Call_240A
 10125 		call	Page0Call_240A
 10126 		ld	e, (hl)
 10126 		ld		e, (hl)
 10127 		dec	hl
 10127 		dec		hl
 10128 		ld	d, (hl)
 10128 		ld		d, (hl)
 10129 		dec	hl
 10129 		dec		hl
 10130 		ld	a, (hl)
 10130 		ld		a, (hl)
 10131 		ld	b, 0FCh	; '�'
 10131 		ld		b, 0FCh	; '�'
 10132 		call	Page7D_2C46
 10132 		call	Page7D_2C46
 10133 		jp	c, Page0Call_2541
 10133 		jp		c, Page0Call_2541
 10134 		rst	28h
 10134 		rst		28h
 10135 ; ---------------------------------------------------------------------------
 10135 ; ---------------------------------------------------------------------------
 10136 		.dw 8021h
 10136 		.dw		8021h
 10137 ; ---------------------------------------------------------------------------
 10137 ; ---------------------------------------------------------------------------
 10138 		call	Page7D_3E10
 10138 		call	Page7D_3E10
 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:
 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 ; ---------------------------------------------------------------------------
 10150 		ret
 10150 		ret
 10151 ; End of function p7Dsub_70D1
 10151 ; End of function p7Dsub_70D1
 10152 
 10152 
 10153 ; ---------------------------------------------------------------------------
 10153 ; ---------------------------------------------------------------------------
 10154 aCert_Revision:	.asc 'Cert. Revision #',0
 10154 aCert_Revision:	.asc 'Cert. Revision #',0
 10155 ; ---------------------------------------------------------------------------
 10155 ; ---------------------------------------------------------------------------
 10156 
 10156 
 10157 Page7D_3C60:
 10157 Page7D_3C60:
 10158 		push	af
 10158 		push	af
 10159 		ld	a, 1
 10159 		ld		a, 1
 10160 		nop
 10160 		nop
 10161 		di
 10161 		di
 10162 		nop
 10162 		nop
 10163 		nop
 10163 		nop
 10164 		im	1
 10164 		im	1
 10165 		di
 10165 		di
 10166 		out	(14h), a
 10166 		out		(14h), a
 10167 		di
 10167 		di
 10168 		call	checkForFlashTrickery
 10168 		call	checkForFlashTrickery
 10169 		pop	af
 10169 		pop		af
 10170 		call	p7Dsub_70D1
 10170 		call	p7Dsub_70D1
 10171 		jp	nz, relockFlashBack
 10171 		jp		nz, relockFlashBack
 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:
 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
 10183 		ld	hl, OP1
 10183 		ld		hl, OP1
 10184 		call	Page0Call_3D4D
 10184 		call	Page0Call_3D4D
 10185 		ld	a, 7Eh ; '~'
 10185 		ld		a, 7Eh ; '~'
 10186 		pop	hl
 10186 		pop		hl
 10187 		call	p7Dsub_4873
 10187 		call	p7Dsub_4873
 10188 		push	bc
 10188 		push	bc
 10189 		pop	hl
 10189 		pop		hl
 10190 		call	p7Dsub_598E
 10190 		call	p7Dsub_598E
 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:
 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 
 10202 ; ---------------------------------------------------------------------------
 10202 ; ---------------------------------------------------------------------------
 10203 
 10203 
 10204 Page7D_2BB6:
 10204 Page7D_2BB6:
 10205 		ld	bc, (unk_8685)
 10205 		ld		bc, (unk_8685)
 10206 		sub	c
 10206 		sub		c
 10207 		ld	hl, (unk_8683)
 10207 		ld		hl, (unk_8683)
 10208 		push	af
 10208 		push	af
 10209 		ld	a, (unk_8434)
 10209 		ld		a, (unk_8434)
 10210 		sub	c
 10210 		sub		c
 10211 		call	p7Dsub_5EFC
 10211 		call	p7Dsub_5EFC
 10212 		jr	c, p7Dloc_7150
 10212 		jr		c, p7Dloc_7150
 10213 		pop	af
 10213 		pop		af
 10214 		ld	bc, (ioData)
 10214 		ld		bc, (ioData)
 10215 		push	hl
 10215 		push	hl
 10216 		push	bc
 10216 		push	bc
 10217 		push	af
 10217 		push	af
 10218 		ld	h, 9
 10218 		ld		h, 9
 10219 		call	Page0Call_2C5B
 10219 		call	Page0Call_2C5B
 10220 		pop	af
 10220 		pop		af
 10221 		pop	bc
 10221 		pop		bc
 10222 		pop	hl
 10222 		pop		hl
 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:
 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:
 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:
 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:
 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:
 10259 p7Dsub_717A:
 10260 
 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:
 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:
 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 
 10281 ; ---------------------------------------------------------------------------
 10281 ; ---------------------------------------------------------------------------
 10282 
 10282 
 10283 WriteToFlash:
 10283 WriteToFlash:
 10284 		cp	0
 10284 		cp		0
 10285 		jr	z, p7Dloc_71B3
 10285 		jr		z, p7Dloc_71B3
 10286 		cp	1
 10286 		cp		1
 10287 		jp	z, Page7D_2BE0
 10287 		jp		z, Page7D_2BE0
 10288 		cp	2
 10288 		cp		2
 10289 		jp	z, p7Dloc_7E57
 10289 		jp		z, p7Dloc_7E57
 10290 		cp	3
 10290 		cp		3
 10291 		jp	z, p7Dloc_7E31
 10291 		jp		z, p7Dloc_7E31
 10292 		cp	4
 10292 		cp		4
 10293 		jp	z, p7Dsub_7D67
 10293 		jp		z, p7Dsub_7D67
 10294 		cp	5
 10294 		cp		5
 10295 		jp	z, p7Dloc_7E8D
 10295 		jp		z, p7Dloc_7E8D
 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:
 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
 10307 		push	hl
 10307 		push	hl
 10308 		push	bc
 10308 		push	bc
 10309 		call	p7Dsub_7B72
 10309 		call	p7Dsub_7B72
 10310 		pop	bc
 10310 		pop		bc
 10311 		pop	hl
 10311 		pop		hl
 10312 		or	a
 10312 		or		a
 10313 		jp	z, Page7D_2BBC
 10313 		jp		z, Page7D_2BBC
 10314 		push	hl
 10314 		push	hl
 10315 		ld	de, 4000h
 10315 		ld		de, 4000h
 10316 		sbc	hl, de
 10316 		sbc		hl, de
 10317 		jp	nz, Page0Call_2541
 10317 		jp		nz, Page0Call_2541
 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:
 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
 10329 		ld	de, 4080h
 10329 		ld		de, 4080h
 10330 		sbc	hl, de
 10330 		sbc		hl, de
 10331 		pop	hl
 10331 		pop		hl
 10332 		jr	nc, p7Dloc_71FD
 10332 		jr		nc, p7Dloc_71FD
 10333 		ld	a, (ramCodeEnd)
 10333 		ld		a, (ramCodeEnd)
 10334 		or	a
 10334 		or		a
 10335 		jr	z, p7Dloc_71FD
 10335 		jr		z, p7Dloc_71FD
 10336 		ld	a, (unk_8434)
 10336 		ld		a, (unk_8434)
 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:
 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
 10348 		ld	a, 1
 10348 		ld		a, 1
 10349 		nop
 10349 		nop
 10350 		di
 10350 		di
 10351 		nop
 10351 		nop
 10352 		nop
 10352 		nop
 10353 		im	1
 10353 		im	1
 10354 		di
 10354 		di
 10355 		out	(14h), a
 10355 		out		(14h), a
 10356 		di
 10356 		di
 10357 		call	checkForFlashTrickery
 10357 		call	checkForFlashTrickery
 10358 		pop	af
 10358 		pop		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:
 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:
 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
 10379 		jr	nz, p7Dloc_7225
 10379 		jr		nz, p7Dloc_7225
 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:
 10385 p7Dsub_7240:
 10391 
 10391 
 10392 
 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
 10398 		ld	(sndRecState), a
 10398 		ld		(sndRecState), a
 10399 		ex	de, hl
 10399 		ex		de, hl
 10400 		ld	(unk_843B), de
 10400 		ld		(unk_843B), de
 10401 		push	bc
 10401 		push	bc
 10402 		call	Page0Call_2C61
 10402 		call	Page0Call_2C61
 10403 		pop	bc
 10403 		pop		bc
 10404 		ld	hl, ioFlag
 10404 		ld		hl, ioFlag
 10405 		ld	a, (unk_8675)
 10405 		ld		a, (unk_8675)
 10406 		cp	15h
 10406 		cp		15h
 10407 		jp	nz, p7Dloc_733F
 10407 		jp		nz, p7Dloc_733F
 10408 		push	af
 10408 		push	af
 10409 		ld	a, 1
 10409 		ld		a, 1
 10410 		nop
 10410 		nop
 10411 		di
 10411 		di
 10412 		nop
 10412 		nop
 10413 		nop
 10413 		nop
 10414 		im	1
 10414 		im	1
 10415 		di
 10415 		di
 10416 		out	(14h), a
 10416 		out		(14h), a
 10417 		di
 10417 		di
 10418 		call	checkForFlashTrickery
 10418 		call	checkForFlashTrickery
 10419 		pop	af
 10419 		pop		af
 10420 		ld	hl, (unk_8676)
 10420 		ld		hl, (unk_8676)
 10421 		or	a
 10421 		or		a
 10422 		sbc	hl, bc
 10422 		sbc		hl, bc
 10423 		jp	nz, p7Dloc_733F
 10423 		jp		nz, p7Dloc_733F
 10424 		res	6, (iy+24h)
 10424 		res		6, (iy+24h)
 10425 		res	7, (iy+24h)
 10425 		res		7, (iy+24h)
 10426 		xor	a
 10426 		xor		a
 10427 		ld	(unk_9C87), a
 10427 		ld		(unk_9C87), a
 10428 		ld	bc, (unk_8676)
 10428 		ld		bc, (unk_8676)
 10429 		ld	de, 0
 10429 		ld		de, 0
 10430 		ld	(unk_8678), de
 10430 		ld		(unk_8678), de
 10431 		ld	a, c
 10431 		ld		a, c
 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:
 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 
 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:
 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:
 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:
 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:
 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:
 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:
 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:
 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:
 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:
 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:
 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:
 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:
 10536 p7Dloc_732F:
 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:
 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:
 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:
 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:
 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
 10571 		ex	de, hl
 10571 		ex		de, hl
 10572 		ld	b, 0
 10572 		ld		b, 0
 10573 		ld	hl, (unk_8678)
 10573 		ld		hl, (unk_8678)
 10574 		add	hl, bc
 10574 		add		hl, bc
 10575 		ld	(unk_8678), hl
 10575 		ld		(unk_8678), hl
 10576 		ex	de, hl
 10576 		ex		de, hl
 10577 		call	p7Dsub_7CBB
 10577 		call	p7Dsub_7CBB
 10578 		pop	bc
 10578 		pop		bc
 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:
 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
 10590 		ld	c, a
 10590 		ld		c, a
 10591 		in	a, (2)
 10591 		in		a, (2)
 10592 		and	80h ; '�'
 10592 		and		80h ; '�'
 10593 		jr	z, p7Dloc_738A
 10593 		jr		z, p7Dloc_738A
 10594 		in	a, (20h)
 10594 		in		a, (20h)
 10595 		and	1
 10595 		and		1
 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:
 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:
 10611 p7Dloc_738A:
 10612 		; p7Dsub_7240+137j
 10612 		; p7Dsub_7240+137j
 10613 		ld	de, 100h
 10613 		ld		de, 100h
 10614 
 10614 
 10615 p7Dloc_738D:
 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:
 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:
 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)
 10633 		push	de
 10633 		push	de
 10634 		rst	28h
 10634 		rst		28h
 10635 ; ---------------------------------------------------------------------------
 10635 ; ---------------------------------------------------------------------------
 10636 		.dw 8063h
 10636 		.dw		8063h
 10637 ; ---------------------------------------------------------------------------
 10637 ; ---------------------------------------------------------------------------
 10638 		pop	de
 10638 		pop		de
 10639 		ld	(unk_843B), de
 10639 		ld		(unk_843B), de
 10640 		jp	nz, p7Dloc_72D2
 10640 		jp		nz, p7Dloc_72D2
 10641 		ld	a, 1
 10641 		ld		a, 1
 10642 		ld	de, 8050h
 10642 		ld		de, 8050h
 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:
 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
 10654 		ld	hl, (curRow)
 10654 		ld		hl, (curRow)
 10655 		push	hl
 10655 		push	hl
 10656 		call	Page0Call_3CD5
 10656 		call	Page0Call_3CD5
 10657 		ld	a, (ioFlag)
 10657 		ld		a, (ioFlag)
 10658 		push	af
 10658 		push	af
 10659 		call	p7Dsub_717A
 10659 		call	p7Dsub_717A
 10660 		res	2, (iy+25h)
 10660 		res		2, (iy+25h)
 10661 		call	Chk_Batt_Low
 10661 		call	Chk_Batt_Low
 10662 		jp	z, ErrInvalid
 10662 		jp		z, ErrInvalid
 10663 		ld	a, 0
 10663 		ld		a, 0
 10664 		ld	b, 0
 10664 		ld		b, 0
 10665 		call	Page0Call_2EB9
 10665 		call	Page0Call_2EB9
 10666 		call	p7Dsub_7182
 10666 		call	p7Dsub_7182
 10667 		pop	af
 10667 		pop		af
 10668 		pop	hl
 10668 		pop		hl
 10669 		ld	(curRow), hl
 10669 		ld		(curRow), hl
 10670 		ld	(ioFlag), a
 10670 		ld		(ioFlag), a
 10671 		call	p7Dsub_7B72
 10671 		call	p7Dsub_7B72
 10672 		or	a
 10672 		or		a
 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:
 10678 p7Dloc_7409:
 10679 		jp	nz, Page7D_2BBC
 10679 		jp		nz, Page7D_2BBC
 10680 
 10680 
 10681 p7Dloc_740C:
 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
 10687 		cp	8
 10687 		cp		8
 10688 		jr	z, p7Dloc_7430
 10688 		jr		z, p7Dloc_7430
 10689 		add	a, 4
 10689 		add		a, 4
 10690 		ld	b, a
 10690 		ld		b, a
 10691 		ld	a, c
 10691 		ld		a, c
 10692 		sub	d
 10692 		sub		d
 10693 		cp	b
 10693 		cp		b
 10694 		jr	nc, p7Dloc_7430
 10694 		jr		nc, p7Dloc_7430
 10695 		ld	a, 5
 10695 		ld		a, 5
 10696 		call	Page0Call_2EB9
 10696 		call	Page0Call_2EB9
 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:
 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
 10708 		call	Page7D_2C9A
 10708 		call	Page7D_2C9A
 10709 		call	p7Dsub_7CB2
 10709 		call	p7Dsub_7CB2
 10710 		jr	z, p7Dloc_7453
 10710 		jr		z, p7Dloc_7453
 10711 		ld	a, 19h
 10711 		ld		a, 19h
 10712 		ld	(sndRecState), a
 10712 		ld		(sndRecState), a
 10713 		call	Page0Call_2E23
 10713 		call	Page0Call_2E23
 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:
 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
 10725 		nop
 10725 		nop
 10726 		di
 10726 		di
 10727 		nop
 10727 		nop
 10728 		nop
 10728 		nop
 10729 		im	1
 10729 		im	1
 10730 		di
 10730 		di
 10731 		out	(14h), a
 10731 		out		(14h), a
 10732 		di
 10732 		di
 10733 		call	checkForFlashTrickery
 10733 		call	checkForFlashTrickery
 10734 		pop	af
 10734 		pop		af
 10735 		call	p7Dsub_519D
 10735 		call	p7Dsub_519D
 10736 		call	p7Dsub_5E90
 10736 		call	p7Dsub_5E90
 10737 		ld	hl, ramStart
 10737 		ld		hl, ramStart
 10738 		call	p7Dsub_5757
 10738 		call	p7Dsub_5757
 10739 		ld	hl, (unk_83A1)
 10739 		ld		hl, (unk_83A1)
 10740 		call	p7Dsub_57C5
 10740 		call	p7Dsub_57C5
 10741 		push	hl
 10741 		push	hl
 10742 		ld	a, 1
 10742 		ld		a, 1
 10743 		ld	hl, ramStart
 10743 		ld		hl, ramStart
 10744 		push	hl
 10744 		push	hl
 10745 		inc	hl
 10745 		inc		hl
 10746 		rst	28h
 10746 		rst		28h
 10747 ; ---------------------------------------------------------------------------
 10747 ; ---------------------------------------------------------------------------
 10748 		.dw 805Ah
 10748 		.dw		805Ah
 10749 ; ---------------------------------------------------------------------------
 10749 ; ---------------------------------------------------------------------------
 10750 		pop	bc
 10750 		pop		bc
 10751 		sbc	hl, bc
 10751 		sbc		hl, bc
 10752 		push	hl
 10752 		push	hl
 10753 		pop	bc
 10753 		pop		bc
 10754 		ld	hl, (unk_8439)
 10754 		ld		hl, (unk_8439)
 10755 		sbc	hl, bc
 10755 		sbc		hl, bc
 10756 		push	hl
 10756 		push	hl
 10757 		pop	bc
 10757 		pop		bc
 10758 		pop	hl
 10758 		pop		hl
 10759 		sbc	hl, bc
 10759 		sbc		hl, bc
 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:
 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
 10771 		ld	a, l
 10771 		ld		a, l
 10772 		or	h
 10772 		or		h
 10773 		jr	nz, p7Dloc_74BA
 10773 		jr		nz, p7Dloc_74BA
 10774 		ld	hl, (unk_83A1)
 10774 		ld		hl, (unk_83A1)
 10775 		ld	a, l
 10775 		ld		a, l
 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:
 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:
 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
 10792 		call	p7Dsub_4566
 10792 		call	p7Dsub_4566
 10793 		cp	0FEh ; '�'
 10793 		cp		0FEh ; '�'
 10794 		jr	nz, p7Dloc_74ED
 10794 		jr		nz, p7Dloc_74ED
 10795 		call	p7Dsub_4565
 10795 		call	p7Dsub_4565
 10796 		cp	0BFh ; '�'
 10796 		cp		0BFh ; '�'
 10797 		jr	nz, p7Dloc_74ED
 10797 		jr		nz, p7Dloc_74ED
 10798 		call	p7Dsub_4565
 10798 		call	p7Dsub_4565
 10799 		ld	b, a
 10799 		ld		b, a
 10800 		ld	a, (appSearchPage+1)
 10800 		ld		a, (appSearchPage+1)
 10801 		cp	b
 10801 		cp		b
 10802 		jr	z, p7Dloc_74F0
 10802 		jr		z, p7Dloc_74F0
 10803 		jr	nc, p7Dloc_74ED
 10803 		jr		nc, p7Dloc_74ED
 10804 		call	p7Dsub_4565
 10804 		call	p7Dsub_4565
 10805 		ld	b, a
 10805 		ld		b, a
 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:
 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:
 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)
 10822 		bit	7, d
 10822 		bit		7, d
 10823 		jp	nz, p7Dloc_7150
 10823 		jp		nz, p7Dloc_7150
 10824 		bit	6, d
 10824 		bit		6, d
 10825 		jp	z, p7Dloc_7150
 10825 		jp		z, p7Dloc_7150
 10826 		cp	8
 10826 		cp		8
 10827 		jp	c, p7Dloc_7150
 10827 		jp		c, p7Dloc_7150
 10828 		call	p7Dsub_75E1
 10828 		call	p7Dsub_75E1
 10829 		jp	nc, p7Dloc_7150
 10829 		jp		nc, p7Dloc_7150
 10830 		call	p7Dsub_756F
 10830 		call	p7Dsub_756F
 10831 		rst	28h
 10831 		rst		28h
 10832 ; ---------------------------------------------------------------------------
 10832 ; ---------------------------------------------------------------------------
 10833 		.dw 8087h
 10833 		.dw		8087h
 10834 ; ---------------------------------------------------------------------------
 10834 ; ---------------------------------------------------------------------------
 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:
 10840 p7Dloc_7524:
 10841 		pop	de
 10841 		pop		de
 10842 
 10842 
 10843 p7Dloc_7525:
 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:
 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:
 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:
 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:
 10874 p7Dloc_7549:
 10875 		call	Page7D_2BB0
 10875 		call	Page7D_2BB0
 10876 
 10876 
 10877 p7Dloc_754C:
 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
 10883 		sub	d
 10883 		sub		d
 10884 		ld	(unk_847C), a
 10884 		ld		(unk_847C), a
 10885 		ld	bc, 4
 10885 		ld		bc, 4
 10886 		ld	hl, 8479h
 10886 		ld		hl, 8479h
 10887 		call	p7Dsub_7700
 10887 		call	p7Dsub_7700
 10888 		pop	de
 10888 		pop		de
 10889 		rst	28h
 10889 		rst		28h
 10890 ; ---------------------------------------------------------------------------
 10890 ; ---------------------------------------------------------------------------
 10891 		.dw 8087h
 10891 		.dw		8087h
 10892 ; ---------------------------------------------------------------------------
 10892 ; ---------------------------------------------------------------------------
 10893 		call	relockFlashBack
 10893 		call	relockFlashBack
 10894 		jr	p7Dloc_7525
 10894 		jr		p7Dloc_7525
 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:
 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
 10906 		jr	z, p7Dloc_75A1
 10906 		jr		z, p7Dloc_75A1
 10907 		ld	hl, ramStart
 10907 		ld		hl, ramStart
 10908 		ld	de, (unk_843B)
 10908 		ld		de, (unk_843B)
 10909 		or	a
 10909 		or		a
 10910 		sbc	hl, de
 10910 		sbc		hl, de
 10911 		ld	b, h
 10911 		ld		b, h
 10912 		ld	c, l
 10912 		ld		c, l
 10913 		ld	hl, ramStart
 10913 		ld		hl, ramStart
 10914 		push	bc
 10914 		push	bc
 10915 		rst	28h
 10915 		rst		28h
 10916 ; ---------------------------------------------------------------------------
 10916 ; ---------------------------------------------------------------------------
 10917 		.dw 8087h
 10917 		.dw		8087h
 10918 ; ---------------------------------------------------------------------------
 10918 ; ---------------------------------------------------------------------------
 10919 		pop	bc
 10919 		pop		bc
 10920 		ld	a, (appSearchPage+1)
 10920 		ld		a, (appSearchPage+1)
 10921 		dec	a
 10921 		dec		a
 10922 		ld	hl, (unk_8439)
 10922 		ld		hl, (unk_8439)
 10923 		or	a
 10923 		or		a
 10924 		sbc	hl, bc
 10924 		sbc		hl, bc
 10925 		push	bc
 10925 		push	bc
 10926 		ld	b, h
 10926 		ld		b, h
 10927 		ld	c, l
 10927 		ld		c, l
 10928 		pop	de
 10928 		pop		de
 10929 		ld	hl, ramStart
 10929 		ld		hl, ramStart
 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:
 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:
 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:
 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:
 10959 p7Dloc_75B4:
 10960 
 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 
 10970 
 10970 
 10971 
 10971 
 10972 
 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
 10978 		ld	de, 8040h
 10978 		ld		de, 8040h
 10979 		rst	28h
 10979 		rst		28h
 10980 ; ---------------------------------------------------------------------------
 10980 ; ---------------------------------------------------------------------------
 10981 		.dw 8075h
 10981 		.dw		8075h
 10982 ; ---------------------------------------------------------------------------
 10982 ; ---------------------------------------------------------------------------
 10983 		jp	nz, p7Dloc_75B1
 10983 		jp		nz, p7Dloc_75B1
 10984 		inc	hl
 10984 		inc		hl
 10985 		ld	a, 1
 10985 		ld		a, 1
 10986 		rst	28h
 10986 		rst		28h
 10987 ; ---------------------------------------------------------------------------
 10987 ; ---------------------------------------------------------------------------
 10988 		.dw 805Ah
 10988 		.dw		805Ah
 10989 ; ---------------------------------------------------------------------------
 10989 ; ---------------------------------------------------------------------------
 10990 		ld	de, 8479h
 10990 		ld		de, 8479h
 10991 		ldir
 10991 		ldir
 10992 		ld	a, (appSearchPage+1)
 10992 		ld		a, (appSearchPage+1)
 10993 		push	af
 10993 		push	af
 10994 		call	p7Dsub_6428
 10994 		call	p7Dsub_6428
 10995 		pop	af
 10995 		pop		af
 10996 		ld	(appSearchPage+1), a
 10996 		ld		(appSearchPage+1), a
 10997 		ret
 10997 		ret
 10998 ; End of function p7Dsub_75B8
 10998 ; End of function p7Dsub_75B8
 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:
 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:
 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:
 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
 11027 ; End of function p7Dsub_75EC
 11027 ; End of function p7Dsub_75EC
 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:
 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:
 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:
 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:
 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:
 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
 11075 ; End of function p7Dsub_75FD
 11075 ; End of function p7Dsub_75FD
 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:
 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
 11087 		pop	af
 11087 		pop		af
 11088 		djnz	p7Dsub_761F
 11088 		djnz	p7Dsub_761F
 11089 		ret
 11089 		ret
 11090 ; End of function p7Dsub_761F
 11090 ; End of function p7Dsub_761F
 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:
 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
 11102 ; ---------------------------------------------------------------------------
 11102 ; ---------------------------------------------------------------------------
 11103 		ret
 11103 		ret
 11104 ; End of function p7Dsub_762A
 11104 ; End of function p7Dsub_762A
 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:
 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 ; '~'
 11116 		ret
 11116 		ret
 11117 ; End of function p7Dsub_7634
 11117 ; End of function p7Dsub_7634
 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:
 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
 11129 ; End of function p7Dsub_7643
 11129 ; End of function p7Dsub_7643
 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:
 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
 11141 		ret
 11141 		ret
 11142 ; End of function p7Dsub_764E
 11142 ; End of function p7Dsub_764E
 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:
 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
 11154 ; End of function p7Dsub_7656
 11154 ; End of function p7Dsub_7656
 11155 
 11155 
 11156 ; ---------------------------------------------------------------------------
 11156 ; ---------------------------------------------------------------------------
 11157 		ld	hl, OP1
 11157 		ld		hl, OP1
 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:
 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:
 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:
 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
 11184 ; End of function p7Dsub_7666
 11184 ; End of function p7Dsub_7666
 11185 
 11185 
 11186 WriteFlashPrivilegedCopy:
 11186 WriteFlashPrivilegedCopy:
 11187 		.dw 81h
 11187 		.dw		81h
 11188 		ld	(flashByte2), a
 11188 		ld		(flashByte2), a
 11189 		in	a, (6)
 11189 		in		a, (6)
 11190 		push	af
 11190 		push	af
 11191 		ld	a, (flashByte2)
 11191 		ld		a, (flashByte2)
 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:
 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
 11203 		sbc	hl, de
 11203 		sbc		hl, de
 11204 		jr	nc, p7Dloc_76AD
 11204 		jr		nc, p7Dloc_76AD
 11205 		in	a, (6)
 11205 		in		a, (6)
 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:
 11211 p7Dloc_76AA:
 11212 		ld	de, 4000h
 11212 		ld		de, 4000h
 11213 
 11213 
 11214 p7Dloc_76AD:
 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
 11220 		ld	a, 0AAh	; '�'
 11220 		ld		a, 0AAh	; '�'
 11221 		ld	(p7Dloc_6AA8+2), a
 11221 		ld		(p7Dloc_6AA8+2), a
 11222 		ld	a, 1
 11222 		ld		a, 1
 11223 		out	(6), a
 11223 		out		(6), a
 11224 		ld	a, 55h ; 'U'
 11224 		ld		a, 55h ; 'U'
 11225 		ld	(p7Dloc_5555), a
 11225 		ld		(p7Dloc_5555), a
 11226 		ld	a, 2
 11226 		ld		a, 2
 11227 		out	(6), a
 11227 		out		(6), a
 11228 		ld	a, 0A0h	; '�'
 11228 		ld		a, 0A0h	; '�'
 11229 		ld	(p7Dloc_6AA8+2), a
 11229 		ld		(p7Dloc_6AA8+2), a
 11230 		pop	af
 11230 		pop		af
 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:
 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
 11242 		pop	af
 11242 		pop		af
 11243 		bit	5, a
 11243 		bit		5, a
 11244 		jr	z, p7Dloc_76D2
 11244 		jr		z, p7Dloc_76D2
 11245 		ld	a, (de)
 11245 		ld		a, (de)
 11246 		xor	(hl)
 11246 		xor		(hl)
 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:
 11252 p7Dloc_76E6:
 11253 		pop	af
 11253 		pop		af
 11254 
 11254 
 11255 p7Dloc_76E7:
 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
 11261 		jr	nz, p7Dloc_7692
 11261 		jr		nz, p7Dloc_7692
 11262 		dec	de
 11262 		dec		de
 11263 		ld	a, 0F0h	; '�'
 11263 		ld		a, 0F0h	; '�'
 11264 		ld	(de), a
 11264 		ld		(de), a
 11265 		inc	de
 11265 		inc		de
 11266 		pop	af
 11266 		pop		af
 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:
 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:
 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 ; '~'
 11289 		ret
 11289 		ret
 11290 ; End of function p7Dsub_7700
 11290 ; End of function p7Dsub_7700
 11291 
 11291 
 11292 ; ---------------------------------------------------------------------------
 11292 ; ---------------------------------------------------------------------------
 11293 
 11293 
 11294 Page7D_2C28:
 11294 Page7D_2C28:
 11295 		push	af
 11295 		push	af
 11296 		inc	a
 11296 		inc		a
 11297 		ld	(appSearchPage), a
 11297 		ld		(appSearchPage), a
 11298 		call	p7Dsub_638B
 11298 		call	p7Dsub_638B
 11299 		ld	a, 14h
 11299 		ld		a, 14h
 11300 		ld	(OP1), a
 11300 		ld		(OP1), a
 11301 		ld	bc, 8
 11301 		ld		bc, 8
 11302 		ld	hl, 8484h
 11302 		ld		hl, 8484h
 11303 		ld	de, 8479h
 11303 		ld		de, 8479h
 11304 		ldir
 11304 		ldir
 11305 		pop	af
 11305 		pop		af
 11306 		ret
 11306 		ret
 11307 ; ---------------------------------------------------------------------------
 11307 ; ---------------------------------------------------------------------------
 11308 
 11308 
 11309 Page7D_2BE0:
 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
 11315 		nop
 11315 		nop
 11316 		im	1
 11316 		im	1
 11317 		di
 11317 		di
 11318 		out	(14h), a
 11318 		out		(14h), a
 11319 		di
 11319 		di
 11320 		call	checkForFlashTrickery
 11320 		call	checkForFlashTrickery
 11321 		pop	af
 11321 		pop		af
 11322 		ld	a, (unk_8434)
 11322 		ld		a, (unk_8434)
 11323 		nop
 11323 		nop
 11324 		call	p7Dsub_43F6
 11324 		call	p7Dsub_43F6
 11325 		jr	nz, ret8
 11325 		jr		nz, ret8
 11326 		ld	a, (unk_8434)
 11326 		ld		a, (unk_8434)
 11327 		ld	hl, 4000h
 11327 		ld		hl, 4000h
 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:
 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)
 11339 		ld	hl, 4000h
 11339 		ld		hl, 4000h
 11340 		call	p7Dsub_5E59
 11340 		call	p7Dsub_5E59
 11341 		call	p7Dsub_533B
 11341 		call	p7Dsub_533B
 11342 		call	Page7D_2B56
 11342 		call	Page7D_2B56
 11343 		ld	a, b
 11343 		ld		a, b
 11344 		rst	28h
 11344 		rst		28h
 11345 ; ---------------------------------------------------------------------------
 11345 ; ---------------------------------------------------------------------------
 11346 		.dw 80CFh
 11346 		.dw		80CFh
 11347 ; ---------------------------------------------------------------------------
 11347 ; ---------------------------------------------------------------------------
 11348 		ld	a, 0FFh
 11348 		ld		a, 0FFh
 11349 		ld	(ioFlag), a
 11349 		ld		(ioFlag), a
 11350 		call	relockFlashBack
 11350 		call	relockFlashBack
 11351 		xor	a
 11351 		xor		a
 11352 		ret
 11352 		ret
 11353 ; ---------------------------------------------------------------------------
 11353 ; ---------------------------------------------------------------------------
 11354 
 11354 
 11355 ret9:
 11355 ret9:
 11356 		ld	a, 9
 11356 		ld		a, 9
 11357 		ret
 11357 		ret
 11358 ; ---------------------------------------------------------------------------
 11358 ; ---------------------------------------------------------------------------
 11359 
 11359 
 11360 ret8:
 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:
 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 ; ---------------------------------------------------------------------------
 11373 		ret
 11373 		ret
 11374 ; End of function p7Dsub_777E
 11374 ; End of function p7Dsub_777E
 11375 
 11375 
 11376 ; ---------------------------------------------------------------------------
 11376 ; ---------------------------------------------------------------------------
 11377 		rst	28h
 11377 		rst		28h
 11378 ; ---------------------------------------------------------------------------
 11378 ; ---------------------------------------------------------------------------
 11379 		.dw 8063h
 11379 		.dw		8063h
 11380 ; ---------------------------------------------------------------------------
 11380 ; ---------------------------------------------------------------------------
 11381 		jp	nz, p7Dloc_7813
 11381 		jp		nz, p7Dloc_7813
 11382 		ld	a, 1
 11382 		ld		a, 1
 11383 		ld	de, 8050h
 11383 		ld		de, 8050h
 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:
 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
 11395 		ld	a, (ioFlag)
 11395 		ld		a, (ioFlag)
 11396 		push	af
 11396 		push	af
 11397 		call	p7Dsub_717A
 11397 		call	p7Dsub_717A
 11398 		ld	a, 0
 11398 		ld		a, 0
 11399 		ld	b, 0
 11399 		ld		b, 0
 11400 		res	2, (iy+25h)
 11400 		res		2, (iy+25h)
 11401 		call	Page0Call_2EB9
 11401 		call	Page0Call_2EB9
 11402 		call	p7Dsub_7182
 11402 		call	p7Dsub_7182
 11403 		pop	af
 11403 		pop		af
 11404 		ld	(ioFlag), a
 11404 		ld		(ioFlag), a
 11405 		call	p7Dsub_7B72
 11405 		call	p7Dsub_7B72
 11406 		or	a
 11406 		or		a
 11407 		jp	z, p7Dloc_780D
 11407 		jp		z, p7Dloc_780D
 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:
 11413 p7Dloc_77CF:
 11414 		jp	p7Dloc_780D
 11414 		jp		p7Dloc_780D
 11415 ; ---------------------------------------------------------------------------
 11415 ; ---------------------------------------------------------------------------
 11416 
 11416 
 11417 p7Dloc_77D2:
 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
 11423 		ld	a, c
 11423 		ld		a, c
 11424 		sub	d
 11424 		sub		d
 11425 		cp	b
 11425 		cp		b
 11426 		jr	nc, p7Dloc_77F0
 11426 		jr		nc, p7Dloc_77F0
 11427 		ld	a, 5
 11427 		ld		a, 5
 11428 		call	Page0Call_2EB9
 11428 		call	Page0Call_2EB9
 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:
 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
 11440 		ld	a, 19h
 11440 		ld		a, 19h
 11441 		ld	(sndRecState), a
 11441 		ld		(sndRecState), a
 11442 		pop	af
 11442 		pop		af
 11443 		push	af
 11443 		push	af
 11444 		di
 11444 		di
 11445 		xor	a
 11445 		xor		a
 11446 		ld	(sndRecState), a
 11446 		ld		(sndRecState), a
 11447 		pop	af
 11447 		pop		af
 11448 		ret
 11448 		ret
 11449 ; ---------------------------------------------------------------------------
 11449 ; ---------------------------------------------------------------------------
 11450 		ret
 11450 		ret
 11451 ; ---------------------------------------------------------------------------
 11451 ; ---------------------------------------------------------------------------
 11452 
 11452 
 11453 p7Dloc_780D:
 11453 p7Dloc_780D:
 11454 
 11454 
 11455 		jp	ErrMemory
 11455 		jp		ErrMemory
 11456 ; ---------------------------------------------------------------------------
 11456 ; ---------------------------------------------------------------------------
 11457 
 11457 
 11458 p7Dloc_7810:
 11458 p7Dloc_7810:
 11459 		jp	Page0Call_253D
 11459 		jp		Page0Call_253D
 11460 ; ---------------------------------------------------------------------------
 11460 ; ---------------------------------------------------------------------------
 11461 
 11461 
 11462 p7Dloc_7813:
 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
 11468 		or	1
 11468 		or		1
 11469 		ret
 11469 		ret
 11470 ; ---------------------------------------------------------------------------
 11470 ; ---------------------------------------------------------------------------
 11471 		push	af
 11471 		push	af
 11472 		ld	(unk_8439), a
 11472 		ld		(unk_8439), a
 11473 		call	p7Dsub_5525
 11473 		call	p7Dsub_5525
 11474 		ld	b, a
 11474 		ld		b, a
 11475 		pop	af
 11475 		pop		af
 11476 		sub	b
 11476 		sub		b
 11477 		ld	de, 4000h
 11477 		ld		de, 4000h
 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:
 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
 11489 		or	a
 11489 		or		a
 11490 		jr	z, p7Dloc_784B
 11490 		jr		z, p7Dloc_784B
 11491 		push	af
 11491 		push	af
 11492 		ld	a, (unk_8439)
 11492 		ld		a, (unk_8439)
 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:
 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:
 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
 11510 		pop	bc
 11510 		pop		bc
 11511 		ld	hl, 4000h
 11511 		ld		hl, 4000h
 11512 		call	p7Dsub_7865
 11512 		call	p7Dsub_7865
 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:
 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
 11524 		rst	28h
 11524 		rst		28h
 11525 ; ---------------------------------------------------------------------------
 11525 ; ---------------------------------------------------------------------------
 11526 		.dw 8054h
 11526 		.dw		8054h
 11527 ; ---------------------------------------------------------------------------
 11527 ; ---------------------------------------------------------------------------
 11528 		pop	bc
 11528 		pop		bc
 11529 		ld	hl, 100h
 11529 		ld		hl, 100h
 11530 		or	a
 11530 		or		a
 11531 		sbc	hl, bc
 11531 		sbc		hl, bc
 11532 		jr	nc, p7Dloc_7882
 11532 		jr		nc, p7Dloc_7882
 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:
 11538 p7Dloc_7882:
 11539 		push	bc
 11539 		push	bc
 11540 
 11540 
 11541 p7Dloc_7883:
 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 ; ---------------------------------------------------------------------------
 11547 		ex	de, hl
 11547 		ex		de, hl
 11548 		pop	hl
 11548 		pop		hl
 11549 		ld	bc, 100h
 11549 		ld		bc, 100h
 11550 		or	a
 11550 		or		a
 11551 		sbc	hl, bc
 11551 		sbc		hl, bc
 11552 		push	hl
 11552 		push	hl
 11553 		pop	bc
 11553 		pop		bc
 11554 		ex	de, hl
 11554 		ex		de, hl
 11555 		jr	z, p7Dloc_78A1
 11555 		jr		z, p7Dloc_78A1
 11556 		jr	c, p7Dloc_78A1
 11556 		jr		c, p7Dloc_78A1
 11557 		pop	hl
 11557 		pop		hl
 11558 		push	bc
 11558 		push	bc
 11559 		ld	de, 100h
 11559 		ld		de, 100h
 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:
 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 =======================================
 11573 
 11573 
 11574 p7Dsub_78A3:
 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:
 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
 11586 		jr	z, p7Dloc_78BA
 11586 		jr		z, p7Dloc_78BA
 11587 		ld	a, 8
 11587 		ld		a, 8
 11588 		xor	e
 11588 		xor		e
 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:
 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
 11600 		pop	af
 11600 		pop		af
 11601 		ret
 11601 		ret
 11602 ; End of function p7Dsub_78A3
 11602 ; End of function p7Dsub_78A3
 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 =======================================
 11607 
 11607 
 11608 p7Dsub_78C2:
 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:
 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:
 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
 11631 		jr	z, p7Dloc_78E5
 11631 		jr		z, p7Dloc_78E5
 11632 		ld	a, 8
 11632 		ld		a, 8
 11633 		xor	e
 11633 		xor		e
 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:
 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
 11645 		pop	af
 11645 		pop		af
 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:
 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 =======================================
 11662 p7Dsub_78F5:
 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
 11668 		call	APP_PUSH_ERRORH
 11668 		call	APP_PUSH_ERRORH
 11669 		call	j_RecAByteIO
 11669 		call	j_RecAByteIO
 11670 		ld	l, a
 11670 		ld		l, a
 11671 		call	APP_POP_ERRORH
 11671 		call	APP_POP_ERRORH
 11672 		bit	4, (iy+9)
 11672 		bit		4, (iy+9)
 11673 		jr	nz, p7Dloc_790F
 11673 		jr		nz, 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:
 11679 p7Dloc_790F:
 11680 		or	0FFh
 11680 		or		0FFh
 11681 
 11681 
 11682 p7Dloc_7911:
 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 =======================================
 11692 
 11692 
 11693 p7Dsub_7915:
 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:
 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
 11708 		dec	bc
 11708 		dec		bc
 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:
 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
 11720 ; End of function p7Dsub_7915
 11720 ; End of function p7Dsub_7915
 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 =======================================
 11725 
 11725 
 11726 LinkStatus:
 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)
 11732 		and	3
 11732 		and		3
 11733 		jr	z, p7Dloc_7949
 11733 		jr		z, p7Dloc_7949
 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:
 11739 p7Dloc_7945:
 11740 		in	a, (9)
 11740 		in		a, (9)
 11741 		and	58h ; 'X'
 11741 		and		58h ; 'X'
 11742 
 11742 
 11743 p7Dloc_7949:
 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
 11749 ; End of function LinkStatus
 11749 ; End of function LinkStatus
 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 =======================================
 11755 p7Dsub_794D:
 11755 p7Dsub_794D:
 11756 		push	af
 11756 		push	af
 11757 
 11757 
 11758 p7Dloc_794E:
 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:
 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:
 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
 11781 		push	af
 11781 		push	af
 11782 		push	af
 11782 		push	af
 11783 		push	af
 11783 		push	af
 11784 		ld	de, 0FFFFh
 11784 		ld		de, 0FFFFh
 11785 		call	p7Dsub_78F5
 11785 		call	p7Dsub_78F5
 11786 		jp	nz, p7Dloc_79F0
 11786 		jp		nz, p7Dloc_79F0
 11787 		call	p7Dsub_78F5
 11787 		call	p7Dsub_78F5
 11788 		jr	nz, p7Dloc_79F0
 11788 		jr		nz, p7Dloc_79F0
 11789 		call	p7Dsub_78A3
 11789 		call	p7Dsub_78A3
 11790 		ld	h, a
 11790 		ld		h, a
 11791 		call	p7Dsub_78F5
 11791 		call	p7Dsub_78F5
 11792 		jr	nz, p7Dloc_79F0
 11792 		jr		nz, p7Dloc_79F0
 11793 		call	p7Dsub_78A3
 11793 		call	p7Dsub_78A3
 11794 		ld	l, a
 11794 		ld		l, a
 11795 		ld	(ix+0F9h), h
 11795 		ld		(ix+0F9h), h
 11796 		ld	(ix+0F8h), l
 11796 		ld		(ix+0F8h), l
 11797 		call	p7Dsub_78F5
 11797 		call	p7Dsub_78F5
 11798 		jr	nz, p7Dloc_79F0
 11798 		jr		nz, p7Dloc_79F0
 11799 		call	p7Dsub_78A3
 11799 		call	p7Dsub_78A3
 11800 		ld	h, a
 11800 		ld		h, a
 11801 		call	p7Dsub_78F5
 11801 		call	p7Dsub_78F5
 11802 		jr	nz, p7Dloc_79F0
 11802 		jr		nz, p7Dloc_79F0
 11803 		call	p7Dsub_78A3
 11803 		call	p7Dsub_78A3
 11804 		ld	l, a
 11804 		ld		l, a
 11805 		ld	(ix+0FBh), h
 11805 		ld		(ix+0FBh), h
 11806 		ld	(ix+0FAh), l
 11806 		ld		(ix+0FAh), l
 11807 		call	p7Dsub_78F5
 11807 		call	p7Dsub_78F5
 11808 		jr	nz, p7Dloc_79F0
 11808 		jr		nz, p7Dloc_79F0
 11809 		ld	h, a
 11809 		ld		h, a
 11810 		call	p7Dsub_78F5
 11810 		call	p7Dsub_78F5
 11811 		jr	nz, p7Dloc_79F0
 11811 		jr		nz, p7Dloc_79F0
 11812 		ld	l, a
 11812 		ld		l, a
 11813 		and	a
 11813 		and		a
 11814 		sbc	hl, de
 11814 		sbc		hl, de
 11815 		jr	nz, p7Dloc_79F0
 11815 		jr		nz, p7Dloc_79F0
 11816 		ld	d, (ix+0FBh)
 11816 		ld		d, (ix+0FBh)
 11817 		ld	e, (ix+0FAh)
 11817 		ld		e, (ix+0FAh)
 11818 		ld	a, d
 11818 		ld		a, d
 11819 		or	e
 11819 		or		e
 11820 		jr	z, p7Dloc_79F5
 11820 		jr		z, p7Dloc_79F5
 11821 		ld	h, (ix+0FDh)
 11821 		ld		h, (ix+0FDh)
 11822 		ld	l, (ix+0FCh)
 11822 		ld		l, (ix+0FCh)
 11823 		and	a
 11823 		and		a
 11824 		sbc	hl, de
 11824 		sbc		hl, de
 11825 		jr	c, p7Dloc_79F0
 11825 		jr		c, p7Dloc_79F0
 11826 		ld	h, (ix+0FFh)
 11826 		ld		h, (ix+0FFh)
 11827 		ld	l, (ix+0FEh)
 11827 		ld		l, (ix+0FEh)
 11828 		ld	b, (ix+0FBh)
 11828 		ld		b, (ix+0FBh)
 11829 		ld	c, (ix+0FAh)
 11829 		ld		c, (ix+0FAh)
 11830 		call	p7Dsub_7915
 11830 		call	p7Dsub_7915
 11831 		jr	nz, p7Dloc_79F0
 11831 		jr		nz, p7Dloc_79F0
 11832 		call	p7Dsub_78C2
 11832 		call	p7Dsub_78C2
 11833 		call	p7Dsub_78F5
 11833 		call	p7Dsub_78F5
 11834 		jr	nz, p7Dloc_79F0
 11834 		jr		nz, p7Dloc_79F0
 11835 		ld	h, a
 11835 		ld		h, a
 11836 		call	p7Dsub_78F5
 11836 		call	p7Dsub_78F5
 11837 		jr	nz, p7Dloc_79F0
 11837 		jr		nz, p7Dloc_79F0
 11838 		ld	l, a
 11838 		ld		l, a
 11839 		and	a
 11839 		and		a
 11840 		sbc	hl, de
 11840 		sbc		hl, 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:
 11846 p7Dloc_79F0:
 11847 		call	p7Dsub_794D
 11847 		call	p7Dsub_794D
 11848 		or	0FFh
 11848 		or		0FFh
 11849 
 11849 
 11850 p7Dloc_79F5:
 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
 11856 		pop	hl
 11856 		pop		hl
 11857 		pop	ix
 11857 		pop		ix
 11858 		ret
 11858 		ret
 11859 ; End of function p7Dsub_795C
 11859 ; End of function p7Dsub_795C
 11860 
 11860 
 11861 ; ---------------------------------------------------------------------------
 11861 ; ---------------------------------------------------------------------------
 11862 		push	ix
 11862 		push	ix
 11863 		ld	ix, 0
 11863 		ld		ix, 0
 11864 		add	ix, sp
 11864 		add		ix, sp
 11865 		push	hl
 11865 		push	hl
 11866 		push	de
 11866 		push	de
 11867 		push	af
 11867 		push	af
 11868 		push	af
 11868 		push	af
 11869 		push	af
 11869 		push	af
 11870 		push	af
 11870 		push	af
 11871 		ld	b, 0
 11871 		ld		b, 0
 11872 		ld	a, c
 11872 		ld		a, c
 11873 		or	a
 11873 		or		a
 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:
 11879 p7Dloc_7A17:
 11880 		ld	c, 32h ; '2'
 11880 		ld		c, 32h ; '2'
 11881 
 11881 
 11882 p7Dloc_7A19:
 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)
 11888 		ld	l, (ix+0FEh)
 11888 		ld		l, (ix+0FEh)
 11889 		ld	d, (ix+0FDh)
 11889 		ld		d, (ix+0FDh)
 11890 		ld	e, (ix+0FCh)
 11890 		ld		e, (ix+0FCh)
 11891 		call	p7Dsub_795C
 11891 		call	p7Dsub_795C
 11892 		ld	(ix+0FBh), d
 11892 		ld		(ix+0FBh), d
 11893 		ld	(ix+0FAh), e
 11893 		ld		(ix+0FAh), e
 11894 		ld	(ix+0F9h), b
 11894 		ld		(ix+0F9h), b
 11895 		ld	(ix+0F8h), c
 11895 		ld		(ix+0F8h), c
 11896 		jr	z, p7Dloc_7A59
 11896 		jr		z, p7Dloc_7A59
 11897 		ld	b, (ix+0F7h)
 11897 		ld		b, (ix+0F7h)
 11898 		ld	c, (ix+0F6h)
 11898 		ld		c, (ix+0F6h)
 11899 		bit	4, (iy+9)
 11899 		bit		4, (iy+9)
 11900 		jr	nz, p7Dloc_7A52
 11900 		jr		nz, p7Dloc_7A52
 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:
 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:
 11912 p7Dloc_7A59:
 11913 		call	p7Dsub_7A75
 11913 		call	p7Dsub_7A75
 11914 		xor	a
 11914 		xor		a
 11915 
 11915 
 11916 p7Dloc_7A5D:
 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
 11922 		pop	hl
 11922 		pop		hl
 11923 		pop	hl
 11923 		pop		hl
 11924 		pop	ix
 11924 		pop		ix
 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:
 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
 11936 		pop	de
 11936 		pop		de
 11937 		pop	hl
 11937 		pop		hl
 11938 		ret
 11938 		ret
 11939 ; End of function p7Dsub_7A67
 11939 ; End of function p7Dsub_7A67
 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:
 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
 11951 ; End of function p7Dsub_7A75
 11951 ; End of function p7Dsub_7A75
 11952 
 11952 
 11953 ; ---------------------------------------------------------------------------
 11953 ; ---------------------------------------------------------------------------
 11954 		push	bc
 11954 		push	bc
 11955 		ld	b, 2
 11955 		ld		b, 2
 11956 		call	p7Dsub_7A67
 11956 		call	p7Dsub_7A67
 11957 		pop	bc
 11957 		pop		bc
 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:
 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
 11969 ; End of function p7Dsub_7A85
 11969 ; End of function p7Dsub_7A85
 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:
 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 =======================================
 11985 p7Dsub_7A96:
 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
 11991 		call	APP_PUSH_ERRORH
 11991 		call	APP_PUSH_ERRORH
 11992 		call	j_SendAByte
 11992 		call	j_SendAByte
 11993 		call	APP_POP_ERRORH
 11993 		call	APP_POP_ERRORH
 11994 		bit	4, (iy+9)
 11994 		bit		4, (iy+9)
 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:
 12000 p7Dloc_7AAF:
 12001 		or	0FFh
 12001 		or		0FFh
 12002 
 12002 
 12003 p7Dloc_7AB1:
 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
 12009 		ret
 12009 		ret
 12010 ; End of function p7Dsub_7A96
 12010 ; End of function p7Dsub_7A96
 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 =======================================
 12015 
 12015 
 12016 p7Dsub_7AB7:
 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:
 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:
 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
 12041 ; End of function p7Dsub_7AB7
 12041 ; End of function p7Dsub_7AB7
 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:
 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
 12053 		push	bc
 12053 		push	bc
 12054 		push	af
 12054 		push	af
 12055 		ld	de, 0FFFFh
 12055 		ld		de, 0FFFFh
 12056 		ld	a, 5Bh ; '['
 12056 		ld		a, 5Bh ; '['
 12057 		call	p7Dsub_7A96
 12057 		call	p7Dsub_7A96
 12058 		jr	nz, p7Dloc_7B37
 12058 		jr		nz, p7Dloc_7B37
 12059 		ld	a, b
 12059 		ld		a, b
 12060 		call	p7Dsub_78A3
 12060 		call	p7Dsub_78A3
 12061 		call	p7Dsub_7A96
 12061 		call	p7Dsub_7A96
 12062 		jr	nz, p7Dloc_7B37
 12062 		jr		nz, p7Dloc_7B37
 12063 		ld	a, c
 12063 		ld		a, c
 12064 		call	p7Dsub_78A3
 12064 		call	p7Dsub_78A3
 12065 		call	p7Dsub_7A96
 12065 		call	p7Dsub_7A96
 12066 		jr	nz, p7Dloc_7B37
 12066 		jr		nz, p7Dloc_7B37
 12067 		ld	b, (ix+0FDh)
 12067 		ld		b, (ix+0FDh)
 12068 		ld	c, (ix+0FCh)
 12068 		ld		c, (ix+0FCh)
 12069 		ld	a, b
 12069 		ld		a, b
 12070 		call	p7Dsub_78A3
 12070 		call	p7Dsub_78A3
 12071 		call	p7Dsub_7A96
 12071 		call	p7Dsub_7A96
 12072 		jr	nz, p7Dloc_7B37
 12072 		jr		nz, p7Dloc_7B37
 12073 		ld	a, c
 12073 		ld		a, c
 12074 		call	p7Dsub_78A3
 12074 		call	p7Dsub_78A3
 12075 		call	p7Dsub_7A96
 12075 		call	p7Dsub_7A96
 12076 		jr	nz, p7Dloc_7B37
 12076 		jr		nz, p7Dloc_7B37
 12077 		ld	a, d
 12077 		ld		a, d
 12078 		call	p7Dsub_7A96
 12078 		call	p7Dsub_7A96
 12079 		jr	nz, p7Dloc_7B37
 12079 		jr		nz, p7Dloc_7B37
 12080 		ld	a, e
 12080 		ld		a, e
 12081 		call	p7Dsub_7A96
 12081 		call	p7Dsub_7A96
 12082 		jr	nz, p7Dloc_7B37
 12082 		jr		nz, p7Dloc_7B37
 12083 		ld	a, b
 12083 		ld		a, b
 12084 		or	c
 12084 		or		c
 12085 		jr	z, p7Dloc_7B34
 12085 		jr		z, p7Dloc_7B34
 12086 		call	p7Dsub_78C2
 12086 		call	p7Dsub_78C2
 12087 		call	p7Dsub_7AB7
 12087 		call	p7Dsub_7AB7
 12088 		jr	nz, p7Dloc_7B37
 12088 		jr		nz, p7Dloc_7B37
 12089 		ld	a, d
 12089 		ld		a, d
 12090 		call	p7Dsub_7A96
 12090 		call	p7Dsub_7A96
 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:
 12096 p7Dloc_7B34:
 12097 		xor	a
 12097 		xor		a
 12098 		jr	p7Dloc_7B39
 12098 		jr		p7Dloc_7B39
 12099 ; ---------------------------------------------------------------------------
 12099 ; ---------------------------------------------------------------------------
 12100 
 12100 
 12101 p7Dloc_7B37:
 12101 p7Dloc_7B37:
 12102 		or	0FFh
 12102 		or		0FFh
 12103 
 12103 
 12104 p7Dloc_7B39:
 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
 12110 		pop	ix
 12110 		pop		ix
 12111 		ret
 12111 		ret
 12112 ; End of function p7Dsub_7AD0
 12112 ; End of function p7Dsub_7AD0
 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:
 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
 12124 		rst	28h
 12124 		rst		28h
 12125 ; ---------------------------------------------------------------------------
 12125 ; ---------------------------------------------------------------------------
 12126 		.dw 8075h
 12126 		.dw		8075h
 12127 ; ---------------------------------------------------------------------------
 12127 ; ---------------------------------------------------------------------------
 12128 		jp	nz, p7Dloc_75B1
 12128 		jp		nz, p7Dloc_75B1
 12129 		inc	hl
 12129 		inc		hl
 12130 		ld	a, 1
 12130 		ld		a, 1
 12131 		rst	28h
 12131 		rst		28h
 12132 ; ---------------------------------------------------------------------------
 12132 ; ---------------------------------------------------------------------------
 12133 		.dw 805Ah
 12133 		.dw		805Ah
 12134 ; ---------------------------------------------------------------------------
 12134 ; ---------------------------------------------------------------------------
 12135 		ld	de, 8479h
 12135 		ld		de, 8479h
 12136 		ldir
 12136 		ldir
 12137 		ld	hl, (appSearchPage)
 12137 		ld		hl, (appSearchPage)
 12138 		push	hl
 12138 		push	hl
 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:
 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 =======================================
 12154 p7Dsub_7B72:
 12154 p7Dsub_7B72:
 12155 		; p7Dsub_7240+1BCp ...
 12155 		; p7Dsub_7240+1BCp ...
 12156 		call	p7Dsub_75EC
 12156 		call	p7Dsub_75EC
 12157 
 12157 
 12158 p7Dloc_7B75:
 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:
 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
 12173 		ld	a, c
 12173 		ld		a, c
 12174 		or	a
 12174 		or		a
 12175 		jr	z, p7Dloc_7B98
 12175 		jr		z, p7Dloc_7B98
 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:
 12181 p7Dloc_7B98:
 12182 		xor	a
 12182 		xor		a
 12183 		ret
 12183 		ret
 12184 ; ---------------------------------------------------------------------------
 12184 ; ---------------------------------------------------------------------------
 12185 
 12185 
 12186 p7Dloc_7B9A:
 12186 p7Dloc_7B9A:
 12187 		cp	a
 12187 		cp		a
 12188 		ret
 12188 		ret
 12189 ; ---------------------------------------------------------------------------
 12189 ; ---------------------------------------------------------------------------
 12190 
 12190 
 12191 p7Dloc_7B9C:
 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
 12197 		ret
 12197 		ret
 12198 ; End of function p7Dsub_7B72
 12198 ; End of function p7Dsub_7B72
 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:
 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:
 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:
 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:
 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:
 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
 12247 		sra	c
 12247 		sra	c
 12248 		sra	c
 12248 		sra	c
 12249 		add	hl, bc
 12249 		add		hl, bc
 12250 		and	7
 12250 		and		7
 12251 		ld	c, a
 12251 		ld		c, a
 12252 ; End of function p7Dsub_7BBA
 12252 ; End of function p7Dsub_7BBA
 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:
 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:
 12263 p7Dloc_7BD0:
 12264 		rlca
 12264 		rlca
 12265 		djnz	p7Dloc_7BD0
 12265 		djnz	p7Dloc_7BD0
 12266 		ret
 12266 		ret
 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:
 12273 p7Dsub_7BD4:
 12274 
 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
 12280 		push	hl
 12280 		push	hl
 12281 		ld	a, 1
 12281 		ld		a, 1
 12282 		ld	(indicCounter), a
 12282 		ld		(indicCounter), a
 12283 		call	page0_1BF
 12283 		call	page0_1BF
 12284 		pop	hl
 12284 		pop		hl
 12285 		pop	de
 12285 		pop		de
 12286 		pop	bc
 12286 		pop		bc
 12287 		pop	af
 12287 		pop		af
 12288 		ret
 12288 		ret
 12289 ; End of function p7Dsub_7BD4
 12289 ; End of function p7Dsub_7BD4
 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 =======================================
 12295 p7Dsub_7BEA:
 12295 p7Dsub_7BEA:
 12296 
 12296 
 12297 
 12297 
 12298 
 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
 12304 		ret	c
 12304 		ret		c
 12305 		ret	z
 12305 		ret		z
 12306 		ld	a, e
 12306 		ld		a, e
 12307 		or	a
 12307 		or		a
 12308 		jp	z, Page7D_2BBC
 12308 		jp		z, Page7D_2BBC
 12309 		ld	a, 6
 12309 		ld		a, 6
 12310 		call	Page0Call_2EB9
 12310 		call	Page0Call_2EB9
 12311 		jp	z, Page7D_2BBC
 12311 		jp		z, Page7D_2BBC
 12312 		call	p7Dsub_7182
 12312 		call	p7Dsub_7182
 12313 		ld	a, (unk_8434)
 12313 		ld		a, (unk_8434)
 12314 		call	p7Dsub_5DC7
 12314 		call	p7Dsub_5DC7
 12315 		ret
 12315 		ret
 12316 ; End of function p7Dsub_7BEA
 12316 ; End of function p7Dsub_7BEA
 12317 
 12317 
 12318 ; ---------------------------------------------------------------------------
 12318 ; ---------------------------------------------------------------------------
 12319 
 12319 
 12320 Page7D_3EB8:
 12320 Page7D_3EB8:
 12321 		push	af
 12321 		push	af
 12322 		ld	a, 1
 12322 		ld		a, 1
 12323 		nop
 12323 		nop
 12324 		di
 12324 		di
 12325 		nop
 12325 		nop
 12326 		nop
 12326 		nop
 12327 		im	1
 12327 		im	1
 12328 		di
 12328 		di
 12329 		out	(14h), a
 12329 		out		(14h), a
 12330 		di
 12330 		di
 12331 		call	checkForFlashTrickery
 12331 		call	checkForFlashTrickery
 12332 		pop	af
 12332 		pop		af
 12333 		call	Page7D_2B56
 12333 		call	Page7D_2B56
 12334 		ld	a, b
 12334 		ld		a, b
 12335 		rst	28h
 12335 		rst		28h
 12336 ; ---------------------------------------------------------------------------
 12336 ; ---------------------------------------------------------------------------
 12337 		.dw 80CFh
 12337 		.dw		80CFh
 12338 ; ---------------------------------------------------------------------------
 12338 ; ---------------------------------------------------------------------------
 12339 		jp	relockFlashBack
 12339 		jp		relockFlashBack
 12340 ; ---------------------------------------------------------------------------
 12340 ; ---------------------------------------------------------------------------
 12341 
 12341 
 12342 DoNothing2:
 12342 DoNothing2:
 12343 		ret
 12343 		ret
 12344 ; ---------------------------------------------------------------------------
 12344 ; ---------------------------------------------------------------------------
 12345 		jp	nz, p7Dloc_7C2E
 12345 		jp		nz, p7Dloc_7C2E
 12346 
 12346 
 12347 p7Dloc_7C2E:
 12347 p7Dloc_7C2E:
 12348 		call	popErrorHandleR
 12348 		call	popErrorHandleR
 12349 		ld	a, 23h ; '#'
 12349 		ld		a, 23h ; '#'
 12350 		ld	(errNo), a
 12350 		ld		(errNo), a
 12351 		pop	hl
 12351 		pop		hl
 12352 		ld	(freeRAM), hl
 12352 		ld		(freeRAM), hl
 12353 		call	p7Dsub_7C64
 12353 		call	p7Dsub_7C64
 12354 		jr	z, p7Dloc_7C4D
 12354 		jr		z, p7Dloc_7C4D
 12355 		call	OP4ToOP1
 12355 		call	OP4ToOP1
 12356 		call	ChkFindSym
 12356 		call	ChkFindSym
 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:
 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
 12368 		ld	(hl), c
 12368 		ld		(hl), c
 12369 		inc	hl
 12369 		inc		hl
 12370 		ld	(hl), b
 12370 		ld		(hl), b
 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:
 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:
 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
 12389 ; End of function p7Dsub_7C64
 12389 ; End of function p7Dsub_7C64
 12390 
 12390 
 12391 ; ---------------------------------------------------------------------------
 12391 ; ---------------------------------------------------------------------------
 12392 		call	page0_17B0
 12392 		call	page0_17B0
 12393 		jr	z, p7Dloc_7C7D
 12393 		jr		z, p7Dloc_7C7D
 12394 		call	ISO1NONTEMPLST
 12394 		call	ISO1NONTEMPLST
 12395 		jr	nz, p7Dloc_7C84
 12395 		jr		nz, p7Dloc_7C84
 12396 		push	bc
 12396 		push	bc
 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:
 12402 p7Dloc_7C7D:
 12403 		push	bc
 12403 		push	bc
 12404 		call	CMPPRGNAMLEN
 12404 		call	CMPPRGNAMLEN
 12405 
 12405 
 12406 p7Dloc_7C81:
 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:
 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
 12418 		ld	hl, (unk_83F7)
 12418 		ld		hl, (unk_83F7)
 12419 		or	a
 12419 		or		a
 12420 		sbc	hl, bc
 12420 		sbc		hl, bc
 12421 		jp	c, ErrMemory
 12421 		jp		c, ErrMemory
 12422 		ld	(unk_83F7), hl
 12422 		ld		(unk_83F7), hl
 12423 		pop	hl
 12423 		pop		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:
 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:
 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:
 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
 12453 		ld	(unk_83A3), a
 12453 		ld		(unk_83A3), a
 12454 		ret
 12454 		ret
 12455 ; End of function p7Dsub_7CA5
 12455 ; End of function p7Dsub_7CA5
 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:
 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
 12467 		pop	bc
 12467 		pop		bc
 12468 		ret
 12468 		ret
 12469 ; End of function p7Dsub_7CB2
 12469 ; End of function p7Dsub_7CB2
 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:
 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
 12481 		call	p7Dsub_578D
 12481 		call	p7Dsub_578D
 12482 		ld	a, l
 12482 		ld		a, l
 12483 		or	h
 12483 		or		h
 12484 		pop	hl
 12484 		pop		hl
 12485 		ret	nz
 12485 		ret		nz
 12486 		ld	a, 0
 12486 		ld		a, 0
 12487 		ld	(unk_83A4), a
 12487 		ld		(unk_83A4), a
 12488 		ret
 12488 		ret
 12489 ; End of function p7Dsub_7CBB
 12489 ; End of function p7Dsub_7CBB
 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:
 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
 12501 
 12501 
 12502 ; ---------------------------------------------------------------------------
 12502 ; ---------------------------------------------------------------------------
 12503 		call	Page7D_2BEC
 12503 		call	Page7D_2BEC
 12504 		ld	de, 1DE2h
 12504 		ld		de, 1DE2h
 12505 		add	hl, de
 12505 		add		hl, de
 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:
 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
 12517 		nop
 12517 		nop
 12518 		nop
 12518 		nop
 12519 		im	1
 12519 		im	1
 12520 		di
 12520 		di
 12521 		out	(14h), a
 12521 		out		(14h), a
 12522 		di
 12522 		di
 12523 		call	checkForFlashTrickery
 12523 		call	checkForFlashTrickery
 12524 		pop	af
 12524 		pop		af
 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:
 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:
 12539 p7Dloc_7D01:
 12540 		call	Page7D_2BB0
 12540 		call	Page7D_2BB0
 12541 
 12541 
 12542 p7Dloc_7D04:
 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:
 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
 12558 		ld	(unk_847C), hl
 12558 		ld		(unk_847C), hl
 12559 		ld	(iMathPtr5), hl
 12559 		ld		(iMathPtr5), hl
 12560 		ld	de, (unk_83F7)
 12560 		ld		de, (unk_83F7)
 12561 		bit	7, d
 12561 		bit		7, d
 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:
 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:
 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:
 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
 12587 		pop	de
 12587 		pop		de
 12588 		rst	28h
 12588 		rst		28h
 12589 ; ---------------------------------------------------------------------------
 12589 ; ---------------------------------------------------------------------------
 12590 		.dw 8087h
 12590 		.dw		8087h
 12591 ; ---------------------------------------------------------------------------
 12591 ; ---------------------------------------------------------------------------
 12592 		call	relockFlashBack
 12592 		call	relockFlashBack
 12593 		set	3, (iy+26h)
 12593 		set		3, (iy+26h)
 12594 		call	Page7D_2EB0
 12594 		call	Page7D_2EB0
 12595 		pop	af
 12595 		pop		af
 12596 		ld	hl, (unk_83F1)
 12596 		ld		hl, (unk_83F1)
 12597 		ld	(hl), a
 12597 		ld		(hl), a
 12598 		ret
 12598 		ret
 12599 ; End of function p7Dsub_7CDA
 12599 ; End of function p7Dsub_7CDA
 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:
 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
 12611 		push	hl
 12611 		push	hl
 12612 		ld	c, a
 12612 		ld		c, a
 12613 		xor	a
 12613 		xor		a
 12614 		ld	(pagedCount), a
 12614 		ld		(pagedCount), a
 12615 		ld	hl, pagedBuf
 12615 		ld		hl, pagedBuf
 12616 		ld	(pagedGetPtr), hl
 12616 		ld		(pagedGetPtr), hl
 12617 		ld	de, (iMathPtr5)
 12617 		ld		de, (iMathPtr5)
 12618 		ld	a, (arcInfo)
 12618 		ld		a, (arcInfo)
 12619 		push	de
 12619 		push	de
 12620 		ld	(Abackup), a
 12620 		ld		(Abackup), a
 12621 		ld	a, i
 12621 		ld		a, i
 12622 		di
 12622 		di
 12623 		push	af
 12623 		push	af
 12624 		ld	a, (Abackup)
 12624 		ld		a, (Abackup)
 12625 		push	af
 12625 		push	af
 12626 		ld	a, 1
 12626 		ld		a, 1
 12627 		nop
 12627 		nop
 12628 		di
 12628 		di
 12629 		nop
 12629 		nop
 12630 		nop
 12630 		nop
 12631 		im	1
 12631 		im	1
 12632 		di
 12632 		di
 12633 		out	(14h), a
 12633 		out		(14h), a
 12634 		di
 12634 		di
 12635 		call	checkForFlashTrickery
 12635 		call	checkForFlashTrickery
 12636 		pop	af
 12636 		pop		af
 12637 		call	p7Dsub_7C96
 12637 		call	p7Dsub_7C96
 12638 		jr	nc, p7Dloc_7E0D
 12638 		jr		nc, p7Dloc_7E0D
 12639 		cp	8
 12639 		cp		8
 12640 		jr	c, p7Dloc_7E0D
 12640 		jr		c, p7Dloc_7E0D
 12641 		call	p7Dsub_7CCF
 12641 		call	p7Dsub_7CCF
 12642 		call	p7Dsub_4566
 12642 		call	p7Dsub_4566
 12643 		cp	0FEh ; '�'
 12643 		cp		0FEh ; '�'
 12644 		jr	nz, p7Dloc_7E0D
 12644 		jr		nz, p7Dloc_7E0D
 12645 		call	p7Dsub_4565
 12645 		call	p7Dsub_4565
 12646 		cp	7Fh ; ''
 12646 		cp		7Fh ; ''
 12647 		jr	nz, p7Dloc_7E0D
 12647 		jr		nz, p7Dloc_7E0D
 12648 		call	p7Dsub_4565
 12648 		call	p7Dsub_4565
 12649 		ld	b, a
 12649 		ld		b, a
 12650 		ld	a, (arcInfo)
 12650 		ld		a, (arcInfo)
 12651 		cp	b
 12651 		cp		b
 12652 		jr	c, p7Dloc_7E0D
 12652 		jr		c, p7Dloc_7E0D
 12653 		jr	nz, p7Dloc_7DD3
 12653 		jr		nz, p7Dloc_7DD3
 12654 		call	p7Dsub_455C
 12654 		call	p7Dsub_455C
 12655 		push	hl
 12655 		push	hl
 12656 		ld	hl, (iMathPtr5)
 12656 		ld		hl, (iMathPtr5)
 12657 		call	CpHLDE
 12657 		call	CpHLDE
 12658 		ex	de, hl
 12658 		ex		de, hl
 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:
 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:
 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:
 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
 12684 		jr	nz, p7Dloc_7DFC
 12684 		jr		nz, p7Dloc_7DFC
 12685 		push	de
 12685 		push	de
 12686 		call	p7Dsub_455C
 12686 		call	p7Dsub_455C
 12687 		pop	hl
 12687 		pop		hl
 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:
 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
 12699 ; ---------------------------------------------------------------------------
 12699 ; ---------------------------------------------------------------------------
 12700 		.dw 80C9h
 12700 		.dw		80C9h
 12701 ; ---------------------------------------------------------------------------
 12701 ; ---------------------------------------------------------------------------
 12702 		jr	p7Dloc_7E0E
 12702 		jr		p7Dloc_7E0E
 12703 ; ---------------------------------------------------------------------------
 12703 ; ---------------------------------------------------------------------------
 12704 
 12704 
 12705 p7Dloc_7E0D:
 12705 p7Dloc_7E0D:
 12706 		nop
 12706 		nop
 12707 
 12707 
 12708 p7Dloc_7E0E:
 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:
 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:
 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:
 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
 12741 		pop	bc
 12741 		pop		bc
 12742 		pop	hl
 12742 		pop		hl
 12743 		dec	bc
 12743 		dec		bc
 12744 		ld	a, c
 12744 		ld		a, c
 12745 		or	b
 12745 		or		b
 12746 		jr	nz, p7Dloc_7E31
 12746 		jr		nz, p7Dloc_7E31
 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:
 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
 12758 		pop	hl
 12758 		pop		hl
 12759 		ld	a, (pagedCount)
 12759 		ld		a, (pagedCount)
 12760 		inc	a
 12760 		inc		a
 12761 		ld	(pagedCount), a
 12761 		ld		(pagedCount), a
 12762 		cp	10h
 12762 		cp		10h
 12763 		call	z, p7Dsub_7D67
 12763 		call	z, p7Dsub_7D67
 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:
 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
 12775 		cp	4
 12775 		cp		4
 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:
 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
 12787 		ld	a, (hl)
 12787 		ld		a, (hl)
 12788 		push	af
 12788 		push	af
 12789 		and	1Fh
 12789 		and		1Fh
 12790 		ld	(hl), a
 12790 		ld		(hl), a
 12791 		call	Page0Call_2ED1
 12791 		call	Page0Call_2ED1
 12792 		pop	af
 12792 		pop		af
 12793 		call	p7Dsub_7CDA
 12793 		call	p7Dsub_7CDA
 12794 		xor	a
 12794 		xor		a
 12795 		ld	(pagedCount), a
 12795 		ld		(pagedCount), a
 12796 		push	hl
 12796 		push	hl
 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 
       
 12802 p7Dloc_7E8D:
 12801 p7Dloc_7E8D:
 12803 		call	Page0Call_2C91
 12802 		call	Page0Call_2C91
 12804 		ret
 12803 		ret
 12805 
       
 12806 p7Dloc_7E91:
 12804 p7Dloc_7E91:
 12807 		call	page0_1F38
 12805 		call	page0_1F38
 12808 		ret
 12806 		ret
 12809 
 12807 
 12810 .org	$7FFF
 12808 .org	$7FFF
 12811 		.db  5Dh	; ]
 12809 		.db		5Dh	; ]