trees_castles_spell |
9ADD |
LD A,$08 |
|
9ADF |
LD (unknown11),A |
|
9AE2 |
LD A,(CURSP) |
|
9AE5 |
CP $26 |
|
9AE7 |
JP M,trees_castles_spell_0 |
|
9AEA |
LD A,$01 |
|
9AEC |
LD (unknown11),A |
trees_castles_spell_0 |
9AEF |
LD A,(computer_player_flag) |
|
9AF2 |
OR A |
|
9AF3 |
JR NZ,trees_castles_spell_1 |
|
9AF5 |
LD A,(CURSP) |
|
9AF8 |
CP $24 |
|
9AFA |
JR Z,trees_castles_spell_3 |
|
9AFC |
CALL routine13 |
|
9AFF |
RET |
trees_castles_spell_1 |
9B00 |
LD A,(CURSP) |
|
9B03 |
CP $26 |
|
9B05 |
JP M,trees_castles_spell_2 |
|
9B08 |
LD HL,(object_table_entry_pointer) |
|
9B0B |
LD A,(HL) |
|
9B0C |
CP $26 |
|
9B0E |
JP M,trees_castles_spell_2 |
|
9B11 |
CP $28 |
|
9B13 |
JP P,trees_castles_spell_2 |
|
9B16 |
LD A,$00 |
|
9B18 |
LD (unknown10),A |
|
9B1B |
RET |
trees_castles_spell_2 |
9B1C |
CALL display_wizard_spell_range |
trees_castles_spell_3 |
9B1F |
LD HL,(D_ADD) |
|
9B22 |
LD (AIM),HL |
|
9B25 |
LD A,$0D |
|
9B27 |
LD (unknown18),A |
|
9B2A |
CALL routine09 |
|
9B2D |
LD A,(unknown11) |
|
9B30 |
LD B,A |
trees_castles_spell_4 |
9B31 |
PUSH BC |
|
9B32 |
CALL routine60 |
trees_castles_spell_5 |
9B35 |
CALL routine61_0 |
|
9B38 |
CP $4B |
|
9B3A |
JR Z,trees_castles_spell_7 |
|
9B3C |
CALL OFBORD |
|
9B3F |
JR Z,trees_castles_spell_5 |
|
9B41 |
LD HL,(object_table_entry_pointer) |
|
9B44 |
LD A,(HL) |
|
9B45 |
OR A |
|
9B46 |
JR NZ,trees_castles_spell_5 |
|
9B48 |
CALL routine15 |
|
9B4B |
JR NZ,trees_castles_spell_5 |
|
9B4D |
CALL routine14 |
|
9B50 |
JR NZ,trees_castles_spell_5 |
|
9B52 |
CALL routine20 |
|
9B55 |
LD A,(spell_success_flag) |
|
9B58 |
OR A |
|
9B59 |
JR Z,trees_castles_spell_6 |
|
9B5B |
LD A,(CURSP) |
|
9B5E |
LD HL,(object_table_entry_pointer) |
|
9B61 |
LD (HL),A |
|
9B62 |
LD DE,$01E1 |
|
9B65 |
ADD HL,DE |
|
9B66 |
LD A,(current_player) |
|
9B69 |
LD (HL),A |
|
9B6A |
CALL routine50 |
|
9B6D |
POP BC |
|
9B6E |
DJNZ trees_castles_spell_4 |
|
9B70 |
RET |
trees_castles_spell_6 |
9B71 |
CALL routine11 |
trees_castles_spell_7 |
9B74 |
POP BC |
|
9B75 |
RET |