![]() |
Routines |
| Prev: E42F | Up: Map | Next: E487 |
|
Used by the routines at ShowEnding and RunGame.
Wipes the picture on to the screen by calling DrawWipeStep once for each step of the wipe, which goes down from 78 to 08 in twos.
|
||||||
| WipeViewIn | E461 | LD A,$10 | A is 10. | |||
| E463 | LD ($5CE9),A | Write A at ScrollValue. | ||||
| E466 | LD A,$78 | A is 78. | ||||
| E468 | LD ($5CD8),A | Write A at ScratchValue. | ||||
| E46B | LD IY,($5CF1) | Fetch the word at SavedIY into IY. | ||||
| E46F | EI | Enable interrupts. | ||||
| WipeViewIn_Loop | E470 | LD A,($5CD8) | Read the byte at ScratchValue. | |||
| E473 | DI | Disable interrupts. | ||||
| E474 | CP $08 | Compare A with 08. | ||||
| E476 | RET Z | Return if the zero flag is set. | ||||
| E477 | LD IY,($5CF1) | Fetch the word at SavedIY into IY. | ||||
| E47B | EI | Enable interrupts. | ||||
| E47C | DEC A | Step A back. | ||||
| E47D | DEC A | Step A back. | ||||
| E47E | LD ($5CD8),A | Write A at ScratchValue. | ||||
| E481 | CALL DrawWipeStep | Call DrawWipeStep. | ||||
| E484 | JP WipeViewIn_Loop | Jump to E470. | ||||
| Prev: E42F | Up: Map | Next: E487 |