Prev: 50280 Up: Map Next: 50343
50327: Clip Edge Strip Top
Used by the routine at DrawStripGraphic.
Skips the rows of an image that are below PlayfieldBuffer. 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 image
Skip the rows that are below the buffer.
ClipEdgeStripTop 50327 NEG Make the number of rows positive and keep it in C.
50329 LD C,A
50330 LD A,(HL) Fetch the height of the image.
50331 INC HL
50332 SUB C Subtract the rows that are below.
50333 RET M Return if there are none left.
50334 RET Z
50335 LD B,0 Skip the image data for those rows.
50337 ADD HL,BC
50338 ADD HL,BC
50339 LD D,72 Set the vertical position to 72.
50341 JR DrawStripGraphic_Draw Jump to DrawStripGraphic_Draw.
View the equivalent code in;
Prev: 50280 Up: Map Next: 50343