Prev: B7B8 Up: Map Next: B803
B7CC: Put a frame of a graphic on screen
Used by the routines at AF5D, B82E, BB17 and BD9E.
Input
HL Address to draw on screen
DE Pointer to the graphic buffer
C Bitmask to apply to each byte
B7CC LD A,($A400)
B7CF LD B,A
B7D0 PUSH BC
B7D1 PUSH HL
B7D2 LD A,(DE)
B7D3 AND C
B7D4 OR (HL)
B7D5 LD (HL),A
B7D6 INC L
B7D7 LD A,(DE)
B7D8 CPL
B7D9 OR C
B7DA CPL
B7DB EX AF,AF'
B7DC INC DE
B7DD LD A,($A401)
B7E0 DEC A
B7E1 JR Z,$B7EB
B7E3 LD B,A
B7E4 LD A,(DE)
B7E5 OR (HL)
B7E6 LD (HL),A
B7E7 INC DE
B7E8 INC L
B7E9 DJNZ $B7E4
B7EB EX AF,AF'
B7EC OR (HL)
B7ED LD (HL),A
B7EE POP HL
B7EF INC H
B7F0 LD A,H
B7F1 AND $07
B7F3 JR NZ,$B7FF
B7F5 LD A,L
B7F6 ADD A,$20
B7F8 LD L,A
B7F9 JR C,$B7FF
B7FB LD A,H
B7FC SUB $08
B7FE LD H,A
B7FF POP BC
B800 DJNZ $B7D0
B802 RET
Prev: B7B8 Up: Map Next: B803