Prev: 58465 Up: Map Next: 58534
58503: Draw Wipe Step
Used by the routines at WipeViewOut and WipeViewIn.
Draws one step of the wipe, by finding the address in the screen buffer with GetBufferAddress and then waiting for the next frame and copying the picture to the screen.
Input
A The step
DrawWipeStep 58503 LD H,A A moves into H.
58504 LD L,16 L is 16.
58506 LD (23770),SP Write SP at SavedStackPointer.
58510 CALL GetBufferAddress Call GetBufferAddress.
58513 HALT Wait for the next frame.
58514 DI Disable interrupts.
58515 LD SP,HL HL moves into SP.
58516 LD DE,584 DE is 584.
DrawWipeStep_Loop 58519 DEC DE Step DE back.
58520 LD A,D D moves into A.
58521 OR E Combine A with E.
58522 JR NZ,DrawWipeStep_Loop Jump to 58519 if the zero flag is reset.
58524 LD A,(23768) Read the byte at ScratchValue.
58527 ADD A,135 Add 135.
58529 CPL Invert the bits of A.
58530 LD B,A A moves into B.
58531 JP UpdateScreen_Copy Jump to UpdateScreen_Copy.
Prev: 58465 Up: Map Next: 58534