Prev: 52686 Up: Map Next: 52710
52689: Read (from graphic data) repeat counter value, x, and draw x rows of reset pixels
Used by the routine at 52635.
Input
DE Current position in graphic data
52689 LD C,0 Set C to zero (all bits reset)
This entry point is used by the routine at 52710.
52691 INC DE Advance graphic data pointer
52692 LD A,(DE) Load next data byte (repeat counter) into A
52693 INC DE Advance graphic data pointer
52694 LD B,A Load B (repeat counter) with value in A
52695 LD A,C Load A with zero (i.e. all eight pixel bits reset)
52696 CALL 52686 Load byte of graphic data in A into display file address in HL
52699 CALL 52714 Advance HL to next location in display file (up or down one pixel)...
52702 JP NZ,52685 ...and if this new location is outside dimensions of the graphic then jump to 52685 (return)
52705 DJNZ 52695 Decrease repeat counter and loop back to 52695 if not zero
52707 JP 52664 Jump back to 52664 to process next graphic data byte
Prev: 52686 Up: Map Next: 52710