![]() |
Routines |
Prev: A6DD | Up: Map | Next: A77D |
Used by the routine at 9470.
Update arrow tiles
|
||||
A706 | LD HL,$AF82 | Set HL to the offset address for arrows (tilt #0) | ||
A709 | LD A,($A1B0) | Jump forward if tilt #0 frame | ||
A70C | OR A | |||
A70D | JP Z,$A713 | |||
A710 | LD HL,$AFA2 | Set HL to the base address for the animated arrows (tilt #1) | ||
A713 | LD DE,$6DE6 | Set DE to the base address for the arrows tiles | ||
A716 | LD BC,$0020 | Set BC to the number of bytes | ||
A719 | LDI | Copy graphic data to tile address until all the bytes copied | ||
A71B | LDI | |||
A71D | LDI | |||
A71F | LDI | |||
A721 | LDI | |||
A723 | LDI | |||
A725 | LDI | |||
A727 | LDI | |||
A729 | JP PE,$A719 | |||
A72C | CALL $A730 | Update shield recharger | ||
A72F | RET | |||
Update shield recharger
|
||||
A730 | LD IY,$A203 | Set IY to the shield recharger index value | ||
A734 | LD DE,$A789 | Set DE to the base address for the graphic data address table of shield recharger | ||
A737 | LD HL,$6DD6 | Set HL to the base address for the shield recharger tile graphic data | ||
A73A | LD BC,$0010 | Set BC to the number of bytes to copy | ||
A73D | JP $A74D | Jump to handle shield recharger animation | ||
Update respawn indicators
|
||||
A740 | LD IY,$A202 | Set IY to the respawn indicator index value | ||
A744 | LD DE,$A77D | Set DE to the base address for the graphic data address table of respawn indicator | ||
A747 | LD HL,$684E | Set HL to the base address for the respawn indicator tile graphic data | ||
A74A | LD BC,$0008 | Set BC to the number of bytes to copy | ||
Animate tile graphic
|
||||
A74D | LD ($A22C),DE | Set A22C the base address for the table of graphic data address | ||
A751 | LD ($A22E),HL | Set A22E the base address for the tile graphic data | ||
A754 | INC (IY+$00) | Increase loop value | ||
A757 | INC (IY+$00) | |||
A75A | LD L,(IY+$00) | Point into DE the address for the corresponent index | ||
A75D | LD H,$00 | |||
A75F | LD DE,($A22C) | |||
A763 | ADD HL,DE | |||
A764 | EX DE,HL | |||
A765 | LD A,(DE) | if value is $FF then reset the index | ||
A766 | CP $FF | |||
A768 | JP NZ,$A772 | |||
A76B | LD (IY+$00),$00 | |||
A76F | JP $A75A | Jump to handle next address | ||
A772 | LD L,A | Set into HL the base address for the next graphic data of the tile animation | ||
A773 | INC DE | |||
A774 | LD A,(DE) | |||
A775 | LD H,A | |||
A776 | LD DE,($A22E) | Set DE to the base address for the tile graphic data | ||
A77A | LDIR | Copy all the bytes of the tiles | ||
A77C | RET |
Prev: A6DD | Up: Map | Next: A77D |