Prev: 8251 Up: Map Next: 83A0
82B3: Routine at 82B3
Used by the routines at 8251, DisplayLocHlpMsg, GameOver, LoadGame and SaveGame.
82B3 LD A,($B6DE)
82B6 LD D,A
82B7 JP $75B4
82BA LD A,($B719)
82BD CP $01
82BF JP NZ,$7929
82C2 LD A,$02
82C4 LD ($B719),A
82C7 LD A,(IY+$01)
82CA OR $80
82CC LD (IY+$01),A
82CF JP $75B4
82D2 LD A,($B719)
82D5 CP $02
82D7 JP Z,$75B4
82DA LD A,$01
82DC LD ($B719),A
82DF JP $75B4
82E2 PUSH DE
82E3 LD HL,$B6E0
82E6 LD DE,$757F
82E9 LD BC,$0006
82EC LDIR
82EE POP DE
82EF BIT 7,E
82F1 CALL $82F7
82F4 JP $75B4
82F7 JP Z,$7838
82FA JP $7850
82FD LD A,D
82FE LD ($824F),A
8301 PUSH DE
8302 PUSH BC
8303 PUSH IY
8305 LD A,($B706)
8308 LD ($8250),A
830B LD DE,$FFE8
830E ADD IY,DE
8310 LD A,$01
8312 JP $758A
8315 LD A,($B71B)
8318 AND A
8319 JR Z,$82FD
831B DEC A
831C LD ($B71B),A
831F LD A,($8250)
8322 LD B,A
8323 LD A,($B706)
8326 SUB B
8327 AND A
8328 LD C,$00
832A JR Z,$8378
832C POP IY
832E PUSH IY
8330 LD DE,$FFE8
8333 ADD IY,DE
8335 LD B,A
8336 LD IX,$B738
833A PUSH DE
833B PUSH BC
833C LD DE,$0019
833F LD B,$08
8341 LD A,(IX+$00)
8344 AND A
8345 JR Z,$834B
8347 ADD IX,DE
8349 DJNZ $8341
834B LD (IX+$00),$FF
834F INC IX
8351 POP BC
8352 POP DE
8353 JR NZ,$8378
8355 BIT 6,(IY+$01)
8359 JR Z,$8361
835B LD (IX-$01),$00
835F JR $8373
8361 PUSH BC
8362 LD B,$18
8364 LD A,(IY+$00)
8367 LD (IX+$00),A
836A INC IY
836C INC IX
836E DJNZ $8364
8370 POP BC
8371 ADD IY,DE
8373 ADD IY,DE
8375 INC C
8376 DJNZ $8336
8378 XOR A
8379 LD ($B719),A
837C LD A,C
837D LD ($B737),A
8380 POP IY
8382 LD A,($8250)
8385 LD ($B706),A
8388 POP BC
8389 POP DE
838A LD A,($824F)
838D LD D,A
838E JP $75B4 Jump to 75B4.
8391 CALL GameOver_Start Call GameOver_Start.
8394 XOR A
8395 IN A,($FE)
8397 AND %00011111 Keep only bits 0-4.
8399 CP $1F
839B JR Z,$8394
839D JP ReStart Jump to ReStart.
Prev: 8251 Up: Map Next: 83A0