Prev: 8800 Up: Map Next: 8898
8833: Routine at 8833
Used by the routine at 8A30.
8833 LD A,($8AF3)
8836 XOR $01
8838 LD ($8AF3),A
883B XOR A
883C LD ($8AFF),A
883F LD ($8AFE),A
8842 LD A,(HL)
8843 AND A
8844 JP Z,$8AD0
8847 PUSH HL
8848 LD A,($C408)
884B LD L,A
884C LD H,$00
884E ADD HL,DE
884F LD ($8B16),HL
8852 POP HL
8853 LD A,(HL)
8854 RLA
8855 JP C,$8875
8858 LD A,($8B1B)
885B LD C,A
885C LD B,$00
885E PUSH HL
885F ADD HL,BC
8860 LD ($8B14),HL
8863 POP HL
8864 PUSH DE
8865 LD DE,$8AE9
8868 OR $80
886A LD (DE),A
886B INC DE
886C LDIR
886E LD HL,$8AE9
8871 POP DE
8872 JP $8882
8875 RRA
8876 AND $07
8878 INC A
8879 LD C,A
887A LD B,$00
887C PUSH HL
887D ADD HL,BC
887E LD ($8B14),HL
8881 POP HL
8882 LD A,($C407)
8885 AND A
8886 JP Z,$88A5
8889 PUSH DE
888A LD A,(HL)
888B LD DE,$8AF4
888E LD (DE),A
888F INC DE
8890 INC HL
8891 AND $07
8893 LD B,A
8894 AND A
8895 JP Z,$88A1
Prev: 8800 Up: Map Next: 8898