![]() |
Routines |
| Prev: 54210 | Up: Map | Next: 54309 |
|
Used by the routine at DrawWallStrip.
Skips the rows of a wall strip that are below PixelBuffer. A is the number of those rows, negated. It starts drawing at 72 and jumps to DrawWallStrip_Draw.
|
||||||||||
|
Skip the rows that are below the buffer.
|
||||||||||
| ClipWallStripTop | 54293 | NEG | Make the number of rows positive and keep it in C. | |||||||
| 54295 | LD C,A | |||||||||
| 54296 | LD A,(HL) | Fetch the height of the graphic. | ||||||||
| 54297 | INC HL | |||||||||
| 54298 | SUB C | Subtract the rows that are below. | ||||||||
| 54299 | RET M | Return if there are none left. | ||||||||
| 54300 | RET Z | |||||||||
| 54301 | LD B,0 | Skip the image data for those rows. | ||||||||
| 54303 | ADD HL,BC | |||||||||
| 54304 | ADD HL,BC | |||||||||
| 54305 | LD D,72 | Set the vertical position to 72. | ||||||||
| 54307 | JR DrawWallStrip_Draw | Jump to DrawWallStrip_Draw. | ||||||||
|
View the equivalent code in;
|
||||||||||
| Prev: 54210 | Up: Map | Next: 54309 |