Prev: 9A0A Up: Map Next: 9A92
9A50: Drawing mode 3: furniture's pixels mirrored across the bottom-left to top-right diagonal
Entry 3 of PIXEL_DRAWERS. Gathers bits as DRAW_TURNED_RIGHT does, but from the left-hand column rightwards: the picture mirrored across the diagonal from its bottom-left to its top-right corner. (Matched pixel for pixel against the stored picture by the how-it-works build, 2026-09-27; renamed from the transposed names, which had the diagonals the other way round.)
DRAW_FLIP_ANTIDIAGONAL 9A50 POP BC
9A51 CALL SPRITE_COMBINE_OPCODE
9A54 LD (DRAW_FLIP_ANTIDIAGONAL_OP),A
9A57 CALL FETCH_SPRITE
9A5A LD A,B
9A5B EXX
9A5C LD B,A
9A5D LD L,$80
9A5F EXX
DRAW_FLIP_ANTIDIAGONAL_0 9A60 PUSH BC
9A61 PUSH DE
9A62 PUSH HL
DRAW_FLIP_ANTIDIAGONAL_1 9A63 LD A,(DE)
9A64 EXX
9A65 AND L
9A66 JR Z,DRAW_FLIP_ANTIDIAGONAL_2
9A68 SCF
DRAW_FLIP_ANTIDIAGONAL_2 9A69 RL H
9A6B EXX
9A6C CALL NEXT_SPRITE_ROW
9A6F DEC C
9A70 LD A,C
9A71 AND $07
9A73 JR NZ,DRAW_FLIP_ANTIDIAGONAL_1
9A75 EXX
9A76 LD A,H
9A77 EXX
DRAW_FLIP_ANTIDIAGONAL_OP 9A78 NOP
9A79 LD (HL),A
9A7A INC L
9A7B LD A,C
9A7C AND A
9A7D JR NZ,DRAW_FLIP_ANTIDIAGONAL_1
9A7F POP HL
9A80 CALL SCREEN_ROW_UP
9A83 POP DE
9A84 POP BC
9A85 EXX
9A86 RRC L
9A88 EXX
9A89 JR NC,DRAW_FLIP_ANTIDIAGONAL_0
9A8B EXX
9A8C DEC B
9A8D EXX
9A8E RET Z
9A8F INC DE
9A90 JR DRAW_FLIP_ANTIDIAGONAL_0
Prev: 9A0A Up: Map Next: 9A92