Prev: 42721 Up: Map Next: 42844
42803: Draw Aligned Row In Buffer
Draws one row of a sprite that is aligned to a byte into the buffer used by DrawSprites. The entry point depends on the width of the sprite in bytes, from six bytes at DrawAlignedRowInBuffer to one byte at 42828.
Input
DE Address of the data of the sprite
HL Address in the buffer
DrawAlignedRowInBuffer 42803 LD A,(DE) Fetch a byte of the sprite.
42804 OR (HL) Set the pixels of the buffer.
42805 LD (HL),A Store the byte.
42806 INC DE Move on to the next byte of the sprite.
42807 INC L Move on to the next byte of the buffer.
42808 LD A,(DE) Fetch a byte of the sprite.
42809 OR (HL) Set the pixels of the buffer.
42810 LD (HL),A Store the byte.
42811 INC DE Move on to the next byte of the sprite.
42812 INC L Move on to the next byte of the buffer.
42813 LD A,(DE) Fetch a byte of the sprite.
42814 OR (HL) Set the pixels of the buffer.
42815 LD (HL),A Store the byte.
42816 INC DE Move on to the next byte of the sprite.
42817 INC L Move on to the next byte of the buffer.
42818 LD A,(DE) Fetch a byte of the sprite.
42819 OR (HL) Set the pixels of the buffer.
42820 LD (HL),A Store the byte.
42821 INC DE Move on to the next byte of the sprite.
42822 INC L Move on to the next byte of the buffer.
42823 LD A,(DE) Fetch a byte of the sprite.
42824 OR (HL) Set the pixels of the buffer.
42825 LD (HL),A Store the byte.
42826 INC DE Move on to the next byte of the sprite.
42827 INC L Move on to the next byte of the buffer.
42828 LD A,(DE) Fetch a byte of the sprite.
42829 OR (HL) Set the pixels of the buffer.
42830 LD (HL),A Store the byte.
42831 INC DE Move on to the next byte of the sprite.
42832 LD A,0 Fetch the amount to skip, which was set at 42117.
42834 ADD A,L Add it to the address in the buffer.
42835 LD L,A Store it in L.
42836 EX AF,AF' Switch to the count of rows.
42837 DEC A Take one off.
42838 JP Z,DrawSprites_Dissolve Jump to DrawSprites_Dissolve to finish when there are none left.
42841 EX AF,AF' Switch back.
42842 JP (IX) Draw the next row.
Prev: 42721 Up: Map Next: 42844