Prev: BB9E Up: Map Next: BC0B
BBEA: Copy a 3x3 grid of attribute color from attribute buffer to attribute file
Used by the routines at 99E3, 9BA7 and C059.
Input
HL Address into attribute file
DE Address into attribute buffer
BBEA CALL $BBF9 Copy a row of 3 attribute colors
BBED LD BC,$001E Increment address into attribute file to the next row
BBF0 ADD HL,BC
BBF1 CALL $BBF9 Copy a row of 3 attribute colors
BBF4 ADD HL,BC Increment address into attribute file to the next row
BBF5 CALL $BBF9 Copy a row of 3 attribute colors
BBF8 RET
Copy a row of attribute colors
BBF9 LD A,(DE) Copy an attribute color from attribute buffer to attribute file
BBFA LD (HL),A
BBFB INC HL Increment address into attribute file and buffer
BBFC INC DE
BBFD LD A,(DE) Copy an attribute color from attribute buffer to attribute file
BBFE LD (HL),A
BBFF INC HL Increment address into attribute file and buffer
BC00 INC DE
BC01 LD A,(DE) Copy an attribute color from attribute buffer to attribute file
BC02 LD (HL),A
BC03 PUSH HL Save HL
BC04 LD HL,$001E Increment address into attribute buffer to the next row
BC07 ADD HL,DE
BC08 EX DE,HL
BC09 POP HL
BC0A RET
Prev: BB9E Up: Map Next: BC0B