Prev: 7C63 Up: Map Next: 7DC5
7D49: Routine at 7D49
Used by the routines at Vectors, ObjectPickUp and ObjectDrop.
7D49 LD L,(IX+$02)
7D4C LD H,$00
7D4E ADD HL,HL
7D4F ADD HL,HL
7D50 LD DE,BitmapData_Width
7D53 ADD HL,DE
7D54 PUSH HL
7D55 LD A,(CamDirection_DFD2)
7D58 BIT 0,A
7D5A JR NZ,$7D66
7D5C LD DE,(ManData_PosSecondary_dfc5)
7D60 LD A,(HL)
7D61 LD L,(IX+$01)
7D64 JR $7D6E
7D66 LD DE,(ManData_PosPrimary_dfc3)
7D6A LD A,(HL)
7D6B LD L,(IX+$00)
7D6E LD H,$00
7D70 RRA
7D71 ADC HL,HL
7D73 LD A,(CamDirection_DFD2)
7D76 BIT 1,A
7D78 JR Z,$7D7B
7D7A EX DE,HL
7D7B AND A
7D7C SBC HL,DE
7D7E LD DE,$0020
7D81 ADD HL,DE
7D82 ADD HL,HL
7D83 ADD HL,HL
7D84 LD C,L
7D85 POP HL
7D86 LD A,(CamDirection_DFD2)
7D89 RRCA
7D8A RRCA
7D8B XOR (HL)
7D8C AND $80
7D8E JR Z,$7D9C
7D90 PUSH HL
7D91 PUSH BC
7D92 LD L,(IX+$02)
7D95 LD H,$00
7D97 CALL Vector_BitmapMirror
7D9A POP BC
7D9B POP HL
7D9C LD A,(HL)
7D9D AND $7F
7D9F RLA
7DA0 RLA
7DA1 NEG
7DA3 ADD A,C
7DA4 LD C,A
7DA5 DEC HL
7DA6 LD A,(HL)
7DA7 AND $7F
7DA9 LD B,A
7DAA LD A,$3B
7DAC SUB $08
7DAE DJNZ $7DAC
7DB0 LD B,A
7DB1 LD A,(IX+$02)
7DB4 CALL Vector_Main_0
7DB7 JP UpdateInv_A
7DBA NOP
7DBB NOP
7DBC LD L,(HL)
7DBD LD (BC),A
7DBE NOP
7DBF NOP
7DC0 LD (HL),H
7DC1 LD L,A
7DC2 LD (HL),D
7DC3 LD H,E
7DC4 LD E,(HL)
Prev: 7C63 Up: Map Next: 7DC5