Prev: 53875 Up: Map Next: 53938
53922: Clip Edge Strip Top
Used by the routine at DrawStripGraphic.
Skips the rows of a strip that are below PixelBuffer. A is the number of those rows, negated. It starts drawing at 72 and jumps to DrawStripGraphic_Draw.
Input
A The number of rows below the buffer, negated
HL The address of the strip
Skip the rows that are below the buffer.
ClipEdgeStripTop 53922 NEG Make the number of rows positive and keep it in C.
53924 LD C,A
53925 LD A,(HL) Fetch the height of the strip.
53926 INC HL
53927 SUB C Subtract the rows that are below.
53928 RET M Return if there are none left.
53929 RET Z
53930 LD B,0 Skip the image data for those rows.
53932 ADD HL,BC
53933 ADD HL,BC
53934 LD D,72 Set the vertical position to 72.
53936 JR DrawStripGraphic_Draw Jump to DrawStripGraphic_Draw.
View the equivalent code in;
Prev: 53875 Up: Map Next: 53938