Prev: 7F78 Up: Map Next: 82B3
8251: Routine at 8251
8251 LD HL,$8271
8254 PUSH DE
8255 LD D,$0D
8257 LD A,(HL)
8258 INC HL
8259 CP C
825A JR NZ,$8260
825C LD A,(HL)
825D CP B
825E JR Z,$8267
8260 INC HL
8261 DEC D
8262 JR NZ,$8257
8264 JP $75A0
8267 LD DE,$0019
826A ADD HL,DE
826B LD E,(HL)
826C INC HL
826D LD D,(HL)
826E EX DE,HL
826F POP DE
8270 JP (HL)
8271 NOP
8272 NOP
8273 LD C,(HL)
8274 NOP
8275 LD B,L
8276 LD (BC),A
8277 SBC A,(HL)
8278 INC BC
8279 XOR L
827A INC B
827B EI
827C INC B
827D LD A,C
827E INC B
827F XOR $03
8281 ADD A,B
8282 DEC B
8283 JR $828A
8285 LD E,$03
8287 ADC A,D
8288 DEC B
8289 RET C
828A INC B
828B DEC D
828C ADD A,E
828D JP NC,$BA82
8290 ADD A,D
8291 JP PO,$B482
8294 LD (HL),L
8295 AND L
8296 ADD A,D
8297 XOR A
8298 ADD A,D
8299 LD D,C
829A ADD A,H
829B CALL Z,$9184
829E ADD A,E
829F AND B
82A0 ADD A,E
82A1 RST $28
82A2 ADD A,E
82A3 LD A,($DB84)
82A6 EI
82A7 BIT 6,A
82A9 JR NZ,$82B3
82AB LD A,$01
82AD JR $82B0
82AF XOR A
82B0 LD ($B6F2),A
Prev: 7F78 Up: Map Next: 82B3