Prev: C703 Up: Map Next: C78B
C710: routine54
Used by the routine at routine21.
routine54 C710 LD HL,unknown_table_4
C713 LD A,(current_player)
C716 LD D,$00
C718 LD E,A
C719 ADD HL,DE
C71A LD A,(HL)
C71B OR A
C71C JP NZ,routine54_0
C71F CALL routine64
C722 LD HL,(X_ADD)
C725 LD A,(HL)
C726 CP $24
C728 JR Z,routine54_2
C72A CP $26
C72C JR Z,routine54_2
C72E CP $27
C730 JR Z,routine54_2
C732 LD A,$00
C734 LD (unknown30),A
C737 LD A,$01
C739 LD (unknown29),A
C73C LD (D_ADD),HL
C73F LD (object_table_entry_pointer),HL
C742 CALL routine53
C745 LD (cursor_coordinates),HL
C748 LD (unknown24),HL
C74B CALL routine23
routine54_0 C74E CALL routine50
C751 LD A,$01
C753 LD (unknown30),A
C756 HALT
C757 HALT
C758 HALT
C759 LD HL,map_object_table
C75C LD B,$9F
routine54_1 C75E PUSH BC
C75F PUSH HL
C760 LD (object_table_entry_pointer),HL
C763 LD (D_ADD),HL
C766 CALL routine53
C769 LD (cursor_coordinates),HL
C76C LD (unknown24),HL
C76F CALL routine23
C772 POP HL
C773 INC HL
C774 POP BC
C775 DJNZ routine54_1
C777 JP routine21_6
routine54_2 C77A LD A,$01
C77C LD (unknown30),A
C77F LD HL,(X_ADD)
C782 LD DE,$01E1
C785 ADD HL,DE
C786 SET 7,(HL)
C788 JP routine54_0
Prev: C703 Up: Map Next: C78B