Prev: 91BE Up: Map Next: 93D1
93BB: Unused routine
This routine is not used, but if it were, it would set the INK colour for a 3x2 block of cells, maintaining the PAPER, BRIGHT and FLASH attributes of the current room background. It is identical to the code at 8E5F in Manic Miner that is used to set the attributes for a vertical guardian.
Input
A INK colour (0-7)
HL Attribute buffer address
Output
93BB LD (HL),A Store the INK colour (bits 0-2)
93BC LD A,($80A0) Collect the current room's background tile attribute from 80A0
93BF AND $F8 Keep only bits 3-7 (PAPER, BRIGHT, FLASH)
93C1 OR (HL) Merge the INK bits
93C2 LD (HL),A Store the resultant attribute byte
93C3 LD DE,$001F Prepare DE for later addition
93C6 INC HL Move right one cell and store the attribute byte there
93C7 LD (HL),A
93C8 ADD HL,DE Move left one cell and down a row and store the attribute byte there
93C9 LD (HL),A
93CA INC HL Move right one cell and store the attribute byte there
93CB LD (HL),A
93CC ADD HL,DE Move left one cell and down a row and store the attribute byte there
93CD LD (HL),A
93CE INC HL Move right one cell and store the attribute byte there
93CF LD (HL),A
93D0 RET
Prev: 91BE Up: Map Next: 93D1