Prev: B230 Up: Map Next: B342
B29C: Routine at B29C
Used by the routine at AFB5.
B29C PUSH HL
B29D LD D,A
B29E SRL C
B2A0 JR NC,$B2AC
B2A2 LD ($B410),A
B2A5 LD A,$54
B2A7 LD ($B418),A
B2AA JR $B2B4
B2AC LD ($B410),A
B2AF LD A,$53
B2B1 LD ($B418),A
B2B4 LD A,D
B2B5 CALL $B402
B2B8 LD DE,$00C8
B2BB CALL $A875
B2BE CP (IX+$00)
B2C1 JR NC,$B2CE
B2C3 LD A,$53
B2C5 LD ($B419),A
B2C8 LD A,(HL)
B2C9 LD ($B411),A
B2CC JR $B337
B2CE CP (IX+$01)
B2D1 JR NC,$B2E1
B2D3 LD A,$54
B2D5 LD ($B419),A
B2D8 LD A,(HL)
B2D9 LD ($B411),A
B2DC LD C,A
B2DD ADD A,A
B2DE ADD A,C
B2DF JR $B337
B2E1 CP (IX+$02)
B2E4 JR NC,$B2F2
B2E6 LD A,$53
B2E8 LD ($B419),A
B2EB DEC HL
B2EC LD A,(HL)
B2ED LD ($B411),A
B2F0 JR $B337
B2F2 CP (IX+$03)
B2F5 JR NC,$B306
B2F7 LD A,$54
B2F9 LD ($B419),A
B2FC DEC HL
B2FD LD A,(HL)
B2FE LD ($B411),A
B301 LD C,A
B302 ADD A,A
B303 ADD A,C
B304 JR $B337
B306 CP (IX+$04)
B309 JR NC,$B317
B30B LD A,$53
B30D LD ($B419),A
B310 INC HL
B311 LD A,(HL)
B312 LD ($B411),A
B315 JR $B337
B317 CP (IX+$05)
B31A JR NC,$B32B
B31C LD A,$54
B31E LD ($B419),A
B321 INC HL
B322 LD A,(HL)
B323 LD ($B411),A
B326 LD C,A
B327 ADD A,A
B328 ADD A,C
B329 JR $B337
B32B LD A,(HL)
B32C LD D,A
B32D LD A,$44
B32F LD ($B419),A
B332 LD A,D
B333 LD ($B411),A
B336 ADD A,A
B337 POP HL
B338 LD D,$00
B33A LD E,A
B33B AND A
B33C SBC HL,DE
B33E LD ($B40C),A
B341 RET
Prev: B230 Up: Map Next: B342