Prev: 51797 Up: Map Next: 51941
51869: Draw Frame
Used by the routines at DisplayMenu and GameOver.
Draws the frame around the whole screen, in yellow on blue.
After DrawFrame
screen-frame
Set the colour and the font.
DrawFrame 51869 LD A,78 Use bright yellow ink on blue paper (attribute 78), and keep it in AF'.
51871 EX AF,AF'
51872 LD HL,47882 Set the font to the characters of the border.
51875 LD (48044),HL
51878 LD DE,51941 Point at the characters of the border.
Draw the four corners.
51881 LD HL,16384 Draw the top left corner at 16384 (in the screen buffer).
51884 CALL PrintCharacterBlock
51887 LD HL,16414 Draw the top right corner at 16414 (in the screen buffer).
51890 CALL PrintCharacterBlock
51893 LD HL,20672 Draw the bottom left corner at 20672 (in the screen buffer).
51896 CALL PrintCharacterBlock
51899 LD HL,20702 Draw the bottom right corner at 20702 (in the screen buffer).
51902 CALL PrintCharacterBlock
Draw the top and bottom edges.
51905 LD HL,16386 Draw the top edge, fourteen blocks long, at 16386 (in the screen buffer).
51908 LD B,14
51910 CALL DrawHorizontalEdge
51913 LD HL,20674 Draw the bottom edge, fourteen blocks long, at 20674 (in the screen buffer).
51916 LD B,14
51918 CALL DrawHorizontalEdge
Draw the sides.
51921 INC DE Point at the characters of the sides.
51922 INC DE
51923 INC DE
51924 INC DE
51925 LD HL,16448 Draw the left edge, ten blocks long, at 16448 (in the screen buffer).
51928 LD B,10
51930 CALL DrawVerticalEdge
51933 LD HL,16478 Draw the right edge, ten blocks long, at 16478 (in the screen buffer).
51936 LD B,10
51938 JP DrawVerticalEdge
Prev: 51797 Up: Map Next: 51941