Prev: 51993 Up: Map Next: 52059
52030: Print Character Block
Prints a block of four characters, in two rows of two, with the same attribute.
Input
A' Attribute
DE Address of the four characters
HL Screen address of the top left character
Output
DE Address after the four characters
Print the top row of the block.
PrintCharacterBlock 52030 PUSH HL Stash the screen address on the stack.
52031 LD A,(DE) Print the top left character and move to the right.
52032 INC DE
52033 CALL PrintCharacterWithAttribute
52036 INC L
52037 LD A,(DE) Print the top right character and move back to the left.
52038 INC DE
52039 CALL PrintCharacterWithAttribute
52042 DEC L
Print the bottom row of the block.
52043 CALL MoveDownRow Call MoveDownRow.
52046 LD A,(DE) Print the bottom left character and move to the right.
52047 INC DE
52048 CALL PrintCharacterWithAttribute
52051 INC L
52052 LD A,(DE) Print the bottom right character.
52053 INC DE
52054 CALL PrintCharacterWithAttribute
52057 POP HL Restore the screen address from the stack.
52058 RET Return.
Prev: 51993 Up: Map Next: 52059