Prev: 58415 Up: Map Next: 58503
58465: Wipe View In
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 120 to 8 in twos.
wipe-view-in-before wipe-view-in-after
WipeViewIn 58465 LD A,16 A is 16.
58467 LD (23785),A Write A at ScrollValue.
58470 LD A,120 A is 120.
58472 LD (23768),A Write A at ScratchValue.
58475 LD IY,(23793) Fetch the word at SavedIY into IY.
58479 EI Enable interrupts.
WipeViewIn_Loop 58480 LD A,(23768) Read the byte at ScratchValue.
58483 DI Disable interrupts.
58484 CP 8 Compare A with 8.
58486 RET Z Return if the zero flag is set.
58487 LD IY,(23793) Fetch the word at SavedIY into IY.
58491 EI Enable interrupts.
58492 DEC A Step A back.
58493 DEC A Step A back.
58494 LD (23768),A Write A at ScratchValue.
58497 CALL DrawWipeStep Call DrawWipeStep.
58500 JP WipeViewIn_Loop Jump to 58480.
Prev: 58415 Up: Map Next: 58503