Prev: CAE5 Up: Map Next: CB09
CAFD: Draw Horizontal Edge
Used by the routines at DrawPlayingAreaBorder and DrawFrame.
Draws a number of blocks of two by two characters along a row.
Input
A' Attribute
B Number of blocks
DE Address of the four characters in a block
HL Screen address of the first block
DrawHorizontalEdge CAFD PUSH BC Stash the count and the characters on the stack.
CAFE PUSH DE
CAFF CALL PrintCharacterBlock Call PrintCharacterBlock.
CB02 INC L Move on two positions to the right.
CB03 INC L
CB04 POP DE Restore the count and the characters from the stack.
CB05 POP BC
CB06 DJNZ DrawHorizontalEdge Jump to DrawHorizontalEdge until all of the blocks have been drawn.
CB08 RET Return.
Prev: CAE5 Up: Map Next: CB09