Assembler : Directives : DEFSPR

DEFSPR - Define a sprite cell (16x16 pixels). Operands are: VRAM address, default palette, and 16 rows of pixel data, each stored as 2x32-bit values, each nybble representing a pixel. The assembler will reorganize the pixel data to the PC-Engine's required bit format.

Example :
  

 ; a '0' sprite which resides at VRAM
 ; location $5000, uses default palette #0,
 ; and consists of transparent pixels (#0),
 ; and pixels of color #1
 
 zero   .defspr  $5000,$0,\
                 $00111110,$00000000,\
                 $01000011,$00000000,\
                 $01000101,$00000000,\
                 $01001001,$00000000,\
                 $01010001,$00000000,\
                 $01100001,$00000000,\
                 $00111110,$00000000,\
                 $00000000,$00000000,\
                 $00000000,$00000000,\
                 $00000000,$00000000,\
                 $00000000,$00000000,\
                 $00000000,$00000000,\
                 $00000000,$00000000,\
                 $00000000,$00000000,\
                 $00000000,$00000000,\
                 $00000000,$00000000

See also INCSPR.