Prev: 58395 Up: Map Next: 58465
58415: Wipe View Out
Used by the routines at ShowEnding and RunGame.
Clears the bytes at 20422 and at 61645 and then wipes the picture away from the screen by calling DrawWipeStep once for each step of the wipe, which goes up from 7 to 119 in twos.
wipe-view-out-before wipe-view-out-after
WipeViewOut 58415 LD HL,20422 HL is 20422.
58418 LD B,20 B is 20.
58420 CALL ClearBytes Call ClearBytes.
58423 LD HL,61645 Point HL at 61645.
58426 LD B,44 B is 44.
58428 CALL ClearBytes Call ClearBytes.
58431 LD A,7 A is 7.
58433 LD (23768),A Write A at ScratchValue.
58436 LD IY,(23793) Fetch the word at SavedIY into IY.
58440 EI Enable interrupts.
58441 HALT Wait for the next frame.
WipeViewOut_Loop 58442 LD A,(23768) Read the byte at ScratchValue.
58445 CP 119 Compare A with 119.
58447 DI Disable interrupts.
58448 RET Z Return if the zero flag is set.
58449 LD IY,(23793) Fetch the word at SavedIY into IY.
58453 EI Enable interrupts.
58454 INC A Advance A.
58455 INC A Advance A.
58456 LD (23768),A Write A at ScratchValue.
58459 CALL DrawWipeStep Call DrawWipeStep.
58462 JP WipeViewOut_Loop Jump to 58442.
Prev: 58395 Up: Map Next: 58465