Routines |
Prev: 839C | Up: Map | Next: 8404 |
|
||||
magic_knife_spell | 83D0 | LD A,(computer_player_flag) | Jump to magic_knife_spell_0 if player is human. | |
83D3 | OR A | |||
83D4 | JR Z,magic_knife_spell_0 | |||
83D6 | CALL routine03 | Else call routine03 to get byte from unknown_table_3. | ||
83D9 | AND $07 | Jump to magic_knife_spell_0 if lowest three bits are clear. | ||
83DB | JR Z,magic_knife_spell_0 | |||
83DD | LD A,$00 | Set unknown10 variable to zero and return. | ||
83DF | LD (unknown10),A | |||
83E2 | RET | |||
magic_knife_spell_0 | 83E3 | CALL routine04 | Call routine04 ??? | |
83E6 | LD A,(spell_success_flag) | Jump to magic_knife_spell_1 if spell_success_flag is clear. | ||
83E9 | OR A | |||
83EA | JR Z,magic_knife_spell_1 | |||
83EC | LD HL,modwizard_pointers_2 | Set current_character_pointer to modwizard_pointers_2. | ||
83EF | LD (current_character_pointer),HL | |||
83F2 | CALL routine02 | Copy sprite pointers to wizard data. | ||
83F5 | CALL routine03 | Get byte from unknown_table_3. | ||
83F8 | AND $F8 | Clear bits 0 and 2, and set bit 1. | ||
83FA | OR $02 | |||
83FC | LD (HL),A | Store result back in unknown_table_3. | ||
magic_knife_spell_1 | 83FD | CALL routine50 | Call routine50 ??? | |
8400 | CALL routine11 | Display SPELL FAILS or SPELL SUCCEEDS message and return. | ||
8403 | RET |
Prev: 839C | Up: Map | Next: 8404 |