Assembler : Directives : DEFCHR

DEFCHR - Define a character tile (8x8 pixels). Operands are: VRAM address, default palette, and 8 rows of pixel data (stored as 32-bit values of 8 nybbles each). The assembler will reorganize the pixel data to the PC-Engine's required bit format.

Example :
  

 ; a '0' character which resides at VRAM
 ; location $1000, uses default palette #0,
 ; and consists of transparent pixels (#0),
 ; and pixels of color #1
 ;
 ; note the use of "\" as the line
 ; continuation character
 
 zero   .defchr  $1000,$0,\
                 $00111110,\
                 $01000011,\
                 $01000101,\
                 $01001001,\
                 $01010001,\
                 $01100001,\
                 $00111110,\
                 $00000000

See also INCCHR.