Prev: B7CC Up: Map Next: B82E
B803: Copy an object between screen buffers
Used by the routines at AF5D and B3E4.
Input
HL Location of the screen buffer
A Height of object. (The width is stored in A455).
B803 LD C,L
B804 EX AF,AF'
B805 LD L,C
B806 LD E,C
B807 LD A,($A441)
B80A ADD A,H
B80B LD D,A
B80C LD A,($A455)
B80F LD B,A
B810 LD A,(DE)
B811 LD (HL),A
B812 INC L
B813 INC E
B814 DJNZ $B810
B816 INC H
B817 LD A,H
B818 AND $07
B81A JR NZ,$B829
B81C DEC H
B81D LD A,C
B81E ADD A,$20
B820 LD C,A
B821 LD A,H
B822 JR NC,$B826
B824 XOR $08
B826 AND $F8
B828 LD H,A
B829 EX AF,AF'
B82A DEC A
B82B JR NZ,$B804
B82D RET
Prev: B7CC Up: Map Next: B82E