Prev: 51755 Up: Map Next: 51869
51797: Draw Playing Area Border
Used by the routine at StartGame.
Draws the border around the playing area, in yellow on red.
Set the colour and the font.
DrawPlayingAreaBorder 51797 LD A,22 Use yellow ink on red paper (attribute 22), and keep it in AF'.
51799 EX AF,AF'
51800 LD HL,47882 Set the font to the characters of the border.
51803 LD (48044),HL
51806 LD DE,51941 Point at the characters of the border.
Draw the four corners.
51809 LD HL,16389 Draw the top left corner at 16389 (in the screen buffer).
51812 CALL PrintCharacterBlock
51815 LD HL,16413 Draw the top right corner at 16413 (in the screen buffer).
51818 CALL PrintCharacterBlock
51821 LD HL,20485 Draw the bottom left corner at 20485 (in the screen buffer).
51824 CALL PrintCharacterBlock
51827 LD HL,20509 Draw the bottom right corner at 20509 (in the screen buffer).
51830 CALL PrintCharacterBlock
Draw the top and bottom edges.
51833 LD HL,16391 Draw the top edge, eleven blocks long, at 16391 (in the screen buffer).
51836 LD B,11
51838 CALL DrawHorizontalEdge
51841 LD HL,20487 Draw the bottom edge, eleven blocks long, at 20487 (in the screen buffer).
51844 LD B,11
51846 CALL DrawHorizontalEdge
Draw the sides.
51849 INC DE Point at the characters of the sides.
51850 INC DE
51851 INC DE
51852 INC DE
51853 LD HL,16453 Draw the left edge, seven blocks long, at 16453 (in the screen buffer).
51856 LD B,7
51858 CALL DrawVerticalEdge
51861 LD HL,16477 Draw the right edge, seven blocks long, at 16477 (in the screen buffer).
51864 LD B,7
51866 JP DrawVerticalEdge
Prev: 51755 Up: Map Next: 51869