Prev: 9B85 Up: Map Next: 9C0E
9BB3: routine18
Used by the routine at routine17.
routine18 9BB3 LD D,$00
9BB5 LD E,A
9BB6 LD HL,map_object_table
9BB9 ADD HL,DE
9BBA LD (object_table_entry_pointer),HL
9BBD LD (AIM),HL
9BC0 LD A,(HL)
9BC1 CP $1E
9BC3 JP P,routine18_0
9BC6 CP $13
9BC8 JP M,routine18_0
9BCB JR routine17_0
This entry point is used by the routine at routine84.
routine18_0 9BCD CALL routine09
9BD0 CALL display_wizard_spell_range
9BD3 LD B,$04
routine18_1 9BD5 PUSH BC
9BD6 CALL routine60
routine18_2 9BD9 CALL routine61_0
9BDC CP $4B
9BDE JR Z,routine18_3
9BE0 CALL OFBORD
9BE3 JR Z,routine18_2
9BE5 LD HL,(object_table_entry_pointer)
9BE8 LD A,(HL)
9BE9 OR A
9BEA JR NZ,routine18_2
9BEC CALL routine19
9BEF JR NZ,routine18_2
9BF1 CALL routine14
9BF4 JR NZ,routine18_2
9BF6 CALL routine20
9BF9 LD A,(spell_success_flag)
9BFC OR A
9BFD JR Z,routine18_4
9BFF CALL routine16
routine18_3 9C02 POP BC
9C03 DJNZ routine18_1
9C05 CALL routine11
9C08 RET
routine18_4 9C09 CALL routine11
9C0C POP BC
9C0D RET
Prev: 9B85 Up: Map Next: 9C0E