Prev: 45760 Up: Map Next: 45806
45777: Attributes Copier
Used by the routine at 46481.
Input
HL Source pointer
IX Destination pointer
BC Width and height
Attributes_Copier 45777 LD DE,32 DE=0032.
45780 PUSH HL Stash HL, IX and BC on the stack.
45781 PUSH IX
45783 PUSH BC
Attributes_Copier_0 45784 LD A,(HL) A=*HL.
45785 AND %01111111 Keep only bits 0-6.
45787 LD (IX+0),A Write A to *IX+0.
45790 ADD HL,DE HL+=DE.
45791 ADD IX,DE IX+=DE.
45793 DJNZ Attributes_Copier_0 Decrease counter by one and loop back to Attributes_Copier_0 until counter is zero.
45795 POP BC Restore BC, IX and HL from the stack.
45796 POP IX
45798 POP HL
45799 INC IX Increment IX by one.
45801 INC HL Increment HL by one.
45802 DEC C Decrease C by one.
45803 JR NZ,Attributes_Copier Jump to Attributes_Copier.
45805 RET Return.
Prev: 45760 Up: Map Next: 45806