Prev: BFB6 Up: Map Next: BFEA
BFD8: The update routine for the second pillar of a doorway (graphic 3)
Reached through UPDATES. A doorway is two pillars, graphics 2 and 3, from one background (BACKGROUND_TABLE: backgrounds 0 to 3, 10 and 11), and this one only sets its drawing nudge: the first pillar (FIRST_PILLAR) does the work. A doorway in a wall of constant V is mirrored (bit 6 of its flags); one in a wall of constant U is not. As Knight Lore's upd_3_5 and Pentagram's SECOND_PILLAR.
Input
IX the pillar's record
SECOND_PILLAR BFD8 BIT 6,(IX+$07) Mirrored?
BFDC JR NZ,SECOND_PILLAR_MIRRORED
BFDE LD HL,$FBF0 Not mirrored: X -16, Y -5
BFE1 JP SET_PIXEL_ADJ
SECOND_PILLAR_MIRRORED BFE4 LD HL,$FCF8 Mirrored: X -8, Y -4
BFE7 JP SET_PIXEL_ADJ
Prev: BFB6 Up: Map Next: BFEA