Prev: 638A Up: Map Next: 6588
6534: Routine at 6534
Used by the routines at Vector_HeroInit and HeroInputHandler.
6534 LD A,(ManData_SelObj_02_DFCB)
6537 AND A
6538 RET Z
6539 PUSH IX
653B LD IX,(ManData_SelectedObjectPtr)
653F LD L,(IX+$02)
6542 LD H,$00
6544 ADD HL,HL
6545 ADD HL,HL
6546 LD DE,BitmapData_Width
6549 ADD HL,DE
654A LD A,(ManWalkDirection_DFD4)
654D RRCA
654E RRCA
654F XOR (HL)
6550 AND $80
6552 JR Z,$655E
6554 PUSH HL
6555 LD L,(IX+$02)
6558 LD H,$00
655A CALL Vector_BitmapMirror
655D POP HL
655E DEC HL
655F LD A,(HL)
6560 AND $7F
6562 RLA
6563 RLA
6564 RLA
6565 NEG
6567 ADD A,$19
6569 LD B,A
656A LD C,$98
656C LD A,(ManWalkDirection_DFD4)
656F CP $01
6571 JR Z,$657F
6573 INC HL
6574 LD A,(HL)
6575 AND $7F
6577 RLA
6578 RLA
6579 RLA
657A NEG
657C ADD A,$68
657E LD C,A
657F LD A,(IX+$02)
6582 CALL Vector_Main_0
6585 POP IX
6587 RET
Prev: 638A Up: Map Next: 6588