Prev: E25F Up: Map Next: E283
E263: Flat-step blitter: third column, the upper row, and the step up
Part of blit_flat_step: the third column of the lower row, one row up, then the upper row right to left; then up another pixel row with the fix-up for leaving a character row (H back up by 8 within the third, unless the character row was the third's top one), and the loop.
flat_blit_upper_row E263 INC L Third column, lower row.
E264 POP DE
E265 LD (HL),E
E266 DEC H Row up; third, second, first columns. flat_blit_left_two joins at the second, flat_blit_one_column at the first.
E267 LD (HL),D
E268 DEC L
This entry point is used by the routine at flat_blit_left_two.
flat_blit_upper_row_0 E269 POP DE
E26A LD (HL),E
E26B DEC L
This entry point is used by the routine at flat_blit_one_column.
flat_blit_upper_row_1 E26C LD (HL),D }
This entry point is used by the routines at flat_blit_left_two_rows and flat_blit_left_one_row.
flat_blit_upper_row_2 E26D DEC H Up a pixel row, crossing a character row if need be. flat_blit_left_two_rows and flat_blit_left_one_row join here.
E26E LD A,H
E26F INC A
E270 AND $07
E272 JR NZ,flat_blit_upper_row_3
E274 LD A,L
E275 SUB $20
E277 LD L,A
E278 JR C,flat_blit_upper_row_3
E27A LD A,H
E27B ADD A,$08
E27D LD H,A
flat_blit_upper_row_3 E27E DJNZ blit_flat_step_0 Next row pair (back to the patched JR in blit_flat_step).
E280 JP after_step_drawn_0 Done: count the step and carry on.
Prev: E25F Up: Map Next: E283