Routines |
Prev: 81F0 | Up: Map | Next: 82C3 |
Used by the routines at HandlerAxe and HandlerSword.
|
||||
HandlerWeapon | 8209 | LD DE,($5E1D) | ||
820D | LD A,($EA91) | |||
8210 | CP (IX+$01) | |||
8213 | JR NZ,HandlerWeapon_7 | |||
8215 | DEC (IX+$0F) | |||
8218 | JR Z,HandlerWeapon_6 | |||
821A | BIT 0,(IX+$02) | |||
821E | JR NZ,HandlerWeapon_6 | |||
8220 | LD A,(IX+$03) | |||
8223 | ADD A,(IX+$06) | |||
8226 | LD C,A | |||
8227 | SUB $58 | |||
8229 | JP P,HandlerWeapon_0 | |||
822C | NEG | |||
HandlerWeapon_0 | 822E | CP E | ||
822F | JR NC,HandlerWeapon_5 | |||
HandlerWeapon_1 | 8231 | LD A,(IX+$04) | ||
8234 | ADD A,(IX+$07) | |||
8237 | LD B,A | |||
8238 | SUB $68 | |||
823A | JP P,HandlerWeapon_2 | |||
823D | NEG | |||
HandlerWeapon_2 | 823F | CP D | ||
8240 | JR NC,HandlerWeapon_4 | |||
HandlerWeapon_3 | 8242 | LD (IX+$03),C | ||
8245 | LD (IX+$04),B | |||
8248 | JP HandlerKnight_6 | |||
HandlerWeapon_4 | 824B | LD B,(IX+$04) | ||
824E | LD A,(IX+$07) | |||
8251 | NEG | |||
8253 | LD (IX+$07),A | |||
8256 | PUSH BC | |||
8257 | CALL SoundsBounce | |||
825A | POP BC | |||
825B | JR HandlerWeapon_3 | |||
HandlerWeapon_5 | 825D | LD C,(IX+$03) | ||
8260 | LD A,(IX+$06) | |||
8263 | NEG | |||
8265 | LD (IX+$06),A | |||
8268 | PUSH BC | |||
8269 | CALL SoundsBounce | |||
826C | POP BC | |||
826D | JR HandlerWeapon_1 | |||
This entry point is used by the routine at HandlerBatlet.
|
||||
HandlerWeapon_6 | 826F | CALL RemoveEntity | ||
8272 | CALL SoundsWeaponPop | |||
8275 | LD A,($5E1A) | |||
8278 | LD (IX+$05),A | |||
827B | CALL SetEntityAttributes_0 | |||
This entry point is used by the routine at HandlerBatlet.
|
||||
HandlerWeapon_7 | 827E | LD (IX+$00),$00 | ||
8282 | RET | |||
This entry point is used by the routine at HandlerSerf.
|
||||
HandlerWeapon_8 | 8283 | LD A,($EA98) | ||
8286 | AND A | |||
8287 | RET NZ | |||
8288 | LD A,($5E2D) | |||
828B | AND A | |||
828C | RET NZ | |||
828D | CALL SoundsSword | |||
8290 | CALL HandlerWizard_9 | |||
8293 | LD C,$00 | |||
8295 | LD A,(HL) | |||
8296 | AND A | |||
8297 | JR Z,HandlerWeapon_12 | |||
8299 | JP P,HandlerWeapon_9 | |||
829C | LD C,$04 | |||
HandlerWeapon_9 | 829E | DEC HL | ||
829F | LD A,(HL) | |||
82A0 | AND A | |||
82A1 | JR Z,HandlerWeapon_10 | |||
82A3 | JP P,HandlerWeapon_11 | |||
82A6 | DEC C | |||
HandlerWeapon_10 | 82A7 | LD A,C | ||
82A8 | AND $07 | |||
82AA | ADD A,$38 | |||
82AC | LD HL,$EA98 | |||
82AF | LD (HL),A | |||
82B0 | JP HandlerWizard_8 | |||
HandlerWeapon_11 | 82B3 | INC C | ||
82B4 | JR HandlerWeapon_10 | |||
HandlerWeapon_12 | 82B6 | DEC HL | ||
82B7 | BIT 7,(HL) | |||
82B9 | JR Z,HandlerWeapon_13 | |||
82BB | LD C,$06 | |||
82BD | JR HandlerWeapon_10 | |||
HandlerWeapon_13 | 82BF | LD C,$02 | ||
82C1 | JR HandlerWeapon_10 |
Prev: 81F0 | Up: Map | Next: 82C3 |