![]() |
Routines |
| Prev: E41B | Up: Map | Next: E461 |
|
Used by the routines at ShowEnding and RunGame.
Clears the bytes at 4FC6 and at F0CD and then wipes the picture away from the screen by calling DrawWipeStep once for each step of the wipe, which goes up from 07 to 77 in twos.
|
||||||
| WipeViewOut | E42F | LD HL,$4FC6 | HL is 4FC6. | |||
| E432 | LD B,$14 | B is 14. | ||||
| E434 | CALL ClearBytes | Call ClearBytes. | ||||
| E437 | LD HL,$F0CD | Point HL at F0CD. | ||||
| E43A | LD B,$2C | B is 2C. | ||||
| E43C | CALL ClearBytes | Call ClearBytes. | ||||
| E43F | LD A,$07 | A is 07. | ||||
| E441 | LD ($5CD8),A | Write A at ScratchValue. | ||||
| E444 | LD IY,($5CF1) | Fetch the word at SavedIY into IY. | ||||
| E448 | EI | Enable interrupts. | ||||
| E449 | HALT | Wait for the next frame. | ||||
| WipeViewOut_Loop | E44A | LD A,($5CD8) | Read the byte at ScratchValue. | |||
| E44D | CP $77 | Compare A with 77. | ||||
| E44F | DI | Disable interrupts. | ||||
| E450 | RET Z | Return if the zero flag is set. | ||||
| E451 | LD IY,($5CF1) | Fetch the word at SavedIY into IY. | ||||
| E455 | EI | Enable interrupts. | ||||
| E456 | INC A | Advance A. | ||||
| E457 | INC A | Advance A. | ||||
| E458 | LD ($5CD8),A | Write A at ScratchValue. | ||||
| E45B | CALL DrawWipeStep | Call DrawWipeStep. | ||||
| E45E | JP WipeViewOut_Loop | Jump to E44A. | ||||
| Prev: E41B | Up: Map | Next: E461 |