Routines |
Prev: 8404 | Up: Map | Next: 846A |
|
||||
magic_wings_spell | 8438 | LD A,(computer_player_flag) | Jump to magic_wings_spell_0 if player is human. | |
843B | OR A | |||
843C | JR Z,magic_wings_spell_0 | |||
843E | CALL routine03 | Else call routine03 to get byte from unknown_table_3. | ||
8441 | AND $20 | Jump to magic_wings_spell_0 if bit 5 is clear. | ||
8443 | JR Z,magic_wings_spell_0 | |||
8445 | LD A,$00 | Set unknown10 variable to zero and return. | ||
8447 | LD (unknown10),A | |||
844A | RET | |||
magic_wings_spell_0 | 844B | CALL routine04 | Call routine04 ??? | |
844E | LD A,(spell_success_flag) | Jump to magic_wings_spell_1 if spell_success_flag is clear. | ||
8451 | OR A | |||
8452 | JR Z,magic_wings_spell_1 | |||
8454 | LD HL,modwizard_pointers_5 | Set current_character_pointer to modwizard_pointers_5. | ||
8457 | LD (current_character_pointer),HL | |||
845A | CALL routine02 | Copy sprite pointers to wizard data. | ||
845D | CALL routine03 | Get byte from unknown_table_3. | ||
8460 | OR $20 | Set bit 5 | ||
8462 | LD (HL),A | Store result back in unknown_table_3. | ||
magic_wings_spell_1 | 8463 | CALL routine50 | Call routine50 ??? | |
8466 | CALL routine11 | Display SPELL FAILS or SPELL SUCCEEDS message and return. | ||
8469 | RET |
Prev: 8404 | Up: Map | Next: 846A |