← 95E0 Draw the playfield border Map 9635 → Draw or color the mirror side wall on the bat's side
9610: Draw a corner block
Stamps one corner block into the tile map and paints its four cells bright cyan on black.
Input
HL top-left tile-map cell address
DE pointer to the four tile codes, in the quadrant order the brick tile-glyph groups use
draw_corner_block 9610 PUSH HL Stash the top-left cell; B counts the two tile rows.
9611 LD B,$02
draw_corner_block_0 9613 LD A,(DE) Write one row of two tile codes from DE, then step HL down one 32-cell tile-map row.
9614 LD (HL),A
9615 INC HL
9616 INC DE
9617 LD A,(DE)
9618 LD (HL),A
9619 DEC HL
961A INC DE
961B CALL advance_buffer_row
961E DJNZ draw_corner_block_0
9620 POP HL Recover the top-left cell and map its tile-map page to the attribute page of the same cell; the shared low byte keeps the same cell.
9621 LD A,H
9622 AND $03
9624 OR $58
9626 LD H,A
9627 LD (HL),$45 Paint all four corner cells BRIGHT cyan ink on black paper.
9629 INC HL
962A LD (HL),$45
962C CALL advance_buffer_row
962F LD (HL),$45
9631 DEC HL
9632 LD (HL),$45
9634 RET
← 95E0 Draw the playfield border Map 9635 → Draw or color the mirror side wall on the bat's side
Fork me on GitHub