Prev: B7F9 Up: Map Next: B84B
B82B: Overwrite part of the screen buffer with a graphic
Used by the routines at B3C3, EB79 and EFC7.
Input
HL The address of the graphic to draw
D The y co-ordinate
E The x co-ordinate
B82B PUSH HL Remember HL.
B82C LD HL,$B7F9 Replace the "CALL B7BA" instructions in the routine at B84B to call B7F9 instead.
B82F LD ($B8BE),HL
B832 LD ($B8B5),HL
B835 LD ($B895),HL
B838 POP HL Restore HL.
B839 CALL $B84B Draw the graphic with the new routine.
B83C PUSH HL Remember HL.
B83D LD HL,$B7BA Set it back to the original routine at B7BA.
B840 LD ($B895),HL
B843 LD ($B8BE),HL
B846 LD ($B8B5),HL
B849 POP HL Restore HL and return.
B84A RET
Prev: B7F9 Up: Map Next: B84B