Prev: C34F Up: Map Next: C3E4
C36E: Routine at C36E
Used by the routine at C34F.
C36E LD A,(HL)
C36F LD ($C414),A
C372 INC HL
C373 LD A,(HL)
C374 LD ($C415),A
C377 INC HL
C378 LD C,(HL)
C379 INC HL
C37A LD B,(HL)
C37B INC HL
C37C LD ($C418),BC
C380 PUSH HL
C381 LD A,($C40F)
C384 LD ($C40D),A
C387 LD A,($C410)
C38A LD ($C40C),A
C38D LD A,($C411)
C390 LD ($C40B),A
C393 LD A,($C413)
C396 LD C,A
C397 LD A,($C415)
C39A ADD A,C
C39B LD C,A
C39C LD A,($C415)
C39F CP $FF
C3A1 JP NZ,$C3B0
C3A4 PUSH BC
C3A5 LD A,($C41A)
C3A8 LD B,A
C3A9 LD A,$BE
C3AB SUB B
C3AC SUB $0C
C3AE POP BC
C3AF LD C,A
C3B0 LD A,($C410)
C3B3 AND A
C3B4 JP NZ,$C3C3
C3B7 LD A,($C412)
C3BA LD B,A
C3BB LD A,($C414)
C3BE ADD A,B
C3BF LD B,A
C3C0 JP $C3DA
C3C3 PUSH BC
C3C4 LD A,($C414)
C3C7 LD B,A
C3C8 LD A,(HL)
C3C9 LD C,A
C3CA LD A,($C416)
C3CD SLA C
C3CF SLA C
C3D1 SUB B
C3D2 SUB C
C3D3 POP BC
C3D4 LD B,A
C3D5 LD A,($C412)
C3D8 ADD A,B
C3D9 LD B,A
C3DA CALL $C2B5
C3DD LD BC,($C418)
C3E1 POP HL
C3E2 ADD HL,BC
C3E3 RET Return.
Prev: C34F Up: Map Next: C3E4