Prev: C234 Up: Map Next: C305
C2B5: Routine at C2B5
Used by the routine at C36E.
C2B5 PUSH HL
C2B6 PUSH DE
C2B7 LD A,($C40D)
C2BA LD D,A
C2BB LD E,C
C2BC CALL $C319
C2BF LD A,B
C2C0 SRL A
C2C2 SRL A
C2C4 LD E,A
C2C5 LD D,$00
C2C7 ADD HL,DE
C2C8 POP DE
C2C9 ADD HL,DE
C2CA LD D,H
C2CB LD E,L
C2CC POP HL
C2CD LD A,B
C2CE AND $03
C2D0 JP Z,$C2EC
C2D3 CP $01
C2D5 JP Z,$C2E7
C2D8 CP $02
C2DA JP Z,$C2E2
C2DD LD C,$08
C2DF JP $C2EE
C2E2 LD C,$04
C2E4 JP $C2EE
C2E7 LD C,$02
C2E9 JP $C2EE
C2EC LD C,$00
C2EE LD A,($C40C)
C2F1 OR C
C2F2 LD ($C40E),A
C2F5 LD A,($C40B)
C2F8 LD ($C407),A
C2FB LD A,($C40D)
C2FE LD ($C408),A
C301 CALL $8803
C304 RET Return.
Prev: C234 Up: Map Next: C305