Prev: D7EE Up: Map Next: D887
D82D: routine83
routine83 D82D CALL display_wizard_spell_range
This entry point is used by the routine at routine82.
routine83_0 D830 LD HL,(D_ADD)
D833 LD (AIM),HL
D836 LD A,$0D
D838 LD (unknown18),A
D83B CALL routine09
D83E LD A,(unknown11)
D841 LD B,A
routine83_1 D842 PUSH BC
D843 CALL routine60
routine83_2 D846 CALL routine61_0
D849 CP $4B
D84B JR Z,routine83_4
D84D CALL OFBORD
D850 JR Z,routine83_2
D852 LD HL,(object_table_entry_pointer)
D855 LD A,(HL)
D856 OR A
D857 JR NZ,routine83_2
D859 CALL routine15
D85C JR NZ,routine83_2
D85E CALL routine14
D861 JR NZ,routine83_2
D863 CALL routine20
D866 LD A,(spell_success_flag)
D869 OR A
D86A JR Z,routine83_3
D86C LD A,(CURSP)
D86F LD HL,(object_table_entry_pointer)
D872 LD (HL),A
D873 LD DE,$01E1
D876 ADD HL,DE
D877 LD A,(current_player)
D87A LD (HL),A
D87B CALL routine50
D87E POP BC
D87F DJNZ routine83_1
D881 RET
routine83_3 D882 CALL routine11
routine83_4 D885 POP BC
D886 RET
Prev: D7EE Up: Map Next: D887