1c68 010e00 ld bc,000eh
1c6b edb0 ldir
1c6d 21b5dc ld hl,0dcb5h ;; location of stored palette 1c70 112264 ld de,6422h ;; plus sprite palettein plus registers 1c73 0e08 ld c,08h ;; 2*4 (2 bytes per palette entry, 4 entries)
1c75 edb0 ldir
1c77 110040 ld de,4000h ;; plus sprite ram
;; unpack pixels into sprite ram
1c7a 7e ld a,(hl) ;; read byte containing 2 pixels (one in upper nibble, other in lower nibble) 1c7b 0f rrca ;; transfer upper nibble into lower nibble
1c7c 0f rrca
1c7d 0f rrca
1c7e 0f rrca
1c7f 12 ld (de),a ;; store in sprite ram 1c80 1c inc e ;; update sprite ram pointer 1c81 eda0 ldi ;; (DE) = (HL). Writes lower nibble into sprite pixel data.
1c83 03 inc bc
1c84 10f4 djnz 1c7ah ;; loop for more sprite pixels
1c86 1660 ld d,60h ;; plus sprite coordinatesand magnification 1c88 0e0d ld c,0dh ;; (X,Y, magnification for 2 sprites)
1c8a edb0 ldir