source/page7D/initial.asm
changeset 42 adad2f097dcb
parent 41 9ef17625274f
child 43 486c42a314bc
equal deleted inserted replaced
41:9ef17625274f 42:adad2f097dcb
    99 
    99 
   100 Page7D_2BAD:
   100 Page7D_2BAD:
   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	EraseCertFlash
   105 		pop		hl
   105 		pop		hl
   106 		ret
   106 		ret
   107 ; End of function Page7D_2BAD
   107 ; End of function Page7D_2BAD
   108 
   108 
   109 
   109 
   110 ; =============== S U B	R O U T	I N E =======================================
   110 ; =============== S U B	R O U T	I N E =======================================
   111 
   111 
   112 
   112 
   113 p7Dsub_4083:
   113 p7Dsub_4083:
   114 		; p7Dsub_430E+2Ap
   114 		; p7Dsub_430E+2Ap
   115 		call	p7Dsub_7700
   115 		call	GetCertPage
   116 		push	bc
   116 		push	bc
   117 		push	hl
   117 		push	hl
   118 		push	de
   118 		push	de
   119 		push	af
   119 		push	af
   120 
   120 
   150 
   150 
   151 ; =============== S U B	R O U T	I N E =======================================
   151 ; =============== S U B	R O U T	I N E =======================================
   152 
   152 
   153 
   153 
   154 p7Dsub_40A6:
   154 p7Dsub_40A6:
   155 		call	p7Dsub_7700
   155 		call	GetCertPage
   156 ; End of function p7Dsub_40A6
   156 ; End of function p7Dsub_40A6
   157 
   157 
   158 
   158 
   159 p7Dloc_40A9:
   159 p7Dloc_40A9:
   160 		push	bc
   160 		push	bc
   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	GetCertByte
   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
   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	IncHL_GetCertFieldSize
   219 		add		hl, bc
   219 		add		hl, bc
   220 		call	p7Dsub_4574
   220 		call	IncHL_GetCertFieldSize
   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
   247 		inc		de
   247 		inc		de
   248 		inc		hl
   248 		inc		hl
   249 
   249 
   250 p7Dloc_4117:
   250 p7Dloc_4117:
   251 		; Page7D_2B5F:p7Dloc_4178j
   251 		; Page7D_2B5F:p7Dloc_4178j
   252 		call	p7Dsub_4566
   252 		call	GetCertByte
   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
   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	IncHL_GetCertFieldSize
   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
   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	IncHL_GetCertFieldSize
   300 		pop		de
   300 		pop		de
   301 		add		hl, bc
   301 		add		hl, bc
   302 		call	p7Dsub_4566
   302 		call	GetCertByte
   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	IncHL_GetCertFieldSize
   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
   380 p7Dloc_41E2:
   380 p7Dloc_41E2:
   381 		; Page7D_2B5F+E4j ...
   381 		; Page7D_2B5F+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	WriteCertByte
   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	EraseCertFlash
   392 		pop		de
   392 		pop		de
   393 		ld		b, 0
   393 		ld		b, 0
   394 		call	p7Dsub_456D
   394 		call	WriteCertByte
   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
   431 		ld		de, tempSwapArea
   431 		ld		de, tempSwapArea
   432 
   432 
   433 p7Dloc_421D:
   433 p7Dloc_421D:
   434 		call	Page7D_2BE9
   434 		call	Page7D_2BE9
   435 		ex		de, hl
   435 		ex		de, hl
   436 		call	p7Dsub_7700
   436 		call	GetCertPage
   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 
   441 
   441 
   487 
   487 
   488 ; =============== S U B	R O U T	I N E =======================================
   488 ; =============== S U B	R O U T	I N E =======================================
   489 
   489 
   490 
   490 
   491 p7Dsub_424C:
   491 p7Dsub_424C:
   492 		call	p7Dsub_7700
   492 		call	GetCertPage
   493 		call	FlashToRam
   493 		call	FlashToRam
   494 		ret
   494 		ret
   495 ; End of function p7Dsub_424C
   495 ; End of function p7Dsub_424C
   496 
   496 
   497 
   497 
   498 ; =============== S U B	R O U T	I N E =======================================
   498 ; =============== S U B	R O U T	I N E =======================================
   499 
   499 
   500 
   500 
   501 p7Dsub_4253:
   501 p7Dsub_4253:
   502 		; Page7D_2B83+1Ep
       
   503 		call	Page7D_2B7D
   502 		call	Page7D_2B7D
   504 		ld		bc, 20h	; ' '
   503 		ld		bc, 20h	; ' '
   505 		ld		de, 836Dh
   504 		ld		de, 836Dh
   506 		jr		p7Dsub_424C
   505 		jr		p7Dsub_424C
   507 ; End of function p7Dsub_4253
   506 ; End of function p7Dsub_4253
   627 		ld		bc, 1
   626 		ld		bc, 1
   628 		call	FlashToRam
   627 		call	FlashToRam
   629 		pop		de
   628 		pop		de
   630 		push	de
   629 		push	de
   631 		ld		hl, OP1
   630 		ld		hl, OP1
   632 		call	p7Dsub_7700
   631 		call	GetCertPage
   633 		call	p7Dsub_7663
   632 		call	p7Dsub_7663
   634 		pop		de
   633 		pop		de
   635 		pop		hl
   634 		pop		hl
   636 		inc		hl
   635 		inc		hl
   637 		inc		de
   636 		inc		de
   753 ; ---------------------------------------------------------------------------
   752 ; ---------------------------------------------------------------------------
   754 
   753 
   755 Page7D_2BCB:
   754 Page7D_2BCB:
   756 		push	hl
   755 		push	hl
   757 		call	p7Dsub_4894
   756 		call	p7Dsub_4894
   758 		call	p7Dsub_4574
   757 		call	IncHL_GetCertFieldSize
   759 		push	bc
   758 		push	bc
   760 		push	hl
   759 		push	hl
   761 		call	p7Dsub_4894
   760 		call	p7Dsub_4894
   762 		push	hl
   761 		push	hl
   763 		pop		bc
   762 		pop		bc
   797 		rst		28h
   796 		rst		28h
   798 ; ---------------------------------------------------------------------------
   797 ; ---------------------------------------------------------------------------
   799 		.dw		8018h
   798 		.dw		8018h
   800 ; ---------------------------------------------------------------------------
   799 ; ---------------------------------------------------------------------------
   801 		call	p7Dsub_4894
   800 		call	p7Dsub_4894
   802 		call	p7Dsub_7700
   801 		call	GetCertPage
   803 		call	p7Dsub_55CE
   802 		call	p7Dsub_55CE
   804 		jp		nz, p7Dloc_43EC
   803 		jp		nz, p7Dloc_43EC
   805 		ld		hl, tempSwapArea
   804 		ld		hl, tempSwapArea
   806 		push	af
   805 		push	af
   807 		push	bc
   806 		push	bc
   808 		push	de
   807 		push	de
   809 		push	hl
   808 		push	hl
   810 		call	p7Dsub_4894
   809 		call	p7Dsub_4894
   811 		inc		hl
   810 		inc		hl
   812 		call	p7Dsub_4566
   811 		call	GetCertByte
   813 		and		0F0h ; '�'
   812 		and		0F0h ; '�'
   814 		ld		hl, 310h
   813 		ld		hl, 310h
   815 		cp		l
   814 		cp		l
   816 		jr		nz, p7Dloc_43B9
   815 		jr		nz, p7Dloc_43B9
   817 		call	p7Dsub_7700
   816 		call	GetCertPage
   818 		call	p7Dsub_762A
   817 		call	p7Dsub_762A
   819 		call	p7Dsub_4442
   818 		call	p7Dsub_4442
   820 		jr		nz, p7Dloc_43DA
   819 		jr		nz, p7Dloc_43DA
   821 		adc	hl, bc
   820 		adc	hl, bc
   822 		call	p7Dsub_7700
   821 		call	GetCertPage
   823 		ld		de, 830h
   822 		ld		de, 830h
   824 		rst		28h
   823 		rst		28h
   825 ; ---------------------------------------------------------------------------
   824 ; ---------------------------------------------------------------------------
   826 		.dw		8030h
   825 		.dw		8030h
   827 ; ---------------------------------------------------------------------------
   826 ; ---------------------------------------------------------------------------
   845 		rst		28h
   844 		rst		28h
   846 ; ---------------------------------------------------------------------------
   845 ; ---------------------------------------------------------------------------
   847 		.dw		8027h
   846 		.dw		8027h
   848 ; ---------------------------------------------------------------------------
   847 ; ---------------------------------------------------------------------------
   849 		jr		nz, p7Dloc_43DA
   848 		jr		nz, p7Dloc_43DA
   850 		call	p7Dsub_4574
   849 		call	IncHL_GetCertFieldSize
   851 
   850 
   852 p7Dloc_43CF:
   851 p7Dloc_43CF:
   853 		dec		hl
   852 		dec		hl
   854 		inc		bc
   853 		inc		bc
   855 		call	p7Dsub_7700
   854 		call	GetCertPage
   856 		ld		de, ramStart
   855 		ld		de, ramStart
   857 		rst		28h
   856 		rst		28h
   858 ; ---------------------------------------------------------------------------
   857 ; ---------------------------------------------------------------------------
   859 		.dw		8054h
   858 		.dw		8054h
   860 ; ---------------------------------------------------------------------------
   859 ; ---------------------------------------------------------------------------
   985 		push	hl
   984 		push	hl
   986 		push	bc
   985 		push	bc
   987 		call	p7Dsub_70D1
   986 		call	p7Dsub_70D1
   988 		ld		de, 800h
   987 		ld		de, 800h
   989 		call	p7Dsub_777E
   988 		call	p7Dsub_777E
   990 		call	p7Dsub_4574
   989 		call	IncHL_GetCertFieldSize
   991 		pop		bc
   990 		pop		bc
   992 		pop		de
   991 		pop		de
   993 
   992 
   994 p7Dloc_4452:
   993 p7Dloc_4452:
   995 		push	de
   994 		push	de
   996 		push	bc
   995 		push	bc
   997 		push	bc
   996 		push	bc
   998 		push	de
   997 		push	de
   999 		ld		de, 810h
   998 		ld		de, 810h
  1000 		call	p7Dsub_7700
   999 		call	GetCertPage
  1001 		rst		28h
  1000 		rst		28h
  1002 ; ---------------------------------------------------------------------------
  1001 ; ---------------------------------------------------------------------------
  1003 		.dw		8030h
  1002 		.dw		8030h
  1004 ; ---------------------------------------------------------------------------
  1003 ; ---------------------------------------------------------------------------
  1005 		pop		de
  1004 		pop		de
  1013 		push	bc
  1012 		push	bc
  1014 		jr		nz, p7Dloc_4482
  1013 		jr		nz, p7Dloc_4482
  1015 		ld		b, c
  1014 		ld		b, c
  1016 
  1015 
  1017 p7Dloc_446D:
  1016 p7Dloc_446D:
  1018 		call	p7Dsub_7700
  1017 		call	GetCertPage
  1019 		call	p7Dsub_4C73
  1018 		call	p7Dsub_4C73
  1020 		jr		nz, p7Dloc_4482
  1019 		jr		nz, p7Dloc_4482
  1021 		inc		de
  1020 		inc		de
  1022 		inc		hl
  1021 		inc		hl
  1023 		djnz	p7Dloc_446D
  1022 		djnz	p7Dloc_446D
  1063 
  1062 
  1064 ; =============== S U B	R O U T	I N E =======================================
  1063 ; =============== S U B	R O U T	I N E =======================================
  1065 
  1064 
  1066 
  1065 
  1067 p7Dsub_4498:
  1066 p7Dsub_4498:
  1068 		call	p7Dsub_7700
  1067 		call	GetCertPage
  1069 		call	p7Dsub_4894
  1068 		call	p7Dsub_4894
  1070 		call	p7Dsub_7700
  1069 		call	GetCertPage
  1071 		call	p7Dsub_4873
  1070 		call	p7Dsub_4873
  1072 		call	p7Dsub_70D1
  1071 		call	p7Dsub_70D1
  1073 		jr		nz, p7Dloc_44B8
  1072 		jr		nz, p7Dloc_44B8
  1074 		call	p7Dsub_7700
  1073 		call	GetCertPage
  1075 		push	bc
  1074 		push	bc
  1076 		call	p7Dsub_4873
  1075 		call	p7Dsub_4873
  1077 		push	bc
  1076 		push	bc
  1078 		pop		hl
  1077 		pop		hl
  1079 		pop		bc
  1078 		pop		bc
  1097 
  1096 
  1098 ; ---------------------------------------------------------------------------
  1097 ; ---------------------------------------------------------------------------
  1099 
  1098 
  1100 p7Dloc_44C3:
  1099 p7Dloc_44C3:
  1101 		call	p7Dsub_4894
  1100 		call	p7Dsub_4894
  1102 		call	p7Dsub_7700
  1101 		call	GetCertPage
  1103 		call	p7Dloc_442C
  1102 		call	p7Dloc_442C
  1104 		push	de
  1103 		push	de
  1105 		push	bc
  1104 		push	bc
  1106 		ld		de, 0A10h
  1105 		ld		de, 0A10h
  1107 		rst		28h
  1106 		rst		28h
  1108 ; ---------------------------------------------------------------------------
  1107 ; ---------------------------------------------------------------------------
  1109 		.dw		8027h
  1108 		.dw		8027h
  1110 ; ---------------------------------------------------------------------------
  1109 ; ---------------------------------------------------------------------------
  1111 		push	de
  1110 		push	de
  1112 		call	p7Dsub_4574
  1111 		call	IncHL_GetCertFieldSize
  1113 		pop		de
  1112 		pop		de
  1114 		ld		a, c
  1113 		ld		a, c
  1115 		pop		bc
  1114 		pop		bc
  1116 		cp		c
  1115 		cp		c
  1117 		jr		nz, p7Dloc_44F7
  1116 		jr		nz, p7Dloc_44F7
  1119 		pop		hl
  1118 		pop		hl
  1120 		ld		b, c
  1119 		ld		b, c
  1121 
  1120 
  1122 p7Dloc_44E1:
  1121 p7Dloc_44E1:
  1123 		ex		de, hl
  1122 		ex		de, hl
  1124 		call	p7Dsub_4566
  1123 		call	GetCertByte
  1125 		ld		c, a
  1124 		ld		c, a
  1126 		ex		de, hl
  1125 		ex		de, hl
  1127 		call	p7Dsub_4566
  1126 		call	GetCertByte
  1128 		cp		c
  1127 		cp		c
  1129 		jr		nz, locret_44F8
  1128 		jr		nz, locret_44F8
  1130 		dec		b
  1129 		dec		b
  1131 		ld		a, b
  1130 		ld		a, b
  1132 		cp		0
  1131 		cp		0
  1154 		di
  1153 		di
  1155 		out		(14h), a
  1154 		out		(14h), a
  1156 		di
  1155 		di
  1157 		call	checkForFlashTrickery
  1156 		call	checkForFlashTrickery
  1158 		pop		af
  1157 		pop		af
  1159 		call	p7Dsub_7700
  1158 		call	GetCertPage
  1160 		call	p7Dsub_4894
  1159 		call	p7Dsub_4894
  1161 		call	p7Dsub_4574
  1160 		call	IncHL_GetCertFieldSize
  1162 		call	p7Dsub_7700
  1161 		call	GetCertPage
  1163 		call	p7Dsub_50C5
  1162 		call	p7Dsub_50C5
  1164 		jr		nz, p7Dloc_4530
  1163 		jr		nz, p7Dloc_4530
  1165 		ld		de, 320h
  1164 		ld		de, 320h
  1166 		rst		28h
  1165 		rst		28h
  1167 ; ---------------------------------------------------------------------------
  1166 ; ---------------------------------------------------------------------------
  1168 		.dw		8027h
  1167 		.dw		8027h
  1169 ; ---------------------------------------------------------------------------
  1168 ; ---------------------------------------------------------------------------
  1170 		jr		nz, p7Dloc_4529
  1169 		jr		nz, p7Dloc_4529
  1171 		call	p7Dsub_7700
  1170 		call	GetCertPage
  1172 		rst		28h
  1171 		rst		28h
  1173 ; ---------------------------------------------------------------------------
  1172 ; ---------------------------------------------------------------------------
  1174 		.dw		802Ah
  1173 		.dw		802Ah
  1175 ; ---------------------------------------------------------------------------
  1174 ; ---------------------------------------------------------------------------
  1176 
  1175 
  1185 ; =============== S U B	R O U T	I N E =======================================
  1184 ; =============== S U B	R O U T	I N E =======================================
  1186 
  1185 
  1187 
  1186 
  1188 p7Dsub_4533:
  1187 p7Dsub_4533:
  1189 		call	Page7D_2B7D
  1188 		call	Page7D_2B7D
  1190 		call	p7Dsub_4566
  1189 		call	GetCertByte
  1191 		ld		(unk_8439+1), a
  1190 		ld		(unk_8439+1), a
  1192 		inc		hl
  1191 		inc		hl
  1193 		call	p7Dsub_4566
  1192 		call	GetCertByte
  1194 		ld		(unk_843B), a
  1193 		ld		(unk_843B), a
  1195 		call	NZIf83Plus
  1194 		call	NZIf83Plus
  1196 		ret		nz
  1195 		ret		nz
  1197 		inc		hl
  1196 		inc		hl
  1198 		call	p7Dsub_7700
  1197 		call	GetCertPage
  1199 		ld		bc, 0Bh
  1198 		ld		bc, 0Bh
  1200 		ld		de, 9C9Eh
  1199 		ld		de, 9C9Eh
  1201 		call	FlashToRam
  1200 		call	FlashToRam
  1202 		ld		hl, 9CA8h
  1201 		ld		hl, 9CA8h
  1203 		ld		a, 0FEh	; '�'
  1202 		ld		a, 0FEh	; '�'
  1209 
  1208 
  1210 ; =============== S U B	R O U T	I N E =======================================
  1209 ; =============== S U B	R O U T	I N E =======================================
  1211 
  1210 
  1212 
  1211 
  1213 p7Dsub_455C:
  1212 p7Dsub_455C:
  1214 		call	p7Dsub_4565
  1213 		call	IncHL_GetCertByte
  1215 		ld		e, a
  1214 		ld		e, a
  1216 		call	p7Dsub_4565
  1215 		call	IncHL_GetCertByte
  1217 		ld		d, a
  1216 		ld		d, a
  1218 		ret
  1217 		ret
  1219 ; End of function p7Dsub_455C
  1218 
  1220 
  1219 IncHL_GetCertByte:
  1221 
  1220 		inc		hl
  1222 ; =============== S U B	R O U T	I N E =======================================
  1221 GetCertByte:
  1223 
  1222 		call	GetCertPage
  1224 
       
  1225 p7Dsub_4565:
       
  1226 		inc		hl
       
  1227 ; End of function p7Dsub_4565
       
  1228 
       
  1229 
       
  1230 ; =============== S U B	R O U T	I N E =======================================
       
  1231 
       
  1232 
       
  1233 p7Dsub_4566:
       
  1234 		; Page7D_2B5F:p7Dloc_4117p ...
       
  1235 		call	p7Dsub_7700
       
  1236 		call	LoadAIndPaged_Copy
  1223 		call	LoadAIndPaged_Copy
  1237 		ret
  1224 		ret
  1238 ; End of function p7Dsub_4566
  1225 
  1239 
  1226 WriteCertByte:
  1240 
  1227 		call	GetCertPage
  1241 ; =============== S U B	R O U T	I N E =======================================
  1228 		b_call(_WriteAByte)
  1242 
  1229 		ret
  1243 
  1230 
  1244 p7Dsub_456D:
  1231 IncHL_GetCertFieldSize:
  1245 		; Page7D_2B5F+12Cp ...
  1232 		inc		hl
  1246 		call	p7Dsub_7700
  1233 GetCertFieldSize:
  1247 		rst		28h
  1234 		call	GetCertPage
  1248 ; ---------------------------------------------------------------------------
  1235 		b_call(_GetFieldSize)
  1249 		.dw		8021h
  1236 		ret
  1250 ; ---------------------------------------------------------------------------
  1237 
  1251 		ret
  1238 EraseCertFlash:
  1252 ; End of function p7Dsub_456D
  1239 		call	GetCertPage
  1253 
  1240 		b_call(_EraseFlash)
  1254 
  1241 		ret
  1255 ; =============== S U B	R O U T	I N E =======================================
       
  1256 
       
  1257 
       
  1258 p7Dsub_4574:
       
  1259 		; Page7D_2B5F+25p ...
       
  1260 		inc		hl
       
  1261 
       
  1262 p7Dloc_4575:
       
  1263 		call	p7Dsub_7700
       
  1264 		rst		28h
       
  1265 ; ---------------------------------------------------------------------------
       
  1266 		.dw		805Ah
       
  1267 ; ---------------------------------------------------------------------------
       
  1268 		ret
       
  1269 ; End of function p7Dsub_4574
       
  1270 
       
  1271 
       
  1272 ; =============== S U B	R O U T	I N E =======================================
       
  1273 
       
  1274 
       
  1275 p7Dsub_457C:
       
  1276 		; Page7D_2B5F+126p ...
       
  1277 		call	p7Dsub_7700
       
  1278 		rst		28h
       
  1279 ; ---------------------------------------------------------------------------
       
  1280 		.dw		8024h
       
  1281 ; ---------------------------------------------------------------------------
       
  1282 		ret
       
  1283 ; End of function p7Dsub_457C
       
  1284 
       
  1285 ; ---------------------------------------------------------------------------
       
  1286 
  1242 
  1287 Page7D_2BD1:
  1243 Page7D_2BD1:
  1288 		push	af
  1244 		push	af
  1289 		ld		a, 1
  1245 		ld		a, 1
  1290 		nop
  1246 		nop
  1357 		push	de
  1313 		push	de
  1358 		ld		a, (unk_8439+1)
  1314 		ld		a, (unk_8439+1)
  1359 		ld		b, a
  1315 		ld		b, a
  1360 		call	Page7D_2B7D
  1316 		call	Page7D_2B7D
  1361 		ex		de, hl
  1317 		ex		de, hl
  1362 		call	p7Dsub_456D
  1318 		call	WriteCertByte
  1363 		ld		a, (unk_843B)
  1319 		ld		a, (unk_843B)
  1364 		ld		b, a
  1320 		ld		b, a
  1365 		call	p7Dsub_456D
  1321 		call	WriteCertByte
  1366 		call	NZIf83Plus
  1322 		call	NZIf83Plus
  1367 		jr		nz, p7Dloc_4609
  1323 		jr		nz, p7Dloc_4609
  1368 		call	p7Dsub_7700
  1324 		call	GetCertPage
  1369 		ld		bc, 0Bh
  1325 		ld		bc, 0Bh
  1370 		ld		hl, 9C9Eh
  1326 		ld		hl, 9C9Eh
  1371 		rst		28h
  1327 		rst		28h
  1372 ; ---------------------------------------------------------------------------
  1328 ; ---------------------------------------------------------------------------
  1373 		.dw		8087h
  1329 		.dw		8087h
  1375 
  1331 
  1376 p7Dloc_4609:
  1332 p7Dloc_4609:
  1377 		call	p7Dsub_70D1
  1333 		call	p7Dsub_70D1
  1378 		jr		nz, p7Dloc_464B
  1334 		jr		nz, p7Dloc_464B
  1379 		call	p7Dsub_464E
  1335 		call	p7Dsub_464E
  1380 		call	p7Dsub_4574
  1336 		call	IncHL_GetCertFieldSize
  1381 		add		hl, bc
  1337 		add		hl, bc
  1382 		call	p7Dsub_70D1
  1338 		call	p7Dsub_70D1
  1383 		ld		de, 800h
  1339 		ld		de, 800h
  1384 		call	p7Dsub_777E
  1340 		call	p7Dsub_777E
  1385 		call	p7Dsub_4574
  1341 		call	IncHL_GetCertFieldSize
  1386 
  1342 
  1387 p7Dloc_4621:
  1343 p7Dloc_4621:
  1388 		ld		de, 810h
  1344 		ld		de, 810h
  1389 		call	p7Dsub_7700
  1345 		call	GetCertPage
  1390 		rst		28h
  1346 		rst		28h
  1391 ; ---------------------------------------------------------------------------
  1347 ; ---------------------------------------------------------------------------
  1392 		.dw		8030h
  1348 		.dw		8030h
  1393 ; ---------------------------------------------------------------------------
  1349 ; ---------------------------------------------------------------------------
  1394 		jr		nz, p7Dloc_464B
  1350 		jr		nz, p7Dloc_464B
  1395 		push	hl
  1351 		push	hl
  1396 		push	bc
  1352 		push	bc
  1397 		ld		b, c
  1353 		ld		b, c
  1398 		ld		(OP2), bc
  1354 		ld		(OP2), bc
  1399 		ld		b, 0
  1355 		ld		b, 0
  1400 		call	p7Dsub_7700
  1356 		call	GetCertPage
  1401 		ld		de, 8484h
  1357 		ld		de, 8484h
  1402 		rst		28h
  1358 		rst		28h
  1403 ; ---------------------------------------------------------------------------
  1359 ; ---------------------------------------------------------------------------
  1404 		.dw		8054h
  1360 		.dw		8054h
  1405 ; ---------------------------------------------------------------------------
  1361 ; ---------------------------------------------------------------------------
  1437 ; ---------------------------------------------------------------------------
  1393 ; ---------------------------------------------------------------------------
  1438 		.dw		8099h
  1394 		.dw		8099h
  1439 ; ---------------------------------------------------------------------------
  1395 ; ---------------------------------------------------------------------------
  1440 		ld		de, 700h
  1396 		ld		de, 700h
  1441 		call	p7Dsub_777E
  1397 		call	p7Dsub_777E
  1442 		call	p7Dsub_4574
  1398 		call	IncHL_GetCertFieldSize
  1443 
  1399 
  1444 p7Dloc_4660:
  1400 p7Dloc_4660:
  1445 		ld		de, 710h
  1401 		ld		de, 710h
  1446 		call	p7Dsub_705E
  1402 		call	p7Dsub_705E
  1447 		jr		nz, p7Dloc_4683
  1403 		jr		nz, p7Dloc_4683
  1448 		call	p7Dsub_4574
  1404 		call	IncHL_GetCertFieldSize
  1449 		push	bc
  1405 		push	bc
  1450 		push	hl
  1406 		push	hl
  1451 		call	p7Dsub_7700
  1407 		call	GetCertPage
  1452 		ld		de, 838Fh
  1408 		ld		de, 838Fh
  1453 		rst		28h
  1409 		rst		28h
  1454 ; ---------------------------------------------------------------------------
  1410 ; ---------------------------------------------------------------------------
  1455 		.dw		8054h
  1411 		.dw		8054h
  1456 ; ---------------------------------------------------------------------------
  1412 ; ---------------------------------------------------------------------------
  1483 
  1439 
  1484 p7Dsub_468A:
  1440 p7Dsub_468A:
  1485 
  1441 
  1486 		call	p7Dsub_4894
  1442 		call	p7Dsub_4894
  1487 		push	hl
  1443 		push	hl
  1488 		call	p7Dsub_4574
  1444 		call	IncHL_GetCertFieldSize
  1489 		add		hl, bc
  1445 		add		hl, bc
  1490 		call	p7Dsub_4574
  1446 		call	IncHL_GetCertFieldSize
  1491 		add		hl, bc
  1447 		add		hl, bc
  1492 		pop		bc
  1448 		pop		bc
  1493 		push	bc
  1449 		push	bc
  1494 		or		a
  1450 		or		a
  1495 		sbc		hl, bc
  1451 		sbc		hl, bc
  1533 		push	de
  1489 		push	de
  1534 		push	bc
  1490 		push	bc
  1535 		call	p7Dsub_762A
  1491 		call	p7Dsub_762A
  1536 		ld		(OP2), bc
  1492 		ld		(OP2), bc
  1537 		ld		de, 8484h
  1493 		ld		de, 8484h
  1538 		call	p7Dsub_7700
  1494 		call	GetCertPage
  1539 		rst		28h
  1495 		rst		28h
  1540 ; ---------------------------------------------------------------------------
  1496 ; ---------------------------------------------------------------------------
  1541 		.dw		8054h
  1497 		.dw		8054h
  1542 ; ---------------------------------------------------------------------------
  1498 ; ---------------------------------------------------------------------------
  1543 		rst		28h
  1499 		rst		28h
  1547 		jr		nz, p7Dloc_4715
  1503 		jr		nz, p7Dloc_4715
  1548 		push	hl
  1504 		push	hl
  1549 		ld		de, 100h
  1505 		ld		de, 100h
  1550 		call	p7Dsub_777E
  1506 		call	p7Dsub_777E
  1551 		jr		nz, p7Dloc_4714
  1507 		jr		nz, p7Dloc_4714
  1552 		call	p7Dsub_4574
  1508 		call	IncHL_GetCertFieldSize
  1553 		push	hl
  1509 		push	hl
  1554 		call	p7Dsub_4894
  1510 		call	p7Dsub_4894
  1555 		ld		de, 100h
  1511 		ld		de, 100h
  1556 		call	p7Dsub_777E
  1512 		call	p7Dsub_777E
  1557 		call	p7Dsub_4574
  1513 		call	IncHL_GetCertFieldSize
  1558 		pop		de
  1514 		pop		de
  1559 		ex		de, hl
  1515 		ex		de, hl
  1560 		call	p7Dsub_7700
  1516 		call	GetCertPage
  1561 		call	p7Dsub_5CFF
  1517 		call	p7Dsub_5CFF
  1562 		call	p7Dsub_5D1E
  1518 		call	p7Dsub_5D1E
  1563 		ex		de, hl
  1519 		ex		de, hl
  1564 		call	p7Dsub_7700
  1520 		call	GetCertPage
  1565 		call	p7Dsub_5CFF
  1521 		call	p7Dsub_5CFF
  1566 		call	p7Dsub_5D43
  1522 		call	p7Dsub_5D43
  1567 		ex		de, hl
  1523 		ex		de, hl
  1568 		or		a
  1524 		or		a
  1569 		sbc		hl, bc
  1525 		sbc		hl, bc
  1619 
  1575 
  1620 p7Dloc_474C:
  1576 p7Dloc_474C:
  1621 		ld		de, 836Dh
  1577 		ld		de, 836Dh
  1622 		call	Page7D_2B7D
  1578 		call	Page7D_2B7D
  1623 		ld		bc, 20h	; ' '
  1579 		ld		bc, 20h	; ' '
  1624 		call	p7Dsub_7700
  1580 		call	GetCertPage
  1625 		rst		28h
  1581 		rst		28h
  1626 ; ---------------------------------------------------------------------------
  1582 ; ---------------------------------------------------------------------------
  1627 		.dw		8054h
  1583 		.dw		8054h
  1628 ; ---------------------------------------------------------------------------
  1584 ; ---------------------------------------------------------------------------
  1629 		call	p7Dsub_521D
  1585 		call	p7Dsub_521D
  1630 		ld		bc, 0Dh
  1586 		ld		bc, 0Dh
  1631 		sla	c
  1587 		sla	c
  1632 		call	p7Dsub_7700
  1588 		call	GetCertPage
  1633 		ld		de, tempSwapArea
  1589 		ld		de, tempSwapArea
  1634 		rst		28h
  1590 		rst		28h
  1635 ; ---------------------------------------------------------------------------
  1591 ; ---------------------------------------------------------------------------
  1636 		.dw		8054h
  1592 		.dw		8054h
  1637 ; ---------------------------------------------------------------------------
  1593 ; ---------------------------------------------------------------------------
  1638 		call	p7Dsub_762A
  1594 		call	p7Dsub_762A
  1639 		ld		(appID), bc
  1595 		ld		(appID), bc
  1640 		ld		de, 838Eh
  1596 		ld		de, 838Eh
  1641 		call	p7Dsub_7700
  1597 		call	GetCertPage
  1642 		rst		28h
  1598 		rst		28h
  1643 ; ---------------------------------------------------------------------------
  1599 ; ---------------------------------------------------------------------------
  1644 		.dw		8054h
  1600 		.dw		8054h
  1645 ; ---------------------------------------------------------------------------
  1601 ; ---------------------------------------------------------------------------
  1646 		call	p7Dsub_468A
  1602 		call	p7Dsub_468A
  1742 		push	de
  1698 		push	de
  1743 		push	af
  1699 		push	af
  1744 		call	p7Dsub_47B5
  1700 		call	p7Dsub_47B5
  1745 		ld		de, 700h
  1701 		ld		de, 700h
  1746 		call	p7Dsub_777E
  1702 		call	p7Dsub_777E
  1747 		call	p7Dsub_4574
  1703 		call	IncHL_GetCertFieldSize
  1748 		push	hl
  1704 		push	hl
  1749 		call	p7Dsub_4894
  1705 		call	p7Dsub_4894
  1750 		ld		de, 700h
  1706 		ld		de, 700h
  1751 		call	p7Dsub_777E
  1707 		call	p7Dsub_777E
  1752 		call	p7Dsub_4574
  1708 		call	IncHL_GetCertFieldSize
  1753 		pop		de
  1709 		pop		de
  1754 		push	hl
  1710 		push	hl
  1755 		push	de
  1711 		push	de
  1756 		call	p7Dsub_762A
  1712 		call	p7Dsub_762A
  1757 		push	hl
  1713 		push	hl
  1761 		pop		bc
  1717 		pop		bc
  1762 		pop		hl
  1718 		pop		hl
  1763 		push	ix
  1719 		push	ix
  1764 		call	p7Dsub_4442
  1720 		call	p7Dsub_4442
  1765 		add		hl, bc
  1721 		add		hl, bc
  1766 		call	p7Dsub_7700
  1722 		call	GetCertPage
  1767 		ld		de, 810h
  1723 		ld		de, 810h
  1768 		rst		28h
  1724 		rst		28h
  1769 ; ---------------------------------------------------------------------------
  1725 ; ---------------------------------------------------------------------------
  1770 		.dw		8030h
  1726 		.dw		8030h
  1771 ; ---------------------------------------------------------------------------
  1727 ; ---------------------------------------------------------------------------
  1813 		ld		d, c
  1769 		ld		d, c
  1814 		set		4, d
  1770 		set		4, d
  1815 		ld		e, 7
  1771 		ld		e, 7
  1816 		ld		(appID), de
  1772 		ld		(appID), de
  1817 		ld		de, 838Fh
  1773 		ld		de, 838Fh
  1818 		call	p7Dsub_7700
  1774 		call	GetCertPage
  1819 		rst		28h
  1775 		rst		28h
  1820 ; ---------------------------------------------------------------------------
  1776 ; ---------------------------------------------------------------------------
  1821 		.dw		8054h
  1777 		.dw		8054h
  1822 ; ---------------------------------------------------------------------------
  1778 ; ---------------------------------------------------------------------------
  1823 		ld		hl, OP6
  1779 		ld		hl, OP6
  1855 		inc		hl
  1811 		inc		hl
  1856 		rst		28h
  1812 		rst		28h
  1857 ; ---------------------------------------------------------------------------
  1813 ; ---------------------------------------------------------------------------
  1858 		.dw		805Ah
  1814 		.dw		805Ah
  1859 ; ---------------------------------------------------------------------------
  1815 ; ---------------------------------------------------------------------------
  1860 		call	p7Dsub_7700
  1816 		call	GetCertPage
  1861 		call	p7Dsub_5CFF
  1817 		call	p7Dsub_5CFF
  1862 		call	p7Dsub_5D43
  1818 		call	p7Dsub_5D43
  1863 		jr		p7Dloc_4890
  1819 		jr		p7Dloc_4890
  1864 ; ---------------------------------------------------------------------------
  1820 ; ---------------------------------------------------------------------------
  1865 
  1821 
  1968 p7Dloc_48EB:
  1924 p7Dloc_48EB:
  1969 		push	ix
  1925 		push	ix
  1970 		pop		bc
  1926 		pop		bc
  1971 		sla	c
  1927 		sla	c
  1972 		add		hl, bc
  1928 		add		hl, bc
  1973 		call	p7Dsub_4566
  1929 		call	GetCertByte
  1974 		cp		80h
  1930 		cp		80h
  1975 		scf
  1931 		scf
  1976 		jr		z, p7Dloc_4902
  1932 		jr		z, p7Dloc_4902
  1977 		cp		0
  1933 		cp		0
  1978 		jr		nz, p7Dloc_4902
  1934 		jr		nz, p7Dloc_4902
  1979 		call	p7Dsub_4565
  1935 		call	IncHL_GetCertByte
  1980 		cp		0
  1936 		cp		0
  1981 p7Dloc_4902:
  1937 p7Dloc_4902:
  1982 		pop		bc
  1938 		pop		bc
  1983 		pop		de
  1939 		pop		de
  1984 		pop		hl
  1940 		pop		hl
  2041 
  1997 
  2042 p7Dloc_496F:
  1998 p7Dloc_496F:
  2043 		ld		a, 0FFh
  1999 		ld		a, 0FFh
  2044 
  2000 
  2045 p7Dloc_4971:
  2001 p7Dloc_4971:
  2046 		call	page0_AC4
  2002 		call	smallDelay
  2047 		dec		a
  2003 		dec		a
  2048 		jr		nz, p7Dloc_4971
  2004 		jr		nz, p7Dloc_4971
  2049 		djnz	p7Dloc_496F
  2005 		djnz	p7Dloc_496F
  2050 		ld		b, c
  2006 		ld		b, c
  2051 		djnz	p7Dloc_496C
  2007 		djnz	p7Dloc_496C
  2065 p7Dsub_4992:
  2021 p7Dsub_4992:
  2066 		push	af
  2022 		push	af
  2067 		push	bc
  2023 		push	bc
  2068 		push	de
  2024 		push	de
  2069 		push	hl
  2025 		push	hl
  2070 		call	p7Dsub_4565
  2026 		call	IncHL_GetCertByte
  2071 		push	af
  2027 		push	af
  2072 		and		0F0h ; '�'
  2028 		and		0F0h ; '�'
  2073 		ld		c, a
  2029 		ld		c, a
  2074 		pop		af
  2030 		pop		af
  2075 		xor		c
  2031 		xor		c
  2076 		ld		(appID), a
  2032 		ld		(appID), a
  2077 		inc		hl
  2033 		inc		hl
  2078 		ld		c, a
  2034 		ld		c, a
  2079 		ld		b, 0
  2035 		ld		b, 0
  2080 		call	p7Dsub_7700
  2036 		call	GetCertPage
  2081 		ld		de, 838Eh
  2037 		ld		de, 838Eh
  2082 		rst		28h
  2038 		rst		28h
  2083 ; ---------------------------------------------------------------------------
  2039 ; ---------------------------------------------------------------------------
  2084 		.dw		8054h
  2040 		.dw		8054h
  2085 ; ---------------------------------------------------------------------------
  2041 ; ---------------------------------------------------------------------------
  2336 p7Dsub_4AC9:
  2292 p7Dsub_4AC9:
  2337 		call	p7Dsub_70D1
  2293 		call	p7Dsub_70D1
  2338 		jp		nz, p7Dloc_4B69
  2294 		jp		nz, p7Dloc_4B69
  2339 		ld		de, 700h
  2295 		ld		de, 700h
  2340 		call	p7Dsub_777E
  2296 		call	p7Dsub_777E
  2341 		call	p7Dsub_4574
  2297 		call	IncHL_GetCertFieldSize
  2342 		ld		ix, 0
  2298 		ld		ix, 0
  2343 
  2299 
  2344 p7Dloc_4ADC:
  2300 p7Dloc_4ADC:
  2345 		ld		de, 710h
  2301 		ld		de, 710h
  2346 		call	p7Dsub_705E
  2302 		call	p7Dsub_705E
  2347 		jp		nz, p7Dloc_4B6E
  2303 		jp		nz, p7Dloc_4B6E
  2348 		push	hl
  2304 		push	hl
  2349 		call	p7Dsub_4574
  2305 		call	IncHL_GetCertFieldSize
  2350 		ld		a, c
  2306 		ld		a, c
  2351 		ld		(appID+1), a
  2307 		ld		(appID+1), a
  2352 		ld		de, 838Fh
  2308 		ld		de, 838Fh
  2353 		call	p7Dsub_424C
  2309 		call	p7Dsub_424C
  2354 		rst		28h
  2310 		rst		28h
  2359 		push	hl
  2315 		push	hl
  2360 		jr		z, p7Dloc_4B5F
  2316 		jr		z, p7Dloc_4B5F
  2361 		ld		de, 740h
  2317 		ld		de, 740h
  2362 		call	p7Dsub_705E
  2318 		call	p7Dsub_705E
  2363 		jr		nz, p7Dloc_4B14
  2319 		jr		nz, p7Dloc_4B14
  2364 		call	p7Dsub_7700
  2320 		call	GetCertPage
  2365 		call	p7Dsub_50C5
  2321 		call	p7Dsub_50C5
  2366 		jr		z, p7Dloc_4B14
  2322 		jr		z, p7Dloc_4B14
  2367 		call	p7Dsub_536F
  2323 		call	p7Dsub_536F
  2368 		call	p7Dsub_48DE
  2324 		call	p7Dsub_48DE
  2369 		jr		c, p7Dloc_4B14
  2325 		jr		c, p7Dloc_4B14
  2409 p7Dloc_4B51:
  2365 p7Dloc_4B51:
  2410 		pop		hl
  2366 		pop		hl
  2411 		pop		de
  2367 		pop		de
  2412 		ex		de, hl
  2368 		ex		de, hl
  2413 		push	de
  2369 		push	de
  2414 		call	p7Dsub_4574
  2370 		call	IncHL_GetCertFieldSize
  2415 		pop		de
  2371 		pop		de
  2416 		add		hl, bc
  2372 		add		hl, bc
  2417 		inc		ix
  2373 		inc		ix
  2418 		jp		p7Dloc_4ADC
  2374 		jp		p7Dloc_4ADC
  2419 ; ---------------------------------------------------------------------------
  2375 ; ---------------------------------------------------------------------------
  2420 
  2376 
  2421 p7Dloc_4B5F:
  2377 p7Dloc_4B5F:
  2422 		pop		hl
  2378 		pop		hl
  2423 		call	p7Dsub_4574
  2379 		call	IncHL_GetCertFieldSize
  2424 		add		hl, bc
  2380 		add		hl, bc
  2425 		inc		ix
  2381 		inc		ix
  2426 		jp		p7Dloc_4ADC
  2382 		jp		p7Dloc_4ADC
  2427 ; ---------------------------------------------------------------------------
  2383 ; ---------------------------------------------------------------------------
  2428 
  2384 
  2442 ; =============== S U B	R O U T	I N E =======================================
  2398 ; =============== S U B	R O U T	I N E =======================================
  2443 
  2399 
  2444 
  2400 
  2445 p7Dsub_4B73:
  2401 p7Dsub_4B73:
  2446 		ex		de, hl
  2402 		ex		de, hl
  2447 		call	p7Dsub_4574
  2403 		call	IncHL_GetCertFieldSize
  2448 		ld		a, c
  2404 		ld		a, c
  2449 		ld		(appID), a
  2405 		ld		(appID), a
  2450 		ld		de, 838Eh
  2406 		ld		de, 838Eh
  2451 		call	p7Dsub_424C
  2407 		call	p7Dsub_424C
  2452 		ret
  2408 		ret
  2456 
  2412 
  2457 p7Dloc_4B82:
  2413 p7Dloc_4B82:
  2458 		call	p7Dsub_70D1
  2414 		call	p7Dsub_70D1
  2459 		ld		de, 800h
  2415 		ld		de, 800h
  2460 		call	p7Dsub_777E
  2416 		call	p7Dsub_777E
  2461 		call	p7Dsub_4574
  2417 		call	IncHL_GetCertFieldSize
  2462 
  2418 
  2463 p7Dloc_4B8E:
  2419 p7Dloc_4B8E:
  2464 		ld		de, 810h
  2420 		ld		de, 810h
  2465 		call	p7Dsub_705E
  2421 		call	p7Dsub_705E
  2466 		jp		nz, locret_4C0B
  2422 		jp		nz, locret_4C0B
  2467 		push	hl
  2423 		push	hl
  2468 		ld		de, 840h
  2424 		ld		de, 840h
  2469 		call	p7Dsub_705E
  2425 		call	p7Dsub_705E
  2470 		jr		nz, p7Dloc_4BC9
  2426 		jr		nz, p7Dloc_4BC9
  2471 		call	p7Dsub_7700
  2427 		call	GetCertPage
  2472 		call	p7Dsub_50C5
  2428 		call	p7Dsub_50C5
  2473 		jr		z, p7Dloc_4BE4
  2429 		jr		z, p7Dloc_4BE4
  2474 		call	p7Dsub_536F
  2430 		call	p7Dsub_536F
  2475 		call	p7Dsub_48DE
  2431 		call	p7Dsub_48DE
  2476 		jr		c, p7Dloc_4BC9
  2432 		jr		c, p7Dloc_4BC9
  2488 
  2444 
  2489 p7Dloc_4BC9:
  2445 p7Dloc_4BC9:
  2490 		pop		de
  2446 		pop		de
  2491 		ex		de, hl
  2447 		ex		de, hl
  2492 		push	hl
  2448 		push	hl
  2493 		call	p7Dsub_4574
  2449 		call	IncHL_GetCertFieldSize
  2494 		ld		de, 8484h
  2450 		ld		de, 8484h
  2495 		ld		(OP2), bc
  2451 		ld		(OP2), bc
  2496 		call	p7Dsub_7700
  2452 		call	GetCertPage
  2497 		rst		28h
  2453 		rst		28h
  2498 ; ---------------------------------------------------------------------------
  2454 ; ---------------------------------------------------------------------------
  2499 		.dw		8054h
  2455 		.dw		8054h
  2500 ; ---------------------------------------------------------------------------
  2456 ; ---------------------------------------------------------------------------
  2501 		rst		28h
  2457 		rst		28h
  2510 
  2466 
  2511 p7Dloc_4BE4:
  2467 p7Dloc_4BE4:
  2512 		pop		de
  2468 		pop		de
  2513 		ex		de, hl
  2469 		ex		de, hl
  2514 		push	hl
  2470 		push	hl
  2515 		call	p7Dsub_4574
  2471 		call	IncHL_GetCertFieldSize
  2516 		ld		de, 8484h
  2472 		ld		de, 8484h
  2517 		ld		(OP2), bc
  2473 		ld		(OP2), bc
  2518 		call	p7Dsub_7700
  2474 		call	GetCertPage
  2519 		rst		28h
  2475 		rst		28h
  2520 ; ---------------------------------------------------------------------------
  2476 ; ---------------------------------------------------------------------------
  2521 		.dw		8054h
  2477 		.dw		8054h
  2522 ; ---------------------------------------------------------------------------
  2478 ; ---------------------------------------------------------------------------
  2523 		rst		28h
  2479 		rst		28h
  2528 		inc		ix
  2484 		inc		ix
  2529 		call	p7Dsub_4C0C
  2485 		call	p7Dsub_4C0C
  2530 
  2486 
  2531 p7Dloc_4C01:
  2487 p7Dloc_4C01:
  2532 		pop		hl
  2488 		pop		hl
  2533 		call	p7Dsub_4574
  2489 		call	IncHL_GetCertFieldSize
  2534 		add		hl, bc
  2490 		add		hl, bc
  2535 		inc		ix
  2491 		inc		ix
  2536 		jp		p7Dloc_4B8E
  2492 		jp		p7Dloc_4B8E
  2537 ; ---------------------------------------------------------------------------
  2493 ; ---------------------------------------------------------------------------
  2538 
  2494 
  2543 
  2499 
  2544 
  2500 
  2545 p7Dsub_4C0C:
  2501 p7Dsub_4C0C:
  2546 		ld		de, 700h
  2502 		ld		de, 700h
  2547 		call	p7Dsub_777E
  2503 		call	p7Dsub_777E
  2548 		call	p7Dsub_4574
  2504 		call	IncHL_GetCertFieldSize
  2549 
  2505 
  2550 p7Dloc_4C15:
  2506 p7Dloc_4C15:
  2551 		ld		de, 710h
  2507 		ld		de, 710h
  2552 		call	p7Dsub_705E
  2508 		call	p7Dsub_705E
  2553 		jr		nz, p7Dloc_4C70
  2509 		jr		nz, p7Dloc_4C70
  2554 		push	hl
  2510 		push	hl
  2555 		ld		de, 740h
  2511 		ld		de, 740h
  2556 		call	p7Dsub_705E
  2512 		call	p7Dsub_705E
  2557 		jr		nz, p7Dloc_4C38
  2513 		jr		nz, p7Dloc_4C38
  2558 		call	p7Dsub_7700
  2514 		call	GetCertPage
  2559 		call	p7Dsub_50C5
  2515 		call	p7Dsub_50C5
  2560 		jr		z, p7Dloc_4C38
  2516 		jr		z, p7Dloc_4C38
  2561 		call	p7Dsub_536F
  2517 		call	p7Dsub_536F
  2562 		call	p7Dsub_48DE
  2518 		call	p7Dsub_48DE
  2563 		jr		c, p7Dloc_4C38
  2519 		jr		c, p7Dloc_4C38
  2597 p7Dloc_4C66:
  2553 p7Dloc_4C66:
  2598 		pop		hl
  2554 		pop		hl
  2599 		pop		de
  2555 		pop		de
  2600 
  2556 
  2601 p7Dloc_4C68:
  2557 p7Dloc_4C68:
  2602 		call	p7Dsub_4574
  2558 		call	IncHL_GetCertFieldSize
  2603 		add		hl, bc
  2559 		add		hl, bc
  2604 		inc		ix
  2560 		inc		ix
  2605 		jr		p7Dloc_4C15
  2561 		jr		p7Dloc_4C15
  2606 ; ---------------------------------------------------------------------------
  2562 ; ---------------------------------------------------------------------------
  2607 
  2563 
  2651 		call	p7Dloc_4D38
  2607 		call	p7Dloc_4D38
  2652 		call	p7Dsub_4CAE
  2608 		call	p7Dsub_4CAE
  2653 		call	p7Dsub_521D
  2609 		call	p7Dsub_521D
  2654 		ld		bc, 0Dh
  2610 		ld		bc, 0Dh
  2655 		sla	c
  2611 		sla	c
  2656 		call	p7Dsub_7700
  2612 		call	GetCertPage
  2657 		ld		de, tempSwapArea
  2613 		ld		de, tempSwapArea
  2658 		rst		28h
  2614 		rst		28h
  2659 ; ---------------------------------------------------------------------------
  2615 ; ---------------------------------------------------------------------------
  2660 		.dw		8054h
  2616 		.dw		8054h
  2661 ; ---------------------------------------------------------------------------
  2617 ; ---------------------------------------------------------------------------
  2674 		call	p7Dsub_70D1
  2630 		call	p7Dsub_70D1
  2675 		jr		nz, p7Dloc_4CF7
  2631 		jr		nz, p7Dloc_4CF7
  2676 		ld		de, 800h
  2632 		ld		de, 800h
  2677 		call	p7Dsub_777E
  2633 		call	p7Dsub_777E
  2678 		jr		nz, p7Dloc_4CF7
  2634 		jr		nz, p7Dloc_4CF7
  2679 		call	p7Dsub_4574
  2635 		call	IncHL_GetCertFieldSize
  2680 		push	hl
  2636 		push	hl
  2681 		call	p7Dsub_4894
  2637 		call	p7Dsub_4894
  2682 		ld		de, 800h
  2638 		ld		de, 800h
  2683 		call	p7Dsub_777E
  2639 		call	p7Dsub_777E
  2684 		jp		nz, p7Dloc_4D36
  2640 		jp		nz, p7Dloc_4D36
  2685 		call	p7Dsub_4574
  2641 		call	IncHL_GetCertFieldSize
  2686 		pop		de
  2642 		pop		de
  2687 		ex		de, hl
  2643 		ex		de, hl
  2688 		inc		ix
  2644 		inc		ix
  2689 
  2645 
  2690 p7Dloc_4CD2:
  2646 p7Dloc_4CD2:
  2699 
  2655 
  2700 p7Dloc_4CDD:
  2656 p7Dloc_4CDD:
  2701 		push	de
  2657 		push	de
  2702 		push	ix
  2658 		push	ix
  2703 		ld		de, 810h
  2659 		ld		de, 810h
  2704 		call	p7Dsub_7700
  2660 		call	GetCertPage
  2705 		rst		28h
  2661 		rst		28h
  2706 ; ---------------------------------------------------------------------------
  2662 ; ---------------------------------------------------------------------------
  2707 		.dw		8030h
  2663 		.dw		8030h
  2708 ; ---------------------------------------------------------------------------
  2664 ; ---------------------------------------------------------------------------
  2709 		add		hl, bc
  2665 		add		hl, bc
  2721 		call	p7Dsub_4894
  2677 		call	p7Dsub_4894
  2722 		ld		de, 800h
  2678 		ld		de, 800h
  2723 		call	p7Dsub_777E
  2679 		call	p7Dsub_777E
  2724 		jr		nz, locret_4D35
  2680 		jr		nz, locret_4D35
  2725 		inc		ix
  2681 		inc		ix
  2726 		call	p7Dsub_4574
  2682 		call	IncHL_GetCertFieldSize
  2727 
  2683 
  2728 p7Dloc_4D07:
  2684 p7Dloc_4D07:
  2729 		ld		de, 810h
  2685 		ld		de, 810h
  2730 		call	p7Dsub_705E
  2686 		call	p7Dsub_705E
  2731 		jr		nz, locret_4D35
  2687 		jr		nz, locret_4D35
  2732 		push	hl
  2688 		push	hl
  2733 		ex		de, hl
  2689 		ex		de, hl
  2734 		call	p7Dsub_4E44
  2690 		call	p7Dsub_4E44
  2735 		pop		hl
  2691 		pop		hl
  2736 		call	p7Dsub_4574
  2692 		call	IncHL_GetCertFieldSize
  2737 		add		hl, bc
  2693 		add		hl, bc
  2738 		inc		ix
  2694 		inc		ix
  2739 		jr		p7Dloc_4D07
  2695 		jr		p7Dloc_4D07
  2740 ; ---------------------------------------------------------------------------
  2696 ; ---------------------------------------------------------------------------
  2741 
  2697 
  2742 p7Dloc_4D1D:
  2698 p7Dloc_4D1D:
  2743 		pop		hl
  2699 		pop		hl
  2744 		ex		de, hl
  2700 		ex		de, hl
  2745 		push	de
  2701 		push	de
  2746 		call	p7Dsub_7700
  2702 		call	GetCertPage
  2747 		ld		de, 810h
  2703 		ld		de, 810h
  2748 		rst		28h
  2704 		rst		28h
  2749 ; ---------------------------------------------------------------------------
  2705 ; ---------------------------------------------------------------------------
  2750 		.dw		8030h
  2706 		.dw		8030h
  2751 ; ---------------------------------------------------------------------------
  2707 ; ---------------------------------------------------------------------------
  2773 		call	p7Dsub_70D1
  2729 		call	p7Dsub_70D1
  2774 		jr		nz, p7Dloc_4D82
  2730 		jr		nz, p7Dloc_4D82
  2775 		ld		de, 700h
  2731 		ld		de, 700h
  2776 		call	p7Dsub_777E
  2732 		call	p7Dsub_777E
  2777 		jr		nz, p7Dloc_4D82
  2733 		jr		nz, p7Dloc_4D82
  2778 		call	p7Dsub_4574
  2734 		call	IncHL_GetCertFieldSize
  2779 		push	hl
  2735 		push	hl
  2780 		call	p7Dsub_4894
  2736 		call	p7Dsub_4894
  2781 		ld		de, 700h
  2737 		ld		de, 700h
  2782 		call	p7Dsub_777E
  2738 		call	p7Dsub_777E
  2783 		jp		nz, p7Dloc_4DCB
  2739 		jp		nz, p7Dloc_4DCB
  2784 		call	p7Dsub_4574
  2740 		call	IncHL_GetCertFieldSize
  2785 		pop		de
  2741 		pop		de
  2786 		ex		de, hl
  2742 		ex		de, hl
  2787 		ld		ix, 0Dh
  2743 		ld		ix, 0Dh
  2788 
  2744 
  2789 ; =============== S U B	R O U T	I N E =======================================
  2745 ; =============== S U B	R O U T	I N E =======================================
  2825 		call	p7Dsub_4894
  2781 		call	p7Dsub_4894
  2826 		ld		de, 700h
  2782 		ld		de, 700h
  2827 		call	p7Dsub_777E
  2783 		call	p7Dsub_777E
  2828 		jp		nz, locret_4DCA
  2784 		jp		nz, locret_4DCA
  2829 		inc		ix
  2785 		inc		ix
  2830 		call	p7Dsub_4574
  2786 		call	IncHL_GetCertFieldSize
  2831 
  2787 
  2832 p7Dloc_4D97:
  2788 p7Dloc_4D97:
  2833 		ld		de, 710h
  2789 		ld		de, 710h
  2834 		call	p7Dsub_705E
  2790 		call	p7Dsub_705E
  2835 		jr		nz, p7Dloc_4DC8
  2791 		jr		nz, p7Dloc_4DC8
  2836 		push	hl
  2792 		push	hl
  2837 		ex		de, hl
  2793 		ex		de, hl
  2838 		call	p7Dsub_4DCD
  2794 		call	p7Dsub_4DCD
  2839 		pop		hl
  2795 		pop		hl
  2840 		call	p7Dsub_4574
  2796 		call	IncHL_GetCertFieldSize
  2841 		or		a
  2797 		or		a
  2842 		adc	hl, bc
  2798 		adc	hl, bc
  2843 		inc		ix
  2799 		inc		ix
  2844 		jr		p7Dloc_4D97
  2800 		jr		p7Dloc_4D97
  2845 ; ---------------------------------------------------------------------------
  2801 ; ---------------------------------------------------------------------------
  2928 p7Dloc_4E01:
  2884 p7Dloc_4E01:
  2929 		ld		a, c
  2885 		ld		a, c
  2930 		or		b
  2886 		or		b
  2931 		ld		a, 0
  2887 		ld		a, 0
  2932 		jr		z, p7Dloc_4E0A
  2888 		jr		z, p7Dloc_4E0A
  2933 		call	p7Dsub_4566
  2889 		call	GetCertByte
  2934 
  2890 
  2935 p7Dloc_4E0A:
  2891 p7Dloc_4E0A:
  2936 		push	af
  2892 		push	af
  2937 		ld		b, 9
  2893 		ld		b, 9
  2938 		sub		b
  2894 		sub		b
  3001 p7Dloc_4E5A:
  2957 p7Dloc_4E5A:
  3002 		ld		a, c
  2958 		ld		a, c
  3003 		or		b
  2959 		or		b
  3004 		ld		a, 0
  2960 		ld		a, 0
  3005 		jr		z, p7Dloc_4E63
  2961 		jr		z, p7Dloc_4E63
  3006 		call	p7Dsub_4566
  2962 		call	GetCertByte
  3007 
  2963 
  3008 p7Dloc_4E63:
  2964 p7Dloc_4E63:
  3009 		push	af
  2965 		push	af
  3010 		ld		b, 9
  2966 		ld		b, 9
  3011 		sub		b
  2967 		sub		b
  3106 ; =============== S U B	R O U T	I N E =======================================
  3062 ; =============== S U B	R O U T	I N E =======================================
  3107 
  3063 
  3108 
  3064 
  3109 p7Dsub_4ECE:
  3065 p7Dsub_4ECE:
  3110 		call	p7Dsub_705E
  3066 		call	p7Dsub_705E
  3111 		call	p7Dsub_4574
  3067 		call	IncHL_GetCertFieldSize
  3112 		ld		de, 838Fh
  3068 		ld		de, 838Fh
  3113 		call	p7Dsub_424C
  3069 		call	p7Dsub_424C
  3114 		push	hl
  3070 		push	hl
  3115 		ld		hl, OP6
  3071 		ld		hl, OP6
  3116 		ld		(hl), 1
  3072 		ld		(hl), 1
  3182 		pop		ix
  3138 		pop		ix
  3183 		jr		nz, p7Dloc_4F5E
  3139 		jr		nz, p7Dloc_4F5E
  3184 		inc		ix
  3140 		inc		ix
  3185 		ld		de, 700h
  3141 		ld		de, 700h
  3186 		call	p7Dsub_777E
  3142 		call	p7Dsub_777E
  3187 		call	p7Dsub_4574
  3143 		call	IncHL_GetCertFieldSize
  3188 
  3144 
  3189 p7Dloc_4F47:
  3145 p7Dloc_4F47:
  3190 		call	p7Dsub_4EBD
  3146 		call	p7Dsub_4EBD
  3191 		inc		ix
  3147 		inc		ix
  3192 		ld		a, 7Eh ; '~'
  3148 		ld		a, 7Eh ; '~'
  3304 		call	p7Dsub_4C73
  3260 		call	p7Dsub_4C73
  3305 		jr		nz, p7Dloc_4FE9
  3261 		jr		nz, p7Dloc_4FE9
  3306 		inc		hl
  3262 		inc		hl
  3307 		inc		de
  3263 		inc		de
  3308 		djnz	p7Dloc_4FBA
  3264 		djnz	p7Dloc_4FBA
  3309 		call	p7Dsub_4565
  3265 		call	IncHL_GetCertByte
  3310 		and		0F0h ; '�'
  3266 		and		0F0h ; '�'
  3311 		cp		10h
  3267 		cp		10h
  3312 		jr		z, p7Dloc_4FEF
  3268 		jr		z, p7Dloc_4FEF
  3313 		cp		0
  3269 		cp		0
  3314 		jr		z, p7Dloc_4FEF
  3270 		jr		z, p7Dloc_4FEF
  3315 		dec		hl
  3271 		dec		hl
  3316 		inc		de
  3272 		inc		de
  3317 		push	de
  3273 		push	de
  3318 		call	p7Dsub_4574
  3274 		call	IncHL_GetCertFieldSize
  3319 		pop		de
  3275 		pop		de
  3320 		ex		de, hl
  3276 		ex		de, hl
  3321 		push	bc
  3277 		push	bc
  3322 		push	de
  3278 		push	de
  3323 		call	p7Dloc_4575
  3279 		call	GetCertFieldSize
  3324 		pop		de
  3280 		pop		de
  3325 		ex		de, hl
  3281 		ex		de, hl
  3326 		ld		a, c
  3282 		ld		a, c
  3327 		pop		bc
  3283 		pop		bc
  3328 		cp		c
  3284 		cp		c
  3533 		push	hl
  3489 		push	hl
  3534 		push	de
  3490 		push	de
  3535 		call	p7Dsub_4894
  3491 		call	p7Dsub_4894
  3536 		ld		de, 320h
  3492 		ld		de, 320h
  3537 		call	p7Dsub_777E
  3493 		call	p7Dsub_777E
  3538 		call	p7Dsub_4574
  3494 		call	IncHL_GetCertFieldSize
  3539 		ld		a, 7Eh ; '~'
  3495 		ld		a, 7Eh ; '~'
  3540 		call	p7Dsub_50C5
  3496 		call	p7Dsub_50C5
  3541 		call	z, p7Dsub_508A
  3497 		call	z, p7Dsub_508A
  3542 		pop		de
  3498 		pop		de
  3543 		pop		hl
  3499 		pop		hl
  3560 		rst		28h
  3516 		rst		28h
  3561 ; ---------------------------------------------------------------------------
  3517 ; ---------------------------------------------------------------------------
  3562 		.dw		8027h
  3518 		.dw		8027h
  3563 ; ---------------------------------------------------------------------------
  3519 ; ---------------------------------------------------------------------------
  3564 		jr		nz, p7Dloc_5119
  3520 		jr		nz, p7Dloc_5119
  3565 		call	p7Dsub_4574
  3521 		call	IncHL_GetCertFieldSize
  3566 		ex		de, hl
  3522 		ex		de, hl
  3567 		pop		hl
  3523 		pop		hl
  3568 		inc		hl
  3524 		inc		hl
  3569 		inc		de
  3525 		inc		de
  3570 		pop		af
  3526 		pop		af
  3578 		ld		c, a
  3534 		ld		c, a
  3579 		pop		af
  3535 		pop		af
  3580 		xor		c
  3536 		xor		c
  3581 		push	af
  3537 		push	af
  3582 		ex		de, hl
  3538 		ex		de, hl
  3583 		call	p7Dsub_4566
  3539 		call	GetCertByte
  3584 		ld		c, a
  3540 		ld		c, a
  3585 		pop		af
  3541 		pop		af
  3586 		sub		c
  3542 		sub		c
  3587 		jr		z, p7Dloc_50F3
  3543 		jr		z, p7Dloc_50F3
  3588 		jr		nc, p7Dloc_511B
  3544 		jr		nc, p7Dloc_511B
  3601 ; ---------------------------------------------------------------------------
  3557 ; ---------------------------------------------------------------------------
  3602 		.dw		8051h
  3558 		.dw		8051h
  3603 ; ---------------------------------------------------------------------------
  3559 ; ---------------------------------------------------------------------------
  3604 		push	af
  3560 		push	af
  3605 		ex		de, hl
  3561 		ex		de, hl
  3606 		call	p7Dsub_4566
  3562 		call	GetCertByte
  3607 		ld		c, a
  3563 		ld		c, a
  3608 		pop		af
  3564 		pop		af
  3609 		sub		c
  3565 		sub		c
  3610 		jr		z, p7Dloc_510A
  3566 		jr		z, p7Dloc_510A
  3611 		jr		nc, p7Dloc_511A
  3567 		jr		nc, p7Dloc_511A
  3661 		inc		ix
  3617 		inc		ix
  3662 		push	ix
  3618 		push	ix
  3663 		call	p7Dsub_4894
  3619 		call	p7Dsub_4894
  3664 		ld		de, 700h
  3620 		ld		de, 700h
  3665 		call	p7Dsub_777E
  3621 		call	p7Dsub_777E
  3666 		call	p7Dsub_4574
  3622 		call	IncHL_GetCertFieldSize
  3667 
  3623 
  3668 p7Dloc_5141:
  3624 p7Dloc_5141:
  3669 		ld		de, 710h
  3625 		ld		de, 710h
  3670 		call	p7Dsub_705E
  3626 		call	p7Dsub_705E
  3671 		jr		nz, p7Dloc_5156
  3627 		jr		nz, p7Dloc_5156
  3672 		ex		de, hl
  3628 		ex		de, hl
  3673 		call	p7Dsub_4DCD
  3629 		call	p7Dsub_4DCD
  3674 		ex		de, hl
  3630 		ex		de, hl
  3675 		inc		ix
  3631 		inc		ix
  3676 		call	p7Dsub_4574
  3632 		call	IncHL_GetCertFieldSize
  3677 		add		hl, bc
  3633 		add		hl, bc
  3678 		jr		p7Dloc_5141
  3634 		jr		p7Dloc_5141
  3679 ; ---------------------------------------------------------------------------
  3635 ; ---------------------------------------------------------------------------
  3680 
  3636 
  3681 p7Dloc_5156:
  3637 p7Dloc_5156:
  3749 		push	bc
  3705 		push	bc
  3750 		push	hl
  3706 		push	hl
  3751 		call	p7Dsub_51DB
  3707 		call	p7Dsub_51DB
  3752 		call	p7Dsub_7BCC
  3708 		call	p7Dsub_7BCC
  3753 		ld		c, a
  3709 		ld		c, a
  3754 		call	p7Dsub_4566
  3710 		call	GetCertByte
  3755 		push	af
  3711 		push	af
  3756 		or		c
  3712 		or		c
  3757 		ld		b, a
  3713 		ld		b, a
  3758 		pop		af
  3714 		pop		af
  3759 		and		c
  3715 		and		c
  3764 		jr		p7Dloc_51BF
  3720 		jr		p7Dloc_51BF
  3765 ; ---------------------------------------------------------------------------
  3721 ; ---------------------------------------------------------------------------
  3766 
  3722 
  3767 p7Dloc_51BB:
  3723 p7Dloc_51BB:
  3768 		ex		de, hl
  3724 		ex		de, hl
  3769 		call	p7Dsub_456D
  3725 		call	WriteCertByte
  3770 
  3726 
  3771 p7Dloc_51BF:
  3727 p7Dloc_51BF:
  3772 		pop		hl
  3728 		pop		hl
  3773 		pop		bc
  3729 		pop		bc
  3774 		pop		af
  3730 		pop		af
  3785 		push	hl
  3741 		push	hl
  3786 		call	p7Dsub_51DB
  3742 		call	p7Dsub_51DB
  3787 		call	p7Dsub_7BCC
  3743 		call	p7Dsub_7BCC
  3788 		cpl
  3744 		cpl
  3789 		ld		c, a
  3745 		ld		c, a
  3790 		call	p7Dsub_4566
  3746 		call	GetCertByte
  3791 		and		c
  3747 		and		c
  3792 		ld		b, a
  3748 		ld		b, a
  3793 		ex		de, hl
  3749 		ex		de, hl
  3794 		call	p7Dsub_456D
  3750 		call	WriteCertByte
  3795 		pop		hl
  3751 		pop		hl
  3796 		pop		bc
  3752 		pop		bc
  3797 		pop		af
  3753 		pop		af
  3798 		ret
  3754 		ret
  3799 ; End of function p7Dsub_51C3
  3755 ; End of function p7Dsub_51C3
  4055 ; ---------------------------------------------------------------------------
  4011 ; ---------------------------------------------------------------------------
  4056 		.dw		8051h
  4012 		.dw		8051h
  4057 ; ---------------------------------------------------------------------------
  4013 ; ---------------------------------------------------------------------------
  4058 		ld		b, a
  4014 		ld		b, a
  4059 		push	hl
  4015 		push	hl
  4060 		call	p7Dsub_456D
  4016 		call	WriteCertByte
  4061 		pop		hl
  4017 		pop		hl
  4062 		pop		bc
  4018 		pop		bc
  4063 		dec		bc
  4019 		dec		bc
  4064 		ld		a, b
  4020 		ld		a, b
  4065 		or		c
  4021 		or		c
  4228 		pop		bc
  4184 		pop		bc
  4229 		sla	c
  4185 		sla	c
  4230 		or		a
  4186 		or		a
  4231 		adc	hl, bc
  4187 		adc	hl, bc
  4232 		push	hl
  4188 		push	hl
  4233 		call	p7Dsub_4566
  4189 		call	GetCertByte
  4234 		cp		80h ; '�'
  4190 		cp		80h ; '�'
  4235 		jr		z, p7Dloc_53AC
  4191 		jr		z, p7Dloc_53AC
  4236 		push	af
  4192 		push	af
  4237 		call	p7Dsub_4565
  4193 		call	IncHL_GetCertByte
  4238 		cp		0
  4194 		cp		0
  4239 		pop		bc
  4195 		pop		bc
  4240 		jr		z, p7Dloc_5399
  4196 		jr		z, p7Dloc_5399
  4241 		srl	a
  4197 		srl	a
  4242 		jr		p7Dloc_539B
  4198 		jr		p7Dloc_539B
  4247 
  4203 
  4248 p7Dloc_539B:
  4204 p7Dloc_539B:
  4249 		pop		de
  4205 		pop		de
  4250 		ld		c, a
  4206 		ld		c, a
  4251 		push	bc
  4207 		push	bc
  4252 		call	p7Dsub_456D
  4208 		call	WriteCertByte
  4253 		pop		bc
  4209 		pop		bc
  4254 		ld		b, c
  4210 		ld		b, c
  4255 		call	p7Dsub_456D
  4211 		call	WriteCertByte
  4256 		pop		bc
  4212 		pop		bc
  4257 		pop		de
  4213 		pop		de
  4258 		pop		hl
  4214 		pop		hl
  4259 		pop		ix
  4215 		pop		ix
  4260 		ret
  4216 		ret
  4374 		pop		bc
  4330 		pop		bc
  4375 		ld		a, c
  4331 		ld		a, c
  4376 		and		7
  4332 		and		7
  4377 		call	p7Dsub_7BCC
  4333 		call	p7Dsub_7BCC
  4378 		ld		c, a
  4334 		ld		c, a
  4379 		call	p7Dsub_4566
  4335 		call	GetCertByte
  4380 		and		c
  4336 		and		c
  4381 		pop		ix
  4337 		pop		ix
  4382 		pop		bc
  4338 		pop		bc
  4383 		pop		hl
  4339 		pop		hl
  4384 		pop		de
  4340 		pop		de
  4540 		call	p7Dsub_70D1
  4496 		call	p7Dsub_70D1
  4541 		jr		nz, p7Dloc_551F
  4497 		jr		nz, p7Dloc_551F
  4542 		ld		de, 500h
  4498 		ld		de, 500h
  4543 		call	p7Dsub_777E
  4499 		call	p7Dsub_777E
  4544 		jr		nz, p7Dloc_551F
  4500 		jr		nz, p7Dloc_551F
  4545 		call	p7Dsub_4574
  4501 		call	IncHL_GetCertFieldSize
  4546 		ld		a, 7Eh ; '~'
  4502 		ld		a, 7Eh ; '~'
  4547 		pop		de
  4503 		pop		de
  4548 		rst		28h
  4504 		rst		28h
  4549 ; ---------------------------------------------------------------------------
  4505 ; ---------------------------------------------------------------------------
  4550 		.dw		8030h
  4506 		.dw		8030h
  4816 		rst		28h
  4772 		rst		28h
  4817 ; ---------------------------------------------------------------------------
  4773 ; ---------------------------------------------------------------------------
  4818 		.dw		8027h
  4774 		.dw		8027h
  4819 ; ---------------------------------------------------------------------------
  4775 ; ---------------------------------------------------------------------------
  4820 		jr		nz, p7Dloc_5640
  4776 		jr		nz, p7Dloc_5640
  4821 		call	p7Dsub_4574
  4777 		call	IncHL_GetCertFieldSize
  4822 		ld		a, 7Eh ; '~'
  4778 		ld		a, 7Eh ; '~'
  4823 		ld		de, 849Eh
  4779 		ld		de, 849Eh
  4824 		rst		28h
  4780 		rst		28h
  4825 ; ---------------------------------------------------------------------------
  4781 ; ---------------------------------------------------------------------------
  4826 		.dw		8054h
  4782 		.dw		8054h
  5193 		ld		(appInfo), hl
  5149 		ld		(appInfo), hl
  5194 		push	hl
  5150 		push	hl
  5195 		pop		bc
  5151 		pop		bc
  5196 		pop		hl
  5152 		pop		hl
  5197 		push	hl
  5153 		push	hl
  5198 		call	p7Dsub_4565
  5154 		call	IncHL_GetCertByte
  5199 		dec		hl
  5155 		dec		hl
  5200 		cp		0FFh
  5156 		cp		0FFh
  5201 		jp		z, p7Dloc_5972
  5157 		jp		z, p7Dloc_5972
  5202 		cp		0
  5158 		cp		0
  5203 		jp		z, JErrorNo
  5159 		jp		z, JErrorNo
  5377 		ld		de, 0A20h
  5333 		ld		de, 0A20h
  5378 		rst		28h
  5334 		rst		28h
  5379 ; ---------------------------------------------------------------------------
  5335 ; ---------------------------------------------------------------------------
  5380 		.dw		8027h
  5336 		.dw		8027h
  5381 ; ---------------------------------------------------------------------------
  5337 ; ---------------------------------------------------------------------------
  5382 		call	p7Dsub_4574
  5338 		call	IncHL_GetCertFieldSize
  5383 		inc		bc
  5339 		inc		bc
  5384 		dec		hl
  5340 		dec		hl
  5385 		ld		de, ramStart
  5341 		ld		de, ramStart
  5386 		rst		28h
  5342 		rst		28h
  5387 ; ---------------------------------------------------------------------------
  5343 ; ---------------------------------------------------------------------------
  5417 		or		a
  5373 		or		a
  5418 		adc	hl, bc
  5374 		adc	hl, bc
  5419 		ld		(unk_839F), hl
  5375 		ld		(unk_839F), hl
  5420 		call	p7Dsub_597A
  5376 		call	p7Dsub_597A
  5421 		ld		(OP2), a
  5377 		ld		(OP2), a
  5422 		call	p7Dsub_7700
  5378 		call	GetCertPage
  5423 		push	de
  5379 		push	de
  5424 		rst		28h
  5380 		rst		28h
  5425 ; ---------------------------------------------------------------------------
  5381 ; ---------------------------------------------------------------------------
  5426 		.dw		8057h
  5382 		.dw		8057h
  5427 ; ---------------------------------------------------------------------------
  5383 ; ---------------------------------------------------------------------------
  5820 		rst		28h
  5776 		rst		28h
  5821 ; ---------------------------------------------------------------------------
  5777 ; ---------------------------------------------------------------------------
  5822 		.dw		8027h
  5778 		.dw		8027h
  5823 ; ---------------------------------------------------------------------------
  5779 ; ---------------------------------------------------------------------------
  5824 		jr		nz, p7Dloc_5B49
  5780 		jr		nz, p7Dloc_5B49
  5825 		call	p7Dsub_4574
  5781 		call	IncHL_GetCertFieldSize
  5826 		ld		de, OP2
  5782 		ld		de, OP2
  5827 		ld		b, c
  5783 		ld		b, c
  5828 		ld		a, 7Eh ; '~'
  5784 		ld		a, 7Eh ; '~'
  5829 		call	p7Dsub_761F
  5785 		call	p7Dsub_761F
  5830 		pop		af
  5786 		pop		af
  5958 		push	de
  5914 		push	de
  5959 		push	bc
  5915 		push	bc
  5960 		push	hl
  5916 		push	hl
  5961 		ld		(appSearchPage), a
  5917 		ld		(appSearchPage), a
  5962 		call	p7Dsub_4894
  5918 		call	p7Dsub_4894
  5963 		call	p7Dsub_457C
  5919 		call	EraseCertFlash
  5964 		ld		a, (appSearchPage)
  5920 		ld		a, (appSearchPage)
  5965 		pop		hl
  5921 		pop		hl
  5966 		call	p7Dloc_529F
  5922 		call	p7Dloc_529F
  5967 		pop		bc
  5923 		pop		bc
  5968 		pop		de
  5924 		pop		de
  6003 ; ---------------------------------------------------------------------------
  5959 ; ---------------------------------------------------------------------------
  6004 		jr		p7Dloc_5BFD
  5960 		jr		p7Dloc_5BFD
  6005 ; ---------------------------------------------------------------------------
  5961 ; ---------------------------------------------------------------------------
  6006 
  5962 
  6007 p7Dloc_5C0A:
  5963 p7Dloc_5C0A:
  6008 		call	p7Dsub_4574
  5964 		call	IncHL_GetCertFieldSize
  6009 		ld		de, OP2
  5965 		ld		de, OP2
  6010 		rst		28h
  5966 		rst		28h
  6011 ; ---------------------------------------------------------------------------
  5967 ; ---------------------------------------------------------------------------
  6012 		.dw		8051h
  5968 		.dw		8051h
  6013 ; ---------------------------------------------------------------------------
  5969 ; ---------------------------------------------------------------------------
  6014 		ld		(de), a
  5970 		ld		(de), a
  6015 		inc		de
  5971 		inc		de
  6016 		call	p7Dsub_4565
  5972 		call	IncHL_GetCertByte
  6017 		ld		(de), a
  5973 		ld		(de), a
  6018 		ld		hl, OP2
  5974 		ld		hl, OP2
  6019 		pop		bc
  5975 		pop		bc
  6020 		pop		de
  5976 		pop		de
  6021 		call	relockFlashBack
  5977 		call	relockFlashBack
  6705 		sla	c
  6661 		sla	c
  6706 		add		hl, bc
  6662 		add		hl, bc
  6707 		ld		b, e
  6663 		ld		b, e
  6708 		ex		de, hl
  6664 		ex		de, hl
  6709 		push	hl
  6665 		push	hl
  6710 		call	p7Dsub_456D
  6666 		call	WriteCertByte
  6711 		pop		hl
  6667 		pop		hl
  6712 		ex		de, hl
  6668 		ex		de, hl
  6713 		ld		b, d
  6669 		ld		b, d
  6714 		ex		de, hl
  6670 		ex		de, hl
  6715 		call	p7Dsub_456D
  6671 		call	WriteCertByte
  6716 		pop		af
  6672 		pop		af
  6717 		ret
  6673 		ret
  6718 ; End of function p7Dsub_5E90
  6674 ; End of function p7Dsub_5E90
  6719 
  6675 
  6720 
  6676 
  6786 		ld		bc, 2
  6742 		ld		bc, 2
  6787 		ex		de, hl
  6743 		ex		de, hl
  6788 
  6744 
  6789 p7Dloc_5F4B:
  6745 p7Dloc_5F4B:
  6790 		push	bc
  6746 		push	bc
  6791 		call	p7Dsub_4566
  6747 		call	GetCertByte
  6792 		ld		b, a
  6748 		ld		b, a
  6793 		push	hl
  6749 		push	hl
  6794 		call	p7Dsub_456D
  6750 		call	WriteCertByte
  6795 		pop		hl
  6751 		pop		hl
  6796 		call	p7Dsub_4565
  6752 		call	IncHL_GetCertByte
  6797 		ld		b, a
  6753 		ld		b, a
  6798 		push	hl
  6754 		push	hl
  6799 		call	p7Dsub_456D
  6755 		call	WriteCertByte
  6800 		pop		hl
  6756 		pop		hl
  6801 		push	de
  6757 		push	de
  6802 		push	hl
  6758 		push	hl
  6803 		call	p7Dloc_4575
  6759 		call	GetCertFieldSize
  6804 		pop		de
  6760 		pop		de
  6805 		push	bc
  6761 		push	bc
  6806 		push	hl
  6762 		push	hl
  6807 		sbc		hl, de
  6763 		sbc		hl, de
  6808 		ld		b, l
  6764 		ld		b, l
  7781 p7Dloc_646B:
  7737 p7Dloc_646B:
  7782 		pop		de
  7738 		pop		de
  7783 		pop		bc
  7739 		pop		bc
  7784 		pop		hl
  7740 		pop		hl
  7785 		ret
  7741 		ret
  7786 ; End of function p7Dsub_6428
       
  7787 
       
  7788 ; ---------------------------------------------------------------------------
       
  7789 
  7742 
  7790 Page7D_3EE5:
  7743 Page7D_3EE5:
  7791 		push	hl
  7744 		push	hl
  7792 		push	de
  7745 		push	de
  7793 		push	bc
  7746 		push	bc
  7803 		out		(14h), a
  7756 		out		(14h), a
  7804 		di
  7757 		di
  7805 		call	checkForFlashTrickery
  7758 		call	checkForFlashTrickery
  7806 		pop		af
  7759 		pop		af
  7807 		ld		hl, 4000h
  7760 		ld		hl, 4000h
  7808 		call	p7Dsub_4566
  7761 		call	GetCertByte
  7809 		cp		0
  7762 		cp		0
  7810 		jr		z, p7Dloc_64AE
  7763 		jr		z, {++}
  7811 		ld		hl, 6000h
  7764 		ld		hl, 6000h
  7812 		call	p7Dsub_4566
  7765 		call	GetCertByte
  7813 		cp		0
  7766 		cp		0
  7814 		jr		z, p7Dloc_64AE
  7767 		jr		z, {++}
  7815 		cp		8Fh ; '�'
  7768 #ifndef DEVIATE_FROM_ORIGINAL_FILE
  7816 		jr		z, p7Dloc_64A6
  7769 ;Uh...what? None of this crap is necessary.
       
  7770 		cp		8Fh
       
  7771 		jr		z, {+}
  7817 		ld		hl, 4000h
  7772 		ld		hl, 4000h
  7818 		call	p7Dsub_4566
  7773 		call	GetCertByte
  7819 		cp		8Fh ; '�'
  7774 		cp		8Fh
  7820 		jr		z, p7Dloc_64A6
  7775 		jr		z, {+}
  7821 
  7776 #endif
  7822 p7Dloc_64A6:
  7777 +:		ld		b, 0
       
  7778 		ex		de, hl
       
  7779 		call	WriteCertByte
       
  7780 		jr		_mainLoop
       
  7781 ++:		ld		a, h
       
  7782 		xor		20h
       
  7783 		ld		h, a
       
  7784 		call	GetCertByte
       
  7785 		cp		8Fh
       
  7786 		jr		z, _markOtherValid
       
  7787 		cp		0
       
  7788 		jp		z, _foundValid
       
  7789 		jr		_mainLoop
       
  7790 _markOtherValid:
       
  7791 		push	hl
       
  7792 		ld		a, h
       
  7793 		xor		20h
       
  7794 		ld		h, a
       
  7795 		call	EraseCertFlash
       
  7796 		pop		de
  7823 		ld		b, 0
  7797 		ld		b, 0
  7824 		ex		de, hl
  7798 		call	WriteCertByte
  7825 		call	p7Dsub_456D
  7799 _mainLoop:
  7826 		jr		p7Dloc_64CE
       
  7827 ; ---------------------------------------------------------------------------
       
  7828 
       
  7829 p7Dloc_64AE:
       
  7830 		ld		a, h
       
  7831 		xor		20h ; ' '
       
  7832 		ld		h, a
       
  7833 		call	p7Dsub_4566
       
  7834 		cp		8Fh ; '�'
       
  7835 		jr		z, p7Dloc_64C0
       
  7836 		cp		0
       
  7837 		jp		z, p7Dloc_64E1
       
  7838 		jr		p7Dloc_64CE
       
  7839 ; ---------------------------------------------------------------------------
       
  7840 
       
  7841 p7Dloc_64C0:
       
  7842 		push	hl
       
  7843 		ld		a, h
       
  7844 		xor		20h ; ' '
       
  7845 		ld		h, a
       
  7846 		call	p7Dsub_457C
       
  7847 		pop		de
       
  7848 		ld		b, 0
       
  7849 		call	p7Dsub_456D
       
  7850 
       
  7851 p7Dloc_64CE:
       
  7852 		pop		af
  7800 		pop		af
  7853 		cp		0Fh
  7801 		cp		0Fh
  7854 		jr		nz, p7Dloc_64D8
  7802 		jr		nz, {+}
  7855 		call	Page0Call_2B8F
  7803 		call	Page0Call_2B8F
  7856 		jr		p7Dloc_64DB
  7804 		jr		{++}
  7857 ; ---------------------------------------------------------------------------
  7805 +:		call	Page0Call_2B89
  7858 
  7806 ++:		pop		bc
  7859 p7Dloc_64D8:
       
  7860 		call	Page0Call_2B89
       
  7861 
       
  7862 p7Dloc_64DB:
       
  7863 		pop		bc
       
  7864 		pop		de
  7807 		pop		de
  7865 		pop		hl
  7808 		pop		hl
  7866 		jp		relockFlashBack
  7809 		jp		relockFlashBack
  7867 ; ---------------------------------------------------------------------------
  7810 _foundValid:
  7868 
       
  7869 p7Dloc_64E1:
       
  7870 		ld		hl, 4001h
  7811 		ld		hl, 4001h
  7871 		ld		de, 6001h
  7812 		ld		de, 6001h
  7872 
  7813 -:		call	GetCertByte
  7873 p7Dloc_64E7:
       
  7874 		call	p7Dsub_4566
       
  7875 		cp		0
  7814 		cp		0
  7876 		jr		z, p7Dloc_64F2
  7815 		jr		z, {+}
  7877 		cp		0FFh
  7816 		cp		0FFh
  7878 		jr		nz, p7Dloc_64F6
  7817 		jr		nz, _foundField
  7879 
  7818 +:		inc		hl
  7880 p7Dloc_64F2:
       
  7881 		inc		hl
       
  7882 		ex		de, hl
  7819 		ex		de, hl
  7883 		jr		p7Dloc_64E7
  7820 		jr		{-}
  7884 ; ---------------------------------------------------------------------------
  7821 _foundField:
  7885 
       
  7886 p7Dloc_64F6:
       
  7887 		ld		a, h
  7822 		ld		a, h
  7888 		xor		20h ; ' '
  7823 		xor		20h
  7889 		and		0F0h ; '�'
  7824 		and		0F0h
  7890 		ld		h, a
  7825 		ld		h, a
  7891 		xor		a
  7826 		xor		a
  7892 		ld		l, a
  7827 		ld		l, a
  7893 		call	p7Dsub_457C
  7828 		call	EraseCertFlash
  7894 		jr		p7Dloc_64CE
  7829 		jr		_mainLoop
  7895 
       
  7896 ; =============== S U B	R O U T	I N E =======================================
       
  7897 
       
  7898 
  7830 
  7899 p7Dsub_6503:
  7831 p7Dsub_6503:
  7900 		ld		a, d
  7832 		ld		a, d
  7901 		or		a
  7833 		or		a
  7902 		jr		nz, p7Dloc_650A
  7834 		jr		nz, p7Dloc_650A
  7903 		call	p7Dsub_651E
  7835 		call	p7Dsub_651E
  7904 
       
  7905 p7Dloc_650A:
  7836 p7Dloc_650A:
  7906 		xor		a
  7837 		xor		a
  7907 		ld		(hl), a
  7838 		ld		(hl), a
  7908 		ret
  7839 		ret
  7909 ; End of function p7Dsub_6503
       
  7910 
       
  7911 
       
  7912 ; =============== S U B	R O U T	I N E =======================================
       
  7913 
       
  7914 
  7840 
  7915 p7Dsub_650D:
  7841 p7Dsub_650D:
  7916 		call	Page0Call_32E5
  7842 		call	Page0Call_32E5
  7917 		call	p7Dsub_6523
  7843 		call	p7Dsub_6523
  7918 		jr		z, p7Dloc_6519
  7844 		jr		z, p7Dloc_6519
  7922 
  7848 
  7923 p7Dloc_6519:
  7849 p7Dloc_6519:
  7924 		ld		a, b
  7850 		ld		a, b
  7925 		call	p7Dsub_6523
  7851 		call	p7Dsub_6523
  7926 		ret		z
  7852 		ret		z
  7927 ; End of function p7Dsub_650D
       
  7928 
       
  7929 
       
  7930 ; =============== S U B	R O U T	I N E =======================================
       
  7931 
       
  7932 
  7853 
  7933 p7Dsub_651E:
  7854 p7Dsub_651E:
  7934 		add		a, 30h ; '0'
  7855 		add		a, 30h ; '0'
  7935 		ld		(hl), a
  7856 		ld		(hl), a
  7936 		inc		hl
  7857 		inc		hl
  7937 		ret
  7858 		ret
  7938 ; End of function p7Dsub_651E
       
  7939 
       
  7940 
       
  7941 ; =============== S U B	R O U T	I N E =======================================
       
  7942 
       
  7943 
  7859 
  7944 p7Dsub_6523:
  7860 p7Dsub_6523:
  7945 		or		a
  7861 		or		a
  7946 		jr		z, p7Dloc_6529
  7862 		jr		z, p7Dloc_6529
  7947 		ld		d, 1
  7863 		ld		d, 1
 10738 		push	de
 10654 		push	de
 10739 		call	p7Dsub_7CB2
 10655 		call	p7Dsub_7CB2
 10740 		jr		nz, p7Dloc_74F0
 10656 		jr		nz, p7Dloc_74F0
 10741 		ld		a, (appSearchPage+1)
 10657 		ld		a, (appSearchPage+1)
 10742 		call	p7Dsub_7CCF
 10658 		call	p7Dsub_7CCF
 10743 		call	p7Dsub_4566
 10659 		call	GetCertByte
 10744 		cp		0FEh ; '�'
 10660 		cp		0FEh ; '�'
 10745 		jr		nz, p7Dloc_74ED
 10661 		jr		nz, p7Dloc_74ED
 10746 		call	p7Dsub_4565
 10662 		call	IncHL_GetCertByte
 10747 		cp		0BFh ; '�'
 10663 		cp		0BFh ; '�'
 10748 		jr		nz, p7Dloc_74ED
 10664 		jr		nz, p7Dloc_74ED
 10749 		call	p7Dsub_4565
 10665 		call	IncHL_GetCertByte
 10750 		ld		b, a
 10666 		ld		b, a
 10751 		ld		a, (appSearchPage+1)
 10667 		ld		a, (appSearchPage+1)
 10752 		cp		b
 10668 		cp		b
 10753 		jr		z, p7Dloc_74F0
 10669 		jr		z, p7Dloc_74F0
 10754 		jr		nc, p7Dloc_74ED
 10670 		jr		nc, p7Dloc_74ED
 10755 		call	p7Dsub_4565
 10671 		call	IncHL_GetCertByte
 10756 		ld		b, a
 10672 		ld		b, a
 10757 		ld		a, (appSearchPage+1)
 10673 		ld		a, (appSearchPage+1)
 10758 		inc		b
 10674 		inc		b
 10759 		cp		b
 10675 		cp		b
 10760 		jr		nc, p7Dloc_74F0
 10676 		jr		nc, p7Dloc_74F0
 10812 		push	hl
 10728 		push	hl
 10813 		push	de
 10729 		push	de
 10814 		ld		b, 4
 10730 		ld		b, 4
 10815 
 10731 
 10816 p7Dloc_753D:
 10732 p7Dloc_753D:
 10817 		call	p7Dsub_4566
 10733 		call	GetCertByte
 10818 		cp		0FFh
 10734 		cp		0FFh
 10819 		jr		nz, p7Dloc_7549
 10735 		jr		nz, p7Dloc_7549
 10820 		inc		hl
 10736 		inc		hl
 10821 		djnz	p7Dloc_753D
 10737 		djnz	p7Dloc_753D
 10822 		jr		p7Dloc_754C
 10738 		jr		p7Dloc_754C
 10833 		pop		de
 10749 		pop		de
 10834 		sub		d
 10750 		sub		d
 10835 		ld		(OP1+4), a
 10751 		ld		(OP1+4), a
 10836 		ld		bc, 4
 10752 		ld		bc, 4
 10837 		ld		hl, 8479h
 10753 		ld		hl, 8479h
 10838 		call	p7Dsub_7700
 10754 		call	GetCertPage
 10839 		pop		de
 10755 		pop		de
 10840 		rst		28h
 10756 		rst		28h
 10841 ; ---------------------------------------------------------------------------
 10757 ; ---------------------------------------------------------------------------
 10842 		.dw		8087h
 10758 		.dw		8087h
 10843 ; ---------------------------------------------------------------------------
 10759 ; ---------------------------------------------------------------------------
 11049 
 10965 
 11050 p7Dsub_7634:
 10966 p7Dsub_7634:
 11051 		call	p7Dsub_4894
 10967 		call	p7Dsub_4894
 11052 		ld		de, 600h
 10968 		ld		de, 600h
 11053 		call	p7Dsub_777E
 10969 		call	p7Dsub_777E
 11054 		call	p7Dsub_4574
 10970 		call	IncHL_GetCertFieldSize
 11055 		ld		a, 7Eh ; '~'
 10971 		ld		a, 7Eh ; '~'
 11056 		ret
 10972 		ret
 11057 ; End of function p7Dsub_7634
 10973 ; End of function p7Dsub_7634
 11058 
 10974 
 11059 
 10975 
 11215 		pop		af
 11131 		pop		af
 11216 		out		(6), a
 11132 		out		(6), a
 11217 		or		a
 11133 		or		a
 11218 		ret
 11134 		ret
 11219 
 11135 
 11220 ; =============== S U B	R O U T	I N E =======================================
 11136 GetCertPage:
 11221 
       
 11222 
       
 11223 p7Dsub_7700:
       
 11224 		in		a, (2)
 11137 		in		a, (2)
 11225 		and		80h ; '�'
 11138 		and		80h
 11226 		ld		a, 1Eh
 11139 		ld		a, 1Eh
 11227 		ret		z
 11140 		ret		z
 11228 		ld		a, 7Eh ; '~'
 11141 		ld		a, 7Eh
 11229 		ret
 11142 		ret
 11230 ; End of function p7Dsub_7700
       
 11231 
       
 11232 ; ---------------------------------------------------------------------------
       
 11233 
 11143 
 11234 Page7D_2C25:
 11144 Page7D_2C25:
 11235 		push	af
 11145 		push	af
 11236 		inc		a
 11146 		inc		a
 11237 		ld		(appSearchPage), a
 11147 		ld		(appSearchPage), a
 11303 
 11213 
 11304 ; =============== S U B	R O U T	I N E =======================================
 11214 ; =============== S U B	R O U T	I N E =======================================
 11305 
 11215 
 11306 
 11216 
 11307 p7Dsub_777E:
 11217 p7Dsub_777E:
 11308 		call	p7Dsub_7700
 11218 		call	GetCertPage
 11309 		rst		28h
 11219 		rst		28h
 11310 ; ---------------------------------------------------------------------------
 11220 ; ---------------------------------------------------------------------------
 11311 		.dw		805Dh
 11221 		.dw		805Dh
 11312 ; ---------------------------------------------------------------------------
 11222 ; ---------------------------------------------------------------------------
 11313 		ret
 11223 		ret
 12461 		call	p7Dsub_7CCF
 12371 		call	p7Dsub_7CCF
 12462 		push	hl
 12372 		push	hl
 12463 		ld		b, 8
 12373 		ld		b, 8
 12464 
 12374 
 12465 p7Dloc_7CF5:
 12375 p7Dloc_7CF5:
 12466 		call	p7Dsub_4566
 12376 		call	GetCertByte
 12467 		cp		0FFh
 12377 		cp		0FFh
 12468 		jr		nz, p7Dloc_7D01
 12378 		jr		nz, p7Dloc_7D01
 12469 		inc		hl
 12379 		inc		hl
 12470 		djnz	p7Dloc_7CF5
 12380 		djnz	p7Dloc_7CF5
 12471 		jr		p7Dloc_7D04
 12381 		jr		p7Dloc_7D04
 12516 p7Dloc_7D44:
 12426 p7Dloc_7D44:
 12517 		ld		(OP1+6), a
 12427 		ld		(OP1+6), a
 12518 		ld		(OP1+7), hl
 12428 		ld		(OP1+7), hl
 12519 		ld		bc, 8
 12429 		ld		bc, 8
 12520 		ld		hl, 8479h
 12430 		ld		hl, 8479h
 12521 		call	p7Dsub_7700
 12431 		call	GetCertPage
 12522 		pop		de
 12432 		pop		de
 12523 		rst		28h
 12433 		rst		28h
 12524 ; ---------------------------------------------------------------------------
 12434 ; ---------------------------------------------------------------------------
 12525 		.dw		8087h
 12435 		.dw		8087h
 12526 ; ---------------------------------------------------------------------------
 12436 ; ---------------------------------------------------------------------------
 12572 		call	p7Dsub_7C96
 12482 		call	p7Dsub_7C96
 12573 		jr		nc, p7Dloc_7E0D
 12483 		jr		nc, p7Dloc_7E0D
 12574 		cp		8
 12484 		cp		8
 12575 		jr		c, p7Dloc_7E0D
 12485 		jr		c, p7Dloc_7E0D
 12576 		call	p7Dsub_7CCF
 12486 		call	p7Dsub_7CCF
 12577 		call	p7Dsub_4566
 12487 		call	GetCertByte
 12578 		cp		0FEh ; '�'
 12488 		cp		0FEh ; '�'
 12579 		jr		nz, p7Dloc_7E0D
 12489 		jr		nz, p7Dloc_7E0D
 12580 		call	p7Dsub_4565
 12490 		call	IncHL_GetCertByte
 12581 		cp		7Fh ; ''
 12491 		cp		7Fh ; ''
 12582 		jr		nz, p7Dloc_7E0D
 12492 		jr		nz, p7Dloc_7E0D
 12583 		call	p7Dsub_4565
 12493 		call	IncHL_GetCertByte
 12584 		ld		b, a
 12494 		ld		b, a
 12585 		ld		a, (arcInfo)
 12495 		ld		a, (arcInfo)
 12586 		cp		b
 12496 		cp		b
 12587 		jr		c, p7Dloc_7E0D
 12497 		jr		c, p7Dloc_7E0D
 12588 		jr		nz, p7Dloc_7DD3
 12498 		jr		nz, p7Dloc_7DD3
 12611 		inc		a
 12521 		inc		a
 12612 
 12522 
 12613 p7Dloc_7DE6:
 12523 p7Dloc_7DE6:
 12614 		ld		b, a
 12524 		ld		b, a
 12615 		ex		de, hl
 12525 		ex		de, hl
 12616 		call	p7Dsub_4565
 12526 		call	IncHL_GetCertByte
 12617 		cp		b
 12527 		cp		b
 12618 		jr		c, p7Dloc_7E0D
 12528 		jr		c, p7Dloc_7E0D
 12619 		jr		nz, p7Dloc_7DFC
 12529 		jr		nz, p7Dloc_7DFC
 12620 		push	de
 12530 		push	de
 12621 		call	p7Dsub_455C
 12531 		call	p7Dsub_455C