Prev: B29C Up: Map Next: B3B6
B342: Routine at B342
Used by the routine at AFB5.
B342 PUSH HL
B343 LD ($B410),A
B346 LD D,A
B347 LD A,$44
B349 LD ($B418),A
B34C LD A,D
B34D CALL $B402
B350 CP (IX+$00)
B353 JR NC,$B36C
B355 LD A,(HL)
B356 LD ($B411),A
B359 CALL $B38E
B35C LD D,A
B35D LD A,($B419)
B360 CP $44
B362 JR NZ,$B369
B364 LD A,$FF
B366 LD ($B412),A
B369 LD A,D
B36A JR $B383
B36C CP (IX+$01)
B36F JR NC,$B37B
B371 DEC HL
B372 LD A,(HL)
B373 LD ($B411),A
B376 CALL $B38E
B379 JR $B383
B37B INC HL
B37C LD A,(HL)
B37D LD ($B411),A
B380 CALL $B38E
B383 POP HL
B384 LD ($B40C),A
B387 LD E,A
B388 LD D,$00
B38A AND A
B38B SBC HL,DE
B38D RET
B38E LD B,A
B38F LD E,$C8
B391 CALL $A875
B394 CP (IX+$02)
B397 JR NC,$B3A2
B399 LD A,$44
B39B LD ($B419),A
B39E LD A,B
B39F ADD A,A
B3A0 JR $B3B5
B3A2 CP (IX+$03)
B3A5 JR NC,$B3AF
B3A7 LD A,$53
B3A9 LD ($B419),A
B3AC LD A,B
B3AD JR $B3B5
B3AF LD A,$4D
B3B1 LD ($B419),A
B3B4 XOR A
B3B5 RET
Prev: B29C Up: Map Next: B3B6