Prev: 56606 Up: Map Next: 56804
56665: Routine at 56665
Used by the routine at CHECK_BULLET_LANDSCAPE_COLLISION.
L56665 56665 CP 24
56667 JP Z,L56665_0
56670 CP 25
56672 JP Z,L56665_0
56675 CP 9
56677 JP Z,L56665_1
56680 CP 16
56682 JP Z,L56665_2
56685 CP 54
56687 RET C
56688 CP 57
56690 RET NC
56691 JP L56665_2
L56665_0 56694 PUSH HL
56695 CALL L56117
56698 POP HL
56699 JP L56665_2
L56665_1 56702 PUSH HL
56703 CALL L56117_0
56706 POP HL
L56665_2 56707 LD (HL),127
56709 LD A,(IX+0)
56712 RRA
56713 AND 14
56715 LD B,A
56716 LD A,(59786)
56719 LD C,A
56720 LD A,(IX+1)
56723 ADD A,C
56724 SUB 3
56726 RRA
56727 AND 30
56729 LD C,A
56730 LD A,(59786)
56733 RRA
56734 PUSH AF
56735 CPL
56736 AND 1
56738 OR C
56739 LD C,A
56740 LD HL,60387 Point HL at SCREEN_BUFFER
56743 ADD HL,BC
56744 POP AF
56745 LD B,16
56747 JP NC,L56665_4
56750 LD DE,30
L56665_3 56753 LD A,(HL)
56754 AND 240
56756 LD (HL),A
56757 INC HL
56758 LD (HL),0
56760 INC HL
56761 LD A,(HL)
56762 AND 15
56764 LD (HL),A
56765 ADD HL,DE
56766 DJNZ L56665_3
56768 JP L56665_6
L56665_4 56771 LD DE,31
56774 INC HL
L56665_5 56775 LD (HL),0
56777 INC HL
56778 LD (HL),0
56780 ADD HL,DE
56781 DJNZ L56665_5
L56665_6 56783 LD D,(IX+0)
56786 SRL D
56788 LD E,(IX+1)
56791 SRL E
56793 PUSH IX
56795 CALL L56342
56798 POP IX
56800 CALL L56117
56803 RET
Prev: 56606 Up: Map Next: 56804